Re: LC 9.6.0 DP2

2020-02-17 Thread Richmond via use-livecode

"Richmond as Dodo with ruffled feathers." Discuss. ;-)

Banging on about endless upgrades is pretty pointless because, unless 
one lives in a cave, one already

knows about that.

What might be better is to offer the OP a practical solution to their 
problem.


Richmond.

On 18.02.20 0:21, Richard Gaskin via use-livecode wrote:

Richmond wrote:
> Yeah, yeah, yeah . . . sick of that stuff about endless upgrades; and,
> frankly banging on about them does not really help anyone who asks the
> sort of question the OP asked.

The OP asked about using the latest version of LiveCode on an OS that 
was EOL'd many years ago.


I replied that the LC version he's asking about doesn't run on XP. 
That older versions do is self-evident.


What exactly ruffles your feathers about providing an accurate answer 
to the question?



> There is a simple fact that some people round "these parts" as well as
> elsewhere overlook . . .
>
> Not everyone has oddles of money to endlessly upgrade, or the
> inclination to do that.

I agree it would be ideal if OS vendors supported every version 
forever, but as a practical matter they simply don't.  It isn't LC's 
fault, and I can't even blame the OS vendor.


If there's any "bad guy" here it's the literal bad guys:

We can reply on nearly every popular OS version to be patched forever, 
but after EOL the only new patches are coming from organized crime.


As long as the machine isn't connected to the open Internet it may be 
safe to use.


Beyond that, yes, it's unfortunate that OS vendors will drop support 
for hardware, and fortunate that Linux is available to give a second 
life to hardware abandoned by its maker.


With such a vast ecosystem behind it, there's probably a Linux version 
for just about any computing device made in the last 20 years.


Linux is free and open, ready to step in whenever another OS vendor 
lets you down.





___
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: Apple Alumni Reunion?

2020-02-17 Thread Mark Wieder via use-livecode

On 2/17/20 7:37 PM, Colin Holgate via use-livecode wrote:

I have a ticket. Didn’t yet figure out where I will stay, but I have a plane 
ticket too.

For anyone completely puzzled, it’s an Apple reunion where it’s only open to 
employees from the first 10 years, roughly speaking. The cut off is 1988. I 
worked at Apple Computer UK from October 1987 to end of Jan 1992, so I got an 
invite. It isn’t cheap, $100 per ticket. Also, guests are currently not allowed 
until they see what the attendance figures are like. Jim Armstrong says they 
will have a better idea in mid-March.


Yeah, I'm holding off a bit until they figure out the plus-ones, and I 
realize that skews the ticketing dynamics a bit. Most of my folks have 
dispersed, but some are still around, and it's been decades now, so I'm 
seeing who I can round up.


--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: OT: Apple Alumni Reunion?

2020-02-17 Thread Colin Holgate via use-livecode
I have a ticket. Didn’t yet figure out where I will stay, but I have a plane 
ticket too.

For anyone completely puzzled, it’s an Apple reunion where it’s only open to 
employees from the first 10 years, roughly speaking. The cut off is 1988. I 
worked at Apple Computer UK from October 1987 to end of Jan 1992, so I got an 
invite. It isn’t cheap, $100 per ticket. Also, guests are currently not allowed 
until they see what the attendance figures are like. Jim Armstrong says they 
will have a better idea in mid-March.


___
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


OT: Apple Alumni Reunion?

2020-02-17 Thread Mark Wieder via use-livecode
Just curious: anyone else here thinking about going to the Apple Alumni 
Reunion in May?


--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: encrypting script-only stacks

2020-02-17 Thread Alex Tweedly via use-livecode

H - you're doing that on 'standalonesaved'.

Isn't that too late ?  Shouldn't it be on 'savingstandalone' ?

(I've not made a standalone on years, far less ever used either of those 
handlers, but based on their names, that seems like a possible idea :-)


Alex.

On 17/02/2020 22:57, Kaveh Bazargan via use-livecode wrote:


Hi Jacqueline

I tried but could not make it work. I have posted a minimal stack on the
forum in case you get time to comment.

https://forums.livecode.com/viewtopic.php?f=9=33678=188122#p188122

Thanks. I have learnt a lot already!

Kaveh





--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

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



--
Kaveh Bazargan PhD
Director
River Valley Technologies  • Twitter
 • LinkedIn






___
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: Translate metadata to field content

2020-02-17 Thread Mark Waddingham via use-livecode
There’s the formattedStyledText property which is like the formattedText but in 
the form of a style array. If you sum the number of chars in each run up until 
you find your tag, then you can should be able to use the formattedheight of 
char 1 up to the summed index to get the vscroll you need.

Warmest Regards,

Mark.

Sent from my iPhone

> On 17 Feb 2020, at 22:50, J. Landman Gay via use-livecode 
>  wrote:
> 
> Thanks, I'll save that for someday. In this case though, the text is wrapped 
> and there are anchors scattered around inside paragraphs. Unless someone else 
> has an idea it looks like I'm going to have to extract lookup tables. That's 
> going to be quite a job.
> 
>> On 2/17/20 3:59 PM, Richard Gaskin via use-livecode wrote:
>> J. Landman Gay wrote:
>>> I'm still working on htmltext in a field. There are anchors that indicate 
>>> positions elsewhere in the file. A browser will automatically find and 
>>> scroll to the right place in the text. I need to reproduce that.
>>> 
>>> Is there a way to translate an anchor like "#12345" to the location in the 
>>> visible field text it links to?
>>> 
>>> I've thought of a couple of alternate ways to do it involving lookup files, 
>>> but it would be better to do a direct translation to avoid the extra 
>>> overhead.
>> The closest I have doesn't account for softwraps, but FWIW:
>> function fwAnchorTagLine pFldObj, pTag
>>local tA
>>local tLastLine
>>local tNumRuns
>>put the styledText of pFldObj into tA
>>put item 2 of extents(tA) into tLastLine
>>repeat with i = 1 to tLastLine
>>   put item 2 of extents(tA[i]["runs"]) into tNumRuns
>>   repeat with j = 1 to tNumRuns
>>  if pTag is in tA[i]["runs"][j]["style"]["linkText"] \
>>AND "link" is not in \
>>   tA[i]["runs"][j]["style"]["textStyle"] then
>> return i
>>  end if
>>   end repeat
>>end repeat
>> end fwAnchorTagLine
> 
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
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: encrypting script-only stacks

2020-02-17 Thread Kaveh Bazargan via use-livecode
>
>
>>
>>
> Sounds great Jacqueline. I will give it a go. :-)
>

Hi Jacqueline

I tried but could not make it work. I have posted a minimal stack on the
forum in case you get time to comment.

https://forums.livecode.com/viewtopic.php?f=9=33678=188122#p188122

Thanks. I have learnt a lot already!

Kaveh


>
>
>>
>> --
>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>> HyperActive Software   | http://www.hyperactivesw.com
>>
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>
>
> --
> Kaveh Bazargan PhD
> Director
> River Valley Technologies  • Twitter
>  • LinkedIn
> 
>


-- 
Kaveh Bazargan PhD
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
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: Translate metadata to field content

2020-02-17 Thread J. Landman Gay via use-livecode
Thanks, I'll save that for someday. In this case though, the text is wrapped and there are 
anchors scattered around inside paragraphs. Unless someone else has an idea it looks like I'm 
going to have to extract lookup tables. That's going to be quite a job.


On 2/17/20 3:59 PM, Richard Gaskin via use-livecode wrote:

J. Landman Gay wrote:
I'm still working on htmltext in a field. There are anchors that indicate positions elsewhere 
in the file. A browser will automatically find and scroll to the right place in the text. I 
need to reproduce that.


Is there a way to translate an anchor like "#12345" to the location in the visible field text 
it links to?


