Re: glo webhooks

2018-12-03 Thread AndyP via use-livecode
Glo boards and GitKracken are great pieces of software, Ive been using both
for a while now and find them both very intuitive  and easy to use, I
especially like the Globoards intigration with GitHub issues.

I somehow managed to miss the webhooks announcement, exciting!...lets see
what we can come up with.



-
Andy Piddock 


My software never has bugs. It just develops random features. 

TinyIDE  a Free alternative minimalist IDE Plugin for LiveCode 


Script editor Themer for LC http://2108.co.uk  

PointandSee is a FREE simple but full featured under cursor colour picker / 
finder.
http://www.pointandsee.co.uk  - made with LiveCode
--
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: revsecurity.dylib is not 64-bit on macOS

2018-12-03 Thread panagiotis merakos via use-livecode
Hello all,

This will be fixed in the next LiveCode release. If you can't wait, you can
apply the fix locally:

https://github.com/livecode/livecode/pull/6806

Best,
Panos

On Mon, Dec 3, 2018, 21:56 Brian Milby via use-livecode <
use-livecode@lists.runrev.com wrote:

> Just need to de-fat the file.  Need to change to the location within the
> app package in the terminal and use the following command:
>
> lipo revsecurity.dylib -remove i386 -output revsecurity.dylib
>
> May need to use "sudo".  Also, will need to resign the app after doing so.
>
> On Mon, Dec 3, 2018 at 3:43 PM kee nethery via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > Trying to upload to the Mac App Store and I get this error.
> >
> > “Unsupported Architectures. Your executable contained the following
> > disallowed architectures: ‘[i386 (in
> com.elloco.ellocotools.pkg/Payload/El
> > Loco Tools.app/Contents/MacOS/revsecurity.dylib)]’. New apps submitted to
> > the Mac App Store must support 64-bit starting January 2018, and Mac app
> > updates and existing apps must support 64-bit starting June 2018.”
> >
> > Is there a 64-bit revsecurity.dylib I can download and swap in to replace
> > the 32-bit version installed by LiveCode Standalone App Builder?
> >
> > Alternatively, what functionality must I remove from my app so that
> > revsecurity.dylib does not get installed (or can be safely removed
> > manually)?
> >
> > Kee Nethery
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: revsecurity.dylib is not 64-bit on macOS

2018-12-03 Thread Brian Milby via use-livecode
Just need to de-fat the file.  Need to change to the location within the
app package in the terminal and use the following command:

lipo revsecurity.dylib -remove i386 -output revsecurity.dylib

May need to use "sudo".  Also, will need to resign the app after doing so.

On Mon, Dec 3, 2018 at 3:43 PM kee nethery via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Trying to upload to the Mac App Store and I get this error.
>
> “Unsupported Architectures. Your executable contained the following
> disallowed architectures: ‘[i386 (in com.elloco.ellocotools.pkg/Payload/El
> Loco Tools.app/Contents/MacOS/revsecurity.dylib)]’. New apps submitted to
> the Mac App Store must support 64-bit starting January 2018, and Mac app
> updates and existing apps must support 64-bit starting June 2018.”
>
> Is there a 64-bit revsecurity.dylib I can download and swap in to replace
> the 32-bit version installed by LiveCode Standalone App Builder?
>
> Alternatively, what functionality must I remove from my app so that
> revsecurity.dylib does not get installed (or can be safely removed
> manually)?
>
> Kee Nethery
> ___
> 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

revsecurity.dylib is not 64-bit on macOS

2018-12-03 Thread kee nethery via use-livecode
Trying to upload to the Mac App Store and I get this error.

“Unsupported Architectures. Your executable contained the following disallowed 
architectures: ‘[i386 (in com.elloco.ellocotools.pkg/Payload/El Loco 
Tools.app/Contents/MacOS/revsecurity.dylib)]’. New apps submitted to the Mac 
App Store must support 64-bit starting January 2018, and Mac app updates and 
existing apps must support 64-bit starting June 2018.”

Is there a 64-bit revsecurity.dylib I can download and swap in to replace the 
32-bit version installed by LiveCode Standalone App Builder? 

Alternatively, what functionality must I remove from my app so that 
revsecurity.dylib does not get installed (or can be safely removed manually)?

Kee Nethery
___
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: Setting hidden of lines very slow

2018-12-03 Thread Alex Tweedly via use-livecode
On 03/12/2018 14:51, Håkan Liljegren via use-livecode 
 wrote:



and you can also shave off some milliseconds in the styledText version by using 
foreach:

…


It is a bit strange though that the foreach always seams to be faster. If we 
try to sum an array with 100 000 element like:




I know you were demonstrating the difference between "repeat for each 
key" and "repeat with i=", and using 'sum' to do so (very effectively).


But for completeness, just in case someone wanted to sum an array, I 
would point out that  you could also do



put the long seconds into tStart
put sum(tData) into tSum3
put the long seconds - tStart into tTime3

and that would another 4x faster again :-)
Alex



___
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: Issues with app delivery!

2018-12-03 Thread Brian Milby via use-livecode
Yes, that is what I meant.

Thanks,
Brian
On Dec 3, 2018, 12:59 PM -0600, kee nethery via use-livecode 
, wrote:
>
>
> > On Nov 28, 2018, at 1:51 PM, Rick Harrison via use-livecode 
> >  wrote:
> >
> > Brian,
> >
> > Do you mean:
> >
> > sudo codesign --verbose --deep --force --sign "3rd Party Mac Developer 
> > Application: MYCOMPANY NAME (KDSK9SJUNK)” --entitlements  
> > 
>
> assuming you meant --entitlements 
>
> Kee
>
> >
> > If so, yes I did that.
> >
> > Rick
> >
> > > On Nov 28, 2018, at 3:13 PM, Brian Milby via use-livecode 
> > >  wrote:
> > >
> > > When you did the codesign, did you use the "--entitlements" option? (I saw
> > > this in a semi-related post on rejections)
>
> ___
> 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: Issues with app delivery!

2018-12-03 Thread kee nethery via use-livecode


> On Nov 28, 2018, at 1:51 PM, Rick Harrison via use-livecode 
>  wrote:
> 
> Brian,
> 
> Do you mean:
> 
> sudo codesign --verbose --deep --force --sign "3rd Party Mac Developer 
> Application: MYCOMPANY NAME (KDSK9SJUNK)” --entitlements  
> 

assuming you meant --entitlements 

Kee

> 
> If so, yes I did that.
> 
> Rick
> 
>> On Nov 28, 2018, at 3:13 PM, Brian Milby via use-livecode 
>>  wrote:
>> 
>> When you did the codesign, did you use the "--entitlements" option?  (I saw
>> this in a semi-related post on rejections)

___
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: glo webhooks

2018-12-03 Thread Brian Milby via use-livecode
While GitHub is an example of a server based solution, git does not require a 
server.  You can establish a repository on your computer and manage a project 
with version control.  The visual tools do help.

Binary files don’t benefit from change tracking, but a tool like Script Tracker 
can export the scripts of a stack so you can easily follow the changes to the 
code of a project without needing to move to script only stacks right away.

Thanks,
Brian
On Dec 3, 2018, 11:39 AM -0600, Mike Kerner via use-livecode 
, wrote:
> git is a version control system. At this time it is the most
> common/popular one. Since it is command-line based, there are many visual
> tools for dealing with it.
>
> On Mon, Dec 3, 2018 at 12:03 PM Graham Samuel via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > Thanks - since it has at least one client, git then must be a server
> > system: maybe I had already guessed that. Not sure what kind of issues can
> > be managed visually, nor what a board is nor why or how it can be synced…
> > but don’t waste your time to answer fogies like me. Either I will set
> > myself to study github properly or sink back into the shadows. Underlyingly
> > I have been worried for some time that in order to be used with modern
> > version management tools, LC has had to be either altered or perhaps just
> > used in a way which is very alien to its Hypercard “software development
> > for the rest of us” origins. For this reason it is becoming hard to be
> > productive in LC just using common sense and programming experience.
> >
> > But I guess this is a rant, so I will stop.
> >
> > Graham
> >
> > > On 3 Dec 2018, at 16:23, Mike Kerner via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> > >
> > > gitkraken is a git client
> > > glo is a visual tool for issue management. boards can be synced with
> > > github projects or standalone.
> > >
> > > On Mon, Dec 3, 2018 at 10:46 AM Graham Samuel via use-livecode <
> > > use-livecode@lists.runrev.com> wrote:
> > >
> > > > It is sad, after more than half a century in the business, to read
> > > > something about software development that means absolutely nothing to
> > me…
> > > > OK, Google will come to the rescue, but I am seriously thinking that
> > maybe
> > > > it's time to give up.
> > > >
> > > > (Sigh)
> > > >
> > > > Graham
> > > >
> > > > > On 3 Dec 2018, at 14:51, Mike Kerner via use-livecode <
> > > > use-livecode@lists.runrev.com> wrote:
> > > > >
> > > > > I see that gitkraken's glo boards now support webhooks
> > > > > who's using gitkraken, and is anyone thinking about implementing
> > webhook
> > > > > handling for glo?
> > > > >
> > > > > --
> > > > > 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@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
> > >
> > >
> > >
> > > --
> > > 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@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
>
>
>
> --
> 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@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

