Re: Progressive Web App (PWA)

2020-02-19 Thread Simon Smith via use-livecode
Progressive web apps are just websites, with a manifest file (JSON based
text file that contains additional settings, like links to the "apps"
homepage icon). Any website can be made into a PWA regardless of the
technology used to create it.

PWA can make use of Javascript-based service workers that can help give
that native feel, e.g. for caching, data storage and offline support. Sadly
though on iOS, PWA's are yet to support push notifications.

You access the URL of the PWA and get prompted to add the app to the home
screen. From there, when the app is launched, it is displayed fullscreen,
how the app now functions depends purely on how you have coded the app.

There tends to be a lot of focus on creating single-page based apps for
mobile (e.g using vue, angular, react etc) to get that "native" app
experience - but personally I prefer multipage apps and only using
javascript when needed. Depending on what you are doing, performance often
exceeds that of the "native" app approach.


On Wed, Feb 19, 2020 at 3:45 PM Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:

> The answer is EITHER:
>
> Use LiveCode SERVER to generate the HTML5 and CCS for the app and layer
> your own Javascript into it [Much more work, but you can deliver exactly
> the front end you want - you have to keep track fo what HTML, CSS, and
> Javascript you use is standards-compliant)
> OR
> Use LievCode HTML to deploy your stacks/App as an HTML/CSS/Javascript
> app.(lLess work, but you are limited to what the HTML builder for
> LiveCode can produce [mostly, I think there is someone on this list who
> has posted many example of extending the generated web app with
> supplemental javascript])
>
> However, in my opinion "intended to work on any platform that uses a
> standards-compliant browser." (from the definition of WPA) is marketing
> bullsh*t. I find way too many things that are *supposed* to work across
> all browsers that do not.
>
>
>
> On 2/18/2020 8:42 PM, Peter Bogdanoff via use-livecode wrote:
> > Does anyone have a reply to Ingar’s original question?
> >
> >
> >> On Feb 18, 2020, at 6:16 PM, Bob Sneidar via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >>
> >> Aren't all discussions political? ;-)
> >>
> >> Bob S
> >>
> >>
> >>> On Feb 16, 2020, at 13:33 , doc hawk via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >>>
> >>> On Feb 16, 2020, at 5:15 AM, Paul Dupuis via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>  "A progressive web application is a type of application software
> delivered through the web, built using common web technologies including
> HTML, CSS and JavaScript. It is intended to work on any platform that uses
> a standards-compliant browser.”
> >>>
> >>> And foolish me thought we were going to have a political discussion .
> . .
> >>>
> >>> :)
> >> ___
> >> 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: WordPress REST API's

2018-06-20 Thread Simon Smith via use-livecode
Hi Stephen

