Re: HTML5 deployment: progress comes into sight

2017-06-06 Thread hh via use-livecode
Yet another creative contribution to this thread (beta version,
nowhere else linked for a few days).

http://hyperhh.org/html5/video-funHTML5-9.0.0-dp-4hhX.html

Video-Fun is a HTML5 standalone that communicates with the webpage
to take frames from a video and display them as image.
As we have an image and not a browser widget we can put everything
on top of it (here a digital clock) or even add some image effects
(blur, grayscale, posterize, rgb factors invert, duotone, flipH/V).

On a medium fast machine with a decent graphic card (for example
MacMini 2.5 GHz/IntelHD4000, Safari 10) we get _30 fps_ for the
display.

The sound is done by the video running in the webpage.

The timing display (for the overall actions) shouldn't go over
120 ms (if so try a faster/newer browser).



___
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: [ANN] Introducing Remote DB Lib

2017-06-06 Thread Richard Gaskin via use-livecode

Andre Garzia wrote:

> With this library you can have a local SQLite database on a mobile
> app, then, use the new remote library to connect to a remote MySQL
> server and sync data. Of course you would still need to write the sync
> and conflict resolution code...

I see another library opportunity there.

--
 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: how do you post large files to lc server or php script?

2017-06-06 Thread Matthias Rebbe via use-livecode
Hi,

to be more clear:

LC is unresponsive after the beep. It seems the script is finished, but 
something is still running.

And the 2nd line of the script of course only conains  the url once. It seems 
my email client formatted it wrong.

Regards,
Matthias

Matthias Rebbe
+49 5741 31
‌matthiasrebbe.eu ‌

> Am 06.06.2017 um 22:37 schrieb Matthias Rebbe via use-livecode 
> mailto:use-livecode@lists.runrev.com>>:
> 
> Hi
> 
> how do you post large files to a php or lc server script?
> 
> I am noticing  problems when doing the libURLMultipartFormData stuff.
> In my case even a  2mb jpeg file causes LC 8.1.2, 8.1.4RC3 and LC 9 DP6 (did 
> not try other versions)  to be very unresponsive right after i called that 
> function.
> For example the following script,, executes until the end. I can hear the 
> beep and i see the formdata in the message box  but it takes
> 30 to 40 seconds and longer until i am able to edit/use the LC editor again. 
> Sometimes LC stays unresponsive until i force quit  and restart it.
> Tried also other file types, not just jpeg.
> 
> 
>   put empty into tFormData
>   put "https://myserver.com/upload.lc  
> >" into tUrl
>   put "upload" into tAction
>   put “/Users/matthias/Desktop/Scan.pdf” into myFile
>   put "" & myFile into tFile
> 
>   if  libUrlMultipartFormData(tFormData,"action",tAction,"userfile", tFile) 
> is not empty 
>   then
>  answer it
>  exit to top
>   end if  
>   put tFormData
>  -- set the httpHeaders to line 1 of tFormData
>  --post line 2 to -1 of tFormData to url tUrl 
>  -- put the result &return &it
>   ## check the result, etc., here
>  -- set the httpHeaders to empty
> beep
> 
> 
> Am i missing something? 
> Can i use a tsNet command/function to post to a server script w/o using the 
> libURLmultipartformdata function? Or is there an other way to post larger 
> files?
> 
> Regards,
> 
> Matthias
> 
> 
> Matthias Rebbe
> +49 5741 31
> ‌matthiasrebbe.eu   >‌
> 
> ___
> 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: [ANN] Introducing Remote DB Lib

2017-06-06 Thread Andre Garzia via use-livecode
On Tue, Jun 6, 2017 at 5:45 PM, Mike Bonner via use-livecode <
use-livecode@lists.runrev.com> wrote:

> GREAT!  Love your library already, this makes it that much better.  Thank
> you!
>

I should have implemented that a long time ago rsrsrsrsrsrs... The cool
thing is the amount of security you get. If you choose a good encryption
key and also add a SSL certificate to your site (like the ones from Let's
Encrypt), you're essentially adding a very thick protection layer to your
database calls. A person would need not only to do a MITM attack on your
connection and also break the AES 256 encryption of the message. That is
quite hard to do. It is the first time that this kind of safe/remote
database library is available for LiveCode.

With this library you can have a local SQLite database on a mobile app,
then, use the new remote library to connect to a remote MySQL server and
sync data. Of course you would still need to write the sync and conflict
resolution code but it is much easier and safer than exposing your MySQL
server to the internet.