Re: glo webhooks

2018-12-03 Thread Mike Kerner via use-livecode
git is a version control system.  At this time it is the most
common/popular one.  Since it is command-line based, there are many visual
tools for dealing with it.

On Mon, Dec 3, 2018 at 12:03 PM Graham Samuel via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Thanks - since it has at least one client, git then must be a server
> system: maybe I had already guessed that. Not sure what kind of issues can
> be managed visually, nor what a board is nor why or how it can be synced…
> but don’t waste your time to answer fogies like me. Either I will set
> myself to study github properly or sink back into the shadows. Underlyingly
> I have been worried for some time that in order to be used with modern
> version management tools, LC has had to be either altered or perhaps just
> used in a way which is very alien to its Hypercard “software development
> for the rest of us” origins. For this reason it is becoming hard to be
> productive in LC just using common sense and programming experience.
>
> But I guess this is a rant, so I will stop.
>
> Graham
>
> > On 3 Dec 2018, at 16:23, Mike Kerner via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > gitkraken is a git client
> > glo is a visual tool for issue management.  boards can be synced with
> > github projects or standalone.
> >
> > On Mon, Dec 3, 2018 at 10:46 AM Graham Samuel via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> >
> >> It is sad, after more than half a century in the business, to read
> >> something about software development that means absolutely nothing to
> me…
> >> OK, Google will come to the rescue, but I am seriously thinking that
> maybe
> >> it's time to give up.
> >>
> >> (Sigh)
> >>
> >> Graham
> >>
> >>> On 3 Dec 2018, at 14:51, Mike Kerner via use-livecode <
> >> use-livecode@lists.runrev.com> wrote:
> >>>
> >>> I see that gitkraken's glo boards now support webhooks
> >>> who's using gitkraken, and is anyone thinking about implementing
> webhook
> >>> handling for glo?
> >>>
> >>> --
> >>> 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@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
> >
> >
> >
> > --
> > 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@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



-- 
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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: hhPDFViewer v0.8.0

2018-12-03 Thread hh via use-livecode
> Kaveh wrote:
> Any way of selecting or copying text from the PDF file?
> Any way of finding a particular text in the PDF?

The problem is:
The viewer template of pdfJS cannot be used if one would like to load
PDFs from anywhere, not only from a server where the script resides.
So I had to use the "atomic" features of pdfJS for the current viewer.

But there is some "text-layer" code one can use for one's own project.
There is no documentation about that, one has to dive deep into the code.
It is a lot of code and it will need at least 2-3 full days to implement.

I will do it, hopefully this year, especially as printing to pdf from the
browser widget is probably coming next year, in LC 9.1 (read on github).

___
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: Setting hidden of lines very slow

2018-12-03 Thread hh via use-livecode
Sorry, the styledText method of my last post had a logic fault
(style-runs without textcolor are ignored).

The following works now for me.

-- styledText method
on mouseUp
  put the millisecs into m1
  lock screen; lock messages
  put the styledText of field "text" into tTextA
  repeat for each key aKey in tTextA
put tTextA[aKey]["runs"] into T
put true into isEmpty
repeat for each key I in T
  put isEmpty and (T[I]["style"]["textcolor"] is empty) into isEmpty
end repeat
put isEmpty into tTextA[aKey]["style"]["hidden"]
  end repeat
  set the styledText of fld "text" to tTextA
  put the millisecs - m1 into fld "timing"
end mouseUp

-- htmlText method
on mouseUp
  put the millisecs into m1
  lock screen; lock messages
  put ("color=" is in fld 1) into isInField
  if isInField then
replace "color=" with numTochar(1) in fld 1 preserving styles
  end if
  set linedel to "http://lists.runrev.com/mailman/listinfo/use-livecode


Re: glo webhooks

2018-12-03 Thread Graham Samuel via use-livecode
Thanks - since it has at least one client, git then must be a server system: 
maybe I had already guessed that. Not sure what kind of issues can be managed 
visually, nor what a board is nor why or how it can be synced… but don’t waste 
your time to answer fogies like me. Either I will set myself to study github 
properly or sink back into the shadows. Underlyingly I have been worried for 
some time that in order to be used with modern version management tools, LC has 
had to be either altered or perhaps just used in a way which is very alien to 
its Hypercard “software development for the rest of us” origins. For this 
reason it is becoming hard to be productive in LC just using common sense and 
programming experience. 

But I guess this is a rant, so I will stop.

Graham

> On 3 Dec 2018, at 16:23, Mike Kerner via use-livecode 
>  wrote:
> 
> gitkraken is a git client
> glo is a visual tool for issue management.  boards can be synced with
> github projects or standalone.
> 
> On Mon, Dec 3, 2018 at 10:46 AM Graham Samuel via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> It is sad, after more than half a century in the business, to read
>> something about software development that means absolutely nothing to me…
>> OK, Google will come to the rescue, but I am seriously thinking that maybe
>> it's time to give up.
>> 
>> (Sigh)
>> 
>> Graham
>> 
>>> On 3 Dec 2018, at 14:51, Mike Kerner via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>> 
>>> I see that gitkraken's glo boards now support webhooks
>>> who's using gitkraken, and is anyone thinking about implementing webhook
>>> handling for glo?
>>> 
>>> --
>>> 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@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
> 
> 
> 
> -- 
> 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@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: Setting hidden of lines very slow

2018-12-03 Thread hh via use-livecode
> Hakan wrote:
> The code will not work if you have htmltext containing the text "color=" like:
> To set the color you can use color="#fa3b42"

Oh yes, was rather silly of me not to keep this in mind. There is a simple 
remedy:

put ("color=" is in fld 1) into isInField
if isInField then replace "color=" with numToChar(5) in fld 1 preserving styles
.. do the htmltext-method ..
if isInField replace numToChar(5) with "color=" in fld 1 preserving styles

what doesn't slow down if "color=" is in only a few lines.

> and you can also shave off some milliseconds in the styledText version by 
> using foreach:
> …
> repeat for each key aKey in tTextA
>   # Check if first run has textcolor set
>   put (tTextA[aKey]["runs"][1]["style"]["textcolor"] is empty) \
> into tTextA[aKey]["style"]["hidden"]
>  end repeat
> …
> For me that is always faster than your clever 'offset("color="…' version.

This may be true but the above doesn't work for the OP's question: To hide 
lines with
*any* textcolor property set, not only the textcolor for the whole line.

The styledText method is still very fast with the adjusted version below (make 
it better!).

For up to at about 2500 short lines the htmlText method is here still faster.
For more than 2500 short lines or if many text lines contain "color=" the 
styledText method
is faster.

The OP will simply take the version that is faster/better suited for his use 
case.

Here the two working methods that hide *exactly* the lines (more exactly: 
paragraphs)
of a field that contain no colored chunk.

-- styledText method
on mouseUp
  put the millisecs into m1
  lock screen; lock messages
  put the styledText of field "text" into st
  put st into tTextA
  repeat for each key aKey in tTextA
put tTextA[aKey]["runs"] into T
repeat for each key I in T
  put (T[I]["style"]["textcolor"] is empty) into 
tTextA[aKey]["style"]["hidden"]
end repeat
  end repeat
  set the styledText of fld "text" to tTextA
  put the millisecs - m1 into fld "timing"
end mouseUp

-- htmlText method
on mouseUp
  put the millisecs into m1
  lock screen; lock messages
  put ("color=" is in fld 1) into isInField
  if isInField then
replace "color=" with numTochar(1) in fld 1 preserving styles
  end if
  put the htmltext of fld 1 into ht
  set linedel to "http://lists.runrev.com/mailman/listinfo/use-livecode

Re: glo webhooks

2018-12-03 Thread Mike Kerner via use-livecode
gitkraken is a git client
glo is a visual tool for issue management.  boards can be synced with
github projects or standalone.

On Mon, Dec 3, 2018 at 10:46 AM Graham Samuel via use-livecode <
use-livecode@lists.runrev.com> wrote:

> It is sad, after more than half a century in the business, to read
> something about software development that means absolutely nothing to me…
> OK, Google will come to the rescue, but I am seriously thinking that maybe
> it's time to give up.
>
> (Sigh)
>
> Graham
>
> > On 3 Dec 2018, at 14:51, Mike Kerner via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > I see that gitkraken's glo boards now support webhooks
> > who's using gitkraken, and is anyone thinking about implementing webhook
> > handling for glo?
> >
> > --
> > 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@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



-- 
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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: glo webhooks

2018-12-03 Thread Graham Samuel via use-livecode
It is sad, after more than half a century in the business, to read something 
about software development that means absolutely nothing to me… OK, Google will 
come to the rescue, but I am seriously thinking that maybe it's time to give up.

(Sigh)

Graham

> On 3 Dec 2018, at 14:51, Mike Kerner via use-livecode 
>  wrote:
> 
> I see that gitkraken's glo boards now support webhooks
> who's using gitkraken, and is anyone thinking about implementing webhook
> handling for glo?
> 
> -- 
> 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@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

