Re: HyperCard: the Myst story

2020-02-10 Thread Peter Bogdanoff via use-livecode
Colin was a monster programmer at Voyager!

I myself worked on the Voyager music titles #9, 21, 37, 38, 39, producing the 
first two, the Stravinsky and Mozart programs, and I’m still working with 
Robert Winter, the author, after 30 years. All HyperCard with custom Xcommands 
for music score animation and CD-ROM/video disc player control.

Peter Bogdanoff
ArtsInteractive


> On Feb 11, 2020, at 12:07 AM, Colin Holgate via use-livecode 
>  wrote:
> 
> Thanks for that. Voyager did well in the list, 15 out of the 50. 10 of which 
> were in HyperCard. #1 I programmed on my own, and I also did some work on #4 
> and #15.
> 
> 
>> On Feb 10, 2020, at 3:53 PM, Alejandro Tejada via use-livecode 
>>  wrote:
>> 
>> Hi Colin,
>> 
>> I found this Mac User magazine!
>> https://vintageapple.org/macuser/pdf/MacUser_9311_November_1993.pdf
>> 
>> Al
>> 
>> On Tue, Feb 4, 2020 at 9:21 PM
>> Colin Holgate wrote:
>>> In 1993 Mac User magazine had a review
>>> of the top 50 CD-ROMs, and of those there
>>> was an overall winner.
>>> The A Hard Day’s Night CD-ROM I made
>>> in HyperCard was the overall winner.
>>> I was lucky that it was before Myst was
>>> released. It would have easily won!
>> ___
>> 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: HyperCard: the Myst story

2020-02-10 Thread Colin Holgate via use-livecode
Thanks for that. Voyager did well in the list, 15 out of the 50. 10 of which 
were in HyperCard. #1 I programmed on my own, and I also did some work on #4 
and #15.


> On Feb 10, 2020, at 3:53 PM, Alejandro Tejada via use-livecode 
>  wrote:
> 
> Hi Colin,
> 
> I found this Mac User magazine!
> https://vintageapple.org/macuser/pdf/MacUser_9311_November_1993.pdf
> 
> Al
> 
> On Tue, Feb 4, 2020 at 9:21 PM
> Colin Holgate wrote:
>> In 1993 Mac User magazine had a review
>> of the top 50 CD-ROMs, and of those there
>> was an overall winner.
>> The A Hard Day’s Night CD-ROM I made
>> in HyperCard was the overall winner.
>> I was lucky that it was before Myst was
>> released. It would have easily won!
> ___
> 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: LC Server: shebang breaks tags?

2020-02-10 Thread Richard Gaskin via use-livecode

Monte Goulding wrote:

>> On 11 Feb 2020, at 6:10 am, Richard Gaskin wrote:
>>
>> Can the merge function be extended to support scripts interleaved
>> between blocks of non-code?
>>
>> e.g. this works in Server, and not in Merge:
>>
>> 
>> This is some non-code
>> 
>> Some other non-code
>> 
>
> I suspect it could but might require merge to do two parses to execute
> server style then execute merge style so in the end it might be better
> to have a separate function. A way to just parse once and execute
> multiple times like a regular script would be useful. Perhaps the
> engine could maintain a stack of compiled server style scripts like it
> does for regex. I’m not overly sure it adds a great deal to the
> platform though. Probably use cases for this are better served my
> multi-line string literals.

Like heredoc?

https://quality.livecode.com/show_bug.cgi?id=17471

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


HyperCard: the Myst story

2020-02-10 Thread Alejandro Tejada via use-livecode
Hi Colin,

I found this Mac User magazine!
https://vintageapple.org/macuser/pdf/MacUser_9311_November_1993.pdf

Al

On Tue, Feb 4, 2020 at 9:21 PM
Colin Holgate wrote:
> In 1993 Mac User magazine had a review
> of the top 50 CD-ROMs, and of those there
> was an overall winner.
> The A Hard Day’s Night CD-ROM I made
> in HyperCard was the overall winner.
> I was lucky that it was before Myst was
> released. It would have easily won!
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LC Server: shebang breaks tags?

