Re: LiveCode server as OAuth2 client for APIs?

2023-12-08 Thread Ralf Bitter via use-livecode

Hi Keith,

to avoid creating too much noise here, let's continue
the conversation on the revIgniter mailing list. You'll find my
answer there.


Ralf



On 07.12.2023 18:01, Keith Clarke via use-livecode wrote:

Hi Ralf,
Thanks for the guidance and updated formHelper script - and apologies to folks 
not using LiveCode Server or RevIgniter - I now realise this should have been 
posted on the use RevIgniter list.

I’ve now got a basic button that submits a form data post to the Salesforce 
authorisation server. However, there are a couple of issues, which are probably 
due to me misreading the user guide (again!) and/or getting confused over what 
markup goes into controller and view files for RevIgniter.

I’m using a controller file to prepare and add to the gData[] array both the 
form contents and submit button, which are then accessed in the view file, 
using the following...



In the controller file, I first used the recipe for ‘Adding Hidden Input 
Fields’ to create an array for the third ‘hidden’ parameter of the 
rigFormOpen() function. This worked as a POST but all the hidden fields are 
visible in the view file’s html. This is rather insecure for authentication, 
revealing consumer_id (and in future, client_secret, which I’ll need to add to 
increase security once basic access is proven).

So, I’m hoping the rigFormHidden(tData) recipe can keep the hidden content 
‘LiveCode-side' until post submission and out of the HTML. So far the hidden 
values don’t seem to be getting into the POST, as I’m getting an unsupported 
request type (so the ‘response_type=code’ is not being received).

I’m sure I am taking the wrong approach, as well as incorrect syntax in my 
controller handler - as if I understand things correctly, the way I’ve got 
parameter three of the rigFormOpen() call pointing at gData[‘hidden’] would, if 
successful, render the hidden contents visible in the view file’s html...

   # Prepare Salesforce login form
   
 # Load form helper library

 rigLoadHelper "form"
   
   # Prepare hidden parameter data array

 put “XXsomeClientIdXX" into aHidden["client_id"]
 put URLencode(“XXsomeRedirectURLXX") into aHidden["redirect_uri"]
 put "code" into aHidden["response_type"]
 put rigFormHidden(aHidden) into gData["hidden"]
 
 # Prepare form

 put rigFormOpen(“XXauthoirisationServerURLXX", “", gData["hidden"]) into 
gData["formOpen"]
 
 # Prepare submit button

 put "sfLoginBtn" into aData["name"]
 put "sfLoginBtn" into aData["id"]
 put "btn btn-primary" into aData["class"]
 put "submit" into aData["type"]
 put "Salesforce Login" into aData["value"]
 
 put rigSubmitButton(aData) into gData["submit"]
   
   # put "Topic1,Topic2,Topic3" into gData["ListItems"]


   get rigLoadView("homeMainView")

I’m probably making multiple newbie errors, but I’ve been unable to find any 
worked examples of RevIgniter controller and view file markup for form posting. 
So, I’d be obliged for any hints and tips.
Best,
Keith


On 6 Dec 2023, at 17:53, Ralf Bitter via use-livecode 
 wrote:

Hi Keith,

using revIgniter you can always hard code the opening
form tag, this way you can use any URL as an action
attribute.

However, your message has prompted me to change the
rigFormOpen() function so that you can override the
current URL with the value of an optional action
attribute included in the second parameter.
So, if you like, you can download the modified
version of the form helper at:

https://github.com/revig/revigniter/blob/develop/system/helpers/formHelper.livecodescript


Ralf



On 06.12.2023 11:00, Keith Clarke via use-livecode wrote:

Hi folks,
Does anyone have experience of using OAuth2 with LiveCode server, to log into 
third-party data sources for API access?
  I am experimenting with a web based utility app that runs on LiveCode server & 
RevIgniter and I need to be able to log into a Salesforce.com  
account to pull data into the app via APIs. I’m following the Salesforce Oauth 2.0 Web Server 
Flow for Web App Integration 
https://help.salesforce.com/s/articleView?id=sf.remoteaccess_oauth_web_server_flow.htm&type=5
 and
I’ve configured the LiveCode app as a connected app in a Salesforce developer 
instance, to create a consumer id, with which I can request an authorisation 
code. This requires a POST to a Salesforce endpoint, which, if successful 
redirects to a page on the Salesforce authorisation server to provide login 
credentials. This is where I’m stuck...
The LiveCode OAuth2 library seems to be desktop centric (expecting any 
redirects via the loopback IP address of 127.0.0.1, rather than a URL); the 
RevIgniter forms library seems to support posts to URLs within the LiveCode app 
but not third party URLs; and if I create a LiveCode file to ‘post data to URL 
tSalesforceAuthURL’ from within RevIgniter, I can’t see any option to follow 
redirects and so, unsurprisingly, the page URL doesn’t change.
Any ad

Re: LiveCode server as OAuth2 client for APIs?

2023-12-07 Thread Keith Clarke via use-livecode
Hi Ralf,
Thanks for the guidance and updated formHelper script - and apologies to folks 
not using LiveCode Server or RevIgniter - I now realise this should have been 
posted on the use RevIgniter list. 

I’ve now got a basic button that submits a form data post to the Salesforce 
authorisation server. However, there are a couple of issues, which are probably 
due to me misreading the user guide (again!) and/or getting confused over what 
markup goes into controller and view files for RevIgniter.

I’m using a controller file to prepare and add to the gData[] array both the 
form contents and submit button, which are then accessed in the view file, 
using the following... 

 

In the controller file, I first used the recipe for ‘Adding Hidden Input 
Fields’ to create an array for the third ‘hidden’ parameter of the 
rigFormOpen() function. This worked as a POST but all the hidden fields are 
visible in the view file’s html. This is rather insecure for authentication, 
revealing consumer_id (and in future, client_secret, which I’ll need to add to 
increase security once basic access is proven). 

So, I’m hoping the rigFormHidden(tData) recipe can keep the hidden content 
‘LiveCode-side' until post submission and out of the HTML. So far the hidden 
values don’t seem to be getting into the POST, as I’m getting an unsupported 
request type (so the ‘response_type=code’ is not being received). 

I’m sure I am taking the wrong approach, as well as incorrect syntax in my 
controller handler - as if I understand things correctly, the way I’ve got 
parameter three of the rigFormOpen() call pointing at gData[‘hidden’] would, if 
successful, render the hidden contents visible in the view file’s html... 

  # Prepare Salesforce login form
  
# Load form helper library
rigLoadHelper "form"
  
  # Prepare hidden parameter data array
put “XXsomeClientIdXX" into aHidden["client_id"]
put URLencode(“XXsomeRedirectURLXX") into aHidden["redirect_uri"]
put "code" into aHidden["response_type"]
put rigFormHidden(aHidden) into gData["hidden"]

# Prepare form
put rigFormOpen(“XXauthoirisationServerURLXX", “", gData["hidden"]) into 
gData["formOpen"]

# Prepare submit button
put "sfLoginBtn" into aData["name"]
put "sfLoginBtn" into aData["id"]
put "btn btn-primary" into aData["class"]
put "submit" into aData["type"]
put "Salesforce Login" into aData["value"]

put rigSubmitButton(aData) into gData["submit"]
  
  # put "Topic1,Topic2,Topic3" into gData["ListItems"]

  get rigLoadView("homeMainView")

I’m probably making multiple newbie errors, but I’ve been unable to find any 
worked examples of RevIgniter controller and view file markup for form posting. 
So, I’d be obliged for any hints and tips.
Best,
Keith

> On 6 Dec 2023, at 17:53, Ralf Bitter via use-livecode 
>  wrote:
> 
> Hi Keith,
> 
> using revIgniter you can always hard code the opening
> form tag, this way you can use any URL as an action
> attribute.
> 
> However, your message has prompted me to change the
> rigFormOpen() function so that you can override the
> current URL with the value of an optional action
> attribute included in the second parameter.
> So, if you like, you can download the modified
> version of the form helper at:
> 
> https://github.com/revig/revigniter/blob/develop/system/helpers/formHelper.livecodescript
> 
> 
> Ralf
> 
> 
> 
> On 06.12.2023 11:00, Keith Clarke via use-livecode wrote:
>> Hi folks,
>> Does anyone have experience of using OAuth2 with LiveCode server, to log 
>> into third-party data sources for API access?
>>  I am experimenting with a web based utility app that runs on LiveCode 
>> server & RevIgniter and I need to be able to log into a Salesforce.com 
>>  account to pull data into the app via APIs. I’m 
>> following the Salesforce Oauth 2.0 Web Server Flow for Web App Integration 
>> https://help.salesforce.com/s/articleView?id=sf.remoteaccess_oauth_web_server_flow.htm&type=5
>>  and
>> I’ve configured the LiveCode app as a connected app in a Salesforce 
>> developer instance, to create a consumer id, with which I can request an 
>> authorisation code. This requires a POST to a Salesforce endpoint, which, if 
>> successful redirects to a page on the Salesforce authorisation server to 
>> provide login credentials. This is where I’m stuck...
>> The LiveCode OAuth2 library seems to be desktop centric (expecting any 
>> redirects via the loopback IP address of 127.0.0.1, rather than a URL); the 
>> RevIgniter forms library seems to support posts to URLs within the LiveCode 
>> app but not third party URLs; and if I create a LiveCode file to ‘post data 
>> to URL tSalesforceAuthURL’ from within RevIgniter, I can’t see any option to 
>> follow redirects and so, unsurprisingly, the page URL doesn’t change.
>> Any advice greatly appreciated.
>> Best,
>> Keith
>> ___
> 
> _

Re: LiveCode server as OAuth2 client for APIs?

2023-12-06 Thread Ralf Bitter via use-livecode

Hi Keith,

using revIgniter you can always hard code the opening
form tag, this way you can use any URL as an action
attribute.

However, your message has prompted me to change the
rigFormOpen() function so that you can override the
current URL with the value of an optional action
attribute included in the second parameter.
So, if you like, you can download the modified
version of the form helper at:

https://github.com/revig/revigniter/blob/develop/system/helpers/formHelper.livecodescript


Ralf



On 06.12.2023 11:00, Keith Clarke via use-livecode wrote:

Hi folks,
Does anyone have experience of using OAuth2 with LiveCode server, to log into 
third-party data sources for API access?
  
I am experimenting with a web based utility app that runs on LiveCode server & RevIgniter and I need to be able to log into a Salesforce.com  account to pull data into the app via APIs. I’m following the Salesforce Oauth 2.0 Web Server Flow for Web App Integration https://help.salesforce.com/s/articleView?id=sf.remoteaccess_oauth_web_server_flow.htm&type=5 and


I’ve configured the LiveCode app as a connected app in a Salesforce developer 
instance, to create a consumer id, with which I can request an authorisation 
code. This requires a POST to a Salesforce endpoint, which, if successful 
redirects to a page on the Salesforce authorisation server to provide login 
credentials. This is where I’m stuck...

The LiveCode OAuth2 library seems to be desktop centric (expecting any 
redirects via the loopback IP address of 127.0.0.1, rather than a URL); the 
RevIgniter forms library seems to support posts to URLs within the LiveCode app 
but not third party URLs; and if I create a LiveCode file to ‘post data to URL 
tSalesforceAuthURL’ from within RevIgniter, I can’t see any option to follow 
redirects and so, unsurprisingly, the page URL doesn’t change.

Any advice greatly appreciated.
Best,
Keith
___


___
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: LiveCode Server is sleeping?

2023-06-22 Thread harrison--- via use-livecode
Hi Matthias,

To answer your questions:

MacintoshHD/Library/WebServer/CGI-Executables/livecode-server

The hard drive is the internal SSD drive.

Apache server and the livecode server are both installed on the same hard drive.

Scripts are in:

Library/Webserver/Documents

and some are forwarded to:

Users/(username)/Sites

Since I’m not using spinning hard drives, that is probably not the issue.

I do get an error in the error log of: XType: Using static font registry 
(sometimes)
but that seems too minor to be causing this problem.  Not quite sure how to
fix the the font problem.

Ideas?

Thanks,

Rick


> On Jun 22, 2023, at 3:59 PM, matthias rebbe via use-livecode 
>  wrote:
> 
> I am also running Livecode Server with Apache on 13.4 without a problem so 
> far.
> 
> Where did you install the software (Apache/Livecode Server)?
> Is Livecode Server installed on the same hard drive as Apache server is 
> installed?
> Where are your scripts stored? 
> 
> I had once problems with external hard drives which had built in power 
> management. 
> So although i had disabled the "Hard disk standby" (don't know the correct 
> English expression) in the energy settings of macOS the external hard drives 
> went to sleep after some time.
> 
> I solved this with a little free tool called Keep Drive Spinning
> http://jon.stovell.info/software/keep-drive-spinning/
> 
> 
> Regards,
> Matthias

___
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: LiveCode Server is sleeping?

2023-06-22 Thread matthias rebbe via use-livecode
I am also running Livecode Server with Apache on 13.4 without a problem so far.

Where did you install the software (Apache/Livecode Server)?
Is Livecode Server installed on the same hard drive as Apache server is 
installed?
Where are your scripts stored? 

I had once problems with external hard drives which had built in power 
management. 
So although i had disabled the "Hard disk standby" (don't know the correct 
English expression) in the energy settings of macOS the external hard drives 
went to sleep after some time.

I solved this with a little free tool called Keep Drive Spinning
http://jon.stovell.info/software/keep-drive-spinning/


Regards,
Matthias
> Am 22.06.2023 um 18:04 schrieb harrison--- via use-livecode 
> :
> 
> I am running LiveCode Server version 9.6.9,
> with apache 2.4.56 under Mac OS 13.4 Ventura 
> with a Postgresql database.
> 
> All of my energy saver settings in the OS are
> set so nothing ever sleeps.
> 
> When my server hasn’t been getting incoming
> connections for a time, for some stupid reason
> it goes to sleep and stops serving pages!
> 
> I’ve tried to track down the problem, and it
> appears that apache is running fine as
> proved by when asking for a strict HTML
> webpage, and everything works!
> 
> Anything that needs the LiveCode server
> doesn’t work for a couple of minutes,
> and only after a half dozen requests does
> it start responding normally.
> 
> I have checked my error logs, and it shows
> timeouts for livecode-server.
> 
> I don’t know if livecode is waiting to get
> a response from Postresql or not.
> 
> The interval between failures varies, so
> it is difficult to know how often I have to
> tell an automatic application to access the
> website in order to keep everything running
> correctly.
> 
> Ideas?  Suggestions?
> 
> Thanks,
> 
> Rick
> 
> 
> 
> ___
> 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: Livecode Server on Synology NAS with Intel cpu

2021-12-22 Thread matthias rebbe via use-livecode




> Am 22.12.2021 um 21:51 schrieb Mark Wieder via use-livecode 
> :
> 
> Sorry - my Synology server has an arm processor, and there has never been an 
> arm build of the server. Plus now it appears that the server build requires a 
> separate license.
> 
> I take it you've already been through the docs at
> https://livecode.com/resources/guides/server/

Yes, thanks Mark, i've checked the docs already

Unfortunately the folder structure/ location of the configuration files for 
Apache on the Synology are different to the description in the docs.

Anyway, it took me now the half day to get it working. 
So now LC server is working in the browser and on the command line and LC 
standalones can be run also from command line in ui mode.
That's awesome.
I will create a Livecode lesson for this, so others can get it working much 
quicker.

Matthias


___
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: Livecode Server on Synology NAS with Intel cpu

2021-12-22 Thread Mark Wieder via use-livecode

On 12/21/21 2:54 PM, matthias rebbe via use-livecode wrote:

Hi,

is there someone on the list who is using Livecode Server on a Synology NAS 
with Intel cpu? If so, did you manage to get it working also with the webserver 
or only from command line?

Today i installed Livecode Server on my Synology NAS with Intel cpu.
I am able to run Livecode scripts from the command line. But i do not get it to 
work, that i can call LC script from my browser. I tried the .htaccess method 
to get Livecode Server running with Apache without success. I tried also to 
modify the httdp-conf file, but also without success. But that is due to a lack 
of knowledge.

I would be really grateful if someone could help me getting Livecode Server to 
work with Apache and not only from command line.


Sorry - my Synology server has an arm processor, and there has never 
been an arm build of the server. Plus now it appears that the server 
build requires a separate license.


I take it you've already been through the docs at
https://livecode.com/resources/guides/server/

--
 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: Livecode server configuration: tracking down and Apache redirect

2020-12-20 Thread Richard Gaskin via use-livecode

David Bovill wrote:

> The server return 400 Not Found when routing for a *.json file, while
> 200 OK when routing for a *.txt file - all other conditions seem the
> same.
...
> The .htaccess in the $DOCUMENT_ROOT folder does not mention json file
> endings.

Ah, we may have been looking at this backwards.

Rather than ask why Apache ISN'T serving JSON, we might ask why it SHOULD.

IIRC, following the general principle of least access Apache's defaults 
serve only a small number of types, and additional types must be added 
explicitly.


Just as we use directives to tell Apache to recognize the file type 
".lc", you should be able to tell it to recognize .json by adding this 
to Apache's config:


AddType application/json .json


Details here also show how to force UTF-8 for json, along with other tips:

https://htaccessbook.com/useful-htaccess-rules/


--
 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: Livecode server configuration: tracking down and Apache redirect

2020-12-20 Thread David Bovill via use-livecode
Thanks for the tips Richard:
On 18 Dec 2020, 21:05 +, Richard Gaskin via use-livecode 
, wrote:
> David Bovill wrote:
>
> > I have a Livecode server running Revigniter under Apache on Ubuntu. I
> > installed it 8 years ago or so, and it is causing redirect problems
> > with files ending in .json. I am assuming that a long time ago a set
> > the configuration somewhere to handle .json files in a particular way,
> > but I can’t track this down. Any thoughts where to look?
>
> Is the redirect a 301, 302, or something else?

The server return 400 Not Found when routing for a *.json file, while 200 OK 
when routing for a *.txt file - all other conditions seem the same.

If I replace “json” with “json” or “xyz” or any arbitrary txt in the 
(Revigniter) routing everything works as expected. The .htaccess in the 
$DOCUMENT_ROOT folder does not mention json file endings.

I suspect there is another file somewhere doing the Apache based redirect?
> Is the returntype appropriate for JSON?

Yes
> Do you see the problem when access from an LC client, a browser, or both?

Both
> > I’m wondering if there is some sort of log that would allow me to know
> > how Apache is handling a faulty redirect? I’m a bit stuck tracking it
> > down.
>
> The Apache logs are at:
> /var/log/apache2/access.log
> /var/log/apache2/error.log

I can’t see information there that will help debug.
___
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: Livecode server configuration: tracking down and Apache redirect

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

David Bovill wrote:

> I have a Livecode server running Revigniter under Apache on Ubuntu. I
> installed it 8 years ago or so, and it is causing redirect problems
> with files ending in .json. I am assuming that a long time ago a set
> the configuration somewhere to handle .json files in a particular way,
> but I can’t track this down. Any thoughts where to look?

Is the redirect a 301, 302, or something else?

Is the returntype appropriate for JSON?

Do you see the problem when access from an LC client, a browser, or both?


> I’m wondering if there is some sort of log that would allow me to know
> how Apache is handling a faulty redirect? I’m a bit stuck tracking it
> down.

The Apache logs are at:
/var/log/apache2/access.log
/var/log/apache2/error.log

--
 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: Livecode server UNIX version (not Linux).

2020-10-31 Thread doc hawk via use-livecode
heriberto harrumphed

>3) Today's macOS is descended from NeXT (which Apple acquired and 
> transitioned macOS to in 1999)

And they got a free Jobs to go with it!

Or did they buy a Jobs, and get a free OS.  I’ve never quite been clear . . 

>  6) The Mach microkernel was replaced with the Appel XNU hybrid kernel

Ooh, I missed that.

> 1) It seems we can run a Livecode headless binary on BSD using the Linux 
> compatibility layer. Is that so?


I’m pretty sure that I ran 5.5 both headless and X under FreeBSD.

Come to think of it, I believe there are multiple threads in the archives, 
probably mid 2012, from when I was asking questions about it.  In there would 
be some discussions as to how far it gets in startup before bouncing off of X 
when not using headless.
___
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: Livecode server UNIX version (not Linux).

2020-10-31 Thread Heriberto Torrado via use-livecode

Richard, Brian thank you very much,

I read about this Livecode execution method a time ago and found it amazing.

Livecode is an amazing product!

So, these are my thoughts:

1) It seems we can run a Livecode headless binary on BSD using the Linux 
compatibility layer. Is that so?
2) How difficult could it be porting Livecode Server to ARM? I tried to 
do this last year using the source code but I got this error: Unknown 
platform.
I tried to remove from the source code the target platform check but it 
didn't work.


Best,
Hery




On 10/29/20 1:57 PM, Richard Gaskin via use-livecode wrote:

Brian Milby wrote:

> On Oct 28, 2020, at 11:57 PM, Richard Gaskin wrote:
>> But Heriberto's up for an adventure, one enhancement that would lower
>> RAM use and speed things up a bit is this one:
>>
>> https://quality.livecode.com/show_bug.cgi?id=14115
>>
>> Heriberto, if that's interesting to you let me know. I have a
>> workaround in place now...
>
> What is the workaround that you ended up using?  I looked at the code
> once but it quickly went over my head.  I couldn’t see where the fonts
> were pulled in, at least not where it could be cleanly intercepted.

I appreciate the time you and Mark Wieder spent looking into that - 
thanks again.


I just ran another test this morning to verify that the setup works 
reasonably well, and after I get some client work out of the way I'll 
post some notes on it.


In the meantime, another option just occurred to me which may be 
simpler and more complete:



What happens when standalones are run with -ui, and can that flag be 
added to LC Server?


If -ui not only bypasses font init but all other graphics init (like 
the Skia subsystem, buffering, etc.) it should be a far better solution.


And since -ui is already supported for standalones, my hope is it 
would be simpler to make it available for LC Server than any new flag 
which would require a new implementation throughout.


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.com http://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


--

Best regards/ Saludos cordiales/ Cordialement

Heriberto Torrado
​Chief Technology Officer (CTO)
​Director de informática
Directeur informatique

*NetDreams S.C.*
http://www.networkdreams.net 

 Address / Dirección / Adresse:​

*USA: *538 East 85th Street, #1C Manhattan NY, NY 10028 USA
*Europe / Europa: *Paseo de la Castellana 135 10ª Planta Madrid 28024 
Spain / España


*Tel - Phone - Fax:*

Phone / Tel USA : +1 917 287 5644 / +1 646 596 8787
Phone / Tel Spain :+34 627 556 500 / + 34 91 063 74 48

   Please consider the environment before printing this email / Por 
favor considera tu responsabilidad medioambiental antes de imprimir esta 
página.


Confidentiality: The information contained in this message as well as 
the attached file(s) is confidential/privileged and is only intended for 
the person(s) to whom it is addressed. If the reader of this message is 
not the intended recipient or the employee or agent responsible for 
delivering the message to the intended recipient, or you have received 
this comunication in error, please be aware that any dissemination, 
distribution or duplication is strictly prohibited, and can be illegal, 
and please notify us immediately and return the original message to us 
at the address above. Thank you.


Confidencialidad: La información contenida en este mensaje y/o 
archivo(s) adjunto(s) es confidencial/privilegiada y está destinada a 
ser leída sólo por la(s) persona(s) a la(s) que va dirigida. Si usted 
lee este mensaje y no es el destinatario señalado, el empleado o el 
agente responsable de entregar el mensaje al destinatario, o ha recibido 
esta comunicación por error, le informamos que está totalmente 
prohibida, y puede ser ilegal, cualquier divulgación, distribución o 
reproducción de esta comunicación, y le rogamos que nos lo notifique 
inmediatamente y nos devuelva el mensaje original a la dirección arriba 
mencionada. Gracias.


Viruses: Although we have taken steps to insure that this e-mail and 
attachments are free from any virus, we advise that in keeping with good 
computing practice, the recipient should ensure they are actually virus 
free.


