Need trig & LCB help

2019-10-29 Thread Pink via use-livecode

In a nutshell, I am working on a widget that consists of a wheel with
buttons. Currently I've just manually calculated out where 8 buttons go, 
and
it works well, but I am trying to set it up with a user definable number 
of

buttons contained in array "mData."

Need help checking my math (and LCB syntax.) I took out some of the 
syntax

like setting paints and some other fluff, this is just calculating the
positions of each circle.

-- tBigRad is the radius of the main circle across the widget
if my width > my height then
  put my height/2 into tBigRad
else
  put my width/2 into tBigRad
end if

-- tLilRad is the radius of each small button around the edge
put tBigRad/4 into tLilRad

-- finding the coordinates of the center of the main circle
put my width/2 into tBigX
put my height/2 into tBigY
put point [(my width/2),(my height/2)] into tCenter
fill circle path centered at tCenter with radius tBigRad on this 
canvas


-- create an "inner circle" by subtracting the radius of a button 
from

the radius of the main circle
put tBigRad - tLilRad into tInnerRad
-- calculate angle in radians from the for the center of each button
put (the number of elements in mData)/(2 * pi()) into tButtonAngles

repeat with tButtonNumber from 1 up to the number of elements in 
mData

  put tInnerRad * (tButtonNumber-1 * tButtonAngles) into tAngle
  put tBigX * cos(tAngle * pi()) into tButtonX
  put tBigY * sin(tAngle * pi()) into tButtonY
  put point [tButtonX, tButtonY] into tButtonCenter
  fill circle path centered at tButtonCenter with radius tLilRad on 
this

canvas
end repeat

___
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 Data Grid help

2019-05-05 Thread pink via use-livecode
Bingo, that works perfectly


JJS via use-livecode wrote
> On Sun, May 5, 2019 at 2:45 PM pink via use-livecode <

> use-livecode@.runrev

>> wrote:
> 
>> Below is the script for a data grid and the stack script.
>>
>> The data grid times certain jobs, so if you press one, it switched to
>> timing
>> that job.
>>
>> The problem is, when I set the dgData for the grid, the rows are blank up
>> to
>> the row that I press, and none of the changed data appears. However, if I
>> just set it again in a different action it shows up correctly. That is,
>> the
>> data doesn't seem to set correctly as part of my activateJob handler. If
>> I
>> then try to set it again in a different mouseUp handler, everything shows
>> up
>> correctly.
> 
> 
> A LiveCode control cannot be deleted while it is running a script. That is
> what I think is happening here. When calling the handler that will refresh
> the data grid try using “send ... in 0 seconds” so that the refresh
> happens
> after the click within the data grid.
> 
> -- 
> Trevor DeVore
> ScreenSteps
> ___
> use-livecode mailing list

> use-livecode@.runrev

> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.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

Need Data Grid help

2019-05-05 Thread pink via use-livecode
Below is the script for a data grid and the stack script.

The data grid times certain jobs, so if you press one, it switched to timing
that job.

The problem is, when I set the dgData for the grid, the rows are blank up to
the row that I press, and none of the changed data appears. However, if I
just set it again in a different action it shows up correctly. That is, the
data doesn't seem to set correctly as part of my activateJob handler. If I
then try to set it again in a different mouseUp handler, everything shows up
correctly.

-
Data Grid Script:

on FillInData pData
  local tJob, tTime, tTemp, tHour, tMin
  put pData["jobno"] & space into tJob
  put pData["client"] & space after tJob
  put "-" && pData["jobname"] after tJob
  if pData["timer"] is true then
set the backgroundColor of graphic "Status" of me to "green"
  else
set the backgroundColor of graphic "Status" of me to "red"
  end if
  put pData["time"] into tTemp
  put trunc(tTemp/60)into tHour
  if tHour < 1 or tHour is empty then put 0 into tHour
  put tTemp - (tHour*60) into tMin
  if tMin < 1 or tMin is empty then put 0 into tMin
  put tHour & "h" && tMin & "m" into tTime
  put me into tX
  
  set the text of field "jobInfo" of me to tJob
  set the text of field "taskCode" of me to pData["taskcode"]
  set the text of field "currentTime" of me to tTime
end FillInData

setprop dgHilite pBoolean
  if pBoolean then
set the foregroundColor of me to the dgProp["hilited text color"] of the
dgControl of me
  else
set the foregroundColor of me to empty
  end if
end dgHilite

getprop dgDataControl
   return the long ID of me
end dgDataControl

on mouseUp
  local tNum
  
  put char -5 to -2 of word 5 of the long name of the target into tNum
  put (tNum * 1) into tNum
  
  switch the short name of the target
case "Edit"
  editJob tNum
  break
case "Adjust"
  adjustJob tNum
  break
case "Status"
  activateJob tNum
  break
  end switch
end mouseUp



Stack Script

local sTimer

command activateJob pNum
  put "activate" into sTimer["settings"]["action"]
  if sTimer["data"][pNum]["timer"] then
onEndTimer pNum
  else
onStartTimer pNum
  end if
  set the dgData of group "jobTimers" to sTimer["data"]
end activateJob

command onStartTimer pNum
  repeat for each key tK in sTimer["data"]
if sTimer["data"][tK]["timer"] is true then
  onEndTimer tK
end if
put false into sTimer["data"][tk]["timer"]
put empty into sTimer["data"][tk]["starttime"]
  end repeat
  put true into sTimer["data"][pNum]["timer"]
  put the seconds into sTimer["data"][pNum]["starttime"]
end onStartTimer