I've thought of a couple of alternate ways to do it involving lookup files, but it would be 
better to do a direct translation to avoid the extra overhead.


The closest I have doesn't account for softwraps, but FWIW:


function fwAnchorTagLine pFldObj, pTag
    local tA
    local tLastLine
    local tNumRuns

    put the styledText of pFldObj into tA
    put item 2 of extents(tA) into tLastLine
    repeat with i = 1 to tLastLine
   put item 2 of extents(tA[i]["runs"]) into tNumRuns
   repeat with j = 1 to tNumRuns
  if pTag is in tA[i]["runs"][j]["style"]["linkText"] \
    AND "link" is not in \
   tA[i]["runs"][j]["style"]["textStyle"] then
     return i
  end if
   end repeat
    end repeat
end fwAnchorTagLine






--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com


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


Re: LC 9.6.0 DP2

2020-02-17 Thread Richard Gaskin via use-livecode

Richmond wrote:
> Yeah, yeah, yeah . . . sick of that stuff about endless upgrades; and,
> frankly banging on about them does not really help anyone who asks the
> sort of question the OP asked.

The OP asked about using the latest version of LiveCode on an OS that 
was EOL'd many years ago.


I replied that the LC version he's asking about doesn't run on XP. That 
older versions do is self-evident.


What exactly ruffles your feathers about providing an accurate answer to 
the question?



> There is a simple fact that some people round "these parts" as well as
> elsewhere overlook . . .
>
> Not everyone has oddles of money to endlessly upgrade, or the
> inclination to do that.

I agree it would be ideal if OS vendors supported every version forever, 
but as a practical matter they simply don't.  It isn't LC's fault, and I 
can't even blame the OS vendor.


If there's any "bad guy" here it's the literal bad guys:

We can reply on nearly every popular OS version to be patched forever, 
but after EOL the only new patches are coming from organized crime.


As long as the machine isn't connected to the open Internet it may be 
safe to use.


Beyond that, yes, it's unfortunate that OS vendors will drop support for 
hardware, and fortunate that Linux is available to give a second life to 
hardware abandoned by its maker.


With such a vast ecosystem behind it, there's probably a Linux version 
for just about any computing device made in the last 20 years.


Linux is free and open, ready to step in whenever another OS vendor lets 
you down.


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com


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


Re: Translate metadata to field content

2020-02-17 Thread Richard Gaskin via use-livecode

J. Landman Gay wrote:
I'm still working on htmltext in a field. There are anchors that indicate positions elsewhere 
in the file. A browser will automatically find and scroll to the right place in the text. I 
need to reproduce that.


Is there a way to translate an anchor like "#12345" to the location in the visible field text 
it links to?


I've thought of a couple of alternate ways to do it involving lookup files, but it would be 
better to do a direct translation to avoid the extra overhead.


The closest I have doesn't account for softwraps, but FWIW:


function fwAnchorTagLine pFldObj, pTag
   local tA
   local tLastLine
   local tNumRuns

   put the styledText of pFldObj into tA
   put item 2 of extents(tA) into tLastLine
   repeat with i = 1 to tLastLine
  put item 2 of extents(tA[i]["runs"]) into tNumRuns
  repeat with j = 1 to tNumRuns
 if pTag is in tA[i]["runs"][j]["style"]["linkText"] \
   AND "link" is not in \
  tA[i]["runs"][j]["style"]["textStyle"] then
return i
 end if
  end repeat
   end repeat
end fwAnchorTagLine



--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

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


Re: Invalid Image File / Original Image Size

2020-02-17 Thread Phil Davis via use-livecode

Hi Ralph,

Certainly Klaus's approach will work. Here is another that works.

As you know, image files have "signatures" in their headers to identify 
what kind of files they are:


   https://en.wikipedia.org/wiki/List_of_file_signatures
   (the "ISO 8859-1" column)


Once you know the signatures of the image file types you want to allow, 
you could do something like this:


on mouseUp
    answer file "Pick an image file:"
    if it is empty then exit to top

    answer isSupportedImage(it)
end mouseUp


function isSupportedImage pPath
    # Allow JPG, PNG and GIF images.

    put byte 1 to 12 of url ("binfile:" & pPath) into tHeader
    switch
    case "JFIF" is in tHeader
    case "PNG" is in tHeader
    case "GIF" is in tHeader
    return true
    break
    default
    return false
    break
    end switch
end isSupportedImage


I have used this approach in projects before and it seems to work reliably.

Phil Davis



On 2/17/20 1:08 PM, Ralph DiMola via use-livecode wrote:

What's the best way to know if I set the filename of an image control and
the file is either not an image or in an unsupported format? I'm getting
https links to unknown images so I check images before app deployment.

After resizing an image is there a way to know the original dimensions? Just
wondering? I now save the original x/y sizes in properties so I know them
after a resize.

Thanks

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net


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



--
Phil Davis
503-307-4363

___
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


[ANN] This Week in LiveCode 213

2020-02-17 Thread panagiotis merakos via use-livecode
Hi all,

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

Read issue #213 here: http://bit.ly/37zEpoQ

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

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

-- 
Panagiotis Merakos 
LiveCode Software Developer

Everyone Can Create Apps 
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Invalid Image File / Original Image Size

2020-02-17 Thread Klaus major-k via use-livecode
Hi Ralph,

> Am 17.02.2020 um 22:08 schrieb Ralph DiMola via use-livecode 
> :
> 
> What's the best way to know if I set the filename of an image control and
> the file is either not an image or in an unsupported format? I'm getting
> https links to unknown images so I check images before app deployment.

not sure, but you can check "the result2 after setting the filename.
Will be EMPTY on success.

> After resizing an image is there a way to know the original dimensions? Just
> wondering? I now save the original x/y sizes in properties so I know them
> after a resize.

"the formattedheight of img XYZ" and "the formattedwidth of img xyz" will 
always return
the info about the original dimensions of an image. No need to save this info 
somehow.

> Thanks
> 
> Ralph DiMola

Best

Klaus

--
Klaus Major
https://www.major-k.de
kl...@major-k.de


___
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


Invalid Image File / Original Image Size

2020-02-17 Thread Ralph DiMola via use-livecode
What's the best way to know if I set the filename of an image control and
the file is either not an image or in an unsupported format? I'm getting
https links to unknown images so I check images before app deployment.

After resizing an image is there a way to know the original dimensions? Just
wondering? I now save the original x/y sizes in properties so I know them
after a resize.

Thanks

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net


___
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


Translate metadata to field content

2020-02-17 Thread J. Landman Gay via use-livecode
I'm still working on htmltext in a field. There are anchors that indicate positions elsewhere 
in the file. A browser will automatically find and scroll to the right place in the text. I 
need to reproduce that.


Is there a way to translate an anchor like "#12345" to the location in the visible field text 
it links to?


I've thought of a couple of alternate ways to do it involving lookup files, but it would be 
better to do a direct translation to avoid the extra overhead.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

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


Re: LC 9.6.0 DP2

2020-02-17 Thread Richmond via use-livecode
Yeah, yeah, yeah . . . sick of that stuff about endless upgrades; and, 
frankly
banging on about them does not really help anyone who asks the sort of 
question

the OP asked.

There is a simple fact that some people round "these parts" as well as 
elsewhere overlook . . .


Not everyone has oddles of money to endlessly upgrade, or the 
inclination to do that.


There are an awful lot of people around and about (especially outwith 
North America)
who are deploying supposedly out-dated operating systems to good effect; 
and they also need software.


I use LiveCode 8.1.10 to produce standalones for Windows XP and MacOS 
Lion because I have people who need

"stuff" to run on those systems.

Richmond.

On 17.02.20 22:08, Richard Gaskin via use-livecode wrote:

strongly recommends upgrading



___
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 9.6.0 DP2

