Re: [OT] Blind Deconvolution Algorithm

2017-11-27 Thread Alejandro Tejada via use-livecode
Hi Bob,

Bob Sneidar wrote:
> The first thing I noticed in the article was that the source image
> was artificially blurred, that is mathematically.
> I wonder how it would do with an analog optically blurred image,
> or one which was taken through a dirty lens?

The article uses artificially blurred examples, but
the gallery uses real world examples:

"We would be grateful if you share with us your examples -
it will allow us to improve the quality of the algorithms.
All images are real-world photos without any preliminary
processing. "

http://smartdeblur.net/gallery.html

On Thu, Nov 23, 2017 at 12:26 PM, Alejandro Tejada 
wrote:
>
> Today I learned about this impressive image processing
> algorithm named Blind Deconvolution:
>
> Theory:
> http://yuzhikov.com/articles/BlurredImagesRestoration1.htm
>
> Practice:
> http://yuzhikov.com/articles/BlurredImagesRestoration2.htm
>
> Check the examples:
> (Text defocus blur is eye-opening. Look for the example
> named "Large Defocus blur")
>
> http://smartdeblur.net/gallery.html
>
> Now I have to find if Neural Networks could be trained
> for this task with better results. :-)
>
> Al
>
___
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: RESTful PUT error

2017-11-27 Thread Alex Tweedly via use-livecode

"programming pattern"

I (sometimes) do something like this - so that each and every line of 
additional output looks and feels the same, e.g.


put "something" & CR after tVariable
put "something else" & CR after tVariable
etc.

i.e. every line finishes with   "  & CR after tVariable " so that can be 
pasted in (or, more likely, applied as a keyboard macro or Block-edit or 
 whatever your favourite editor convenience is).


And if you're doing that, then for robustness you should start with "put 
empty into tVariable" so that you are not vulnerable to any subsequent 
code changes that use the same variable name earlier.



Don't know if that's the same as Todd's answer or not :-)

-- Alex.


On 27/11/2017 23:20, Bob Sneidar via use-livecode wrote:

Why do you set the httpHeaders to empty just before you set them to something?

Bob S




On Nov 27, 2017, at 04:27 , Todd Fabacher via use-livecode 
 wrote:

*--Build the REST API Header*

*set* the httpHeaders to empty

*put* "Accept: application/json" & CR after tHeaders

*put* "Content-Type: application/x-www-form-urlencoded"  & CR after tHeaders

*set* the httpHeaders to tHeaders



___
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: [OT] Blind Deconvolution Algorithm

2017-11-27 Thread Bob Sneidar via use-livecode
The first thing I noticed in the article was that the source image was 
artificially blurred, that is mathematically. I wonder how it would do with an 
analog optically blurred image, or one which was taken through a dirty lense? 

Bob S



> On Nov 23, 2017, at 09:26 , Alejandro Tejada via use-livecode 
>  wrote:
> 
> Today I learned about this impressive image processing
> algorithm named Blind Deconvolution:
> 
> Theory:
> http://yuzhikov.com/articles/BlurredImagesRestoration1.htm
> 
> Practice:
> http://yuzhikov.com/articles/BlurredImagesRestoration2.htm
> 
> Check the examples:
> (Text defocus blur is eye-opening. Look for the example
> named "Large Defocus blur")
> 
> http://smartdeblur.net/gallery.html
> 
> Now I have to find if Neural Networks could be trained
> for this task with better results. :-)
> 
> Al
> ___
> 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: RESTful PUT error

2017-11-27 Thread Bob Sneidar via use-livecode
Why do you set the httpHeaders to empty just before you set them to something? 

Bob S



> On Nov 27, 2017, at 04:27 , Todd Fabacher via use-livecode 
>  wrote:
> 
> *--Build the REST API Header*
> 
> *set* the httpHeaders to empty
> 
> *put* "Accept: application/json" & CR after tHeaders
> 
> *put* "Content-Type: application/x-www-form-urlencoded"  & CR after tHeaders
> 
> *set* the httpHeaders to tHeaders
> 


___
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: "export snapshot" still NOT in 8.1.7

2017-11-27 Thread Richard Gaskin via use-livecode

Richmond Mathewson wrote:

> Thanks for the suggestion.
>
> I modified my code to read like this:
>
> *on**mouseUp*
>
> **
>
> ***export**snapshot from **group**"horror" **to**file "TestExport.png"
> as PNG*
>
> **
>
> ***puttheresult*
>
> **
>
> *end**mouseUp
>
> *
>
> *and the Message Box oponed, displaying nothing.
> *

It's probably all the asterisks. ;)

If there's no thrown error and nothing in "the result" perhaps a file 
was indeed written.  The question is: where?


You might change the error check line to:

   put the result & the directory

...to see where it thinks it successfully wrote the file.

If the file exists there is no problem.  If the file doesn't exist 
there's an engine bug that should be reported.


But FWIW I haven't seen export fail with a path as far back as I can 
remember, so if a bug was introduced it was probably a very short-lived 
regression unlikely to be found in any other build.


--
 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: "export snapshot" still NOT in 8.1.7

2017-11-27 Thread Richmond Mathewson via use-livecode

Thanks for the suggestion.

I modified my code to read like this:

*on**mouseUp*

**

***export**snapshot from **group**"horror" **to**file "TestExport.png" 
as PNG*


**

***puttheresult*

**

*end**mouseUp

*

*and the Message Box oponed, displaying nothing.
*

*Richmond.
*



On 27/11/17 9:22 pm, Richard Gaskin via use-livecode wrote:

Richmond Mathewson wrote:

> With LC 7.1.4 on Mac OS 10.7.5 the default folder on my machine is
> automatically set to
>
> /Users/richmondmathewson/LiveCode
>
> and exported snapshots end up there unless I specify otherwise.
>
> If I export a snapshot using the Message Box I get an acknoewledgement
> "true".
>
> In 8.1.4 upwards the IDE does NOT export any snapshots anywhere
> (subsequent file searches . . .)
>
> and on attempting to export from the Message box there is no
> acknowledgement.
>
> No execution error, just a big, fat silence, I'm afraid.

What do you find if you check "the result" immediately after the 
export command?




___
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: "export snapshot" still NOT in 8.1.7

2017-11-27 Thread Richard Gaskin via use-livecode

Richmond Mathewson wrote:

> With LC 7.1.4 on Mac OS 10.7.5 the default folder on my machine is
> automatically set to
>
> /Users/richmondmathewson/LiveCode
>
> and exported snapshots end up there unless I specify otherwise.
>
> If I export a snapshot using the Message Box I get an acknoewledgement
> "true".
>
> In 8.1.4 upwards the IDE does NOT export any snapshots anywhere
> (subsequent file searches . . .)
>
> and on attempting to export from the Message box there is no
> acknowledgement.
>
> No execution error, just a big, fat silence, I'm afraid.

What do you find if you check "the result" immediately after the export 
command?


--
 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: "export snapshot" still NOT in 8.1.7

2017-11-27 Thread Brian Milby via use-livecode
Try this:
put the defaultfolder

My guess is that it is now a non-writable destination which is why you are
not seeing a new file.
On Mon, Nov 27, 2017 at 12:13 PM Richmond Mathewson via use-livecode <
use-livecode@lists.runrev.com> wrote:

> With LC 7.1.4 on Mac OS 10.7.5 the default folder on my machine is
> automatically set to
>
> /Users/richmondmathewson/LiveCode
>
> and exported snapshots end up there unless I specify otherwise.
>
> If I export a snapshot using the Message Box I get an acknoewledgement
> "true".
>
> In 8.1.4 upwards the IDE does NOT export any snapshots anywhere
> (subsequent file searches . . .)
>
> and on attempting to export from the Message box there is no
> acknowledgement.
>
> No execution error, just a big, fat silence, I'm afraid.
>
> Richmond.
>
> On 26/11/17 10:24 pm, Ali Lloyd via use-livecode wrote:
> > Could you explain in what way it doesn't work? Does it throw an execution
> > error? I notice you don't specify a full path or set the defaultFolder-
> > perhaps it is getting exported somewhere odd.
> >
> > (Works with macOS 10.12.6, 8.2.0 DP 2 Community)
> >
> > On Sun, Nov 26, 2017 at 6:23 PM Richmond Mathewson via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> >
> >> Please can everyone help:
> >>
> >> http://forums.livecode.com/viewtopic.php?f=6=30220
> >>
> >> Richmond.
> >>
> >>
> >> ___
> >> 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
>
___
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: Replacetext taking forever under 8.1.7

