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

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,

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

Re: Built-in JSON functions not working in standalone

2017-01-30 Thread pink via use-livecode
s 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

Re: Built-in JSON functions not working in standalone

2017-01-30 Thread pink via use-livecode
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. >> >> Th

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

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

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

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

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:

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:

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

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

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

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

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

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

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

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,

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

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

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

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

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

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

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

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 ___

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

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,

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:

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

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

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

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

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:

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":

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

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

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 ___

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 :)

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

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:

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

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:

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:

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

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

Re: Need crash course in Dropbox library

2019-02-17 Thread pink via use-livecode
quot;, ("/folder/some.txt")) > intoField"Name1"ofcard1 > > writing-- > > *put*phx_DropboxWriteFile("sandbox", ("/folder/some.txt"), "text/html", > true, myName) intofield"udontcme"ofcard1 > > --close--- &

Re: Need crash course in Dropbox library

2019-02-18 Thread pink via use-livecode
ve 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

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

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

Re: Need crash course in Dropbox library

2019-02-15 Thread pink via use-livecode
till 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 >> >> >> >> - >> -

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

Re: Need crash course in Dropbox library

2019-02-19 Thread pink via use-livecode
t 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 Davi

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

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

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