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
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,
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
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
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
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
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
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
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
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:
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:
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
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
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
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
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
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
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
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,
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
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
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
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
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
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
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
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
___
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
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,
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:
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
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
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
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
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:
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":
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
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
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
___
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 :)
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
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:
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
--
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:
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:
>
> 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
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
quot;, ("/folder/some.txt"))
> intoField"Name1"ofcard1
>
> writing--
>
> *put*phx_DropboxWriteFile("sandbox", ("/folder/some.txt"), "text/html",
> true, myName) intofield"udontcme"ofcard1
>
> --close---
&
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
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
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
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
>>
>>
>>
>> -
>> -
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
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
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
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
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
57 matches
Mail list logo