command onEndTimer pNum
  local tCurrent
  put the seconds into tCurrent
  subtract sTimer["data"][pNum]["starttime"] from tCurrent
  put round(tCurrent/60) into tCurrent
  add tCurrent to sTimer["data"][pNum]["time"]
  
  put false into sTimer["data"][pNum]["timer"]
  put empty into sTimer["data"][pNum]["starttime"]
end onEndTimer



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.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


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"
>>>&g

Re: Need crash course in Dropbox library

2019-02-18 Thread pink via use-livecode
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
>> >
>> > writing--
>> >
>> > *put*phx_DropboxWriteFile("sandbox", ("/folder/some.txt"), "text/html",
>> > true, myName) intofield"udontcme"ofcard1
>> >
>> > --close---
>> >
>> > *on*closeStack
>> >
>> > *set*theuTokenKey ofthisstacktoempty
>> >
>> > *set*theuTokenSec ofthisstacktoempty
>> >
>> > *stop*usingstack"phxDropboxLib"
>> >
>> > *close*stack"phxDropboxLib"
>> >
>> > *pass*closeStack
>> >
>> > *end*closeStack
>> >
>> > Op 16-2-2019 om 00:23 schreef pink via use-livecode:
>> >> under the documentation for dropboxUpload,  it states it shouldn't be
>> >> used
>> >> for files larger than 150MB, the video files will all be around 800MB
>> >>
>> >> I've been looking through the stack, but cannot find the answers I am
>> >> looking for. SO I am still not clear how I should get my file into
>> pData
>> >>
>> >> and pData is just a chunk of the data? How do I make that chunk out of
>> >> the
>> >> whole and where do I get pOffset from?
>> >>
>> >>
>> >> Matthias Rebbe via use-livecode wrote
>> >>> Hey, pink, thanks for the clarification.
>> >>> First of all, is there a reason why you are doing it this way instead
>> of
>> >>> using dropboxUpload?  If you use dropboxUpload you can do it all in
>> one
>> >>> shot.
>> >>> Gerard's stack explains the process and how to use the various
>> commands
>> >>> Doing it the way you are doing it, you would start with sessionStart
>> and
>> >>> then you would repeatedly call sessionAppend
>> >>> pOffset is the length of what you have already sent because there are
>> no
>> >>> guarantees that dropbox will get your file stream in order, so if it
>> >>> ge

Re: Need crash course in Dropbox library

2019-02-17 Thread pink via use-livecode
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
> 
> writing--
> 
> *put*phx_DropboxWriteFile("sandbox", ("/folder/some.txt"), "text/html", 
> true, myName) intofield"udontcme"ofcard1
> 
> --close---
> 
> *on*closeStack
> 
> *set*theuTokenKey ofthisstacktoempty
> 
> *set*theuTokenSec ofthisstacktoempty
> 
> *stop*usingstack"phxDropboxLib"
> 
> *close*stack"phxDropboxLib"
> 
> *pass*closeStack
> 
> *end*closeStack
> 
> Op 16-2-2019 om 00:23 schreef pink via use-livecode:
>> under the documentation for dropboxUpload,  it states it shouldn't be
>> used
>> for files larger than 150MB, the video files will all be around 800MB
>>
>> I've been looking through the stack, but cannot find the answers I am
>> looking for. SO I am still not clear how I should get my file into pData
>>
>> and pData is just a chunk of the data? How do I make that chunk out of
>> the
>> whole and where do I get pOffset from?
>>
>>
>> Matthias Rebbe via use-livecode wrote
>>> Hey, pink, thanks for the clarification.
>>> First of all, is there a reason why you are doing it this way instead of
>>> using dropboxUpload?  If you use dropboxUpload you can do it all in one
>>> shot.
>>> Gerard's stack explains the process and how to use the various commands
>>> Doing it the way you are doing it, you would start with sessionStart and
>>> then you would repeatedly call sessionAppend
>>> pOffset is the length of what you have already sent because there are no
>>> guarantees that dropbox will get your file stream in order, so if it
>>> gets
>>> them out of order and pData isn't the same length for each call to
>>> append,
>>> the only way dropbox knows where to put the data it just received is if
>>> you
>>> tell it where to put it.
>>> pData should be at most 150mb per call.
>>> ___
>>> use-livecode mailing list
>>> use-livecode@.runrev
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>>
>>
>>
>> -
>> ---
>> Greg (pink) Miller
>> mad, pink and dangerous to code
>> --
>> Sent from:
>> http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html
>>
>> ___
>> use-livecode mailing list
>> 

> use-livecode@.runrev

>> 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@.runrev

> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.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


Re: Need crash course in Dropbox library

2019-02-15 Thread pink via use-livecode
under the documentation for dropboxUpload,  it states it shouldn't be used
for files larger than 150MB, the video files will all be around 800MB

I've been looking through the stack, but cannot find the answers I am
looking for. SO I am still not clear how I should get my file into pData

and pData is just a chunk of the data? How do I make that chunk out of the
whole and where do I get pOffset from?


Matthias Rebbe via use-livecode wrote
> Hey, pink, thanks for the clarification.
> First of all, is there a reason why you are doing it this way instead of
> using dropboxUpload?  If you use dropboxUpload you can do it all in one
> shot.
> Gerard's stack explains the process and how to use the various commands
> Doing it the way you are doing it, you would start with sessionStart and
> then you would repeatedly call sessionAppend
> pOffset is the length of what you have already sent because there are no
> guarantees that dropbox will get your file stream in order, so if it gets
> them out of order and pData isn't the same length for each call to append,
> the only way dropbox knows where to put the data it just received is if
> you
> tell it where to put it.
> pData should be at most 150mb per call.
> ___
> use-livecode mailing list

