Search found 2230 matches

by [-hh]
Sun Jan 26, 2020 7:30 pm
Forum: Feature Requests
Topic: Colored or shaded sections of code in the SE
Replies: 37
Views: 1639

Re: Only some of the SE properties are saved between sessions

Craig. I have just started to use colorized blocks. Have you already done so? This is after all a fine idea, thanks for that. If a block is such complicated that I can't recall it for 5 minutes I use marks (to jump to, as most code editors allow). Following your idea, I just now rewrote the handler ...
by [-hh]
Sun Jan 26, 2020 6:42 pm
Forum: Feature Requests
Topic: Colored or shaded sections of code in the SE
Replies: 37
Views: 1639

Re: Only some of the SE properties are saved between sessions

Interesting take on the colorizing issue, but does not address the saving part. Of course it does. The markers are part of the script, thus saved with the script. The backcolor of my marked parts is changed without changing the script: My handler doesn't make the script "dirty" because its plain te...
by [-hh]
Sun Jan 26, 2020 5:43 pm
Forum: Feature Requests
Topic: Colored or shaded sections of code in the SE
Replies: 37
Views: 1639

Re: Only some of the SE properties are saved between sessions

Craig. Scripts are saved as plain text and newly colorized when reformatting what first removes all styles. But there is a simple remedy: 1. Insert markers #BC start and #BC end into the script where the "custom backColor" should occur. For example: on updateImage x, modus put the height of grp x in...
by [-hh]
Sun Jan 26, 2020 2:43 pm
Forum: Feature Requests
Topic: Colored or shaded sections of code in the SE
Replies: 37
Views: 1639

Re: Colored or shaded sections of code in the SE

HtmlText will only include properties within the text itself, not field properties. If no text run within the field has had its textFont or textSize assigned, it will render with the textFont and textSize of the field the text is in. While those field properties will affect appearance, they are not...
by [-hh]
Fri Jan 24, 2020 7:52 pm
Forum: Talking LiveCode
Topic: Polynomial curve fitting
Replies: 17
Views: 876

Re: Polynomial curve fitting

This is the well known polysolve algorithm (which is the general linear model solution specialized for the polygonial hypothesis). See an online computation (incl. your example and a graphical output) for example here: https://arachnoid.com/polysolve/index.html Now you translated that algorithm to L...
by [-hh]
Fri Jan 24, 2020 1:34 pm
Forum: Talking LiveCode
Topic: Polynomial curve fitting
Replies: 17
Views: 876

Re: Polynomial curve fitting

Why do you ask if you already have a working routine? What a waste of time ...
by [-hh]
Fri Jan 24, 2020 8:22 am
Forum: Talking LiveCode
Topic: Polynomial curve fitting
Replies: 17
Views: 876

Re: Polynomial curve fitting

First please read https://en.wikipedia.org/wiki/Polynomial_regression to understand that polynomial regression is a special case of multiple linear regression. So all you essentially need is a fast handler for computing the inverse of the matrix X'X where X is given in the wiki above. This is basic ...
by [-hh]
Sat Jan 11, 2020 2:16 am
Forum: Off-Topic
Topic: The death of grass?
Replies: 29
Views: 1726

Re: The death of grass?

The law of averages, no comment. Currently we have: Total posts 173400 • Total members 119998 and 52 members with more than 400 posts: Klaus 11385, FourthWorld 7120, dunbarx 6301, jacque 5171, Mark 5142, bogs 4068, richmond62 3908, Simon 3901, bn 3325, mwieder 2861, jmburnod 2404, [-hh] 2195, SparkO...
by [-hh]
Thu Jan 02, 2020 3:23 pm
Forum: Feature Requests
Topic: Replace LiveCode Script with JavaScript, forever
Replies: 41
Views: 2713

Re: Replace LiveCode Script with JavaScript, forever

LiveCode needs JavaScript. Yes, we wait since years for general do as "javascript", not only for HTML5 standalones. That would expand the possibilities of LiveCode significantly. But I say also: JavaScript needs LiveCode. That would expand the possibilities of JavaScript significantly. Instead of s...
by [-hh]
Mon Dec 23, 2019 11:57 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Find value in data columns
Replies: 7
Views: 481

Re: Find value in data columns

You could use a sort function (shortens Craig's first handler a little bit): Given your data is in field "IN". on mouseUp answer closestValue(2755, fld "IN") end mouseUp function closestValue pVal, pStr sort pStr numeric by abs(pVal - word 1 of each) return word 2 of line 1 of pStr end closestValue
by [-hh]
Sat Dec 21, 2019 1:33 pm
Forum: Talking LiveCode
Topic: Anomalies in keyboard shortcuts for menus on Mac
Replies: 8
Views: 532

Re: Anomalies in keyboard shortcuts for menus on Mac

Menu Builder: This is not an anomaly but what we need to use shift-chars (that is you need shift to have it) or alt-chars (that is you need option/alt to have it) or both. For example, if you have a key on your keyboard that has "/" as lower char and "?" as shift-char. Then builder: cmd + "/" --> fi...
by [-hh]
Thu Dec 12, 2019 11:16 pm
Forum: HTML5
Topic: Successful test
Replies: 69
Views: 39340

Re: Successful test

HTML5: Native PlainText Fields (basic example) The attached stack has a script of 90 lines. This includes (beside comments) all you need for creating an input field (one line) and a textarea. Both display plain text only but with all usual keyboard features (UTF-8 and cmd-A/C/V/X/Z) and drag&drop. ...
by [-hh]
Thu Dec 12, 2019 10:56 pm
Forum: HTML5
Topic: Will HTML5 development continue?
Replies: 24
Views: 1500

Re: Will HTML5 development continue?

@Richmond. Of course a "playground" (will become soon a primitive IDE) doesn't look like a LiveCode stack. The purpose of my HTML5 examples is to show some aspects of what is possible to have in HTML5 standalones. All examples were made parallel to the evolving features of HTML5 deployment since 201...
by [-hh]
Thu Dec 12, 2019 8:44 pm
Forum: HTML5
Topic: Will HTML5 development continue?
Replies: 24
Views: 1500

Re: Will HTML5 development continue?

Richmond wrote:... AND, pardon my ignorance, but what is this?
This is a demo for at least medium advanced developers. (Honestly, I expect you to have such a level.)
Read more about the demo here: viewtopic.php?p=185726#p185726
by [-hh]
Thu Dec 12, 2019 5:45 pm
Forum: HTML5
Topic: Testing locally HTML5 apps
Replies: 3
Views: 284

Re: Testing locally HTML5 apps

In order to test with LC 9.0.5 or later simply hit the button TEST of the LC toolbar . Optionally select a browser different from the default browser of your OS from menu Development > Test Target. Then LC opens your standalone with a (newly generated) local server using files generated in the tempo...

Go to advanced search