Livecode Content Management System

2017-12-01 Thread Alejandro Tejada via use-livecode
Andre Garzia wrote:
> If you choose to store your data on flat files and use git
> on that folder, you get branching, rollback and backups
> for free for your CMS.

Those data flat files could be stored as base64 encoded
text files, Right?

Al
___
use-livecode mailing list
use-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: Q re multilingual mobile apps

2017-12-01 Thread Richard Gaskin via use-livecode

Good find, Paul.  Thanks.  I'll pass that tip along.

--
 Richard Gaskin
 Fourth World Systems

Paul Hibbert wrote:
> According to the dictionary, you should be able to use
> mobileCurrentLocale(), but I don’t know what the specific results
> would be, as the dictionary example states “en_US” whereas the
> equivalent result shown in the settings on iOS is “English (U.S.)”,
> so some careful investigations may be necessary.
>
>> On 1 Dec 2017, at 09:22, Richard Gaskin via use-livecode 
 wrote:

>>
>> Interesting question in the forums that has me stumped:
>>
>> If you have an app where you've worked out multilingual support, 
what function can we call to determine the device's current language 
setting?

>>
>> http://forums.livecode.com/viewtopic.php?f=7=30081
>>
>> --
>> Richard Gaskin
>> Fourth World Systems



___
use-livecode mailing list
use-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] The Internet is Living on Borrowed Time

2017-12-01 Thread Andre Garzia via use-livecode
Hey,

A friend of mine gave a talk at BrazilJS entitled "the end of the web", be
aware that BrazilJS is the largest Javascript conference in the world, so
this is quite a spotlight (I gave a talk there this year too). He later
posted an article with same content in English at
https://staltz.com/the-web-began-dying-in-2014-heres-how.html

This might interest you. Many developers, me included, are looking at
decentralized solutions like SecureScuttlebutt and DAT.

Cheers

