Re: tsnetGetFile() example using HTTP?

2020-07-18 Thread Jim Lambert via use-livecode
Phil,

Here’s some info on tsnet

https://www.techstrategies.com.au/tsnet-resources/ 


Jim Lambert
___
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: Tab Buttons Mac vs. Win

2020-07-18 Thread Stephen Barncard via use-livecode
I had become aware of and long appreciated Tog, even in 1983 when I had a
job at Datamost, and the first mac on my desktop. The single floppy and the
horrible printer got in the way and I didn't again consider the machine for
my hardware control development work over the Apple ][ until 1987 when I
got A Studios connected to the developer program (thanks to fellow
Datamost employee Craig Keithley).  It was in that first box that the Mac
SE (with a 20mb hard drive) that I went looking for the included "card".
What card? Where is it?
Oh, it's *Hypercard*!

 It changed my life of course and that of A Studios too.
After that I could fully understand and utilize Tog's vision and its Xerox
roots embedded in this wonderful tool as I built a dedicated control system
for A tape copy .

I think Tognazzini was written about in that first Mac User issue that
featured members of the original design team.  Keithley was a friend of
Steve Jobs and Woz in the Apple ][ garage days, could have been employee #4
but he was very young and he and his parents moved to LA.  He was
"slightly" unhappy about that. He eventually got a job at 1 Infinite Loop.
I'm sure Mike Markkula (Johnny Appleseed) knew of him too.

If in 1975 I hadn't gotten pissed off at the Grateful Dead and taken off to
LA, I very likely would have ended up at that Homebrew Computer Club
because I was seeking information about these microprocessor thingies.
In life, there are many forks in the road.
Brushes with greatness. I am truly fortunate.

sqb
--
Stephen Barncard - Sebastopol Ca. USA -
mixstream.org


On Fri, Jul 17, 2020 at 10:50 PM Richard Gaskin via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Bob Sneidar wrote:
>
>  > I would LOVE to find out how Livecode for Mac draws those beautiful
>  > tab buttons so I can duplicate it on Windows, because DAYAM are the
>  > Windows ones ugly!
>
> Around the turn of the century I wrote to Bruce Tognazzini, back when he
> was still taking email questions.
>
> I asked him about the proper placement of confirmation and dismissal
> buttons (often "OK" and "Cancel") in cross-platform apps.  I was
> familiar with his early research on how the Mac layout (confirmation on
> the right) matched eye tracking studies on scanning order, and thus was
> a better solution.  On Windows reading order is used (confirmation on
> the left), which might seem better but not in UIs; dialog boxes just
> aren't read as much as skimmed, so rather than taking in each line
> individually as we do when we read, most folks more or less just scan
> from upper-left to lower-right, where on Mac the action button awaits.
>
> So I asked Tog:
>
> "Given that the Mac way is borne out by research, wouldn't it be better
> to use to Mac way in my Windows apps as well?"
>
> He was kind enough in his reply, acknowledging that at least my heart
> was in the right place with wanting to "do the right thing" by the user.
> But he was also blunt: I had missed something even more important than
> research.  I had overlooked the significance of user habits.
>
> When a user spends years with an OS design, they build up a cognitive
> and muscle memory, so strong that even when research shows an advantage
> to a different means, the consistency winds up outweighing it.
>
> In short, he suggested I do Windows things on Windows, and leave Mac
> things on Mac.
>
> Who am I to argue with Tog?
>
> --
>   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
>
___
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: tsnetGetFile() example using HTTP?

2020-07-18 Thread Phil Davis via use-livecode

Hi Charles,

Thanks for the response. Yes, my app is doing what is shown in the 
lesson (using FTP) and it's generally successful as long as the files 
aren't too large. Are you saying I can probably just change the protocol 
to HTTP and it will likely work? I'll try it when I'm not so bleary-eyed 
(it's almost 2 AM here in the US Pacific Northwest).


Phil


On 7/18/20 12:54 AM, Charles Warwick via use-livecode wrote:

Hi Phil,

Does this lesson help you?

http://lessons.livecode.com/m/4071/l/853715-how-to-asynchronously-download-via-sftp-directly-to-a-file

It uses SFTP with tsNetGetFile, so while the protocol used is different, the 
concept is the same.

Regards,

Charles


On 18 Jul 2020, at 5:17 pm, Phil Davis via use-livecode 
 wrote:

Does anyone have an working example stack you're willing to share where 
'tsnetGetFile' or 'tsnetGetFileSync' is using HTTP (or HTTPS) to download a 
file? I have had limited success using FTP but it consistently fails (in my 
situation at least) when files are bigger than 200-300 MB (depending I guess on 
network traffic at that moment, or ???).

Today I started with the example described in the lesson:
http://lessons.livecode.com/m/4071/l/945907-how-to-download-multiple-files-in-the-background-with-tsnet

The example uses HTTP via 'tsnetGet' to download the text of web pages into a variable, and then uses 
"put tData into url ("file:" )" to make the files. In my real-world 
situation I can't do that. My actual downloads are binary files that can be over 1 GB. I need to download 
them as files to the local disk, so for me 'tsnetGet' is out.

There are no tsnet examples on http://livecodeshare.runrev.com/ so I'm turning 
to you (which I should have done earlier).

(Is there anywhere else I should look for examples? I did look on stackexchange 
and stackoverflow but no joy.)

Thanks for any and all responses.

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


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



--
Phil Davis
503-307-4363


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


tsnetGetFile() example using HTTP?

2020-07-18 Thread Phil Davis via use-livecode
Does anyone have an working example stack you're willing to share where 
'tsnetGetFile' or 'tsnetGetFileSync' is using HTTP (or HTTPS) to 
download a file? I have had limited success using FTP but it 
consistently fails (in my situation at least) when files are bigger than 
200-300 MB (depending I guess on network traffic at that moment, or ???).


Today I started with the example described in the lesson:
http://lessons.livecode.com/m/4071/l/945907-how-to-download-multiple-files-in-the-background-with-tsnet

The example uses HTTP via 'tsnetGet' to download the text of web pages 
into a variable, and then uses "put tData into url ("file:" )" to 
make the files. In my real-world situation I can't do that. My actual 
downloads are binary files that can be over 1 GB. I need to download 
them as files to the local disk, so for me 'tsnetGet' is out.


There are no tsnet examples on http://livecodeshare.runrev.com/ so I'm 
turning to you (which I should have done earlier).


(Is there anywhere else I should look for examples? I did look on 
stackexchange and stackoverflow but no joy.)


Thanks for any and all responses.

--
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: tsnetGetFile() example using HTTP?

2020-07-18 Thread Charles Warwick via use-livecode
Hi Phil,

Does this lesson help you?

http://lessons.livecode.com/m/4071/l/853715-how-to-asynchronously-download-via-sftp-directly-to-a-file

It uses SFTP with tsNetGetFile, so while the protocol used is different, the 
concept is the same.

Regards,

Charles 

> On 18 Jul 2020, at 5:17 pm, Phil Davis via use-livecode 
>  wrote:
> 
> Does anyone have an working example stack you're willing to share where 
> 'tsnetGetFile' or 'tsnetGetFileSync' is using HTTP (or HTTPS) to download a 
> file? I have had limited success using FTP but it consistently fails (in my 
> situation at least) when files are bigger than 200-300 MB (depending I guess 
> on network traffic at that moment, or ???).
> 
> Today I started with the example described in the lesson:
> http://lessons.livecode.com/m/4071/l/945907-how-to-download-multiple-files-in-the-background-with-tsnet
> 
> The example uses HTTP via 'tsnetGet' to download the text of web pages into a 
> variable, and then uses "put tData into url ("file:" )" to make the 
> files. In my real-world situation I can't do that. My actual downloads are 
> binary files that can be over 1 GB. I need to download them as files to the 
> local disk, so for me 'tsnetGet' is out.
> 
> There are no tsnet examples on http://livecodeshare.runrev.com/ so I'm 
> turning to you (which I should have done earlier).
> 
> (Is there anywhere else I should look for examples? I did look on 
> stackexchange and stackoverflow but no joy.)
> 
> Thanks for any and all responses.
> 
> -- 
> 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
> 
___
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: Styled text on mobile

2020-07-18 Thread Terry Judd via use-livecode
Not if you are ok with using a LC field or a browser object to display it, but 
if you want to use a native single or multi-line text field - then yes.

Terry...

On 18/07/2020, 15:37, "use-livecode on behalf of Richard Gaskin via 
use-livecode"  wrote:

Am I dreaming the impossible dream?

-- 
  Richard Gaskin
  Fourth World Systems

___
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: Styled text on mobile

2020-07-18 Thread J. Landman Gay via use-livecode
It's possible. For a LiveCode field, note that the font has to have a font 
variant for each style. Some time ago LC stopped supporting artificially 
altered font styles. The native system font on each mobile OS supports all 
styles.


Or do you mean something else?
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On July 18, 2020 1:04:44 AM Richard Gaskin via use-livecode 
 wrote:



Am I dreaming the impossible dream?

--
 Richard Gaskin
 Fourth World Systems

___
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: tsnetGetFile() example using HTTP?

2020-07-18 Thread Charles Warwick via use-livecode
Hi Phil,

You can use the same command with HTTP, just make sure you set any HTTP headers 
accordingly (similar to tsNetGet).

As for the issues with FTP, which version of LC are you using?

Regards,

Charles 

> On 18 Jul 2020, at 6:48 pm, Phil Davis via use-livecode 
>  wrote:
> 
> Hi Charles,
> 
> Thanks for the response. Yes, my app is doing what is shown in the lesson 
> (using FTP) and it's generally successful as long as the files aren't too 
> large. Are you saying I can probably just change the protocol to HTTP and it 
> will likely work? I'll try it when I'm not so bleary-eyed (it's almost 2 AM 
> here in the US Pacific Northwest).
> 
> Phil
> 
> 
>> On 7/18/20 12:54 AM, Charles Warwick via use-livecode wrote:
>> Hi Phil,
>> 
>> Does this lesson help you?
>> 
>> http://lessons.livecode.com/m/4071/l/853715-how-to-asynchronously-download-via-sftp-directly-to-a-file
>> 
>> It uses SFTP with tsNetGetFile, so while the protocol used is different, the 
>> concept is the same.
>> 
>> Regards,
>> 
>> Charles
>> 
>>> On 18 Jul 2020, at 5:17 pm, Phil Davis via use-livecode 
>>>  wrote:
>>> 
>>> Does anyone have an working example stack you're willing to share where 
>>> 'tsnetGetFile' or 'tsnetGetFileSync' is using HTTP (or HTTPS) to download a 
>>> file? I have had limited success using FTP but it consistently fails (in my 
>>> situation at least) when files are bigger than 200-300 MB (depending I 
>>> guess on network traffic at that moment, or ???).
>>> 
>>> Today I started with the example described in the lesson:
>>> http://lessons.livecode.com/m/4071/l/945907-how-to-download-multiple-files-in-the-background-with-tsnet
>>> 
>>> The example uses HTTP via 'tsnetGet' to download the text of web pages into 
>>> a variable, and then uses "put tData into url ("file:" )" to make the 
>>> files. In my real-world situation I can't do that. My actual downloads are 
>>> binary files that can be over 1 GB. I need to download them as files to the 
>>> local disk, so for me 'tsnetGet' is out.
>>> 
>>> There are no tsnet examples on http://livecodeshare.runrev.com/ so I'm 
>>> turning to you (which I should have done earlier).
>>> 
>>> (Is there anywhere else I should look for examples? I did look on 
>>> stackexchange and stackoverflow but no joy.)
>>> 
>>> Thanks for any and all responses.
>>> 
>>> -- 
>>> 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
>>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> 
> -- 
> Phil Davis
> 503-307-4363
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


___
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


text to speech android

2020-07-18 Thread Klaus major-k via use-livecode
Hi all,

in 9.6 we have a new speech library for Mac, iOs and Android.
In the dictionary "revspeak" is still listed as Mac and Windows only.

Am I correct to presume that the syntax-> revspeak "what to speak"
is still the same for this new speech library on Android?

Thanks in advance!


Best

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


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


Re: Styled text on mobile

2020-07-18 Thread Dan Friedman via use-livecode
Scriptable rich text in a native mobile text field?   I second that!

-Dan
 

On 7/18/20, 9:01 AM, "use-livecode on behalf of Richard Gaskin via 
use-livecode"  wrote:

J. Landman Gay wrote:

 > It's possible. For a LiveCode field, note that the font has to have
 > a font variant for each style. Some time ago LC stopped supporting
 > artificially altered font styles. The native system font on each
 > mobile OS supports all styles.
 >
 > Or do you mean something else?

I probably should have specified: I was hoping there might be at least 
something in the works to bring the scripted mobile-native editable 
field up to par with other apps that allow styles to be applied to text 
the user writes.

I would expect to build the UI to set style attributes as we do on the 
desktop, if it were possible.

-- 
  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: tsnetGetFile() example using HTTP?

2020-07-18 Thread Phil Davis via use-livecode
Thanks Charles. I probably won't get all the way back into this until 
Monday, just FYI.


Also, HostM support has just given me an HTTPS tsnetGetFile download 
example stack. I tried it and my initial test worked! I still have some 
experimenting to do with it to find out which tsnetGetFile() settings 
are required for my case and which ones aren't, but the initial outcome 
is a great encouragement. (I'll be asking them if I can upload a mod of 
it to the livecodeshare site.)


Although I've been developing software since the 70s (and maybe because 
I have been), I still don't know my HTTP headers well at all. That 
spills over into not knowing exactly what tsnet settings to use in 
certain cases. I'm pretty sure that has been a large factor in my 
current challenge.


I'm using LC 9.6.0 on macOS 10.13.6 (my main dev machine) and up 
(Mojave, Catalina).


Thanks again -
Phil


On 7/18/20 5:10 AM, Charles Warwick via use-livecode wrote:

Hi Phil,

You can use the same command with HTTP, just make sure you set any HTTP headers 
accordingly (similar to tsNetGet).

As for the issues with FTP, which version of LC are you using?

Regards,

Charles


On 18 Jul 2020, at 6:48 pm, Phil Davis via use-livecode 
 wrote:

Hi Charles,

Thanks for the response. Yes, my app is doing what is shown in the lesson 
(using FTP) and it's generally successful as long as the files aren't too 
large. Are you saying I can probably just change the protocol to HTTP and it 
will likely work? I'll try it when I'm not so bleary-eyed (it's almost 2 AM 
here in the US Pacific Northwest).

Phil



On 7/18/20 12:54 AM, Charles Warwick via use-livecode wrote:
Hi Phil,

Does this lesson help you?

http://lessons.livecode.com/m/4071/l/853715-how-to-asynchronously-download-via-sftp-directly-to-a-file

It uses SFTP with tsNetGetFile, so while the protocol used is different, the 
concept is the same.

Regards,

Charles


On 18 Jul 2020, at 5:17 pm, Phil Davis via use-livecode 
 wrote:

Does anyone have an working example stack you're willing to share where 
'tsnetGetFile' or 'tsnetGetFileSync' is using HTTP (or HTTPS) to download a 
file? I have had limited success using FTP but it consistently fails (in my 
situation at least) when files are bigger than 200-300 MB (depending I guess on 
network traffic at that moment, or ???).

Today I started with the example described in the lesson:
http://lessons.livecode.com/m/4071/l/945907-how-to-download-multiple-files-in-the-background-with-tsnet

The example uses HTTP via 'tsnetGet' to download the text of web pages into a variable, and then uses 
"put tData into url ("file:" )" to make the files. In my real-world 
situation I can't do that. My actual downloads are binary files that can be over 1 GB. I need to download 
them as files to the local disk, so for me 'tsnetGet' is out.

There are no tsnet examples on http://livecodeshare.runrev.com/ so I'm turning 
to you (which I should have done earlier).

(Is there anywhere else I should look for examples? I did look on stackexchange 
and stackoverflow but no joy.)

Thanks for any and all responses.

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


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


--
Phil Davis
503-307-4363


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



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



--
Phil Davis
503-307-4363


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


Re: Styled text on mobile

2020-07-18 Thread Richard Gaskin via use-livecode

J. Landman Gay wrote:

> It's possible. For a LiveCode field, note that the font has to have
> a font variant for each style. Some time ago LC stopped supporting
> artificially altered font styles. The native system font on each
> mobile OS supports all styles.
>
> Or do you mean something else?

I probably should have specified: I was hoping there might be at least 
something in the works to bring the scripted mobile-native editable 
field up to par with other apps that allow styles to be applied to text 
the user writes.


I would expect to build the UI to set style attributes as we do on the 
desktop, if it were possible.


--
 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: Tab Buttons Mac vs. Win

2020-07-18 Thread Richard Gaskin via use-livecode

Stephen Barncard wrote:

> If in 1975 I hadn't gotten pissed off at the Grateful Dead and
> taken off to LA...

Probably too off-topic for this list, but that sounds like a story worth 
hearing.  Perhaps over a beer after the madness ends and travel resumes...


--
 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: Tab Buttons Mac vs. Win

2020-07-18 Thread Stephen Barncard via use-livecode
I am  off topic and off center.

On Sat, Jul 18, 2020 at 09:28 Richard Gaskin via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Stephen Barncard wrote:
>
>  > If in 1975 I hadn't gotten pissed off at the Grateful Dead and
>  > taken off to LA...
>
> Probably too off-topic for this list, but that sounds like a story worth
> hearing.  Perhaps over a beer after the madness ends and travel resumes...
>
> --
>   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
>
-- 
--
Stephen Barncard - Sebastopol Ca. USA -
mixstream.org
___
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