2017-11-27 Thread Brian Milby via use-livecode
Just tried this snip:


*-- revidelibrary.8.livecodescript full path in the text field**put* url (
"file:" & the text of field "fileName") into holdIt1
*put* the milliseconds into tStart
*put* replacetext(holdIt1,"[ ]{2,10}",empty) into holdIt
*put* the milliseconds into tEnd
*put* cr & tEnd - tStart after msg

7.1.4 (Indy): 7 ms
8.1.7rc3 (Indy): ~2530 ms
9.0rc10 (Business): ~2480 ms
Mac OS X 10.12.6 (Sierra) / 4GHz Core i7 iMac w/ 16GB RAM

Not sure if this is exactly the same, but it does demonstrate that
replacetext takes quite a bit longer in 8/9 compared to 7.  The loaded file
is a bit over 400k and 12k lines.

Don't want to end up with 2 bug reports, so I'll hold off for Bruce but I
can upload the stack that I created if needed.

Thanks,
Brian


On Mon, Nov 27, 2017 at 11:11 AM, panagiotis merakos via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi Bruce,
>
> If the same code snippet takes 20 mins in 8.1.7 and 1 second in 7.1.4, this
> is definitely a bug. Please do file a report in quality.livecode.com, and
> make sure you attach a simple sample stack that demonstrates the problem
> for you.
> Regression bugs have higher priority, so I would expect this issue to be
> addressed soon, once it is confirmed.
>
> Best,
> Panos
> --
>
> On Thu, Nov 23, 2017 at 8:27 PM, Bruce Pokras via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > I am trying to port a stack that runs fine under Livecode 7.1.4 to
> > Livecode 8.1.7 in order to take advantage of 8.1.7’s 64-bit standalone
> app
> > capability for Mac OS X “High Sierra". That is when I found that under
> > either Yosemite or High Sierra a “replacetext" action takes over 20
> minutes
> > under 8.1.7 while under 7.1.4 it takes less than one second! The
> > replacetext is to remove extra spaces in a 60,000 line (1.9 million
> > character) variable, and looks like this:
> >
> > put replacetext(holdIt1,"[ ]{2,10}",empty) into holdIt
> >
> > Under 8.1.7 I get the dreaded spinning beachball, although the
> replacetext
> > action eventually finishes (after 20 minutes), and the script then runs
> to
> > completion.
> >
> > Any ideas about causes and cures for this issue?
> >
> > Regards,
> >
> > Bruce Pokras
> > Blazing Dawn Software
> > www.blazingdawn.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
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

New Books/Dictionary

2017-11-27 Thread Alejandro Tejada via use-livecode
James Hale wrote:
> For those wanting to read the docs in an i-device
> Dash for iOS is FREE.
> I have posted some screenshots on the forum
> if you want to see how the docs look.

> http://forums.livecode.com/viewtopic.php?f=16=29745=160713#p160712

Really nice! Thanks a lot for posting these images, James.  8)
I noticed that docsets use a few mySQLite databases and a folder
with images and thousands html formatted webpages.

I tried (and failed) to use this docset in Android, using the App
named "Lovely Docs" but this unsupported app does not recognize
the folder as a docset.

Then, I simply copied the folder for single webpage browsing
using HTML viewer in Android.

Does exists a script that create a single index webpage
(html with links) from all 3,492 webpages?

Thanks in advance!

Al
___
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: "export snapshot" still NOT in 8.1.7

2017-11-27 Thread Richmond Mathewson via use-livecode
With LC 7.1.4 on Mac OS 10.7.5 the default folder on my machine is 
automatically set to


/Users/richmondmathewson/LiveCode

and exported snapshots end up there unless I specify otherwise.

If I export a snapshot using the Message Box I get an acknoewledgement 
"true".


In 8.1.4 upwards the IDE does NOT export any snapshots anywhere 
(subsequent file searches . . .)


and on attempting to export from the Message box there is no 
acknowledgement.


No execution error, just a big, fat silence, I'm afraid.

Richmond.