2020-02-10 Thread Monte Goulding via use-livecode


> On 11 Feb 2020, at 6:10 am, Richard Gaskin via use-livecode 
>  wrote:
> 
> Can the merge function be extended to support scripts interleaved between 
> blocks of non-code?
> 
> e.g. this works in Server, and not in Merge:
> 
> 
> This is some non-code
> 
> Some other non-code
> 

I suspect it could but might require merge to do two parses to execute server 
style then execute merge style so in the end it might be better to have a 
separate function. A way to just parse once and execute multiple times like a 
regular script would be useful. Perhaps the engine could maintain a stack of 
compiled server style scripts like it does for regex. I’m not overly sure it 
adds a great deal to the platform though. Probably use cases for this are 
better served my multi-line string literals.

Cheers

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


Option menu in datagrid

2020-02-10 Thread Marty Knapp via use-livecode
I have a stack with a table-style datagrid and each row includes an option menu 
button. Depending on the context I want to change the menu items (the same for 
all occurrences). Thanks for any tips.

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


Re: LC Server - HTTP response code 500: permission denied error

2020-02-10 Thread Ralf Bitter via use-livecode
Hi Martin,

this is just a shot in the dark: What happens if
your URL includes “index.lc”, like:

https://api.myapp.com/index.lc/myapp_db/listProjects


Ralf


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


Re: LC Server: shebang breaks tags?

2020-02-10 Thread Richard Gaskin via use-livecode

Thanks, Monte.  With your explanation that does make sense.

I have plenty of options for doing what I need to do, so no worries on 
this, but it does leave me with one question:


Can the merge function be extended to support scripts interleaved 
between blocks of non-code?


e.g. this works in Server, and not in Merge:

 
 This is some non-code
 
 Some other non-code
 

--
 Richard Gaskin
 Fourth World Systems

Monte wrote:

Hey guys!

This is one of my early community contributions. The server has an in tag mode 
and a not in tag mode. The shebang both tells the OS where to find the 
executable to run the script and sets enters tag mode. So:

#! /some/path

put the long date && the long time
?>FooBar

Should generate the same output as:

FooBar

You can see why this is necessary if you consider that you don’t want the 
engine to output the shebang line.

Cheers


___
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


LC Server - HTTP response code 500: permission denied error

2020-02-10 Thread Martin Koob via use-livecode
Hi

I asked this question on LiveCode forums and haven’t go much response.  
LC Server returns 'lscgid: 
execve():/home/myapp/sites/api.myapp.com/cgi-bin/livecode-server: No such file 
or Directory 




So I am reposting the question here.  Hope that is OK.

Here is the question.

——
I use LiveCode Server for a REST api for a LiveCode application and I am 
migrating an installation of the api to a new server with a new domain.
The API uses Ralf Bitter's wonderful Revigniter framework. 
https://revigniter.com 

To to the transfer the site I copied all the files to the new server.

Then I changed all references to the domain the new domain in the API and the 
App.

When I tried to call the API from the App I got 'HTTP response code 500 
returned from server’ but with a different error message
lscgid: execve():/home/myapp/sites/api.myapp.com/cgi-bin/livecode-server: 
Permission denied

I looked at the livecode-server executable in the path above and it had 
permissions set at 644. So I set the executable bit for all so permissions for 
livecode-server were 755. (The files in Drivers and External directories are 
still 644. Should they be changed to 755 too?)

Now I still get 'HTTP response code 500 returned from server’ but with a 
different error message:
- lscgid: execve():/home/mysite/sites/api.myapp.com/cgi-bin/livecode-server: No 
such file or directory

The API is using a REST approach.  

An example of how the App uses the api is to get LC Server to return a list of 
projects it is posting the session id as authentication to the URL 
https://api.myapp.com/myapp_db/listProjects

Using RevIgniter command rigFetchSegment(n) The API takes the first segment of 
the url ‘myapp_db’ as the name of the database and the the second segment of 
the URL 'listProjects' is the command being called in the API.

