server push to desktop client

2019-11-04 Thread Phil Davis via use-livecode
I need to make a desktop app (Mac only for now) that receives pushed 
data from a LC server. I've never done this - all the desktop <-> server 
interactions I've programmed have used the traditional client-server 
model. So I'm looking for approaches/tips/ideas from anyone who has 
experience with other approaches.


I'm not sure what protocol to use.

And maybe I'm making it too hard. Can FTP watch a server folder, and 
detect and respond to the creation of a file in the folder? Maybe I 
could use a method like that, if that's a capability of FTP.


Thanks for any input you may offer.

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


Re: Managing maximized windows on MacOS

2019-11-04 Thread Brian Milby via use-livecode
Thanks for that link hh... I had researched this a while back and actually
looked at the source code.  I knew about the modifier key, but didn't know
about the double click.

So, you can hold the option key down when hovering over the green dot to
get the maximize "+" action.  You can also double click the title bar to
maximize the window.  If you just click the green dot, you get the full
screen mode.

I would go one step further... this is the way the OS works now and other
apps work that way too.  Trying to make your LC app work like a previous
version of the OS may not be the best course of action.

On Mon, Nov 4, 2019 at 9:10 PM hh via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Did you already see the new
> https://support.apple.com/en-ie/guide/mac-help/mchlp2469/mac
>
> Such "features" override LC settings (on MacOS 10.14/10.15).
>
> ___
> 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: Managing maximized windows on MacOS

2019-11-04 Thread hh via use-livecode
Did you already see the new
https://support.apple.com/en-ie/guide/mac-help/mchlp2469/mac

Such "features" override LC settings (on MacOS 10.14/10.15).

___
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: Managing maximized windows on MacOS

2019-11-04 Thread Paul Dupuis via use-livecode
I'd like to know this too. I'd love to see a way to better control 
maximizing a window. the windowBoundingRect is a little out of date.


1) It only applies to the primary monitor (any platform) and I am 
finding a lot more of our customers have multiple monitors these days 
(usually a laptop with a larger desktop monitor). However, with Catalina 
allowing iPads to be extra monitors for a macOS system, we're only 
likely to have more situations where desktop apps need to be multiple 
monitor aware


2) I am not sure it works any more on the latest versions of macOS




On 11/4/2019 1:58 PM, Giovanni via use-livecode wrote:

Hi guys,
from MacOS Mojave and on when you maximize a window (clicking on “+” button on 
windows main bar) the system maximize the window on the entire screen hiding 
all the system bars and moving the window on a different “virtual” space.

Is there a way using LC to manage this window status?
It’s possible to detect the window maximization (I.E. in a message) and manage 
the actions to activate when the window goes to this status or go back to the 
normal status?

Thank you in advance for your tips!

Regards
___
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


Android mobile audio player

2019-11-04 Thread J. Landman Gay via use-livecode
I'm unable to get the native player to work on Android, using scripts 
that did work previously. I'm streaming mp3 files from a server, and 
they work fine on desktop so I know the file is being sent. I've also 
tried opening a copy from Dropbox in three different audio players on 
Android and they all play too, so the file format is okay.


The script I'm using, which worked previously:

command createMobileAudioPlayer pURL, pPlayerName
  -- pURL = remote video or audio file
  -- pPlayerName = name of player to create
  mobileControlCreate "player",pPlayerName
  mobileControlSet pPlayerName, "visible", true
  mobileControlSet pPlayerName, "rect", getPlayerRect() -- returns a rect
  mobileControlSet pPlayerName, "showController", true
  mobileControlSet pPlayerName, "filename", pURL
  if pURL begins with "http" then
showBusyIndicator true -- show spinner until duration is available
  end if
end createMobileAudioPlayer

on playerPropertyAvailable tProperty -- sent when enough has content is 
loaded

  if tProperty is "duration" then
showBusyIndicator false -- Remove spinner and start playing
setMobileAudioPlayer "listen", "play" -- handles playback
  end if