Virus: Aunque hemos tomado las medidas para asegurarnos que este correo 
electrónico y sus ficheros adjuntos están libres de virus, le 
recomendamos que a efectos de mantener buenas prácticas de seguridad, el 
receptor debe asegurarse que este correo y sus ficheros adjuntos están 
libres de virus.


___
use-livecode mailing list
use-livecode

Re: Livecode server UNIX version (not Linux).

2020-10-31 Thread Heriberto Torrado via use-livecode
Not very sure, but months ago I read this (but he seems to talk about 
BSD user utils more than the Kernel).


https://www.quora.com/Is-macOS-considered-to-be-a-BSD-UNIX

Yes, Apple’s macOS can be considered to be a BSD UNIX.

   1) Apple’s macOS is an officially certified UNIX, that takes care of 
the UNIX part of the question.


   2) NeXT was created by using BSD OS, the Mach microkernel and then 
modifying those with new modules created by NeXT.


   3) Today's macOS is descended from NeXT (which Apple acquired and 
transitioned macOS to in 1999)


   4) Apple replaced the NeXT user interface with the world famous 
Macintosh user interface


   5) Apple, slowly over the years removed the NeXT modules and 
replaced them with pure BSD modules and some Apple custom modules


   6) The Mach microkernel was replaced with the Appel XNU hybrid kernel

   7) As of macOS Catalina 10.15, there is no longer any NeXT modules 
in macOS, macOS is now mostly BSD with a few custom Apple modules and of 
course the Macintosh user interface, which has been polished over the years


   8) So yes, macOS is BSD and at the same time it still is Apple Macintosh

   9) If you go to the command line you will see that it is almost 
completely BSD with a few Apple commands for security, file system, etc.


   10) If you are using it normally, then what you see is a pure 
Macintosh user experience.




On 10/29/20 1:32 PM, Bob Sneidar via use-livecode wrote:

Are we sure about this?? I thought Apple had moved completely away from BSD a 
long while back.

Bob S



On Oct 28, 2020, at 12:53 , Heriberto Torrado via use-livecode 
 wrote:

Thanks Andre,

I realized that BSD kernels are not the same as MacOS kernels.
As you say: MacOS has a hybrid kernel based on XNU and some parts of BSD.


___
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


--

Best regards/ Saludos cordiales/ Cordialement

Heriberto Torrado
​Chief Technology Officer (CTO)
​Director de informática
Directeur informatique

*NetDreams S.C.*
http://www.networkdreams.net 

 Address / Dirección / Adresse:​

*USA: *538 East 85th Street, #1C Manhattan NY, NY 10028 USA
*Europe / Europa: *Paseo de la Castellana 135 10ª Planta Madrid 28024 
Spain / España


*Tel - Phone - Fax:*

Phone / Tel USA : +1 917 287 5644 / +1 646 596 8787
Phone / Tel Spain :+34 627 556 500 / + 34 91 063 74 48

   Please consider the environment before printing this email / Por 
favor considera tu responsabilidad medioambiental antes de imprimir esta 
página.


Confidentiality: The information contained in this message as well as 
the attached file(s) is confidential/privileged and is only intended for 
the person(s) to whom it is addressed. If the reader of this message is 
not the intended recipient or the employee or agent responsible for 
delivering the message to the intended recipient, or you have received 
this comunication in error, please be aware that any dissemination, 
distribution or duplication is strictly prohibited, and can be illegal, 
and please notify us immediately and return the original message to us 
at the address above. Thank you.


Confidencialidad: La información contenida en este mensaje y/o 
archivo(s) adjunto(s) es confidencial/privilegiada y está destinada a 
ser leída sólo por la(s) persona(s) a la(s) que va dirigida. Si usted 
lee este mensaje y no es el destinatario señalado, el empleado o el 
agente responsable de entregar el mensaje al destinatario, o ha recibido 
esta comunicación por error, le informamos que está totalmente 
prohibida, y puede ser ilegal, cualquier divulgación, distribución o 
reproducción de esta comunicación, y le rogamos que nos lo notifique 
inmediatamente y nos devuelva el mensaje original a la dirección arriba 
mencionada. Gracias.


Viruses: Although we have taken steps to insure that this e-mail and 
attachments are free from any virus, we advise that in keeping with good 
computing practice, the recipient should ensure they are actually virus 
free.


Virus: Aunque hemos tomado las medidas para asegurarnos que este correo 
electrónico y sus ficheros adjuntos están libres de virus, le 
recomendamos que a efectos de mantener buenas prácticas de seguridad, el 
receptor debe asegurarse que este correo y sus ficheros adjuntos están 
libres de virus.



___
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: Livecode server UNIX version (not Linux).

2020-10-31 Thread Heriberto Torrado via use-livecode

Hi Richard,


Although I love UNIX, I think this is a much better point.
Looking at the feedback comments I have realized that porting Livecode 
to BSD may not be worth it.


However, I think it is critical for our community to be able to run 
Livecode scripting on IOT devices.


IOT and Edge computing is the future (and the present).

I dare to say that Livecode is a much simpler language for IOT than 
Python (although this is a personal opinion).


If you learn Livecode you kill five birds with one stone:
Desktop, Mobile, Scripting, Web and Server development.

Have you tried developing desktop or mobile applications with Python? It 
is a tremendous pain.


We need a much wider community to be able to extend Livecode to all areas.

Can you imagine Livecode as a popular option on most the important job 
posting sites?


I think the first step would be to have a working version of Livecode 
server for Raspberry.


Livecode currently compiles for many ARM versions.

How difficult could it be to adapt Livecode Server to these versions?


On 10/28/20 11:06 PM, Richard Gaskin via use-livecode wrote:

Heriberto Torrado wrote:

> So, here is my idea: What about to create non official versions of
> Livecode server (for scripting purposes) for other platforms not yet
> supported?
> I think it could be good for RunRev: They won't have to work
> supporting those versions and Livecode language will spread to other
> fields.
>
> What do you guys think? Do you think we'll have enough manpower into
> our community to do that?

Raspberry Pi, w/ Raspbian or other Debian-based Linux (Linux ARM).

Home servers, school labs, IoT, and so much more - all currently lost 
to us by not having a build for that engine.


The last build was an experiment done by a team member no longer with 
the company, for LC v7.1.


If you could update the Server edition to v9.6 we could at least have 
a modern version to work with for faceless applications, and any 
remaining work for the GUI side would likely be relatively small 
(certainly smaller than one person trying to knock it all off by 
themselves).





___
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: Livecode server UNIX version (not Linux).

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

Brian Milby wrote:

> On Oct 28, 2020, at 11:57 PM, Richard Gaskin wrote:
>> But Heriberto's up for an adventure, one enhancement that would lower
>> RAM use and speed things up a bit is this one:
>>
>> https://quality.livecode.com/show_bug.cgi?id=14115
>>
>> Heriberto, if that's interesting to you let me know. I have a
>> workaround in place now...
>
> What is the workaround that you ended up using?  I looked at the code
> once but it quickly went over my head.  I couldn’t see where the fonts
> were pulled in, at least not where it could be cleanly intercepted.

I appreciate the time you and Mark Wieder spent looking into that - 
thanks again.


I just ran another test this morning to verify that the setup works 
reasonably well, and after I get some client work out of the way I'll 
post some notes on it.


In the meantime, another option just occurred to me which may be simpler 
and more complete:



What happens when standalones are run with -ui, and can that flag be 
added to LC Server?


If -ui not only bypasses font init but all other graphics init (like the 
Skia subsystem, buffering, etc.) it should be a far better solution.


And since -ui is already supported for standalones, my hope is it would 
be simpler to make it available for LC Server than any new flag which 
would require a new implementation throughout.


--
 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: Livecode server UNIX version (not Linux).

2020-10-29 Thread Bob Sneidar via use-livecode
Are we sure about this?? I thought Apple had moved completely away from BSD a 
long while back. 

Bob S


> On Oct 28, 2020, at 12:53 , Heriberto Torrado via use-livecode 
>  wrote:
> 
> Thanks Andre,
> 
> I realized that BSD kernels are not the same as MacOS kernels.
> As you say: MacOS has a hybrid kernel based on XNU and some parts of BSD.


___
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: Livecode server UNIX version (not Linux).

2020-10-29 Thread Ralph DiMola via use-livecode
The session lockup issue also needs to be addressed. This has been raised in 
the past but I found the recipe. This bug occurs when requests come too close 
together. My spidy sense says that this is a file locking race condition. 
https://quality.livecode.com/show_bug.cgi?id=22560


Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net


-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of 
Brian Milby via use-livecode
Sent: Thursday, October 29, 2020 9:26 AM
To: How to use LiveCode
Cc: Brian Milby; Richard Gaskin
Subject: Re: Livecode server UNIX version (not Linux).

What is the workaround that you ended up using?  I looked at the code once but 
it quickly went over my head.  I couldn’t see where the fonts were pulled in, 
at least not where it could be cleanly intercepted.

Sent from my iPhone

> On Oct 28, 2020, at 11:57 PM, Richard Gaskin via use-livecode 
>  wrote:
> 
> There may be many useful requests in the bug DB worth considering to improve 
> the performance, robustness, and feature set of LC Server.
> 
> But Heriberto's up for an adventure, one enhancement that would lower RAM use 
> and speed things up a bit is this one:
> 
> https://quality.livecode.com/show_bug.cgi?id=14115
> 
> Heriberto, if that's interesting to you let me know. I have a workaround in 
> place now, and I'll bet there's a way to move that inside the engine for a 
> solution that's much simpler than when we discussed it here on this list 
> earlier this year.
> 
> --
> 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: Livecode server UNIX version (not Linux).

2020-10-29 Thread Brian Milby via use-livecode
What is the workaround that you ended up using?  I looked at the code once but 
it quickly went over my head.  I couldn’t see where the fonts were pulled in, 
at least not where it could be cleanly intercepted.

Sent from my iPhone

> On Oct 28, 2020, at 11:57 PM, Richard Gaskin via use-livecode 
>  wrote:
> 
> There may be many useful requests in the bug DB worth considering to improve 
> the performance, robustness, and feature set of LC Server.
> 
> But Heriberto's up for an adventure, one enhancement that would lower RAM use 
> and speed things up a bit is this one:
> 
> https://quality.livecode.com/show_bug.cgi?id=14115
> 
> Heriberto, if that's interesting to you let me know. I have a workaround in 
> place now, and I'll bet there's a way to move that inside the engine for a 
> solution that's much simpler than when we discussed it here on this list 
> earlier this year.
> 
> -- 
> 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: Livecode server UNIX version (not Linux).

2020-10-29 Thread Andre Garzia via use-livecode
Hey Friends,

I'm enjoying this thread a lot. I'll not be the person to tell someone not
to port LC to some new ISA or OS, I think it would be great if LC would run
in BSD. Personally, I don't have the time or even the skillset to help
this, but I'd love to benefit from it. Incidentally this is the exact
mindset that prevents good things from happening because many people want
to benefit from something without actually working towards it but I really
can't work on this. The work that LC HQ has done throughout the years
modernizing the codebase and keeping it all working in multiple systems is
amazing and a feat worth of awards but, don't let the convenience of having
that funky download page with all the versions fool you, building LC is not
that easy especially if you're targeting a new ISA/OS combination.

The ideal way in my humble but educated opinion is for LC GPL to be added
to the ports collection of FreeBSD, this is described in the FreeBSD
porters handbook:

https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/index.html

This is probably not a weekend project and not for the faint of heart. It
will require a lot of work to do this properly, but it can be done.

Before dismissing someone volunteering their own time to work on a FreeBSD
port based on that system's market share remember that Macs used to be a
very small percentage of the market. Under the same rules, LC shouldn't
have focused at all on having it working on Macs, clearly Windows was 90%
of the global marketshare. FreeBSD has a ton of stuff going for it and the
wave of people migrating from Linux towards a BSD experience has been
growing steadily since the encroaching of systemd and other "decisions"
have moved Linux away from a more traditional UNIX experience. Lots of the
shiny things people are doing with Linux have been a part of day to day
life of FreeBSD users much earlier and is usually provided in a more
cohesive experience, such as Jails vs Docker.

I advise people who haven't seen modern FreeBSD workflows to check their
foundation youtube channel, there is a lot of nice in-depth videos there
that might help people see it through new eyes. That being said, I don't
think that LC HQ should dedicate their time to do it, they need to focus on
what produces money regardless of how I or other users here feel about
different operating systems.




On Thu, 29 Oct 2020 at 03:57, Richard Gaskin via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Pi Digital wrote:
>
>  > Here’s my take (for what it’s worth). Although Unix is used in 71.6%
>  > (source: w3techs.com) of all known websites as of today and Linux only
>  > 29.0%, at least we have ‘a’ distro that works on some server.
>
> That struck me as odd, so I took a moment to see how they derived that
> impressive Unix number (thanks for including the source).
>
> It turns out they're lumping Unix and Linux together under "Unix" - when
> you click "Unix" you get this breakdown:
>
> Subcategories of Unix
>
> This diagram shows the percentages of websites using various
> subcategories of Unix.
>
> How to read the diagram:
> Linux is used by 40.5% of all the websites who use Unix
>
> Websites who use Unix
> Linux   40.5%
> BSD 0.5%
> Darwin less than 0.1%
> HP-UX  less than 0.1%
> Solarisless than 0.1%
> Minix  less than 0.1%
> Unknown59.0%
>
> I'd wager most of the 59% using "Unknown" are also Linux.
>
> That would line up well enough with what we see at the Wikipedia page
> for server OS market share:
>
>Linux   FreeBSDUnknown  Windows
> W3Cook July 201596.4% 1.7%   0%  1.9%
> W3TechsFeb  201535.9%   0.95%   30.9%   32.3%
> Security Space  Feb 2014   <79.3% N/A   >20.7%
>
>
> https://en.wikipedia.org/wiki/Usage_share_of_operating_systems#Public_servers_on_the_Internet
>
> While Windows has a strong showing in the enterprise for internal
> servers, public-facing servers are by far a Linux story.
>
> This is not only true for most shared and VPS hosting, but public clouds
> as well, with Google, Amazon, and Apple all using Linux to drive their
> infrastructure, and even though Azure is a Win/Linux mix there's a
> surprising amount of Linux going on there (with Ubuntu being the leading
> choice inside containers).
>
> I bring this up not just because I'm a Linux fanboy (though I am and
> make no apologies; I was even worse when I used to be a Mac fanboy ),
> but just as a long-winded way to help support your main thesis:
>
> Aside from new architectures like Linux ARM (Raspberry Pi), the most
> commonly-used platforms where LiveCode Serer would be used are well
> supported.
>
> So, as you wrote:
>
>  > Seriously, if anyone was considering doing this, please..., please,
>  > reconsider and put your efforts and talent into fixing what we already
>  > have. It would be far more benefici

Re: Livecode server UNIX version (not Linux).

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

Pi Digital wrote:

> Here’s my take (for what it’s worth). Although Unix is used in 71.6%
> (source: w3techs.com) of all known websites as of today and Linux only
> 29.0%, at least we have ‘a’ distro that works on some server.

That struck me as odd, so I took a moment to see how they derived that 
impressive Unix number (thanks for including the source).


It turns out they're lumping Unix and Linux together under "Unix" - when 
you click "Unix" you get this breakdown:


   Subcategories of Unix

   This diagram shows the percentages of websites using various
   subcategories of Unix.

   How to read the diagram:
   Linux is used by 40.5% of all the websites who use Unix

   Websites who use Unix
   Linux   40.5%
   BSD  0.5%
   Darwin less than 0.1%
   HP-UX  less than 0.1%
   Solarisless than 0.1%
   Minix  less than 0.1%
   Unknown59.0%

I'd wager most of the 59% using "Unknown" are also Linux.

That would line up well enough with what we see at the Wikipedia page 
for server OS market share:


  Linux   FreeBSDUnknown  Windows
   W3Cook July 201596.4% 1.7%   0%  1.9%
   W3TechsFeb  201535.9%   0.95%   30.9%   32.3%
   Security Space  Feb 2014   <79.3% N/A   >20.7%

https://en.wikipedia.org/wiki/Usage_share_of_operating_systems#Public_servers_on_the_Internet

While Windows has a strong showing in the enterprise for internal 
servers, public-facing servers are by far a Linux story.


This is not only true for most shared and VPS hosting, but public clouds 
as well, with Google, Amazon, and Apple all using Linux to drive their 
infrastructure, and even though Azure is a Win/Linux mix there's a 
surprising amount of Linux going on there (with Ubuntu being the leading 
choice inside containers).


I bring this up not just because I'm a Linux fanboy (though I am and 
make no apologies; I was even worse when I used to be a Mac fanboy ), 
but just as a long-winded way to help support your main thesis:


Aside from new architectures like Linux ARM (Raspberry Pi), the most 
commonly-used platforms where LiveCode Serer would be used are well 
supported.


So, as you wrote:

> Seriously, if anyone was considering doing this, please..., please,
> reconsider and put your efforts and talent into fixing what we already
> have. It would be far more beneficial to a much greater community
> population.

There may be many useful requests in the bug DB worth considering to 
improve the performance, robustness, and feature set of LC Server.


But Heriberto's up for an adventure, one enhancement that would lower 
RAM use and speed things up a bit is this one:


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

Heriberto, if that's interesting to you let me know. I have a workaround 
in place now, and I'll bet there's a way to move that inside the engine 
for a solution that's much simpler than when we discussed it here on 
this list earlier this year.


--
 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: Livecode server UNIX version (not Linux).

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

Heriberto Torrado wrote:

> So, here is my idea: What about to create non official versions of
> Livecode server (for scripting purposes) for other platforms not yet
> supported?
> I think it could be good for RunRev: They won't have to work
> supporting those versions and Livecode language will spread to other
> fields.
>
> What do you guys think? Do you think we'll have enough manpower into
> our community to do that?

Raspberry Pi, w/ Raspbian or other Debian-based Linux (Linux ARM).

Home servers, school labs, IoT, and so much more - all currently lost to 
us by not having a build for that engine.


The last build was an experiment done by a team member no longer with 
the company, for LC v7.1.


If you could update the Server edition to v9.6 we could at least have a 
modern version to work with for faceless applications, and any remaining 
work for the GUI side would likely be relatively small (certainly 
smaller than one person trying to knock it all off by themselves).


--
 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: Livecode server UNIX version (not Linux).

2020-10-28 Thread Pi Digital via use-livecode
It’s a great idea. How do you propose it be handled? Assuming this is a build 
based on the current system it will likely have to be compiled in Linux as the 
obvious choice. Do we have anyone with the appropriate skills in coding C to 
look into the various server platforms to be compiled for? Someone with enough 
time and resources, knowledge and energy? 

If so, why aren’t those people helpful enough to fix what we already have? 

[Get’s off soap box (for the time being)]  ;) 

Here’s my take (for what it’s worth). Although Unix is used in 71.6% (source: 
w3techs.com) of all known websites as of today and Linux only 29.0%, at least 
we have ‘a’ distro that works on some server. Like you, I’m currently using a 
CentOS web server with LC happily. But the clincher has to be that currently 
FreeBSD has no support for Dell,HP or IBM servers. The only advantages to 
having FreeBSD is a teeny bit better security, tiny performance improvement and 
have it in a fully fledged OS instead of just a kernel. Is it worth anyone’s 
time and effort building for those ‘advantages’?

Seriously, if anyone was considering doing this, please..., please, reconsider 
and put your efforts and talent into fixing what we already have. It would be 
far more beneficial to a much greater community population. 

All the very best. 

Sean Cole
Pi Digital


> On 28 Oct 2020, at 19:53, Heriberto Torrado via use-livecode 
>  wrote:
> 
> So, here is my idea: What about to create non official versions of Livecode 
> server (for scripting purposes) for other platforms not yet supported?
> I think it could be good for RunRev: They won't have to work supporting those 
> versions and Livecode language will spread to other fields.
> 
> What do you guys think? Do you think we'll have enough manpower into our 
> community to do that?
> 
> Best,
> Hery
___
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: Livecode server UNIX version (not Linux).

2020-10-28 Thread Heriberto Torrado via use-livecode

Thanks Andre,

I realized that BSD kernels are not the same as MacOS kernels.
As you say: MacOS has a hybrid kernel based on XNU and some parts of BSD.

I'm only interested in running the Livecode server version and not the IDE.
So, I think that compiling could be the best solution.

I have been coding with Livecode for several years almost every week.
So my mind is very "Livecodized".
In fact, when I have to change to PHP, JS, Python or Golang, I feel very 
unproductive. Everything takes much more time than doing it with Livecode.


I would like not only to run Livecode server on BSD, but also on 
different hardware platforms.
I think on the IOT field Livecode script could have a good opportunity 
to be a killer language.


In the past, I tried to compile Livecode server for this devices, but I 
got several errors: 
https://www.friendlyarm.com/index.php?route=product/product&path=69&product_id=279


So, here is my idea: What about to create non official versions of 
Livecode server (for scripting purposes) for other platforms not yet 
supported?
I think it could be good for RunRev: They won't have to work supporting 
those versions and Livecode language will spread to other fields.


What do you guys think? Do you think we'll have enough manpower into our 
community to do that?


Best,
Hery



On 10/28/20 11:24 AM, Andre Garzia via use-livecode wrote:

On Mon, 19 Oct 2020 at 21:31, Paul McClernan via use-livecode <
use-livecode@lists.runrev.com> wrote:


OS X, Windows 95 through Windows 10, Raspberry Pi and "several variations
of Unix (I think is just means Linux)".

I'm thinking about tinkering with a FreeBSD server and LiveCode server,
but I didn't see a "UNIX" version, so I suppose that I have to compile

it.

Have any of you installed LiveCode server on FreeBSD (or Solaris)?


As others mentioned, this is dated information. However, last I checked
macOS (or rather the "Darwin" layer of macOS) is POSIX compliant and built
from BSD UNIX 4.4 & bits of FreeBSD. So, I would not be all that surprised
if a LiveCode for macOS GUI-less/CLI executable could run on some other
BSD.



That is not really how this works.

macOS is built on top of old NEXTSTEP and it is POSIX compliant but
that doesn't mean that LC from mac can work on BSD. MacOS uses the XNU
kernel, its executable file format and shared library file format are
unique and not related at all to anything that a BSD can run.

FreeBSD can run Linux binaries though as can be seen in the FreeBSD
Handbook:

https://www.freebsd.org/doc/handbook/linuxemu.html

This is done through emulation and I can't vouch for the performance or
correctness of it but, in theory you can install the necessary components
and libraries and then be able to run the Linux version of LC in FreeBSD.

Another option is trying to build from source. To be effective, this would
require knowledge of the FreeBSD ports and packages system besides knowing
enough of LC source and C++ to patch anything needed. I bet they'd love
such a contribution if you have the chops to do it.




___
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: Livecode server UNIX version (not Linux).

2020-10-28 Thread Andre Garzia via use-livecode
On Mon, 19 Oct 2020 at 21:31, Paul McClernan via use-livecode <
use-livecode@lists.runrev.com> wrote:

> >
> > OS X, Windows 95 through Windows 10, Raspberry Pi and "several variations
> > of Unix (I think is just means Linux)".
> >
> > I'm thinking about tinkering with a FreeBSD server and LiveCode server,
> > but I didn't see a "UNIX" version, so I suppose that I have to compile
> it.
> > Have any of you installed LiveCode server on FreeBSD (or Solaris)?
> >
>
> As others mentioned, this is dated information. However, last I checked
> macOS (or rather the "Darwin" layer of macOS) is POSIX compliant and built
> from BSD UNIX 4.4 & bits of FreeBSD. So, I would not be all that surprised
> if a LiveCode for macOS GUI-less/CLI executable could run on some other
> BSD.
>
>
That is not really how this works.

macOS is built on top of old NEXTSTEP and it is POSIX compliant but
that doesn't mean that LC from mac can work on BSD. MacOS uses the XNU
kernel, its executable file format and shared library file format are
unique and not related at all to anything that a BSD can run.

FreeBSD can run Linux binaries though as can be seen in the FreeBSD
Handbook:

https://www.freebsd.org/doc/handbook/linuxemu.html

This is done through emulation and I can't vouch for the performance or
correctness of it but, in theory you can install the necessary components
and libraries and then be able to run the Linux version of LC in FreeBSD.