-- 
http://www.andregarzia.com -- All We Do Is Code.
http://fon.nu -- minimalist url shortening service.
___
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


interacting with youtube

2017-06-06 Thread Mike Bonner via use-livecode
I have a quick question.. when playing youtube videos in the browser widget
(or revbrowser) is there a way to interact with youtube and grab the amount
of time left before the vid completes (or general length or whatever)?
___
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: [ANN] Introducing Remote DB Lib

2017-06-06 Thread Mike Bonner via use-livecode
GREAT!  Love your library already, this makes it that much better.  Thank
you!

On Tue, Jun 6, 2017 at 2:23 PM, Andre Garzia via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Remember to send me feedback! :D :D :D
>
>
>
> On Tue, Jun 6, 2017 at 5:19 PM, Skip Kimpel via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > Excited to try this out!
> >
> > SKIP
> >
> > On Tue, Jun 6, 2017 at 4:16 PM, Andre Garzia via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> >
> > > DB Lib (andregarzia/projects/dblib) is a minimalistic database library
> > for
> > > LiveCode that works on Desktop and Mobile and allows you to build
> > > database-savvy apps without writing SQL directly.
> > >
> > > This post is to introduce a great new feature called Remote DB Lib. As
> > you
> > > may know from posts on the mailing list and forums, many developers
> would
> > > like to use DB Lib in their apps over the internet. Like all other
> > database
> > > libraries that work on top of RevDB, DB Lib (until today) needed to
> > connect
> > > directly to the database server to work and this is not a good solution
> > for
> > > apps that work over the internet since exposing MySQL to the internet
> at
> > > large is a huge security risk.
> > >
> > > Today I am releasing the first version of a drop-in replacement library
> > > called **Remote DB Lib**. This new library has the same API as the
> > current
> > > DB Lib but instead of working on top of RevDB, it works alongside a
> > > matching PHP file on your server, it is this PHP file that actually
> talks
> > > to the database server. The Remote DB Lib picks all your DB Lib calls
> and
> > > packs it on an encrypted message that is sent to the PHP file where it
> is
> > > decrypted and executed. This library is using state of the art AES 256
> > > encryption.
> > >
> > > More info at: andregarzia.com/en/blog/introducing-remote-dblib
> > >
> > > This new library is a part of the DB Lib product so all current
> customers
> > > should be receiving an update notice shortly. For those that don't
> have a
> > > license yet, this is a good time to get it and enhance the security of
> > your
> > > apps.
> > >
> > > Cheers
> > >
> > > andre
> > >
> > >
> > > 
> > >
> > >
> > > --
> > > http://www.andregarzia.com -- All We Do Is Code.
> > > http://fon.nu -- minimalist url shortening service.
> > > ___
> > > 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
> >
>
>
>
> --
> http://www.andregarzia.com -- All We Do Is Code.
> http://fon.nu -- minimalist url shortening service.
> ___
> 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


how do you post large files to lc server or php script?

2017-06-06 Thread Matthias Rebbe via use-livecode
Hi

how do you post large files to a php or lc server script?

I am noticing  problems when doing the libURLMultipartFormData stuff.
In my case even a  2mb jpeg file causes LC 8.1.2, 8.1.4RC3 and LC 9 DP6 (did 
not try other versions)  to be very unresponsive right after i called that 
function.
For example the following script,, executes until the end. I can hear the beep 
and i see the formdata in the message box  but it takes
30 to 40 seconds and longer until i am able to edit/use the LC editor again. 
Sometimes LC stays unresponsive until i force quit  and restart it.
Tried also other file types, not just jpeg.


   put empty into tFormData
   put "https://myserver.com/upload.lc " into 
tUrl
   put "upload" into tAction
   put “/Users/matthias/Desktop/Scan.pdf” into myFile
   put "" & myFile into tFile
   
   if  libUrlMultipartFormData(tFormData,"action",tAction,"userfile", tFile) is 
not empty 
   then
  answer it
  exit to top
   end if   
   put tFormData
  -- set the httpHeaders to line 1 of tFormData
  --post line 2 to -1 of tFormData to url tUrl 
  -- put the result &return &it
   ## check the result, etc., here
  -- set the httpHeaders to empty
beep


Am i missing something? 
Can i use a tsNet command/function to post to a server script w/o using the 
libURLmultipartformdata function? Or is there an other way to post larger files?