end playerPropertyAvailable

The control does get created, but shows a duration of zero. The 
playerPropertyAvailable message never arrives, so the player doesn't 
start. I've tried starting the player directly from the 
"createMobileAudioPlayer" handler but that also fails.


I'd like to verify that audio is no longer working before I submit a 
report.


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


Managing maximized windows on MacOS

2019-11-04 Thread Giovanni via use-livecode
Hi guys,
from MacOS Mojave and on when you maximize a window (clicking on “+” button on 
windows main bar) the system maximize the window on the entire screen hiding 
all the system bars and moving the window on a different “virtual” space.

Is there a way using LC to manage this window status?
It’s possible to detect the window maximization (I.E. in a message) and manage 
the actions to activate when the window goes to this status or go back to the 
normal status?

Thank you in advance for your tips!

Regards
___
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: Learning from scratch - any recommendations? [with OT additions]

2019-11-04 Thread Richmond via use-livecode
I think that that has little to do with how people acquire other 
languages, but quite a lot

to do with concepts of inclusiveness and tribalism.

I doubt whether those Slovakians are consciously setting out to be rude, 
but:


1. They probably feel that it is easier to convey certain concepts to 
their compatriots in their mother tongue.


2. I felt, on my visit to the USA last Summer, that  people seemed less 
friendly than when I was there for 3 years in the early 90s. Put this 
down to a cultural shift if you will, put it down to the effect of 
everyone's favourite
half-Hebridean if you will, put it down to some sort of rise in racism; 
I honestly don't know.


Of course if one wants to be tribal and rude (which are often confused) 
a person like myself
educated in England could get "all b*tchy" about your "perfectly good 
english." :)


Which does rather prove the point, that all of what you have mentioned 
about Slovakian volleyball players comes down to perceptions and 
manners: not how languages are learnt.


On 4.11.19 17:54, Bob Sneidar via use-livecode wrote:

I'll just throw this in the mix. I find in America that where once people spoke 
the language common to their immediate society (the people around them) now 
people seem to not care. We have 3 slovakian volleyball players at the beach 
who in spite of speaking perfectly good english, revert to slovakian often, for 
which I chide them regularly. It's like walking over to a corner in a party and 
whispering to each other while everyone looks on. I find it rude.

Bob S



On Nov 3, 2019, at 17:33 , Alex Tweedly via use-livecode 
 wrote:


On 03/11/2019 22:04, Richmond via use-livecode wrote:

I'm not sure if in some countries kids learn languages more easily than in 
others.

But, I do think:

1. In English-speaking countries there is an unconscious feeling that learning 
a foreign language is not 100%
serious as "all the world learns English."


No, it's surely simpler than that.

For an English speaker, a rational analysis shows that the Return on Investment 
for learning *any* other language is much lower than the RoI for anyone else 
thinking of learning English.

Learning another language is (for most of us) difficult - it takes a lot of 
time, energy and effort; so it's a legitimate question whether or not it is 
worth that investment ?

Although Mandarin and Hindi are spoken by more people than English, the great 
majority of those people are  very unlikely to be encountered by any English 
speaker.

Spanish has some claim - but outside of South America its numbers are much 
smaller - and the percentage of those outside South America who don't also 
speak English is (I suspect - can't find reliable numbers to back it up) 
probably low.

There are many good reasons to learn another language, ranging from the well-proven 
neurological benefits of multiple languages to the simple common courtesy of doing so - 
but in straightforward "increase in ability to communicate" I'm unconvinced 
that an English speaker gains enough to justify the effort.

Better to put the time / money into supporting EFL / ESL for others :-)

Alex, only partially tongue in cheek.

P.S. hmmm  does that argument also apply to 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: SSH and SCP in LiveCode

2019-11-04 Thread Richard Gaskin via use-livecode

Mike Felker wrote:


I need SSH / SCP capability for LiveCode.

Anyone know how to use this (either the old external or by any other means)?

I do not thing TSNet will help in this case.