On 26/11/17 10:24 pm, Ali Lloyd via use-livecode wrote:

Could you explain in what way it doesn't work? Does it throw an execution
error? I notice you don't specify a full path or set the defaultFolder-
perhaps it is getting exported somewhere odd.

(Works with macOS 10.12.6, 8.2.0 DP 2 Community)

On Sun, Nov 26, 2017 at 6:23 PM Richmond Mathewson via use-livecode <
use-livecode@lists.runrev.com> wrote:


Please can everyone help:

http://forums.livecode.com/viewtopic.php?f=6=30220

Richmond.


___
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: Replacetext taking forever under 8.1.7

2017-11-27 Thread panagiotis merakos via use-livecode
Hi Bruce,

If the same code snippet takes 20 mins in 8.1.7 and 1 second in 7.1.4, this
is definitely a bug. Please do file a report in quality.livecode.com, and
make sure you attach a simple sample stack that demonstrates the problem
for you.
Regression bugs have higher priority, so I would expect this issue to be
addressed soon, once it is confirmed.

Best,
Panos
--

On Thu, Nov 23, 2017 at 8:27 PM, Bruce Pokras via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I am trying to port a stack that runs fine under Livecode 7.1.4 to
> Livecode 8.1.7 in order to take advantage of 8.1.7’s 64-bit standalone app
> capability for Mac OS X “High Sierra". That is when I found that under
> either Yosemite or High Sierra a “replacetext" action takes over 20 minutes
> under 8.1.7 while under 7.1.4 it takes less than one second! The
> replacetext is to remove extra spaces in a 60,000 line (1.9 million
> character) variable, and looks like this:
>
> put replacetext(holdIt1,"[ ]{2,10}",empty) into holdIt
>
> Under 8.1.7 I get the dreaded spinning beachball, although the replacetext
> action eventually finishes (after 20 minutes), and the script then runs to
> completion.
>
> Any ideas about causes and cures for this issue?
>
> Regards,
>
> Bruce Pokras
> Blazing Dawn Software
> www.blazingdawn.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

Printing a Browser widget

2017-11-27 Thread Terence Heaford via use-livecode
Has there been any progress with the Browser Widget being incorporated into 
print card?

If not is there a timescale for this?



Thanks


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


Re: New Books/Dictionary

2017-11-27 Thread Sean Cole (Pi) via use-livecode
Amazing, Thanks James

Sean Cole
*Pi Digital Productions Ltd*
www.pidigital.co.uk
+44(1634)402193
+44(7702)116447
'Don't try to think outside the box. Just remember the truth: There is no
box!'
'For then you realise it is not the box you are trying to look outside of,
but it is yourself!'

eMail Ts & Cs    Pi Digital
Productions Ltd is a UK registered limited company, no. 5255609

On 27 November 2017 at 13:15, James Hale via use-livecode <
use-livecode@lists.runrev.com> wrote:

> For those wanting to read the docs in an i-device Dash for iOS is FREE.
>
> I have posted some screenshots on the forum if you want to see how the
> docs look.
>
> http://forums.livecode.com/viewtopic.php?f=16=29745=160713#p160712 <
> http://forums.livecode.com/viewtopic.php?f=16=29745=160713#p160712>
>
>
> James
>
>
>
> ___
> 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: New Books/Dictionary

2017-11-27 Thread James Hale via use-livecode
For those wanting to read the docs in an i-device Dash for iOS is FREE.

I have posted some screenshots on the forum if you want to see how the docs 
look.

http://forums.livecode.com/viewtopic.php?f=16=29745=160713#p160712 



James



___
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: RESTful PUT error

2017-11-27 Thread Todd Fabacher via use-livecode
What are you setting your headers to??  Are you sending JSON or posting a
form??

This is to send a form and get back JSON. You may also want XML or TEXT

FYI, most RestAPI use POST.


*--Build the REST API Header*

*set* the httpHeaders to empty

*put* "Accept: application/json" & CR after tHeaders

*put* "Content-Type: application/x-www-form-urlencoded"  & CR after tHeaders

*set* the httpHeaders to tHeaders


People forget to set this in LiveCode, It makes a big difference.


--Todd
___
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 108

2017-11-27 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 #108 here: https://goo.gl/NKEwjN

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