> use-livecode@.runrev

> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.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


Re: Need crash course in Dropbox library

2019-02-15 Thread pink via use-livecode
Unfortunately, looking at the other library isn't making things clearer...

Let me get more specific, here are the main commands I'm trying to learn:

dropboxUploadSessionStart pAccessToken, pData
dropboxUploadSessionAppend pAccessToken, pSession, pOffset, pData
dropboxUploadSessionFinish pAccessToken, pSession, pOffset, pPath, pMode,
pAutorename, pMute, pData

I understand how to get the access token, and how to get the sessionID
but...

1. what do I put into pData? I assume pData is the file I am supposed to be
uploading, but how do I put it in there? do I just open file, then read from
file and then put it into pData?
2. do i just use the same value for pData in all commands?
3. Where do I get the pOffset value?
4. Do I control how much data is sent with each request? If so, how? If not,
how do I know how many append sessions to use before I send the finish?




Matthias Rebbe via use-livecode wrote
> Then I would suggest
> Grab Gerard's LC dropbox v2 goodies that are at
> https://github.com/macMikey/dropboxapi_v2
> The LC dropbox library was "inspired by" Gerard's library.  The command
> names are different, but I'm pretty sure it's one-to-one and I'm pretty
> sure the syntax is identical.  Where it isn't (or where a return value
> didn't correlate) I'm pretty sure I submitted PR's to LC's library to fix
> theirs, and I'm pretty sure all the PR's have been integrated.
> One thing that is different/better with LC's library is that LC's library
> adds optional support for asynchronous calls if you have one of the
> not-free LC versions.
> Gerard's library also has a tester built in, which is helpful for
> debugging
> purposes.  When you have the syntax right, switch the calls to the LC
> library.
> If you still need help check back here and we'll see what else you might
> need.
> 
> On Thu, Feb 14, 2019 at 8:24 PM pink via use-livecode <

> use-livecode@.runrev

>> wrote:
> 
>> was planning on using the LC Dropbox library
>>
>>
>>
>> -
>> ---
>> Greg (pink) Miller
>> mad, pink and dangerous to code
>> --
>> Sent from:
>> http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html
>>
>> ___
>> use-livecode mailing list
>> 

> use-livecode@.runrev

>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
> 
> 
> -- 
> On the first day, God created the heavens and the Earth
> On the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
>and did a little diving.
> And God said, "This is good."
> ___
> use-livecode mailing list

> use-livecode@.runrev

> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.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


Re: Need crash course in Dropbox library

2019-02-14 Thread pink via use-livecode
was planning on using the LC Dropbox library



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.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


Need crash course in Dropbox library

2019-02-14 Thread pink via use-livecode
Sorry for asking like this, but I need a quick tutorial in using the dropbox
library. I have an app that is running on an older Mac with Dropbox, and
Dropbox is discontinuing support for the OS. (Really it's a long story, but
the bottom line is that the video processing software runs faster on the old
Mac than it does on newer machines, no idea why)

The task at hand... I need to upload video files to a folder setup for a
specified client on Dropbox. The folder may not already exist. The dropbox
account will always be the same. On average, the files will be 800MB each,
so I can't use the standard upload, I need to use the upload session, but I
am really unsure as to how it works. 

Can someone point me towards what i need, or give me an example of how to
use the upload session commands to upload a large file?

THanks!



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.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


Re: Navigator 7.0.1rc1 is available -- Multi-target windows!

2019-01-04 Thread pink via use-livecode
>
> 1.  One thing I would love to do is assign different commands to the
> "Command Bars", I've been going through the source code and haven't
> figured
> out where this happens...
>

I obviously need to do better here: just right-click/control-click a
command bar. The pop-up menu lets you select any existing command to assign
to that command bar. You can create new named commands by selecting New
Command... at the top of the menu. Note: I just now noticed that you have
to have at least one control selected for this to work. I'll fix that in an
update.

EXCELLENT! 

>
> 2.  Another feature request would be to assign a different color for
> groups
> (and folded group contents)
>

I thought about this, but I thought the overall "color things based on
whether they have a script/behavior" was more important, but I'll take a
look and see how tough this would be to work in.

--Ultimately, a user can get around it by using the same color if they don't
want to distinguish between certain things... I use the same color for with
or without a script

>
> 3.  it seems as though all controls in a card are being indented... was it
> always like that?
>

Good eye -- no, they weren't before, but I added that additional level of
indent because of allowing multiple targets. It would be easy enough to
undo depending on the consensus opinion.

--I would prefer not to have the extra indent, but it's not a dealbreaker or
anything :P

>
> 4.  it would be nice if there were an easier way to clean up the List
> Display String list... as far as I can tell the only way is to manually
> edit
> the prefs file
>

Definitely agreed, it was just the lack of/need for interface inspiration
and a desire to work on something else/laziness. But yes, editing the prefs
is the only way at present to clean up the list display list.

--I had A LOT to clean up, each addition to my line just made it
exponentially larger... 

iff(the vis of tID,"","hid") & iff(char 1 to 5 of the name of tID is
"group","---grp ---" & the short name of tID & "---",toUpper(char 1 of the
name of tID) && the short name of tID) && "id[" & the short ID of tID & "]"
&& the height of tID & "x" & the width of tID && the mpDevNotes of tID &&
the left of tID & "," & the top of tID & "," & the right of tID & "," & the
bottom of tID & "/" & the layer of tID