Another option is trying to build from source. To be effective, this would
require knowledge of the FreeBSD ports and packages system besides knowing
enough of LC source and C++ to patch anything needed. I bet they'd love
such a contribution if you have the chops to do it.


-- 
https://www.andregarzia.com 
Want to support me? Buy me a coffee at https://ko-fi.com/andregarzia
___
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: Livecode server UNIX version (not Linux).

2020-10-19 Thread Paul McClernan via use-livecode
>
> OS X, Windows 95 through Windows 10, Raspberry Pi and "several variations
> of Unix (I think is just means Linux)".
>
> I'm thinking about tinkering with a FreeBSD server and LiveCode server,
> but I didn't see a "UNIX" version, so I suppose that I have to compile it.
> Have any of you installed LiveCode server on FreeBSD (or Solaris)?
>

As others mentioned, this is dated information. However, last I checked
macOS (or rather the "Darwin" layer of macOS) is POSIX compliant and built
from BSD UNIX 4.4 & bits of FreeBSD. So, I would not be all that surprised
if a LiveCode for macOS GUI-less/CLI executable could run on some other BSD.

On Thu, Oct 15, 2020 at 12:08 PM Heriberto Torrado via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Dear all,
>
> I have a question.   It's not a very important question and I don’t want
> to bother you y 'all, so if you think is off-topic, feel free to not to
> respond,  I'm just curious.
>
> I've been working with Livecode for almost five years, and I never saw a
> LiveCode server  "UNIX" version.
>
> The LiveCode Wikipedia’s article says this: LiveCode runs on iOS, Android,
> OS X, Windows 95 through Windows 10, Raspberry Pi and "several variations
> of Unix (I think is just means Linux)".
>
> I'm thinking about tinkering with a FreeBSD server and LiveCode server,
> but I didn't see a "UNIX" version, so I suppose that I have to compile it.
> Have any of you installed LiveCode server on FreeBSD (or Solaris)?
>
> I'm just thinking, but maybe there's a small niche working  with LiveCode
> server on BSD or Solaris (still many companies use them and not many people
> develop software for this platforms nowadays).
> We have a few companies in Spain (my country) still using Solaris or BSD
> servers (mainly in the Graphic arts business).
>
> PS, I currently work with LiveCode Server on Centos, but it could be
> interesting  to test it in FreeBSD.
>
> Best regards/ Saludos cordiales/ Cordialement
>
> Heriberto Torrado
> ​Chief Technology Officer (CTO)
> ​Director de informática
> Directeur informatique
>
> https://networkdreams.net
>
>
>
>
> ___
> 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: Livecode server UNIX version (not Linux).

2020-10-18 Thread Heriberto Torrado via use-livecode

Hi Richmond,

I think it's because since the early 2000's, Linux is the UNIX-like 
standard platform in the world, and maybe Runrev realized that it is not 
worth it to put more effort into other UNIX platforms rather than Linux


It is a pity because now, Linux runs on 90% of the internet servers.
I love Linux, but monopolies are not good (even "free" monopolies).

Solaris, AIX and HP-UX are almost dead and BSDs and illumos derivations 
are decaying day by day.


There are still some companies using them in Spain, but they lack 
technicians, so they are stepping on the gas to get rid of them.
There are still some grey beards that refuse to toss them away, and 
maybe there are some opportunities working with them.


Still here in the US there are many governmental apartments using them.

Sadly, UNIX is part of a world that no longer exists.

Nice an updated reading: 
https://www.unixsheikh.com/articles/freebsd-is-an-amazing-operating-system.html


Best,
Hery

On 10/17/20 2:44 PM, Richmond via use-livecode wrote:
"But rightly LC saw where the future was headed with mobile computing 
and they obviously had to make sacrifices along the way (e.g. FreeBSD, 
etc)"


That sounds super if it were true, but I don't think it is as RunRev 
(as they then were) dropped support for SPARC, UNIX and so

forth a long time before they began work on mobile platforms.

Richmond.

On 16.10.20 10:55, Bernard Devlin via use-livecode wrote:

  Hi Heriberto

Back in the day (20 years ago) the engine/IDE ran on FreeBSD and various
proprietary unixes.

The Linux server version has been seen to work on FreeBSD back in 2011
(after installing Linux compatibility layer).

http://runtime-revolution.278305.n4.nabble.com/Yay-Victory-RevServer-runs-on-FreeBSD-with-Linux-Compat-installed-td3445454.html 



You _might_ be able to get that to work now.  I doubt it would be 
supported
by Livecode.  What amazes me nowadays is just how much more complex 
things
are than they were 20 years ago - looking at the compatibility matrix 
for
Livecode dependencies on OS version, XCode version, device version -- 
all

just to produce apps that run on iOS:

https://livecode.com/docs/9-5-0/faq/faq/

If someone had said 20 years ago that a small company in Scotland could
manage that kind of complexity people would have laughed in 
disbelief.  But
rightly LC saw where the future was headed with mobile computing and 
they
obviously had to make sacrifices along the way (e.g. FreeBSD, etc) to 
be in

a situation to take on this level of complexity.

HTH Bernard

On Thu, Oct 15, 2020 at 5:08 PM Heriberto Torrado via use-livecode <
use-livecode@lists.runrev.com> wrote:


Dear all,

I have a question.   It's not a very important question and I don’t 
want

to bother you y 'all, so if you think is off-topic, feel free to not to
respond,  I'm just curious.

I've been working with Livecode for almost five years, and I never 
saw a

LiveCode server  "UNIX" version.

The LiveCode Wikipedia’s article says this: LiveCode runs on iOS, 
Android,
OS X, Windows 95 through Windows 10, Raspberry Pi and "several 
variations

of Unix (I think is just means Linux)".

I'm thinking about tinkering with a FreeBSD server and LiveCode server,
but I didn't see a "UNIX" version, so I suppose that I have to 
compile it.

Have any of you installed LiveCode server on FreeBSD (or Solaris)?

I'm just thinking, but maybe there's a small niche working with 
LiveCode
server on BSD or Solaris (still many companies use them and not many 
people

develop software for this platforms nowadays).
We have a few companies in Spain (my country) still using Solaris or 
BSD

servers (mainly in the Graphic arts business).

PS, I currently work with LiveCode Server on Centos, but it could be
interesting  to test it in FreeBSD.

Best regards/ Saludos cordiales/ Cordialement

Heriberto Torrado
​Chief Technology Officer (CTO)
​Director de informática
Directeur informatique

https://networkdreams.net




___
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


--

Best regards/ Saludos cordiales/ Cordialement

Heriberto Torrado
​Chief Technology Officer (CTO)
​Director de informática
Directeur informatique

*NetDreams S.C.*
http://www.networkdreams.net 

 Address / Dirección / Adresse:​

*USA: *538

Re: Livecode server UNIX version (not Linux).

2020-10-18 Thread Heriberto Torrado via use-livecode

Barnand, Thanks for your kindly response

"What amazes me nowadays is just how much more complex things
are than they were 20 years ago"

Yes,that's the main problem today.

Regardless of the programming language, nowadays we have to deal with desktops, 
mobiles, servers, etc. and that is crazy.

In the web design world, they "fixed" it using CSS + HTML + JS + SQL + "insert your 
favorite server language here", but that is also a mess too.

I miss the old days: Just Desktop & servers.:-(

As you said: I don't know how runrev (Livecode) can deal with that complexity 
level.
Five different platforms and 32 & 64 bits.

I'll try the Linux compatibility layer. I think the latest Solaris versions 
have it too.

Best,
Hery//


On 10/16/20 3:55 AM, Bernard Devlin via use-livecode wrote:

  Hi Heriberto

Back in the day (20 years ago) the engine/IDE ran on FreeBSD and various
proprietary unixes.

The Linux server version has been seen to work on FreeBSD back in 2011
(after installing Linux compatibility layer).

http://runtime-revolution.278305.n4.nabble.com/Yay-Victory-RevServer-runs-on-FreeBSD-with-Linux-Compat-installed-td3445454.html

You _might_ be able to get that to work now.  I doubt it would be supported
by Livecode.  What amazes me nowadays is just how much more complex things
are than they were 20 years ago - looking at the compatibility matrix for
Livecode dependencies on OS version, XCode version, device version -- all
just to produce apps that run on iOS:

https://livecode.com/docs/9-5-0/faq/faq/

If someone had said 20 years ago that a small company in Scotland could
manage that kind of complexity people would have laughed in disbelief.  But
rightly LC saw where the future was headed with mobile computing and they
obviously had to make sacrifices along the way (e.g. FreeBSD, etc) to be in
a situation to take on this level of complexity.

HTH Bernard

On Thu, Oct 15, 2020 at 5:08 PM Heriberto Torrado via use-livecode <
use-livecode@lists.runrev.com> wrote:


Dear all,

I have a question.   It's not a very important question and I don’t want
to bother you y 'all, so if you think is off-topic, feel free to not to
respond,  I'm just curious.

I've been working with Livecode for almost five years, and I never saw a
LiveCode server  "UNIX" version.

The LiveCode Wikipedia’s article says this: LiveCode runs on iOS, Android,
OS X, Windows 95 through Windows 10, Raspberry Pi and "several variations
of Unix (I think is just means Linux)".

I'm thinking about tinkering with a FreeBSD server and LiveCode server,
but I didn't see a "UNIX" version, so I suppose that I have to compile it.
Have any of you installed LiveCode server on FreeBSD (or Solaris)?

I'm just thinking, but maybe there's a small niche working  with LiveCode
server on BSD or Solaris (still many companies use them and not many people
develop software for this platforms nowadays).
We have a few companies in Spain (my country) still using Solaris or BSD
servers (mainly in the Graphic arts business).

PS, I currently work with LiveCode Server on Centos, but it could be
interesting  to test it in FreeBSD.

Best regards/ Saludos cordiales/ Cordialement

Heriberto Torrado
​Chief Technology Officer (CTO)
​Director de informática
Directeur informatique

https://networkdreams.net




___
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


--

Best regards/ Saludos cordiales/ Cordialement

Heriberto Torrado
​Chief Technology Officer (CTO)
​Director de informática
Directeur informatique

*NetDreams S.C.*
http://www.networkdreams.net 

 Address / Dirección / Adresse:​

*USA: *538 East 85th Street, #1C Manhattan NY, NY 10028 USA
*Europe / Europa: *Paseo de la Castellana 135 10ª Planta Madrid 28024 
Spain / España


*Tel - Phone - Fax:*

Phone / Tel USA : +1 917 287 5644 / +1 646 596 8787
Phone / Tel Spain :+34 627 556 500 / + 34 91 063 74 48

   Please consider the environment before printing this email / Por 
favor considera tu responsabilidad medioambiental antes de imprimir esta 
página.


Confidentiality: The information contained in this message as well as 
the attached file(s) is confidential/privileged and is only intended for 
the person(s) to whom it is addressed. If the reader of this message is 
not the intended recipient or the employee or agent responsible for 
delivering the message to the intended recipient, or you have received 
this comunication in error, please be aware that any dissemination, 
distribution or duplication is strictly prohibited, and can be illegal, 
and plea

Re: Livecode server UNIX version (not Linux).

2020-10-18 Thread Bernard Devlin via use-livecode
Which is why my sentence finishes with "... to be in a situation to take on
this level of complexity." :-)

Apple first bought the domain iphone.org in 1999. That the iPhone was under
development was even being discussed by mainstream media such as the New
York Times in 2002. The public availability of the iPhone was announced by
Apple at the start of January 2007. Those with an ear to the ground would
have been considering their future options between 2002 and 2007. I'm glad
they had the foresight I didn't have.

Kind regards,
Bernard


On Sat, Oct 17, 2020 at 7:45 PM Richmond via use-livecode <
use-livecode@lists.runrev.com> wrote:

> That sounds super if it were true, but I don't think it is as RunRev (as
> they then were) dropped support for SPARC, UNIX and so
> forth a long time before they began work on mobile platforms.
>
> 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


Re: Livecode server UNIX version (not Linux).

2020-10-17 Thread Richmond via use-livecode
"But rightly LC saw where the future was headed with mobile computing 
and they obviously had to make sacrifices along the way (e.g. FreeBSD, etc)"


That sounds super if it were true, but I don't think it is as RunRev (as 
they then were) dropped support for SPARC, UNIX and so

forth a long time before they began work on mobile platforms.

Richmond.

On 16.10.20 10:55, Bernard Devlin via use-livecode wrote:

  Hi Heriberto

Back in the day (20 years ago) the engine/IDE ran on FreeBSD and various
proprietary unixes.

The Linux server version has been seen to work on FreeBSD back in 2011
(after installing Linux compatibility layer).

http://runtime-revolution.278305.n4.nabble.com/Yay-Victory-RevServer-runs-on-FreeBSD-with-Linux-Compat-installed-td3445454.html

You _might_ be able to get that to work now.  I doubt it would be supported
by Livecode.  What amazes me nowadays is just how much more complex things
are than they were 20 years ago - looking at the compatibility matrix for
Livecode dependencies on OS version, XCode version, device version -- all
just to produce apps that run on iOS:

https://livecode.com/docs/9-5-0/faq/faq/

If someone had said 20 years ago that a small company in Scotland could
manage that kind of complexity people would have laughed in disbelief.  But
rightly LC saw where the future was headed with mobile computing and they
obviously had to make sacrifices along the way (e.g. FreeBSD, etc) to be in
a situation to take on this level of complexity.

HTH Bernard

On Thu, Oct 15, 2020 at 5:08 PM Heriberto Torrado via use-livecode <
use-livecode@lists.runrev.com> wrote:


Dear all,

I have a question.   It's not a very important question and I don’t want
to bother you y 'all, so if you think is off-topic, feel free to not to
respond,  I'm just curious.

I've been working with Livecode for almost five years, and I never saw a
LiveCode server  "UNIX" version.

The LiveCode Wikipedia’s article says this: LiveCode runs on iOS, Android,
OS X, Windows 95 through Windows 10, Raspberry Pi and "several variations
of Unix (I think is just means Linux)".

I'm thinking about tinkering with a FreeBSD server and LiveCode server,
but I didn't see a "UNIX" version, so I suppose that I have to compile it.
Have any of you installed LiveCode server on FreeBSD (or Solaris)?

I'm just thinking, but maybe there's a small niche working  with LiveCode
server on BSD or Solaris (still many companies use them and not many people
develop software for this platforms nowadays).
We have a few companies in Spain (my country) still using Solaris or BSD
servers (mainly in the Graphic arts business).

PS, I currently work with LiveCode Server on Centos, but it could be
interesting  to test it in FreeBSD.

Best regards/ Saludos cordiales/ Cordialement

Heriberto Torrado
​Chief Technology Officer (CTO)
​Director de informática
Directeur informatique

https://networkdreams.net




___
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: Livecode server UNIX version (not Linux).

2020-10-16 Thread Bernard Devlin via use-livecode
 Hi Heriberto

Back in the day (20 years ago) the engine/IDE ran on FreeBSD and various
proprietary unixes.

The Linux server version has been seen to work on FreeBSD back in 2011
(after installing Linux compatibility layer).

http://runtime-revolution.278305.n4.nabble.com/Yay-Victory-RevServer-runs-on-FreeBSD-with-Linux-Compat-installed-td3445454.html

You _might_ be able to get that to work now.  I doubt it would be supported
by Livecode.  What amazes me nowadays is just how much more complex things
are than they were 20 years ago - looking at the compatibility matrix for
Livecode dependencies on OS version, XCode version, device version -- all
just to produce apps that run on iOS:

https://livecode.com/docs/9-5-0/faq/faq/

If someone had said 20 years ago that a small company in Scotland could
manage that kind of complexity people would have laughed in disbelief.  But
rightly LC saw where the future was headed with mobile computing and they
obviously had to make sacrifices along the way (e.g. FreeBSD, etc) to be in
a situation to take on this level of complexity.

HTH Bernard

On Thu, Oct 15, 2020 at 5:08 PM Heriberto Torrado via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Dear all,
>
> I have a question.   It's not a very important question and I don’t want
> to bother you y 'all, so if you think is off-topic, feel free to not to
> respond,  I'm just curious.
>
> I've been working with Livecode for almost five years, and I never saw a
> LiveCode server  "UNIX" version.
>
> The LiveCode Wikipedia’s article says this: LiveCode runs on iOS, Android,
> OS X, Windows 95 through Windows 10, Raspberry Pi and "several variations
> of Unix (I think is just means Linux)".
>
> I'm thinking about tinkering with a FreeBSD server and LiveCode server,
> but I didn't see a "UNIX" version, so I suppose that I have to compile it.
> Have any of you installed LiveCode server on FreeBSD (or Solaris)?
>
> I'm just thinking, but maybe there's a small niche working  with LiveCode
> server on BSD or Solaris (still many companies use them and not many people
> develop software for this platforms nowadays).
> We have a few companies in Spain (my country) still using Solaris or BSD
> servers (mainly in the Graphic arts business).
>
> PS, I currently work with LiveCode Server on Centos, but it could be
> interesting  to test it in FreeBSD.
>
> Best regards/ Saludos cordiales/ Cordialement
>
> Heriberto Torrado
> ​Chief Technology Officer (CTO)
> ​Director de informática
> Directeur informatique
>
> https://networkdreams.net
>
>
>
>
> ___
> 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: LiveCode server IDE

2020-10-13 Thread Keith Clarke via use-livecode
Hi Alex,
Thanks for the description of your workflow, toolset and dev/test rig - an 
interesting direction of travel, especially as it extends to my current setup.

I really like the division of labour between the LC IDE for LC and Coda for 
html, CSS and native sync to server. Nice too, the 'closed-loop environment, 
with the local test stack that can call, display (and if necessary interrogate) 
specific rendered web pages.

So, my learning path moves on, from tools to building out my own dev/test 
scaffolding and moving my thinking from LC stacks with UI to script-only stacks 
in an LC Server CGI context serving web forms. Plenty of reading to do! :-)

Thanks & regards,
Keith

> On 12 Oct 2020, at 20:51, Alex Tweedly via use-livecode 
>  wrote:
> 
> Hi Keith,
> 
> My workflow is not much different from Ralph's.
> 
> Short answer:
> 
>  - edit in IDE, test in IDE
> 
>  - upload to server using Coda 2  (which I also use to edit non-lc files).
> 
> Long answer:
> 
>  - I don't use any of the LCserver specific features -  no entangled html, no 
> includes, ... - everything is a regular script-only stack
> 
>  - I have a test stack that I use in the IDE which lets me specify which page 
> (and parameters, cookies, etc.) I want, generates the web page and displays 
> the output in a web browser instance within the testing stack.
> 
>  - when satisfied, I use Coda 2 to upload the LC files (I never edit them in 
> Coda))
> 
>  - I edit other files (menu definitions, form definitions, web pages, views, 
> etc.)  in Coda2
> 
> I use both on-rev and hostM for servers - both have everything already 
> installed,  good support, etc.
> 
> (tbh, if on-rev hadn't had a bad patch a few years ago with email problems, I 
> would probably never have strayed, but it's kind of good to know that hostM 
> is there as an alternate source in case I need it :-)
> 
> Alex.
> 
> On 12/10/2020 15:49, Keith Clarke via use-livecode wrote:
> 
>> Thanks for the response, Ralph.
>> 
>> I've struggled to retain/regain my old local Sites, web server and LC Server 
>> on my home Macs. So, I was thinking of embarking down the script-only stacks 
>> route, using an on-rev LC-Server instance to do any web-services 
>> heavy-lifting work server-to-server, on behalf of client apps that use 
>> either LC desktop or simple html forms.
>> 
>> My html & css 'hackery-pokery' has been on Coda2 to date, but its 
>> replacement, Nova, still lacks any LiveCode autocompletion.
>> 
>> I may need to learn a new text-editing based IDE tool. Thanks for the Atom 
>> suggestion - I see that there's a LiveCode language pack available that 
>> includes LC Server, so that may be a better place to play than VS Code, etc.
>> 
>> Thanks & regards,
>> Keith
>> 
>>> On 12 Oct 2020, at 15:01, Ralph DiMola via use-livecode 
>>>  wrote:
>>> 
>>> Keith,
>>> 
>>> As a follow up... If you have a web server with LC installed running on your
>>> local machine then just a ctrl S in the LC IDE will let you test your server
>>> script(stack) immediately in the currently open IDE instance.
>>> 
>>> IDE alternatives to edit LC script only stacks are many. I use the Atom for
>>> LC builder and html(when Dreamweaver is just to much).
>>> 
>>> Ralph DiMola
>>> IT Director
>>> Evergreen Information Services
>>> rdim...@evergreeninfo.net
>>> 
>>> -Original Message-
>>> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
>>> Of Keith Clarke via use-livecode
>>> Sent: Monday, October 12, 2020 3:18 AM
>>> To: use-livecode@lists.runrev.com
>>> Cc: Keith Clarke
>>> Subject: LiveCode server IDE
>>> 
>>> Hi folks,
>>> What is the current state of the art regarding LiveCode server IDE -
>>> searching around, this seems down to personal preference of text editor plus
>>> FTP?
>>> 
>>> I'm Mac-based and looking to experiment with web services.
>>> Thanks and regards,
>>> Keith
>>> 
>>> 
>>> Sent from my iPad
>>> ___
>>> 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/

Re: LiveCode server IDE

2020-10-12 Thread Alex Tweedly via use-livecode

Hi Keith,

My workflow is not much different from Ralph's.

Short answer:

 - edit in IDE, test in IDE

 - upload to server using Coda 2  (which I also use to edit non-lc files).

Long answer:

 - I don't use any of the LCserver specific features -  no entangled 
html, no includes, ... - everything is a regular script-only stack


 - I have a test stack that I use in the IDE which lets me specify 
which page (and parameters, cookies, etc.) I want, generates the web 
page and displays the output in a web browser instance within the 
testing stack.


 - when satisfied, I use Coda 2 to upload the LC files (I never edit 
them in Coda))


 - I edit other files (menu definitions, form definitions, web pages, 
views, etc.)  in Coda2


I use both on-rev and hostM for servers - both have everything already 
installed,  good support, etc.


(tbh, if on-rev hadn't had a bad patch a few years ago with email 
problems, I would probably never have strayed, but it's kind of good to 
know that hostM is there as an alternate source in case I need it :-)


Alex.

On 12/10/2020 15:49, Keith Clarke via use-livecode wrote:


Thanks for the response, Ralph.

I've struggled to retain/regain my old local Sites, web server and LC Server on 
my home Macs. So, I was thinking of embarking down the script-only stacks 
route, using an on-rev LC-Server instance to do any web-services heavy-lifting 
work server-to-server, on behalf of client apps that use either LC desktop or 
simple html forms.

My html & css 'hackery-pokery' has been on Coda2 to date, but its replacement, 
Nova, still lacks any LiveCode autocompletion.

I may need to learn a new text-editing based IDE tool. Thanks for the Atom 
suggestion - I see that there's a LiveCode language pack available that 
includes LC Server, so that may be a better place to play than VS Code, etc.

Thanks & regards,
Keith


On 12 Oct 2020, at 15:01, Ralph DiMola via use-livecode 
 wrote:

Keith,

As a follow up... If you have a web server with LC installed running on your
local machine then just a ctrl S in the LC IDE will let you test your server
script(stack) immediately in the currently open IDE instance.

IDE alternatives to edit LC script only stacks are many. I use the Atom for
LC builder and html(when Dreamweaver is just to much).

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of Keith Clarke via use-livecode
Sent: Monday, October 12, 2020 3:18 AM
To: use-livecode@lists.runrev.com
Cc: Keith Clarke
Subject: LiveCode server IDE

Hi folks,
What is the current state of the art regarding LiveCode server IDE -
searching around, this seems down to personal preference of text editor plus
FTP?

I'm Mac-based and looking to experiment with web services.
Thanks and regards,
Keith


Sent from my iPad
___
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: LiveCode server IDE

2020-10-12 Thread Ralph DiMola via use-livecode
Keith,

I use LC Server on the on-rev server. It is already setup and the support
from Heather/Robin is the best! I personally use regular standard issue
binary stacks for everything out of habit. These same stacks are also used
in my apps. This is what I love about LC server, it allows me to use my
libraries on the server and in apps. What other programming language does
this?