glo webhooks

2018-12-03 Thread Mike Kerner via use-livecode
I see that gitkraken's glo boards now support webhooks
who's using gitkraken, and is anyone thinking about implementing webhook
handling for glo?

-- 
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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Setting hidden of lines very slow

2018-12-03 Thread Håkan Liljegren via use-livecode
The code will not work if you have htmltext containing the text "color=" like:
To set the color you can use color="#fa3b42"

and you can also shave off some milliseconds in the styledText version by using 
foreach:

…
repeat for each key aKey in tTextA
      # Check if first run has textcolor set
      put (tTextA[aKey]["runs"][1]["style"]["textcolor"] is empty) \
            into tTextA[aKey]["style"]["hidden"]
 end repeat
…

For me that is always faster than your clever 'offset("color="…' version.

It is a bit strange though that the foreach always seams to be faster. If we 
try to sum an array with 100 000 element like:

   put 10 into tNum
   # Create array with random numbers
   repeat with i = 1 to tNum
      put random(100) into tData[i]
   end repeat

   # Sum array by looping with index
   put the long seconds into tStart
   repeat with i = 1 to tNum
      add tData[i] to tSum
   end repeat
   put the long seconds - tStart into tTime1

   #Sum array by using foreach
   put the long seconds into tStart
   repeat for each key aKey in tData
      add tData[aKey] to tSum2
   end repeat
   put the long seconds - tStart into tTime2
   put tTime1 , tTime2, " ratio : " & tTime1 / tTime2

You will see that the second code is almost three times faster than the first 
one.

If it isn’t important that you process an indexed array in order 
foreach is always faster!

Happy coding!

:-Håkan
On 1 Dec 2018, 15:40 +0100, How to use LiveCode , wrote:
>
> if offset("color=",L)>0 then put " else put "http://lists.runrev.com/mailman/listinfo/use-livecode

Re: hhPDFViewer v0.8.0

2018-12-03 Thread Kaveh Bazargan via use-livecode
Hi Hermann

Thanks for this. Any way of selecting or copying text from the PDF file?

Any way of finding a particular text in the PDF?

On Wed, 28 Nov 2018 at 14:47, Lagi Pittas via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Brilliant stuff Hermann
>
> Thanks,
>
> Lagi
>
> On Mon, 26 Nov 2018 at 19:44, hh via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > Sometimes one wishes to have a unique PDF display, independent of the
> > user's current internet-plugin. Or one wishes to have a feature that
> > these plugins don't have (for example rotation). Then pdf.js comes in.
> >
> > hhPDFViewer is a basic GUI to the JavaScript pdf library "pdf.js"
> > ( https://mozilla.github.io/pdf.js/  (watch the license)).
> >
> > My current solution can display both local and remote pdfs.
> > And it does NOT need a (local) server.
> >
> > The widget uses pdf.js to display (and load) one single page of any
> > multipage pdf. It needs 2.3 MByte of space in the temporary folder
> > + 1.3*the size of the displayed pdf.
> >
> > You can
> > [*]Switch to prev/next/any page of the PDF.
> > [*]Zoom in, zoom out or fit the PDF to width or height of the browser
> > widget's width or height.
> > [*]Fit the browser widget's rect to the page container's rect
> > (hold down the shiftkey when using the controls for that).
> > [*]Rotate the PDF to 0, 90, 180, 270 degrees.
> > [*]Grab the PDF to scroll the PDF left/up/right/down.
> >
> > Download hhPDFViewer from "Sample Stacks" or
> > http://livecodeshare.runrev.com/stack/916/
> >
> > The library is included in the stack, so that also an offline usage
> > (with local PDFs) is possible.
> > I didn't already test it but the stack should run on any platform where
> > the browser widget works. For mobile you still have do some work for
> > resizing the browser widget and the controls group (and changing some
> > triggers). If there is enough interest I'll implement more features.
> >
> >
> > ___
> > 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
>


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

[ANN] This Week in LiveCode 157

2018-12-03 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 #157 here: https://goo.gl/2s1Zu6

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: LC-apps for HC

2018-12-03 Thread Richmond via use-livecode

Did exactly that a couple of years ago . . . .

No takers at the time.

Richmond.

On 3.12.18 г. 3:55 ч., Richard Gaskin via use-livecode wrote:

Ingar Roggen:

> ...why not elaborate it to the tool, the app needed to make HC easily
> portable to LC and thereby accessible "to the rest of us" again?
> Anybody takes the challenge?

One could make HC's interface in LC. Anyone game?

I once thought about doing it myself...
http://livecodejournal.com/features/the-true-power-of-hypercard.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