On Thu, Nov 30, 2017 at 5:10 PM, Alejandro Tejada via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi Bob,
>
> > Well it must be true. It was on the internet.
>
> Funny enough, we are on the Internet, too. :-D
> Staying outside the looping groundhog day!
> http://www.imdb.com/title/tt0107048/
>
> Jokes aside, I have to pause for a while to catch up
> with pending projects and new ideas.
> Too much to do and too little time.
>
> Al
>
> On Tue, Nov 28, 2017 at 7:34 PM, Alejandro Tejada
>  wrote:
> >
> > This is Bryan Lunduke's today advice about the Internet:
> >
> > "Use the Internet for what it's good for.
> > Enjoy it. Plan for it not existing"
> >
> > http://lunduke.com/2017/11/28/the-internet-is-living-on-borrowed-time/
> > https://www.youtube.com/watch?v=1VD_pJOFnZ0
> >
> > Recently, I asked a similar question in slashdot:
> > https://ask.slashdot.org/story/17/11/13/2319243/ask-slashdot-which-
> softwaredevices-are-unusable-without-connecting-to-the-internet/
> >
> > Surprisingly, most slashdot answers suggests that too many developers
> > actually are resigned to live in this brave new world of software and
> devices
> > that stubbornly and needlessly requires 24/7 internet access to keep
> working. :-(
> >
> > Al
>
> ___
> use-livecode mailing list
> use-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


Re: Livecode Content Management System

2017-12-01 Thread Andre Garzia via use-livecode
Hey Alex,

Long time, no see! Hope all is well over there. Its that time again when I
pop up out of nowhere and write a long email, sorry for the longform text
but I am kind of a sucker for CMSs.

as pointed before by Ralf, CMSs are tricky business and quite hard to get
it right. It is easy to get something working but making it right for your
users and also safe is quite hard indeed and thats why I want to share some
opinions from someone who has done a lot in this space before with
different degrees of success, just please bear in mind that this is my
opinion and your experience may vary.

Using a more widespread language such as PHP or Python will make it easier
to find content about CMS but this convenience might be less useful when
compared to your expertise in LC. Using the language you know well tend to
lead to a saner workflow than "lets learn or get better with $LANGUAGE so
that we can build $PRODUCT", if you want to build a product that you will
ship and reuse, better go with something you have pleasure working with
even if there is few literature about how to apply LC to the task at hand.

There will be a lot of challenges, specially related to interfacing with
third-party stuff or dealing with common modern tasks as we lack a lot in
terms of libraries when compared to PHP and NodeJS (and basically all the
other languages out there used in web). LC is quite powerful but to do
proper web work you will probably require reinventing the non-existing
wheel every once and again. RevIgniter will get you quite far thought and
Ralf is just an amazing guy that deserves tons of kudos and cumplimentary
drinks (or sodas, or juice, no idea what he likes) from us at the next
conference.

The main problem I see when using LC for web is that we tend to use LC as
if it was PHP and forget all the features that makes it powerful. Many who
have recent contact with me knows that I am absolute believer in LC power
on the Desktop, and that I tend to use other technologies when developing
web or mobile even though LC can do both, it is just a matter of
preference. What I think would be a unique selling point for a CMS built
with LC is embracing the Desktop. Other CMSs such as the PHP built ones
require a complex web interface to administrate it full of thousands of
moving parts. Usually it is on these admin interfaces that all the
problems, bugs and invasions happen. Instead of treating LC Server as a
readable PHP engine and working just like PHP developers do, you can do
something that they can't, you can ship real, proper, Desktop tool that
works well and offline and syncs with the main server when needed.

If I was building a CMS today with LC Server, I would build an API server,
something that receives and responds JSON or GraphQL (if we ever write a
GraphQL library). I would build a Desktop admin tool with a UX better than
a web interface in half the time it would take to build a web interface.
The presentation part with the templates and so on, I would delegate to
RevIgniter.

If I may give you some tidbits to check out that might be interesting for
your project:

* Check GravCMS model of data storage. It is a quite good CMS built with
PHP that doesn't use a RDBMS. All the posts are flat-files on disk, it is a
very powerful approach and then you don't need to worry about SQL injection.
* If you build a Desktop app, then, you can use something like a "bundled
revserver" to run the whole system locally thus enabling the user to fiddle
with the site even when not connected to the internet (sync later)
* If your Desktop admin app is based on a feature complete library for your
own CMS, then you can create custom stacks for specific clients or needs
thus providing value and care that they usually can't find elsewhere.
* By not having an web admin interface, you reduce the "attack surface" of
your system.
* If you choose to store your data on flat files and use git on that
folder, you get branching, rollback and backups for free for your CMS.
* If you do what I mentioned above, you also can collaborate with others
running the Desktop admin and its local web server, thus enabling
distributed development of the site and deployment to production later.

I can go on for ours regarding CMS and ideas, specially because I am not
the one implementing it, I am just venting out information..

Om om
andre

On Fri, Dec 1, 2017 at 5:20 PM, Simon Smith via use-livecode <
use-livecode@lists.runrev.com> wrote:

> 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 

Re: Trapping multiple keystrokes

2017-12-01 Thread J. Landman Gay via use-livecode

It's a function, so try

get flushEvents("autoKey")
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com



On December 1, 2017 4:05:20 PM Kaveh Bazargan via use-livecode 
 wrote:



Hi Paul

It looks like just what I need and thanks for that, but it does not do the
job in my stack and in the single field stack with one line added:


on arrowKey theKey
   put 1 into increment
   put me into current_value
   if theKey is "up" then
  put current_value + increment into the target
  repeat with i = 1 to 100
 put 1+i into temp
  end repeat
   end if -- up
   if theKey is "down" then
  put current_value - increment into the target
   end if -- down
   flushEvents("autoKey")
   pass arrowKey
end arrowKey

(note flushEvents near end)

The stack moves from the front so it no longer sees the arrows. This is a
separate problem I have had. (sorry to bring up this second issue.) Cannot
work out how to bring forward the main stack

On 1 December 2017 at 21:45, Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:


On 12/1/2017 1:00 PM, Paul Dupuis via use-livecode wrote:
> On 12/1/2017 12:52 PM, Kaveh Bazargan via use-livecode wrote:
>> I have a field with a number in it. when focused, I want the value to
go up
>> and down with the up/down arrow keys. The trouble is that if I keep the
key
>> down, it traps multiple keydown messages that continue after the key is
>> released.
>>
>> How can I ensure that message are terminated as soon as arrow key is
>> released?
>>
> look at the dictionary entries for 'the pendingMessages' and the
> 'cancel' command
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
what you actually want is flushEvents(eventType) -- see dictionary


just execute flushEvents("autoKey") when you handler is done to clear
extraneous arrowkey messages


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





--
Kaveh Bazargan
Director
River Valley Technologies  • Twitter
 • LinkedIn

Phone +44 7771 824 111
___
use-livecode mailing list
use-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: Trapping multiple keystrokes

2017-12-01 Thread Kaveh Bazargan via use-livecode
Hi Paul

It looks like just what I need and thanks for that, but it does not do the
job in my stack and in the single field stack with one line added:


on arrowKey theKey
   put 1 into increment
   put me into current_value
   if theKey is "up" then
  put current_value + increment into the target
  repeat with i = 1 to 100
 put 1+i into temp
  end repeat
   end if -- up
   if theKey is "down" then
  put current_value - increment into the target
   end if -- down
   flushEvents("autoKey")
   pass arrowKey
end arrowKey

(note flushEvents near end)

The stack moves from the front so it no longer sees the arrows. This is a
separate problem I have had. (sorry to bring up this second issue.) Cannot
work out how to bring forward the main stack

On 1 December 2017 at 21:45, Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On 12/1/2017 1:00 PM, Paul Dupuis via use-livecode wrote:
> > On 12/1/2017 12:52 PM, Kaveh Bazargan via use-livecode wrote:
> >> I have a field with a number in it. when focused, I want the value to
> go up
> >> and down with the up/down arrow keys. The trouble is that if I keep the
> key
> >> down, it traps multiple keydown messages that continue after the key is
> >> released.
> >>
> >> How can I ensure that message are terminated as soon as arrow key is
> >> released?
> >>
> > look at the dictionary entries for 'the pendingMessages' and the
> > 'cancel' command
> >
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> what you actually want is flushEvents(eventType) -- see dictionary
>
>
> just execute flushEvents("autoKey") when you handler is done to clear
> extraneous arrowkey messages
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



-- 
Kaveh Bazargan
Director
River Valley Technologies  • Twitter
 • LinkedIn

Phone +44 7771 824 111
___
use-livecode mailing list
use-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: Trapping multiple keystrokes

2017-12-01 Thread Paul Dupuis via use-livecode
On 12/1/2017 1:00 PM, Paul Dupuis via use-livecode wrote:
> On 12/1/2017 12:52 PM, Kaveh Bazargan via use-livecode wrote:
>> I have a field with a number in it. when focused, I want the value to go up
>> and down with the up/down arrow keys. The trouble is that if I keep the key
>> down, it traps multiple keydown messages that continue after the key is
>> released.
>>
>> How can I ensure that message are terminated as soon as arrow key is
>> released?
>>
> look at the dictionary entries for 'the pendingMessages' and the
> 'cancel' command
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
what you actually want is flushEvents(eventType) -- see dictionary


just execute flushEvents("autoKey") when you handler is done to clear
extraneous arrowkey messages


___
use-livecode mailing list
use-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: Trapping multiple keystrokes

2017-12-01 Thread Kaveh Bazargan via use-livecode
On 1 December 2017 at 21:29, J. Landman Gay via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On 12/1/17 3:16 PM, Kaveh Bazargan via use-livecode wrote:
>
>> It is the final action I have a problem with, as dozens of arrow key
>> actions are held in the buffer. The number keeps increasing or decreasing
>> and background actions are triggered.
>>
>> Here is a minimal version of the handler I have:
>>
>> on arrowKey theKey
>> if theKey is "up" then
>>put current_value + increment into the target
>> end if -- up
>> if theKey is "down" then
>>put current_value - increment into the target
>> end if -- down
>> pass arrowKey
>> end arrowKey
>>
>
> Works okay here using only the simplified handler you posted (after I
> added values to the variables increment and current_value.) I'm testing in
> LC 9 dp 10. My test handler, located in a field script:
>
> on arrowKey theKey
>   put 1 into increment
>   put me into current_value
>   if theKey is "up" then
> put current_value + increment into the target
>   end if -- up
>   if theKey is "down" then
> put current_value - increment into the target
>   end if -- down
>   pass arrowKey
> end arrowKey
>
> Does this simplified handler work for you? If so, then something farther
> along the message path is duplicating the messages. Unless you need it, try
> removing the "pass" statement.


Thank you so much Jacqueline

This indeed works. But if something is done in the background then the
problem starts. (I am using the same version of LiveCode.)

I tried this:


on arrowKey theKey
   put 1 into increment
   put me into current_value
   if theKey is "up" then
  put current_value + increment into the target
  repeat with i = 1 to 100
 put 1+i into temp
  end repeat
   end if -- up
   if theKey is "down" then
  put current_value - increment into the target
   end if -- down
   pass arrowKey
end arrowKey

The down arrow works but up arrow has the problem I have mentioned.


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



-- 
Kaveh Bazargan
Director
River Valley Technologies  • Twitter
 • LinkedIn

Phone +44 7771 824 111
___
use-livecode mailing list
use-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: Trapping multiple keystrokes

2017-12-01 Thread J. Landman Gay via use-livecode

On 12/1/17 3:16 PM, Kaveh Bazargan via use-livecode wrote:

It is the final action I have a problem with, as dozens of arrow key
actions are held in the buffer. The number keeps increasing or decreasing
and background actions are triggered.

Here is a minimal version of the handler I have:

on arrowKey theKey
if theKey is "up" then
   put current_value + increment into the target
end if -- up
if theKey is "down" then
   put current_value - increment into the target
end if -- down
pass arrowKey
end arrowKey


Works okay here using only the simplified handler you posted (after I 
added values to the variables increment and current_value.) I'm testing 
in LC 9 dp 10. My test handler, located in a field script:


on arrowKey theKey
  put 1 into increment
  put me into current_value
  if theKey is "up" then
put current_value + increment into the target
  end if -- up
  if theKey is "down" then
put current_value - increment into the target
  end if -- down
  pass arrowKey
end arrowKey

Does this simplified handler work for you? If so, then something farther 
along the message path is duplicating the messages. Unless you need it, 
try removing the "pass" statement.


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


Re: Trapping multiple keystrokes

2017-12-01 Thread dunbarx via use-livecode
If you have this in the script of a field:

on arrowKey tKey
   add 1 to me
end arrowKey

The continuous addition stops instantly after release. As Jacque mentioned,
how are you doing it?

Craig Newman



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

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


Re: Trapping multiple keystrokes

2017-12-01 Thread J. Landman Gay via use-livecode
My understanding of the question is that keydown messages are being 
queued and continue to run to exhaustion even after the key is no longer 
pressed. I couldn't duplicate that behavior.


The rawkeydown handler below will manage keypresses but won't solve a 
backed-up message queue. That's why I asked what the handler looked 
like, there may be something there that is causing the behavior.


Or we've all misunderstood the question. :)

On 12/1/17 3:06 PM, Mike Bonner via use-livecode wrote:

If you're using rawkeydown you can check to see if the key is actually
still down before doing any processing..

on rawkeydown  pKey
 -- since you're checking specifically for arrow keys, you can use pkey
as the first part of the filter..

if pkey is among the items of "65361,65362,65363,65364" then
-- then determine which arrow key(s) are down and respond accordingly.
if 65361 is among the items of the keysdown then -- left arrow key is
currently down
   --do stuff for left arrow key here
end if

if 65362 is among the items of the keysdown then -- up arrow key is
currently down
   --do stuff for up arrow key here
end if
if 65363 is among the items of the keysdown then -- right arrow key is
currently down
 --  do stuff for right arrow key here
end if
if 65364 is among the items of the keysdown then -- downarrow key is
currently down
 --  do stuff for down arrow key here
end if

else
  pass rawkeydown --if a key other than an arrow was pressed, pass it on
end if

end rawkeydown

On Fri, Dec 1, 2017 at 1:27 PM, Richmond Mathewson via use-livecode <
use-livecode@lists.runrev.com> wrote:


I may be a bit stupid, but as far as I understand you are trying to do
this:

1. You keep an arrow key pressed down,

2. You do other things with other keys while the arrow key is pressed down.

I cannot begin to try to answer your question until you either
confirm what I have written or say that I am wrong and then
explain, clearly, what you want to do.

Richmond.

On 1/12/17 10:03 pm, J. Landman Gay via use-livecode wrote:


On 12/1/17 11:52 AM, Kaveh Bazargan via use-livecode wrote:


I have a field with a number in it. when focused, I want the value to go
up
and down with the up/down arrow keys. The trouble is that if I keep the
key
down, it traps multiple keydown messages that continue after the key is
released.

How can I ensure that message are terminated as soon as arrow key is
released?



What handler are you using? I just did a test with rawKeyDown and
arrowKey and they all stop when I release the key. (Though arrowkey seems
to be ignoring left and right keys in LC 9 for some reason.)



___
use-livecode mailing list
use-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




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


Re: Trapping multiple keystrokes

2017-12-01 Thread Kaveh Bazargan via use-livecode
Thanks for the replies guys.

Richmond, sorry I was not clear. It is simpler:

   - I click in a field that has a value
   - I press arrow key (up or down)
   - I want the value to change up or down in that field
  - After the value is changed, other actions are triggered, e.g.
  setting the value of a scrollbar to the same value
   - The process continues while I have the arrowkey pressed
   - As soon as I release the system is idle (except for the last arrow
   action that continues)

It is the final action I have a problem with, as dozens of arrow key
actions are held in the buffer. The number keeps increasing or decreasing
and background actions are triggered.

Here is a minimal version of the handler I have:

on arrowKey theKey
   if theKey is "up" then
  put current_value + increment into the target
   end if -- up
   if theKey is "down" then
  put current_value - increment into the target
   end if -- down
   pass arrowKey
end arrowKey



On 1 December 2017 at 20:27, Richmond Mathewson via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I may be a bit stupid, but as far as I understand you are trying to do
> this:
>
> 1. You keep an arrow key pressed down,
>
> 2. You do other things with other keys while the arrow key is pressed down.
>
> I cannot begin to try to answer your question until you either
> confirm what I have written or say that I am wrong and then
> explain, clearly, what you want to do.
>
> Richmond.
>
> On 1/12/17 10:03 pm, J. Landman Gay via use-livecode wrote:
>
>> On 12/1/17 11:52 AM, Kaveh Bazargan via use-livecode wrote:
>>
>>> I have a field with a number in it. when focused, I want the value to go
>>> up
>>> and down with the up/down arrow keys. The trouble is that if I keep the
>>> key
>>> down, it traps multiple keydown messages that continue after the key is
>>> released.
>>>
>>> How can I ensure that message are terminated as soon as arrow key is
>>> released?
>>>
>>>
>> What handler are you using? I just did a test with rawKeyDown and
>> arrowKey and they all stop when I release the key. (Though arrowkey seems
>> to be ignoring left and right keys in LC 9 for some reason.)
>>
>>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



-- 
Kaveh Bazargan
Director
River Valley Technologies  • Twitter
 • LinkedIn

Phone +44 7771 824 111
___
use-livecode mailing list
use-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: Trapping multiple keystrokes

2017-12-01 Thread Mike Bonner via use-livecode
If you're using rawkeydown you can check to see if the key is actually
still down before doing any processing..

on rawkeydown  pKey
-- since you're checking specifically for arrow keys, you can use pkey
as the first part of the filter..

if pkey is among the items of "65361,65362,65363,65364" then
   -- then determine which arrow key(s) are down and respond accordingly.
   if 65361 is among the items of the keysdown then -- left arrow key is
currently down
  --do stuff for left arrow key here
   end if

   if 65362 is among the items of the keysdown then -- up arrow key is
currently down
  --do stuff for up arrow key here
   end if
   if 65363 is among the items of the keysdown then -- right arrow key is
currently down
--  do stuff for right arrow key here
   end if
   if 65364 is among the items of the keysdown then -- downarrow key is
currently down
--  do stuff for down arrow key here
   end if

else
 pass rawkeydown --if a key other than an arrow was pressed, pass it on
end if

end rawkeydown

On Fri, Dec 1, 2017 at 1:27 PM, Richmond Mathewson via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I may be a bit stupid, but as far as I understand you are trying to do
> this:
>
> 1. You keep an arrow key pressed down,
>
> 2. You do other things with other keys while the arrow key is pressed down.
>
> I cannot begin to try to answer your question until you either
> confirm what I have written or say that I am wrong and then
> explain, clearly, what you want to do.
>
> Richmond.
>
> On 1/12/17 10:03 pm, J. Landman Gay via use-livecode wrote:
>
>> On 12/1/17 11:52 AM, Kaveh Bazargan via use-livecode wrote:
>>
>>> I have a field with a number in it. when focused, I want the value to go
>>> up
>>> and down with the up/down arrow keys. The trouble is that if I keep the
>>> key
>>> down, it traps multiple keydown messages that continue after the key is
>>> released.
>>>
>>> How can I ensure that message are terminated as soon as arrow key is
>>> released?
>>>
>>>
>> What handler are you using? I just did a test with rawKeyDown and
>> arrowKey and they all stop when I release the key. (Though arrowkey seems
>> to be ignoring left and right keys in LC 9 for some reason.)
>>
>>
> ___
> use-livecode mailing list
> use-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: Trapping multiple keystrokes

2017-12-01 Thread Richmond Mathewson via use-livecode

I may be a bit stupid, but as far as I understand you are trying to do this:

1. You keep an arrow key pressed down,

2. You do other things with other keys while the arrow key is pressed down.

I cannot begin to try to answer your question until you either
confirm what I have written or say that I am wrong and then
explain, clearly, what you want to do.

Richmond.

On 1/12/17 10:03 pm, J. Landman Gay via use-livecode wrote:

On 12/1/17 11:52 AM, Kaveh Bazargan via use-livecode wrote:
I have a field with a number in it. when focused, I want the value to 
go up
and down with the up/down arrow keys. The trouble is that if I keep 
the key

down, it traps multiple keydown messages that continue after the key is
released.

How can I ensure that message are terminated as soon as arrow key is
released?



What handler are you using? I just did a test with rawKeyDown and 
arrowKey and they all stop when I release the key. (Though arrowkey 
seems to be ignoring left and right keys in LC 9 for some reason.)




___
use-livecode mailing list
use-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: Trapping multiple keystrokes

2017-12-01 Thread J. Landman Gay via use-livecode

On 12/1/17 11:52 AM, Kaveh Bazargan via use-livecode wrote:

I have a field with a number in it. when focused, I want the value to go up
and down with the up/down arrow keys. The trouble is that if I keep the key
down, it traps multiple keydown messages that continue after the key is
released.

How can I ensure that message are terminated as soon as arrow key is
released?



What handler are you using? I just did a test with rawKeyDown and 
arrowKey and they all stop when I release the key. (Though arrowkey 
seems to be ignoring left and right keys in LC 9 for some reason.)


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


Re: IDE breaks down over time

2017-12-01 Thread Dr. Hawkins via use-livecode
On Fri, Dec 1, 2017 at 10:24 AM, Bob Sneidar via use-livecode
 wrote:
> You are saying the IDE process is maxing out? There was a known issue with 
> notifications doing this in
> MacOS 10.11. Are you creating alerts in your apps?


Was this to me?

I don't create alerts, but there's the occasional dialog box.

Haven't looked to see which process has gone nuts; it's just that
sometimes things go non responsive and/or
the message box cannot be brought up.  I think the rest of the menu is
active but does nothing when this happens,
but it hasn't bitten me enough to make sure.




-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462

___
use-livecode mailing list
use-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 think are the useful ideas in
> Wordpress (but without any tendency towards blogs). It will be relatively
> simple.
>
> It won't be:
>  - smooth, slick and all-powerful like WP
>  

Re: goofy question about audioClip

2017-12-01 Thread Richmond Mathewson via use-livecode

Now there's a nifty and valuable piece of information.

And here's the obvious riposte:

http://www.audacityteam.org/

Richmond.

On 1/12/17 7:28 pm, tbodine via use-livecode wrote:

I've found when an audio file sounds like white noise in Livecode, it can
often be fixed by opening the file in an audio editor and re-exporting it
with settings of 16-bit, 44100 Hz sample rate, mono.

-- Tom B.



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

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


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


Re: goofy question about audioClip

2017-12-01 Thread Richmond Mathewson via use-livecode

That's a great help, thank you very much indeed.

Richmond.

On 1/12/17 6:08 pm, Warren Samples via use-livecode wrote:

On 11/29/2017 02:27 PM, Richmond Mathewson via use-livecode wrote:

Is there a way to play audioClips in Linux?

The tutorial makes no mention of this feature being restricted to 
some platforms.



audioclips work in Linux. I don't know what dependencies you need to 
satisfy, and you'll have to do some experimenting with file formats 
(wav might be the safest bet) and the bit rate and sample rate to find 
those that work and those that don't. My experience is that some 
sounds (maybe very short ones?) seem not to do anything in the IDE but 
play fine in a standalone.


Looking at this page:

http://www.music.helsinki.fi/tmt/opetus/uusmedia/esim/index-e.html

the first three sample wav files "play" as white noise when imported 
as audioclips (in the IDE) but the u-law encoded one reproduces nicely.



Warren

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

http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: IDE breaks down over time

2017-12-01 Thread Bob Sneidar via use-livecode
You are saying the IDE process is maxing out? There was a known issue with 
notifications doing this in MacOS 10.11. Are you creating alerts in your apps? 

Bob S


> On Dec 1, 2017, at 10:21 , Dr. Hawkins via use-livecode 
>  wrote:
> 
> On Fri, Dec 1, 2017 at 9:53 AM, Mark Wieder via use-livecode
>  wrote:
> 
>> Just got this situation again. The IDE completely unresponsive, all other
>> open apps working properly. Top shows LC using 98% of the CPU, and a kill -9
>> got things back to normal. I suppose leaving the IDE open overnight wasn't a
>> good idea.
> 
> Overnight doesn't seem to make a difference for me.  This seems to
> happen suddenly during the day while working.
> 
> I don't use it after overnight; though; I quit to force it to bump the
> version of my source stacks.
> 
> 
> -- 
> Dr. Richard E. Hawkins, Esq.
> (702) 508-8462


___
use-livecode mailing list
use-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: IDE breaks down over time

2017-12-01 Thread Dr. Hawkins via use-livecode
On Fri, Dec 1, 2017 at 9:53 AM, Mark Wieder via use-livecode
 wrote:

> Just got this situation again. The IDE completely unresponsive, all other
> open apps working properly. Top shows LC using 98% of the CPU, and a kill -9
> got things back to normal. I suppose leaving the IDE open overnight wasn't a
> good idea.

Overnight doesn't seem to make a difference for me.  This seems to
happen suddenly during the day while working.

I don't use it after overnight; though; I quit to force it to bump the
version of my source stacks.


-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462

___
use-livecode mailing list
use-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: Q re multilingual mobile apps

2017-12-01 Thread Paul Hibbert via use-livecode
According to the dictionary, you should be able to use mobileCurrentLocale(), 
but I don’t know what the specific results would be, as the dictionary example 
states “en_US” whereas the equivalent result shown in the settings on iOS is 
“English (U.S.)”, so some careful investigations may be necessary.

Paul

> On 1 Dec 2017, at 09:22, Richard Gaskin via use-livecode 
>  wrote:
> 
> Interesting question in the forums that has me stumped:
> 
> If you have an app where you've worked out multilingual support, what 
> function can we call to determine the device's current language setting?
> 
> http://forums.livecode.com/viewtopic.php?f=7=30081
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> 
> ___
> use-livecode mailing list
> use-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: Trapping multiple keystrokes

2017-12-01 Thread Paul Dupuis via use-livecode
On 12/1/2017 12:52 PM, Kaveh Bazargan via use-livecode wrote:
> I have a field with a number in it. when focused, I want the value to go up
> and down with the up/down arrow keys. The trouble is that if I keep the key
> down, it traps multiple keydown messages that continue after the key is
> released.
>
> How can I ensure that message are terminated as soon as arrow key is
> released?
>
look at the dictionary entries for 'the pendingMessages' and the
'cancel' command


___
use-livecode mailing list
use-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: IDE breaks down over time

2017-12-01 Thread Mark Wieder via use-livecode

On 11/28/2017 12:19 PM, Sannyasin Brahmanathaswami via use-livecode wrote:

4) suddenly no longer able to save or open the message box…