As Charles noted, tsNet supports FTPS, which tunnels FTP over SSH.

Personally, I find using the built-in shell function handy for shell 
calls like those.


If you set up shared SSH keys with the server (and who doesn't these 
days?) it becomes super-easy because you no longer need to write for the 
"expect" package to emulate login, which also means you don't have your 
password hard-coded in your script.


Lately I've been making good use of modding the sudoers file to allow 
certain local processes to handle automation tasks on the remote 
machine.  First I create a user for the process that will log in, and 
set it up in sudoers to be able to run only the command(s) I need that 
account to perform.  This helps minimize risk by granting only the 
privileges needed to get the task done.  And if the task is light 
enough, I can even use a non-privileged account for that.


https://www.atrixnet.com/allow-an-unprivileged-user-to-run-a-certain-command-with-sudo/

--
 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: Android Sleep

2019-11-04 Thread Richard Gaskin via use-livecode

Sannyasin Brahmanathaswami wrote:
I was testing in my app in Android. I kept getting "blank screens" 


Thinking "Oh No something is wrong!"

ha, silly me! I has donea  factory reset, and the default is to go to sleep in 30 secs! Sheesh, and here I was thinking in was the app. One assumes, for example that you are a module and there is a LC process going on, that the phone would not sleep. 

On iOS it won't sleep unless there is no activity.(I think) 


But somehow on Android it sleeps right in middle, even  if a LC process is 
underway

Maybe that is normal android behavior.  or is the a way to override the sleep 
setting and android.


Is it sleeping when you're interacting with it, or just running with no 
interaction?


When it's running without interaction, what is it doing for 30 seconds 
while the user is idle?


I video media playback APIs keep the screen active.  Beyond that, if the 
user isn't using the device Android will use the threshold you've set to 
conserve power.


--
 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: [ANN] This Week in LiveCode 200

2019-11-04 Thread Richard Gaskin via use-livecode

Congrats and thank you on this 200th issue milestone.

These weekly summaries have been a great way for serious LC users to 
keep up to date on engine changes and what's happening in the community.


--
 Richard Gaskin
 Fourth World Systems

Panos wrote:

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 #200 here: http://bit.ly/2PMpL8K

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.



___
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: Learning from scratch - any recommendations? [with OT additions]

2019-11-04 Thread JJS via use-livecode

I agree on this Bob.

Op 4-11-2019 om 16:54 schreef Bob Sneidar via use-livecode:

I'll just throw this in the mix. I find in America that where once people spoke 
the language common to their immediate society (the people around them) now 
people seem to not care. We have 3 slovakian volleyball players at the beach 
who in spite of speaking perfectly good english, revert to slovakian often, for 
which I chide them regularly. It's like walking over to a corner in a party and 
whispering to each other while everyone looks on. I find it rude.

Bob S



On Nov 3, 2019, at 17:33 , Alex Tweedly via use-livecode 
 wrote:


On 03/11/2019 22:04, Richmond via use-livecode wrote:

I'm not sure if in some countries kids learn languages more easily than in 
others.

But, I do think:

1. In English-speaking countries there is an unconscious feeling that learning 
a foreign language is not 100%
serious as "all the world learns English."


No, it's surely simpler than that.

For an English speaker, a rational analysis shows that the Return on Investment 
for learning *any* other language is much lower than the RoI for anyone else 
thinking of learning English.

Learning another language is (for most of us) difficult - it takes a lot of 
time, energy and effort; so it's a legitimate question whether or not it is 
worth that investment ?

Although Mandarin and Hindi are spoken by more people than English, the great 
majority of those people are  very unlikely to be encountered by any English 
speaker.

Spanish has some claim - but outside of South America its numbers are much 
smaller - and the percentage of those outside South America who don't also 
speak English is (I suspect - can't find reliable numbers to back it up) 
probably low.

There are many good reasons to learn another language, ranging from the well-proven 
neurological benefits of multiple languages to the simple common courtesy of doing so - 
but in straightforward "increase in ability to communicate" I'm unconvinced 
that an English speaker gains enough to justify the effort.

Better to put the time / money into supporting EFL / ESL for others :-)