2020-02-17 Thread Richard Gaskin via use-livecode

Charles Szasz wrote:

> Has anyone noticed that LC 9.6.0 DP2 creates 32 bit Windows
> standalones that are not compatible with Windows XP?

The Release Notes list these Win version as compatible with LC 9.6dp2:
- Windows 7 (both 32-bit and 64-bit)
- Windows Server 2008
- Windows 8.x (Desktop)
- Windows 10

Microsoft ended support for XP in Aug 2014, and strongly recommends 
upgrading to a supported version.


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.co

___
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: DiffPatch question

2020-02-17 Thread Brian Milby via use-livecode
If you want to efficiently store all changes to a file.  This is what Git does.

The other advantage is that user C could also perform an edit to A.  You could 
apply the AC diff on top of B to get a combined update.  (Also what Git does)

Thanks,
Brian
On Feb 17, 2020, 2:58 PM -0500, Richard Gaskin via use-livecode 
, wrote:
> Consider this scenario:
>
> I'm writing text A, and another team member has revised it in text B.
>
> I can get a list of changes from A to B with DiffCompare. Cool.
>
> Then with DiffPatch I can apply that diff listing to A to make it like
> the revised B.
>
> What is the advantage of using DiffPatch over simply using the full text
> of B?
>
> --
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> 
> ambassa...@fourthworld.com http://www.FourthWorld.com
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


DiffPatch question

2020-02-17 Thread Richard Gaskin via use-livecode

Consider this scenario:

I'm writing text A, and another team member has revised it in text B.

I can get a list of changes from A to B with DiffCompare.  Cool.

Then with DiffPatch I can apply that diff listing to A to make it like 
the revised B.


What is the advantage of using DiffPatch over simply using the full text 
of B?


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

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


LC 9.6.0 DP2

2020-02-17 Thread Charles Szasz via use-livecode
Has anyone noticed that LC 9.6.0 DP2 creates 32 bit Windows standalones that 
are not compatible with Windows XP?  The standalones did not have the screen 
resolution checkbox checked. 

Sent from my iPad
___
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: curl in LiveCode

2020-02-17 Thread Andrew Bell via use-livecode
Thank you Matthias! I figured it was possible and I might be close.  
Hopefully the archive of this thread will be useful for someone in the  
future.


--Andrew Bell


Subject: Re: curl in LiveCode
Message-ID: 
Content-Type: text/plain;   charset=utf-8

Hi again,
rereading my post i noticed that the Accept...   is also a header.
So this a modified version of my sample script

-- build header

put  
"Key:e9242121ffd235b16f06c6e09cfd4373d18aa85d77dab4b858601051d4dd5b914ec298a3a29520ab" into pHeaders -- api  
key


put return & "Accept:=application/json" after pHeaders -- request JSON

-- now build url with parameters
put "https://api.abuseipdb.com/api/v2/check; into pURL

put "?ipAddress=172.217.9.174" after pURL -- add ip address

put "=90" after pUrl -- this is just to show how  
additional parameters are added to the url


put "" after pURL -- this is just to show how additional  
parameters are added to the url


-- now get the data
put tsNetGetSync(pURL, pHeaders, rOutHeaders, rResult, rBytes) into tResult

put rOutHeaders after message -- show the received headers in message box


-
Matthias Rebbe
Life Is Too Short For Boring Code

Am 13.02.2020 um 22:45 schrieb matthias rebbe via use-livecode  
:


Hi,

i just did a short test