Regards,

Matthias


Matthias Rebbe
+49 5741 31
‌matthiasrebbe.eu ‌

___
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: [ANN] Introducing Remote DB Lib

2017-06-06 Thread Andre Garzia via use-livecode
Remember to send me feedback! :D :D :D



On Tue, Jun 6, 2017 at 5:19 PM, Skip Kimpel via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Excited to try this out!
>
> SKIP
>
> On Tue, Jun 6, 2017 at 4:16 PM, Andre Garzia via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > DB Lib (andregarzia/projects/dblib) is a minimalistic database library
> for
> > LiveCode that works on Desktop and Mobile and allows you to build
> > database-savvy apps without writing SQL directly.
> >
> > This post is to introduce a great new feature called Remote DB Lib. As
> you
> > may know from posts on the mailing list and forums, many developers would
> > like to use DB Lib in their apps over the internet. Like all other
> database
> > libraries that work on top of RevDB, DB Lib (until today) needed to
> connect
> > directly to the database server to work and this is not a good solution
> for
> > apps that work over the internet since exposing MySQL to the internet at
> > large is a huge security risk.
> >
> > Today I am releasing the first version of a drop-in replacement library
> > called **Remote DB Lib**. This new library has the same API as the
> current
> > DB Lib but instead of working on top of RevDB, it works alongside a
> > matching PHP file on your server, it is this PHP file that actually talks
> > to the database server. The Remote DB Lib picks all your DB Lib calls and
> > packs it on an encrypted message that is sent to the PHP file where it is
> > decrypted and executed. This library is using state of the art AES 256
> > encryption.
> >
> > More info at: andregarzia.com/en/blog/introducing-remote-dblib
> >
> > This new library is a part of the DB Lib product so all current customers
> > should be receiving an update notice shortly. For those that don't have a
> > license yet, this is a good time to get it and enhance the security of
> your
> > apps.
> >
> > Cheers
> >
> > andre
> >
> >
> > 
> >
> >
> > --
> > http://www.andregarzia.com -- All We Do Is Code.
> > http://fon.nu -- minimalist url shortening service.
> > ___
> > 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
>



-- 
http://www.andregarzia.com -- All We Do Is Code.
http://fon.nu -- minimalist url shortening service.
___
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: [ANN] Introducing Remote DB Lib

2017-06-06 Thread Skip Kimpel via use-livecode
Excited to try this out!

SKIP

On Tue, Jun 6, 2017 at 4:16 PM, Andre Garzia via use-livecode <
use-livecode@lists.runrev.com> wrote:

> DB Lib (andregarzia/projects/dblib) is a minimalistic database library for
> LiveCode that works on Desktop and Mobile and allows you to build
> database-savvy apps without writing SQL directly.
>
> This post is to introduce a great new feature called Remote DB Lib. As you
> may know from posts on the mailing list and forums, many developers would
> like to use DB Lib in their apps over the internet. Like all other database
> libraries that work on top of RevDB, DB Lib (until today) needed to connect
> directly to the database server to work and this is not a good solution for
> apps that work over the internet since exposing MySQL to the internet at
> large is a huge security risk.
>
> Today I am releasing the first version of a drop-in replacement library
> called **Remote DB Lib**. This new library has the same API as the current
> DB Lib but instead of working on top of RevDB, it works alongside a
> matching PHP file on your server, it is this PHP file that actually talks
> to the database server. The Remote DB Lib picks all your DB Lib calls and
> packs it on an encrypted message that is sent to the PHP file where it is
> decrypted and executed. This library is using state of the art AES 256
> encryption.
>
> More info at: andregarzia.com/en/blog/introducing-remote-dblib
>
> This new library is a part of the DB Lib product so all current customers
> should be receiving an update notice shortly. For those that don't have a
> license yet, this is a good time to get it and enhance the security of your
> apps.
>
> Cheers
>
> andre
>
>
> 
>
>
> --
> http://www.andregarzia.com -- All We Do Is Code.
> http://fon.nu -- minimalist url shortening service.
> ___
> 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


[ANN] Introducing Remote DB Lib

2017-06-06 Thread Andre Garzia via use-livecode
DB Lib (andregarzia/projects/dblib) is a minimalistic database library for
LiveCode that works on Desktop and Mobile and allows you to build
database-savvy apps without writing SQL directly.

This post is to introduce a great new feature called Remote DB Lib. As you
may know from posts on the mailing list and forums, many developers would
like to use DB Lib in their apps over the internet. Like all other database
libraries that work on top of RevDB, DB Lib (until today) needed to connect
directly to the database server to work and this is not a good solution for
apps that work over the internet since exposing MySQL to the internet at
large is a huge security risk.

Today I am releasing the first version of a drop-in replacement library
called **Remote DB Lib**. This new library has the same API as the current
DB Lib but instead of working on top of RevDB, it works alongside a
matching PHP file on your server, it is this PHP file that actually talks
to the database server. The Remote DB Lib picks all your DB Lib calls and
packs it on an encrypted message that is sent to the PHP file where it is
decrypted and executed. This library is using state of the art AES 256
encryption.

More info at: andregarzia.com/en/blog/introducing-remote-dblib

This new library is a part of the DB Lib product so all current customers
should be receiving an update notice shortly. For those that don't have a
license yet, this is a good time to get it and enhance the security of your
apps.

Cheers

andre





-- 
http://www.andregarzia.com -- All We Do Is Code.
http://fon.nu -- minimalist url shortening service.
___
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


ftp oddity

2017-06-06 Thread Colin Holgate via use-livecode
I’m trying to get a stack to upload itself to FTP, using this article as a 
guide:

http://lessons.livecode.com/s/3527/m/4071/l/6998-uploading-a-file-using-ftp 


The script seems to be working, and I get upload progress and a successful 
complete, but the file doesn’t appear on the FTP server.

I tried in 8.1.3 and 7.1.3. Is there something obvious I’m missing?
___
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: Rooting around in the Forum: destructors

2017-06-06 Thread Mark Waddingham via use-livecode

On 2017-06-03 18:46, Richmond Mathewson via use-livecode wrote:

Not having looked at any sort of "serious" programming language since
about 1989 (I don't think that VB 6 is a serious language),
I find it hard to understand what a destructor is beyond a way to free
memory on a system that has constraints in that area.


Depends on your definition of 'serious'. I'd say that a language was 
'serious' if it allows to write full, complete programs. VB6 certainly 
did (after all, it had a huge installed user base for a very long time), 
as was HyperCard, as is LiveCode.



1. Does Livecode have something(s) that does the job of a destructor?


Yes.


2. If so, where is it and so on?


The 'delete*' messages are destructors for controls.

On a more general note this thread descended into a discussion of 
whether LiveCode is object-oriented or object-based:


  https://en.wikipedia.org/wiki/Object-oriented_programming

  https://en.wikipedia.org/wiki/Object-based_language

As I've said many times before, object-orientation is a methodology of 
programming. Any procedural language which has the equivalent of 
(mutable) structs can be used to program in that style relatively 
easily. Being 'object-oriented' doesn't mean the language can do any 
more than any other, just that it allows you to program in that style 
more easily - with compiler checking via explicit syntax for 
object-oriented formalisms).


LiveCode certainly has the equivalent of structs (assoc. arrays), and 
mutable parameter modes (@ before a parameter). Which means you can do 
object-oriented style programming - just as you can in C - indeed I do 
this a lot:


  command foobarCreate @xSelf
-- init xSelf as an array with the state for foobar
  end foobarCreate

  command foobarDoSomething @xSelf
-- use state in xSelf array to 'DoSomething'
  end foobarDoSomething

As to whether one calls a language object-oriented or not is largely 
down to 'what intrinsic features the language gives you to implement the 
object-oriented methodology'. In particular, an important feature there 
is to be able to define classes, with some form of inheritence and 
overriding of methods.


Now, since behaviors were introduced (and then chained behaviors), 
LiveCode has had something which is identical to the fundamental ideas 
of classes. A behavior script defines a class, the behavior chain allows 
inheritence, and the message path along that chain gives you inheritence 
and overriding. So, in that sense, LiveCode is definitely 
object-oriented.


However, one thing (all?) object oriented languages (in the classical 
sense) allow you to do is to define classes, create instances of those 
classes and store them in variables - LiveCode doesn't quite have this 
(LiveCode variables are either numbers/string or arrays), its 
object-orientation is centered around stacks, cards and controls. 
(Putting this on a slightly more abstract setting - LiveCode has 
object-orientation centered around a persistent object-tree, rather than 
transient object instances).


So LiveCode is definitely object-based, but perhaps not quite fully 
object-oriented in the classical sense - but it is certainly not that 
far off it.


Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: 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