If you are doing web pages then look into revIgniter.
For a web service vanilla LC scripts do the trick. 

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net


-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of Keith Clarke via use-livecode
Sent: Monday, October 12, 2020 10:49 AM
To: use-livecode@lists.runrev.com
Cc: Keith Clarke
Subject: Re: LiveCode server IDE

Thanks for the response, Ralph.

I've struggled to retain/regain my old local Sites, web server and LC Server
on my home Macs. So, I was thinking of embarking down the script-only stacks
route, using an on-rev LC-Server instance to do any web-services
heavy-lifting work server-to-server, on behalf of client apps that use
either LC desktop or simple html forms.

My html & css 'hackery-pokery' has been on Coda2 to date, but its
replacement, Nova, still lacks any LiveCode autocompletion.

I may need to learn a new text-editing based IDE tool. Thanks for the Atom
suggestion - I see that there's a LiveCode language pack available that
includes LC Server, so that may be a better place to play than VS Code, etc.

Thanks & regards,
Keith 

> On 12 Oct 2020, at 15:01, Ralph DiMola via use-livecode
 wrote:
> 
> Keith,
> 
> As a follow up... If you have a web server with LC installed running 
> on your local machine then just a ctrl S in the LC IDE will let you 
> test your server
> script(stack) immediately in the currently open IDE instance.
> 
> IDE alternatives to edit LC script only stacks are many. I use the 
> Atom for LC builder and html(when Dreamweaver is just to much).
> 
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net
> 
> -Original Message-
> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On 
> Behalf Of Keith Clarke via use-livecode
> Sent: Monday, October 12, 2020 3:18 AM
> To: use-livecode@lists.runrev.com
> Cc: Keith Clarke
> Subject: LiveCode server IDE
> 
> Hi folks,
> What is the current state of the art regarding LiveCode server IDE - 
> searching around, this seems down to personal preference of text 
> editor plus FTP?
> 
> I'm Mac-based and looking to experiment with web services.
> Thanks and regards,
> Keith
> 
> 
> Sent from my iPad
> ___
> 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: LiveCode server IDE

2020-10-12 Thread Keith Clarke via use-livecode
Thanks for the response, Ralph.

I've struggled to retain/regain my old local Sites, web server and LC Server on 
my home Macs. So, I was thinking of embarking down the script-only stacks 
route, using an on-rev LC-Server instance to do any web-services heavy-lifting 
work server-to-server, on behalf of client apps that use either LC desktop or 
simple html forms.

My html & css 'hackery-pokery' has been on Coda2 to date, but its replacement, 
Nova, still lacks any LiveCode autocompletion.

I may need to learn a new text-editing based IDE tool. Thanks for the Atom 
suggestion - I see that there's a LiveCode language pack available that 
includes LC Server, so that may be a better place to play than VS Code, etc.

Thanks & regards,
Keith 

> On 12 Oct 2020, at 15:01, Ralph DiMola via use-livecode 
>  wrote:
> 
> Keith,
> 
> As a follow up... If you have a web server with LC installed running on your
> local machine then just a ctrl S in the LC IDE will let you test your server
> script(stack) immediately in the currently open IDE instance.
> 
> IDE alternatives to edit LC script only stacks are many. I use the Atom for
> LC builder and html(when Dreamweaver is just to much).
> 
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net
> 
> -Original Message-
> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
> Of Keith Clarke via use-livecode
> Sent: Monday, October 12, 2020 3:18 AM
> To: use-livecode@lists.runrev.com
> Cc: Keith Clarke
> Subject: LiveCode server IDE
> 
> Hi folks,
> What is the current state of the art regarding LiveCode server IDE -
> searching around, this seems down to personal preference of text editor plus
> FTP?
> 
> I'm Mac-based and looking to experiment with web services.
> Thanks and regards,
> Keith
> 
> 
> Sent from my iPad
> ___
> 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: LiveCode server IDE

2020-10-12 Thread Ralph DiMola via use-livecode
Keith,

As a follow up... If you have a web server with LC installed running on your
local machine then just a ctrl S in the LC IDE will let you test your server
script(stack) immediately in the currently open IDE instance.

IDE alternatives to edit LC script only stacks are many. I use the Atom for
LC builder and html(when Dreamweaver is just to much).

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of Keith Clarke via use-livecode
Sent: Monday, October 12, 2020 3:18 AM
To: use-livecode@lists.runrev.com
Cc: Keith Clarke
Subject: LiveCode server IDE

Hi folks,
What is the current state of the art regarding LiveCode server IDE -
searching around, this seems down to personal preference of text editor plus
FTP?

I'm Mac-based and looking to experiment with web services.
Thanks and regards,
Keith


Sent from my iPad
___
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: LiveCode server IDE

2020-10-12 Thread Ralph DiMola via use-livecode
I use the standard issue LC IDE to edit the server script, do a "Ctrl S" and
use either a web disk or VPN to drag the saved file to the server. Then I
test my web service in the currently opened IDE. Fast debug cycle.
Easy-peezy...

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of Keith Clarke via use-livecode
Sent: Monday, October 12, 2020 3:18 AM
To: use-livecode@lists.runrev.com
Cc: Keith Clarke
Subject: LiveCode server IDE

Hi folks,
What is the current state of the art regarding LiveCode server IDE -
searching around, this seems down to personal preference of text editor plus
FTP?

I'm Mac-based and looking to experiment with web services.
Thanks and regards,
Keith


Sent from my iPad
___
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: LiveCode Server Under MAMP

2020-05-27 Thread Håkan Liljegren via use-livecode
I have done that some time ago, nowadays I usually use MAMP Pro if I need more 
sophistication. But I’ll make a try to find it..

:-Håkan
On 27 May 2020, 17:50 +0200, Rick Harrison via use-livecode 
, wrote:
> Did you get MAMP to work with SSL?
>
> If you do, let me know as then you might catch my interest.
>
> Thanks,
>
> Rick
>
> > On May 27, 2020, at 11:44 AM, Håkan Liljegren via use-livecode 
> >  wrote:
> >
> > Ouch,
> >
> > Hit send to early, new try:
> >
> > Hi,
> >
> > I was trying to get LiveCode server up and running under MAMP in macOS 
> > Catalina and if anyone is interested. This is what I did to get it running.
> >
> > 1. Download and unpack LiveCode Server
> > 2. Move livecode-server, drivers folder and externals folder into the 
> > cgi-bin folder in MAMP. ( /Applications/MAMP/cgi-bin if you have a standard 
> > installation )
> > 3. Open up /Applications/MAMP/conf/apache/httpd.conf
> > 4. Find the  section and just before 
> > the  you add:
> > AddHandler livecode-script .lc
> > Action livecode-script /livecode-cgi/livecode-server
> > NOTE: IF your have the community server you should replace livecode-server 
> > with livecode-community-server
> > 5. Just after  add a new line with:
> > ScriptAlias /livecode-cgi/livecode-server 
> > /Applications/MAMP/cgi-bin/livecode-server
> > Again replace livecode-server with livecode-community-server if you use the 
> > community version.
> > 6. Now if you restart MAMP and add a .lc file into your web folder and 
> > tries to access it, you will se a prompt that says that livecode-server 
> > can’t be trusted with no options to allow.
> > 7. To allow unnotarized applications under MacOS you need to right-click 
> > the application and select open. You will then get a prompt where you have 
> > an “Open” button. If you click that you will get another prompt asking for 
> > an admin user and password. Fill in and continue.
> > 8. Now you finally have to repeat the procedure for every lib (i.e. every 
> > file in the drivers and the externals folder. But if you do them in 
> > succession you will probably not get the admin prompt more than once.
> > 9. Now you should have a local web development under MAMP with livecode 
> > server up and running!
> >
> > There is also a command line option for point 7 (and 8) above and that is 
> > to use:
> > spctl --add /Applications/MAMP/cgi-bin/livecode-server
> > You will get the same prompt for admin user unless you do
> > sudo spctl …
> >
> > So, no there is no excuse for not starting to use LiveCode for your next 
> > web project ;)
> >
> > Happy Coding!
> >
> > :-Håkan
> > ___
> > 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: LiveCode Server Under MAMP

2020-05-27 Thread Håkan Liljegren via use-livecode
Not at all! Go ahead.

:-Håkan
On 27 May 2020, 18:14 +0200, matthias rebbe via use-livecode 
, wrote:
> Håkan,
>
> would you mind if i take your steps and create a detailed Livecode Lesson 
> with it?
>
>
> -
> Matthias Rebbe
> Life Is Too Short For Boring Code
>
> > Am 27.05.2020 um 17:44 schrieb Håkan Liljegren via use-livecode 
> > :
> >
> > Ouch,
> >
> > Hit send to early, new try:
> >
> > Hi,
> >
> > I was trying to get LiveCode server up and running under MAMP in macOS 
> > Catalina and if anyone is interested. This is what I did to get it running.
> >
> > 1. Download and unpack LiveCode Server
> > 2. Move livecode-server, drivers folder and externals folder into the 
> > cgi-bin folder in MAMP. ( /Applications/MAMP/cgi-bin if you have a standard 
> > installation )
> > 3. Open up /Applications/MAMP/conf/apache/httpd.conf
> > 4. Find the  section and just before 
> > the  you add:
> > AddHandler livecode-script .lc
> > Action livecode-script /livecode-cgi/livecode-server
> > NOTE: IF your have the community server you should replace livecode-server 
> > with livecode-community-server
> > 5. Just after  add a new line with:
> > ScriptAlias /livecode-cgi/livecode-server 
> > /Applications/MAMP/cgi-bin/livecode-server
> > Again replace livecode-server with livecode-community-server if you use the 
> > community version.
> > 6. Now if you restart MAMP and add a .lc file into your web folder and 
> > tries to access it, you will se a prompt that says that livecode-server 
> > can’t be trusted with no options to allow.
> > 7. To allow unnotarized applications under MacOS you need to right-click 
> > the application and select open. You will then get a prompt where you have 
> > an “Open” button. If you click that you will get another prompt asking for 
> > an admin user and password. Fill in and continue.
> > 8. Now you finally have to repeat the procedure for every lib (i.e. every 
> > file in the drivers and the externals folder. But if you do them in 
> > succession you will probably not get the admin prompt more than once.
> > 9. Now you should have a local web development under MAMP with livecode 
> > server up and running!
> >
> > There is also a command line option for point 7 (and 8) above and that is 
> > to use:
> > spctl --add /Applications/MAMP/cgi-bin/livecode-server
> > You will get the same prompt for admin user unless you do
> > sudo spctl …
> >
> > So, no there is no excuse for not starting to use LiveCode for your next 
> > web project ;)
> >
> > Happy Coding!
> >
> > :-Håkan
> > ___
> > 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: LiveCode Server Under MAMP

2020-05-27 Thread matthias rebbe via use-livecode
Håkan,

would you mind if i take your steps and create a detailed  Livecode Lesson with 
it?


-
Matthias Rebbe
Life Is Too Short For Boring Code

> Am 27.05.2020 um 17:44 schrieb Håkan Liljegren via use-livecode 
> :
> 
> Ouch,
> 
> Hit send to early, new try:
> 
> Hi,
> 
> I was trying to get LiveCode server up and running under MAMP in macOS 
> Catalina and if anyone is interested. This is what I did to get it running.
> 
> 1. Download and unpack LiveCode Server
> 2. Move livecode-server, drivers folder and externals folder into the cgi-bin 
> folder in MAMP. ( /Applications/MAMP/cgi-bin if you have a standard 
> installation )
> 3. Open up /Applications/MAMP/conf/apache/httpd.conf
> 4. Find the  section and just before 
> the  you add:
> AddHandler livecode-script .lc
> Action livecode-script /livecode-cgi/livecode-server
> NOTE: IF your have the community server you should replace livecode-server 
> with livecode-community-server
> 5. Just after  add a new line with:
> ScriptAlias /livecode-cgi/livecode-server 
> /Applications/MAMP/cgi-bin/livecode-server
> Again replace livecode-server with livecode-community-server if you use the 
> community version.
> 6. Now if you restart MAMP and add a .lc file into your web folder and tries 
> to access it, you will se a prompt that says that livecode-server can’t be 
> trusted with no options to allow.
> 7. To allow unnotarized applications under MacOS you need to right-click the 
> application and select open. You will then get a prompt where you have an 
> “Open” button. If you click that you will get another prompt asking for an 
> admin user and password. Fill in and continue.
> 8. Now you finally have to repeat the procedure for every lib (i.e. every 
> file in the drivers and the externals folder. But if you do them in 
> succession you will probably not get the admin prompt more than once.
> 9. Now you should have a local web development under MAMP with livecode 
> server up and running!
> 
> There is also a command line option for point 7 (and 8) above and that is to 
> use:
> spctl --add /Applications/MAMP/cgi-bin/livecode-server
> You will get the same prompt for admin user unless you do
> sudo spctl …
> 
> So, no there is no excuse for not starting to use LiveCode for your next web 
> project ;)
> 
> Happy Coding!
> 
> :-Håkan
> ___
> 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: LiveCode Server Under MAMP

2020-05-27 Thread Rick Harrison via use-livecode
Did you get MAMP to work with SSL?

If you do, let me know as then you might catch my interest.

Thanks,

Rick

> On May 27, 2020, at 11:44 AM, Håkan Liljegren via use-livecode 
>  wrote:
> 
> Ouch,
> 
> Hit send to early, new try:
> 
> Hi,
> 
> I was trying to get LiveCode server up and running under MAMP in macOS 
> Catalina and if anyone is interested. This is what I did to get it running.
> 
> 1. Download and unpack LiveCode Server
> 2. Move livecode-server, drivers folder and externals folder into the cgi-bin 
> folder in MAMP. ( /Applications/MAMP/cgi-bin if you have a standard 
> installation )
> 3. Open up /Applications/MAMP/conf/apache/httpd.conf
> 4. Find the  section and just before 
> the  you add:
> AddHandler livecode-script .lc
> Action livecode-script /livecode-cgi/livecode-server
> NOTE: IF your have the community server you should replace livecode-server 
> with livecode-community-server
> 5. Just after  add a new line with:
> ScriptAlias /livecode-cgi/livecode-server 
> /Applications/MAMP/cgi-bin/livecode-server
> Again replace livecode-server with livecode-community-server if you use the 
> community version.
> 6. Now if you restart MAMP and add a .lc file into your web folder and tries 
> to access it, you will se a prompt that says that livecode-server can’t be 
> trusted with no options to allow.
> 7. To allow unnotarized applications under MacOS you need to right-click the 
> application and select open. You will then get a prompt where you have an 
> “Open” button. If you click that you will get another prompt asking for an 
> admin user and password. Fill in and continue.
> 8. Now you finally have to repeat the procedure for every lib (i.e. every 
> file in the drivers and the externals folder. But if you do them in 
> succession you will probably not get the admin prompt more than once.
> 9. Now you should have a local web development under MAMP with livecode 
> server up and running!
> 
> There is also a command line option for point 7 (and 8) above and that is to 
> use:
> spctl --add /Applications/MAMP/cgi-bin/livecode-server
> You will get the same prompt for admin user unless you do
> sudo spctl …
> 
> So, no there is no excuse for not starting to use LiveCode for your next web 
> project ;)
> 
> Happy Coding!
> 
> :-Håkan
> ___
> 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: LiveCode Server

2019-10-19 Thread Ralf Bitter via use-livecode
Thanks for the info Todd. This explains why I had
an issue on Mac OS. I once added the directive to .htaccess.

Ralf


> On 19. Oct 2019, at 06:08, Todd Fabacher via use-livecode 
>  wrote:
> 
> GOOD NEWS - Got it to work. Someone should take note an issue with
> Apache 2 and LiveCode server
> 
> SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
> 
> For Linux in /etc/apache2/apache2.conf
> 
> For Mac (using Homebrew) in /usr/local/etc/httpd/httpd.conf
> 
> Adding this to .htaccess didn't work for some reason - only Apache
> config worked:
> RewriteEngine On
> RewriteCond %{HTTP:Authorization} ^(.*)
> RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
> 
> --Todd & Lagi


___
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: LiveCode Server

2019-10-19 Thread Jjs via use-livecode
I meant the pre-last message at the lesson on how to install lc server on linux 
server. A very good explanation.

Jjs via use-livecode  schreef op 19 oktober 2019 
14:10:19 CEST:
>Follow the pre-last message too, which describes how to install with
>latest apache 2.x, don't mess with Apache 2.conf. the lesson should
>updated as it is no longer valid.
>
>Todd Fabacher via use-livecode  schreef
>op 19 oktober 2019 06:08:03 CEST:
>>GOOD NEWS - Got it to work. Someone should take note an issue with
>>Apache 2 and LiveCode server
>>
>>SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
>>
>>For Linux in /etc/apache2/apache2.conf
>>
>>For Mac (using Homebrew) in /usr/local/etc/httpd/httpd.conf
>>
>>Adding this to .htaccess didn't work for some reason - only Apache
>>config worked:
>>RewriteEngine On
>>RewriteCond %{HTTP:Authorization} ^(.*)
>>RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
>>
>>--Todd & Lagi
>>
>>___
>>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
>
>-- 
>Verstuurd vanaf mijn Android apparaat met K-9 Mail.
>___
>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

-- 
Verstuurd vanaf mijn Android apparaat met K-9 Mail.
___
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: LiveCode Server

2019-10-19 Thread Jjs via use-livecode
Follow the pre-last message too, which describes how to install with latest 
apache 2.x, don't mess with Apache 2.conf. the lesson should updated as it is 
no longer valid.

Todd Fabacher via use-livecode  schreef op 19 
oktober 2019 06:08:03 CEST:
>GOOD NEWS - Got it to work. Someone should take note an issue with
>Apache 2 and LiveCode server
>
>SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
>
>For Linux in /etc/apache2/apache2.conf
>
>For Mac (using Homebrew) in /usr/local/etc/httpd/httpd.conf
>
>Adding this to .htaccess didn't work for some reason - only Apache
>config worked:
>RewriteEngine On
>RewriteCond %{HTTP:Authorization} ^(.*)
>RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
>
>--Todd & Lagi
>
>___
>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

-- 
Verstuurd vanaf mijn Android apparaat met K-9 Mail.
___
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: LiveCode Server

2019-10-18 Thread Todd Fabacher via use-livecode
GOOD NEWS - Got it to work. Someone should take note an issue with
Apache 2 and LiveCode server

SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1

For Linux in /etc/apache2/apache2.conf

For Mac (using Homebrew) in /usr/local/etc/httpd/httpd.conf

Adding this to .htaccess didn't work for some reason - only Apache
config worked:
RewriteEngine On
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]

--Todd & Lagi

___
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: LiveCode Server

2019-10-17 Thread Ralf Bitter via use-livecode


> On 17. Oct 2019, at 19:27, Lagi Pittas via use-livecode 
>  wrote:
> 
> HI Ralph
> 
> Basically the server script does this
> 
> put arrayEncode($_SERVER) and sends back everything within the $_SERVER
> variable
> we then decode it in the App 
> 
> It gives us everything shown in the documentation but not the header info
> 
> 
>   - GATEWAY_INTERFACE
>   - SERVER_ADDR
>   - SERVER_NAME
>   - SERVER_SOFTWARE
>   - 
>   - SCRIPT_NAME
>   - SCRIPT_FILENAME
>   - CONTENT_TYPE
>   - CONTENT_LENGTH
> 
> But not the headers
> 
> Hope that helps
> 
> Lagi


OK, in case you are interested in all the headers the
server sends in response to a request you might indeed probably
find the answer by checking out the code in revliburl.livecodescript.
But just including the script only stack (using “start using stack”)
won’t work right away. Seems there are modifications needed
to be able to get a value from libURLLastRHheaders().
Would be glad to be wrong.

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: LiveCode Server

2019-10-17 Thread Lagi Pittas via use-livecode
HI Ralph

Basically the server script does this

put arrayEncode($_SERVER) and sends back everything within the $_SERVER
variable
we then decode it in the App 

It gives us everything shown in the documentation but not the header info


   - GATEWAY_INTERFACE
   - SERVER_ADDR
   - SERVER_NAME
   - SERVER_SOFTWARE
   - 
   - SCRIPT_NAME
   - SCRIPT_FILENAME
   - CONTENT_TYPE
   - CONTENT_LENGTH

But not the headers

Hope that helps

Lagi



On Thu, 17 Oct 2019 at 17:55, Ralf Bitter via use-livecode <
use-livecode@lists.runrev.com> wrote:

>
>
> > On 17. Oct 2019, at 17:24, Lagi Pittas via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > There is no  $_SERVER["HTTP_Authorization"] in the docs the closest is
> > $_SERVER["HTTP] but since
> > the code gives an error and the return is empty it's a moot point.
>
>
> Lagi, the original question was:
>
> > how to read an "Authorization: Bearer" header in
> > LiveCode Script on the server??
>
>
> because
>
> > we want to do basic validation by passing a token from
> > the App to the server script.
>
>
> Please correct me if I am on the wrong track, but to my
> understanding the issue is related to reading
> the Authorization request header sent by an app to
> the server. In this case there is a server variable
> $_SERVER["HTTP_Authorization"] which can be read
> by LC server. Of course there is no  $_SERVER["HTTP_Authorization"]
> in the docs.
>
>
> 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
>
___
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: LiveCode Server

2019-10-17 Thread Ralf Bitter via use-livecode



> On 17. Oct 2019, at 17:24, Lagi Pittas via use-livecode 
>  wrote:
> 
> There is no  $_SERVER["HTTP_Authorization"] in the docs the closest is
> $_SERVER["HTTP] but since
> the code gives an error and the return is empty it's a moot point.


Lagi, the original question was:

> how to read an "Authorization: Bearer" header in
> LiveCode Script on the server??


because

> we want to do basic validation by passing a token from
> the App to the server script.


Please correct me if I am on the wrong track, but to my
understanding the issue is related to reading
the Authorization request header sent by an app to
the server. In this case there is a server variable
$_SERVER["HTTP_Authorization"] which can be read
by LC server. Of course there is no  $_SERVER["HTTP_Authorization"]
in the docs.


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: LiveCode Server

2019-10-17 Thread Lagi Pittas via use-livecode
Hi Everybody


If anybody else (Mark? even) has any insights

We have found this function libURLLastRHheaders, which seems to get the
last headers set to the server.
 In the documentation, it indicates that it works on the Server version.

We put it in the server code, but get the following error which indicates
that the lib is NOT included on the server.


file "/var/www/html/xb_admin_accountant_new.lc"
  row 12, col 8: Function: error in function handler (libURLLastRHHeaders)
  row 12, col 8: put: error in expression


My question is, does the internet lib work on LC Server so we can call
libURLLastRHHeaders?

If YES, then which files do we add to the server and where. Also, do we
need to add an include line in the script to load the function?


Thanks for your help


Regards Lagi (and Todd)

btw

There is no  $_SERVER["HTTP_Authorization"] in the docs the closest is
$_SERVER["HTTP] but since
the code gives an error and the return is empty it's a moot point.




On Thu, 17 Oct 2019 at 15:13, Ralf Bitter via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Lagi, sorry for not expressing myself well. Of course I
> meant the whole process including reading HTTP
> headers on the server.
> This means $_SERVER["HTTP_Authorization"]
> should not be empty in your case
>
>
> Ralf
>
>
>
> > On 17. Oct 2019, at 15:51, Lagi Pittas via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > Hi Ralf,
> >
> > The problem isn't the sending of the headers but reading them using
> > livecode server.
> > We are using Linux servers so the Mac problem is not an issue.
> >
> > Via PHP the call is get_headers ( string $url [, int $format = 0 [,
> > resource $context ]] ) : array
> >
> > Basically is there a way of doing that in pure livecode server?
> >
> > Regards Lagi (and Todd)
> >
> > On Thu, 17 Oct 2019 at 14:18, Ralf Bitter via use-livecode <
> > use-livecode@lists.runrev.com >
> wrote:
> >
> >> Todd, sending Authorization HTTP request headers
> >> to LC server on Linux should work. I have
> >> troubles with request headers too, but only on Mac OS.
> >>
> >>
> >> Ralf
> >>
> >>
> >>
> >>> On 17. Oct 2019, at 13:56, Todd Fabacher via use-livecode <
> >> use-livecode@lists.runrev.com >
> wrote:
> >>>
> >>> Hello all,
> >>>
> >>> We are running LC Server Scripts to process some DB request and we
> >>> want to do basic validation by passing a token from the App to the
> >>> server script.
> >>>
> >>> The problem is I can not find where I can get the headers on the
> >>> server. I looked in $_SERVER, but not there. I see the CONTENT_TYPE
> >>> and HTTP ACCEPTS which I set in my header, but I can's find anything
> >>> else from the header that was posted.
> >>>
> >>> Does anyone know how to read an "Authorization: Bearer" header in
> >>> LiveCode Script on the server?? Thanks for the help.
> >>>
> >>> --Todd Fabacher
>
>
> ___
> 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: LiveCode Server

2019-10-17 Thread Ralf Bitter via use-livecode
Lagi, sorry for not expressing myself well. Of course I
meant the whole process including reading HTTP
headers on the server.
This means $_SERVER["HTTP_Authorization"]
should not be empty in your case


Ralf



> On 17. Oct 2019, at 15:51, Lagi Pittas via use-livecode 
>  wrote:
> 
> Hi Ralf,
> 
> The problem isn't the sending of the headers but reading them using
> livecode server.
> We are using Linux servers so the Mac problem is not an issue.
> 
> Via PHP the call is get_headers ( string $url [, int $format = 0 [,
> resource $context ]] ) : array
> 
> Basically is there a way of doing that in pure livecode server?
> 
> Regards Lagi (and Todd)
> 
> On Thu, 17 Oct 2019 at 14:18, Ralf Bitter via use-livecode <
> use-livecode@lists.runrev.com > wrote:
> 
>> Todd, sending Authorization HTTP request headers
>> to LC server on Linux should work. I have
>> troubles with request headers too, but only on Mac OS.
>> 
>> 
>> Ralf
>> 
>> 
>> 
>>> On 17. Oct 2019, at 13:56, Todd Fabacher via use-livecode <
>> use-livecode@lists.runrev.com > wrote:
>>> 
>>> Hello all,
>>> 
>>> We are running LC Server Scripts to process some DB request and we
>>> want to do basic validation by passing a token from the App to the
>>> server script.
>>> 
>>> The problem is I can not find where I can get the headers on the
>>> server. I looked in $_SERVER, but not there. I see the CONTENT_TYPE
>>> and HTTP ACCEPTS which I set in my header, but I can's find anything
>>> else from the header that was posted.
>>> 
>>> Does anyone know how to read an "Authorization: Bearer" header in
>>> LiveCode Script on the server?? Thanks for the help.
>>> 
>>> --Todd Fabacher


___
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: LiveCode Server

2019-10-17 Thread Lagi Pittas via use-livecode
Hi Ralf,

The problem isn't the sending of the headers but reading them using
livecode server.
We are using Linux servers so the Mac problem is not an issue.

Via PHP the call is get_headers ( string $url [, int $format = 0 [,
resource $context ]] ) : array

Basically is there a way of doing that in pure livecode server?

Regards Lagi (and Todd)

On Thu, 17 Oct 2019 at 14:18, Ralf Bitter via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Todd, sending Authorization HTTP request headers
> to LC server on Linux should work. I have
> troubles with request headers too, but only on Mac OS.
>
>
> Ralf
>
>
>
> > On 17. Oct 2019, at 13:56, Todd Fabacher via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > Hello all,
> >
> > We are running LC Server Scripts to process some DB request and we
> > want to do basic validation by passing a token from the App to the
> > server script.
> >
> > The problem is I can not find where I can get the headers on the
> > server. I looked in $_SERVER, but not there. I see the CONTENT_TYPE
> > and HTTP ACCEPTS which I set in my header, but I can's find anything
> > else from the header that was posted.
> >
> > Does anyone know how to read an "Authorization: Bearer" header in
> > LiveCode Script on the server?? Thanks for the help.
> >
> > --Todd Fabacher
>
>
> ___
> 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: LiveCode Server

2019-10-17 Thread Ralf Bitter via use-livecode
Todd, sending Authorization HTTP request headers
to LC server on Linux should work. I have
troubles with request headers too, but only on Mac OS.


Ralf



> On 17. Oct 2019, at 13:56, Todd Fabacher via use-livecode 
>  wrote:
> 
> Hello all,
> 
> We are running LC Server Scripts to process some DB request and we
> want to do basic validation by passing a token from the App to the
> server script.
> 
> The problem is I can not find where I can get the headers on the
> server. I looked in $_SERVER, but not there. I see the CONTENT_TYPE
> and HTTP ACCEPTS which I set in my header, but I can's find anything
> else from the header that was posted.
> 
> Does anyone know how to read an "Authorization: Bearer" header in
> LiveCode Script on the server?? Thanks for the help.
> 
> --Todd Fabacher


___
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: Livecode Server Post

2019-01-11 Thread Ralph DiMola via use-livecode
Ahh

Your test worked even when I ran it on my account. This confused me for a while 
but I finally found my problem.
Unless you reference the $_Post variable once the script hangs for a second and 
then returns nothing. Bug or feature?
I Commented out the last line "put $_POST["test"]" of your post.lc and it hangs 
for a moment and return nothing. But change it to "put $_POST["test"] into 
tVar" then the previous puts are returned(displayed) and no momentary hang.

Matthias, Thanks for your Help!! This one was a head scratcher for a 1/2 hour. 
I don't know how long it would have taken if you did not send me a script that 
worked. I was just doing some initial tests to get wired into LC server and was 
just testing $_Server["REQUEST_METHOD"] to examine the request method. Funny 
though, if the method is "get" then there is no requirement to touch the $_Get 
variable.

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of 
Matthias Rebbe via use-livecode
Sent: Friday, January 11, 2019 2:39 AM
To: How to use LiveCode
Cc: Matthias Rebbe
Subject: Re: Livecode Server Post

Hi Ralph,

i tried here now in the message box with the following lc server script "

put "this is the posted value for test:"
put ""
put $_POST["test"]
?>


TIO On-Rev  Commercial Server 7.1
post "test=HELLO" To URL "https://canary.on-rev.com/post.lc 
<https://canary.on-rev.com/post.lc>"
put it

TIO On-Rev Community server 9.0.1
post "test=HELLO" To URL "https://canary.on-rev.com/post.lc9 
<https://canary.on-rev.com/post.lc9>"
put it

HostM Professional Server 9.0.2
post "test=HELLO" To URL "https://mr.dermattes.de/post.lc 
<https://mr.dermattes.de/post.lc>"
put it


All 3 tests are successful and all expected information including the post 
value is displayed.


I will keep the post.lc files online for the next 2 days for you to test with 
my accounts.

Regards,

Matthias


Matthias Rebbe

free tools for Livecoders:
https://instamaker.dermattes.de <https://instamaker.dermattes.de/>
https://winsignhelper.dermattes.de <https://winsignhelper.dermattes.de/>

> Am 11.01.2019 um 03:05 schrieb Ralph DiMola via use-livecode 
> mailto:use-livecode@lists.runrev.com>>:
> 
> When do a post to an LC server script from a .html form no output of "put"s 
> are displayed, just a blank screen. There is also a slight delay until the 
> screen clears. I tested to see if the LC script is actually being executed. 
> It is because I created a file but no display of "Put"s. If I change the 
> method to "get" in the .html form the put in the same .lc is immediately 
> displayed with no delay.
> I want to use post so the params aren’t in the URL and the page can't be 
> bookmarked.
> LC server 9.02 Business on on-rev diesel.
> 
> What am I missing?
> 
> Thanks All!
> 
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net <mailto:rdim...@evergreeninfo.net>
> 
> 
> 
> ___
> 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: Livecode Server Post

2019-01-11 Thread Matthias Rebbe via use-livecode
I just noticed, that my email client added the url twice.

So please remove the part beginning with https://instamaker.dermattes.de 
https://winsignhelper.dermattes.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: Livecode Server Post

2019-01-10 Thread Matthias Rebbe via use-livecode
Hi Ralph,

i tried here now in the message box with the following lc server script
"

put "this is the posted value for test:"
put ""
put $_POST["test"]
?>


TIO On-Rev  Commercial Server 7.1
post "test=HELLO" To URL "https://canary.on-rev.com/post.lc 
"
put it

TIO On-Rev Community server 9.0.1
post "test=HELLO" To URL "https://canary.on-rev.com/post.lc9 
"
put it

HostM Professional Server 9.0.2
post "test=HELLO" To URL "https://mr.dermattes.de/post.lc 
"
put it


All 3 tests are successful and all expected information including the post 
value is displayed.


I will keep the post.lc files online for the next 2 days for you to test with 
my accounts.

Regards,

Matthias


Matthias Rebbe

free tools for Livecoders:
https://instamaker.dermattes.de 
https://winsignhelper.dermattes.de 

> Am 11.01.2019 um 03:05 schrieb Ralph DiMola via use-livecode 
> mailto:use-livecode@lists.runrev.com>>:
> 
> When do a post to an LC server script from a .html form no output of "put"s 
> are displayed, just a blank screen. There is also a slight delay until the 
> screen clears. I tested to see if the LC script is actually being executed. 
> It is because I created a file but no display of "Put"s. If I change the 
> method to "get" in the .html form the put in the same .lc is immediately 
> displayed with no delay.
> I want to use post so the params aren’t in the URL and the page can't be 
> bookmarked.
> LC server 9.02 Business on on-rev diesel.
> 
> What am I missing?
> 
> Thanks All!
> 
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net 
> 
> 
> 
> ___
> 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: Livecode Server GoDaddy

2019-01-02 Thread Keith Clarke via use-livecode
It’s a few months ago now and I’m no linux expert so not good with logs, etc. 
Maybe the first check is whether the hosting is CentOS 6 or 7? 

When I hit these issues, I started a thread on this list “LiveCode Server on 
CentOS 6?” on 28 July, 2018. Warren Samples kindly confirmed that glibc 2.13+ 
was required for LC 8 & 9, he had LC Server running on CentOS 7 and CentOS 
ships with glibc 2.12, which is too old.

Apparently the command ldd --version might reveal what’s running.

Best,
Keith

> On 2 Jan 2019, at 20:24, Ralph DiMola via use-livecode 
>  wrote:
> 
> Where did you see that error? The error log is empty.
> 
> That's very depressing. I sold this based on the info I got from the GoDaddy
> sales team before I signed up.
> 
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net
> 
> 
> -Original Message-
> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
> Of Keith Clarke via use-livecode
> Sent: Wednesday, January 02, 2019 2:48 PM
> To: How to use LiveCode
> Cc: Keith Clarke
> Subject: Re: Livecode Server GoDaddy
> 
> Ralph, I gave up on getting LCS running on a GoDaddy VPS back in the summer
> as it was too old at CentOS 6 with dependencies on glibc failing - I was
> getting 500 errors IIRC.
> 
> Good luck!
> 
> Keith
> 
>> On 2 Jan 2019, at 19:42, Ralph DiMola via use-livecode
>  wrote:
>> 
>> I keep getting 500 errors. I changed the htacces file to point .lc 
>> files to the livecode server executable. Log files have no useful 
>> info. The error log has nothing.
>> Has anyone gotten LC Server working on GoDaddy shared hosting?
>> 
>> Thanks
>> 
>> Ralph DiMola
>> IT Director
>> Evergreen Information Services
>> rdim...@evergreeninfo.net
>> 
>> 
>> ___
>> 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: Livecode Server GoDaddy

2019-01-02 Thread Ralph DiMola via use-livecode
Where did you see that error? The error log is empty.

That's very depressing. I sold this based on the info I got from the GoDaddy
sales team before I signed up.

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net


-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of Keith Clarke via use-livecode
Sent: Wednesday, January 02, 2019 2:48 PM
To: How to use LiveCode
Cc: Keith Clarke
Subject: Re: Livecode Server GoDaddy

Ralph, I gave up on getting LCS running on a GoDaddy VPS back in the summer
as it was too old at CentOS 6 with dependencies on glibc failing - I was
getting 500 errors IIRC.

Good luck!

Keith

> On 2 Jan 2019, at 19:42, Ralph DiMola via use-livecode
 wrote:
> 
> I keep getting 500 errors. I changed the htacces file to point .lc 
> files to the livecode server executable. Log files have no useful 
> info. The error log has nothing.
> Has anyone gotten LC Server working on GoDaddy shared hosting?
> 
> Thanks
> 
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net
> 
> 
> ___
> 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: Livecode Server GoDaddy

2019-01-02 Thread Keith Clarke via use-livecode
Ralph, I gave up on getting LCS running on a GoDaddy VPS back in the summer as 
it was too old at CentOS 6 with dependencies on glibc failing - I was getting 
500 errors IIRC.

Good luck!

Keith

> On 2 Jan 2019, at 19:42, Ralph DiMola via use-livecode 
>  wrote:
> 
> I keep getting 500 errors. I changed the htacces file to point .lc files to
> the livecode server executable. Log files have no useful info. The error log
> has nothing.
> Has anyone gotten LC Server working on GoDaddy shared hosting?
> 
> Thanks
> 
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net
> 
> 
> ___
> 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: LiveCode Server

2018-11-30 Thread Richard Gaskin via use-livecode

Ralph DiMola wrote:

> For my first web services I implementing the "start using" of library
> stacks method back in the day. Like you I moved to "start using" of
> script only library stacks. I'll just keep chugging along with "start
> using"s. I'll keep include/require on the back shelf for now...

Good move.

The more you stick with language features common to both the Server and 
desktop LC engines, the greater opportunities there are for crafting 
very helpful test harnesses you can use right in the IDE without having 
to deal with the building-a-ship-in-a-bottle experience of LC Server.


--
 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: LiveCode Server

2018-11-30 Thread Ralph DiMola via use-livecode
Thanks Alex,

For my first web services I implementing the "start using" of library stacks 
method back in the day. Like you I moved to "start using" of script only 
library stacks. I'll just keep chugging along with "start using"s. I'll keep 
include/require on the back shelf for now...

Thanks again!

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net


-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of 
Alex Tweedly via use-livecode
Sent: Friday, November 30, 2018 3:16 PM
To: use-livecode@lists.runrev.com
Cc: Alex Tweedly
Subject: Re: LiveCode Server

Hmmm I hesitated to reply earlier, just in case there are subtleties I might 
get wrong and mislead you - but here goes.

include / require are essentially ways to include the text of the included 
file. Include will do that - and do it every time you use it 

so you could have a trivial nonsensical example like ...

mydebug.lc   - a file which will dump out a bunch of variable info ...

>  put "Data is:" && gVar1 && gVar2 && gArray[temp]
>
and use it as

.
doSomeHandler gVar1, 17
-- and check what the current status is now include "mydebug.lc"
doSomeOtherFunctions
-- and check again
include "mydebug.lc"


note that you can now change the file to do any other logging you might want, 
and each occurrence will be changed.

NB - I have never used 'include' except in a few places where I should have 
used require :-) And I've never wanted to use it as I just described :-) :-)

require is similar, but the file contents will only be inserted the
*first* time; so it's useful to include the source of library-like functions. 
And you don't need to worry if you do this in multiple places. I used to use 
this a lot.

Note that include and require are both specific to LC server. I basically no 
longer use them, now that we have script-only stacks. I now develop 99% of all 
LC server functionality as script-only stacks, testing in either the IDE or via 
LCServer as needed. And for this, you use "start using" just like in the IDE 
world.

-- Alex.

P.S. Note - there are (I think) strange subtleties in using globals and/or 
script locals in include'd / require'd files - very confusing, and I suspect 
it's a bug - but  couldn't quite come up with a reliable mental model or 
example; that was when I just converted to script-only library stacks.


On 30/11/2018 16:26, Ralph DiMola via use-livecode wrote:
> Ahh... I see that the revIgniter library is the way to go for my 
> number 2 question and I am immersed in the docs. But I'm still 
> wondering about my question # 1 (differences between "Include", 
> "Require" and "Start using")
>
> I've been using LiveCode Server for a few years now with great success 
> as various web services from LCS. I started this when I was a relative newbie.
> I access my library stacks via "Start using".
> 1) Can anyone shed some light on the subtle differences between 
> "Include", "Require" and "Start using"? The docs are not clear to me.
>
> I'm starting a new project using interactive web pages. I have an in 
> house web designer that I need to show how to call LC server scripts 
> to populate web pages. I would rather use LC Server and MySQL and my 
> on-staff html designer rather than sub it all out using vb.net and SQL server.
> 2) Are there any examples of how to do this?
>
> Thanks in advance.
>
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net 
>
>
> ___
> 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: LiveCode Server

2018-11-30 Thread Alex Tweedly via use-livecode
Hmmm I hesitated to reply earlier, just in case there are subtleties I 
might get wrong and mislead you - but here goes.


include / require are essentially ways to include the text of the 
included file. Include will do that - and do it every time you use it 


so you could have a trivial nonsensical example like ...

mydebug.lc   - a file which will dump out a bunch of variable info ...



and use it as

.
doSomeHandler gVar1, 17
-- and check what the current status is now
include "mydebug.lc"
doSomeOtherFunctions
-- and check again
include "mydebug.lc"


note that you can now change the file to do any other logging you might 
want, and each occurrence will be changed.


NB - I have never used 'include' except in a few places where I should 
have used require :-)

And I've never wanted to use it as I just described :-) :-)

require is similar, but the file contents will only be inserted the 
*first* time; so it's useful to include the source of library-like 
functions. And you don't need to worry if you do this in multiple 
places. I used to use this a lot.


Note that include and require are both specific to LC server. I 
basically no longer use them, now that we have script-only stacks. I now 
develop 99% of all LC server functionality as script-only stacks, 
testing in either the IDE or via LCServer as needed. And for this, you 
use "start using" just like in the IDE world.


-- Alex.

P.S. Note - there are (I think) strange subtleties in using globals 
and/or script locals in include'd / require'd files - very confusing, 
and I suspect it's a bug - but  couldn't quite come up with a reliable 
mental model or example; that was when I just converted to script-only 
library stacks.



On 30/11/2018 16:26, Ralph DiMola via use-livecode wrote:

Ahh... I see that the revIgniter library is the way to go for my number 2
question and I am immersed in the docs. But I'm still wondering about my
question # 1 (differences between "Include", "Require" and "Start using")

I've been using LiveCode Server for a few years now with great success as
various web services from LCS. I started this when I was a relative newbie.
I access my library stacks via "Start using".
1) Can anyone shed some light on the subtle differences between "Include",
"Require" and "Start using"? The docs are not clear to me.

I'm starting a new project using interactive web pages. I have an in house
web designer that I need to show how to call LC server scripts to populate
web pages. I would rather use LC Server and MySQL and my on-staff html
designer rather than sub it all out using vb.net and SQL server.
2) Are there any examples of how to do this?

Thanks in advance.

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net   


___
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: LiveCode server with revIgniter - new controller pages get 404 errors?

2018-11-28 Thread Keith Clarke via use-livecode
No worries, Ralf. Thanks for your response and your efforts with revIgniter - 
I’m very impressed with what I’ve discovered (& learned) so far! :-)
Best,
Keith

> On 28 Nov 2018, at 12:05, Ralf Bitter via use-livecode 
>  wrote:
> 
> Hi Keith,
> 
> sorry for responding late. Glad you found
> the source of the issue, and thanks for the
> suggestion to improve the docs, changed
> the user guide accordingly.
> 
> 
> Thanks again
> 
> Ralf
> 
> 
>> On 28. Nov 2018, at 11:03, Keith Clarke via use-livecode 
>>  wrote:
>> 
>> Fixed shared for future reference…. 
>> 
>> This issue was down to me missing the need for a required change to 
>> system/application/config/config.lc when using .htaccess to hide the 
>> index.lc page from the URIs structure.
>> 
>> This setting is clearly documented within the config.lc file, in the 'Index 
>> file'... "If you are using mod_rewrite to remove the page set this variable 
>> so that it is blank." i.e. 'put empty into gConfig["indexPage”]' ). The 
>> config.lc file is also mentioned specifically in the user guide section on 
>> ‘revIgniter URIs: Removing the index.lc file’ 
>> https://revigniter.com/userGuide/general/urls.html However, the 
>> cross-reference is for other use cases and their troubleshooting - there’s 
>> no specific mention of the change required when seeking to hide the index 
>> page with the example .htaccess file.
>> 
>> Ideally, this use case of the (excellent) docs could be extended slightly to 
>> close this gap, along the following lines...
>> 
>> "In the above example, any HTTP request other than those for index.lc, 
>> images, assets, robots.txt, css and js is treated as a request for your 
>> index.lc file. If you use this method to remove the page, set the Index file 
>> variable in your application/config/config.lc file so that it is blank."
>> 
>> Best,
>> Keith
>> 
>>> On 27 Nov 2018, at 19:02, Keith Clarke  wrote:
>>> 
>>> Folks,
>>> Can anyone using LC Server with revIgniter share any tips on why new 
>>> controller pages might throw 404 errors, even if they contains the content 
>>> from the (working) welcome.lc controller or blog.lc example from the 
>>> revIgniter docs…? https://revigniter.com/userGuide/general/controllers.html
>>> 
>>> My new (as in newbie) setup is sitting on an add-on domain on my on-rev 
>>> account. The index.lc page worked, so I implemented the default .htaccess 
>>> file to hide the index.lc page.
>>> 
>>> This works as expected - I get the expected welcome.lc view page content 
>>> whether I navigate to 'https://domain’ or ‘https://domain/index.lc’ 
>>> 
>>> However, I  get 404 errors at 'https://domain/blog’ & 
>>> ‘https://domain/index.lc/blog’ (with or without trailing slash or ‘.lc’ 
>>> suffix) when working through the doc examples.
>>> 
>>> It seems to be just the new files that are causing issues but file 
>>> permissions look OK at 0644 - the same as the working pages.
>>> 
>>> Thanks
>>> Keith
>> 
>> 
>> ___
>> 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: LiveCode server with revIgniter - new controller pages get 404 errors?

2018-11-28 Thread Ralf Bitter via use-livecode
Hi Keith,

sorry for responding late. Glad you found
the source of the issue, and thanks for the
suggestion to improve the docs, changed
the user guide accordingly.


Thanks again

Ralf


> On 28. Nov 2018, at 11:03, Keith Clarke via use-livecode 
>  wrote:
> 
> Fixed shared for future reference…. 
> 
> This issue was down to me missing the need for a required change to 
> system/application/config/config.lc when using .htaccess to hide the index.lc 
> page from the URIs structure.
> 
> This setting is clearly documented within the config.lc file, in the 'Index 
> file'... "If you are using mod_rewrite to remove the page set this variable 
> so that it is blank." i.e. 'put empty into gConfig["indexPage”]' ). The 
> config.lc file is also mentioned specifically in the user guide section on 
> ‘revIgniter URIs: Removing the index.lc file’ 
> https://revigniter.com/userGuide/general/urls.html However, the 
> cross-reference is for other use cases and their troubleshooting - there’s no 
> specific mention of the change required when seeking to hide the index page 
> with the example .htaccess file.
> 
> Ideally, this use case of the (excellent) docs could be extended slightly to 
> close this gap, along the following lines...
> 
> "In the above example, any HTTP request other than those for index.lc, 
> images, assets, robots.txt, css and js is treated as a request for your 
> index.lc file. If you use this method to remove the page, set the Index file 
> variable in your application/config/config.lc file so that it is blank."
> 
> Best,
> Keith
> 
>> On 27 Nov 2018, at 19:02, Keith Clarke  wrote:
>> 
>> Folks,
>> Can anyone using LC Server with revIgniter share any tips on why new 
>> controller pages might throw 404 errors, even if they contains the content 
>> from the (working) welcome.lc controller or blog.lc example from the 
>> revIgniter docs…? https://revigniter.com/userGuide/general/controllers.html
>> 
>> My new (as in newbie) setup is sitting on an add-on domain on my on-rev 
>> account. The index.lc page worked, so I implemented the default .htaccess 
>> file to hide the index.lc page.
>> 
>> This works as expected - I get the expected welcome.lc view page content 
>> whether I navigate to 'https://domain’ or ‘https://domain/index.lc’ 
>> 
>> However, I  get 404 errors at 'https://domain/blog’ & 
>> ‘https://domain/index.lc/blog’ (with or without trailing slash or ‘.lc’ 
>> suffix) when working through the doc examples.
>> 
>> It seems to be just the new files that are causing issues but file 
>> permissions look OK at 0644 - the same as the working pages.
>> 
>> Thanks
>> Keith
> 
> 
> ___
> 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: LiveCode server with revIgniter - new controller pages get 404 errors?

