Charset problems with .lc web page

2015-12-23 Thread Tim Selander
Dear list, I'm having trouble making a .lc web pages correctly show the charset. I have two test files: http://www.pba.on-rev.com/5_today.lc http://www.pba.on-rev.com/5_today.irev They are identical except for the .lc/.irev file extensions, and also the and tags in the html. The .irev file

Re: LiveCode books

2015-12-23 Thread Colin Holgate
In case anyone here had a similar question, I post this: Not a major re-write, but I added some things about LiveCode 7, which came out after the first edition. It was taking me a long time to do the update, I was busy at work, so I asked Joel Gerdeen (he was to be a reviewer for the second edi

Re: LiveCode books

2015-12-23 Thread Colin Holgate
Accept my request to join, and I’ll post a reply. > On Dec 23, 2015, at 7:57 PM, Richard Gaskin > wrote: > > Colin Holgate wrote: > > Packt do a sale each year where they reduce their e-book prices to $5 > > each. They have three LiveCode books: > > > > https://www.packtpub.com > > > > Note t

Re: LiveCode books

2015-12-23 Thread Richard Gaskin
Colin Holgate wrote: > Packt do a sale each year where they reduce their e-book prices to $5 > each. They have three LiveCode books: > > https://www.packtpub.com > > Note that the one with just my name on it is the original edition, > the one with Joel Gerdeen on it is the later edition. Thanks,

Re: shell() vs terminal re. ssh

2015-12-23 Thread Richard Gaskin
Monte Goulding wrote: >> I also completely disable password login, lock out root, > > I do that too. Scary when you login as root and see thousands of failed attempts... > >> and move SSH to a non-standard port > > Hadn't thought of doing that. At least two or three times a year I do a Google s

Re: shell() vs terminal re. ssh

2015-12-23 Thread Monte Goulding
> I also completely disable password login, lock out root, I do that too. Scary when you login as root and see thousands of failed attempts... > and move SSH to a non-standard port Hadn't thought of doing that. Cheers Monte ___ use-livecode mailing

Re: shell() vs terminal re. ssh

2015-12-23 Thread Richard Gaskin
Monte Goulding wrote: > You probably want to make sure the remote user is pretty restricted > too. Anyone that has control of your web server user will have > control of that account too. Good thought. I try to keep in mind all connection points between servers I manage, and on my own I also c

Re: shell() vs terminal re. ssh

2015-12-23 Thread Monte Goulding
You probably want to make sure the remote user is pretty restricted too. Anyone that has control of your web server user will have control of that account too. Cheers Monte Sent from my iPhone > On 24 Dec 2015, at 8:22 am, Richard Gaskin wrote: > > Yes, that was the problem - CGIs run as a d

Re: shell() vs terminal re. ssh

2015-12-23 Thread [-hh]
Did you try all in one shell call (using semicolons or a string of several lines) starting with sudo? Your cgi could be a 'very restricted sudoer'. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscri

Re: shell() vs terminal re. ssh

2015-12-23 Thread Richard Gaskin
Bob Sneidar wrote: > On Dec 23, 2015, at 13:22 , Richard Gaskin wrote: > >> Yes, that was the problem - CGIs run as a different user. But >> I have root on that server so I logged in as the CGI process, >> generated a key pair, copied the pub key to the other server, >> and now my CGI can handle

Re: [OT] Configure web server to parse php in .html files

2015-12-23 Thread Peter Haworth
Thanks for the xbithack link. I'd come to the conclusion that it's not possible to enable SSI and php parsing via the .htaccess file for one website. I've replaced my SSI commands with simple php include scripts and all seems to be working. But I'll check out the link. Pete lcSQL Software

Re: shell() vs terminal re. ssh

2015-12-23 Thread Bob Sneidar
Ick! It's secure, but so is throwing all my servers and backups into a vat of extremely caustic acid. Bob S On Dec 23, 2015, at 13:22 , Richard Gaskin mailto:ambassa...@fourthworld.com>> wrote: Monte Goulding wrote: > I'm no bash expert but I just wanted to check the user your cgi is > bing

Re: [OT] Configure web server to parse php in .html files

2015-12-23 Thread Bob Sneidar
It's OK! We all have moments of doubt. It's good that you can express it here. ;-) Bob S > On Dec 23, 2015, at 11:59 , Peter Haworth wrote: > > Thanks Mark. Did you mean "It might be insecure" :-) > > Pete > lcSQL Software > Home of lcStackBrowser

Re: [OT] Configure web server to parse php in .html files

2015-12-23 Thread [-hh]
> So now I guess the question is how to get both php and ssi parsed in html > files. https://httpd.apache.org/docs/2.4/mod/mod_include.html#xbithack ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsub

Re: shell() vs terminal re. ssh

2015-12-23 Thread Richard Gaskin
Monte Goulding wrote: > I'm no bash expert but I just wanted to check the user your cgi is > bing run under is the same as the user you are logging into to run > the script from terminal. Thanks, Monte and Mike. Yes, that was the problem - CGIs run as a different user. But I have root on that

Re: Release 8.0 dictionary

2015-12-23 Thread Richmond
On 23/12/15 14:34, David V Glasgow wrote: On 23 Dec 2015, at 12:29 pm, Heather Laine wrote: Nor should anyone respond to this thread with any kind of debate on whether this debate is acceptable. Did you just press command-period on a recursion after only two iterations? LOL. Happy Christma

Re: shell() vs terminal re. ssh