this works so far
put  
"Key:e9242121ffd235b16f06c6e09cfd4373d18aa85d77dab4b858601051d4dd5b914ec298a3a29520ab" into  
pHeaders
put  
tsNetGetSync("https://api.abuseipdb.com/api/v2/check?ipAddress=172.217.9.174;, pHeaders, rOutHeaders, rResult, rBytes) into  
tResult


tResult contains the same value as  the one returned executing curl  
via shell.


The only thing i don?t know is where and how to add the  
Accept:=application/json





-
Matthias Rebbe
Life Is Too Short For Boring Code

Am 13.02.2020 um 22:27 schrieb Andrew Bell via use-livecode  
:


An API that I use was sunset on 2020-02-01 so I need to convert my  
previous stack calls from their v1 to v2 format. The original  
method was a simple url post but the updated method uses GET via  
curl. I was able to convert my calls to the new format, and can  
successfully get data when using curl through Terminal, but can't  
figure out how to properly curl in LiveCode.


There are several old posts (mailing list and forum) that explain  
how to setup httpHeaders then POST or PUT using libURL, but I  
can't seem to find a GET option. Running a shell command works,  
but I'd prefer a method that ports to mobile if possible. I tried  
a couple tsNet commands, but keep getting assorted 4xx response  
codes...

tsNetGet - 422
tsNetCustom - 400
tsNetPost - 405

Can anyone explain how to issue this curl command through tsNet or  
libURL and read the JSON that is returned?
curl -G --header  
"Key:e9242121ffd235b16f06c6e09cfd4373d18aa85d77dab4b858601051d4dd5b914ec298a3a29520ab" --header Accept:=application/json --data ipAddress=172.217.9.174  
https://api.abuseipdb.com/api/v2/check


That is a working API key that I'm willing to throw away now that  
is public.

v1 of API is @ https://www.abuseipdb.com/api
v2 of API is @ https://docs.abuseipdb.com/

--Andrew Bell


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode








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


Re: LC Server - HTTP response code 500: permission denied error

2020-02-17 Thread Martin Koob via use-livecode
Hi Ralf

Been on holiday so was not able to follow up on this.

I added the index.lc segment in the URL and when connecting to the API on the 
existing server that works.

When I connect to the new server on the new host I still get the message.

lscgid: 
execve():/home/videolinkwell/sites/api.videolinkwell.ca/cgi-bin/livecode-server:
 No such file or directory


Any other ideas about this?

Regards,

Martin Koob





> On Feb 10, 2020, at 2:20 PM, Ralf Bitter via use-livecode 
>  wrote:
> 
> Hi Martin,
> 
> this is just a shot in the dark: What happens if
> your URL includes “index.lc”, like:
> 
> https://api.myapp.com/index.lc/myapp_db/listProjects
> 
> 
> Ralf
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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


Re: LC Server - HTTP response code 500: permission denied error

2020-02-17 Thread Martin Koob via use-livecode
Hi Ralf

Thanks for your response.

I’ve  been on holiday so was not able to follow up on this.

I added the index.lc segment in the URL and when connecting to the API on the 
existing server that works.

When I connect to the new server on the new host I still get the message.


 'lscgid: execve():/home/myapp/sites/api.myapp.com/cgi-bin/livecode-server: 
 No such file or Directory’

So it does look like that it is the path to the server that is wrong but I have 
triple checked and it is correct.




Regards,

Martin Koob





> On Feb 10, 2020, at 2:20 PM, Ralf Bitter via use-livecode 
>  wrote:
> 
> Hi Martin,
> 
> this is just a shot in the dark: What happens if
> your URL includes “index.lc”, like:
> 
> https://api.myapp.com/index.lc/myapp_db/listProjects
> 
> 
> Ralf
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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


Re: Progressive Web App (PWA)

2020-02-17 Thread Ingar Roggen via use-livecode
I see, «progressive»…

> 16. feb. 2020 kl. 22:33 skrev doc hawk via use-livecode 
> :
> 
> 
> On Feb 16, 2020, at 5:15 AM, Paul Dupuis via use-livecode 
>  wrote:
>> 
>> "A progressive web application is a type of application software delivered 
>> through the web, built using common web technologies including HTML, CSS and 
>> JavaScript. It is intended to work on any platform that uses a 
>> standards-compliant browser.”
> 
> 
> And foolish me thought we were going to have a political discussion . . .
> 
> :)
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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