From the error being called it appears that the server is actually taking the 
path https://api.example.com/myappDB/listProjectsliterally, i.e. looks for that 
directory which does not exist and returns the error.

So since I copied the site to the new server I think I may have not have copied 
a config file correctly or there is a server setting I need to change so the 
REST URLs are dealt with correctly.

Does anyone have any ideas of how to resolve this?

Thanks in advance.

Martin Koob

VideoLinkwell, a service of
Koob SourceText Solutions Inc.








Regards,

Martin Koob





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


Re: LC Server: shebang breaks tags?

2020-02-10 Thread matthias rebbe via use-livecode
i am using 2 scripts for that. Both have the same name but an other extension
One .lc script which contains the complete script and has the  tags

and one shell script which always looks the same

#! /some/path
put the filename of me into tInclude
replace ".sh" with ".lc" in tInclude
include tInclude

I just have to make sure, that both files have the same name prefix or however 
this would be called.

This way  i can run my scripts directly on shell and also from the browser if 
needed.
-
Matthias Rebbe
Life Is Too Short For Boring Code

> Am 08.02.2020 um 05:04 schrieb Richard Gaskin via use-livecode 
> :
> 
> LC Server 6.6 and later allows you to use LC as you would other system 
> utility languages, by including the path to the engine on the first line 
> following a shebang - see discussion here:
> https://livecode.com/livecode-server/
> 
> This lets us use the old MetaCard style with command line scripts, without 
> needing to put "" around the code.
> 
> But oddly, it seems that running a script this way not only doesn't need to 
> comment wrappers, it actually tries to execute them - and of course fails.
> 
> For example, this script:
> 
>#! ./lcs
> 
>put the long date && the long time
>?>
> 
> ...throws this error:
> 
>   row 3, col 1: script: not a command (<)
> 
> 
> Weirder, I've found that if I omit the shebang and call the engine directly 
> in the path on the command line it runs well:
> 
>  ./lcs test.lc
> 
> What is it about the shebang that's breaking execution in comment blocks?
> 
> I have a need to embed code within larger blocks of non-code, and had 
> considered using LC Server as a helper app for that.* It doesn't matter much 
> to me if I launch it with the app path or not, but since most of my systems 
> have LC Server installed for general use it would be nice to use the shebang 
> method.  So this seeming anomaly is certainly not critical, just odd.
> 
> 
> 
> * Yes, I know I can use the merge function for this, but LC desktop's merge 
> is far more limited to the implicit merge that happens when using LC Server.
> 
> The merge function doesn't continue code execution across blocks of code 
> separated by non-code, whereas LC Server does this well:
> 
>
>This is some non-code
>
>Some other non-code
>
> 
> Maybe we could have the desktop merge function expanded to work like Server's 
> implicit merge?  That would be most awesome.
> 
> -- 
> 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


[ANN] This Week in LiveCode 212

2020-02-10 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 #212 here: http://bit.ly/39hF2Vk

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


AW the fontnames and special names like (Menu)

2020-02-10 Thread Paul Dupuis via use-livecode

A confirmed bug:

https://quality.livecode.com/show_bug.cgi?id=22564

On 2/4/2020 12:27 PM, Paul Dupuis via use-livecode wrote:

The fontnames() function returns certain special font names like:
(Default)
(Styled Text)
(Menu)
(Text)
(Message)
(Tooltip)
(System)

How do I find out what fonts these really are on a given platform. The 
effective textFont does not seem to work.


For example the following code on Windows 10,

set the textFont of fld 1 to "(Text)"
put the effective textFont of fld 1

outputs "(Text)" when I would have expected it to output "Segoe UI"

Is this a bug?

___
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


Problem Uploading Stack to Sample Stacks

2020-02-10 Thread Roger Guay via use-livecode
I inadvertently deleted one of my stacks from Sample Stacks intending to 
upgrade and re-upload it. Now I am prevented in uploading the upgraded version. 
I’ve tried renaming the stack to no avail. Any ideas?

Thanks,

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