Re: Announcement: SVG Icon Tool

2018-01-17 Thread Brian Milby via use-livecode
I've updated the version with a couple of minor fixes:
https://milby.us/lc/SvgIconTool.180114-1700.zip

Thanks,
Brian

On Sun, Jan 14, 2018 at 10:06 PM, Kay C Lan via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Very nice! Thank you so much:-)
>
> On Mon, Jan 15, 2018 at 7:33 AM, J. Landman Gay via use-livecode
>  wrote:
> > Anyone who hasn't looked at this stack really should. It's what we've
> needed
> > ever since SVG was introduced to LC.
> >
> >
> > On 1/13/18 11:25 PM, Brian Milby via use-livecode wrote:
> >>
> >> I've posted an updated version of my SVG Icon Tool to my server with a
> >> large number of icons included (everything from
> >> https://leungwensen.github.io/svg-icon except the flags which needed
> >> color).  I've also included the feather icons that were mentioned.
> >>
> >> Direct link to the download:
> >> https://milby.us/lc/SvgIconTool.180113-2301.zip
> >>
> >> Latest forum post on the tool:
> >> http://forums.livecode.com/viewtopic.php?f=10=30411=162655#p162655
> >>
> >> Once the SVG Icon Library is updated to allow loading other icon
> families,
> >> this tool can be used to help manage icon sets for applications.  There
> >> should be no reason the LCB file in my PR couldn't be compiled in LC8,
> but
> >> I've been working on it in LC9DP11 & develop.
> >> It exports encoded LC arrays that are in the format needed for the
> >> library.
> >>
> >> Thanks,
> >> Brian
> >> ___
> >> use-livecode mailing list
> >> use-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
>
> ___
> use-livecode mailing list
> use-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: gradient selectors

2018-01-17 Thread Paul Hibbert via use-livecode
Both fill and stroke gradients work fine on Mac High Sierra, no delays that I 
can see and definitely no hang, so it may be a Linux related bug.

Anybody tested Windows?

Paul


> On Jan 17, 2018, at 6:30 PM, Mark Wieder via use-livecode 
>  wrote:
> 
> Before I log a bug report on this, can anyone confirm that the gradient 
> selectors are working in LC9? Launching either of the selectors from the PI I 
> get a long hang time and no visual feedback. I did manage to get something 
> out of the fill gradient selector once, but the stroke gradient selector does 
> nothing. Even its controls are nonresponsive.
> 
> The hang time is particularly annoying since it hangs my whole desktop. Not 
> sure if this is just me or just linux or if it's systemic.
> 
> -- 
> 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


gradient selectors

2018-01-17 Thread Mark Wieder via use-livecode
Before I log a bug report on this, can anyone confirm that the gradient 
selectors are working in LC9? Launching either of the selectors from the 
PI I get a long hang time and no visual feedback. I did manage to get 
something out of the fill gradient selector once, but the stroke 
gradient selector does nothing. Even its controls are nonresponsive.


The hang time is particularly annoying since it hangs my whole desktop. 
Not sure if this is just me or just linux or if it's systemic.


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

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


Re: How do I delete cloned images with the same name all at once?

2018-01-17 Thread Mark Wieder via use-livecode

On 01/17/2018 02:42 PM, Tore Nilsen via use-livecode wrote:


Use short name instead of name, this will script  will work:


Additionally, the way I deal with this is to create a group, then create 
the control *in the group*. That way all I have to do is delete the 
group and all the child controls are gone.


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

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


Re: How do I delete cloned images with the same name all at once?

2018-01-17 Thread Tore Nilsen via use-livecode
The property “name” refers to more than “ticket”, it also includes the 
description of the control, in your case the name will be “image ticket”.
You also will need to count down from the number of images in order to delete 
all of them, otherwise you will run into a situation where x is higher than the 
number of images still on your card
Use short name instead of name, this will script  will work:

on mouseUp
put the number of images of this card into tImages
repeat with x = tImages down to 1
  if the short name of image x = “ticket” then  
 delete image x 
  end if
end repeat
end mouseUp

> 17. jan. 2018 kl. 23:25 skrev William de Smet via use-livecode 
> :
> 
> Hi there,
> 
> I have several cloned images and all have the same name: ticket.
> Of course there ID is different.
> On close card I want to delete them.
> How do I delete them all at once?
> Wat is wrong with this code?
> 
> on mouseup
> repeat with x= 1 to the number of images of this card
> if the name of image x is "ticket" then put the ID of image x into GONE
> end repeat
> send ("delete GONE") to me in 0 ticks
> end mouseup
> 
> 
> 
> 
> greetings,
> 
> William
> ___
> use-livecode mailing list
> use-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

How do I delete cloned images with the same name all at once?

2018-01-17 Thread William de Smet via use-livecode
Hi there,

I have several cloned images and all have the same name: ticket.
Of course there ID is different.
On close card I want to delete them.
How do I delete them all at once?
Wat is wrong with this code?

on mouseup
repeat with x= 1 to the number of images of this card
if the name of image x is "ticket" then put the ID of image x into GONE
end repeat
send ("delete GONE") to me in 0 ticks
end mouseup




greetings,

William
___
use-livecode mailing list
use-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: Identifying empty lines of text

2018-01-17 Thread J. Landman Gay via use-livecode

On Jan 12, 2018, at 16:48 , David Epstein via use-livecode 
 wrote:

I use “the number of words in myString = 0” to test whether a line of text 
appears empty, since I want a line with only space characters to be understood 
as empty.
But a line of text I pasted from elsewhere contained an invisible character 
whose charToNum value is 202, and this was counted as a word by my script.
Is there a better way to test for a line of text that has no visible characters?


Here's where the "trueword" keyword comes in handy:

   put the number of truewords in line x of fld y

It will ignore invisible and whitespace characters.


--
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: deploying to multiple mobile devices

2018-01-17 Thread Stephen Barncard via use-livecode
I built one of those years ago, based on Ken Ray's stackrunner.rev.
Even datagrids can be accommodated.

--
Stephen Barncard - Sebastopol Ca. USA -
mixstream.org

On Wed, Jan 17, 2018 at 9:37 AM, Richard Gaskin via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Nicolas Cueto wrote:
>
> > On 17 January 2018 at 12:38, Richard Gaskin wrote:
> >
> >> Nicolas Cueto wrote:
> >> > Some of my stacks are for a classroom situation, so would like to
> >> > deploy to the various smartphones of  class sizes of 3 to 20
> >> > students (1) preferably cable-free (Wifi?), (2) easily for the
> >> > end-user, and (3) as simultaneously as possible.
> >>
> >> Is this a classroom you work with directly, or a product for others
> >> to use in their own classrooms?
> >
> > Directly.
>
> I'm thinking don't even bother making standalones for every stack.  It
> just complicates installation and replicates the storage overhead of
> attaching the same engine to each one.
>
> Instead, you could make one app that can download and run stack files from
> a server.  Easy enough, and with just one extra step you can use LC's
> built-in compression for even faster transfer.
>
>
> --
>  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: Anyone else got two-monitor issues with LC9 on Mac?

2018-01-17 Thread Graham Samuel via use-livecode
There are several reports, which Panos has now combined into one (18363). The 
idea of changing the arrangement of the two monitors in the System Prefs so 
that the tops are aligned is a pretty sad workaround, because of course the 
System Prefs settings are supposed to reflect the monitor positions in the real 
world, and there are many arrangements where the tops wouldn’t be aligned 
(typically a laptop on a desk with an external monitor on a stand, so naturally 
higher). If the settings don’t mimic the real world, it’s really hard to move 
the mouse around from screen to screen in a realistic way. So I really hope it 
gets fixed soon.

Graham

> On 17 Jan 2018, at 18:33, Richard Gaskin via use-livecode 
>  wrote:
> 
> panagiotis merakos wrote:
> 
> > Just to add that when you change the arrangement of the two monitors
> > in the System Prefs so as their tops are aligned, it might be worth to
> > reset your LC Prefs as well after that, as it might be the case that
> > some stacks have kept their *old* rect Prefs (i.e. *before* the
> > monitors' arrangement changed), so they might now appear offscreen.
> 
> Is this known issue being addressed in the IDE?  If not currently, should 
> someone here who's experienced this submit a bug report?
> 
> -- 
> 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: Roadmap: "Automated REST API wrapping"?

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

Mark Waddingham wrote:

> On 2018-01-17 04:29, Richard Gaskin via use-livecode wrote:
>>> The LC Roadmap at  includes
>>> under "Planned":
>>>
>>>   Automated REST API wrapping
>>>
>>> Sounds enticing.  What is it?
>
> This is referring to LiveCode Connect - which I did a prototype for in
> an LCG2017 session...
>
> Its currently pegged for 'completion' in Q2 this year for LC9.1, and
> assuming things align, we will likely have at least one more talk on
> it in LCG2018, if not two (although the latter two things, in
> particular, are subject to change).
>
> LC Connect uses Swagger/OpenAPI specs to generate script libraries
> which wrap the APIs.

Sounds very cool.  What is the "automatic" part?  How does it map 
actions and endpoints to my schema?


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

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


Re: deploying to multiple mobile devices

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

Nicolas Cueto wrote:

> On 17 January 2018 at 12:38, Richard Gaskin wrote:
>
>> Nicolas Cueto wrote:
>> > Some of my stacks are for a classroom situation, so would like to
>> > deploy to the various smartphones of  class sizes of 3 to 20
>> > students (1) preferably cable-free (Wifi?), (2) easily for the
>> > end-user, and (3) as simultaneously as possible.
>>
>> Is this a classroom you work with directly, or a product for others
>> to use in their own classrooms?
>
> Directly.

I'm thinking don't even bother making standalones for every stack.  It 
just complicates installation and replicates the storage overhead of 
attaching the same engine to each one.


Instead, you could make one app that can download and run stack files 
from a server.  Easy enough, and with just one extra step you can use 
LC's built-in compression for even faster transfer.


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

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


Re: Anyone else got two-monitor issues with LC9 on Mac?

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

panagiotis merakos wrote:

> Just to add that when you change the arrangement of the two monitors
> in the System Prefs so as their tops are aligned, it might be worth to
> reset your LC Prefs as well after that, as it might be the case that
> some stacks have kept their *old* rect Prefs (i.e. *before* the
> monitors' arrangement changed), so they might now appear offscreen.

Is this known issue being addressed in the IDE?  If not currently, 
should someone here who's experienced this submit a bug report?


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


Adding an icon to an EXE file via Livecode script

2018-01-17 Thread Paul Dupuis via use-livecode
Has anyone done this or does anyone know how to copy and icon from and
.ico file to a .exe file and set its resource ID using LiveCode Script?

I have an on standalonesaved handler that automates much of my post
standalone build process, but my app has a number of different document
types each with their own icons. For OSX this is as easy as copying the
additional icons to the .app folder/bundle and updating the plist file's
XML to reference them

For Windows, this becomes a manual process of using a tool (I use one
called Resource Editor) to add the icon files to the standalone EXE.

I'd like to put this into my post build script if there is some way to
do it. Any advice out there?


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

2018-01-17 Thread Bob Sneidar via use-livecode
We should write a Livecode stack for that! 


on mouseUp
   put "This will drive all Hawaiians into a state of cold stark panic. Some 
may commit suicide. " & \
   Others will merely be mentally scarred for life. Are you sure you want to do 
this??" into mmsg

   answer warning mmsg with "Oh Shit No!" or "We're All Gonna Die!"
   if it is "We're All Gonna Die!" then exit to top -- it won't matter 
anyway
end mouseUp
___
use-livecode mailing list
use-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: Dropbox help

2018-01-17 Thread Klaus major-k via use-livecode
Hi Mike,

> Am 16.01.2018 um 15:28 schrieb Mike Kerner via use-livecode 
> :
> 
> Klaus,
> The good news is that this is all fairly straightforward.
> appKey, appSecret, tokenKey, and tokenSecret are all obsolete and should
> not do anything.  You need the “Generated Access Token”.
> 1) Go to www.dropbox.com/developers/apps
> 2) Tap on your app
> 3) Scroll down to the “Generated access token” button.  Hit the button,
> copy the code
> 4) This is your oauth2 token that you will use in your code
> 4.5) I have “allow implicit grant” set to “Allow” for several of my apps,
> because it makes the process less complicated, but YMMV.  I do not fiddle
> with the URL’s, redirects, webhooks, etc.
> 5) If you’re using 9, use LC’s dropbox library that is built into LC. If
> you’re using 8, you can copy it from 9 or you can grab it from my github
> repo (I’m a couple commits ahead of LC’s version due to a couple bug
> fixes).  www.github.com/macmikey/lcdropboxlibrary
> 6) Grab Gerard’s dropbox 2 stack either from his repo or from mine so you
> can do some testing with something we know works.  His api is slightly
> different b/c Monte modified it when he added it to LC, but the syntax is
> close enough and the mapping is 1:1.  Gerard has a couple of new features
> he just added that have not been integrated into LC’s library, yet.

thanks a lot!


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major-k.de


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

Re: Anyone else got two-monitor issues with LC9 on Mac?

2018-01-17 Thread panagiotis merakos via use-livecode
Just to add that when you change the arrangement of the two monitors in the
System Prefs so as their tops are aligned, it might be worth to reset your
LC Prefs as well after that, as it might be the case that some stacks have
kept their *old* rect Prefs (i.e. *before* the monitors' arrangement
changed), so they might now appear offscreen.

Best,
Panos
--

On Wed, Jan 17, 2018 at 4:12 PM, Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com> wrote:

> That is my experience as well, although it takes some getting used to when
> moving the mouse from one monitor to the other, because the mouse and
> anything you are dragging doesn't appear where you expect it naturally
> should. It bugged me so much that I wrote handlers to record the stack
> positions each time a stack was closed, and then restored them next time
> they were opened. I also have a Center Window menu option on a custom
> development menu I made.
>
> Bob S
>
>
> > On Jan 13, 2018, at 08:55 , J. Landman Gay via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > It isn't the physical position of the monitors, it's how you arrange
> them in the Mac control panel. This allows you to set the virtual position
> of the two displays relative to each other. If I remember right, problems
> are avoided if you drag the two monitor images so that the tops are
> horizontally aligned.
> >
> > --
> > 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: Anyone else got two-monitor issues with LC9 on Mac?

2018-01-17 Thread Bob Sneidar via use-livecode
That is my experience as well, although it takes some getting used to when 
moving the mouse from one monitor to the other, because the mouse and anything 
you are dragging doesn't appear where you expect it naturally should. It bugged 
me so much that I wrote handlers to record the stack positions each time a 
stack was closed, and then restored them next time they were opened. I also 
have a Center Window menu option on a custom development menu I made. 

Bob S


> On Jan 13, 2018, at 08:55 , J. Landman Gay via use-livecode 
>  wrote:
> 
> It isn't the physical position of the monitors, it's how you arrange them in 
> the Mac control panel. This allows you to set the virtual position of the two 
> displays relative to each other. If I remember right, problems are avoided if 
> you drag the two monitor images so that the tops are horizontally aligned.
> 
> --
> 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: Anyone else got two-monitor issues with LC9 on Mac?

2018-01-17 Thread Bob Sneidar via use-livecode
I believe this is a known issue. A workaround is to set the rect of your stack 
to the screenRect on preOpenStack in the card script of the first card. 

Bob S


> On Jan 14, 2018, at 12:38 , MWCM via use-livecode 
>  wrote:
> 
> I have an issue that isn’t exactly the same but may be related. Seldom do I 
> work on two monitors, but my display configuration is constantly changing.  
> My primary development machine is a 15” Retina MacBook Pro. The main project 
> I work on is a large stack (iPhone 7 native resolution) stack that I work 
> with at a scaleFactor of 0.5 so it fits on my internal Retina display and 
> doesn’t take too much screen real estate on the external. 
> 
> When on-the-go, I use the Retina display in the “almost largest display” 
> setting (not the far right biggest resolution option and not the middle 
> recommended option). 
> 
> When in the office I work docked (laptop closed) and connect the laptop to an 
> external keyboard/mouse and external 4K display (via mini DisplayPort) and 
> sometimes also a 1080i (via HDMI). When docked, I NEVER use the built-in 
> display.
> 
> Every time I launch that stack, the top of the stack is off the top of my 
> screen. Doesn’t matter what display setup I’m using, I always have to open 
> the stack inspector and change the Y position of the stack so the whole thing 
> appears on my screen. 
> 
> --Andrew Bell
> --Sent from my iPhone
> 
> ___
> use-livecode mailing list
> use-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: Identifying empty lines of text

2018-01-17 Thread Bob Sneidar via use-livecode
I have a simple function which will return a string with all non-allowed 
characters stripped from it. 

function cleanASCII pString, pModeList, pCustomList
   /*
   pModeList is a comma delimited list that may contain the following values:
   "lowercase,uppercase,numbers,tabs,newlines,returns,spaces,symbols,custom"
   If custom is used, then a third paramaeter containing allowed characters 
must be supplied. 
   */
   if pModeList is empty then
  put " 0-9a-zA-Z" into tAllowedChars
   end if
   
   repeat for each item pMode in pModeList
  put word 1 of pMode into pMode
  
  switch
break
 case "tabs" is in pMode
put "\t" after tAllowedChars
break
 case "newlines" is in pMode
put "\n" before tAllowedChars
break
 case "returns" is in pMode
put "\r" before tAllowedChars -- currently not working
break
 case "spaces" is in pMode
put " " after tAllowedChars
break
 case "numbers" is in pMode
put "0-9" after tAllowedChars
break
 case "lowercase" is in pMode
put "a-z" after tAllowedChars
break
 case "uppercase" is in pMode
put "A-Z" after tAllowedChars
break
 case "symbols" is in pMode
put "!#$%&'()*+,./:;<=>?@[\\_`{|}~^-" after tAllowedChars
break
 case pMode is "custom"
put pCustomList after tAllowedChars
break
  end switch
   end repeat
   
   put "[" & tAllowedChars & "]" into tMatchText
   
   repeat for each character  theChar in pString
  if matchtext(theChar, tMatchText) is true then
 put theChar after cleanString
  end if
   end repeat
   
   return cleanString
end cleanASCII

Bob S


> On Jan 12, 2018, at 16:48 , David Epstein via use-livecode 
>  wrote:
> 
> I use “the number of words in myString = 0” to test whether a line of text 
> appears empty, since I want a line with only space characters to be 
> understood as empty.
> But a line of text I pasted from elsewhere contained an invisible character 
> whose charToNum value is 202, and this was counted as a word by my script.
> Is there a better way to test for a line of text that has no visible 
> characters?
> Many thanks.
> 
> David Epstein

___
use-livecode mailing list
use-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: Roadmap: "Automated REST API wrapping"?

2018-01-17 Thread David Bovill via use-livecode
Ah - i've been working on that - so would be good to find out more. Will be
doing a hackathon at the end of the month to make it more robust. If there
is something planned that we can use instead of build from scratch that
would be good. Ours is a docker based open source implementation.

On 17 January 2018 at 12:10, Mark Waddingham via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On 2018-01-17 04:29, Richard Gaskin via use-livecode wrote:
>
>> Mike Kerner wrote:
>>
>> On Tue, Jan 16, 2018 at 9:40 PM, Richard Gaskin wrote:
>>>
>>> The LC Roadmap at  includes
 under "Planned":

   Automated REST API wrapping

 Sounds enticing.  What is it?
 And is there even a loose, no-I-won't-hold-you-to-it-but-just-curious
 target version?

>>>
>>> This was discussed at LCG but I'll get the month wrong - August?
>>>
>>
>> I could go hunt it down, but since we're here and for the benefit of
>> those who may not have access to those for-fee-only sessions, could
>> someone working on that offer at least a brief summary here?
>>
>
> This is referring to LiveCode Connect - which I did a prototype for in an
> LCG2017 session...
>
> Its currently pegged for 'completion' in Q2 this year for LC9.1, and
> assuming things align, we will likely have at least one more talk on it in
> LCG2018, if not two (although the latter two things, in particular, are
> subject to change).
>
> LC Connect uses Swagger/OpenAPI specs to generate script libraries which
> wrap the APIs.
>
> Warmest Regards,
>
> Mark.
>
> --
> Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
> LiveCode: Everyone can create apps
>
>
> ___
> use-livecode mailing list
> use-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: Roadmap: "Automated REST API wrapping"?

2018-01-17 Thread Mark Waddingham via use-livecode

On 2018-01-17 04:29, Richard Gaskin via use-livecode wrote:

Mike Kerner wrote:


On Tue, Jan 16, 2018 at 9:40 PM, Richard Gaskin wrote:


The LC Roadmap at  includes
under "Planned":

  Automated REST API wrapping

Sounds enticing.  What is it?
And is there even a loose, no-I-won't-hold-you-to-it-but-just-curious
target version?


This was discussed at LCG but I'll get the month wrong - August?


I could go hunt it down, but since we're here and for the benefit of
those who may not have access to those for-fee-only sessions, could
someone working on that offer at least a brief summary here?


This is referring to LiveCode Connect - which I did a prototype for in 
an LCG2017 session...


Its currently pegged for 'completion' in Q2 this year for LC9.1, and 
assuming things align, we will likely have at least one more talk on it 
in LCG2018, if not two (although the latter two things, in particular, 
are subject to change).


LC Connect uses Swagger/OpenAPI specs to generate script libraries which 
wrap the APIs.


Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

___
use-livecode mailing list
use-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: Roadmap: "Automated REST API wrapping"?

2018-01-17 Thread AndyP via use-livecode
I believe from my take on the discussion at the LCG, that the api wrapping
will be for specific common and widely used api's., so automatic wrapping my
be  little misleading .



-
Andy Piddock 


My software never has bugs. It just develops random features. 

TinyIDE  a Free alternative minimalist IDE Plugin for LiveCode 


Script editor Themer for LC http://2108.co.uk  

PointandSee is a FREE simple but full featured under cursor colour picker / 
finder.
http://www.pointandsee.co.uk  - made with LiveCode
--
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: Activation problem

2018-01-17 Thread Heather Laine via use-livecode
I'm pleased to say the activation issue is now fixed, you should be able to 
correctly activate LiveCode again both on and offline.

Best Regards,

Heather

Heather Laine
Customer Services Manager
LiveCode Ltd
www.livecode.com



> On 17 Jan 2018, at 09:58, Heather Laine via use-livecode 
>  wrote:
> 
> We are currently having some server issues affecting login. We are working to 
> fix this asap. In the meantime, to launch LiveCode disconnect from the 
> internet, then launch. LiveCode will switch to offline working and it will no 
> longer be affected by the issue. You can reconnect to the internet once you 
> have it running.
> 
> We will let everyone know when the issue is resolved.
> 
> Regards,
> 
> Heather
> 
> 
>> On 17 Jan 2018, at 09:53, Lagi Pittas via use-livecode 
>>  wrote:
>> 
>> HI All
>> 
>> Just tried to start work (using 6.7.11) and I got an activation box come up
>> saying the sessiion has lapsed.
>> 
>> Tried it also on my MAC just in case ... no go.
>> 
>> So I went to my LC9 DP 11 and again "The session has lapsed - try again".
>> and it wouldn't automatically activate.
>> 
>> So I go to the livecode.com site and it's blank.
>> 
>> The pagesource shows some meddling.
>> 
>> 
>> 
>> 
>> 
>> 
>>  http://ogp.me/ns#;> 
>> 
>> 
>> LiveCode
>> 
>> https://livecode.com/xmlrpc.php; />
>> 
>> https://livecode.com/wp-content/uploads/2016/05/lc-icon-pro-125.png; /> > rel="apple-touch-icon" href="
>> https://livecode.com/wp-content/uploads/2016/05/lc-icon-pro-125-2.png; sizes
>> ="114x114" /> https://livecode.com/wp-content/uploads/2016/05/lc-icon-pro-125-3.png; sizes
>> ="72x72" /> https://livecode.com/wp-content/uploads/2016/05/favicon-32x32-1.png;>
>> 
>> Now I don't know about you but if I have somerthing that needs activating
>> and there are no builtin failsafes i am not a happy bunny. - expletives
>> deleted.
>> 
>> There should be at least 1 or 2 other activation domains on a different
>> infrastructure - this is only the second time in a couple of years but
>> short of a nuclear war then it is 2 too many.
>> 
>> There should at least be a domain where we can all download a manual
>> activation that last at least as long as our subscription - or is that too
>> much to ask.
>> 
>> Now I know I can install community version - assuming there are no
>> commercial dependencies but I really do have better things to do as do we
>> all.
>> 
>> Anyone noticed this or is this just in my area of the world?
>> 
>> Kindest Regards Lagi
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> ___
> use-livecode mailing list
> use-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: Activation problem

2018-01-17 Thread Lagi Pittas via use-livecode
Ok that worked thanks. Still I think you should have a copy of the server
on a digital ocean drop that's ready to be activated with a switch of ip
addresses - just a thought

Lagi

On 17 January 2018 at 09:58, panagiotis merakos via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi Lagi,
>
> We are working on that. As a workaround, turn off Internet access, launch
> LC, and then turn Internet access on again.
>
> Best,
> Panos
> --
>
> On Wed, Jan 17, 2018 at 9:53 AM, Lagi Pittas via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > HI All
> >
> > Just tried to start work (using 6.7.11) and I got an activation box come
> up
> > saying the sessiion has lapsed.
> >
> > Tried it also on my MAC just in case ... no go.
> >
> > So I went to my LC9 DP 11 and again "The session has lapsed - try again".
> > and it wouldn't automatically activate.
> >
> > So I go to the livecode.com site and it's blank.
> >
> > The pagesource shows some meddling.
> >
> >
> > 
> > 
> > 
> > 
> >  http://ogp.me/ns#;>
> 
> > 
> > 
> > LiveCode
> > 
> > https://livecode.com/xmlrpc.php; />
> >
> > https://livecode.com/wp-content/uploads/2016/05/lc-icon-pro-125.png; />
> >  > rel="apple-touch-icon" href="
> > https://livecode.com/wp-content/uploads/2016/05/lc-icon-pro-125-2.png;
> > sizes
> > ="114x114" /> https://livecode.com/wp-content/uploads/2016/05/lc-icon-pro-125-3.png;
> > sizes
> > ="72x72" /> https://livecode.com/wp-content/uploads/2016/05/favicon-32x32-1.png;>
> >
> > Now I don't know about you but if I have somerthing that needs activating
> > and there are no builtin failsafes i am not a happy bunny. - expletives
> > deleted.
> >
> > There should be at least 1 or 2 other activation domains on a different
> > infrastructure - this is only the second time in a couple of years but
> > short of a nuclear war then it is 2 too many.
> >
> > There should at least be a domain where we can all download a manual
> > activation that last at least as long as our subscription - or is that
> too
> > much to ask.
> >
> > Now I know I can install community version - assuming there are no
> > commercial dependencies but I really do have better things to do as do we
> > all.
> >
> > Anyone noticed this or is this just in my area of the world?
> >
> > Kindest Regards Lagi
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
>
>
>
> --
> Panagiotis Merakos 
> LiveCode Software Developer
>
> Everyone Can Create Apps 
> ___
> use-livecode mailing list
> use-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: Activation problem

2018-01-17 Thread Heather Laine via use-livecode
We are currently having some server issues affecting login. We are working to 
fix this asap. In the meantime, to launch LiveCode disconnect from the 
internet, then launch. LiveCode will switch to offline working and it will no 
longer be affected by the issue. You can reconnect to the internet once you 
have it running.

We will let everyone know when the issue is resolved.

Regards,

Heather


> On 17 Jan 2018, at 09:53, Lagi Pittas via use-livecode 
>  wrote:
> 
> HI All
> 
> Just tried to start work (using 6.7.11) and I got an activation box come up
> saying the sessiion has lapsed.
> 
> Tried it also on my MAC just in case ... no go.
> 
> So I went to my LC9 DP 11 and again "The session has lapsed - try again".
> and it wouldn't automatically activate.
> 
> So I go to the livecode.com site and it's blank.
> 
> The pagesource shows some meddling.
> 
> 
> 
> 
> 
> 
>  http://ogp.me/ns#;> 
> 
> 
> LiveCode
> 
> https://livecode.com/xmlrpc.php; />
> 
> https://livecode.com/wp-content/uploads/2016/05/lc-icon-pro-125.png; />  rel="apple-touch-icon" href="
> https://livecode.com/wp-content/uploads/2016/05/lc-icon-pro-125-2.png; sizes
> ="114x114" /> https://livecode.com/wp-content/uploads/2016/05/lc-icon-pro-125-3.png; sizes
> ="72x72" /> https://livecode.com/wp-content/uploads/2016/05/favicon-32x32-1.png;>
> 
> Now I don't know about you but if I have somerthing that needs activating
> and there are no builtin failsafes i am not a happy bunny. - expletives
> deleted.
> 
> There should be at least 1 or 2 other activation domains on a different
> infrastructure - this is only the second time in a couple of years but
> short of a nuclear war then it is 2 too many.
> 
> There should at least be a domain where we can all download a manual
> activation that last at least as long as our subscription - or is that too
> much to ask.
> 
> Now I know I can install community version - assuming there are no
> commercial dependencies but I really do have better things to do as do we
> all.
> 
> Anyone noticed this or is this just in my area of the world?
> 
> Kindest Regards Lagi
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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

2018-01-17 Thread panagiotis merakos via use-livecode
Hi Lagi,

We are working on that. As a workaround, turn off Internet access, launch
LC, and then turn Internet access on again.

Best,
Panos
--

On Wed, Jan 17, 2018 at 9:53 AM, Lagi Pittas via use-livecode <
use-livecode@lists.runrev.com> wrote:

> HI All
>
> Just tried to start work (using 6.7.11) and I got an activation box come up
> saying the sessiion has lapsed.
>
> Tried it also on my MAC just in case ... no go.
>
> So I went to my LC9 DP 11 and again "The session has lapsed - try again".
> and it wouldn't automatically activate.
>
> So I go to the livecode.com site and it's blank.
>
> The pagesource shows some meddling.
>
>
> 
> 
> 
> 
>  http://ogp.me/ns#;> 
> 
> 
> LiveCode
> 
> https://livecode.com/xmlrpc.php; />
>
> https://livecode.com/wp-content/uploads/2016/05/lc-icon-pro-125.png; />
>  rel="apple-touch-icon" href="
> https://livecode.com/wp-content/uploads/2016/05/lc-icon-pro-125-2.png;
> sizes
> ="114x114" /> https://livecode.com/wp-content/uploads/2016/05/lc-icon-pro-125-3.png;
> sizes
> ="72x72" /> https://livecode.com/wp-content/uploads/2016/05/favicon-32x32-1.png;>
>
> Now I don't know about you but if I have somerthing that needs activating
> and there are no builtin failsafes i am not a happy bunny. - expletives
> deleted.
>
> There should be at least 1 or 2 other activation domains on a different
> infrastructure - this is only the second time in a couple of years but
> short of a nuclear war then it is 2 too many.
>
> There should at least be a domain where we can all download a manual
> activation that last at least as long as our subscription - or is that too
> much to ask.
>
> Now I know I can install community version - assuming there are no
> commercial dependencies but I really do have better things to do as do we
> all.
>
> Anyone noticed this or is this just in my area of the world?
>
> Kindest Regards Lagi
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



-- 
Panagiotis Merakos 
LiveCode Software Developer

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


Activation problem

2018-01-17 Thread Lagi Pittas via use-livecode
HI All

Just tried to start work (using 6.7.11) and I got an activation box come up
saying the sessiion has lapsed.

Tried it also on my MAC just in case ... no go.

So I went to my LC9 DP 11 and again "The session has lapsed - try again".
and it wouldn't automatically activate.

So I go to the livecode.com site and it's blank.

The pagesource shows some meddling.






 http://ogp.me/ns#;> 


LiveCode

https://livecode.com/xmlrpc.php; />

https://livecode.com/wp-content/uploads/2016/05/lc-icon-pro-125.png; /> https://livecode.com/wp-content/uploads/2016/05/lc-icon-pro-125-2.png; sizes
="114x114" /> https://livecode.com/wp-content/uploads/2016/05/lc-icon-pro-125-3.png; sizes
="72x72" /> https://livecode.com/wp-content/uploads/2016/05/favicon-32x32-1.png;>

Now I don't know about you but if I have somerthing that needs activating
and there are no builtin failsafes i am not a happy bunny. - expletives
deleted.

There should be at least 1 or 2 other activation domains on a different
infrastructure - this is only the second time in a couple of years but
short of a nuclear war then it is 2 too many.

There should at least be a domain where we can all download a manual
activation that last at least as long as our subscription - or is that too
much to ask.

Now I know I can install community version - assuming there are no
commercial dependencies but I really do have better things to do as do we
all.

Anyone noticed this or is this just in my area of the world?

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


Re: OT: Idiot UX

2018-01-17 Thread Peter Bogdanoff via use-livecode
Bad design? NO design!


> On Jan 16, 2018, at 4:23 PM, Mark Wieder via use-livecode 
>  wrote:
> 
> https://boingboing.net/2018/01/16/bad-design-this-is-the-menu-w.html
> 
> From the comments:
> 
> * Acronym stew
> * Not alphabetized
> * No clear separation between “production” and “test” messages
> * Arbitrary classifications
> * Arbitrary word ordering
> * No distinction of event severity
> * Wall of text (should have bullets or some other separator between records)
> 
> -- 
> 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