Just got this situation again. The IDE completely unresponsive, all 
other open apps working properly. Top shows LC using 98% of the CPU, and 
a kill -9 got things back to normal. I suppose leaving the IDE open 
overnight wasn't a good idea.


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

Trapping multiple keystrokes

2017-12-01 Thread Kaveh Bazargan via use-livecode
I have a field with a number in it. when focused, I want the value to go up
and down with the up/down arrow keys. The trouble is that if I keep the key
down, it traps multiple keydown messages that continue after the key is
released.

How can I ensure that message are terminated as soon as arrow key is
released?

-- 
Kaveh Bazargan
Director
River Valley Technologies  • Twitter
 • LinkedIn

Phone +44 7771 824 111
___
use-livecode mailing list
use-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: goofy question about audioClip

2017-12-01 Thread tbodine via use-livecode
I've found when an audio file sounds like white noise in Livecode, it can
often be fixed by opening the file in an audio editor and re-exporting it
with settings of 16-bit, 44100 Hz sample rate, mono. 

-- Tom B.



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

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


Q re multilingual mobile apps

2017-12-01 Thread Richard Gaskin via use-livecode

Interesting question in the forums that has me stumped:

If you have an app where you've worked out multilingual support, what 
function can we call to determine the device's current language setting?


http://forums.livecode.com/viewtopic.php?f=7=30081