Alex, only partially tongue in cheek.

P.S. hmmm  does that argument also apply to 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


[ANN] This Week in LiveCode 200

2019-11-04 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 #200 here: http://bit.ly/2PMpL8K

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


OT: The unix game

2019-11-04 Thread Mark Wieder via use-livecode

Posting from the Blockly listserv:

I'm a computer scientist at Bell Labs (now part of Nokia). A few weeks 
ago we launched an online coding game to commemorate the 50th 
anniversary of the Unix operating system, the very first version of 
which was built by Ken Thompson and Dennis Ritchie at Bell Labs in the 
summer of 1969.


The game is called "The Unix Game" and can be played at https://unixgame.io

In the Unix Game players solve coding challenges by constructing 
"pipelines" of UNIX text processing utilities (think: sort, awk, grep, 
head, ...) using Blockly blocks.


Blockly was a perfect fit for our use case as the game is as much a 
puzzle game as it is a coding game. For those of you familiar with the 
Unix utilities, you will know that some of these utilities are very 
powerful (like `awk` or `sed`), and just letting players solve 
challenges using a standard CLI interface with the real unix utilities 
would have made the game too easy - and also would have only made the 
game accessible to people that probably already know all the unix commands.


In using Blockly blocks to restrict the commands available to players, 
we wanted to make the game more challenging, but also to force people to 
learn something new about Unix. This certainly worked: over 6000 people 
already found their way to the game and we got lots of positive feedback 
- including from people who said they learned something new about the 
Unix utilities thanks to our game. Of course we've had our fair share of 
negative comments from real Unix hackers that prefer the CLI over any 
Blockly-like GUI - I'm sure this will sound familiar to people on this list.


https://unixgame.io/unix50

--
 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: Learning from scratch - any recommendations? [with OT additions]

2019-11-04 Thread Bob Sneidar via use-livecode
I'll just throw this in the mix. I find in America that where once people spoke 
the language common to their immediate society (the people around them) now 
people seem to not care. We have 3 slovakian volleyball players at the beach 
who in spite of speaking perfectly good english, revert to slovakian often, for 
which I chide them regularly. It's like walking over to a corner in a party and 
whispering to each other while everyone looks on. I find it rude. 

Bob S


> On Nov 3, 2019, at 17:33 , Alex Tweedly via use-livecode 
>  wrote:
> 
> 
> On 03/11/2019 22:04, Richmond via use-livecode wrote:
>> I'm not sure if in some countries kids learn languages more easily than in 
>> others.
>> 
>> But, I do think:
>> 
>> 1. In English-speaking countries there is an unconscious feeling that 
>> learning a foreign language is not 100%
>> serious as "all the world learns English."
>> 
> No, it's surely simpler than that.
> 
> For an English speaker, a rational analysis shows that the Return on 
> Investment for learning *any* other language is much lower than the RoI for 
> anyone else thinking of learning English.
> 
> Learning another language is (for most of us) difficult - it takes a lot of 
> time, energy and effort; so it's a legitimate question whether or not it is 
> worth that investment ?
> 
> Although Mandarin and Hindi are spoken by more people than English, the great 
> majority of those people are  very unlikely to be encountered by any English 
> speaker.
> 
> Spanish has some claim - but outside of South America its numbers are much 
> smaller - and the percentage of those outside South America who don't also 
> speak English is (I suspect - can't find reliable numbers to back it up) 
> probably low.
> 
> There are many good reasons to learn another language, ranging from the 
> well-proven neurological benefits of multiple languages to the simple common 
> courtesy of doing so - but in straightforward "increase in ability to 
> communicate" I'm unconvinced that an English speaker gains enough to justify 
> the effort.
> 
> Better to put the time / money into supporting EFL / ESL for others :-)
> 
> Alex, only partially tongue in cheek.
> 
> P.S. hmmm  does that argument also apply to 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