Re: Writing Extensions

2017-05-18 Thread Mark Wieder via use-livecode
On 05/18/2017 07:14 PM, Alejandro Tejada via use-livecode wrote: Now that we are talking about widgets and extensions, many thanks again Mark Wieder for updating Peter Thirkell multicolor svg widget. Just for curiosity, Could you write a blog entry about your process of updating this widget?

news about the new Google Play policy

2017-05-18 Thread Alejandro Tejada via use-livecode
Singularity? Maybe yes, maybe no, but I am not going to say it was Aliens... :-) http://images.memes.com/meme/30936.jpg ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your

Re: news about the new Google Play policy

2017-05-18 Thread Mark Wieder via use-livecode
On 05/18/2017 07:46 PM, J. Landman Gay via use-livecode wrote: Colin, you are an incredibly handy person to know. :) What a stroke of luck that you were there exactly when the new policy changes were released. Hmmm. Coincidence? I think not. Colin seems to be a magnet for these things. He's

Re: WannaCry [OT]

2017-05-18 Thread Kay C Lan via use-livecode
On Tue, May 16, 2017 at 6:46 PM, Mark Waddingham via use-livecode wrote: > > I'd at least hope that 'smart cars' software is engineered to a much > higher standard than other places: > Well it may not even be 'smart' cars, even just modern cars may have problems

Re: news about the new Google Play policy

2017-05-18 Thread J. Landman Gay via use-livecode
Colin, you are an incredibly handy person to know. :) What a stroke of luck that you were there exactly when the new policy changes were released. Thank you. On 5/18/17 9:39 PM, Colin Holgate via use-livecode wrote: At Google I/O they have one building which is called Office Hours, and in

news about the new Google Play policy

2017-05-18 Thread Colin Holgate via use-livecode
At Google I/O they have one building which is called Office Hours, and in there you can queue up and get to ask Google team members any questions you have. Most teams are represented, with an hour for each session. One of the teams there wasn’t even on the schedule, but I had been pointed to

Re: Seeking recommendations / suggestions for use of library stacks.

2017-05-18 Thread Andre Garzia via use-livecode
I usually follow Alis approach. I have a separate initialization handler which I can call repeatedly if needed. The librarystack call just call it once but if needed I can call it from the messagebox as well. On the topic of libraries, it is good to follow a "functional programming" approach

Writing Extensions

2017-05-18 Thread Alejandro Tejada via use-livecode
Now that we are talking about widgets and extensions, many thanks again Mark Wieder for updating Peter Thirkell multicolor svg widget. Just for curiosity, Could you write a blog entry about your process of updating this widget? Maybe others would find this useful to update their own widgets. If

Re: User friendly functions to replace MySQL queries?

2017-05-18 Thread Andre Garzia via use-livecode
auhaauhahuuhahauauhahu yes, it has been how long? years? :-P On Thu, May 18, 2017 at 10:09 PM, Mark Wieder via use-livecode < use-livecode@lists.runrev.com> wrote: > On 05/18/2017 11:41 AM, Andre Garzia via use-livecode wrote: > >> Aloha Friends, >> >> I have been away for a while... >> > > I

Re: Writing Extensions

2017-05-18 Thread J. Landman Gay via use-livecode
On 5/18/17 8:08 PM, Mark Wieder via use-livecode wrote: "this me" still seems wrong to me. Or at least to this me I still chuckle about that. But I had the occasion to need it once and for the life of me, I couldn't think of a better definition. It fits all the syntax parameters. So now I

Re: User friendly functions to replace MySQL queries?

2017-05-18 Thread Mark Wieder via use-livecode
On 05/18/2017 11:41 AM, Andre Garzia via use-livecode wrote: Aloha Friends, I have been away for a while... I believe we have a winner in the understatement of the week contest. -- Mark Wieder ahsoftw...@gmail.com ___ use-livecode mailing list

Re: Writing Extensions

2017-05-18 Thread Mark Wieder via use-livecode
On 05/18/2017 12:59 AM, Mark Waddingham via use-livecode wrote: backported to LCS. I appreciate the team's reticence to make syntax changes to the core xtalk language, but even as a long-time C programmer, I wouldn't say we have a 'reticence' to make syntax changes but it requires a great

Re: browser print?

2017-05-18 Thread Richard Gaskin via use-livecode
hh wrote: >> RG wrote: >> Thanks, but you know how bitmaps are. I'd really like crisp print-res >> output if I can. > > The browser widget isn't rendering at 300 dpi or more ... > You need something like Adobe Acrobat (which does the HTML2PDF for > you) for getting web pages as true PDF. > And

Re: browser print?

2017-05-18 Thread hh via use-livecode
> RG wrote: > Thanks, but you know how bitmaps are. I'd really like crisp print-res > output if I can. The browser widget isn't rendering at 300 dpi or more ... You need something like Adobe Acrobat (which does the HTML2PDF for you) for getting web pages as true PDF. And simply printing to PDF

Re: Snaptshot of Browser Widget in iOS?

2017-05-18 Thread Jonathan Lynch via use-livecode
There are some JavaScript libraries that can convert an HTML page into an image (not just a canvas object) - that could be your backup if all else fails. Sent from my iPhone > On May 18, 2017, at 6:26 PM, JOHN PATTEN via use-livecode > wrote: > > Hi All! > > I

English Like?

2017-05-18 Thread Alejandro Tejada via use-livecode
on Thu May 18 2017, William Prothero wrote: > I think that comments by relative newbies, who don’t have > the same experience with LC are very important. > I’ve mentioned several times that some of the tutorials > and lessons can miss things that the author takes for > granted. I’m particularly

Re: browser print?

2017-05-18 Thread Richard Gaskin via use-livecode
hh wrote: >> Richard G. wrote: >> Does the browser widget support printing like the older revBrowser >> external did? > > No. AFAIK it doesn't support "window.print()", had no success here. > > But you can use javascript to get the window's content or part of it > (e.g. container by Id) as a

Re: browser print?

2017-05-18 Thread hh via use-livecode
> Richard G. wrote: > Does the browser widget support printing like the older revBrowser > external did? No. AFAIK it doesn't support "window.print()", had no success here. But you can use javascript to get the window's content or part of it (e.g. container by Id) as a rendered image, not a

browser print?

2017-05-18 Thread Richard Gaskin via use-livecode
Does the browser widget support printing like the older revBrowser external did? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ambassa...@fourthworld.com

Re: Sort so that "Hello" is always before "hello"

2017-05-18 Thread hh via use-livecode
Correction, sorry. > I wrote: > But because lower(a-zA-Z) is _always_ not equal to upper(a-zA-Z) ... This handles only one case of casesensitivity. Should read: If the casesensitive is true then lower(a-zA-Z) is _always_ not equal to upper(a-zA-Z) If the casesensitive is false then

Snaptshot of Browser Widget in iOS?

2017-05-18 Thread JOHN PATTEN via use-livecode
Hi All! I am trying to lay some objects (text fields, graphics, etc.) over a browser widget. I am essentially just taking a screen capture and then layering the objects on top of the image. Here is my script: on mouseUp lock screen put the rect of current stack into tCoord set the width of

Re: Sort so that "Hello" is always before "hello"

2017-05-18 Thread hh via use-livecode
> Richard E.H. wrote: > ... the possibility of something like > > sort lines of theData by word 1 of each & \ > (lower(char 1 of each) <> upper(char 1 of each)) > > But I don't think I can use multiple each's like that, can I? Your approach is to use a sort function, a powerful tool. The

Re: Sort so that "Hello" is always before "hello"

2017-05-18 Thread Kaveh Bazargan via use-livecode
Brilliant, thank you. I have tried to fall out of love with LiveCode but it is hard! I used HyperCard since pre-release version ;-) On 18 May 2017 at 22:28, hh via use-livecode wrote: > You want a sort with co-sort: > > set the casesensitive to true -- secondary

Re: Sort so that "Hello" is always before "hello"

2017-05-18 Thread Dr. Hawkins via use-livecode
On Thu, May 18, 2017 at 2:43 PM, hh via use-livecode < use-livecode@lists.runrev.com> wrote: > on mouseUp > set the casesensitive to true -- secondary sort: > sort myContainer > set the casesensitive to false -- primary sort: > sort myContainer > on mouseUp > Now *that* is clever. At

Re: Sort so that "Hello" is always before "hello"

2017-05-18 Thread Dr. Hawkins via use-livecode
On Thu, May 18, 2017 at 2:20 PM, Bob Sneidar via use-livecode < use-livecode@lists.runrev.com> wrote: > What you are wanting to do is a recursive function that sorts within each > word. If the first character is all you care about, it would be easy > enought to code, but if *every* character

Re: Sort so that "Hello" is always before "hello"

2017-05-18 Thread hh via use-livecode
> Kaveh B. wrote: > I have the following lines when a list of words is sorted: Hello > hello Hello hello hello so there is no hierarchy between upper and > lower case chars. I want caps to go first. How do i do that pls? Let me explain a bit more. You want a sort with co-sort. LC allows this

Re: User friendly functions to replace MySQL queries?

2017-05-18 Thread Andre Garzia via use-livecode
Friends, I have fixed the page for the library http://andregarzia.com/en/projects/dblib. I am also using github to track development now and moved all the data to a repository linked on that page. The library continues to be dual-licensed, GPL or Commercial, depending on your needs. I have just

Re: Sort so that "Hello" is always before "hello"

2017-05-18 Thread hh via use-livecode
You want a sort with co-sort: set the casesensitive to true -- secondary sort: sort myContainer set the casesensitive to false -- primary sort: sort myContainer ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to

Re: Sort so that "Hello" is always before "hello"

2017-05-18 Thread Bob Sneidar via use-livecode
What you are wanting to do is a recursive function that sorts within each word. If the first character is all you care about, it would be easy enought to code, but if *every* character comes into play, the problem becomes grossly complex. This isn't a sort problem. It's a filing order problem.

Re: Sort so that "Hello" is always before "hello"

2017-05-18 Thread Bob Sneidar via use-livecode
Then that is not a sort! Bob S > On May 18, 2017, at 14:13 , Kaveh Bazargan via use-livecode > wrote: > > Thanks Phil > > That works in the case I mentioned, but with different letters, All upper > case chars come to top, so I get: > > Goodbye > Hello >

Re: Sort so that "Hello" is always before "hello"

2017-05-18 Thread Kaveh Bazargan via use-livecode
Thanks Phil That works in the case I mentioned, but with different letters, All upper case chars come to top, so I get: Goodbye Hello goodbye hello What I need is Goodbye goodbye Hello hello On 18 May 2017 at 18:19, Phil Davis via use-livecode < use-livecode@lists.runrev.com> wrote: > "set

Re: Sort so that "Hello" is always before "hello"

2017-05-18 Thread Bob Sneidar via use-livecode
Oh right. I forgot about that. Still, I like my way better. ;-) Bob S > On May 18, 2017, at 13:30 , dunbarx via use-livecode > wrote: > > The "caseSensitive" is a global property. It can be set like any other. if > you do so before the "sort" command, the

Re: Sort so that "Hello" is always before "hello"

2017-05-18 Thread dunbarx via use-livecode
The "caseSensitive" is a global property. It can be set like any other. if you do so before the "sort" command, the capital first letters precede the lower case. Craig -- View this message in context:

Re: Writing Extensions

2017-05-18 Thread Bob Sneidar via use-livecode
On the other hand, the bad thing about Linux is that there are so many to choose from... Bob S > On May 18, 2017, at 13:08 , Mark Wieder via use-livecode > wrote: > > Heh. The nice thing about linux is there are so many to choose from... > > -- > Mark Wieder

Re: Writing Extensions

2017-05-18 Thread Mark Wieder via use-livecode
On 05/18/2017 10:57 AM, Mark Waddingham via use-livecode wrote: On 2017-05-18 18:18, Mark Wieder via use-livecode wrote: That's unfortunate. It means that, aside from distributing the widget source code, compiled widgets are bound to a specific LC version with no guarantee that they will work

Re: User friendly functions to replace MySQL queries?

2017-05-18 Thread Andre Garzia via use-livecode
Aloha Friends, I have been away for a while but I am about to make some cool announcements today. I will be releasing some updates in the next few days for all libraries including this one. Also re-uploading them to my site. om om andre On Mon, May 8, 2017 at 1:30 PM, Kaveh Bazargan via

Re: Sort so that "Hello" is always before "hello"

2017-05-18 Thread Bob Sneidar via use-livecode
doesn't look like there is a command to do this. Try creating an sqLite database in memory (or on disk it doesn't matter) called tempdata with a column called textdata, adding your words/items/lines to the database, then query the database with select textdata from template order by textdata.

Re: Writing Extensions

2017-05-18 Thread Mark Waddingham via use-livecode
On 2017-05-18 18:18, Mark Wieder via use-livecode wrote: That's unfortunate. It means that, aside from distributing the widget source code, compiled widgets are bound to a specific LC version with no guarantee that they will work with any other past or future version. Does 'major version' here

Re: Writing Extensions

2017-05-18 Thread Mark Waddingham via use-livecode
On 2017-05-18 18:07, Mark Wieder via use-livecode wrote: Didn't find it in the dictionary, but I do see that now in the language reference. How would one define a quote constant? constant quote is "\q" ? Yes. The language guide explicitly states "Note: Constants are not currently

Re: English Like?

2017-05-18 Thread William Prothero via use-livecode
Richard: Thanks for the kind words. I think that comments by relative newbies, who don’t have the same experience with LC are very important. I’ve mentioned several times that some of the tutorials and lessons can miss things that the author takes for granted. I’m particularly sensitive to this

Re: Sort so that "Hello" is always before "hello"

2017-05-18 Thread Phil Davis via use-livecode
"set the caseSensitive to true" before sorting. Phil Davis On 5/18/17 10:10 AM, Kaveh Bazargan via use-livecode wrote: I have the following lines when a list of words is sorted: Hello hello Hello hello hello so there is no hierarchy between upper and lower case chars. I want caps to go

Sort so that "Hello" is always before "hello"

2017-05-18 Thread Kaveh Bazargan via use-livecode
I have the following lines when a list of words is sorted: Hello hello Hello hello hello so there is no hierarchy between upper and lower case chars. I want caps to go first. How do i do that pls? -- Kaveh Bazargan Director River Valley Technologies @kaveh1000 +44 7771 824 111

Re: Writing Extensions

2017-05-18 Thread Mark Wieder via use-livecode
It's not necessary to do any C++ (or any other language) coding to work with LCB. One of the reasons for LCB's existence is to allow the language to be extended into linking with parts of the operating system where it can't currently reach, and in that sense knowledge of how to interact with

Re: Writing Extensions

2017-05-18 Thread Mark Wieder via use-livecode
On 05/18/2017 12:30 AM, Mark Waddingham via use-livecode wrote: Unfortunately we aren't going to be guaranteeing binary-level compatibility of the LCB module format for quite some time - it will likely change in every major version for quite a while yet. That's unfortunate. It means that,

Re: Writing Extensions

2017-05-18 Thread Mark Wieder via use-livecode
On 05/18/2017 12:45 AM, Mark Waddingham via use-livecode wrote: You can define constants using: constant X is Y Currently Y has to be a literal - not an expression (just like LCS). Didn't find it in the dictionary, but I do see that now in the language reference. How would one define a

Re: Android policy update

2017-05-18 Thread Colin Holgate via use-livecode
The policy does tell you that if an existing app is not allowed you have 30 days to submit an update. So, a little slower that ASAP. > On May 18, 2017, at 7:51 AM, Bob Sneidar via use-livecode > wrote: > > Dam! I was almost ready to deploy my new iOS app, Jerky

Re: Android policy update

2017-05-18 Thread Bob Sneidar via use-livecode
Dam! I was almost ready to deploy my new iOS app, Jerky 2.0! Bob S > On May 17, 2017, at 16:08 , Richard Gaskin via use-livecode > wrote: > > Of course any app that violates any of the other policies outlined on that > page will be dumped ASAP, regardless of

Re: Writing Extensions

2017-05-18 Thread Roland Huettmann via use-livecode
I am following this discussion about extensions with great interest. Still, partially it goes over my head and as a simple LCS scripter, I sometimes feel a bit lost. As I read from different beginners sources, the best is always to know C and C++ as the "mothers" of languages to then being able

HTML5 deployment: progress comes into sight

2017-05-18 Thread hh via use-livecode
[Excerpt from thread 'LC core team', now with a more approriate title.] > > Mark Waddingham wrote on May 18, 2017: > > What are the consequences of that [team] change for the HTML5 deployment? > > There was no progress with that for half a year. Is it now 'stopped'? > > No - it never stopped.

Re: Writing Extensions

2017-05-18 Thread Mark Waddingham via use-livecode
On 2017-05-18 15:53, hh via use-livecode wrote: LCB bug reports by me only: 18899 CONFIRMED 2016-11-29, LCB: load image from resource file defunct in 9.0.0-dp2 18669 CONFIRMED 2016-10-24, LCB: display problem in Linux when rotating the canvas 18628 CONFIRMED 2016-11-03, LCB: Random 'jumping' of

Re: Writing Extensions

2017-05-18 Thread hh via use-livecode
>> hh wrote: >> See for example (in forum/bug-triage): >> http://forums.livecode.com/viewtopic.php?p=148665#p148665 > Mark W. wrote: > I have to remind people - please file bug reports! If you don't then the > chances of these things getting addressed, explained, or advice given > reduces

Re: Android policy update