--
 Richard Gaskin
 Fourth World Systems

___
use-livecode mailing list
use-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: goofy question about audioClip

2017-12-01 Thread Warren Samples via use-livecode

On 11/29/2017 02:27 PM, Richmond Mathewson via use-livecode wrote:

Is there a way to play audioClips in Linux?

The tutorial makes no mention of this feature being restricted to some 
platforms.



audioclips work in Linux. I don't know what dependencies you need to 
satisfy, and you'll have to do some experimenting with file formats (wav 
might be the safest bet) and the bit rate and sample rate to find those 
that work and those that don't. My experience is that some sounds (maybe 
very short ones?) seem not to do anything in the IDE but play fine in a 
standalone.


Looking at this page:

http://www.music.helsinki.fi/tmt/opetus/uusmedia/esim/index-e.html

the first three sample wav files "play" as white noise when imported as 
audioclips (in the IDE) but the u-law encoded one reproduces nicely.



Warren

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


Re: Livecode Content Management System

2017-12-01 Thread Ralf Bitter via use-livecode
Hi Alex,

here are my offhand and fairly blunt thoughts on your undertaking.
First of all I think that the primary challenge in building a CMS, no matter
if you use LiveCode, PHP or whatever, is to provide a tool for an audience
which is not that tech-savvy.
So, the process of managing web content should be made extremely
simple. In my opinion to achieve this goal it is crucial that the CMS
allows for most of the tasks inline editing in a very convenient way.
But all this means that the front-end is not less important than the
back-end and besides developing the back-end using LC, based on
revIgniter or not, one has to be prepared to write a lot of JavaScript code.
Personally I was thinking about developing a CMS for quite some time
but stayed away from doing it because it is such a huge task and
because it would not pay my bills.