>



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.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


Re: Navigator 7.0.1rc1 is available -- Multi-target windows!

2019-01-04 Thread pink via use-livecode
I love this plugin... one of my top 3 favorites

Here's my wishlist:

1.  One thing I would love to do is assign different commands to the
"Command Bars", I've been going through the source code and haven't figured
out where this happens...

2.  Another feature request would be to assign a different color for groups
(and folded group contents)

3.  it seems as though all controls in a card are being indented... was it
always like that?

4.  it would be nice if there were an easier way to clean up the List
Display String list... as far as I can tell the only way is to manually edit
the prefs file





-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.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


Re: sending a JSON string

2018-10-17 Thread pink via use-livecode
You can also try this:

set the httpheaders to "Content-Type: application/x-www-form-urlencoded"
delete
URL("https://api.thingspeak.com/channels/564256/feeds.json?api_key=EQKTUQQKVH83D1RE;)



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.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


Re: hard-to-use software

2018-09-11 Thread pink via use-livecode
This was a fun read.

I always try and make software with "advanced" layers and settings so that
it can be used simply right away, but you make it as complicated as you want
it to be. 





-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.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


LCB - Text entry/edit in a widget

2018-08-04 Thread pink via use-livecode
What I would like to make is a widget that essentially functions as a multi
field form. 

I know how to add text to a widget, but how can I make editable by the user?

Essentially, how can I create one or more "fields" in a widget?



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.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


Re: DataGrid problems

2017-12-26 Thread pink via use-livecode
a... that feels better yes that is what I was missing

on receviedHelp
   repeat 100 times
  answer "Thank you!!!" 
   end repeat
end receviedHelp



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.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


DataGrid problems

2017-12-26 Thread pink via use-livecode
I must confess that I haven't really used the data grid much, so I'm at a
loss as to how to troubleshoot... And FYI I am using 8.1.8

I created a datagrid form with 6 fields and a graphic. The dgData is
generated from a search function in a large database. As an example, one
search yields 12 results.

My datagrid displays 12 groups for the results, but only the first one is
filled in (with the results of the last record). If I get the dgData, it is
all there. 

I setup a mouseup (see below) in the script to give me the id number
associated with a group, and they each have their own id number when
clicked. Note, that the first group which displays the last record gives me
the id number of the first record.

It seems as though the first group created by the datagrid gets rewritten
instead of going down the list...

What did I do wrong?


my FillInData command:

on FillInData pDataArray
  set the text of field "name" to pDataArray["name"]
  set the text of field "address" to pDataArray["address"]
  set the text of field "age" to pDataArray["age"]
  set the text of field "homephone" to pDataArray["homephone"]
  set the text of field "cellphone" to pDataArray["cellphone"]
  set the text of field "elig" to pDataArray["elig"]
  if pDataArray["elig"] is space then
set the backgroundColor of grc "indicator" to green
  else
set the backgroundColor of grc "indicator" to red
  end if
end FillInData

on mouseUp
  put the dgData of me into tData
  put  the dgIndex of me into tX
  put tData[tX]["_id"] into tID
  answer tID
end mouseUp



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.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


Re: New Books/Dictionary

2017-11-26 Thread pink via use-livecode
While I use the internal dictionary (via TinyDict) for quick lookups, there
is something nice about having a separate browsable copy on my iPad. 

Why would I like an electronic version?

1. I can easily make notes, bookmarks and highlights for future reference.
2. I can browse through it on a whim to learn random facts and explore other
topics. (I'm a computer geek... this is fun for me)
3. I tend to do most of my programming on my MacBook Air which does not have
a lot of real estate, so having one less window open helps. 
4. I can just read and learn more about the language apart from the IDE, and
in or at places I may not want to bring my laptop. 

There's more, but I think that covers most of it



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.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


New Books/Dictionary

2017-11-25 Thread pink via use-livecode
Will it be possible to buy electronic versions of the new dictionary and
lessons book?



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.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


Re: ArrayToJSON in LCServer ?

2017-11-25 Thread pink via use-livecode
ArrayToJSON is from the mergJSON external... so in order for you to use it,
you would need to be able to access the external through your server
installation. I don't know if that is possible...

My recommendation would be to use a library such as fastJSON. I use fastJSON
with LC Server all the time without issue.



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.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


Re: Need Dropbox guidance

2017-10-19 Thread pink via use-livecode
I did have a slash in the value of tFilePath

I'm starting to understand my confusion, we're not uploading and downloading
files, but putting and getting data into/from files... which is definitely
more useful for what I'm trying to do. Now I've got things working and it is
making sense :)





-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.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


Re: Need Dropbox guidance

2017-10-18 Thread pink via use-livecode
THat worked... so now how do I download the file and save it?

I tried doing the opposite, but the file I got didn't come out right.

dropboxDownload myToken, "/data.livecode"
put it into URL ("binfile:" & tFilePath)




-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.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


Re: Need Dropbox guidance

2017-10-18 Thread pink via use-livecode
With the upload, everything indicates that it is successful, but the file
that exists is not correct, and it's size is way off. 

Again, I am uploading a stack that is in memory, what exactly do I need to
put into "pData" in order to upload the file?

example of my last upload:

{"name": "mystack1.mpk", "path_lower": "/mptest/mystack1.mpk",
"path_display": "/mptest/mystack1.mpk", "id": "id:-fozhdCOtmAAEQ",
"client_modified": "2017-10-18T11:24:50Z", "server_modified":
"2017-10-18T11:24:50Z", "rev": "a5d9e1493", "size": 34, "content_hash":
"bc2bef46bb89315313ec80962ad1f533595bf2eb2231be92d437bd191ffd5d24"}



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.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


Need Dropbox guidance

2017-10-17 Thread pink via use-livecode
So far, none of my attempts with the Dropbox script have been successful,
with the exception of create folder.

Basically I just want to create an invisible file as a save stack, upload it
to a folder in dropbox and then be able to download it and put it into
memory.

So below is the script that I've most recently used. A file gets uploaded,
but it isn't the actual stack I created, I've also tried uploading directly
from the tLocalPath but that returns an error.

Any suggestions?

  put "testdata7" into tName
  put specialfolderpath("desktop") & "/" & tName & ".mpk" into tLocalPath
  put "/mptest/" & tName & ".livecode" into tDBpath
  
  create invisible stack tName
  set the testingMeData of stack tName to "123456abc"
  dropboxUpload myToken, tDBPath, "overwrite", false, false, tName
  clear stack tName

  dropboxDownload myToken, tDBpath





-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.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


Re: OAuth2 (LC 9) on mobile?

2017-10-13 Thread pink via use-livecode
Have you tried running the app in the iOS simulator as well?



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.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


Re: OAuth2 Status?

2017-10-13 Thread pink via use-livecode
After testing out a few things with Panos, the conclusion is corrupted prefs
file.

After deleting my prefs file and starting fresh, everything is working.

With a little bit of shame, I'm going to admit that at one point while
working on my Toodledo library it stopped working and I started freaking out
before I remembered that I had turned off the wifi on my Macbook 

So with the internet out, the OAuth2 panel pops open and stays open, but
remains blank. In the IDE, I just hit command-. a couple of times to
eventually close it. 

Question is, if the user has some sort of connectivity issue, how could they
close the popup? For that matter, what if they just change their mind? On
the login page for Toodledo, they have a cancel button, but pressing it just
causes the page to refresh, it doesn't dismiss the popup. 

How could a user get rid of the panel? 
How could a mobile user get rid of it? 
Is there something programmatically we could add to allow them to more
easily dismiss the panel?



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.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


Re: OAuth2 Status?

2017-10-12 Thread pink via use-livecode
LC9DP9 Indy on Mac

Right now, I've only tested in the IDE without success. I tried one Mac
standalone just for the heck of it (didn't work). Haven't tried iOS or any
other platform.


btw, submitted ticket:
http://quality.livecode.com/show_bug.cgi?id=20559
  



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.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


Re: OAuth2 Status?

2017-10-11 Thread pink via use-livecode
Other than the code itself, is there anything I need to do in the stack to
make this work?



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.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


Re: OAuth2 Status?

2017-10-09 Thread pink via use-livecode
Monitoring connections, when I run the script, Livecode makes connections to:

slack.com:443
secure.quantserve.com:443
sp.analytics.yahoo.com:443
569-ct.c3tag.com:443
platform.twitter.com:443
ad.doubleclick.net:443
atlas.c10r.facebook.com:443
s.adroll.com:443
d1ivexoxmp59q7.cloudfront.net:443
www.bizographics.com:443
ib.anycast.adnxs.com:443
fanboy-web-linkedin-prod-1790689846.us-east-1.elb.amazonaws.com:443




-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.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


Re: OAuth2 Status?

2017-10-09 Thread pink via use-livecode
the result is empty (so is “it”)



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.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

OAuth2 Status?

2017-10-09 Thread pink via use-livecode
Does OAuth2 currently work?  I’m using LC 9 Indy DP9, I tried 3 different
APIs (Toodledo, Todoist, and Slack)

In all 3 cases, an empty window pops up briefly and then closes.

For Slack, I literally copied the example from the dictionary and
substituted my app’s values.

Has anyone been able to use it yet?



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.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

Re: Slack library?

2017-10-09 Thread pink via use-livecode
Depends on what you want to do... 

Below is just a post to channel command I had made, haven't used it ina
while and obviously the webhook has fake credentials...


command slackPost
  put
"https://hooks.slack.com/services/T/B/;
into slackURL
  put "Fallback text" into tPostArray["fallback"]
  put "#random" into tPostArray["channel"]
  put "This is the text test" into tPostArray["text"]
  put "App Bot" into tPostArray["username"]
  put "Quick pretext" into tPostArray["pretext"]
  put "danger" into tPostArray["color"]
  put ":dragon:" into tPostArray["icon_emoji"]
  put "abc" into tPostArray["fields"]["1"]["title"]
  put 2   into tPostArray["fields"]["1"]["value"]
  put "short"   into tPostArray["fields"]["1"]["short"]
  put "def" into tPostArray["fields"]["2"]["title"]
  put 2   into tPostArray["fields"]["2"]["value"]
  put "short"   into tPostArray["fields"]["2"]["short"]
  
  put jsonFromArray(tPostArray) into tPost
  
  post tPost to URL slackURL
end slackPost



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.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


Re: IconGrid widget v2.0.2

2017-10-01 Thread pink via use-livecode
I absolutely love this. In my a current app I had a stack of 18 SVG widgets
that I was having a tough time getting to resize and look right (trying to
expand it into Mac, PC and Android markets.)   This makes things much much
much easier.

Works great on iOS



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.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


Need a MergAV for dummies guide

2017-09-13 Thread pink via use-livecode
I am trying to get MergAV to work in a mobile app, but so far I haven't had
much luck...

Here's some of what I've tried:

on openStack
  if the environment = "mobile" then mergAVRequestMediaAccess
"video"
  mergAVCamCreate
end openStack

command startRecordingVideo
  set the currentlyRecording of this stack to true
  mergAVCamCreate
  mergAVCamSet "rect",the rect of grc "cam"
  mergAVCamSet "visible","true"
  put the seconds into tTitle
  put "av" before tTitle
  put ".mov" after tTitle
  mergAVCamStartRecording (specialFolderPath("documents") &"/" &
tTitle ) 
end startRecordingVideo

When I load it onto my iPhone I get:
634,0,0 control not created yet, 573,49,1 mergAVCamStartRecording

Anyone know what I've done wrong?



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.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


Re: CouchDB, DayBed, etc.

2017-08-27 Thread pink via use-livecode
I've used "LSON" in the past and had issues. Not with save files, but with
socket transmission...

I may play around a bit and see how things go



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/CouchDB-DayBed-etc-tp4718761p4718956.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


Re: CouchDB, DayBed, etc.

2017-08-23 Thread pink via use-livecode
Daybed's built in local storage system is the save stack, works well on all
platforms. I am actually fiddling around with using SQLite as a save file as
well, just haven't had a lot of free time. You can set things to sync
whenever possible rather easily as well.

CouchDB does have a local save and sync format called PouchDB. Unfortunately
I have yet to find a way to get it working in Livecode. It is largely
javascript based, so I believe there should be way of using a browser widget
to do the heavy lifting.

Thanks for taking the course! I just added a bunch of lessons on
replication, a lesson on creating a production ready server with SSL, and I
am planning on a section about setting up a cluster.



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/CouchDB-DayBed-etc-tp4718761p4718821.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


Re: Daybed 2.0 - A Library for Apache CouchDB

2017-08-19 Thread pink via use-livecode
For experimentation, you can setup a free account with IBM for Cloudant.

The free account is for 1GB which is enough for around 2 million
records/revisions

Cloudant shares most of their code with Apache for CouchDB, the only major
difference is how they setup users. The Daybed library will work with
Cloudant except for the sync functions.



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Daybed-2-0-A-Library-for-Apache-CouchDB-tp4718601p4718615.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


Daybed 2.0 - A Library for Apache CouchDB

2017-08-18 Thread pink via use-livecode
Apache has released CouchDB 2.1 and Daybed is still compatible.

The library is available at:  https://github.com/madpink/couchdb4livecode

This has been a big week for me...
I had my talk about CouchDB for Livecode Global (that was fun)

I was interviewd for the CouchDB blog where I did my best to plug Livecode:
https://blog.couchdb.org/2017/08/15/a-couchdb-user-story-gregory-madpink-miller-shares-his-couchdb-udemy-course/

I've created a coupon code for my CouchDB Udemy course for anyone
interested:
https://www.udemy.com/understanding-couchdb/?couponCode=LIVECODE

As of now the Daybed library includes:

1. The main functions for GET, PUT, POST and DELETE to CouchDB
2. "Quick functions" which save the basic info (URL, authentication, db
name) and let you quickly access docs
3. Sync functions which save documents to a database created for the user
and saves locally as a "save stack"

To-Do list:
-continue updating/adding to the quick functions
-add option to save to a per app database instead of per user (this will
help make sync compatible with Cloudant)
-toying with other save options besides the stack (open to suggestions)



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Daybed-2-0-A-Library-for-Apache-CouchDB-tp4718601.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


Re: LC Global - my experience

2017-06-17 Thread pink via use-livecode
While it is fun to hang out with other Livecoders, and to go out carousing
with the staff, it is definitely nice to be able to watch remotely. We can
still interact with each other, we can still ask questions and start new
discussions... being an independent developer who can barely pay the bills,
I appreciate not having to put a huge investment into lodging etc... All in
all, the advantages of this setup far out weight the disadvantage of not
having a few mails and going out drinking with y'all.

So my question is... can the Livecode folks setup a virtual bar?



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/LC-Global-my-experience-tp4715908p4715965.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


Re: Seeking recommendations / suggestions for use of library stacks.

2017-05-16 Thread pink via use-livecode
what about putting the process into the library stack files themselves? 

For example, when I use my CouchDB library I also load fastJSON:

on libraryStack
 if "couchDBLib" is not among the lines stacksInUse then start using
stack "couchDBLib"
 if "fastJSONlib" is not among the lines stacksInUse then start using
stack "fastJSONlib"
end libraryStack

on releaseStack
 if "couchDBLib" is among the lines stacksInUse then stop using stack
"couchDBLib"
 if "fastJSONlib" is among the lines stacksInUse then stop using stack
"fastJSONlib"
end releaseStack

note that using "is among" and "is not among" is not optional otherwise you
end up in an infinite loop



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Seeking-recommendations-suggestions-for-use-of-library-stacks-tp4714836p4714910.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


Re: ANN: new team member

2017-05-12 Thread pink via use-livecode
Well congrats Ali... remember to keep the firmware up to date and just to
warn you, there are no breakpoints



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/ANN-new-team-member-tp4714718p4714761.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


Re: Wouldn't it be nice to have a "back/forward" button in script editor?

2017-05-11 Thread pink via use-livecode
Have you looked into lcTaskList?

I often use it to give myself quick bookmarks/placeholders, so long as you
already know where you are going to want to be.

It is reasonably priced and tops my listed of recommended plugins.



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Wouldn-t-it-be-nice-to-have-a-back-forward-button-in-script-editor-tp4714700p4714720.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


Re: [ANN] tinyDictionary 0_8_1_0

2017-05-04 Thread pink via use-livecode
BNig wrote
> TinyDictionary is a small footprint dictionary for Livecode from version
> 8.1 and up.
> 
> New features are user added notes and import of notes. Some code
> optimization and cleanup.
> Should work on Mac, Windows and Linux.
> See Help from Preferences Menu.
> 
> Probably best when used as plug-in. (put tinyDictionary stack into your
> plugin folder and restart Livecode. Then select it from Development menu
> -> Plugins)
> 
> http://livecodeshare.runrev.com/stack/825/TinyDictionary
> 
> Kind regards
> Bernd

Would user added notes persist across different versions of LiveCode, or
would the need to added again each time a new version of LiveCode comes out?



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/ANN-tinyDictionary-0-8-1-0-tp4714470p4714498.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


Re: develop a hybrid app

2017-05-04 Thread pink via use-livecode
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


Re: Recording audio with LC on OSX?

2017-04-07 Thread pink via use-livecode
Let me add a +1 on using sox, I have an app I wrote for Linux that records to
mp3 and that uploads to our server on completion. 

The one negative I have so far with it is that I need to specify recording
length. Otherwise if I start recording without a time limit i cannot stop
it.

Is there a way to "cancel" a shell command that is still running in LC?



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Recording-audio-with-LC-on-OSX-tp4713795p4713804.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


Trying to make an HTML5 app

2017-04-06 Thread pink via use-livecode
I am trying to sell the powers that be on getting an HTML5 license, so I made
up a quick little survey app, but I cannot successfully compile and run it.
I'm time limited here, I need to get this working by tomorrow morning if I
hope to get my boss to shell out some money... 

I have a few widgets, namely SVG icons, NavBar, and Segmented Controls.
Otherwise, just some buttons and a scrollbar, minimal scripting 

I have tried compiling with the Community versions of Livecode including:
8.1.1, 8.1.2, 8.1.3 on both Mac and Windows. 

I keep get the error "To use dlopen, you need to use Emscripten's linking
support, see https://github.com/kripken/emscripten/wiki/Linking; 

on MacOS,  using LC Community 8.1.4 RC-1: Livecode crashes when compiling 

I've tried numerous stacks, and none of them compile correctly for me, so
here are my questions as a possible HTML5 customer: 
1. What do I need to do to get past the error above? 
2. Does the commercial version of HTML5 work better (or at least
differently) than the Community version? 
3. Is there a "best" version of Livecode to use for compiling HTML5 apps? 



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Trying-to-make-an-HTML5-app-tp4713775.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


Re: Private Repo Services

2017-04-03 Thread pink via use-livecode
I'm a fan of GitLab, you can host your own or use their service for free.

See: 
https://about.gitlab.com/products/



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Private-Repo-Services-tp4713596p4713605.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


Re: Problem with converting time

2017-03-20 Thread pink via use-livecode
My experience is that HostM's time is set to GMT

when I run:
put 1489755600 into tVar 
convert tVar into dateitems 
put tVar

I get: 2017,3,17,13,0,0,6



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Problem-with-converting-time-tp4713116p4713208.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


Re: Built-in JSON functions not working in standalone

2017-01-30 Thread pink via use-livecode
JSONToArray and ArrayToJSON are both in the dictionary, if these functions
don't do what they're advertised to do, then someone needs to revise the
dictionary

from the Livecode Dictionary:

JSONToArray

Type  function
Syntax  JSONToArray(pJSON)
Associationsws.goulding.script-library.mergjson

Summary
Parse JSON to a LiveCode array



Trevor DeVore via use-livecode wrote
> To my knowledge, the functions are not built into Livecode. You may have a
> stack loaded and part of the message path that has those functions there
> already. You will need to add the functions to your project in order to
> parse/encode JSON.
> 
> Bob
> 
>> On Jan 30, 2017, at 4:12 PM, pink via use-livecode 

> use-livecode@.runrev

>  wrote:
>> 
>> The JSONToArray and ArrayToJSON functions are built into Livecode now.
>> Again, they work fine in the IDE, it is just in the standalone that it
>> fails.
> 
> ___
> use-livecode mailing list

> use-livecode@.runrev

> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Built-in-JSON-functions-not-working-in-standalone-tp4712045p4712064.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


Re: Built-in JSON functions not working in standalone

2017-01-30 Thread pink via use-livecode
I'm basing my comments on what I see in the Livecode Dictionary:

"The mergJSON external itself can not parse JSON to and from
multi-dimensional arrays. This is achieved through JSONToArray and
ArrayToJSON script functions provided in this library. The implementations
in this library are intented to be generally useful in addition to providing
a basis for implementations focussed on edge cases such as ArrayToJSON that
forces a known element to be an object."

The JSONToArray and ArrayToJSON functions are built into Livecode now.
Again, they work fine in the IDE, it is just in the standalone that it
fails.



Trevor DeVore via use-livecode wrote
> On Mon, Jan 30, 2017 at 11:53 AM, pink via use-livecode <

> use-livecode@.runrev

>> wrote:
> 
>> JSON Library is the LCB library with the command JsonImport and
>> JsonExport.
>>
>> Those are not the commands that I am using.
>>
>> I am using JSONToArray which is part of the mergjson external. I've
>> included
>> it in builds and I am still stuck.
> 
> 
> JSONToArray isn't part of mergJSON. It is a handler that you add to a
> stack
> in the message path. See the README:
> 
> https://github.com/montegoulding/mergJSON
> 
> -- 
> Trevor DeVore
> Outcome & ScreenSteps
> www.outcomeapp.io - www.screensteps.com
> ___
> use-livecode mailing list

> use-livecode@.runrev

> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Built-in-JSON-functions-not-working-in-standalone-tp4712045p4712060.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


Re: Built-in JSON functions not working in standalone

2017-01-30 Thread pink via use-livecode
JSON Library is the LCB library with the command JsonImport and JsonExport.

Those are not the commands that I am using. 

I am using JSONToArray which is part of the mergjson external. I've included
it in builds and I am still stuck.



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Built-in-JSON-functions-not-working-in-standalone-tp4712045p4712049.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


Built-in JSON functions not working in standalone

2017-01-30 Thread pink via use-livecode
I made a single change in a program that has caused it to stop working:

I switched from using FastJSON  to using the built-in JSONToArray functions. 
To be clear, I'm not talking about JsonImport which I cannot use for other
reasons.

I built standalones for Windows and Linux using LC 8.1.2 Indy, and neither
work.
I've tried searching for inclusions, I'v tried manually selecting inclusions
and including mergJSON in the build.

When I say that they do not work, I mean that any observable instance where
data is retrieved and is then displayed in some manner, the program stops
doing whatever script I have it doing. Again, this is just in the
standalone, everything works fine in the IDE.

Did I miss a step in order to get these functions to work in my standalones?



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Built-in-JSON-functions-not-working-in-standalone-tp4712045.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


Looking for advice on database syncing

2017-01-30 Thread pink via use-livecode
I am working on a new section of my CouchDB library to synchronize a Couch
database with a local array. Before I wade too far in, I wanted to get to
see if my plan makes sense..

I have two questions I'm hoping for input on:
1. Can anyone think of a scenario I am missing?
2. Is there anything missing from the conflict resolution options?

CouchDB uses revision numbers to keep track of changes, so I am trying to
map out all the possible scenarios that should exist.

quick definitions:
   localRev: revision number of the local document from last sync
   serverRev: revision number of the server document
   localDirty: boolean flag that says that the local document has been
edited since last sync  
   
Comparing each document's rev numbers, I envision the following scenarios:
   
1. document is unchanged
localRev = serverRev AND localDirty = false
action: ignore during sync

2. server document is newer
localRev < serverRev AND localDirty = false
action: download latest version

3. document has been edited locally, local copy is the same as server
localRev = serverRev AND localDirty = true
action: upload new version

4. document has been edited locally, BUT server copy is newer
localRev < serverRev AND localDirty = true
action: depends on conflict resolution settings (see below)

5. local document doesn't exist
localRev = empty and serverRev > 0
action: download document

6. local document is new, doesn't exist on server yet
localRev > 0 and serverRev = empty
action: upload document

7. The revision number is generated by the server, so there should be no
reason why localRev > serverRev unless the user has switched to a different
server that has been replicating with the original, and is behind.
action: it's an unlikely scenario... upload local document

8. if the record is marked as deleted locally or on the server, it is
deleted everywhere

Conflict resolution:
These are the options I am planning on for conflict resolution, they will
get passed as a param in the sync function

local: in conflict, keep local, discard server
server: in conflict, keep server, discard local
localmerge: keep local document, insert server document as a subkey in local
document "conflict"
servermerge: keep server document, insert local document as a subkey in
local document "conflict"
keepboth: rename "_id" of local document and upload it, download server
version




-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Looking-for-advice-on-database-syncing-tp4712046.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


Re: Exit without quitting

2017-01-19 Thread pink via use-livecode
I have a program that uses exit to top quite a lot, I compiled it for
Windows, Mac, Linux and iOS.
I've never had the program quit out on me when it hits the command.



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Exit-without-quitting-tp4711748p4711755.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


Re: [OT] KOUSEK (or replacement) code snippet manager replacement?

2017-01-13 Thread pink via use-livecode
I also use Quiver and recommend it.
I've tried getting the author to include Livecode among the languages
available for "code blocks" (maybe if there's enough of us he'll give it a
shot)

To be honest, most of my most used LC snippets I also keep in a "notebook
stack" which you are more than welcome to play with. All of the snippet data
is saved in the "arrayData" property of the tree widget. Warning... uses
obnoxious hot pink on black color scheme, you may want to adjust ;)

https://www.dropbox.com/s/1sx1a9dhulm4uuj/_MadPink_Notebook.livecode.zip?dl=0

I would recommend against Codebox (no longer under development) and
CodeCollector (keeps changing hands)





--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/OT-KOUSEK-or-replacement-code-snippet-manager-replacement-tp4711599p4711634.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


Re: how to create a list in easyJSON

2017-01-08 Thread pink via use-livecode
In the most recent version of easyJSON, numeric keyed arrays will turn into
JSON arrays, older versions may vary. 

fastJSON does this by default, but it can be overridden by passing true into
the keepNumeric parameter: 
arrayToJson(pArrayData, keepNumeric) 

for example: 
put arrayToJSON(inputArray,true) into jsonOutput 


hh via use-livecode wrote
> 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 

> bobsneidar@

> 
> 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@.runrev

>> 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@.runrev

> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/how-to-create-a-list-in-easyJSON-tp4711279p4711515.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


Re: how to create a list in easyJSON

2017-01-08 Thread pink via use-livecode
In the most recent version of easyJSON, numeric keyed arrays will turn into
JSON arrays, older versions may vary.

fastJSON does this by default, but it can be overridden by passing true into
the keepNumeric parameter:
arrayToJson(pArrayData, keepNumeric)

for example:
put arrayToJSON(myArray,true) into jsonOutput






--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/how-to-create-a-list-in-easyJSON-tp4711279p4711513.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