2017-05-18 Thread Mark Waddingham via use-livecode
On 2017-05-18 15:00, Colin Holgate via use-livecode wrote: The things that you’re talking about, involving an app updating itself, does that currently get past Apple review? That would be an argument to use with Google, in that Apple have usually been tougher about this. Also, does Google’s

Re: Android policy update

2017-05-18 Thread Colin Holgate via use-livecode
The things that you’re talking about, involving an app updating itself, does that currently get past Apple review? That would be an argument to use with Google, in that Apple have usually been tougher about this. Also, does Google’s policy suggest that you can’t even update an image in the

Re: Writing Extensions

2017-05-18 Thread Mark Waddingham via use-livecode
On 2017-05-17 01:02, hh via use-livecode wrote: Alejandro T. wrote: How fast is LCB working with imagedata? Would be great, if not too difficult to realise, to have a "do as javascript" here (which uses the js engine only of the browser widget). This is at least ten times faster with imagedata

Re: Writing Extensions

2017-05-18 Thread Mark Waddingham via use-livecode
On 2017-05-18 13:29, hh via use-livecode wrote: No, not only the binary-level compatibility is the problem. LC Builder is not downward compatible (without documenting that), already running parts are removed. See for example (in forum/bug-triage):

Re: LC core team

2017-05-18 Thread Mark Waddingham via use-livecode
On 2017-05-18 12:48, hh via use-livecode wrote: There is rumour about personal changes in the LC core-team. Could we please get some reliable info about that? Well, not 'personal' (in the usual sense of the word) per-se, but our team has changed slightly recently. I'll post some more

Re: Android policy update

2017-05-18 Thread Colin Holgate via use-livecode
I haven’t been following this topic, but I happen to be at Google I/O. If there are any short questions I could ask while I’m here I could ask around. One thing I’m going to go to this morning involves Google Play policies. ___ use-livecode mailing

Re: Writing Extensions

2017-05-18 Thread hh via use-livecode
> hh wrote: >> But I wait for my next examples until there is a stable >> widget format (we have meanwhile three formats that work on >> some LC versions only, not on the others). > Mark Waddingham wrote: > Unfortunately we aren't going to be guaranteeing binary-level > compatibility of the LCB

LC core team

2017-05-18 Thread hh via use-livecode
There is rumour about personal changes in the LC core-team. Could we please get some reliable info about that? What are the consequences of that change for the HTML5 deployment? There was no progress with that for half a year. Is it now 'stopped'? ___

Re: Writing Extensions

2017-05-18 Thread Ali Lloyd via use-livecode
Thanks Mark, those comments on the docs are really helpful! I've filed bugs for the core language features, the fixed width font in the extension builder, script object docs and misleading CamelCase naming. On Thu, May 18, 2017 at 8:59 AM Mark Waddingham via use-livecode <

Re: Writing Extensions

2017-05-18 Thread Mark Waddingham via use-livecode
On 2017-05-17 23:43, Mark Wieder via use-livecode wrote: Yes. In fact it's the areas where they differ that make for a difficult learning curve. There are features in LCB that I wish were backported to LCS. I appreciate the team's reticence to make syntax changes to the core xtalk language, but

Re: Writing Extensions

2017-05-18 Thread Mark Waddingham via use-livecode
On 2017-05-17 21:27, Mark Wieder via use-livecode wrote: Well, I'd love to have more parity between LCS and LCB as far as keywords and syntax, but I guess that's outside the scope of the documentation per se. But finding that constants like comma and quote aren't defined in LCB was a shock.

Re: Writing Extensions

2017-05-18 Thread Mark Waddingham via use-livecode
On 2017-05-17 01:02, hh via use-livecode wrote: But I wait for my next examples until there is a stable widget format (we have meanwhile three formats that work on some LC versions only, not on the others). Unfortunately we aren't going to be guaranteeing binary-level compatibility of the LCB

Re: Writing Extensions

2017-05-18 Thread Mark Waddingham via use-livecode
On 2017-05-17 23:30, JB via use-livecode wrote: It looks to me like a the easier stepping stone to fill the gap is just write the code in C/C++, compile it and call it using a shell coimmand. That works fine for batch processing type scenarios, certainly. However, it doesn't work if you want

Re: Android policy update

2017-05-18 Thread Mark Waddingham via use-livecode
On 2017-05-18 00:25, J. Landman Gay via use-livecode wrote: I just got a developer email about a revision to Google's policies for apps on Google Play. Google will not allow apps that download executable code, similar to Apple's policy. It sounds like that includes stack content downloaded via a