Regarding Bootstrap: I like Bootstrap but in times of flexbox and
CSS grids I have a slight feeling that Bootstrap could become more
and more dispensable for your purpose, especially as you mentioned
that you try to reduce complexity.

Ralf




> On 1. Dec 2017, at 02:56, Alex Tweedly via use-livecode 
>  wrote:
> 
> So, I've decided to build LCMS - a Livecode Content Management System.
> 
> It will be (very loosely) based on what I think are the useful ideas in 
> Wordpress (but without any tendency towards blogs). It will be relatively 
> simple.
> 
> It won't be:
>  - smooth, slick and all-powerful like WP
>  - able to support (initially, and for some time) real independent 
> development of themes, plugins, auto-loading and updating, etc. etc. (yada, 
> yada, yada ...) - that might be done in a few [= 2 to 20 years]
> 
> It will be :
>  - based on Livecode (and extensible in LC)
>  - (I hope) simple and easy (for a LC developer) to understand, use and extend
>  - complete with at least one complete theme (based on Botstrap)
>  - (at some point) open source, on github, etc. under MIT liceense
>  - documented in some old-fashioned way (i.e. written, searchable, skimmable 
> tutorials - few or no Youtube videos to waste your time)
> 
> OK - enough of the advertising pitch :-)
> 
> Here are the requests for input 
> 
> 1.  has anyone tried this before ? and did you succeed ?  or why did you stop 
> ? any foreseeable problems to contend with ?
> 
> 2. am I just tilting at windmills and I should just go back to studying WP 
> and its plugins ?
> 
> 3. the current prototype is based on (or rather 'is written over' revIgniter).
> 
> I have very conflicting opinions of revIgniter
> + it's wonderful, it has a huge quantity of things it "just does" (in a 
> well documented, well tested, etc. way)  so that I don't need to think or 
> learn about them, etc. - I love it.
> - (a) it is intimately tied to LC server, with heavy dependency on 
> 'include' so it's impossible to (as I would want to do) test 99% of my code 
> in the IDE, with debugging etc. help.
> - (b) I *really* dislike the "rigLoadView" scheme - it forces (or seems 
> to force) far too much co-mingling of code and content within the view files, 
> and has no clear way to use "themes"
> 
> The current version of LCMS simply ignores the 'View' (and 'Model') part of 
> revIgniter, and generates all its output based on  ''pages' and 'themes'  
> (and 'menus') - but it sill benefits from all the other parts of revIgniter).
> 
> do you think it would be worth the (considerable) effort needed to remove the 
> dependency on rvIgniter in the hope of benefiting from the reduced 
> complexity, hopefully lower overhead, easier debugging a higher percentage 
> within the Ide, etc. ?
> 
> Thanks for any suggestions, input, etc.
> 
> Alex.