2015-12-23 Thread Monte Goulding
I'm no bash expert but I just wanted to check the user your cgi is bing run under is the same as the user you are logging into to run the script from terminal. Sent from my iPhone > On 24 Dec 2015, at 7:26 am, Richard Gaskin wrote: > > I'm assuming something about the way the shell function w

Re: shell() vs terminal re. ssh

2015-12-23 Thread Mike Bonner
A couple things off the top of my head, the dictionary says it defaults to /bin/sh rather than /bin/bash If you aren't doing so, you might specify /bin/bash with the shellCommand and see if it makes a difference. In addition, the environment in shell() doesn't seem to execute the startup files .p

shell() vs terminal re. ssh

2015-12-23 Thread Richard Gaskin
I have a script (copy.sh) on ServerA that uses rsync to copy files to ServerB, and I want to call this from a LiveCode CGI. In Terminal I can log in and execute ./copy.sh, and because I have ServerA's ssh public key in ServerB's authorized_keys file it all works swimmingly. But when I call:

Re: [OT] Configure web server to parse php in .html files

2015-12-23 Thread Peter Haworth
Thanks Mark. Did you mean "It might be insecure" :-) Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Wed, Dec 23, 2015 at 10:25 AM, Mark Schonewille < m.schonewi...@economy-x-t

Re: [OT] Configure web server to parse php in .html files

2015-12-23 Thread Mark Schonewille
Hi Peter, I have the following at the end of my php.conf file: # PHP5 module LoadModule php5_module "c:/php/php5apache2_2.dll" AddType application/x-httpd-php .php .htx .htm .html PHPIniDir "C:/php" I added .htm and .html for testing. This works. I don't recommend using this approach. I might

Re: [OT] Configure web server to parse php in .html files

2015-12-23 Thread Peter Haworth
Update on this. Just got an email from Dreamhost support to use: AddHandler fcgid-script .html FCGIWrapper "/dh/cgi-system/php55.cgi" .html That does indeed work. However I also need to enable SSI in html files with "AddHandler server-parsed .html" and if that line is in there, the php isn;t pa

[OT] Configure web server to parse php in .html files

2015-12-23 Thread Peter Haworth
I've just finished my first php script that needs to be embedded in a file with a .html extension. The php script is in a file referenced with a php require command in the .html file. The script does not run when the web page is loaded unless I change the file extension to .php. I believe there

LiveCode books

2015-12-23 Thread Colin Holgate
Packt do a sale each year where they reduce their e-book prices to $5 each. They have three LiveCode books: https://www.packtpub.com Note that the one with just my name on it is the original edition, the one with Joel Gerdeen on it is the later edition. _

Re: Livecode Server and script only stacks

2015-12-23 Thread Richard Gaskin
David Bovill wrote: > Does anyone know if script only stacks work with Livecode Server and > if so which version of the server I need to be running? Script-only stacks work beautifully on servers with either LiveCode Server and with Linux standalones - either can be used under CGI, and both wo

Re: Take a look back through 2015

2015-12-23 Thread Richard Gaskin
Ralph DiMola wrote: > +1 > > The mother ship has been all over this list and we all appreciate it! At one time an increased presence here by the core team was perhaps the most requested feature, now well executed. "RESOLVED-FIXED", in a major good way. :) > The best to the RR Team and the u

Re: Release 8.0 dictionary

2015-12-23 Thread Heather Laine
Programmers. Always some clever response. What really worries me is that I Know What He is Talking About. I even know that an alternative is to hit the "suppress messages" icon in the toolbar. Can't work with programmers for over 15 years without some of it rubbing off. Warm Regards, Heather

Re: Release 8.0 dictionary

2015-12-23 Thread David V Glasgow
> On 23 Dec 2015, at 12:29 pm, Heather Laine wrote: > > Nor should anyone respond to this thread with any kind of debate on whether > this debate is acceptable. Did you just press command-period on a recursion after only two iterations? Best Wishes, David Glasgow

Re: Release 8.0 dictionary

2015-12-23 Thread Heather Laine
Hmm. Yes, but it is still not acceptable. It is a very longstanding rule of this list that there be NO theological debate on it. We are a diverse list of people here and the purpose of this list is to support our endeavours with LiveCode. That's it. Occasional off topic discussion happens, we

Re: Livecode Server and script only stacks

2015-12-23 Thread Peter W A Wood
David > On 23 Dec 2015, at 17:49, David Bovill wrote: > > I'm looking to produce a better coding experience for revIgniter / Livecode > server, and I'd like to be able to use script only stacks on the server, so > I can test code locally as stacks, and easily keep it versioned in Github > and li

Re: Release 8.0 dictionary

2015-12-23 Thread Richmond
On 22/12/15 23:52, Monte Goulding wrote: This is hardly a forum for theological debate Richmond. I did cover it with all sorts of warnings. R. Sent from my iPhone On 23 Dec 2015, at 8:01 am, Richmond wrote: Off Topic Homily Follows _

Re: Release 8.0 dictionary

2015-12-23 Thread Richmond
On 22/12/15 23:29, panagiotis merakos wrote: Hi Richmond, I created a blank stack with a bog-normal button and tried to see the scriptEditor via the menuBar, and got a jolly wheel that goes round and round and round, you are feeling sleepy, you think you are a purple banana . . . Same again vi

Livecode Server and script only stacks

2015-12-23 Thread David Bovill
I'm looking to produce a better coding experience for revIgniter / Livecode server, and I'd like to be able to use script only stacks on the server, so I can test code locally as stacks, and easily keep it versioned in Github and live on the site. Does anyone know if script only stacks work with L