Depending on what you are wanting to do, the WordPress API also supports
Application Passwords (https://wordpress.org/plugins/application-passwords/)
Basic Authentication (https://github.com/WP-API/Basic-Auth) and JSON web
tokens (https://wordpress.org/plugins/jwt-authentication-for-wp-rest-api/)
which maybe a bit easier to work with - depending of course on your needs.

Simon


Carpe diem

*Simon Smith*
m. +27 83 306 7862

On Wed, Jun 20, 2018 at 10:44 PM, Stephen MacLean via use-livecode <
use-livecode@lists.runrev.com> wrote:

> HI Todd,
>
> Thanks, I have it and am trying to use it.
>
> Looks like I need an oAuth plug-in for wordpress that allows user
> credentials as I am running a self hosted site.
>
> The one I’ve found so far that finally is giving me results is WP OAuth
> Server… but to get the user credentials, you need the paid version.
>
> Still wondering if this was in the LC Connect stuff that I contributed
> awhile back;)
>
> Best,
>
> Steve
>
> > On Jun 20, 2018, at 4:32 PM, Tom Glod via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > Hey. You can find it on github. DP use it for their work. So it
> worksI
> > was planning on using it on a project, but it fell through so I haven't
> > needed it yet.
> >
> > https://github.com/digitalpomegranate/livecode-wp-restapi
> >
> > This is a well written library.
> >
> > On Wed, Jun 20, 2018 at 3:56 PM, Stephen MacLean via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> >
> >> Hi All,
> >>
> >> Trying to get an update on the WordPress REST API’s… Was this coming in
> >> with LiveCode Connect? or something else?
> >>
> >> Also, does anyone have any experience successfully using Digital
> >> Pomegranates’s WPRestAPI? I am unsure of the authentication used and
> >> nothing seems to work.
> >>
> >> Any help is appreciated!
> >>
> >> Thanks,
> >>
> >> Steve MacLean
> >>
> >>
> >>
> >> ___
> >> 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: How To Become Android Developer

2018-05-30 Thread Simon Smith via use-livecode
Hi

I have it working with:

The Android SDK via https://dl.google.com/android/repository/tools_r25.2.3-
windows.zip
and using jdk-8u162-windows-x64.exe which can be downloaded from
http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html

Simon




Carpe diem

*Simon Smith*
m. +27 83 306 7862

On Tue, May 29, 2018 at 11:42 PM, J. Landman Gay via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On 5/29/18 3:36 PM, Ralph DiMola via use-livecode wrote:
>
>> BR,
>>
>> This works for me.
>>
>> For JDK:
>> JDK 1.8.0_121
>>
>
> I've got 1.8.0_152 which also works. I'd guess any 1.8 version would
> probably be okay. BR: I told you "8" but I should have said "1.8".
>
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.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 and Google Analytics?

2018-05-22 Thread Simon Smith via use-livecode
Hi

You can take a look at Google Analytics Measurement Protocol (
https://developers.google.com/analytics/devguides/collection/protocol/v1/).

You should be able to track events via POST requests to google-analytics.com

Simon


Carpe diem

*Simon Smith*
m. +27 83 306 7862

On Tue, May 22, 2018 at 8:19 AM, jbv via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi
> Have you tried to include in your app a browser object that would
> load web pages with the necessary GA js script ?
> I know it's a brute-force strategy and that it would probably slow
> down the app a bit, but I don't have any better solution so far...
>
> Best,
> jbv
>
> On Tue, May 22, 2018 4:03 am, Jose Enrique Montero via use-livecode wrote:
> > Hi Dan Friedman,
> >
> >
> > Do you found a solution ?
> >
> >
> > best regards.
> >
> > Jose
> >
> >
> > 2018-02-15 14:37 GMT-04:00 Dan Friedman via use-livecode <
> > use-livecode@lists.runrev.com>:
> >
> >
> >> Greetings!
> >>
> >>
> >> Is there a method to implement Google Analytics in a LiveCode Mobile
> >> app? Client wants to see the analytic data.
> >>
> >>
> >> -Dan
> >>
> >>
> >> ___
> >> 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: LC Server style survey: co-mingle code w/HTML?

2017-12-08 Thread Simon Smith via use-livecode
Despite my earlier comments - it is still something that I would be
interested in.

While my preferences has always been to mix html / code together - if there
is a better way to do things, then I would definitely be interested in
finding out / learning more.






Carpe diem

*Simon Smith*
m. +27 83 306 7862

On Thu, Dec 7, 2017 at 6:25 PM, Richard Gaskin via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Bob Hall wrote:
>
> > I’m very interested in your tools and suspect there is great value in
> > what you’ve created.
>
> I appreciate the interest, but it doesn't seem using these tools would be
> possible for most folks.
>
> Being able to run client and server code in the IDE would require using
> methods that are compatible with LC Script on the desktop.  Since we have
> no way of parsing/executing LC Server code in the desktop, and too many
> people rely on the code-embedded-in-HTML way, my tools are of no use to
> them.
>
> For the first dozen years of this engine, CGIs used the same engine as
> everything else.  Since LC Server premiered, most devs now have a workflow
> that is incompatible with the desktop engine.
>
> I've been using standalones for CGIs for many years, and while I know a
> few others who do this, there aren't many.
>
> I recently came across a project which uses LC Server but only to launch
> script libraries, so effectively it's 99% compatible with LC Script, using
> only a couple lines of LC Server to launch the libraries.  This got me
> wondering how many others do things like that, as opposed to relying on
> features specific to LC Server throughout their app which have no means of
> executing in the IDE.
>
> At this point, it seems most people are using LC Server in ways that are
> not compatible with the desktop engine.  I have nothing that can help with
> that.
>
> --
>  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: LC Server style survey: co-mingle code w/HTML?

2017-12-06 Thread Simon Smith via use-livecode
It's impracticable for most hosting companies to keep a clients WordPress
installation up to date. All the plugins and themes need to be kept up to
date at the same time and sometimes need to be manually uploaded. There is
then a problem that if a host updates something and something breaks - who
would pick this up and who would be responsible for fixing the problem.
Then there are also updates that require manual intervention, like changes
to the database etc, and sometimes you may not want something updated
either.

There are a couple of hosting companies that offer this as a managed
service - but it comes at quiet a cost and you will face a limit as to what
plugins etc you can use.

While WordPress is considered secure and actively audited, most themes and
plugins are not, and problems do creep in. A website (not just WordPress)
that gets hacked can do a fair amount of damage, it affect other sites on
the server and when things like IP addresses get black listed, it's a bit
of nightmare for the host. Most hosts are pretty understanding (despite
what their terms and conditions may say) and if they discover a problem
they will notify you, or in serve situations take the site offline and ask
you to fix the problem, before putting the site live again.

While WordPress is a fantastic platform, it does require regular upkeep -
it's not something you can setup and just leave. There are dashboards you
can use (e.g. JetPack, WP Remote etc) that let you manage single or
multiple sites from a single location offering convenient way for keeping
an eye on what needs to be updated.

Simon






Carpe diem

*Simon Smith*
m. +27 83 306 7862

On Wed, Dec 6, 2017 at 7:34 PM, Rick Harrison via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi Matthias,
>
> When support tells one that he/she is now responsible
> for keeping Wordpress up to date or face the loss of
> one’s account, they should at least point out what you
> have shared with us.
>
> > And you if install Wordpress through Softacoulus (which is included in
> On-Rev), you can enable auto upgrade in Softacoulus in  the config area for
> your WP installation.
> >
> > So regardless how you have installed Wordpress, you can enable auto
> upgrade.
>
> No one who has not yet installed Wordpress would know
> about the automatic upgrade capability.  It is also highly
> unlikely that any user would be willing to log into his/her
> account every hour of every day just to make sure that
> Wordpress is up to date so they don’t lose their account.
>
> What version of LC is currently installed on On-Rev?
> It was pretty old the last time I checked.  Perhaps an
> option to easily upgrade to the newest version of LC
> on On-Rev should be offered?
>
> A lot of people paid a bunch of money for On-Rev,
> and then when support at Run-Rev discovered it
> was more work than they bargained for, they
> outsourced it to other companies.  The first time
> it was outsourced, the result wasn’t good.  Things
> are better than they were, but there is still room
> for improvement.  Whenever a company accepts
> people’s money, that company has an obligation to
> provide better than average service if they want
> to stay in business.
>
> If it were up to me to run On-Rev, I would make
> sure that it was always up to date, or offered
> easy ways to keep everything up to date.  You’d
> never hear me threaten anyone to take away their
> account if they didn’t keep some piece of software
> up to date.  If that software poses a security risk,
> as a good steward, I would take care of that issue
> for my clients so they wouldn’t be at risk.
>
> Just my 2 cents for the day.
>
> Thank you for your helpful information about
> Wordpress etc.
>
> Cheers,
>
> Rick
>
>
>
>
>
> > On Dec 6, 2017, at 6:33 AM, Matthias Rebbe via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> >
> >> Am 06.12.2017 um 07:14 schrieb Rick Harrison via use-livecode <
> use-livecode@lists.runrev.com <mailto:use-livecode@lists.runrev.com>>:
> >> Then On-Rev wrote us that note saying that we were
> >> the ones that would be held responsible for
> >> ensuring that Wordpress was always up to
> >> date on our accounts or we could lose our
> >> accounts.  (I thought maintaining up to date
> >> versions was supposed to be the job of
> >> On-Rev as good care takers.)
> >
> > If you install Wordpress manually from a Zip file then you are
> responsible for keeping that version up to date. Either by manually updates
> or by automatic updates.
> > You can enable that in wp-config.php
> >
> > And you if install Wordpress through Softacoulus (which is included in
> On

Re: LC Server style survey: co-mingle code w/HTML?

2017-12-05 Thread Simon Smith via use-livecode
PHP is definitely the most popular language for letting you code this way,
but then it is pretty much only for the web unlike most other languages.

Other languages can work this way too - e.g. Python has PSP, Java has JSP
as does Ruby, Lua etc. but not as popular as PHP.






Carpe diem

*Simon Smith*
m. +27 83 306 7862

On Wed, Dec 6, 2017 at 3:23 AM, Richard Gaskin via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Simon Smith wrote:
>
> > Personally I do prefer to mix HTML / code together.
>
> If you mix them together with the implied extended merge of LC Server
> rather than an explicit merge with LC Script, I'm afraid nothing in my
> toolkit can help.
>
>
> > I don't think it right to say it is a PHP way to do things though :)
>
> What other languages work that way?
>
> In LC Script the primary execution object is a script, which can
> optionally pass data to be merged with an explicit call to the merge
> function.  This pattern seems more common, e.g. Ruby, Lua, Python, and of
> course SuperCard's Flamethrower project which introduced the merge function
> to the xTalk world.
>
> With PHP (and LC Server), the primary execution object is assumed to be a
> web page, with code optionally embedded in it and the merging happens as an
> implicit part of the processing.  I can't think of any other languages that
> work that way.  Am I missing some?
>
> I don't have a judgment about it either way.  A lot of people like PHP,
> and given the range of things people make with it (nearly every major CMS
> and a lot of other server frameworks where the browser is the primary
> target) it seems to do well.
>
> The only reason I'm distinguishing the style in this thread is that LC
> Server's page-centric code is incompatible with LC Script on the desktop,
> and my tools run on the desktop.
>
>
> --
>  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: LC Server style survey: co-mingle code w/HTML?

2017-12-05 Thread Simon Smith via use-livecode
Personally I do prefer to mix HTML / code together.

I don't think it right to say it is a PHP way to do things though :) -  PHP
does not encourage one to go this route for what I think is usually called
spaghetti code.

While some platforms, like WordPress have done quiet a bit to encourage
this style of coding with it's plugins and theme development  - there are
many PHP developers who are very public in their dislike for such
"barbaric" coding practices and also numerous frameworks that don't
support/encourage mixing html/php either.

Personally I think it is one of the reasons that lead to the popularity of
WordPress as it makes certain tasks very easy to, even if you don't have
much coding experience.

Yes it does depend on what I am doing, but for the most part, I don't have
any issues mixing code and HTML together.




Carpe diem

*Simon Smith*
m. +27 83 306 7862

On Tue, Dec 5, 2017 at 8:18 PM, Richard Gaskin via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I have some tools I developed for server apps, which allow me to develop
> and test both client and server within the same local LC IDE instance. As
> you can imagine, this has improved development efficiency by orders of
> magnitude.
>
> It's much a much more xTalk-like way of working, and once you use it
> having to be tied to a server for every little test feels like building a
> ship in a bottle with tweezers while wearing a blindfold.
>
> When I started making these tools I was using standalones exclusively for
> server work, partly because it reflects my habits gained from using LC as a
> CGI for many years before LC Server existed, and partly because I have no
> need to co-mingle code in HTML like PHP does, except a few cases where the
> merge function works quite nicely.
>
> Thinking about this more recently, it seems these tools need not be
> limited to server deployments using standalones, and may be modified to
> provide the same server emulation for deployments that will use LC Server.
>
> However, because the desktop version of LC has no means of executing LC
> Server scripts (due to the HTML wrapped around any code), the ability to
> enjoy such a fluid workflow is limited to those server apps where the .lc
> scripts contain only directives to load standard LC Script libraries.
>
> That limitation fits my own work, including current work for one client.
> But does it fit yours?
>
> How many of you using LC Server rely on its PHP-like model that encourages
> mixing HTML with LC code?
>
> Or maybe the better question might be:
>
> How many of you have server systems that already separate HTML from server
> code like most non-PHP solutions do, or could affordably transition to that
> model if it could simplify your development workflow significantly?
>
> Side question for the dev team if they see this:
>
> Would it be reasonable/affordable to add some means of enhancing desktop
> LC so that it can at least parse and attempt to execute LC scripts embedded
> in HTML?  I can emulate environment variables and the like, but the
> incompatibility between LC and .lc has been a real development bottleneck.
>
> --
>  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 Content Management System

2017-12-01 Thread Simon Smith via use-livecode
Hi

I have played with this a bit, and got pretty far for a proof of concept
for an ecommerce project I was working on. I stopped working on it when I
left the company I was working for.

I did not use rev igniter since I wanted it to function as it's own
framework and I think it just makes the coding simpler in the end. I was
not coding it in the IDE but rather my text editor (sublime), it just works
so nicely for web projects =) and I have not really had any problems with
debugging in the browser.

I got pretty far with it. Creating pages, posts products etc, Had a WYSIWYG
editor (TinyMCE) along with a simple image uploader / manager. Themes
worked and kinda had I have an idea on how to handle some type of plugin
architecture. It was working pretty well for the project I was developing
it for. I have since then started cleaning it up  and making it more of a
generic CMS but time is my biggest problem  :(. The idea was / is to have
an alternative CMS that I could use for when WordPress was not a good fit
for a website.

I have also done a much simpler "CMS" in LC for my blog. It's just 1 lc
file and an sqlite database and does pretty much everything I need. Still
needs a bit of cleaning up, but I am quiet happy with the way it turned out
and how easy it was code.

To answer your question:

1) Apart from time, l did find that there were a few PHP functions that
would have be very useful  to have in LiveCode but I could work around
pretty much all the problems I had.
2) Everything has its place. WordPress is a fantastic CMS and capable of
much more than most people realise but does have it's limits.
3) Unfortunately I don't have much rev igniter experience, but I have never
been fond of using frameworks in web projects.

If everything was working smoothly and quickly, I don't think it is
necessary to remove rev igniter and I would far rather work with a text
editor and debug in the browser than in the IDE.

While WordPress is a very popular CMS (can't deny that) it can become very
user unfriendly very quickly, and not to mention slow. Clients are usually
happy to accept alternative solutions if they will make their lives easier
(even if they are simpler and lack all the functionality of a more popular
CMS. It is amazing how much faster a CMS can be once you strip out all the
unneeded functionality.


Simon




Carpe diem

*Simon Smith*
m. +27 83 306 7862

On Fri, Dec 1, 2017 at 3:56 AM, Alex Tweedly via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi folks,
>
> I'm looking for (initial) interest, previous experience, comments, etc.
>
> Every few [ = 4 to 8] months for the last few [= 2 to 3] years, I've been
> either building a new website for someone, or making significant
> changes/enhancements to an existing one. Almost every time, unless the
> changes are very small, I've decided that I really *should* convert it to
> use a 'proper' CMS - e.g. Wordpress.
>
> And I've tried - but every time I've foundered on not being able to get
> the site to be what I want, or realizing (believing?) that to do what I
> want requires real development skills within WP - and therefore too much of
> a learning curve and/or too much PHP.  Or, I've decided that to make it a
> bearable experience I need to use multiple add-ons (plugins, themes, etc.)
> and then found that the plugins I spent hours investigating and choosing
> were incompatible. Or were just not well enough documented.
>
> [ I won't tell you how often I've found a (video) tutorial, wasted an
> entire hour or more watching it - then realized that it was for an
> out-of-date version of the plugin, or an old version of Wordpress, and that
> all the helpful screenshots showed me how to modify settings / actions that
> didn't exist, or had no obvious equivalent, in the current versions. ]
>
> Twice, having run into brick walls with Wordpress, I've tried other CMSs
> (Concrete5 and ??Dolphin??) with similar results - poor / out-of-date docs
> have left me stranded - 80% of the way towards doing what I wanted and
> unable to get any further.
>
> So in every case until now, I've given up, made tweaks / extensions to my
> own "home-grown" web site tool(s), and - so far - completed my enhancements
> in less time than I had wasted trying the "real" CMS.
>
> I put that down to:
>  - the power of Livecode
>  - the power of revIgniter  (thank you ! again, Ralf)
>  - my impatience in trying to learn new tools
>
> But now I have a new, bigger opportunity / challenge - I've been asked to
> build a web site (actually two unrelated web sites) which are bigger and
> more complex, and for which I absolutely do not want to become the de facto
> on-going (content) maintainer.
>
> So, I've decided to build LCMS - a Livecode Content Management System.
>
> It will be (very loosely) based on what I th

Re: sms,MMS, and Push Notificstions

2017-08-14 Thread Simon Smith via use-livecode
I would look at push notifications. onesignal.com looks quiet good, just
not had a chance to play with it yet.

I have found that SMS messages are too unreliable when it comes to
emergency notifications, sometimes they come through, sometimes they don't
and sometimes they come through an hour or so later.

Simon


Carpe diem

*Simon Smith*
m. +27 83 306 7862

On Mon, Aug 14, 2017 at 9:19 PM, ELS prothero via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I’m curious. Has anybody done much with push notifications on mobile?
> There is a lesson on the livecode web site which is quite detailed, but
> leaves out the server side of the equation. I have been thinking about an
> emergency alert app and am exploring how difficult it would be to implement
> various communication technologies. Texts seem pretty straighforward, but I
> was thinking that push notifications might get more attention.
>
> The goal is to get the information to the recipient’s brain. It can get to
> the device, but unless the last (weak link) is traversed, the alert is
> ineffective. The target time for this is 15 minutes.
>
> I’ve Googled the heck out of these topics and there are really nice
> expensive services that can do the job, but we don’t want to pay the high
> fees. Others are marketing oriented, not optimized for emergency services.
> A custom app could be ideal, especially with increasing wildfire activity
> worldwide.
>
> Ideas and info?
> Best,
> Bill
>
> William Prothero, PhD
> Professor Emeritus
> University of California, Santa Barbara
> http://earthlearningsolutions.org
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
___
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: [OT]h.264 alternatives

2017-07-19 Thread Simon Smith via use-livecode
I would stay with h.264 if possible - its popular and supported by most
platforms. Having to trouble shoot video issues on an ongoing basis is not
really fun. But yes - there is a licencing requirement if its being used
commercially - no idea how actively it is policed.

Are the video's going to be shared commercially? How will they be accessed
etc etc etc. Depending on the video's, length and number of users etc ,
there could be no actual costs incurred -
http://www.mpegla.com/main/programs/AVC/Documents/avcweb.pdf and even if
costs were to be incurred, what would be the support costs and possibly
losses if a less popular codec was used.


Carpe diem

*Simon Smith*
m. +27 83 306 7862

On Wed, Jul 19, 2017 at 11:13 PM, Richard Gaskin via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Stephen Barncard wrote:
>
> > Which means every network and independent film-maker is breaking the
> > law...
> >   because I guarantee that they're not looking at the EULA when
> > sending off their work for broadcast or theater.I see this every
> > day.
> >
> > Kinda like "don't ask don't tell" if you ask me.
> >
> > And unenforceable. They'd have to sue everyone using their product.
>
> Is that any more difficult than identifying a specific printer used to
> print a document?
>
> <http://www.instructables.com/id/Yellow-Dots-of-Mystery-Is-Y
> our-Printer-Spying-on-/>
>
>
> > I just don't worry about this stuff when working on music or video
> > projects.
>
> In this case I'm working with a client in which my contract obliges me to
> ensure there are no copyright or patent liabilities in delivered work.
>
> I can push it off on their legal team, but as a consultant it seems useful
> to be able to suggest alternatives as well.
>
>
> --
>  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: Refreshing question

2017-07-12 Thread Simon Smith via use-livecode
Hi

Couple of ways you could look at doing it.

Depending on the formatting of the page, you could use an iframe and just
get the page that is getting loaded each time to refresh with something
like  - this would just reload the
section of the page and not the entire page.

You could also use a jquery to reload just a portion of the page and
something like:





$(document).ready(function () {
setInterval(function() {
$("#content").load("http://mydomain.com/script.ls;);
}, 5000);
})


If the data that you are wanting to display is in XML, and you are just
wanting to load that XML file every minute, I would look at using Jquery's
AJAX functionality, (http://api.jquery.com/jquery.ajax/) wrapped
inside a setTimeout
function.

Simon


Carpe diem

*Simon Smith*
m. +27 83 306 7862

On Wed, Jul 12, 2017 at 6:42 PM, Jonathan Lynch via use-livecode <
use-livecode@lists.runrev.com> wrote:

> You can access the online data through LC, either synchronously or
> asynchronously, and process it as you need in LC.
>
> Then, you can send that data to the browser widget where you use
> Javascript to display it within the browser, by setting the innerHTML of a
> div or some other method.
>
> In this way, your data will update seamlessly without having any sort of
> obnoxious page reload. A page reload might not be bad for a simple page,
> but can be disruptive for a complex page.
>
> This method also minimizes the amount of data transferred, if that is an
> issue.
>
> Sent from my iPhone
>
> > On Jul 12, 2017, at 12:23 PM, jbv via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> >> On Wed, July 12, 2017 5:34 pm, jonathandly...@gmail.com wrote:
> >> If the data is always the same, then I would update a page and have the
> >> browser read it.
> >>
> >> Are you looking to reload the whole page or just update a few data
> >> points?
> >>
> >
> > I really need to reload the xml data only, as the user will have the
> > possibility to make some choices and changes on the page, and according
> > to those changes, only some parts of the data will be displayed, or
> > will be displayed in a different way...
> >
> > Thanks
> > jbv
> >
> >
> > ___
> > 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: Server Installation

2017-06-27 Thread Simon Smith via use-livecode
What I like about this is that it lowers the technical knowledge for
setting up a server and is a great starting point as you just need to
figure out an SSH client.

I have never really taken to Macs - although I do need to consider getting
one in the near future.

I have never liked Microsoft based hosting when I use to use ASP - it was
always messy and was never as stable as Linux based hosting and cost a fair
amount more.

At one of the companies I worked at, we had an a design agency client that
used Macs for all their designers - but chose to run Windows on them and
only use Windows software - never quiet understood that one.

I think a good shared host should always be considered as a first choice
when it comes to hosting anything - if nothing more than for the time
saving, the reduced stress and value. I have never hosted with HostM, but
the have been recommended to me a few times and I have only heard good
things about them.


On Tue, Jun 27, 2017 at 10:37 PM, Richard Gaskin via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Simon Smith wrote:
>
> > I got Livecode server up and running on the Windows 10 using both
> > XAMPP and WAMP without any trouble. Both WAMP and XAMPP only needed
> > a small change. I have documented everything here.
> > http://activethought.net/installing-livecode-windows/
> >- and work equally well for hosting a LiveCode server locally.
>
> Quite nice - thanks for posting that.
>
>
> > I started setting up an online Ubuntu server  - but it's been a while
> > since I have done it and its many many little steps and a lot of work
> > to document. And I don't think its an ideal solution either -
> > developers need something reliable that they can get up and running
> > quickly and does not require in depth knowledge of Linux to get setup.
>
> LOL - I said the same think after trying to set up a WAMP server a client
> required. I think as with anything touching on platform advocacy, the
> easiest thing is the one you know. :)
>
> In my case I began learning Linux because an increasing number of projects
> had client-server requirements, and nearly every shared host and most VPSes
> I've seen offer Linux, with only a few offering Windows Server at an
> additional cost.
>
> I've even had clients who use Windows exclusively on the desktop
> throughout their org (even the art dept. where Mac might be a better fit),
> but when it came to their public-facing systems they use Linux
> exclusively,  much as Apple, Amazon, and Google rely on it for their clouds.
>
> With OS X being a certified UNIX and Linux being very UNIX-based, I found
> I was able to leverage a lot of Mac automation skills when I started moving
> those bash scripts to my Linux hosts.
>
> In Win10 Anniversary Edition and later, Ubuntu is now available as a
> subsystem there too, so one can build their bash skills universally now.
>
> As for the steps involved, Mike Bonner's outline was very helpful:
> <http://lists.runrev.com/pipermail/use-livecode/2017-June/238297.html>
>
> And if you use Docker it gets even easier, thanks to Charles Warwick's LC
> container, allowing installation in one step, the Docker way:
> <http://lists.runrev.com/pipermail/use-livecode/2017-June/238318.html>
>
>
>
> > So after some research I can across ServerPilot.io - a cloud based
> > control panel for cloud servers (like Digital Ocean and Vultr). You
> > setup a clean server - link it to their control panel - and it takes
> > care of everything - in a minute or two you get a nicely setup server
> > - with control panel, mysql, apache and PHP.. Their free option gives
> > you the basics - everything that you need to get a server up and
> > running. There is the option of upgrading the control panel to get
> > extra features. Unfortunately the free account does not give you the
> > ability to setup SSL, You need to pay $10 a month for that - but you
> > can get around that using Cloud Flare.  All that you have to do is
> > setup LiveCode once everything is done - and you what is
> > a really nice little potent little server.
> >
> > If interested - I have gone through it in more detail here, I rushed
> > so hope I have not left anything out -
> > http://activethought.net/perfect-livecode-cloud-server/.
>
> Very nice - thanks.
>
> This reminds me of an interesting service Scott McDonald put together a
> while back, The LiveCode Lab, with multiple versions of LC Server set up
> and ready to use:
> <http://thelivecodelab.com/>
>
> The functional part is currently offline, but perhaps if some here were in
> a position to lend a hand he might be motivated to bring it back online.
>
>
> And of course if shared ho

Re: Server Installation

2017-06-27 Thread Simon Smith via use-livecode
It's taken me longer than I had hoped to do this.

I got Livecode server up and running on the Windows 10 using both XAMPP and
WAMP without any trouble. Both WAMP and XAMPP only needed a small change. I
have documented everything here. http://activethought.
net/installing-livecode-windows/  - and work equally well for hosting a
LiveCode server locally.

I started setting up an online Ubuntu server  - but it's been a while since
I have done it and its many many little steps and a lot of work to
document. And I don't think its an ideal solution either - developers need
something reliable that they can get up and running quickly and does not
require in depth knowledge of Linux to get setup.

So after some research I can across ServerPilot.io - a cloud based control
panel for cloud servers (like Digital Ocean and Vultr). You setup a clean
server - link it to their control panel - and it takes care of everything -
in a minute or two you get a nicely setup server - with control panel,
mysql, apache and PHP.. Their free option gives you the basics - everything
that you need to get a server up and running. There is the option of
upgrading the control panel to get extra features. Unfortunately the free
account does not give you the ability to setup SSL, You need to pay $10 a
month for that - but you can get around that using Cloud Flare.  All that
you have to do is setup LiveCode once everything is done - and you what is
a really nice little potent little server.

If interested - I have gone through it in more detail here, I rushed so
hope I have not left anything out -
http://activethought.net/perfect-livecode-cloud-server/.

While I have ended up not documenting how to setup an entire server from
scratch - for most I do think this is a much more convenient and better
solution.

Simon


On Mon, Jun 19, 2017 at 6:31 PM, Richard Gaskin via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Bob Sneidar wrote:
> > On Jun 16, 2017, at 17:23 , Richard Gaskin wrote:
> >>
> >> In many cases you'll find you don't need to change permissions and
> >> then change them back; you can temporarily raise your own permissions
> >> with sudo to edit files and leave permissions as originally
> >> configured.
> >
> > True, if using terminal, but I was editing the file with the GUI text
> > editor. I suppsoe I could have launched the text editor as sudo...
>
> True.  But most servers won't have a GUI installed, so it can be well
> worth the time to get to know Nano.
>
> As with a GUI editor, you can launch Nano with sudo:
>
>sudo nano somefile.txt
>
> You probably won't want to use Nano to write a book, but for quick editing
> of config files it's pretty good, much easier to learn than vim or emacs.
>
> If you're on a system that doesn't have Nano installed, on a Debian-based
> system like yours you can install it with apt-get:
>
>   sudo apt-get update; sudo apt-get install nano
>
> --
>  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
>



-- 

Carpe diem

*Simon Smith*
m. +27 83 306 7862
___
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: Server Installation

2017-06-18 Thread Simon Smith via use-livecode
I think it is worth saying that if you are wanting to host your own server
online - it is well worth the pain of learning how to setup everything
yourself.

A control panel or a setup script would be great (my personal preference
would be a setup script) - you do still need some experience to run a
server online and trouble shoot any problems that can occur. Neglecting
even something very small can have disastrous results - something I have
learnt the hard way when I had a VPS hacked a many years ago. Learn the
basic Linux commands, administer a firewall, use vim or nano to edit files,
setup cron jobs, restart services, monitor resources, manage user rights,
setup sftp or ftp, tweak mysql etc. You will be a better developer for it.

I am in the process of setting up a new Windows PC and still need to
install a local web server and I also need to setup a new Linux server
hopefully in the next day or two - I will document everything I do and
share that - hopefully its of help.

Simon

On Sat, Jun 17, 2017 at 2:23 PM, Richard Gaskin via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Malte wrote:
>
> > Richard wrote:
> >
> >> If someone has time to write a bash script that would be cool, though
> >> perhaps distro- and maybe even version-specific.  With bash you could
> >> download the latest LC Server, unzip it, enable CGI on Apache, alter
> >> the relevant Apache config to use LC Server for ".lc" files, and then
> >> test it to make sure it works.  It would be handy to have.
> >
> > Ok, I want this. Who does it? I am throwing $500 in the pot…
> > Someone also willing to write a .bat for Windows and maybe make the
> > Linux one work on Mac OS also???
>
> I'd do an initial version for that which would handle Ubuntu 14.04 and
> Ubuntu 16.04, under MIT so everyone can extend it for Mac and Windows if
> they need.
>
> Do we want VPS, or should we consider versions for shared hosts?  There
> are subtle differences between shared hosts that can make them more
> challenging, but the upside is they have pro admins hardening and
> monitoring so they're a better option for newcomers to get started.
>
> I could also write a script to harden a VPS, but doing it well requires
> using the script carefully, after setting up shared SSH keys, because I
> prefer to completely turn off password login on any system where I can.
>
>
> > This would save so much time and would make sure people who want to
> > fiddle with liveCode server does not need to go through the hassle of
> > needing to be a system pro. And for those who want to deploy open
> > source projects it would help a lot, as end users could easier install
> > everything themselves without needing to ask for help and without
> > needing to understand the technical underpinning…
>
> There's the rub:  we can automate setting things up, but without an
> understanding of what a server needs to be robust and secure then what
> happens with the LiveCode scripts it enables?
>
> Anything connected to the Internet implies a non-trivial level of
> responsibility.
>
> Enabling all the power of LiveCode to become accessible to the Internet is
> powerful, but automating it almost encourages cargo cult development (<
> https://en.wikipedia.org/wiki/Cargo_cult_programming>).
>
> With things that only run on your own local machine, cargo cult errors are
> trivial.  But with a machine connected to the Internet it may make the
> system compromised, perhaps in ways that would be difficult to detect.
>
> We should think carefully about this.
>
> For the amount proposed, I'd write a very good tutorial that would enable
> people to set it up themselves, and understand what each step is doing.
>
> I think over the life cycle of a server, that may be a better investment.
>
> --
>  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
>



-- 

Carpe diem

*Simon Smith*
m. +27 83 306 7862
___
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: Query for valid email

2016-04-29 Thread Simon Smith
You can use telnet to query a mail server to see if the account exists.

https://www.webdigi.co.uk/blog/2009/how-to-check-if-an-email-address-exists-without-sending-an-email/

Simon

On Fri, Apr 29, 2016 at 1:42 AM, Bob Sneidar <bobsnei...@iotecdigital.com>
wrote:

> I don't think so. If it is a single server, and you can manage the server,
> I'd export a list of email addresses and that you can script. If not, then
> I would have bounce messages ruled into a particular mail folder. That way
> you can at least find a way to compile the bounced addresses. For instance,
> I can select multiple emails and click Forward, in which case a new email
> is created with the contents of the forwarded emails. Copy paste that into
> a text file and then you can script a way to find the bounced addresses.
>
> It's a kludge, but I think that is all you have without actually using a
> proper mailing list application, which might have a way to remove bounced
> addresses after a number of days or times.
>
> Bob S
>
>
> On Apr 27, 2016, at 17:12 , Skip Kimpel <skiplon...@gmail.com skiplon...@gmail.com>> wrote:
>
> Is there a quick way to script out a process to validate if an email
> address is valid against the mail sever you are sending it to?  We are
> trying to scrub a large list of old emails to see if they are still valid
> or not.
>
> Your input would be most appreciated.
>
> ___
> 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
>



-- 

Carpe diem

*Simon Smith*
m. +27 83 306 7862
___
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: Anyone have any LiveCode hooks to WordPress? And, are you following these Word Camp events

2016-04-14 Thread Simon Smith
Thanks for the kind words Dave.

The project involved using WooCommerce and WooCommerce Subscriptions.

WooCommerce Subscriptions has numerous hooks that we could tie into
everything depending on the event (e.g. Person activates a subscription)
and CURL was used to pass that information to the LiveCode scripts. It was
a bit of a process to get the necessary fields.

There are a couple of ways to integrate LiveCode and WordPress (interact
with content from WordPress), it just depends on what you are wanting to
do. E.g. WordPress has the WP Rest API (https://github.com/WP-API/WP-API).
That is probably one of the better options if you want LiveCode to interact
with WordPress. WooCommerce also has its own API aswell.

If you want WordPress to interact with LiveCode you have a good number of
options aswell. We created a simple LiveCode script that data could get
posted to via CURL. There are other options - some of them depend on the
PHP/hosting settings and curl is what worked best.

Simon






On Thu, Apr 14, 2016 at 3:07 PM, Dave Kilroy <d...@applicationinsight.com>
wrote:

> About a year ago I asked Simon Smith (sometimes active on this list, runs a
> nice LiveCode resource at http://activethought.net/about/) to help me
> create
> a 'code bridge' between a Wordpress website and LiveCode Server
>
> I also had WooCommerce installed on WordPress which I think in some ways
> made Simon's job harder. Anyway he was great, I think in the end a deep
> understanding of Wordpress and a WooCommerce plugin was most of what was
> needed rather than lots of php code - but the complexity of setting it all
> up was more than I wanted (or was able) to do. Simon please reply here
> saying what you really did!
>
> What now is in place is that whenever a user buys a product in
> WooCommerce/Wordpress a message is sent to my LiveCode script (on the same
> server), and from this script I populate/update a different database, send
> notifying emails etc.
>
> If I can face it I might dive in again to set up further integrations...
>
> So, if you want to get WordPress and LiveCode Server to talk to each other
> and want some help, Simon is your man!
>
> Dave
>
>
>
>
> -
> "The first 90% of the task takes 90% of the time, and the last 10% takes
> the other 90% of the time."
> Peter M. Brigham
> --
> View this message in context:
> http://runtime-revolution.278305.n4.nabble.com/Anyone-have-any-LiveCode-hooks-to-WordPress-And-are-you-following-these-Word-Camp-events-tp4703439p4703486.html
> Sent from the Revolution - User mailing list archive at Nabble.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
>



-- 

Carpe diem

*Simon Smith*
m. +27 83 306 7862
___
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: Free Let's Encrypt SSL Certificates for On-Rev?

2016-01-29 Thread Simon Smith
You can also look at using cloudflare.com for adding https - no need to buy
a security certficate.

On Thu, Jan 28, 2016 at 7:04 AM, Alex Shaw <a...@harryscollar.com> wrote:

> Opps, my bad.
>
> That requires ssh access too.
>
> regards
> alex
>
>
> On 28/01/2016 2:58 PM, Alex Shaw wrote:
>
>> Yes, the official LE client requires shell access plus a range of python
>> dependences.
>>
>> Also, if the SSL/TLS Manager module was accessible from on-rev cpanel you
>> could try..
>>
>> https://github.com/diafygi/gethttpsforfree
>>
>> regards
>> alex
>>
>> On 28/01/2016 2:34 PM, Mark Wieder wrote:
>>
>>> On 01/27/2016 07:23 PM, Alex Shaw wrote:
>>>
>>>> As far as I can tell Let's Encrypt issues certificates for domain names.
>>>>
>>>> The LE install client script asks for domain name/s and I found a
>>>> mention here regarding that..
>>>>
>>>> https://community.letsencrypt.org/t/certificate-for-static-ip/84
>>>>
>>>
>>> That's true, but when I tried it for my on-rev domain I got rejected
>>> because I don't have privileges for the on-rev server. Or that's how I
>>> interpreted the error message, at any rate. I'd be happy to be wrong.
>>>
>>>
>>
>> ___
>> 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
>



-- 

Carpe diem

*Simon Smith*
m. +27 83 306 7862
___
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: site scraper

2015-09-10 Thread Simon Smith
Hi

You could try - https://import.io/

Simon

On Thu, Sep 10, 2015 at 4:35 AM, Mike Kerner <mikeker...@roadrunner.com>
wrote:

> anyone write a site scraper?  Feel like sharing it so I don't have to write
> it?
>
> --
> On the first day, God created the heavens and the Earth
> On the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
>and did a little diving.
> And God said, "This is good."
> ___
> 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
>



-- 

Carpe diem

*Simon Smith*
m. +27 83 306 7862
___
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: OT Wordpress installation on On-Rev server Diesel fails

2015-03-18 Thread Simon Smith
All versions of WordPress after 3.7 auto update (only minor and security
updates)

On Wed, Mar 18, 2015 at 8:54 PM, Matthias Rebbe | M-R-D 
matthias_livecode_150...@m-r-d.de wrote:


  Am 18.03.2015 um 19:30 schrieb Mark Wieder mwie...@ahsoftware.net
 mailto:mwie...@ahsoftware.net:
 
  Matthias Rebbe | M-R-D matthias_livecode_150811@... writes:
 
  I just checked his installation. And can assure you it´s version 4.1.1.
 
  OK. Sounds like you've got this under control.
  But I think if you've installed your own WordPress copy then you're
 responsible
  for keeping it updated, as opposed to running the version on-rev
 supplies.
 

 The On-Rev integrated one is updated automatically?
 Only security patches or also version upgrades?
 I would have no problem with security updates,
 but automatically upgrading to newer versions is not what i would want.

 Matthias

  --
  Mark Wieder
  ahsoftw...@gmail.com mailto:ahsoftw...@gmail.com
 
  ___
  use-livecode mailing list
  use-livecode@lists.runrev.com mailto: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 
 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




-- 

*Simon Smith*
*seo, online marketing, web development*

w. http://www.simonsmith.co
m. +27 83 306 7862
___
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: Moving to the Cloud. LiveCodeServer on Linux CentoOS vs Ubuntu 11

2015-02-25 Thread Simon Smith
Hi

Digital Ocean has a one click install for Lamp, that installs Ubuntu 14.04
along with php / mysql / apache.

I have not played to much with optimizing all the settings, but there will
be a few things you will have to tweak in apache to get everything running
correctly.

I imagine there will be a bit you can tweak on mysql aswell - depending on
what you will be running.

You will also have to handle hardening the server along with setting a
firewall.

Think I am still running 6.7, I tried upgrading it awhile ago and ran into
a few problems (it was either session or post / get variables - cant
remember) I would suggest trying the latest version, if there are any
problems it takes only a moment to down grade.

Simon


On Wed, Feb 25, 2015 at 5:21 PM, Richard Gaskin ambassa...@fourthworld.com
wrote:

 I just noticed your subject line says Ubuntu 11.  Why that version?

 Ubuntu releases follow a pattern in which new versions are released every
 six months, numbered according to the release date.  For example, 11.04 was
 released in April 2011, and 11.10 was released in October 2011.

 Every two years the April release is a Long Term Support (LTS) version,
 which will continue getting updates for 5 years.

 The interim releases are mostly for those who want the very latest
 features, but have a support cycle lasting only 9 months.

 The LTS versions are the most popular choice for server work and
 institutional use, since the five-year support cycle means not having to
 worry about upgrading the OS for up to half a decade.

 Right now the two supported LTS versions are 12.04 and 14.04, and you'll
 find those deployed about equally on most hosting services that use Ubuntu
 (including Dreamhost and others; Google uses Ubuntu internally, I believe
 currently based on 12.04, and FWIW Ubuntu has become the most popular
 choice with Amazon and Microsoft Azure platforms).

 For new servers I recommend the latest LTS, which is 14.04.  I not only
 use it on both of my VPSes, but also my laptop as well.  Rock solid,
 efficient - an excellent build.

 A complete list of the life cycles, with EOL dates, of all Ubuntu builds
 is here:
 https://wiki.ubuntu.com/Releases

 It would be great if Apple published a list like that.

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




-- 

*Simon Smith*
*seo, online marketing, web development*

w. http://www.simonsmith.co
m. +27 83 306 7862
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LC Server Unable To Retrieve File From DropBox?

2014-12-17 Thread Simon Smith
Hi Scott

Tried your script on my server - seems to work perfectly.

Outputs: 483575

Kind Regards
Simon

On Wed, Dec 17, 2014 at 10:14 PM, Scott Rossi sc...@tactilemedia.com
wrote:

 Hi List:

 I¹m wondering if anyone has been using LC Server to serve files from
 DropBox.  Since updating LC Server to 6.7 on my host (DreamHost), it now
 seems to be unable to retrieve files from DropBox.

 With the following script:

 put url https://dl.dropbox.com/s/6fpl18ihvt7ffbl/test-image.zip; into
 theFile
 put the length of theFile


 On a desktop system, this works as expected in the message box.

 On LC Server I get a value of 0.

 What am I missing here?  Is this perhaps some kind of cross-domain
 limitation?  Any way to make this work?

 Thanks  Regards,

 Scott Rossi
 Creative Director
 Tactile Media, UX/UI Design



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

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

Re: LC Server Unable To Retrieve File From DropBox?

2014-12-17 Thread Simon Smith
Hi

:)

I am running the community edition, version 6.5.2 if I remember correctly.

Kind Regards
Simon

On Thu, Dec 18, 2014 at 12:17 AM, Scott Rossi sc...@tactilemedia.com
wrote:

 Hi Simon:

 Well, I'm glad it works somewhere, but since it's not likely that I'll be
 using your LC server, this doesn't help me much.

 I wonder if maybe the edition makes a difference.  Are you using the
 Commercial or Community edition?

 Thanks  Regards,

 Scott Rossi
 Creative Director
 Tactile Media UX/UI Design

  On Dec 17, 2014, at 1:15 PM, Simon Smith he...@simonsmith.co wrote:
 
  Hi Scott
 
  Tried your script on my server - seems to work perfectly.
 
  Outputs: 483575
 
  Kind Regards
  Simon
 
  On Wed, Dec 17, 2014 at 10:14 PM, Scott Rossi sc...@tactilemedia.com
  wrote:
 
  Hi List:
 
  I¹m wondering if anyone has been using LC Server to serve files from
  DropBox.  Since updating LC Server to 6.7 on my host (DreamHost), it now
  seems to be unable to retrieve files from DropBox.
 
  With the following script:
 
  put url https://dl.dropbox.com/s/6fpl18ihvt7ffbl/test-image.zip; into
  theFile
 put the length of theFile
 
 
  On a desktop system, this works as expected in the message box.
 
  On LC Server I get a value of 0.
 
  What am I missing here?  Is this perhaps some kind of cross-domain
  limitation?  Any way to make this work?
 
  Thanks  Regards,
 
  Scott Rossi
  Creative Director
  Tactile Media, UX/UI Design
 
 
 
  ___
  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



-- 

*Simon Smith*
*seo, online marketing, web development*

w. http://www.simonsmith.co
m. +27 83 306 7862
___
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: Can't Start LiveCode Server Under Yosemite

2014-12-01 Thread Simon Smith
If it's saying that it cannot connect to the server, I would guess that
apache is not running.

On Mon, Dec 1, 2014 at 4:45 PM, Gregory Lypny gregory.ly...@videotron.ca
wrote:

 Hello everyone,

 I can’t seem to get LiveCode server working under Yosemite. I followed
 Peter Wood’s suggestion and modified the httpd.conf file as follows, where
 the path to LiveCode server is “Library/WebServer/CGI-Executables”.

 IfModule alias_module
 ScriptAlias /livecode-cgi/
 Library/WebServer/CGI-Executables/
 /IfModule

 Directory Library/WebServer/CGI-Executables
 Options +ExecCGI
 /Directory

 IfModule mime_module
 AddHandler lcscript .lc
 Action lcscript /livecode-cgi/livecode-server
 /IfModule

 I have LiveCode server 5.0.2 installed.

 When I enter localhost in Safari, I get an error message saying that
 Safari cannot connect to the server.

 Any advice would be most appreciated,

 Gregory
 ___
 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: Comparison of Speed of LiveCode with PHP

2014-11-25 Thread Simon Smith
.
 
  Regards
 
  Peter
 
  Speedtest.lc
 
  #!livecode
 
  if the platform = MacOS then
   set the outputLineEndings to lf
  end if
 
  put LiveCode Speed Test Started  return
 
  ##cpu test
  put the millisecs into tStart
  repeat with i = 1 to 1000
   put sqrt(exp(i)) into tTemp
  end repeat
  put the millisecs into tEnd
  put The CPU test took:  tEnd - tStart  ms  return
 
  ##Memory Access
  put the millisecs into tStart
  repeat with i = 1 to 100
   put random(255) into tMem[i]
  end repeat
  put the millisecs into tEnd
  put The Memory test took:   tEnd - tStart  ms  return
 
  ##Filesystem
  open file test.tmp
  put the millisecs into tStart
  repeat with i = 1 to 10
   write This is a test of the write speed  random(255) to file
  test.tmp
   read from file test.tmp for 1 line
  end repeat
  put the millisecs into tEnd
  put The File System test took:  tEnd - tStart  ms  return
  delete file test.tmp
 
  ##Finish
  put LiveCode Speed Test Finished  return
 
  Speedtest.php
 
  #!/usr/bin/php
 
  ?php
 
  print PHP Speed Test Started\n;
 
  //cpu test
  $start = microtime(true);
  for( $i = 0; $i  1000; $i++ ) {
   $temp = sqrt(exp($i));
  }
  $end = microtime(true);
  $time = ($end - $start) * 1000 + 0.5;
  printf(The CPU test took: %5.0f ms\n, $time);
 
  //Memory Access
  $start = microtime(true);
  for( $i = 0; $i  100; $i++ ) {
   $mem[i] = rand(0, 255);
  }
  $end = microtime(true);
  $time = ($end - $start) * 1000 + 0.5;
  printf(The Memory test took:  %5.0f ms\n, $time);
 
  //Filesystem
  $file = fopen(test.tmp, w+);
  $start = microtime(true);
  for( $i = 0; $i  10; $i++ ) {
   rewind($file);
   fwrite($file, This is a test of the write speed.rand(0,255));
   fread($file, 34);
  }
  $end = microtime(true);
  $time = ($end - $start) * 1000 + 0.5;
  printf(The File System test took: %5.0f ms\n, $time);
  unlink(test.tmp);
 
  //Finish
  print PHP Speed Test Finished\n;
 
  ?
 
 
 
  ___
  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
 
 
 
 
  --
  http://www.andregarzia.com -- All We Do Is Code.
  http://fon.nu -- minimalist url shortening service.
  ___
  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




-- 

*Simon Smith*
*seo, online marketing, web development*

w. http://www.simonsmith.co
m. +27 83 306 7862
___
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: OT: Need help with Indiegogo, Twitter, Facebook etc.

2014-11-25 Thread Simon Smith
Hi Rick

If you are new to social media, I would suggest choosing a platform and
getting use to it and then looking at the others.

Personally I would start with Facebook,and setting up a fan page and maybe
Twitter, and take it from there. Facebook has by far the biggest audience.
I would not suggest buying likes, tweet or any type of followers. It's
pretty much a waste of money.

That said, I would suggest having a website (even if its a free blog, but
get a domain name) and channeling people there and collecting email
addresses but as you already have the campaign running - its probably not
feasible.

Advertising on Facebook can be very cost effective, so long as you pay
attention to conversion rates. It's pretty easy to run yourself aswell and
you can channel people to directly to your indigogo campaign. I would start
off reaching out to family and friends and asking them to share your page /
campaign. As it takes a bit of time to grow ones following, you may have to
look at spending a bit on advertising.

You shouldn't need any software to start off with, though you could look at
Hootsuite and Buffer is also a good alternative.

I think what contributed the most to the success of the RunRev's success
with their campaigns is that they already had a large base of interested
and engaged customers that they could leverage (especially for the 2nd
campaign where they ran it themselves. The first campaign also got quiet a
bit of coverage on a variety of sites (if I remember correctly), which
always helps.

If you want to market yourself, or pretty much anything, then the more
people you are connected with the better :). If you are planning on future
campaigns etc, then I would suggest keeping your accounts going and work on
growing your followers.

http://www.socialmediaexaminer.com/ is a great website for getting the most
of social media.

Kind Regards
Simon







On Tue, Nov 25, 2014 at 12:36 AM, Rick Harrison harri...@all-auctions.com
wrote:

 Dear Fellow LiveCoders,

 I just started an Indiegogo.com http://indiegogo.com/ campaign to make
 my second music CD Album.  I’m doing some side
 advertising of my Apple Apps along with the project.
 (We might be able to use this to help push LiveCode
 too as I can add perks to my campaign to encourage
 others to donate.  For example: at the $400 level one gets
 a commercial copy of LiveCode, or at the $300 level, the
 mergExt suite etc.

 Here’s the link if you’d like to take and look and offer suggestions:

 https://www.indiegogo.com/projects/rick-harrison-s-2nd-cd-album 
 https://www.indiegogo.com/projects/rick-harrison-s-2nd-cd-album

 Anyway, many people are saying that I need to use
 Social Media to advertise this campaign.
 I’m not much of a social media expert and
 I think I’m already in over my head on this.

 The people here at RunRev have run two
 very successful fund raising campaigns and
 I wondered if anyone has any good advice
 as to how I should proceed with this.

 I’ve noticed that I’m already getting bugged
 by people trying to sell me on Likes, and
 getting Followers for Twitter, and re-tweets
 advertising packages etc.

 What do people do to manage this?
 I’m having to ask myself questions like, do
 I really want to be associated/liked/linked with
 the vast array of anyone who is out there?
 If I do, should I plan on deleting my Twitter
 account etc. when I’m done with my
 campaign?

 There are a lot of social questions and
 ramifications here.  If you know of a
 good forum for these kinds of discussions
 please let me know.

 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




-- 

*Simon Smith*
*seo, online marketing, web development*

w. http://www.simonsmith.co
m. +27 83 306 7862
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: LC Script in PHP File

2014-11-24 Thread Simon Smith
Would supporting Fast CGI not be a better way forward?

On Mon, Nov 24, 2014 at 7:56 AM, Monte Goulding mo...@sweattechnologies.com
 wrote:


 On 24 Nov 2014, at 3:29 pm, Richard Gaskin ambassa...@fourthworld.com
 wrote:

  What would it take to make an Apache module for LiveCode?


 Apache modules themselves don't look all that complicated. As far as LC
 goes as long as you don't support threaded mpms it should be largely a
 matter of handling the request and setting the globals up then passing
 headers and output via the module api rather than stdout.

 Cheers

 Monte

 --
 M E R Goulding
 Software development services
 Bespoke application development for vertical markets

 mergExt - There's an external 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




-- 

*Simon Smith*
*seo, online marketing, web development*

w. http://www.simonsmith.co
m. +27 83 306 7862
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LC Script in PHP File

2014-11-23 Thread Simon Smith
I just think Peter means that there would be an additional step in the
process - instead of executing a single script, you are executing 2.

On Sun, Nov 23, 2014 at 7:45 PM, Richard Gaskin ambassa...@fourthworld.com
wrote:

 Peter W A Wood wrote:
  You should be able to use file_get_contents in PHP to do what you
  want. Though it will take longer to get the results from LiveCode
  than it would from PHP.

 Why would that be?

 In general (and pre-7.0) LC used to perform roughly on par with PHP. Where
 has it fallen down on the job?

 Given the role of memory and performance for scaling, if we want to see LC
 Server taken seriously as a professional server tool we need to identify
 and eliminate any significant performance difference between it and PHP.

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




-- 

*Simon Smith*
*seo, online marketing, web development*

w. http://www.simonsmith.co
m. +27 83 306 7862
___
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: FTP vs MYSQL for storing splash stack loading

2014-10-24 Thread Simon Smith
You could possibly change the ftp port to something that is not blocked.

On Fri, Oct 24, 2014 at 6:44 PM, Jim Schaubeck jschaub...@gmail.com wrote:

 Folks,
 Our franchisor recently started blocking port 21 in our stores so I can no
 longer FTP the most recent stacks to the computers in our stores.

 They will not block other ports so I wanted to know if there was a way to
 use MYSQL db to download stacks vs FTP

 Thank you!


 --

  
 
  jim schaubeck jschaub...@gmail.com
 jischaub...@gmail.com714-321-4499
 ___
 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




-- 

*Simon Smith*
*seo, online marketing, web development*

w. http://www.simonsmith.co
m. +27 83 306 7862
___
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: cron jobs and LC server

2014-10-06 Thread Simon Smith
Hi

It should be possible to that, my concern would be that for the LC script
to create remove the cron scripts, it would need sufficiant privlages to do
so, which is not great for security. Although there a few ways around this,
it can be more trouble than its worth. It would also depend on how
everything is being hosted. e.g. on shared hosting, this probably would not
be possible.

I would just set the cron script and leave it to every 5 minutes - it will
make your life much simpler. If there is no data to process, then the
script can exit and do nothing etc. Its affect on server load will be
negligible.

Simon

On Mon, Oct 6, 2014 at 10:12 AM, j...@souslelogo.com wrote:

 Hi list
 I need to run a cron job every 5 minutes to process
 some data on a server and the job needs to stop when
 all data are processed. The thing is : the data will be
 posted only once or twice a month and it is impossible
 to predict when.
 So my idea is to set up a cron job automatically when
 needed and remove it when all data are processed.

 I found the following tutorial :
 http://www.thesitewizard.com/general/set-cron-job.shtml
 Before I make a big mistake I thought it would be wise to
 ask specialists on this list if it would be safe to do that from
 within a LC server script...
 The idea is : a specific LC script would be used to set up and
 remove the cron, which in turn would trigger another script
 every 5 min to process data.

 Thanks.
 jbv


 ___
 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: ShellShock - what are you doing?

2014-09-30 Thread Simon Smith
More issues with shellshock :(

http://mashable.com/2014/09/29/shellshock-additional-vulnerabilities/


On Sun, Sep 28, 2014 at 8:08 PM, J. Landman Gay jac...@hyperactivesw.com
wrote:

 My client will be happy about that.

 On September 28, 2014 12:07:07 PM CDT, Mark Wieder mwie...@ahsoftware.net
 wrote:
 Jacque-
 
 Saturday, September 27, 2014, 8:04:13 PM, you wrote:
 
  So it seems to me that Apache servers and 'nix users need updating
 but
  other consumers are for the most part okay, including mobile users.
 
 Amazon updated and rebooted *all* their AWS servers the other day, one
 by one. I'm thankful I'm not an Amazone IT person when a day zero
 exploit comes to light.

 --
 Jacqueline Landman Gay | jac...@hyperactivesw.com
 HyperActive Software   | http://www.hyperactivesw.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: Using Livecode to burn DVDs on demand?

2014-09-25 Thread Simon Smith
Hi

There are a number of command line applications that you could integrate to
handle the writing of cd's. Should be relatively easy to integrate with
LiveCode.

e.g. commandburner.com for windows.

Kind Regards
Simon

On Thu, Sep 25, 2014 at 6:40 AM, Tim Selander selan...@tkf.att.ne.jp
wrote:

 I work for a TV production house, and we offer past programs to our
 audience on DVDs. Sell maybe 100 a month.

 I would like to use Livecode to catalog the programs (no problem there, I
 can do that), and then be able to burn a DVD. All our programs are on HDD,
 ready to burn. I can handle everything but burning to DVD.

 Are there any commands/libraries/externals that would let me, from within
 Livecode, send the data I've picked up to a DVD burner?

 Thanks,

 Tim Selander
 Tokyo, Japan

 ___
 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 syntaxhighligthing and autocomplete for Ultraedit available

2014-09-16 Thread Simon Smith
You can use SublimeText on the PC - the TextMate bundle from
http://revigniter.com/accessory works perfectly. (With sublime text 3 drop
the unzipped folder into the AppData\Local\Sublime Text 3\Cache\ - worked
for me on Windows 8. I also renamed revIgniterTMbundles1.3 to livecode)

On Mon, Sep 15, 2014 at 5:33 PM, Alejandro Tejada capellan2...@gmail.com
wrote:

 Matthias Rebbe | M-R-D wrote
  The last days i tried to create a syntax highlighting and autocomplete
  file
  for Ultraedit for Mac. Maybe it is working under Windows, too.
  Did not had the time yet to try.
 
  I am pretty sure that the file is not 100% perfect, but at least
  i have added all commands, constants, keywords, properties
  and so on and colorizing, auto indent and unindent are working.
  Code folding seems to work also.
 
  As i am working in LC editor with the custard yellow background,
  i adjusted the highlighting colors to correspond with that background
  color.
  But it is very easy to adjust the colors for each type (property, keyword
  and so on.).
  You can do this directly in UltraEdit.
 
  I have uploaded the file in  case some one is interested in it.
  https://dl.dropbox.com/s/27ohn9yzxwrt863/index.html?dl=0

 Really Nice! Many Thanks for sharing this configuration file.
 I opened the file and noticed this: Colors = 4194432

 This color notation is Hexadecimal, Octal or Binary?

 By the way, Did you know of a configuration file for
 NotePad Plus?

 Thanks in advance!

 Al




 --
 View this message in context:
 http://runtime-revolution.278305.n4.nabble.com/LiveCode-syntaxhighligthing-and-autocomplete-for-Ultraedit-available-tp4683271p4683279.html
 Sent from the Revolution - User mailing list archive at Nabble.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




-- 

*Simon Smith*
*seo, online marketing, web development*

w. http://www.simonsmith.co
m. +27 83 306 7862
___
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: New XAMPP security concept

2014-09-15 Thread Simon Smith
Hi Alejandro

You server will be fine, only your localhost will have access to the
specified files paths, everything else is blocked.

Simon

On Mon, Sep 15, 2014 at 8:03 AM, Mark Wieder mwie...@ahsoftware.net wrote:

 Alejandro-

 Sunday, September 14, 2014, 8:38:13 PM, you wrote:

  Now, all my livecode files execute correctly in the web browser, but I
 want
  to know
  if this modification opens a security risk in a Livecode server.

  Thanks in advance!

 That looks pretty safe - the domain list is still all local. Of
 course, it probably depends on what you put into the livecode folder.

 --
 -Mark Wieder
  ahsoftw...@gmail.com

 This communication may be unlawfully collected and stored by the National
 Security Agency (NSA) in secret. The parties to this email do not
 consent to the retrieving or storing of this communication and any
 related metadata, as well as printing, copying, re-transmitting,
 disseminating, or otherwise using it. If you believe you have received
 this communication in error, please delete it immediately.


 ___
 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




-- 

*Simon Smith*
*seo, online marketing, web development*

w. http://www.simonsmith.co
m. +27 83 306 7862
___
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: revXMLDeleteNode and LC server

2014-08-27 Thread Simon Smith
Hi

revXMLDeleteNode requires the XML Library which does not seem to be
included as part of the LC Server (along with other the other libraries) -
so while the dictionary does say it is supported by the server, this does
not seem to be access or add the needed libraries currently. Hope I am wrong -
would also like to know if its possible.

Kind Regards
Simon


On Wed, Aug 27, 2014 at 8:45 PM, j...@souslelogo.com wrote:

 Hi list

 I have a script using revXMLDeleteNode that runs fine on OSX
 and LC 6.5.2, but with LC server I get the error
 Handler: can't find handler (revXMLDeleteNode)

 The dictonary for LC 6.5.2 says for revXMLDeleteNode :
 Platforms: Desktop, Server, Web and Mobile

 I've googled the problem but the only thing I found is this link
 http://downloads.livecode.com/livecode/6_5_0/LiveCodeNotes-6_5_0_dp_2.pdf
 which says The entry for revXMLDeleteNode (command) has been updated
 without any further detail...

 Any idea how to delete a xml node in LC server ?

 Thanks
 jbv


 ___
 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: revXMLDeleteNode and LC server

2014-08-27 Thread Simon Smith
Helps if I test it first

Tried ony my lc server - seems to work fine.

Simon


On Wed, Aug 27, 2014 at 9:27 PM, j...@souslelogo.com wrote:

 Simon,
 Actually when I say LC server it's actually my account at on-rev.
 Obviously the XML library is included since other commands like
 revXMLRootNode, revXMLChildNames, revXMLNodeContents etc
 work perfectly in the same script...
 The problem seems to be limited to revXMLDeleteNode...

 jbv



  Hi
 
  revXMLDeleteNode requires the XML Library which does not seem to be
  included as part of the LC Server (along with other the other libraries)
 -
  so while the dictionary does say it is supported by the server, this does
  not seem to be access or add the needed libraries currently. Hope I am
  wrong -
  would also like to know if its possible.
 
  Kind Regards
  Simon
 
 
  On Wed, Aug 27, 2014 at 8:45 PM, j...@souslelogo.com wrote:
 
  Hi list
 
  I have a script using revXMLDeleteNode that runs fine on OSX
  and LC 6.5.2, but with LC server I get the error
  Handler: can't find handler (revXMLDeleteNode)
 
  The dictonary for LC 6.5.2 says for revXMLDeleteNode :
  Platforms: Desktop, Server, Web and Mobile
 
  I've googled the problem but the only thing I found is this link
 
 http://downloads.livecode.com/livecode/6_5_0/LiveCodeNotes-6_5_0_dp_2.pdf
  which says The entry for revXMLDeleteNode (command) has been updated
  without any further detail...
 
  Any idea how to delete a xml node in LC server ?
 
  Thanks
  jbv
 
 
  ___
  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: Sending bulk emails

2014-08-25 Thread Simon Smith
Its best not to send bulk email via a web server. Mail servers will start
marking emails as spam as soon as the see a number of incoming messages
from a single location. Depending on what you are sending there are a
number of newsletter or transactional mail providers - mail chimp /
mandrill.com, critsend.com, mailgun.com - there a number you can use (just
check google). Your best bet is take a look at a couple of them and see
what offers the best pricing and intergration methods.

Also sending the email as though its coming from the clients domain is
probably going to increase the chances it is seen as spam. Increasingly
more and more mail providers are also checking spf records etc and if these
are not setup correctly, your chances of being seen as spam are increased.

Best to send from a single email address and ensure everything is setup
correctly and to ask clients to whitelist that address.

Simon


On Mon, Aug 25, 2014 at 1:17 PM, j...@souslelogo.com wrote:

 Thanks for the reply.
 I have already checked the IP and the domain names, and none seems to
 be blacklisted. IMHO the problem is on the ISP side : somehow they check
 the header of the emails for some inconsistencies between the server ip
 and the sender's domain... Or if too many email addresses of the same
 ISP get the same email from the same sender, they mark the email as spam...
 But I'm not a specialist...

 jbv

  I would suggest something like Constant Contact.  The problem you are
  currently experiencing will continue to grow as your IP address (and
  possible address block) gets placed on blacklisted servers.  One way to
  check on this is to go to http://whatismyipaddress.com/blacklist-check
 
  SKIP
 



 ___
 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: Wrestling with LC Server and wacky results...?

2014-08-07 Thread Simon Smith
Hi John

When looping through tUsersFile I would probably write everything to a new
variable instead of trying to update tUsersFile - should not have any
problems removing the line or updating it when the username matches.

Simon



On Thu, Aug 7, 2014 at 6:18 AM, JOHN PATTEN johnpat...@me.com wrote:

 Hi All,

 Still not getting LC server script to record the correct info in a text
 file. I’m trying recording the last item, item 4, of a players game piece
 based on the button they are over. Here’s the abbreviated “move game piece
 script:”
 put word 2 of  tLabels into tCurrentSpot --word 2 is a number, ie Button3
put tCurrentSpot + (cd fld DiceRoll) into tButton

if tButton  15 then
   put 1 into tButton
   move cd button tTargetPlayer to the loc of cd button (Button 
 tButton)
   put urlEncode(tTargetPlayer) into tUsername
   put urlEncode(Button  tButton) into tButtonSpot
   put username=  tUsername ButtonSpot=  tButtonSpot into
  tArgList

   post tArgList to URL http://jpatten.on-rev.com/tHidden/moveplayer.lc;
   put  it --into tData

 else
   move cd button tTargetPlayer to the loc of cd button (Button 
 tButton)
   put urlEncode(tTargetPlayer) into tUsername
   put urlEncode(Button  tButton) into tButtonSpot
put username=  tUsername ButtonSpot=  tButtonSpot into
  tArgList
  post tArgList to URL http://jpatten.on-rev.com/tHidden/moveplayer.lc
 
   put  it --into tData
 end if

 Here’s server script:
 ?lc
 put $_POST[username] into tUsername
 put $_POST[ButtonSpot] into tButtonSpot
 put url(file:users.txt) into tUsersFile
 repeat for each line tLine in tUsersFile
 if item 1 of tLine is tUserName then
 put tButtonSpot into item 4 of tLine
 --when it gets to spot 10 it is no allowing the 1s spot only the 10s spot,
 so button Button 10 shows up as Button 1, button 11, as Button 1 and so
 on...
 put tLine into tLineNew
 put empty into tLine
 put return  tLineNew after tUsersFile
 put tUsersFile
 end if
 end repeat

 --open file users.txt for write
 --write tUsersFile to file users.txt
 --close file users.txt
 --put Moving on!
 --put tUsersFile

 ?

 The script works fine until player moves up into double digit game spaces,
 i.e. Button 10, Button 11, etc. However, when I add my changed line as a
 new line at the bottom of the variable the new line at bottom has the
 correct two digit button label. So if the player was Luna, and she had just
 moved to spot “Button 13,” the resulting text file looks like this after
 the server script runs:

 John Patten,secret,jpat...@bmail.com,Button 1
 Ivy Patten,1valve,ipat...@bmail.com,Button 5
 Sawyer Patten,luna,spat...@bmail.com,Button 1
 Luna Patten,secret,mmo...@gmouse.com,Button 6
 Sean Patten,secret,spat...@gmouse.com,Button 1
 Luna Patten,secret,mmo...@gmouse.com,Button 13

 I tried to figure out a way to delete the original line, in this case for
 Luna where the item 4 is the old labeled Button 6, but couldn’t come up
 with a script on the server to that.

 Tried a couple of the other suggestions too, but know luck. It just seems
 kind of odd why it will write the correct line to the end of the file, but
 not to the line in the middle? Any other suggestions?

 Thank you!
  John Patten
 SUSD



 ___
 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: sending data somehow...

2014-08-06 Thread Simon Smith
Hi Larry

Take a look at the SMTP stack on
http://www.troz.net/rev/index.irev?category=All

I have used http://commandlinesendmail.blogspot.com/ though in the past
(windows only)

Simon


On Wed, Aug 6, 2014 at 6:37 AM, la...@significantplanet.org wrote:

 I read the following lesson:
 http://lessons.runrev.com/m/4071/l/13197-how-do-i-create-an-html-e-mail

 Supposedly this only works if Thunderbird is the default email client.

 Does anyone know if there is a way to send an email from a stack if
 Thunderbird is NOT the default email client?


 ACTUALLY, what I want to do is this:
 create some data in a stack
 send that data (by email or whatever) to another person who has a stack
 that imports the data and makes use of it.

 Can that be done?

 TIA
 Larry
 ___
 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: Update of old apps

2014-07-16 Thread Simon Smith
What Mark said is spot on.

Personally I don't like working on something that is out of date / legacy
code and would quote the client on everything that would need to be done.
If the client can't afford the costs of redeveloping and it's possible to
work on the existing application while still being profitable, I would do
the updates, while at the same time stressing that if they are wanting to
do future updates they will have to strongly consider all your suggested
updated.

If on the other hand if you would have no choice but to redevelop, being
open with clients and explaining all the associated costs and the benefits
of redevelopment costs usually works wonders. If the client refuses to
accept the costs, I would probably  turn down the job (unless of course
there was a good reason to keep the client happy). The stress of having to
work under such circumstances is never worth it, especially if the clients
derives all the benifits and you get little in return.

Good luck
Simon



On Wed, Jul 16, 2014 at 6:14 PM, Mark Talluto use...@canelasoftware.com
wrote:

 On Jul 16, 2014, at 5:41 AM, j...@souslelogo.com wrote:

  ok I get it, thanks for the advice...
  But still my main worry is rather about aging code that could be
  replaced by new LC features that would save time  energy in
  future updates/maintenance...
  I am not going to clutter the list about it, but I'm really wondering
  about that.
 
  Best,
  jbv


 I think this is very on topic.  The answer may differ depending from
 contracting projects to products/services one sells broadly to more than
 one end user.

 If this is a contract situation, I would contact the companies you work
 with and actively offer upgrades to their software.  I would know
 everything possible about their industry and provide strong points that
 would interest them in hiring you to update their software package.  You
 might even look into a yearly support option for clients that use your
 software in mission critical environments.  Casual users of your software
 will not desire this though.

 If a client calls and requests something new, I would call that a billable
 item.  If they find a bug in your software you have the option to generate
 good will and fix it for free or offer them a reasonable rate to fix the
 issue if you think it warrants charging.

 I don’t there there are hard rules here. You have to gauge each situation
 individually.  Considering the long term value of your decision is helpful
 in determining whether to charge or not.  I hope this helps a bit with your
 decision.


 Best regards,

 Mark Talluto
 CanelaSoftware.com
 LiveCloud.io

 ___
 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: [on-rev] libURL and https

2014-07-10 Thread Simon Smith
They could be blocking something their side - but I also think they dont
run the latest version of LC Server. Probably best to contact their support
staff.




On Thu, Jul 10, 2014 at 2:16 AM, Scott Morrow sc...@elementarysoftware.com
wrote:

 Thanks Simon,
 Unfortunately, that is what I’m doing now except that it fails from my
 on-rev account when I use “https”… works if I use “http”
 —
 Scott Morrow

 On Jul 9, 2014, at 1:46 PM, Simon Smith he...@simonsmith.co wrote:

  Hi Scott
 
  I have not tried sending messages yet through Mandrill - but this works
 for
  retrieving my account details:
 
  ?lc
  put {  QUOTE  key  QUOTE  :  QUOTE  my mandrill key 
 QUOTE 
  } into myJSON  -- { key: my mandrill key }
  post myJSON to URL https://mandrillapp.com/api/1.0/users/info.json;
  put it
  ?
 
  Kind Regards
  Simon
 
  On Wed, Jul 9, 2014 at 8:49 PM, Mark Wieder mwie...@ahsoftware.net
 wrote:
 
  John Craig john@... writes:
 
 
  Hi, Scott.  I couldn't post to an https URL with on-rev the last time I
  tried, but the workaround was to use wget via shell.
 
  I do something similar, shelling out to httpie, especially when I need
 to
  get around the limitations of libURL.
 
  --
  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
 
  ___
  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




-- 

*Simon Smith*
*seo, online marketing, web development*

w. http://www.simonsmith.co
m. +27 83 306 7862
___
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: [on-rev] libURL and https

2014-07-10 Thread Simon Smith
Does not look like it is part of LC Server, perhaps its still to come?


On Thu, Jul 10, 2014 at 5:18 PM, Richard Gaskin ambassa...@fourthworld.com
wrote:

 Is libURL available at all with LiveCode Server?

 On the desktop it's a backscript that gets included in our standalones at
 build time.

 Where is it with LiveCode Server?

 --
  Richard Gaskin
  Fourth World
  LiveCode training and consulting: http://www.fourthworld.com
  Webzine for LiveCode developers: http://www.LiveCodeJournal.com
  Follow me on Twitter:  http://twitter.com/FourthWorldSys


 ___
 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




-- 

*Simon Smith*
*seo, online marketing, web development*

w. http://www.simonsmith.co
m. +27 83 306 7862
___
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: [on-rev] libURL and https

2014-07-09 Thread Simon Smith
Hi Scott

I have not tried sending messages yet through Mandrill - but this works for
retrieving my account details:

?lc
put {  QUOTE  key  QUOTE  :  QUOTE  my mandrill key  QUOTE 
} into myJSON  -- { key: my mandrill key }
post myJSON to URL https://mandrillapp.com/api/1.0/users/info.json;
put it
?

Kind Regards
Simon

On Wed, Jul 9, 2014 at 8:49 PM, Mark Wieder mwie...@ahsoftware.net wrote:

 John Craig john@... writes:

 
  Hi, Scott.  I couldn't post to an https URL with on-rev the last time I
  tried, but the workaround was to use wget via shell.

 I do something similar, shelling out to httpie, especially when I need to
 get around the limitations of libURL.

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

___
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: start session problem

2014-06-26 Thread Simon Smith
Hi John

I am running the latest version - linux and windows and sessions are
working fine for me.

whats happening when you use start session ?

Simon


On Thu, Jun 26, 2014 at 1:12 PM, John Craig j...@splash21.com wrote:

 I decided to add some session code to my server project, but the following
 command causes an error on 6.6.1 on Linux (community and commercial);

 start session

 LC 6.6.2 had another problem, which is why I rolled back to 6.6.1. I've
 now also tried 6.6.0 and 6.5.2 - 'start session' also bombs those versions
 out.
 Anyone know how far back I have to go to get a stable release with working
 sessions?

 ___
 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




-- 

*Simon Smith*
*seo, online marketing, web development*

w. http://www.simonsmith.co
m. +27 83 306 7862
___
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: start session problem

2014-06-26 Thread Simon Smith
Hi John

Might be easier for to email the script to me and I can take a look.  What
you can try though is: Ensure that start session is at the very top of your
script (e.g. line 1 ) and that you also have end session at the very end of
the script.

If you output anything before calling start session - thats probably whats
causing the problem.

Kind Regards
Simon


On Thu, Jun 26, 2014 at 1:40 PM, John Craig j...@splash21.com wrote:

 Hi, Simon.  It's encouraging that it's working on your system - hopefully
 there's just some misconfiguration on my machine.
 I get the following error when I add the start session line;

 file /var/www/vhosts/8up.uk/httpdocs/index.lc
   row 16, col 1:

 Row 16 is the line in question.  Column 1 is the 's' of 'start' !
 Everything else is working fine - database access, etc.  Only that one
 command seems to throw an error.

 When you say the latest, do you mean the latest stable (6.6.2) or the
 latest DP (6.7.0)?

 Thanks




 On 26/06/2014 12:20, Simon Smith wrote:

 Hi John

 I am running the latest version - linux and windows and sessions are
 working fine for me.

 whats happening when you use start session ?

 Simon


 On Thu, Jun 26, 2014 at 1:12 PM, John Craig j...@splash21.com wrote:

  I decided to add some session code to my server project, but the
 following
 command causes an error on 6.6.1 on Linux (community and commercial);

 start session

 LC 6.6.2 had another problem, which is why I rolled back to 6.6.1. I've
 now also tried 6.6.0 and 6.5.2 - 'start session' also bombs those
 versions
 out.
 Anyone know how far back I have to go to get a stable release with
 working
 sessions?

 ___
 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




-- 

*Simon Smith*
*seo, online marketing, web development*

w. http://www.simonsmith.co
m. +27 83 306 7862
___
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: Windows pathing question

2014-06-21 Thread Simon Smith
Would adding the path of the exe to the environmental variables work?


On Sat, Jun 21, 2014 at 1:12 AM, Bill Vlahos bvla...@mac.com wrote:

 I want to sent a command line command to a Windows executable to pass
 information and a command to it so that the application dials the phone
 number I send it (it is a telephony application). The command works fine if
 I specify the complete path.

 Is there a way I can issue the command without explicitly defining the
 path or asking the user to find the navigate to the application and I store
 the path?

 Bill Vlahos
 _
 InfoWallet (http://www.infowallet.com) is about keeping your important
 life information with you, accessible, and secure.
 lcTaskList: (http://www.infowallet.com/lctasklist/index.htm)
 RunRev lcTaskList Forum: (http://forums.runrev.com/viewforum.php?f=61)

 ___
 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




-- 

*Simon Smith*
*seo, online marketing, web development*

w. http://www.simonsmith.co
m. +27 83 306 7862
___
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


Simple benchmark of LiveCode vs PHP

2014-06-17 Thread Simon Smith
I have not seen any benchmarks comparing LiveCode server to other web
server languages so gave it a bash comparing it to PHP. I chose PHP as its
what I work with on a daily basis and the most popular of the server side
languages.

I probably should have used more complicated scripts aswell, which I will
probably do in the future. The web server was an entry level 512mb virtual
server from Digital Ocean. I am also a continent away from the server - so
my latency is pretty high.

I used the Apache ab program to run the tests.

As expected PHP yielded better results, but only by fractions of a second.
It is also running via an Apache process which is faster than CGI. This was
also run on a $5 a month VPS that is probably not very well suited for the
likes of Apache or testing load on.

While this is by no means a definitive benchmark and open for
interpretation, I think it does show that LiveCode delivers pretty great
performance as it is only slightly slower than PHP. I think it also shows
that LiveCode is a great option when approaching web projects - especially
if it lets you get the job done faster.

For the benchmark test, I used 2 simple loops:

LiveCode Server:

?lc
put 0 into myVar
  repeat for 100 times
  add 1 to myVar
  put myVar
end repeat
?

PHP:

?php
$myVar=0;
while($myVar  100) {
  $myVar ++;
  echo $myVar;
}
?

My latency to the server is about 234ms.

Concurrency Level: 5

LiveCode Results
Requests per second: 4.05 [#/sec] (mean)
Time per request: 246.952 [ms] (mean, across all concurrent requests)

PHP Results
Requests per second: 4.06 [#/sec] (mean)
Time per request: 246.063 [ms] (mean, across all concurrent requests)

Concurrency Level: 20

LiveCode Results
Requests per second: 3.95 [#/sec] (mean)
Time per request: 253.401 [ms] (mean, across all concurrent requests)

PHP Results
Requests per second: 4.02 [#/sec] (mean)
Time per request: 248.650 [ms] (mean, across all concurrent requests)

Simon
___
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: Learning about server

2014-06-10 Thread Simon Smith
I have been working on a general guide on LC server - its been a great way
to figure out how everything works. There is a still a ton of stuff I would
like to still add ... but if its helps people in the interim I am happy to
share. I'll take a look when I am at home this evening and see if its a
state I share.


On Tue, Jun 10, 2014 at 2:43 PM, Dave Kilroy d...@applicationinsight.com
wrote:

 Well we have books on general LC from Mark, on Mobile from Colin, and on
 gaming-making from Scott - but we have a gaping hole for LC Server just
 waiting for someone to fill! With at least two customers :)

 Actually it just occurs to me that we have another gaping lacuna in LC
 books, concerning communication (serial, USB etc) - feeling strong Dar?

 Dave



 -
 Some are born coders, some achieve coding, and some have coding thrust
 upon them. - William Shakespeare  Hugh Senior

 --
 View this message in context:
 http://runtime-revolution.278305.n4.nabble.com/Learning-about-server-tp4680393p4680397.html
 Sent from the Revolution - User mailing list archive at Nabble.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




-- 

*Simon Smith*
*seo, online marketing, web development*

w. http://www.simonsmith.co
m. +27 83 306 7862
___
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: Learning about server

2014-06-10 Thread Simon Smith
Hi Richard

I would be happy to contribute to LCJ and it will be interesting to see
what you have setup.

Writing a book would be a mammoth task - and I for one, would not be
certain just how large a target market there would be, so they would truly
be a labour of love :)

But for now - this is something I have been dabbling with,
http://activethought.net/livecode-server/ its far from complete and
hopefully not to many errors and spelling mistakes. It is probably a bit on
the simple side - but if it helps one person, then I would be happy.

Kind Regards
Simon

On Tue, Jun 10, 2014 at 5:49 PM, Richard Gaskin ambassa...@fourthworld.com
wrote:

 Dar wrote:
  My immediate need would not be a way to deliver web content, but just
  as a way to make a console application on Windows.  But, I can see
  the former in my future.

 There are so many useful and interesting things to do with LiveCode
 Server, and even standalones on servers, it's almost overwhelming.

 These days a majority of the work I do is making client-server apps where
 LiveCode runs both sides.  I currently have only one site where LC is used
 to generate output for the Web - everything else is either APIs for other
 services, or the backend for LC-based clients used in workgroup settings.

 Given the wide range of ways LC is useful on servers, with all due respect
 to the ambitions of those interested in writing a book on it, it would be a
 big one.

 Last month I outlined my plans for the LiveCode Server Center, in the
 works for LiveCode Journal now that I finally put a CMS in place there (and
 of course the CMS is made with LiveCode, all the way down to the data
 store):
 http://lists.runrev.com/pipermail/use-livecode/2014-May/201516.html

 As I wrote then, I don't mean to discourage anyone from writing a book,
 and indeed there is likely a good audience for it.

 But given the scope of what LC Server can do, and the many other aspects
 that come into play with using it well (the critical role of performance in
 the inherently-short CGI runtime lifecycle, how mod_rewrite works, SSH
 keys, bash, rsync, custom servers like looping CLI daemons and simpler GUI
 apps, REST API design, and more), it would be nice if there were also a
 community-driven effort to provide as much material as we can in a format
 that's as free and open as LiveCode itself.

 That said, books also play a useful role in evangelizing LiveCode as a
 platform, esp. when they come from established publishers.   A good
 publisher can do wonders for reinforcing a strong image of LiveCode and its
 ever-expanding third-party ecosystem.  I have some contacts at publishers
 and would be happy to provide introductions if useful.

 And the upside for book publishing is that with RunRev's newsletters
 having displaced much of the energy that used to go into LiveCode Journal,
 at this point LCJ is mostly a one-man show.  Being heavily booked with
 client commitments, devoting time to fleshing out what can go there has
 been challenging, and somewhat slow.

 Still, I felt obliged to note what's coming with the LiveCode Server
 Center at LCJ (hopefully sooner than later), and to extend an invitation
 for anyone interested in sharing free learning materials to consider
 LiveCodeJournal.com as an available venue for community resources, not only
 for LiveCode Server but anything else you feel would be of interest to the
 community.

 We have all the infrastructure Dreamhost provides, and plenty of disk
 space and bandwidth, all there for use by the LiveCode community.

 --
   Richard Gaskin
   LiveCode Community Manager
   rich...@livecode.org


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

___
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: Learning about server

2014-06-10 Thread Simon Smith
I'm game :)


On Tue, Jun 10, 2014 at 9:03 PM, John Craig j...@splash21.com wrote:

 Maybe we should all have a hangout some time and chew over a few ideas?



 On 10/06/2014 17:28, dunb...@aol.com wrote:

 I would pre- order two copies.


 Craig Newman



 -Original Message-
 From: Marc Van Cauwenberghe marc.vancauwenber...@pandora.be
 To: How to use LiveCode use-livecode@lists.runrev.com
 Sent: Tue, Jun 10, 2014 9:01 am
 Subject: Re: Learning about server


 Hi John,,
 I would pre-order!

 Best regards,
 Marc

 Op 10-jun.-2014, om 11:56 heeft John Craig j...@splash21.com het
 volgende
 geschreven:

  Any areas in particular that interest you?  I was speaking to someone
 recently

 about writing a book on LC server - not sure how much interest there
 would be,
 but here is the current list of possible topics;

 Basic .lc server scripts
 Sessions
 Basic logging in and out with sessions
 SQL primer
 Server scripts with MySQL
 Logging in and out with a database
 Web applications
 User and group permissions
 Javascript
 AJAX
 Web APIs
 Push notifications: iOS/Android
 Basic record versioning with AJAX


 With hangouts / skype and all the other wonders of the interweb, delivery

 could be fun..


 On 10/06/2014 04:00, Dar Scott wrote:

 I would like to learn about server.

 But, as Frodo would way, I don’t know the way.

 Dar Scott


 ___
 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



 ___
 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




-- 

*Simon Smith*
*seo, online marketing, web development*

w. http://www.simonsmith.co
m. +27 83 306 7862
___
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: Learning about server

2014-06-10 Thread Simon Smith
Thanks, much appreciated.

Only put it live a few minutes ago, there is no time like the present and
if I don't do it now - then I probably never will. It is also a great
motivation to work on it and try to complete everything that is missing.

Simon


On Tue, Jun 10, 2014 at 9:25 PM, Richard Gaskin ambassa...@fourthworld.com
wrote:

 Simon Smith wrote:

  Writing a book would be a mammoth task - and I for one, would not be
 certain just how large a target market there would be, so they would truly
 be a labour of love :)


 It would indeed.  I've known enough people in the book business that I
 stay with software. :)


  But for now - this is something I have been dabbling with,
 http://activethought.net/livecode-server/ its far from complete and
 hopefully not to many errors and spelling mistakes. It is probably a bit
 on
 the simple side - but if it helps one person, then I would be happy.


 Nice, Simon!  I hadn't come across that before - well done.

 I just sent that URL to Heather to forward to the Web team so it can be
 added to the Resources page at LiveCode.com.  Hopefully we'll see it linked
 there soon - good resource, thanks for putting that together.


 --
   Richard Gaskin
   LiveCode Community Manager
   rich...@livecode.org

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




-- 

*Simon Smith*
*seo, online marketing, web development*

w. http://www.simonsmith.co
m. +27 83 306 7862
___
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: Learning about server

2014-06-10 Thread Simon Smith
Hi William

It will live quiet happily with php and mysql and should not cause any
problems.

I remember reading (think it was a forum post Richard commented on) where
there was a question re: cgi vs fast cgi (with fast cgi there is only a
single process so it speeds up execution) He mentioned the disadvantages of
running Fast CGI - if there is a problem and the process gets blocked, it
can kill it for everything on the server, where the LiveCode CGI is pretty
small and executes very quickly and should handle a relatively large load.

I am not certain if there are plans to port LiveCode Server to fast cgi.

I have not come across any benchmarks comparing LCServer to the likes of
php - that would be an interesting experiment to see what the capabilities
of it is.

Something I want to look at (not had a chance yet) is to setup a vps
running the hiawatha webserver (hiawatha-webserver.org). It is smaller than
apache and should run faster as its designed for older servers. That
combined with something like maria db instead of mysql should let you get
quiet a bit out of a small server.

Kind regards
Simon


On Tue, Jun 10, 2014 at 11:21 PM, William Prothero proth...@earthednet.org
wrote:

 Simon:
 Re the server installation, one thing that worries me is the server load.
 As a cgi, the livecode app needs to be loaded for every call, AFAIK, and
 would demand a lot from the server. It seemed that the installation where
 it is integrated into the Apache configuration would be best, but I was
 worried that I would screw up the other configuration items. like the php
 and sql configuration directives. So, I installed it, for test purposes, as
 a cgi.

 This issue should be addressed in installation tutorials. FYI, I have a
 VPS hosted by liquidweb, which has fantastic customer support and
 reliability.

 Bill


 On Jun 10, 2014, at 1:12 PM, Scott Rossi sc...@tactilemedia.com wrote:

  Bookmarked :-)  Thanks for this.
 
  Regards,
 
  Scott Rossi
  Creative Director
  Tactile Media, UX/UI Design
 
 
 
 
  On 6/10/14 12:49 PM, Simon Smith he...@simonsmith.co wrote:
 
  Thanks, much appreciated.
 
  Only put it live a few minutes ago, there is no time like the present
 and
  if I don't do it now - then I probably never will. It is also a great
  motivation to work on it and try to complete everything that is missing.
 
  Simon
 
 
  On Tue, Jun 10, 2014 at 9:25 PM, Richard Gaskin
  ambassa...@fourthworld.com
  wrote:
 
  Simon Smith wrote:
 
  Writing a book would be a mammoth task - and I for one, would not be
  certain just how large a target market there would be, so they would
  truly
  be a labour of love :)
 
 
  It would indeed.  I've known enough people in the book business that I
  stay with software. :)
 
 
  But for now - this is something I have been dabbling with,
  http://activethought.net/livecode-server/ its far from complete and
  hopefully not to many errors and spelling mistakes. It is probably a
  bit
  on
  the simple side - but if it helps one person, then I would be happy.
 
 
  Nice, Simon!  I hadn't come across that before - well done.
 
  I just sent that URL to Heather to forward to the Web team so it can be
  added to the Resources page at LiveCode.com.  Hopefully we'll see it
  linked
  there soon - good resource, thanks for putting that together.
 
 
  --
   Richard Gaskin
   LiveCode Community Manager
   rich...@livecode.org
 
 
 
  ___
  use-livecode mailing list
  use-livecode@lists.runrev.com
  Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
  http://lists.runrev.com/mailman/listinfo/use-livecode


 ___
 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




-- 

*Simon Smith*
*seo, online marketing, web development*

w. http://www.simonsmith.co
m. +27 83 306 7862
___
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: Learning about server

2014-06-10 Thread Simon Smith
Thanks Kay :)

I would love to look at the security side of things sometime - it seems to
be something a lot of developers take less seriously now days. One of the
things I like about LiveCode is how easy it makes it to work with
encryption.

LiveCode has added support for Open SSL  encryption support for iOS and
Android - so that would be the place to start.

Simon


On Wed, Jun 11, 2014 at 3:46 AM, Kay C Lan lan.kc.macm...@gmail.com wrote:

 On Wed, Jun 11, 2014 at 3:02 AM, Simon Smith he...@simonsmith.co wrote:
  but if it helps one person, then I would be happy.

 Well it helped me, so please be happy.

 Now to make you sad. I'm surprised that security didn't make a mention
 in John's lists of topics, nor is it an obvious link on your page. I
 know there are many posts on this list that cover the topic and
 there's probably a books worth of detail on this one subject alone,
 but it would be really nice if, when you cross that bridge, you were
 to add a Hitch Hiker's Guide on how to keep data private as it travels
 back and forth between LC standalones and LC Server. For me, once I've
 got past step one of the installation of LC Server the very next
 hurdle would be to keep all comms secure, or which comms do I need to
 keep secure and which ones I need not waste time worrying about.

 But again, thanks for the link!

 ___
 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: $_SESSION

2014-06-02 Thread Simon Smith
The default temp directory. You can also set it via sessionSavePath

Hope that helps.


On Mon, Jun 2, 2014 at 11:44 PM, Richard Gaskin ambassa...@fourthworld.com
wrote:

 Where is $_SESSION stored between instances of LC Server running?

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




-- 

*Simon Smith*
*seo, online marketing, web development*

w. http://www.simonsmith.co
m. +27 83 306 7862
___
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 Sessions

2014-06-01 Thread Simon Smith
Hi Igor

Sessions on LiveCode are pretty easy to use and work in a similar fashion
to other languages like php. You just need to ensure that you use the stop
session command aswell somewhere in the scripts., as that is when
everything gets written to the session variable.

e.g. Script 1:

?lc
start session
put test into $_SESSION[myVar]
put quote  $_SESSION[myVar]  quote  saved to session variable
stop session
?

Script 2 can now access the saved session variable:

?lc
start session
put quote  $_SESSION[myVar]  quote  read from session variable
stop session
?


There are a couple of other commands for sessions that add some more
flexibility that you should be able to find in the dictionary.

   - delete session
   - sessionCookieName
   - sessionID
   - sessionLivetime
   - sessionName
   - sessionSavePath


Hope this helps.
Simon




On Sun, Jun 1, 2014 at 12:33 PM, Igor de Oliveira Couto i...@semperuna.com
wrote:

 On 1 Jun 2014, at 8:08 pm, Dave Kilroy d...@applicationinsight.com
 wrote:

  Hi Igor
 
  I don't know of any LC session tutorials other than the one you
 mentioned -
  but I'm wondering if the user guide page on RevIgniter's Session Library
  might be of interest an may provide some pointers?
  http://revigniter.com/userGuide/libraries/sessions.html

 It seems that RevIgniter uses its own session handling scheme, rather than
 using LiveCode’s “$_SESSION” - they even provide instructions on how to
 save session data to a database, if desired.

 Neat, but I was wondering whether the built-in $_SESSION would be enough?…


 --
 Igor Couto
 Sydney, Australia

 ___
 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




-- 

*Simon Smith*
*seo, online marketing, web development*

w. http://www.simonsmith.co
m. +27 83 306 7862
___
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 Sessions

2014-06-01 Thread Simon Smith
Hi

Sessions are saved to the default temporary folder, although you can
control where sessions are saved using the sessionSavePath command. As they
are saved server side, there should not be much of a concern about how much
data can be stored (no idea to be honest) but you can always link the
session to a database or create your files / storage structure as needed.

You can set the length of storage time with sessionLivetime.

Security wise I have not seen any problems or concerns raised, although if
you are concerned, you could just use cookies and build your system to
track users.

Kind Regards
Simon


On Sun, Jun 1, 2014 at 2:46 PM, Igor de Oliveira Couto i...@semperuna.com
wrote:

 On 1 Jun 2014, at 10:37 pm, Simon Smith he...@simonsmith.co wrote:

  […] Hope this helps.

 Thank you, Simon - this helps a lot!

 I knew it *had* to be easy! :-)

 Do you know where/how sessions are stored? - i.e., is session data stored
 entirely in a cookie in the user’s browser, in a hidden file on the server,
 or using some other mechanism? Do we have any concerns in terms of how much
 data is stored, how long it may be kept for, and security issues?

 Kindest regards,


 --
 Igor Couto
 Sydney, Australia

 ___
 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




-- 

*Simon Smith*
*seo, online marketing, web development*

w. http://www.simonsmith.co
m. +27 83 306 7862
___
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: Measuring CGI resource usage

2014-05-15 Thread Simon Smith
Hi Richard

Not sure if this would work - creating a daemon from a shell script and
using the ps (or top) command to monitor and output everything for the
livecode cgi process to text file, that you can then examine.

- Simon


On Wed, May 14, 2014 at 5:54 PM, Richard Gaskin
ambassa...@fourthworld.comwrote:

 CGI is an uncommonly harsh environment, with the entire runtime life cycle
 happening in the time it takes to satisfy an HTTP request. So I tend to
 take great care in measuring both CPU time and memory with CGI scripts, but
 I've found it difficult to get accurate measurements in the server
 environment.

 One commonly-recommended method is to use the time program, with the
 --verbose option to include memory:

 /usr/bin/time --verbose ./livecode-server somescriptfile.lc

 It seems on many systems that time program is implemented in an incomplete
 way, showing artificially low values for memory usage.

 top might seem a good option, but in practice it's useless since even its
 tightest update frequency is less than the execution time of my scripts.

 Any suggestions for something like /usr/bin/time but is actually reliable,
 something I can attach to the command line call for an accurate measurement
 of both time and memory?

 --
  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: Subscription-based sales system

2014-05-13 Thread Simon Smith
Hi

A number of payment gateways let you do subscriptions (e.g. paypal), if the
periodic payment is unsuccessful (e.g. credit card expires) it will send a
notification to your server, so that you can process and stop the
subscription. You would just need your application to periodically check
the server to see if it can load and react accordingly.



On Tue, May 13, 2014 at 7:08 PM, Marty Knapp martyknapps...@gmail.comwrote:

 Has anyone set up sales of their applications on a subscription basis? I
 would want something that could be automated so that if a customer's
 subscription ran out, they could make a payment and be back up and running
 without having to wait. It would be for Mac and Windows - no mobile and no
 app stores.

 Thanks for any input and ideas.

 Marty

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




-- 

*Simon Smith*
*seo, online marketing, web development*

w. http://www.simonsmith.co
m. +27 83 306 7862
___
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: Server Scripts Editor

2014-05-09 Thread Simon Smith
Can't go wrong with sublime text.


On Fri, May 9, 2014 at 1:57 AM, Nakia Brewer nakia.bre...@westrac.com.auwrote:

 Hi,

 Just starting to play with some LC Server scripts and was wondering what
 text editor people use for the LC file?

 Cheers and Happy Friday!






 COPYRIGHT / DISCLAIMER: This message and/or including attached files may
 contain confidential proprietary or privileged information. If you are not
 the intended recipient, you are strictly prohibited from using,
 reproducing, disclosing or distributing the information contained in this
 email without authorisation from WesTrac. If you have received this message
 in error please contact WesTrac on +61 8 9377 9444. We do not accept
 liability in connection with computer virus, data corruption, delay,
 interruption, unauthorised access or unauthorised amendment. We reserve the
 right to monitor all e-mail communications.

 ___
 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




-- 

*Simon Smith*
*seo, online marketing, web development*

w. http://www.simonsmith.co
m. +27 83 306 7862
___
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: Mysql UNIQUE and .lc server scripts?

2014-05-09 Thread Simon Smith
Hi John

I would first run a search on the table to see if the value exists, if it
does not exist, then you can run the insert statement. If the value does
exist, you can then have some sort of error procedure.

Kind Regards
Simon


On Fri, May 9, 2014 at 1:18 AM, JOHN PATTEN johnpat...@me.com wrote:

 Hi All,

 I’m using some .lc server scripts to add records to a database from an
 app. My database has one field that is UNIQUE. Is it possible to capture
 the mySQL message and report it back to the app when text entered for
 specific field is not unique?

 The database won’t create the record due to the fact that the filed is not
 unique, but it also does not give the user any clue of this fact.

 Thank you!
 John Patten
 ___
 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




-- 

*Simon Smith*
*seo, online marketing, web development*

w. http://www.simonsmith.co
m. +27 83 306 7862
___
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: Hosting LiveCode stacks

2014-05-06 Thread Simon Smith
Hi

You could just ftp the files up, zip them, or the add the following to your
themes functions.php file:

add_filter('upload_mimes', 'add_custom_upload_mimes');

function add_custom_upload_mimes($existing_mimes) {
$existing_mimes['livecode'] = 'application/octet-stream';
return $existing_mimes;
}

Kind Regards
Simon


On Tue, May 6, 2014 at 6:38 PM, Richmond richmondmathew...@gmail.comwrote:

 On 06/05/14 19:12, Monk in Exile wrote:

 I want to host some LiveCode sites on a WordPress blog. For this I need to
 add the mime-type of LiveCode to enable upload and download.

 in the terminal (on OSX), if I use:  file --mime Tuna.livecode

 Returns:  application/octet-stream; charset=binary

 Or is there a LiveCode specific mime type I should use? The other bit is
 to
 associate the browser and this mime-type with LiveCode so that LiveCode
 opens the downloaded stacks?

 It's been a few years since I've done this, any help appreciated :)

 Thanks
 ___


 I wonder if things wouldn't be a lot easier if you just stored the stacks
 as ZIP files.

 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




-- 

*Simon Smith*
*seo, online marketing, web development*

w. http://www.simonsmith.co
m. +27 83 306 7862
___
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 Books

2014-05-01 Thread Simon Smith
And a great book it is Scott :)

(bought it 2 or so weeks ago)




On Fri, May 2, 2014 at 12:00 AM, RunRevPlanet f...@smpcsupport.com wrote:

 I don't suppose my modest LiveCode and Games eBook is going to be win over
 any
 corporations or other business types to LiveCode.

 But given the name of this thread, I can't resist mentioning it here.

 http://livecodegamedeveloper.com/book.html

 Scott.
 --
 Scott McDonald
 Components, Controls, Tools and Resources for LiveCode
 www.runrevplanet.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




-- 

*Simon Smith*
*seo, online marketing, web development*

w. http://www.simonsmith.co
m. +27 83 306 7862
___
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 Books

2014-05-01 Thread Simon Smith
I have been toying with writing some sort of reference guide on the server
side things.


On Thu, May 1, 2014 at 7:44 PM, Colin Holgate co...@verizon.net wrote:

 I’m insanely overdue to finish an update to the book, that talks more
 about v6.5 and later. Hopefully I’ll finish it one day!

 Whatever the case, when I have that done I’ll sneak people a PDF of the
 new version.


 On May 1, 2014, at 6:38 PM, Alejandro Tejada capellan2...@gmail.com
 wrote:

  Colin book is essential for Mobile developers
 
 http://www.packtpub.com/livecode-for-android-ios-mobile-development-beginners-guide/book

 ___
 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




-- 

*Simon Smith*
*seo, online marketing, web development*

w. http://www.simonsmith.co
m. +27 83 306 7862
___
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: Delivering Files with lcServer ?

2014-04-25 Thread Simon Smith
Hi Scott

I have done something similar in php before, where a page loads, and then
the file starts downloading a few seconds later, without leaving the main
page.

The main page contains a refresh tag that loads the script that starts the
download:

meta http-equiv=refresh content=2;url=sendfile.php /

and then the sendfile.php consists of:

?php
header('Content-type: application/pdf');
header('Content-Disposition: attachment; filename=' .
basename('filename.pdf') . '');
header('Content-Transfer-Encoding: binary');
readfile($filename);
?

Hope this helps.
Simon


On Fri, Apr 25, 2014 at 7:21 AM, Scott Rossi sc...@tactilemedia.com wrote:

 Hi Peter:

 I started setting up a test page to demonstrate, and now I can't get
 anything to work, not even my single page test which worked a dozen times
 yesterday.  [sigh] Not sure what changed.

 At any rate, I've seen PHP examples that involve setting content headers
 to facilitate a file transfer, so I figured since lcserver operates
 similarly, it should be possible to initiate the download of a zipped file
 (or any file).

 Any examples out there that someone can point me to?

 Thanks  Regards,

 Scott Rossi
 Creative Director
 Tactile Media, UX/UI Design




 On 4/24/14 6:17 PM, Peter W A Wood peterwaw...@gmail.com wrote:

 Hi Scott
 
 What is the URL of the iframe? Does it include characters such as ? or
  ?
 
 Regards
 
 Peter
 
 On 25 Apr 2014, at 08:29, Scott Rossi wrote:
 
  Hello List:
 
  I'm hoping someone knowledgable about server stuff has a solution to a
  problem I have delivering a file using lcServer via an iframe.
 
  I'm using lcServer with the following code to trigger a file download:
 
  put url (binfile:files/sound.zip) into theFile
  put header Content-Disposition: attachment; filename=  quote 
  sound.zip  quote
  put new header Content-Type: application/force-download
  put new header Content-Type: application/zip
  put new header Content-Type: application/octet-stream
  put new header Content-Type: application/download
  put header Content-Description: File Transfer
  put header Content-Length:  the length of theFile
  put theFile
 
  This appears to work fine from basic web page -- a download is triggered
  in the browser and the file is written to the drive.
 
  When I run the same code on a page within an iframe, I get the raw file
  code posted to the iframe. :-(
 
  All pages reside in the same domain (no cross domain issues) so I'm at a
  loss on how to deal with this.  Any ideas?
 
  Thanks  Regards,
 
  Scott Rossi
  Creative Director
  Tactile Media, UX/UI Design
 
 
 
 
  ___
  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




-- 

*Simon Smith*
*seo, online marketing, web development*

w. http://www.simonsmith.co
m. +27 83 306 7862
___
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: Delivering Files with lcServer ?

2014-04-25 Thread Simon Smith
Hi Scott

Played around with it in LiveCode and got this works for me:

?lc

put header Content-type: application/zip
put header Content-Disposition: attachment; filename=myFile.zip
put header Content-Transfer-Encoding: binary

put myPDF.zip into fileToRead
open file fileToRead for binary read
  read from file fileToRead until EOF
  close file fileToRead
put binary it

lc ?



On Fri, Apr 25, 2014 at 8:38 AM, Scott Rossi sc...@tactilemedia.com wrote:

 Thanks Simon.  This will likely do what I need.

 But I'd really like to know how to do this with lcserver.  That's the
 point, right?  Not to have to rely on PHP?  :-)

 What's the LC equivalent of what readfile() is doing below?

 Thanks  Regards,

 Scott Rossi
 Creative Director
 Tactile Media, UX/UI Design




 On 4/24/14 11:03 PM, Simon Smith he...@simonsmith.co wrote:

 Hi Scott
 
 I have done something similar in php before, where a page loads, and then
 the file starts downloading a few seconds later, without leaving the main
 page.
 
 The main page contains a refresh tag that loads the script that starts the
 download:
 
 meta http-equiv=refresh content=2;url=sendfile.php /
 
 and then the sendfile.php consists of:
 
 ?php
 header('Content-type: application/pdf');
 header('Content-Disposition: attachment; filename=' .
 basename('filename.pdf') . '');
 header('Content-Transfer-Encoding: binary');
 readfile($filename);
 ?
 
 Hope this helps.
 Simon
 
 
 On Fri, Apr 25, 2014 at 7:21 AM, Scott Rossi sc...@tactilemedia.com
 wrote:
 
  Hi Peter:
 
  I started setting up a test page to demonstrate, and now I can't get
  anything to work, not even my single page test which worked a dozen
 times
  yesterday.  [sigh] Not sure what changed.
 
  At any rate, I've seen PHP examples that involve setting content headers
  to facilitate a file transfer, so I figured since lcserver operates
  similarly, it should be possible to initiate the download of a zipped
 file
  (or any file).
 
  Any examples out there that someone can point me to?
 
  Thanks  Regards,
 
  Scott Rossi
  Creative Director
  Tactile Media, UX/UI Design
 
 
 
 
  On 4/24/14 6:17 PM, Peter W A Wood peterwaw...@gmail.com wrote:
 
  Hi Scott
  
  What is the URL of the iframe? Does it include characters such as ?
 or
   ?
  
  Regards
  
  Peter
  
  On 25 Apr 2014, at 08:29, Scott Rossi wrote:
  
   Hello List:
  
   I'm hoping someone knowledgable about server stuff has a solution to
 a
   problem I have delivering a file using lcServer via an iframe.
  
   I'm using lcServer with the following code to trigger a file
 download:
  
   put url (binfile:files/sound.zip) into theFile
   put header Content-Disposition: attachment; filename=  quote 
   sound.zip  quote
   put new header Content-Type: application/force-download
   put new header Content-Type: application/zip
   put new header Content-Type: application/octet-stream
   put new header Content-Type: application/download
   put header Content-Description: File Transfer
   put header Content-Length:  the length of theFile
   put theFile
  
   This appears to work fine from basic web page -- a download is
 triggered
   in the browser and the file is written to the drive.
  
   When I run the same code on a page within an iframe, I get the raw
 file
   code posted to the iframe. :-(
  
   All pages reside in the same domain (no cross domain issues) so I'm
 at a
   loss on how to deal with this.  Any ideas?
  
   Thanks  Regards,
  
   Scott Rossi
   Creative Director
   Tactile Media, UX/UI Design
  
  
  
  
   ___
   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
 
 
 
 
 --
 
 *Simon Smith*
 *seo, online marketing, web development*
 
 w. http://www.simonsmith.co
 m. +27 83 306 7862
 ___
 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




-- 

*Simon Smith*
*seo

Re: Email Using LiveCode Server?

2014-04-22 Thread Simon Smith
What about using a service like mandrill to handle the sending of emails?

Simon


On Tue, Apr 22, 2014 at 4:45 AM, J. Landman Gay jac...@hyperactivesw.comwrote:

 On 4/21/14, 6:06 PM, Scott Rossi wrote:

 Some time ago, DreamHost stepped up their anti-spam practices, and
 disabled the ability of sending mail from an address that is not connected
 to any of your hosted domains.  Clearly this makes sense.  But the form I
 have uses the sender's email in the from variable, which apparently gets
 rejected by the mail process.  As soon as I changed the from address to
 one of my domain addresses, sendmail worked right away.


 Thanks for this, I wouldn't have guessed. It does make sense, but I
 wouldn't have figured it out.

 --
 Jacqueline Landman Gay | jac...@hyperactivesw.com
 HyperActive Software   | http://www.hyperactivesw.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




-- 

*Simon Smith*
*seo, online marketing, web development*

w. http://www.simonsmith.co
m. +27 83 306 7862
___
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


Do in browser not working?

2012-11-13 Thread Simon Smith
I've been trying to execute some basic JavaScript tests in the IDE on OSX.

*on* mouseUp
*do* result = urlParams in browser
*-- put 12131232 into myScore
 *   *-- do alert ('   myScore  '); in browser
 **end* mouseUp

However although the script compiles, the debugger complains and I can;t
get anything to work. There is no mention in the help either - has this
feature been dropped somewhere along the road?
___
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