___
use-livecode mailing list
use-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 David Bovill via use-livecode
I code in LC and use the debugger testing revIgnitor controllers locally,
then upload them to the revIgniter site to test remotely. This happens all
within the script editor. I use stacks as libraries both locally and with
revIgnitor. That way I feel you get the best of both worlds. It works by
using a two way mapping between the revIgnitor controller and a Livecode
stack that is dynamically created from the controller.

What I’d be interested in is adding to this static site generation and
other utilities.

On Fri, 1 Dec 2017 at 15:14, Robert Brenstein via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I have been using LC to generate complete websites but I use LC only as
> a generator of HTML pages from data files and database content, using
> CSS for theming and HTML hierarchical template files that call LC
> functions through merge. I believe that Richard Gaskin is still selling
> a commercial product that does this in a more generic way.
>
> I have been thinking for a while to convert my setup into a more proper
> CMS but gave up at the planning stage once I realized how much effort
> that is. I also started playing with revIgniter and am really impressed
> with what it offers, but I came to a similar conclusion like you.
>
> I actually had a real CMS developed in MetaCard years ago. It was
> developed as a special-purpose product for a client and not a generic
> CMS. It broke because at the time I did not use proper modularizing and
> abstraction layers and keeping it compatible with the database engine
> became impossible at some point.
>
> BTW, wasn’t there a commercial CMS produced in LC (or whatever it was
> called at the time)? I think its name was Hemingway or sth like that.
>
> Robert
>
> On 1 Dec 2017, at 2:56, Alex Tweedly via use-livecode 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 think are the useful ideas
> > in Wordpress (but without any tendency towards blogs). It will be
> > relatively simple.
> >
> > It won't be:
> >  - smooth, slick and all-powerful like WP
> >  - able to support (initially, and for some time) real independent
> > development of themes, plugins, auto-loading and updating, etc. etc.
> > (yada, yada, yada ...) - that might be done in a few [= 2 to 20 years]
> >
> > It will be :
> >  - based on Livecode (and extensible in LC)
> >  - (I hope) simple and easy (for a LC developer) to understand, use
> > and extend
> >  - complete with at least one complete theme (based on Botstrap)
> >  - (at some point) open source, on github, etc. under MIT liceense
> >  - documented in some old-fashioned way (i.e. written, 

Re: Livecode Content Management System

2017-12-01 Thread Robert Brenstein via use-livecode
I have been using LC to generate complete websites but I use LC only as 
a generator of HTML pages from data files and database content, using 
CSS for theming and HTML hierarchical template files that call LC 
functions through merge. I believe that Richard Gaskin is still selling 
a commercial product that does this in a more generic way.


I have been thinking for a while to convert my setup into a more proper 
CMS but gave up at the planning stage once I realized how much effort 
that is. I also started playing with revIgniter and am really impressed 
with what it offers, but I came to a similar conclusion like you.


I actually had a real CMS developed in MetaCard years ago. It was 
developed as a special-purpose product for a client and not a generic 
CMS. It broke because at the time I did not use proper modularizing and 
abstraction layers and keeping it compatible with the database engine 
became impossible at some point.


BTW, wasn’t there a commercial CMS produced in LC (or whatever it was 
called at the time)? I think its name was Hemingway or sth like that.


Robert

On 1 Dec 2017, at 2:56, Alex Tweedly via use-livecode 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 think are the useful ideas 
in Wordpress (but without any tendency towards blogs). It will be 
relatively simple.


It won't be:
 - smooth, slick and all-powerful like WP
 - able to support (initially, and for some time) real independent 
development of themes, plugins, auto-loading and updating, etc. etc. 
(yada, yada, yada ...) - that might be done in a few [= 2 to 20 years]


It will be :
 - based on Livecode (and extensible in LC)
 - (I hope) simple and easy (for a LC developer) to understand, use 
and extend

 - complete with at least one complete theme (based on Botstrap)
 - (at some point) open source, on github, etc. under MIT liceense
 - documented in some old-fashioned way (i.e. written, searchable, 
skimmable tutorials - few or no Youtube videos to waste your time)


OK - enough of the advertising pitch :-)

Here are the requests for input 

1.  has anyone tried this before ? and did you succeed ?  or why did 
you stop ? any foreseeable problems to contend with ?


2. am I just tilting at windmills and I should just go back to 
studying WP and its plugins ?


3. the current prototype is based on (or rather 'is written over' 
revIgniter).


I have very conflicting opinions of revIgniter
    + it's wonderful, it has a huge quantity of things it "just 
does" (in a well documented, well tested, etc. way)  so that I don't 
need to think or learn about them, etc. - I love it.
    - (a) it is intimately tied to LC server, with heavy dependency 
on 'include' so it's impossible to (as I would want to do) test 99% of 
my code in the IDE, 

Re: Livecode Content Management System

2017-12-01 Thread Lagi Pittas via use-livecode
Hi Alex,

As much as I think revigniter is brilliant at what it does I really think
if this is going to be done it should be done in LC totally.

1. The first reason which you in  the fact brought up  that we could use
the IDE to debug
2. If PHP can do it why not Livecode?
3. I'm really hating coding in PHP now ,  not  nearly as much as I hated
Perl - but a pig with lipstick on is still a Pig
4. For ALL (and then some) of the reasons you gave  about Wordpress -
although I've done a fair few projects over the years but hated the fact
that the API is a moving target - or so it seems so.

Lagi

On 1 December 2017 at 01:56, 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 think are the useful ideas in
> Wordpress (but without any tendency towards blogs). It will be relatively
> simple.
>
> It won't be:
>  - smooth, slick and all-powerful like WP
>  - able to support (initially, and for some time) real independent
> development of themes, plugins, auto-loading and updating, etc. etc. (yada,
> yada, yada ...) - that might be done in a few [= 2 to 20 years]
>
> It will be :
>  - based on Livecode (and extensible in LC)
>  - (I hope) simple and easy (for a LC developer) to understand, use and
> extend
>  - complete with at least one complete theme (based on Botstrap)
>  - (at some point) open source, on github, etc. under MIT liceense
>  - documented in some old-fashioned way (i.e. written, searchable,
> skimmable tutorials - few or no Youtube videos to waste your time)
>
> OK - enough of the advertising pitch :-)
>
> Here are the requests for input 
>
> 1.  has anyone tried this before ? and did you succeed ?  or why did you
> stop ? any foreseeable problems to contend with ?
>
> 2. am I just tilting at windmills and I should just go back to studying WP
> and its plugins ?
>
> 3. the current prototype is based on (or rather 'is written over'
> revIgniter).
>
> I have very conflicting opinions of revIgniter
> + it's wonderful, it has a huge quantity of things it "just does" (in
> a well documented, well tested, etc. way)  so that I don't need to think or
> learn about them, etc. - I love it.
> - (a) it is intimately tied to LC server, with heavy dependency on
> 'include' so it's impossible to (as I would want to do) test 99% of my code
> in the IDE, with debugging etc. help.
> - (b) I *really* dislike the "rigLoadView" scheme - it forces (or
> seems to force) far too much co-mingling of code and content within the
> view files, and has no clear way to use "themes"
>
> The current version of LCMS simply ignores the 'View' (and 'Model') part
> of revIgniter, and generates all its output based on  

Re: Livecode Content Management System

2017-12-01 Thread Tom Glod via use-livecode
I recently started working with livecode server and revigniter after 5
years of strictly desktop dev..so I'd definately be able to help contribute
to the development.  I gotta say I love wordpress. but there is one
thing I love more than that and its Livecode.

So put me down for a yes.  Please post link to github project when you are
ready.

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

> On 01/12/2017 02:47, Alejandro Tejada via use-livecode wrote:
>
> Could your LCMS import (and use) templates and themes
>> from other CMS platforms like Joomla or WordPress?
>>
> Unlikely.
> Wordpress themes are written in PHP (or, if you like, HTML with a lot of
> embedded PHP), so it's hard to see how I could realistically import those.
> Joomla looks slightly more promising, but I'll need to dig a bit deeper; I
> suspect that before very long it too will turn into PHP code :-)
>
>> I would like to answer another questions, but
>> have no experience using RevIgniter, so could not
>> comment about your questions.
>>
>> Thanks
> Alex.
>
>
> ___
> use-livecode mailing list
> use-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 Alex Tweedly via use-livecode

On 01/12/2017 02:47, Alejandro Tejada via use-livecode wrote:


Could your LCMS import (and use) templates and themes
from other CMS platforms like Joomla or WordPress?

Unlikely.
Wordpress themes are written in PHP (or, if you like, HTML with a lot of 
embedded PHP), so it's hard to see how I could realistically import those.
Joomla looks slightly more promising, but I'll need to dig a bit deeper; 
I suspect that before very long it too will turn into PHP code :-)

I would like to answer another questions, but
have no experience using RevIgniter, so could not
comment about your questions.


Thanks
Alex.

___
use-livecode mailing list
use-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 David Bovill via use-livecode
Hi Alex, I'm working on this too in the coming weeks. I'd be happy to work
on it with you if it were on GitHub. I'm working on the following aspects:

   1. Static site generation and integration with relevant tool chains
   2. Integration with revIgniter
   3. Docker based hosting infrastructure


On 1 December 2017 at 01:56, 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 think are the useful ideas in
> Wordpress (but without any tendency towards blogs). It will be relatively
> simple.
>
> It won't be:
>  - smooth, slick and all-powerful like WP
>  - able to support (initially, and for some time) real independent
> development of themes, plugins, auto-loading and updating, etc. etc. (yada,
> yada, yada ...) - that might be done in a few [= 2 to 20 years]
>
> It will be :
>  - based on Livecode (and extensible in LC)
>  - (I hope) simple and easy (for a LC developer) to understand, use and
> extend
>  - complete with at least one complete theme (based on Botstrap)
>  - (at some point) open source, on github, etc. under MIT liceense
>  - documented in some old-fashioned way (i.e. written, searchable,
> skimmable tutorials - few or no Youtube videos to waste your time)
>
> OK - enough of the advertising pitch :-)
>
> Here are the requests for input 
>
> 1.  has anyone tried this before ? and did you succeed ?  or why did you
> stop ? any foreseeable problems to contend with ?
>
> 2. am I just tilting at windmills and I should just go back to studying WP
> and its plugins ?
>
> 3. the current prototype is based on (or rather 'is written over'
> revIgniter).
>
> I have very conflicting opinions of revIgniter
> + it's wonderful, it has a huge quantity of things it "just does" (in
> a well documented, well tested, etc. way)  so that I don't need to think or
> learn about them, etc. - I love it.
> - (a) it is intimately tied to LC server, with heavy dependency on
> 'include' so it's impossible to (as I would want to do) test 99% of my code
> in the IDE, with debugging etc. help.
> - (b) I *really* dislike the "rigLoadView" scheme - it forces (or
> seems to force) far too much co-mingling of code and content within the
> view files, and has no clear way to use "themes"
>
> The current version of LCMS simply ignores the 'View' (and 'Model') part
> of revIgniter, and generates all its output based on  ''pages' and
> 'themes'  (and 'menus') - but it sill benefits from all the other parts of
> revIgniter).
>
> do you think it would be worth the (considerable) effort needed to remove
> the dependency on rvIgniter in the hope of benefiting from the reduced
> complexity, hopefully lower overhead, easier