2018-11-28 Thread Keith Clarke via use-livecode
Fixed shared for future reference…. 

This issue was down to me missing the need for a required change to 
system/application/config/config.lc when using .htaccess to hide the index.lc 
page from the URIs structure.

This setting is clearly documented within the config.lc file, in the 'Index 
file'... "If you are using mod_rewrite to remove the page set this variable so 
that it is blank." i.e. 'put empty into gConfig["indexPage”]' ). The config.lc 
file is also mentioned specifically in the user guide section on ‘revIgniter 
URIs: Removing the index.lc file’ 
https://revigniter.com/userGuide/general/urls.html However, the cross-reference 
is for other use cases and their troubleshooting - there’s no specific mention 
of the change required when seeking to hide the index page with the example 
.htaccess file.

Ideally, this use case of the (excellent) docs could be extended slightly to 
close this gap, along the following lines...

"In the above example, any HTTP request other than those for index.lc, images, 
assets, robots.txt, css and js is treated as a request for your index.lc file. 
If you use this method to remove the page, set the Index file variable in your 
application/config/config.lc file so that it is blank."

Best,
Keith

> On 27 Nov 2018, at 19:02, Keith Clarke  wrote:
> 
> Folks,
> Can anyone using LC Server with revIgniter share any tips on why new 
> controller pages might throw 404 errors, even if they contains the content 
> from the (working) welcome.lc controller or blog.lc example from the 
> revIgniter docs…? https://revigniter.com/userGuide/general/controllers.html
> 
> My new (as in newbie) setup is sitting on an add-on domain on my on-rev 
> account. The index.lc page worked, so I implemented the default .htaccess 
> file to hide the index.lc page.
> 
> This works as expected - I get the expected welcome.lc view page content 
> whether I navigate to 'https://domain’ or ‘https://domain/index.lc’ 
> 
> However, I  get 404 errors at 'https://domain/blog’ & 
> ‘https://domain/index.lc/blog’ (with or without trailing slash or ‘.lc’ 
> suffix) when working through the doc examples.
> 
> It seems to be just the new files that are causing issues but file 
> permissions look OK at 0644 - the same as the working pages.
> 
> Thanks
> Keith


___
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: LiveCode Server syntax to call function in CGI folder

2018-11-23 Thread Keith Clarke via use-livecode
Thanks Matthias, '’ worked a treat. 

I was overthinking the security aspects and attempting to call the private CGI 
function from ‘across the divide’ in the public_html root rather than include 
the CGI files.

Clearly too much time spent with javascript, where included files are visible 
client-side in the browser (and its dev tools). Now I can see that the included 
LiveCode scripts stay server-side …and private!
 
Best,
Keith

> On 23 Nov 2018, at 20:37, Matthias Rebbe via use-livecode 
>  wrote:
> 
> Do you want to call an .lc file from outside the public_html file?
> If so then
> copy the .lc file  (lets say myscript.lc) to outside of the public_html, for 
> example to /home/custom_scripts.
> 
> Then in your .lc file in public_html use
> 
> include "home/custom_scripts/myscript.lc
> 
> to include the script myscript.lc into your main script.
> 
> Regards,
> 
> Matthias
> 
> 
> Matthias Rebbe
> 
> free tools for Livecoders:
> https://instamaker.dermattes.de
> https://winsignhelper.dermattes.de
> 
>> Am 23.11.2018 um 21:21 schrieb Keith Clarke via use-livecode 
>> :
>> 
>> Folks,
>> Can anyone please steer me to any docs explaining the (relative?) path 
>> syntax needed to traverse from a public file 'public_html/index.lc' to more 
>> private resources in 'public_html/CGI’ folder, to:
>> 1: Require CGI/myFile.lc?  
>> 2: Call myFunction() in CGI/myFile.lc?
>> 
>> The LC Server introductory lessons don’t seem to cover how to split 
>> public/private assets - unless I’m missing something?
>> 
>> Thanks in advance
>> Keith  
>> ___
>> 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: LiveCode Server syntax to call function in CGI folder

2018-11-23 Thread Matthias Rebbe via use-livecode
Do you want to call an .lc file from outside the public_html file?
If so then
copy the .lc file  (lets say myscript.lc) to outside of the public_html, for 
example to /home/custom_scripts.

Then in your .lc file in public_html use

include "home/custom_scripts/myscript.lc

to include the script myscript.lc into your main script.

Regards,

Matthias


Matthias Rebbe

free tools for Livecoders:
https://instamaker.dermattes.de
https://winsignhelper.dermattes.de

> Am 23.11.2018 um 21:21 schrieb Keith Clarke via use-livecode 
> :
> 
> Folks,
> Can anyone please steer me to any docs explaining the (relative?) path syntax 
> needed to traverse from a public file 'public_html/index.lc' to more private 
> resources in 'public_html/CGI’ folder, to:
> 1: Require CGI/myFile.lc?  
> 2: Call myFunction() in CGI/myFile.lc?
> 
> The LC Server introductory lessons don’t seem to cover how to split 
> public/private assets - unless I’m missing something?
> 
> Thanks in advance
> Keith  
> ___
> 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: LiveCode Server on CentOS 6?

2018-08-01 Thread Richard Gaskin via use-livecode

 Warren Samples wrote:


On 07/29/2018 07:56 PM, Richard Gaskin via use-livecode wrote:


First question (an admittedly ignorant one, but I haven't spent much 
time in the CentOS community):  Why does their package manager not 
automatically keep system components current?


Second question: If the first question cannot be resolved easily, what 
is the advantage of CentOS for this project over Ubuntu or Debian?


Richard,

The explanation that addresses your first question can be expressed in a 
very long-winded manner but also boiled down to this: It's RHEL's 
approach to enforcing stability. They and their clients are interested 
in a system that gives them no bad surprises. This takes into account 
the fact that many of those clients are using complicated proprietary 
software for critical tasks; commercial software and/or software 
developed in-house, which is expected to be fail-proof. There's is an 
obviously ultra-conservative approach, but you can't deny they've been 
successful at what they do :D CentOS naturally inherits the result of 
this philosophy.


Ubuntu's LTS (Long Term Support) releases serve the same goal, with 
similar methods:  patches are allowed, security patches can be 
automated, but new features are held back until the next LTS release.


It's a tough call, though, with supplemental packages getting long in 
the tooth.  In addition to the potential vulnerabilities, older packages 
can introduce their own compatibility issues, as we've seen here.


I tend to stick with only LTS releases myself, so I appreciate the goals 
with such things.


But unless one is managing a legacy system with known dependencies on 
older packages, using a more recent version would seem a good fit, esp. 
for non-experts, as it establishes a fresh baseline using the latest and 
greatest.


I guess the missing piece of the puzzle here is why his VPS service 
doesn't offer CentOS 7. But as you say:


Of course the market is open and it's relatively easy to switch hosts. 
There are several distros that would qualify as reliable enough for 
server usage including a few that aren't as widely available as the more 
popular ones. Debian and Ubuntu are totally valid along with CentOS and 
those are probably the most widely available in hosting packages

--
 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: LiveCode Server on CentOS 6?

2018-08-01 Thread Warren Samples via use-livecode

On 07/29/2018 07:56 PM, Richard Gaskin via use-livecode wrote:


First question (an admittedly ignorant one, but I haven't spent much 
time in the CentOS community):  Why does their package manager not 
automatically keep system components current?


Second question: If the first question cannot be resolved easily, what 
is the advantage of CentOS for this project over Ubuntu or Debian?




Richard,

The explanation that addresses your first question can be expressed in a 
very long-winded manner but also boiled down to this: It's RHEL's 
approach to enforcing stability. They and their clients are interested 
in a system that gives them no bad surprises. This takes into account 
the fact that many of those clients are using complicated proprietary 
software for critical tasks; commercial software and/or software 
developed in-house, which is expected to be fail-proof. There's is an 
obviously ultra-conservative approach, but you can't deny they've been 
successful at what they do :D CentOS naturally inherits the result of 
this philosophy.


The perception of extreme stability, along with the fact that it's one 
of only a very few OSs supported by cPanel, make CentOS very popular 
among hosting companies. All versions of RHEL and CentOS are supported 
for ten years which by design is to eliminate a disruption of services 
caused by forced upgrades. This sometimes leads to hosting companies 
running a version or two behind the latest, which can result in the 
problem Keith is encountering.


Keith has admitted he doesn't have a lot of knowledge and skills in 
Linux, so a managed VPS is a great solution for him. (I feel pretty much 
in that same boat. There are probably a lot of people trying to manage 
their own VPS who shouldn't be! Being well versed on maintaining a Linux 
desktop does not begin to address the skills and knowledge a server 
admin needs.) So, he's a little bit at the mercy of his hosting company. 
Of course the market is open and it's relatively easy to switch hosts. 
There are several distros that would qualify as reliable enough for 
server usage including a few that aren't as widely available as the more 
popular ones. Debian and Ubuntu are totally valid along with CentOS and 
those are probably the most widely available in hosting packages.


Warren

___
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: LiveCode Server on CentOS 6?

2018-08-01 Thread Warren Samples via use-livecode

On 08/01/2018 01:45 AM, Keith Clarke via use-livecode wrote:

  whether the issues are down to glibc version dependencies is beyond me.


You can check this by running

ldd [/path/to/livecode-server]


It will return a list that looks something like this (from my desktop 
system):


linux-vdso.so.1 (0x631efbacc000)
libdl.so.2 => /usr/lib/libdl.so.2 (0x631efb6a6000)
libpthread.so.0 => /usr/lib/libpthread.so.0 (0x631efb488000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 
(0x631efb245000)

libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x631efaf7c000)
librt.so.1 => /usr/lib/librt.so.1 (0x631efad74000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x631efa9eb000)
libm.so.6 => /usr/lib/libm.so.6 (0x631efa656000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x631efa43e000)
libc.so.6 => /usr/lib/libc.so.6 (0x631efa082000)
/lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 
(0x631efb8aa000)

libexpat.so.1 => /usr/lib/libexpat.so.1 (0x631ef9e5)
libuuid.so.1 => /usr/lib/libuuid.so.1 (0x631ef9c49000)
libbz2.so.1.0 => /usr/lib/libbz2.so.1.0 (0x631ef9a39000)
libpng16.so.16 => /usr/lib/libpng16.so.16 (0x631ef9803000)
libz.so.1 => /usr/lib/libz.so.1 (0x631ef95ec000)
libharfbuzz.so.0 => /usr/lib/libharfbuzz.so.0 (0x631ef934)
libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x631ef9029000)
libgraphite2.so.3 => /usr/lib/libgraphite2.so.3 
(0x631ef8dfd000)

libpcre.so.1 => /usr/lib/libpcre.so.1 (0x631ef8b8b000)


Don't worry about the first line where there is no returned path. Some 
systems may return those like this "linux-vdso.so.1 => 
(0x7fff6000)" with the memory location after a "=>". There may 
be one or two of those. What's important is that if something is not 
found or is found but in a mismatched version, you will see an explicit 
message stating as much, like so:


libfontconfig.so.1 => not found

If you try running 64bit LC-server on a 32bit machine or 32bit Server on 
a 64 bit machine without any of the 32 bit libs, you will probably see 
the message that the file is not a dynamic executable.


Here's a little bit about ldd that you and others might find helpful:

https://www.lifewire.com/find-shared-libraries-ldd-command-4017941

https://circleci.com/blog/tracking-dependencies-with-ldd/

https://circleci.com/blog/tracking-dependencies-with-ldd/



Good luck!

Warren

___
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: LiveCode Server on CentOS 6?

2018-07-31 Thread Keith Clarke via use-livecode
Thanks Richard & Brian for digging into this.

Lacking the Linux knowledge I tried working backwards from LC Server 9.0, 
trying 8.0 and 7.14 with no joy (internal server 500 error codes) - though 
whether the issues are down to glibc version dependencies is beyond me.

Earlier versions have less/no documentation in the packages and seem to only 
have 32-bit downloads available, which could introduce other issues (as the 
server is running 64-bit CentOS 6).

I think it’s time to stop flogging this particular dead horse and find an 
alternative dev environment pending target VPS OS upgrade, but thanks to all 
for trying.

…and that opens another can of worms that may warrant another thread or two - 
apologies in advance! :-)

Regards,
Keith

> On 31 Jul 2018, at 17:31, Richard Gaskin via use-livecode 
>  wrote:
> 
> Keith Clarke wrote:
> 
> > Thanks Martin (& Brian). It transpires that the VPS in question only
> > has CentOS 6 OS option, even if recreated - so the OS is a given for
> > the short term, pending replacement / upgrade discussions with the
> > hosting provider, which are not my call.
> >
> > One option to get underway might be to deploy an earlier version of LC
> > Server that can both:
> > Run happily under Linux with GLIBC at 2.12
> > Use LC9-compatible stacks - so I can develop on my desktop and deploy.
> >
> > I just hope these criteria aren’t mutually exclusive!
> 
> Apparently glibc has a very conservative version numbering scheme - v2.12 was 
> from 2010:
> https://sourceware.org/glibc/wiki/Glibc%20Timeline
> 
> LC 9's native format is the same as with v8.1, so I checked the Release Notes 
> for that version and apparently it requires glibc 2.13 or later.
> 
> Oddly, looking back to LC v7.0 the glibc required versions were *higher* than 
> they are in later versions - from the v7 release notes:
> 
>  Requirements for 32-bit Intel/AMD:
>  glibc 2.3.6 or later
>  Requirements for 64-bit Intel/AMD:
>  glibc 2.15 or later
> 
> Even odder is that support for the older 32-bit architecture requires a much 
> newer version (?).
> 
> In fact, I went back as far as LC v4.5 and found the glibc required version 
> listed as "glibc 2.3.2 or later".
> 
> This is confusing to me, so it seems we could benefit from some guidance from 
> Mark Waddingham or one of the Linux-savvy team members.
> 
> I wonder how difficult it would be to recompile LC 9.0.1 with glibc 2.12...
> 
> -- 
> 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: LiveCode Server on CentOS 6?

2018-07-31 Thread Brian Milby via use-livecode
In addition to bug fixes, I found this in the release notes for glibc 2.13:

New optimized string functions for x86-64: strnlen (SSE2),
  strcasecmp (SSE2, SSSE3, SSE4.2), strncasecmp (SSE2, SSSE3, SSE4.2)
  Implemented by Ulrich Drepper.


This is something that is probably beneficial to string functions in LC.
The ABI comparison that I found started with 2.13 so it doesn't show the
symbol changes from the previous version.

On Tue, Jul 31, 2018 at 11:31 AM, Richard Gaskin via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Keith Clarke wrote:
>
> > Thanks Martin (& Brian). It transpires that the VPS in question only
> > has CentOS 6 OS option, even if recreated - so the OS is a given for
> > the short term, pending replacement / upgrade discussions with the
> > hosting provider, which are not my call.
> >
> > One option to get underway might be to deploy an earlier version of LC
> > Server that can both:
> > Run happily under Linux with GLIBC at 2.12
> > Use LC9-compatible stacks - so I can develop on my desktop and deploy.
> >
> > I just hope these criteria aren’t mutually exclusive!
>
> Apparently glibc has a very conservative version numbering scheme - v2.12
> was from 2010:
> https://sourceware.org/glibc/wiki/Glibc%20Timeline
>
> LC 9's native format is the same as with v8.1, so I checked the Release
> Notes for that version and apparently it requires glibc 2.13 or later.
>
> Oddly, looking back to LC v7.0 the glibc required versions were *higher*
> than they are in later versions - from the v7 release notes:
>
>   Requirements for 32-bit Intel/AMD:
>   glibc 2.3.6 or later
>   Requirements for 64-bit Intel/AMD:
>   glibc 2.15 or later
>
> Even odder is that support for the older 32-bit architecture requires a
> much newer version (?).
>
> In fact, I went back as far as LC v4.5 and found the glibc required
> version listed as "glibc 2.3.2 or later".
>
> This is confusing to me, so it seems we could benefit from some guidance
> from Mark Waddingham or one of the Linux-savvy team members.
>
> I wonder how difficult it would be to recompile LC 9.0.1 with glibc 2.12...
>
> --
>  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: LiveCode Server on CentOS 6?

2018-07-31 Thread Richard Gaskin via use-livecode

Keith Clarke wrote:

> Thanks Martin (& Brian). It transpires that the VPS in question only
> has CentOS 6 OS option, even if recreated - so the OS is a given for
> the short term, pending replacement / upgrade discussions with the
> hosting provider, which are not my call.
>
> One option to get underway might be to deploy an earlier version of LC
> Server that can both:
> Run happily under Linux with GLIBC at 2.12
> Use LC9-compatible stacks - so I can develop on my desktop and deploy.
>
> I just hope these criteria aren’t mutually exclusive!

Apparently glibc has a very conservative version numbering scheme - 
v2.12 was from 2010:

https://sourceware.org/glibc/wiki/Glibc%20Timeline

LC 9's native format is the same as with v8.1, so I checked the Release 
Notes for that version and apparently it requires glibc 2.13 or later.


Oddly, looking back to LC v7.0 the glibc required versions were *higher* 
than they are in later versions - from the v7 release notes:


  Requirements for 32-bit Intel/AMD:
  glibc 2.3.6 or later
  Requirements for 64-bit Intel/AMD:
  glibc 2.15 or later

Even odder is that support for the older 32-bit architecture requires a 
much newer version (?).


In fact, I went back as far as LC v4.5 and found the glibc required 
version listed as "glibc 2.3.2 or later".


This is confusing to me, so it seems we could benefit from some guidance 
from Mark Waddingham or one of the Linux-savvy team members.


I wonder how difficult it would be to recompile LC 9.0.1 with glibc 2.12...

--
 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: LiveCode Server on CentOS 6?

2018-07-31 Thread Keith Clarke via use-livecode
Thanks Martin (& Brian). It transpires that the VPS in question only has CentOS 
6 OS option, even if recreated - so the OS is a given for the short term, 
pending replacement / upgrade discussions with the hosting provider, which are 
not my call.

One option to get underway might be to deploy an earlier version of LC Server 
that can both:
Run happily under Linux with GLIBC at 2.12
Use LC9-compatible stacks - so I can develop on my desktop and deploy.

I just hope these criteria aren’t mutually exclusive!

I’m not sure when stack change hit LC server or where to discover that. 

Before I start working backwards through server downloads to read the release 
notes, could anyone please perhaps nominate a likely contender release to 
target first?

Thanks & regards,
Keith 

> On 30 Jul 2018, at 19:37, Martin Koob via use-livecode 
>  wrote:
> 
> Hi Keith
> 
> I have been running LC server on CentOS 6 on a VPS for a few years now.  It
> runs the api for a cloud based application I have.  I am not sure of the LC
> version but  I am pretty sure it is 6.x...
> 
> I don't know the details of the set up at the moment but If you want I can
> check into it further.
> 
> I am looking to upgrade to CentOS 7 and a more recent version of LC OS,
> Hopefully LC9.  Haven't tried this out yet though.  On the todo list.
> 
> Martin
> 
> 
> 
> --
> Sent from: 
> http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html
> 
> ___
> 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: LiveCode Server on CentOS 6?

2018-07-30 Thread Martin Koob via use-livecode
Hi Keith

I have been running LC server on CentOS 6 on a VPS for a few years now.  It
runs the api for a cloud based application I have.  I am not sure of the LC
version but  I am pretty sure it is 6.x...

I don't know the details of the set up at the moment but If you want I can
check into it further.

I am looking to upgrade to CentOS 7 and a more recent version of LC OS,
Hopefully LC9.  Haven't tried this out yet though.  On the todo list.

Martin



--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
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: LiveCode Server on CentOS 6?

2018-07-30 Thread Brian Milby via use-livecode
Last migration that I had was pretty seamless. They migrated everything to a 
new VPS for me to check out before flipping the switch to migrate to the 
upgrade. May be worth checking out if they do the same sort of thing.

Thanks,
Brian
On Jul 30, 2018, 1:41 AM -0500, Keith Clarke via use-livecode 
, wrote:
>
> > First question (an admittedly ignorant one, but I haven't spent much time 
> > in the CentOS community): Why does their package manager not automatically 
> > keep system components current?
>
> CentOS 6 is not the latest version (and will be unsupported from 2020), so I 
> guess there are dependencies that require moving to CentOS 7 for more recent 
> components.
>
> > Second question: If the first question cannot be resolved easily, what is 
> > the advantage of CentOS for this project over Ubuntu or Debian?
>
> Convenience - it just happens to be the OS of the VPS hosting a Wordpress 
> website, with capacity & a wildcard SSL certificate on the domain, where I 
> was thinking about using LC to add some web services in a subdomain.
>
> Apparently the VPS can be destroyed and recreated on CentOS 7 but I have no 
> confidence I can ensure any backup of the existing config & services will 
> magically come back to life on CentOS 7 core seamlessly.
>
> Best,
> Keith
>
>
> ___
> 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: LiveCode Server on CentOS 6?

2018-07-29 Thread Keith Clarke via use-livecode


> First question (an admittedly ignorant one, but I haven't spent much time in 
> the CentOS community):  Why does their package manager not automatically keep 
> system components current?

CentOS 6 is not the latest version (and will be unsupported from 2020), so I 
guess there are dependencies that require moving to CentOS 7 for more recent 
components.

> Second question: If the first question cannot be resolved easily, what is the 
> advantage of CentOS for this project over Ubuntu or Debian?

Convenience - it just happens to be the OS of the VPS hosting a Wordpress 
website, with capacity & a wildcard SSL certificate on the domain, where I was 
thinking about using LC to add some web services in a subdomain. 

Apparently the VPS can be destroyed and recreated on CentOS 7 but I have no 
confidence I can ensure any backup of the existing config & services will 
magically come back to life on CentOS 7 core seamlessly.

Best,
Keith


___
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: LiveCode Server on CentOS 6?

2018-07-29 Thread Richard Gaskin via use-livecode

Keith Clarke wrote:

> Thanks Warren (& Richard) - this probably is the blocker, as this
> particular VPS is definitely running 2.12
>
> Google suggests that I can’t (or at least shouldn't attempt to)
> upgrade CentOS 6 with a later glibc version, given its central role.
>
> Apparently there are workarounds to install an additional, later
> version of glibc - as an option, alongside the OS version - in such a
> way that it gets called session by session, when needed (i.e. for LC
> Server use). However, after failing to complete a couple of these,
> it's clear but that this is way beyond my Linux chops to sort.
>
> So, it looks like server migration / rebuild will need to be on the
> critical path or it’s a dead-end for experimenting with LC Server for
> this particular project.

First question (an admittedly ignorant one, but I haven't spent much 
time in the CentOS community):  Why does their package manager not 
automatically keep system components current?


Second question: If the first question cannot be resolved easily, what 
is the advantage of CentOS for this project over Ubuntu or Debian?


--
 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: LiveCode Server on CentOS 6?

2018-07-29 Thread Keith Clarke via use-livecode
Thanks Warren (& Richard) - this probably is the blocker, as this particular 
VPS is definitely running 2.12

Google suggests that I can’t (or at least shouldn't attempt to) upgrade CentOS 
6 with a later glibc version, given its central role.

Apparently there are workarounds to install an additional, later version of 
glibc - as an option, alongside the OS version - in such a way that it gets 
called session by session, when needed (i.e. for LC Server use). However, after 
failing to complete a couple of these, it's clear but that this is way beyond 
my Linux chops to sort.

So, it looks like server migration / rebuild will need to be on the critical 
path or it’s a dead-end for experimenting with LC Server for this particular 
project.

Thanks
Keith

> On 29 Jul 2018, at 08:06, Warren Samples via use-livecode 
>  wrote:
> 
> On 07/28/2018 05:39 AM, Keith Clarke via use-livecode wrote:
>> Hi Folks,
>> Is anyone running LS Server on CentOS 6?
>> I notice that only version 7 is officially supported and not being a Linux 
>> expert, I’d like to know if this server OS would need to be upgraded before 
>> attempting anything with LC server on it.
>> TIA
>> Keith
> 
> The release notes say glibc 2.13 or later is needed to run LC 8 and 9 in 
> Linux. You can check the installed version in a shell locally, or using ssh 
> on a remote machine, with this command:
> 
> ldd --version
> 
> The first line it returns tells you the version. On my desktop it returns 
> this, showing glibc is version 2.27:
> 
> ldd (GNU libc) 2.27
> Copyright (C) 2018 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO 
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> Written by Roland McGrath and Ulrich Drepper.
> 
> I have a CentOS 7 server running glibc 2.17 and LC server works there. It 
> looks like CentOS 6 ships with 2.12 which won't work.
> 
> Good luck!
> 
> Warren
> 
> ___
> 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: LiveCode Server on CentOS 6?

2018-07-29 Thread Warren Samples via use-livecode

On 07/28/2018 05:39 AM, Keith Clarke via use-livecode wrote:

Hi Folks,
Is anyone running LS Server on CentOS 6?
I notice that only version 7 is officially supported and not being a Linux 
expert, I’d like to know if this server OS would need to be upgraded before 
attempting anything with LC server on it.
TIA
Keith


The release notes say glibc 2.13 or later is needed to run LC 8 and 9 in 
Linux. You can check the installed version in a shell locally, or using 
ssh on a remote machine, with this command:


 ldd --version

The first line it returns tells you the version. On my desktop it 
returns this, showing glibc is version 2.27:


ldd (GNU libc) 2.27
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is 
NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR 
PURPOSE.

Written by Roland McGrath and Ulrich Drepper.

I have a CentOS 7 server running glibc 2.17 and LC server works there. 
It looks like CentOS 6 ships with 2.12 which won't work.


Good luck!

Warren

___
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: LiveCode Server on CentOS 6?

2018-07-28 Thread Richard Gaskin via use-livecode

Keith Clarke wrote:

> Is anyone running LS Server on CentOS 6?
> I notice that only version 7 is officially supported and not being a
> Linux expert, I’d like to know if this server OS would need to be
> upgraded before attempting anything with LC server on it.

"Officially Supported" only designates the distros the LC core dev team 
is dedicated to testing on and maintaining for.  The others are 
community supported, and since LC's requirements are so light it 
generally works on most modern distros.


Give it a whirl and let us know how it goes.

--
 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: LiveCode server IDE - the current state of the art?

2018-07-22 Thread Keith Clarke via use-livecode
Hi Alex,
Thanks for sharing this structure - really useful to help visualise the 
‘skeleton' of the required architecture.

I just need to get LC server installed on our VPS (…cue ominous sound of 
another can of worms creaking open!) and start building-out.
Best,
Keith

> On 20 Jul 2018, at 23:45, Alex Tweedly via use-livecode 
>  wrote:
> 
> Hi Keith,
> 
> what I do in the 20 lines isn't very much - most of the work is done 
> elsewhere.
> 
> I do have a couple of places I don't use revIgniter. Here's a sanitized 
> version of what I use there as LC Server script (NB I have sanitized it 
> before sending, so there could be typos here - I haven't test it in exactly 
> this form)
> 
> As you'll see, I keep my standard libraries in a folder "libraryscripts", and 
> then individual sites can over-ride those in a folder "user/libraryscripts", 
> and can have additional scripts in "user/scripts". In an  earlier version I 
> loaded all scripts found in these folders; for now I specify which ones I 
> want, but I think I might at some point go back to loading every script I 
> find as a librarystack.
> 
> I'll have a look at the synch utility to see if it can be similarly sanitized 
> and shared.
> 
> -- Alex.
> 
>  -- DO NOT USE include OR in-line STATEMENTS or you will lose ability to use 
> IDE Tester App
> -- NB include siteConfig.lc for site specific content
> 
> if there is a file ("user/libraryscripts/main_script.livecode") then
>   put ("user/libraryscripts/main_script.livecode") into tt
> else
>   put ("libraryscripts/main_script.livecode") into tt
> end if
> start using stack tt
> 
> repeat for each word W in "common forms arrayjson" -- the libraries I always 
> need
>   put W & "_script.livecode" into tFile
>   if there is a file ("user/libraryscripts" & tFile) then
> put ("user/libraryscripts/" & tFile) into tt
>   else
> put ("libraryscripts/" & tFile) into tt
>   end if
>   start using stack tt
> end repeat
> 
> put "user/scripts/siteConfig.lc" into tt
> if there is a file tt then
>   start using stack tt
>   siteConfig
> end if
> 
> -- and do the command
> --   NB Usage ... www.mydomain.com/standalone.lc?command=dosomething&...
> put $_GET["command"] into tCommand
> do tCommand
> 
> 
> 
> On 20/07/2018 07:58, Keith Clarke via use-livecode wrote:
>> Thanks for describing your setup, Alex.
>> 
>> I like the ‘work locally as usual, then upload’ approach - coupled with the 
>> essential 'Did everything synch?' check utility! :-)
>> 
>> The lightweight LCS hub is very appealing (probably without RevIgniter to 
>> avoid any additional complexity) to get the basic plumbing connected.
>> 
>> Time to hit the LCS lessons to see if I can replicate what you're achieving 
>> with 20-lines, methinks! :-)
>> Best,
>> Keith
>> 
>>> From: Alex Tweedly 
>>> To: use-livecode@lists.runrev.com
>>> Subject: Re: LiveCode server IDE - the current state of the art?
>>> Message-ID: 
>>> Content-Type: text/plain; charset=utf-8; format=flowed
>>> 
>>> I have no idea if this is state of the art or not :-) - but here's what
>>> I do ...
>>> 
>>> 
>>> Short answer : the Livecode IDE plus an FTP client (Filezilla).
>>> 
>>> Longer answer :
>>> 
>>> 99% of what I write for the LC server is standard LC - scriptonly
>>> stacks, used as library stacks.
>>> 
>>> I have about 20 lines of LCS - just enough to look around and "start
>>> using" the relevant librarystacks, and then invoke the top-level
>>> handler. (This is actually in a revIgniter controller because I use
>>> revIgniter, but the same thing would work even if I didn't).
>>> 
>>> This lets me develop and test most of it in a convenient environment
>>> (the IDE, on my own laptop). I keep a copy of the scripts locally, along
>>> with enough of the database to do testing. I have a small "test-harness"
>>> app that lets me set parameters as though from the URL.
>>> 
>>> All output is done through my own handlers - which then either output on
>>> LC Server, or output to log/status/output fields and a browser widget in
>>> the test app. All DB access is done through a shim layer which uses
>>> Andre's DBLib + sqlite on the laptop and revIgniter's DB Lib + MySQL on
>>> the server.
>>>

Re: LiveCode server IDE - the current state of the art?

2018-07-20 Thread Alex Tweedly via use-livecode

Hi Keith,

what I do in the 20 lines isn't very much - most of the work is done 
elsewhere.


I do have a couple of places I don't use revIgniter. Here's a sanitized 
version of what I use there as LC Server script (NB I have sanitized it 
before sending, so there could be typos here - I haven't test it in 
exactly this form)


As you'll see, I keep my standard libraries in a folder 
"libraryscripts", and then individual sites can over-ride those in a 
folder "user/libraryscripts", and can have additional scripts in 
"user/scripts". In an  earlier version I loaded all scripts found in 
these folders; for now I specify which ones I want, but I think I might 
at some point go back to loading every script I find as a librarystack.


I'll have a look at the synch utility to see if it can be similarly 
sanitized and shared.


-- Alex.

-- DO NOT USE include OR in-line STATEMENTS or you will lose ability to 
use IDE Tester App

-- NB include siteConfig.lc for site specific content

if there is a file ("user/libraryscripts/main_script.livecode") then
  put ("user/libraryscripts/main_script.livecode") into tt
else
  put ("libraryscripts/main_script.livecode") into tt
end if
start using stack tt

repeat for each word W in "common forms arrayjson" -- the libraries I 
always need

  put W & "_script.livecode" into tFile
  if there is a file ("user/libraryscripts" & tFile) then
    put ("user/libraryscripts/" & tFile) into tt
  else
    put ("libraryscripts/" & tFile) into tt
  end if
  start using stack tt
end repeat

put "user/scripts/siteConfig.lc" into tt
if there is a file tt then
  start using stack tt
  siteConfig
end if

-- and do the command
--   NB Usage ... www.mydomain.com/standalone.lc?command=dosomething&...
put $_GET["command"] into tCommand
do tCommand



On 20/07/2018 07:58, Keith Clarke via use-livecode wrote:

Thanks for describing your setup, Alex.

I like the ‘work locally as usual, then upload’ approach - coupled with the 
essential 'Did everything synch?' check utility! :-)

The lightweight LCS hub is very appealing (probably without RevIgniter to avoid 
any additional complexity) to get the basic plumbing connected.

Time to hit the LCS lessons to see if I can replicate what you're achieving 
with 20-lines, methinks! :-)
Best,
Keith


From: Alex Tweedly 
To: use-livecode@lists.runrev.com
Subject: Re: LiveCode server IDE - the current state of the art?
Message-ID: 
Content-Type: text/plain; charset=utf-8; format=flowed

I have no idea if this is state of the art or not :-) - but here's what
I do ...


Short answer : the Livecode IDE plus an FTP client (Filezilla).

Longer answer :

99% of what I write for the LC server is standard LC - scriptonly
stacks, used as library stacks.

I have about 20 lines of LCS - just enough to look around and "start
using" the relevant librarystacks, and then invoke the top-level
handler. (This is actually in a revIgniter controller because I use
revIgniter, but the same thing would work even if I didn't).

This lets me develop and test most of it in a convenient environment
(the IDE, on my own laptop). I keep a copy of the scripts locally, along
with enough of the database to do testing. I have a small "test-harness"
app that lets me set parameters as though from the URL.

All output is done through my own handlers - which then either output on
LC Server, or output to log/status/output fields and a browser widget in
the test app. All DB access is done through a shim layer which uses
Andre's DBLib + sqlite on the laptop and revIgniter's DB Lib + MySQL on
the server.

I don't use revIgniter's "Views" - I have my own library which provides
the equivalent functionality in a way that lets me give website
maintainers access to it, without giving them access to anything within
revIgniter's 'system' folder.? (This also lets me test on the IDE).

I have a variety of ancillary files which I edit with other editors
(currently trying out Atom for small changes, but falling back to emacs
when there are larger or complex changes to do).

Only problem I've run into with this approach is that sometimes I will
edit and test a file (or a number of files)? locally, and forget to
upload one or some :-(? So I have a small 'sync' app which runs on the
laptop, and uses a LC Server script on the website, to flag up any
differences in the 'should be identical' files.

Alex.

On 19/07/2018 08:01, Keith Clarke via use-livecode wrote:

Hi folks,
I?m attempting to engage with LiveCode Server after a couple of years since I 
last played - when the approach was to roll your own IDE (i.e. pick a text 
editor) and optionally use the RevIgnitor framework.

I?d be obliged if anyone could please update me 

Re: LiveCode server IDE - the current state of the art?

2018-07-20 Thread Keith Clarke via use-livecode
Thanks for describing your setup, Alex. 

I like the ‘work locally as usual, then upload’ approach - coupled with the 
essential 'Did everything synch?' check utility! :-)

The lightweight LCS hub is very appealing (probably without RevIgniter to avoid 
any additional complexity) to get the basic plumbing connected.

Time to hit the LCS lessons to see if I can replicate what you're achieving 
with 20-lines, methinks! :-)
Best,
Keith

> From: Alex Tweedly 
> To: use-livecode@lists.runrev.com
> Subject: Re: LiveCode server IDE - the current state of the art?
> Message-ID: 
> Content-Type: text/plain; charset=utf-8; format=flowed
> 
> I have no idea if this is state of the art or not :-) - but here's what 
> I do ...
> 
> 
> Short answer : the Livecode IDE plus an FTP client (Filezilla).
> 
> Longer answer :
> 
> 99% of what I write for the LC server is standard LC - scriptonly 
> stacks, used as library stacks.
> 
> I have about 20 lines of LCS - just enough to look around and "start 
> using" the relevant librarystacks, and then invoke the top-level 
> handler. (This is actually in a revIgniter controller because I use 
> revIgniter, but the same thing would work even if I didn't).
> 
> This lets me develop and test most of it in a convenient environment 
> (the IDE, on my own laptop). I keep a copy of the scripts locally, along 
> with enough of the database to do testing. I have a small "test-harness" 
> app that lets me set parameters as though from the URL.
> 
> All output is done through my own handlers - which then either output on 
> LC Server, or output to log/status/output fields and a browser widget in 
> the test app. All DB access is done through a shim layer which uses 
> Andre's DBLib + sqlite on the laptop and revIgniter's DB Lib + MySQL on 
> the server.
> 
> I don't use revIgniter's "Views" - I have my own library which provides 
> the equivalent functionality in a way that lets me give website 
> maintainers access to it, without giving them access to anything within 
> revIgniter's 'system' folder.? (This also lets me test on the IDE).
> 
> I have a variety of ancillary files which I edit with other editors 
> (currently trying out Atom for small changes, but falling back to emacs 
> when there are larger or complex changes to do).
> 
> Only problem I've run into with this approach is that sometimes I will 
> edit and test a file (or a number of files)? locally, and forget to 
> upload one or some :-(? So I have a small 'sync' app which runs on the 
> laptop, and uses a LC Server script on the website, to flag up any 
> differences in the 'should be identical' files.
> 
> Alex.
> 
> On 19/07/2018 08:01, Keith Clarke via use-livecode wrote:
>> Hi folks,
>> I?m attempting to engage with LiveCode Server after a couple of years since 
>> I last played - when the approach was to roll your own IDE (i.e. pick a text 
>> editor) and optionally use the RevIgnitor framework.
>> 
>> I?d be obliged if anyone could please update me on the current state of the 
>> art and share their personal tool-belt preference (target environment is a 
>> Linux VPS).
>> Thanks & regards
>> Keith
>> ___
>> 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: LiveCode server IDE - the current state of the art?

2018-07-19 Thread Alex Tweedly via use-livecode
I have no idea if this is state of the art or not :-) - but here's what 
I do ...



Short answer : the Livecode IDE plus an FTP client (Filezilla).

Longer answer :

99% of what I write for the LC server is standard LC - scriptonly 
stacks, used as library stacks.


I have about 20 lines of LCS - just enough to look around and "start 
using" the relevant librarystacks, and then invoke the top-level 
handler. (This is actually in a revIgniter controller because I use 
revIgniter, but the same thing would work even if I didn't).


This lets me develop and test most of it in a convenient environment 
(the IDE, on my own laptop). I keep a copy of the scripts locally, along 
with enough of the database to do testing. I have a small "test-harness" 
app that lets me set parameters as though from the URL.


All output is done through my own handlers - which then either output on 
LC Server, or output to log/status/output fields and a browser widget in 
the test app. All DB access is done through a shim layer which uses 
Andre's DBLib + sqlite on the laptop and revIgniter's DB Lib + MySQL on 
the server.


I don't use revIgniter's "Views" - I have my own library which provides 
the equivalent functionality in a way that lets me give website 
maintainers access to it, without giving them access to anything within 
revIgniter's 'system' folder.  (This also lets me test on the IDE).


I have a variety of ancillary files which I edit with other editors 
(currently trying out Atom for small changes, but falling back to emacs 
when there are larger or complex changes to do).


Only problem I've run into with this approach is that sometimes I will 
edit and test a file (or a number of files)  locally, and forget to 
upload one or some :-(  So I have a small 'sync' app which runs on the 
laptop, and uses a LC Server script on the website, to flag up any 
differences in the 'should be identical' files.


Alex.



On 19/07/2018 08:01, Keith Clarke via use-livecode wrote:

Hi folks,
I’m attempting to engage with LiveCode Server after a couple of years since I 
last played - when the approach was to roll your own IDE (i.e. pick a text 
editor) and optionally use the RevIgnitor framework.

I’d be obliged if anyone could please update me on the current state of the art 
and share their personal tool-belt preference (target environment is a Linux 
VPS).
Thanks & regards
Keith
___
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: Livecode server, timeout and processes

2017-07-17 Thread Richard Gaskin via use-livecode

jbv wrote:

> A few days ago I ran into a severe problem with livecode server.
> A subtil and unexpected change in the way one of my clients inputs
> data via his app caused an endless loop to appear in one of the LC
> scripts on the server, which lead to a 504 Gateway Timeout error.
> As this script is called during a login procedure, it triggered
> pretty quickly a kind of chain reaction with many side effects :
> - many 504 Gateway Timeout errors in browsers
> - many 500 Internal server errors
> - huge slow down of the server
> - emails not sent/nor received in webmails
> - several other services unavailable due to server slowdown...
>
> All these problems were caused by the accumulation of livecode
> server processes on the server that kept running even if timeout
> errors were issued.
> As the source of the problem took a few hours to track down and
> to fix, we (on-rev support and I) had to kill dozens of processes
> manually to avoid any server crash.
>
> I know this might sound amateuristic to most of you, but nevertheless
> I was wondering if there is any way to prevent something like that,
> like for instance having all timedout processes to be killed
> automatically, or even better : avoiding any endless loop in the first
> place...

Without seeing the code it won't be possible to offer suggestions on 
prevention.


As for remedies, SSH is a must for server management.  I believe on-rev 
offers SSH access on request. Once you have direct access to the machine 
you can monitor processes and kill any errant ones.


--
 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: LiveCode Server - Html, Quotes & JS?

2017-06-19 Thread Rick Harrison via use-livecode
Hi Mike and Mark,

Thank you both for your suggestions!
I will give them a good try and get back to you.

Thanks again,

Rick

> On Jun 19, 2017, at 2:50 PM, Mike Bonner via use-livecode 
>  wrote:
> 
> Theres a couple things I do... For items like an href that are pretty
> predictable, I have a stack file with a template that can be used with
> merge.
> 
> So I'd have [[tUrl]] in a property and merge that
> sucker in. (could use a description in a variable rather than a 2nd tUrl if
> you'd like
> 
> put "http://www.google.com"; into tUrl
> put merge(the atag  of stack "whatever") and voila, there it is.
> 
> Alternatively, remember that you can open and close the lc tags at your
> convenience.
> 
> So instead of jumping through hoops, you can close the lc tag ?> then put
> your reference
> http://www.google.com"; onmouseover="movepic('button','pic-off.gif')"
> onmouseout="movepic('button','pic-on.gif')"> SRC="pic-off.gif" ALT="Image">
> 
> then open lc again with  
> You should even be able to put tiny chunks of lc interspersed into your
> href by http://www.google.com"; ?> right inside the thing.
> 
> On Mon, Jun 19, 2017 at 12:22 PM, Rick Harrison via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> I have a nice example button image swap routine
>> written in JavaScript which I’d like to use in a .lc script.
>> 
>> To use HTML etc. within a .lc script I have to put
>> the statement in double quotes such as:
>> 
>> put “”
>> 
>> or
>> 
>> put “http://www.google.com' >”
>> 
>> where I have to substitute single quotes for the normal double quotes to
>> make it work.
>> 
>> That’s fine until I have a statement that is already using both double and
>> single quotes.
>> The statement still needs to be converted into a .lc script format.  The
>> following statement
>> will get parsed the wrong way if one wants to put it into double quotes.
>> 
>> http://www.google.com"; onmouseover="movepic('button','pic-off.gif')"
>> onmouseout="movepic('button','pic-on.gif')">> SRC="pic-off.gif" ALT="Image">
>> 
>> becomes:
>> 
>> put "http://www.google.com"; 
>> onmouseover="movepic('button','pic-off.gif')"
>> onmouseout="movepic('button','pic-on.gif')">> SRC="pic-off.gif" ALT="Image">”
>> 
>> As you can see the above statement will not be parsed correctly.
>> 
>> Suggestions?
>> 
>> On a related note, if a user types in a word such as “can’t” into a field,
>> the apostrophe gets interpreted as
>> a single quote and that messes up the parsing of various .lc script
>> statements too.
>> 
>> How do you usually solve these issues?
>> 
>> Thanks,
>> 
>> Rick
>> 
>> 
>> ___
>> 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: LiveCode Server - Html, Quotes & JS?

2017-06-19 Thread Mark Wieder via use-livecode

On 06/19/2017 11:22 AM, Rick Harrison via use-livecode wrote:

I have a nice example button image swap routine
written in JavaScript which I’d like to use in a .lc script.

To use HTML etc. within a .lc script I have to put
the statement in double quotes such as:

put “”

or

put “http://www.google.com' >”

where I have to substitute single quotes for the normal double quotes to make 
it work.

That’s fine until I have a statement that is already using both double and 
single quotes.
The statement still needs to be converted into a .lc script format.  The 
following statement
will get parsed the wrong way if one wants to put it into double quotes.

http://www.google.com"; onmouseover="movepic('button','pic-off.gif')" 
onmouseout="movepic('button','pic-on.gif')">

becomes:

put "http://www.google.com"; onmouseover="movepic('button','pic-off.gif')" 
onmouseout="movepic('button','pic-on.gif')">”

As you can see the above statement will not be parsed correctly.

Suggestions?

On a related note, if a user types in a word such as “can’t” into a field, the 
apostrophe gets interpreted as
a single quote and that messes up the parsing of various .lc script statements 
too.

How do you usually solve these issues?


There's a long-standing bug report about wanting to use single- and 
double- quotes interchangeably. But even that won't completely solve 
your problem here.


I usually resort to a general-purpose function that Ken Ray posted some 
years ago for quoting text when you can't do it explicitly:


function q pText
  return quote & pText & quote
end q

So you'd end up with

put "http://www.google.com";) && "onmouseover=" & 
q("movepic('button','pic-off.gif')") &&  "onmouseout=" & 
q("movepic('button','pic-on.gif')") && ">"SRC=" & q("pic-off.gif") && "ALT=" & q("Image") & ">”


and that should work even if it's a bit ungainly.
To make it more readable, I usually break that up with constants.
Something like:

constant kURL="http://www.google.com";
constant kOnAction="movepic('button','pic-on.gif')"
constant kOffAction="movepic('button','pic-off.gif')"
local sImageContent

function href pURL, pContent
  return "" & pContent & ""
end href

put "" into sImageContent


put href(q(kURL) && "onmouseover=" & q(kOnAction) &&  "onmouseout=" & 
q(kOffAction), sImageContent)


--
 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: LiveCode Server - Html, Quotes & JS?

2017-06-19 Thread Mike Bonner via use-livecode
Theres a couple things I do... For items like an href that are pretty
predictable, I have a stack file with a template that can be used with
merge.

So I'd have [[tUrl]] in a property and merge that
sucker in. (could use a description in a variable rather than a 2nd tUrl if
you'd like

put "http://www.google.com"; into tUrl
put merge(the atag  of stack "whatever") and voila, there it is.

Alternatively, remember that you can open and close the lc tags at your
convenience.

So instead of jumping through hoops, you can close the lc tag ?> then put
your reference
http://www.google.com"; onmouseover="movepic('button','pic-off.gif')"
onmouseout="movepic('button','pic-on.gif')">

then open lc again with http://www.google.com"; ?> right inside the thing.

On Mon, Jun 19, 2017 at 12:22 PM, Rick Harrison via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I have a nice example button image swap routine
> written in JavaScript which I’d like to use in a .lc script.
>
> To use HTML etc. within a .lc script I have to put
> the statement in double quotes such as:
>
> put “”
>
> or
>
> put “http://www.google.com' >”
>
> where I have to substitute single quotes for the normal double quotes to
> make it work.
>
> That’s fine until I have a statement that is already using both double and
> single quotes.
> The statement still needs to be converted into a .lc script format.  The
> following statement
> will get parsed the wrong way if one wants to put it into double quotes.
>
> http://www.google.com"; onmouseover="movepic('button','pic-off.gif')"
> onmouseout="movepic('button','pic-on.gif')"> SRC="pic-off.gif" ALT="Image">
>
> becomes:
>
> put "http://www.google.com"; 
> onmouseover="movepic('button','pic-off.gif')"
> onmouseout="movepic('button','pic-on.gif')"> SRC="pic-off.gif" ALT="Image">”
>
> As you can see the above statement will not be parsed correctly.
>
> Suggestions?
>
> On a related note, if a user types in a word such as “can’t” into a field,
> the apostrophe gets interpreted as
> a single quote and that messes up the parsing of various .lc script
> statements too.
>
> How do you usually solve these issues?
>
> Thanks,
>
> Rick
>
>
> ___
> 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: LiveCode Server 8.1 - installing

2016-09-16 Thread Graham Samuel
Thanks Mark, but I didn’t have to do this- good, because typically I would have 
no idea what password to use. I just went back over Stephen Barncard’s advice 
(thanks so much, Stephen!) about .htaccess (I was already there in fact) and 
most particularly about permissions (I was emphatically NOT there). So my 
samples are working now and any other problems are to do with mistakes I’ve 
made and not to do with the issue of installing LC Server. I am not sure if the 
current LC documentation warns you about the pesky permission problem, but it 
should.

Thanks also to Richard Gaskin for his very helpful and thoughtful mail. It 
would indeed be good if we could meet again. My pad in the South of France is 
still functioning, as you guessed! We need a bit more rain to get the grass 
back in order… but I digress.


Graham


> On 14 Sep 2016, at 22:59, Mark Talluto  wrote:
> 
> 
>> On Sep 14, 2016, at 8:57 AM, Graham Samuel  wrote:
>> 
>> Obviously I have made a massive error, but what is it? I just want to be 
>> able to run some .lc programs on the server - it doesn’t seem much to ask.
> 
> LC 8.1 has different dependencies than previous versions of LC. The first 
> thing I would do is make sure you have GLib installed. Open terminal, sign 
> into your server and type the following: 
> 
> apt-get install libglib2.0-0
> 
> You may need to get sudo access thus:
> 
> sudo apt-get install libglib2.0-0
> (enter password when asked)
> 
> Something else that is new in 8.1 is the ability to get error messages 
> regarding missing dependencies. Not sure if you are seeing those.
> 
> I hope this helps.
> 
> Best regards,
> 
> Mark Talluto
> livecloud.io
> canelasoftware.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: LiveCode Server 8.1 - installing

2016-09-14 Thread Mark Talluto

> On Sep 14, 2016, at 8:57 AM, Graham Samuel  wrote:
> 
> Obviously I have made a massive error, but what is it? I just want to be able 
> to run some .lc programs on the server - it doesn’t seem much to ask.

LC 8.1 has different dependencies than previous versions of LC. The first thing 
I would do is make sure you have GLib installed. Open terminal, sign into your 
server and type the following: 

apt-get install libglib2.0-0

You may need to get sudo access thus:

sudo apt-get install libglib2.0-0
(enter password when asked)

Something else that is new in 8.1 is the ability to get error messages 
regarding missing dependencies. Not sure if you are seeing those.

I hope this helps.

Best regards,

Mark Talluto
livecloud.io
canelasoftware.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: LiveCode Server 8.1 - installing

2016-09-14 Thread Matthias Rebbe


> Am 14.09.2016 um 22:32 schrieb Richard Gaskin :
> 
> For things that stay on a server we manage ourselves, what would be an 
> advantage of using the proprietary editions of LC Server?
> 

You could use 3rd party password encrypted stacks with LC server commercial for 
example, like the stacks the key generator Zygodact from Jacque creates.

___
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: LiveCode Server 8.1 - installing

2016-09-14 Thread Richard Gaskin

Matthias Rebbe wrote:

> There is a little difference between the LC server versions installed
> by default at On-Rev and HostM.
>
> On-Rev has LC server commercial installed.
>
> HostM by default has just installed the most current release version
> of community server.
>
> But if a user can proof the purchase of LC Server commercial, then
> HostM even installs the commercial version of LiveCode Server account
> wide for the user .
>
> There is no need for HostM users to install their own instances of LC
> commercial into each domain folder. That is very comfortable.

Good to know, Matthias.  Thanks.

I'd always considered the proprietary editions of LC Server too 
specialized for most uses, limited to situations where I might be 
delivering a server-side system as a product in itself in which I'd want 
to include proprietary code to a customer to install on their server.


For things that stay on a server we manage ourselves, what would be an 
advantage of using the proprietary editions of LC Server?


--
 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: LiveCode Server 8.1 - installing

2016-09-14 Thread Richard Gaskin

Graham Samuel wrote:

> Hi Richard
>
> I don’t have any desire to frighten the DreamHost horses! However my
> query was a very simple one, simply to answer Peter’s question.  DH
> support has already come back to me - apparently I’m using Ubuntu
> 12.04.5 LTS on my site

If memory serves they switched to Ubuntu with that version (had been 
using Debian), and I'd wager they'll be replacing it with 14.04 soon 
since 12.04 reaches EOL next April.


That won't affect your stuff, though. DH has a good track record of 
upgrading infrastructure without disrupting service.



> If you run LC on DH often, can you explain to a deeply ignorant
> person such as myself -

Anyone who can set himself up in as fine a living situation as you have 
can't be too ignorant. :) I've not forgotten the invitation you kindly 
extended to me and my wife to visit when we all met at the Malta 
conference - and indeed these sorts of issues are much easier to work 
out in person!  Ideally I should go there, or you should take vacation 
in southern California soon - we could work this out in minutes, and 
spend the rest of the afternoon enjoying either a California or French 
wine. :)



But in lieu of that for now, what's see what we can do here:

> is it really necessary for DH to carry as many copies of LC Server
> as there are users? Can’t LC Server be somewhere near the root of
> the tree so to speak, so that everyone who wants to reference it
> can do so?

That's a conversation I'd love to have with them some day, and one of 
the reasons I like to meet DH team members whenever I have a chance 
(that, and they're generally good company).


But right now it's not a problem:  it's common on a shared hosting 
service to have more than a hundred accounts on a single machine, and 
chances are that today yours is the only account on your server using 
LiveCode Server.


Of course we hope to change that over time.  And as more of us make 
great sites using it perhaps we will.


And when enough other customers are using it, we'll be in a good 
position to strike up a conversation with their marketing team about the 
value of offering LiveCode Server pre-installed.


But for now most hosting companies tend to offer only a few languages 
pre-installed, usually those beginning with "P" (Perl, PHP, Python), and 
sometimes Ruby.


Most other engines that can be used as CGIs will need to be added by the 
user to their own account, as we do with LiveCode.



> If not, then my next question is “why did just replacing the whole
> 'LiveCode Server' folder within my domain (it was in the cgi-bin
> folder) not work as it had before?" Do I really have to start
> tweaking command lines?

My hunch would be that perhaps your original post followed Stephen's 
guide and added a .htaccess file inside your "LiveCode Server" folder, 
so dropping in your new folder replaced everything that LC provides in 
that folder but not the .htaccess file you'd added before.


From Stephen's notes:

   this one inside the cgi-bin directory

   Options ExecCGI
   SetHandler cgi-script



If the executable bit is set on the LiveCode engine itself, it may be 
that adding that .htaccess file back into the "LiveCode Server" folder 
is all you need.



> If you want to know what the error is, I can’t invoke LC Server at
> all, for example invoking ‘example.lc’ etc from a browser, and as far
> as I can see, when I invoke an LC script via the FastSpring store,
> the corresponding .lc file isn’t executed. Before my mis-upgrade, the
> execution did take place. I get
>
>> -- ERROR --
>> com.brightmarket.core.license.LicenseException
>> Remote license generator failed: 
http://www.mysite.com/MRScriptForFastSpringMac.lc, HTTP/1.1 404 Not Found


Try:

1. Double-checking that the LC Server engine file is set to executable;

2. Make sure you have the .htaccess file noted above in your cgi-bin 
folder per Stephen's instructions.


If that fails, then:

3. Make a very simple test file in your web root and try calling it from 
your browser, something like:




If that works but your shopping cart doesn't, it would seem the issue 
lies somewhere between your script and the cart.


But if that test script doesn't work we can get it to work. Just let me 
know.  Or drop by. :)



> [Rant: My position by the way is that I am so old that I can remember
> programming computers that didn’t even know how to boot themselves,
> and command lines would have been a luxury, a la Monty Python… but
> now I just want to get on with it and leave what’s under the hood
> under the hood. Of course I’m willing to learn, but I see that I have
> failed to understand some structural stuff about how hosting
> companies organise their servers and what the fundamentals of *nix
> are… and somehow this is taken for granted by most of the people who
> want to explain stuff. I have noticed this tendency even from the
> mother ship when LCB is b

Re: LiveCode Server 8.1 - installing

2016-09-14 Thread Matthias Rebbe

Matthias Rebbe
Bramkampsieke 13
32312 Lübbecke
Tel +49 5741 31
+49 160 5504462
Fax: +49 5741 310002
eMail: matth...@m-r-d.de 

BR5 Konverter - BR5 -> MP3 
> 
> Both services provide LiveCode Server pre-installed and ready for use with 
> your scripts.  Of the two, last time I checked hostm.com's pricing was more 
> favorable.

There is a little difference between the LC server versions installed by 
default at On-Rev and HostM.
On-Rev has LC server commercial installed. 

HostM by default has just installed the most current release version of 
community server. 
But if a user can proof the purchase of LC Server commercial, then HostM even 
installs the commercial version of LiveCode Server account wide for the user . 
There is no need for HostM users to install their own instances of LC 
commercial into each domain folder. That is very comfortable.

Regards,

Matthias


___
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: LiveCode Server 8.1 - installing

2016-09-14 Thread Graham Samuel
Hi Richard

I don’t have any desire to frighten the DreamHost horses! However my query was 
a very simple one, simply to answer Peter’s question.  DH support has already 
come back to me - apparently I’m using Ubuntu 12.04.5 LTS on my site

If you run LC on DH often, can you explain to a deeply ignorant person such as 
myself - is it really necessary for DH to carry as many copies of LC Server as 
there are users? Can’t LC Server be somewhere near the root of the tree so to 
speak, so that everyone who wants to reference it can do so? If not, then my 
next question is “why did just replacing the whole 'LiveCode Server' folder 
within my domain (it was in the cgi-bin folder) not work as it had before?" Do 
I really have to start tweaking command lines? 

If you want to know what the error is, I can’t invoke LC Server at all, for 
example invoking ‘example.lc’ etc from a browser, and as far as I can see, when 
I invoke an LC script via the FastSpring store, the corresponding .lc file 
isn’t executed. Before my mis-upgrade, the execution did take place. I get

> -- ERROR --
> com.brightmarket.core.license.LicenseException
> Remote license generator failed: 
> http://www.mysite.com/MRScriptForFastSpringMac.lc, HTTP/1.1 404 Not Found

[Rant: My position by the way is that I am so old that I can remember 
programming computers that didn’t even know how to boot themselves, and command 
lines would have been a luxury, a la Monty Python… but now I just want to get 
on with it and leave what’s under the hood under the hood. Of course I’m 
willing to learn, but I see that I have failed to understand some structural 
stuff about how hosting companies organise their servers and what the 
fundamentals of *nix are… and somehow this is taken for granted by most of the 
people who want to explain stuff. I have noticed this tendency even from the 
mother ship when LCB is being discussed. Guess I’m just to old. end Rant]

Anyway I will try to put together a more coherent set of questions.

Still confused

Graham

> On 14 Sep 2016, at 19:23, Richard Gaskin  wrote:
> 
> Graham Samuel wrote:
> 
> > A quick check on the DreamHost Knowledge Base doesn’t answer the
> > question, so I’ve had  to generate a ticket in their support system.
> 
> You may consider closing that support request with Dreamhost.  There are 
> enough of us using LC Server on DH that I'd like to avoid the potential of 
> creating a reputation for LiveCode as representing an unusual cost for them 
> to support.  I really like the team at DH (I've met some of them at the SoCal 
> Linux Expo, and they were enormously helpful last year in helping us sort out 
> LC's transition to 64-bit), so I try to be mindul of our impact on their time 
> (hosting is a notoriously low-margin business).
> 
> DH's setup is fine.  I run LC on it often, as many of us do.  It's set up 
> well to handle any executable that supports stdin and stdout as a CGI, 
> including LC Server, so there's little they can do that won't eat up a lot of 
> their time trying to learn the specifics of LC.
> 
> Please let us help you instead.  Many of us know DH well, and all of us know 
> LC very well.  We can help you with LiveCode-specific questions more 
> efficiently than they can.
> 
> 
> > A lot of LC people use DreamHost, and as I say it was kind of working
> > until I foolishly binned my 7 series version in favour of 8.1.
> 
> What is the error you're getting now that you didn't get before?
> 
> If the LC Lesson you found for setting up LC Server involved updating the 
> Apache config file, you were looking at the one for a dedicated server or 
> VPS.  What you want is the one that uses .htaccess, the override mechanism 
> for Apache config supported on most shared hosting services like DG:
> 
> 
> It may be helpful to review the notes that Stephen put together for setting 
> up LC Server specifically on DH:
> 
> 
> @Stephen: If you don't mind I can copy your notes to this thread in the 
> forums where we've been collecting notes on host-specific setup instructions 
> so they don't get lost in the ephemera of email list archives:
> 
> 
> 
> > What scares me is having to do command-line stuff on an OS I know
> > absolutely nothing about. The instructions and installation notes
> > I’ve read so far don’t work for someone with that particular phobia.
> 
> I somewhat agree.  Just as we need to be able to use a desktop environment 
> well to be able to design software for it effectively, it's very helpful to 
> be able to work fluidly via Terminal with a server in order to deploy systems 
> there.
> 
> It's all learnable, and if you like learning it's kinda fun, but like any 
> learning it does take time.
> 
> We can explore ways to build skills and confidence with Terminal her

Re: LiveCode Server 8.1 - installing

2016-09-14 Thread Richard Gaskin

Graham Samuel wrote:

> A quick check on the DreamHost Knowledge Base doesn’t answer the
> question, so I’ve had  to generate a ticket in their support system.

You may consider closing that support request with Dreamhost.  There are 
enough of us using LC Server on DH that I'd like to avoid the potential 
of creating a reputation for LiveCode as representing an unusual cost 
for them to support.  I really like the team at DH (I've met some of 
them at the SoCal Linux Expo, and they were enormously helpful last year 
in helping us sort out LC's transition to 64-bit), so I try to be mindul 
of our impact on their time (hosting is a notoriously low-margin business).


DH's setup is fine.  I run LC on it often, as many of us do.  It's set 
up well to handle any executable that supports stdin and stdout as a 
CGI, including LC Server, so there's little they can do that won't eat 
up a lot of their time trying to learn the specifics of LC.


Please let us help you instead.  Many of us know DH well, and all of us 
know LC very well.  We can help you with LiveCode-specific questions 
more efficiently than they can.



> A lot of LC people use DreamHost, and as I say it was kind of working
> until I foolishly binned my 7 series version in favour of 8.1.

What is the error you're getting now that you didn't get before?

If the LC Lesson you found for setting up LC Server involved updating 
the Apache config file, you were looking at the one for a dedicated 
server or VPS.  What you want is the one that uses .htaccess, the 
override mechanism for Apache config supported on most shared hosting 
services like DG:



It may be helpful to review the notes that Stephen put together for 
setting up LC Server specifically on DH:



@Stephen: If you don't mind I can copy your notes to this thread in the 
forums where we've been collecting notes on host-specific setup 
instructions so they don't get lost in the ephemera of email list archives:




> What scares me is having to do command-line stuff on an OS I know
> absolutely nothing about. The instructions and installation notes
> I’ve read so far don’t work for someone with that particular phobia.

I somewhat agree.  Just as we need to be able to use a desktop 
environment well to be able to design software for it effectively, it's 
very helpful to be able to work fluidly via Terminal with a server in 
order to deploy systems there.


It's all learnable, and if you like learning it's kinda fun, but like 
any learning it does take time.


We can explore ways to build skills and confidence with Terminal here if 
you like - there's not all that much you need to know to work on a 
shared host like your DH account. In under a day you can become 
confident, in a week you're a pro. :)


But alternatively, you might also consider taking advantage of the range 
of options we have with server systems today.


Just as most other development platforms are available with different 
levels of support across the cloud, LiveCode has more options we well.


Using a shared hosting service is a sort of IaaS (Infrastructure as a 
Servce), where they provide the machine and maintain the OS and the 
connectivity, and within your account you're pretty much on your own.


But as we see with services like what Heroku provides for Python, PHP, 
etc., we have two PaaS (Platform as a Service) options in our LiveCode 
world:  on-rev.com and hostm.com


I have no direct experience with on-rev.com, but it was built by the 
core team and AFAIK still managed by LiveCode Ltd.


I've had correspondences with hostm.com, and while I haven't used their 
service myself yet I've read many comments here from those who seem very 
pleased with it.  My own exchanges with them have been prompt, candid, 
and courteous.  I was very impressed to find a third-party hosting 
service as committed to helping LiveCode grow as they are.


Both services provide LiveCode Server pre-installed and ready for use 
with your scripts.  Of the two, last time I checked hostm.com's pricing 
was more favorable.


And if you want to stay with DH, they're a fine option too.  Follow 
Stephen's guide, be willing to learn a little about managing permissions 
in Terminal (though you can probably do what you need in a good FTP tool 
as well, like the free and open FileZilla), and we can get you up and 
running 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 m

Re: LiveCode Server 8.1 - installing

2016-09-14 Thread Graham Samuel
HI Peter

Thanks for the lightning reply!

A quick check on the DreamHost Knowledge Base doesn’t answer the question, so 
I’ve had  to generate a ticket in their support system. A lot of LC people use 
DreamHost, and as I say it was kind of working until I foolishly binned my 7 
series version in favour of 8.1.

What scares me is having to do command-line stuff on an OS I know absolutely 
nothing about. The instructions and installation notes I’ve read so far don’t 
work for someone with that particular phobia.

Cheers

Graham

> On 14 Sep 2016, at 18:08, Peter TB Brett  wrote:
> 
> 
> 
> On 14/09/2016 16:57, Graham Samuel wrote:
>> I admit to knowing nothing at all about Linux. I am using Jacque’s Zygodact 
>> product running as a CGI as part of a website which is hosted by DreamHost - 
>> this is to sell a product via FastSpring. Matthias Rebbe has very generously 
>> explained how to do this (I mean how to set up the selling of a download 
>> product via FastSpring using Zygodact to get the license codes). I 
>> **almost** got it working (it actually did work for one out of two products) 
>> when I noticed that the version of LiveCode Server I was using was one of 
>> the LC7 series, so I decided to update it.
>> 
>> Now nothing works, and the instructions on the LiveCode site don’t seem to 
>> apply to me at all - they seem to imply that I have full control of Apache 
>> on DreamHost, but I don’t. All I’ve got is my own modest web presence, a CGI 
>> folder and so on. I tried simply replacing the old LC Server folder with the 
>> new one, but that seems to have no effect at all. I can’t run a test program 
>> (test.lc or whatever) from a browser, and the tests which were working on 
>> the FastSpring site - which call LC programs on the server - now don’t work 
>> at all.
>> 
>> Obviously I have made a massive error, but what is it? I just want to be 
>> able to run some .lc programs on the server - it doesn’t seem much to ask.
>> 
>> In over my head and seeking any advice.
>> 
> 
> Hi Graham,
> 
> What version of Linux is your server running?  LiveCode 8.1 server is 
> expected to run on:
> 
> - CentOS 7
> - Debian 7 (wheezy)
> - Debian 8 (jessie)
> - Ubuntu 14.04
> - Ubuntu 16.04
> - Fedora 23
> - Fedora 24
> 
>   Peter
> 
> -- 
> Dr Peter Brett 
> LiveCode Technical Project Manager
> 
> lcb-mode for Emacs: https://github.com/peter-b/lcb-mode
> 
> ___
> 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: LiveCode Server 8.1 - installing

2016-09-14 Thread Peter TB Brett



On 14/09/2016 16:57, Graham Samuel wrote:

I admit to knowing nothing at all about Linux. I am using Jacque’s Zygodact 
product running as a CGI as part of a website which is hosted by DreamHost - 
this is to sell a product via FastSpring. Matthias Rebbe has very generously 
explained how to do this (I mean how to set up the selling of a download 
product via FastSpring using Zygodact to get the license codes). I **almost** 
got it working (it actually did work for one out of two products) when I 
noticed that the version of LiveCode Server I was using was one of the LC7 
series, so I decided to update it.

Now nothing works, and the instructions on the LiveCode site don’t seem to 
apply to me at all - they seem to imply that I have full control of Apache on 
DreamHost, but I don’t. All I’ve got is my own modest web presence, a CGI 
folder and so on. I tried simply replacing the old LC Server folder with the 
new one, but that seems to have no effect at all. I can’t run a test program 
(test.lc or whatever) from a browser, and the tests which were working on the 
FastSpring site - which call LC programs on the server - now don’t work at all.

Obviously I have made a massive error, but what is it? I just want to be able 
to run some .lc programs on the server - it doesn’t seem much to ask.

In over my head and seeking any advice.



Hi Graham,

What version of Linux is your server running?  LiveCode 8.1 server is 
expected to run on:


- CentOS 7
- Debian 7 (wheezy)
- Debian 8 (jessie)
- Ubuntu 14.04
- Ubuntu 16.04
- Fedora 23
- Fedora 24

   Peter

--
Dr Peter Brett 
LiveCode Technical Project Manager

lcb-mode for Emacs: https://github.com/peter-b/lcb-mode

___
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: LiveCode Server Linux 64 -- Exiting on "signal 11"

2016-05-13 Thread Sannyasin Brahmanathaswami
I installed the 8.0GM server and it still happening.

With a good recipe, I still enter this 

http://quality.livecode.com/show_bug.cgi?id=17642

Though would it make more sense to re-open 17246?


On 5/12/16, 6:17 PM, "use-livecode on behalf of Richard Gaskin" 
 
wrote:

>Bad search - found it:
>
>
>It's marked as Resolved Fixed for 8.0GM - is your server still running DP16?
>
>It may also be a separate issue, as our recipes differ slightly.
>
>If you still see this after confirming 8.0 GM, please submit a report 
>for that.
>

___
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: LiveCode Server Linux 64 -- Exiting on "signal 11"

2016-05-12 Thread Richard Gaskin

Richard Gaskin wrote:
> Sannyasin Brahmanathaswami:
>
>> A desktop client that calls API's on the web server works in LC 7,
>> is failing under LC 8 server. Some handler in one of our API scripts
>> on the web server is triggering a "fault" in LC8 64 bit for linux,
>> that does not exist in LC7…
>
> I also saw this and reported it.  It only affects LC when running on
> faceless systems; LC Server running under Apache on a system that has
> a GUI doesn't exhibit the behavior.
>
> IIRC the bug was fixed very recently, but oddly enough I can't find
> it in the bug DB now.

Bad search - found it:


It's marked as Resolved Fixed for 8.0GM - is your server still running DP16?

It may also be a separate issue, as our recipes differ slightly.

If you still see this after confirming 8.0 GM, please submit a report 
for that.


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for Desktop, Mobile, and 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: LiveCode Server Linux 64 -- Exiting on "signal 11"

2016-05-12 Thread Richard Gaskin

Sannyasin Brahmanathaswami:

> We have uncovered a mysterious bug with LC 8 community server (linux
> 64) on Ubuntu
>
> A desktop client that calls API's on the web server works in LC 7,
> is failing under LC 8 server. Some handler in one of our API scripts
> on the web server is triggering a "fault" in LC8 64 bit for linux,
> that does not exist in LC7…

I also saw this and reported it.  It only affects LC when running on 
faceless systems; LC Server running under Apache on a system that has a 
GUI doesn't exhibit the behavior.


IIRC the bug was fixed very recently, but oddly enough I can't find it 
in the bug DB now.


Possibly related, David Simpson reported this last month:


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for Desktop, Mobile, and 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

  1   2   3   >