Page 1 of 1

LiveCodeServer User Guide in pdf? =^..^=

Posted: Fri Jan 17, 2014 4:59 pm
by Mariasole
Hello to all!
Since I managed to install the server :D (http://forums.runrev.com/viewtopic.php? ... =15#p94716)

I should be studying for fight my LiveCode illiteracy even remotely. :wink:
But I can not find the "LiveCode SERVER User Guide.pdf".... :idea:
Where can I find it?

Un bacio a tutti!!!!!! :oops:


=^..^=
Mariasole

Re: LiveCodeServer User Guide in pdf? =^..^=

Posted: Fri Jan 17, 2014 8:23 pm
by FourthWorld
I've submitted a usability enhancement request to the team to consider including the PDF user guide for Server in the download package.

In the meantime, that info can be found at livecode.com in the Developers section, using the link in the left-hand list for "LiveCode Server Guide" - here's the direct URL:
http://livecode.com/developers/guides/server/

Keep us posted if you have any difficulty setting it up and having fun with it. The docs team at RunRev is currently revising the user guides, so this is a good time to provide feedback where needed.

Re: LiveCodeServer User Guide in pdf? =^..^=

Posted: Thu Jan 23, 2014 12:48 pm
by Mariasole
Richard Thanks! :D
I am beginning to use LiveCodeServer and I'm enthusiast! Farewell PHP, ASP, PYTON, now even I can program the active pages! The problem though is that it seems to me that for RunRev, LiveCodeServer is a bit 'a Cinderella! :cry:
In short, LiveCodeServer should have the same dignity "as product" like LiveCode(non server)!
Even for installation via .htaccess would be better to insert my "discovery" (http://forums.runrev.com/viewtopic.php? ... =15#p94716) since on cheap commercial servers LiveCodeServer will not install without the trick! 8)
Indispensable put a LiveCodeServer UserGuide inside the zip of LCS! I thank you for pointing this out to the staff!
Another important thing would be to make the sections of evangelism :idea: , making such classic examples of PHP in LCS. Like... LIVECODESERVER :D vs PHP :x , etc!
Thanks for your help Richard!

=^..^= Mariasole
LiveCode Server
Server et Sempliciter :idea:

Re: LiveCodeServer User Guide in pdf? =^..^=

Posted: Thu Jan 23, 2014 4:22 pm
by FourthWorld
Mariasole wrote:Richard Thanks! :D
I am beginning to use LiveCodeServer and I'm enthusiast! Farewell PHP, ASP, PYTON, now even I can program the active pages!
WARNING: LiveCode Server may be addictive. :)
The problem though is that it seems to me that for RunRev, LiveCodeServer is a bit 'a Cinderella! :cry:
In short, LiveCodeServer should have the same dignity "as product" like LiveCode(non server)!
Even for installation via .htaccess would be better to insert my "discovery" (http://forums.runrev.com/viewtopic.php? ... =15#p94716) since on cheap commercial servers LiveCodeServer will not install without the trick! 8)
The challenge there is that server configurations vary. For example, that line you commented works well on the servers I've deployed to, while on others it makes no difference. Yours is the first I've seen where it prevents the script from running, but given the many different ways hosting companies set up their servers it's not entirely surprising.

In short, I'm not sure it's possible to provide a single summary doc that'll cover all possible configs. As much as they'd like to shield folks from having to learn too much about mod_rewrite and Apache config files, that knowledge is sometimes needed - and even where it's not needed it can be very valuable for extending your work with LC server. Apache's a great system, but like any powerful software it has a bit of a learning curve.

One question about your .htaccess file:

The AddHandler statement there tells Apache to use LiveCode Server for all .htm files. Normally those are static files we want Apache to deliver as-is, with only other specific types (.php for PHP or .lc for LiveCode) to be handed off to their respective engines for additional processing. As written, all HTML page requests at your server will load LC Server to process them.

Is that what you meant to do?

I do that myself with a CMS I'm building because in that system I have no static pages and want LC to process all requests, and using .htm keeps my URLs in a form that looks to the user like static pages. In my case that's what I'm after, since the system is performance-optimized so that the user experience should be efficient enough that they'll never know the difference.

But it's an unusual thing to do, so I just wanted to double-check to make sure that's what you were after.
Indispensable put a LiveCodeServer UserGuide inside the zip of LCS! I thank you for pointing this out to the staff!
It used to be included, and was dropped when they changed their build scripts over the last year. I suspect it'll be easy for them to put that back in, hopefully very soon.
Another important thing would be to make the sections of evangelism :idea: , making such classic examples of PHP in LCS. Like... LIVECODESERVER :D vs PHP :x , etc!
The LC Server tutorials at LiveCode.com are a great resource:
http://lessons.runrev.com/m/4070

Many of the tutorials there were contributed by members of the community - perhaps you'll consider adding one if you have time down the road?

Re: LiveCodeServer User Guide in pdf? =^..^=

Posted: Fri Feb 07, 2014 11:49 pm
by Mariasole
Dear Richard, It 's true! LiveCode Server gives definitely addictive! :shock:
Thanks for your reply and sorry for the delay with which I write to you! I had lost sight of the forum for a few days and my post was shipwrecked. :?
I have corrected my post (http://forums.runrev.com/viewtopic.php? ... =15#p94716) adding extensions! :idea:

Code: Select all

#Options ExecCGI
# I have put 'all' extension, for example!!!
AddHandler livecode-script .lc .irev .html .htm
Action livecode-script /cgi-bin/livecode-community-server

In this way those who look will not have the doubt that it is only the html extension works with "my" setup! 8)
As written, all HTML page requests at your server will load LC Server to process them.
Indeed, my experiments concern the fact that I use the html extension with "LiveCode Server" in the code.
I would like to do in fact static pages with few dynamic elements that, in this case, would be managed by LiveCode Server.
Many of the tutorials there were contributed by members of the community - perhaps you'll consider adding one if you have time down the road?
You make me blush! :oops: I'd like to make a LiveCodeServer script that diverted to a page (or changed the css of a page) depending on the used devices (iPhone, Tablet, PC, etc ...). But I do not even know where to start... but I will try anyway! :!:

Grazie Richard!

=^..^= Mariasole
LiveCode Server Addicted! :shock:

Re: LiveCodeServer User Guide in pdf? =^..^=

Posted: Sat Feb 08, 2014 12:28 am
by FourthWorld
Mariasole wrote:I'd like to make a LiveCodeServer script that diverted to a page (or changed the css of a page) depending on the used devices (iPhone, Tablet, PC, etc ...). But I do not even know where to start... but I will try anyway! :!:
There are generally two different ways to accommodate various device types: user-agent template switching, and responsive design.

The former relies on the user-agent string every browser sends when it requests a page from a server. You can obtain this in LiveCode from the $HTTP_USER_AGENT global variable (for other globals with useful info see http://www.cgi101.com/book/ch3/text.html ). When you successfully identify a mobile device you can deliver the content in an HTML template designed for smaller screens, and if the user-agent identifies a full-screened device you use a template for those larger screens.

The trick to that is making sure you catch all device types appropriately, which is especially difficult with tablets since they often identify themselves as mobile devices and many (but not all) have full-size screens.

If you search Google for info on that you'll find many tips, and some controversy about so-called "best" practices:
https://www.google.com/search?q=user+ag ... evice+type

Responsive design attempts to obviate the need to learn about the device type altogether by using JavaScript in the page to rearrange elements based on the current screen metrics. It's cool when it works well, but it's a lot of work and requires a fair amount of JavaScript and CSS expertise:
https://www.google.com/search?q=responsive+design

For many simple sites user-agent detection can be a good option, as long as you're willing to take some time to think carefully about the info you're using to determine the screen size by the device type.

I wish I had a good handler I could share with you now, but this is a problem I won't be dealing with for another couple weeks yet, so at the moment you're on your own. Maybe this will be the LiveCode Journal article you'll contribute? :)

Re: LiveCodeServer User Guide in pdf? =^..^=

Posted: Mon Feb 17, 2014 11:29 pm
by Mariasole
Mariasole wrote:I wish I had a good handler I could share with you now, but this is a problem I won't be dealing with for another couple weeks yet, so at the moment you're on your own. Maybe this will be the LiveCode Journal article you'll contribute? :)
:oops:

Dear Richard!
You make me :oops: blush :oops: ! It takes me months and months to get a sufficient result! More than two weeks! But I continue to learn so much, and thanks also to you :P , I continue to uncover the mechanisms and wheels that I can play 8) ! For example, I knew nothing of these "global variables" provided by the server :shock: !

So, :idea: I think a simple way (!) might be a little javascript which "pushes" (maybe the writing on the page itself) the width of the screen to LCS. LCS answers (also according to the global variable $HTTP_USER_AGENT) with a html / css suitable. But when you're laughing :wink: , you understand that I still have much to learn! :)

Un bacio grande caro Richard!

=^..^= Mariasole
:arrow: A livecodejournal.com fan
LiveCode Server Addicted! :shock: