Re: Is it possible to implement Weizenbaum's original Eliza as a chatbot with LIVECODE?

2019-10-11 Thread hh via use-livecode
> I wrote: > You could build on https://www.masswerk.at/elizabot/ > ... > You could similarly make a LC GUI based on elizabot.js in > a browser widget. > ... Here is a basic LiveCode GUI: Browser Widget usage example #28: ELIZA_bot http://forums.livecode.com/viewtopic.php?p=184198#p184198 The

Re: Give a bug a hug

2019-10-11 Thread hh via use-livecode
This is a wonderful project. Should be limited to bugs that are NOT regressions. And instead extended by feature requests. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your

Re: Is it possible to implement Weizenbaum's original Eliza as a chatbot with LIVECODE?

2019-10-11 Thread hh via use-livecode
You could build on https://www.masswerk.at/elizabot/ They build there in javascript on it for a "terminal" or speech i/o. You could similarly make a LC GUI based on elizabot.js in a browser widget. Or moreover translate elizabot.js to LiveCode. The js is already object oriented and has 1.7K in

Re: Catalina

2019-10-09 Thread hh via use-livecode
> Bob S. wrote: > Can I just point out, to no one in particular on this list, that > you don't HAVE TO UPGRADE TO CATALINA??? Apple did not cause your > version of LC to become obsolete. YOU DID! > > Matthias R. wrote: > Thanks Bot, i thought the same, but did not dare to write it. It is just

Catalina

2019-10-08 Thread hh via use-livecode
"Catalina is a girl's name of Spanish origin meaning 'pure'". What a beautiful sounding name! But MacOS Catalina is a pure killer. Killed my beloved LC 6/7 (I need for development of Raspi stacks) and sometimes need for speed. I learned LiveCode using LC 6 in 2013. TMHO, LC 6.7.11 was the most

Re: Subject: Re: ...and Livecode... where are we now

2019-10-03 Thread hh via use-livecode
> Sean C. wrote; > Now let me get back to fixing HTML5 for you!! Wow ... Where is the piece I missed? @Heather Every (software) kingdom needs a court jester. They have special rights and nobody should be insulted by them. (And sometimes they say, just as young children, the truth.)

Re: HTML5

2019-10-03 Thread hh via use-livecode
Possibly the server of your webpage is very slow. I need here at most 9-10 seconds to load a standalone the first time from http://hyperhh.de/html5 . You could load one of the latest (9.5.0 created) there and compare. Or you have conflict with SOP (same origin policy). Is your standalone trying

Re: ...and Livecode... where are we now?

2019-10-02 Thread hh via use-livecode
> Trevor D. wrote: > If that is the case and they can build that revenue source > then it should ultimately be a good thing for those of us > who don't use LiveCode FM. It is unfortunate that LC has > to sit mostly idle for so long though. All true. But will the idle state of LC ever change

Re: LC Garbage Collection?

2019-09-24 Thread hh via use-livecode
LC 9.0.5 closed at about 42 memory leaks ... ___ 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

HTML5: MultiWindows and GoStackURL v155

2019-09-22 Thread hh via use-livecode
This is my last HTML5-contribution for a while (I'm waiting for LC input to HTML5). This is now more javascript than intended. But the LC mouse coordinates computation has a bug (was reported by Bernd). You can now grab and resize all windows and reorder the layers of them (incl. the main

Re: SFTP and Community version

2019-09-20 Thread hh via use-livecode
No. See line 568 to 574 of revliburl.livecodescript (put "sftp protocol not supported in this version") ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription

Re: BasicGeoLib_v100

2019-09-19 Thread hh via use-livecode
GeoLib_v105 is now a library (as substack of the sample stack). The new version has several additions. These are now the supported functions (rightClick the hh-Logo in the sample stack to see the library stack script): * getHaversineDistance(point1,point2) * getDistance(point1,point2

Re: Test post: Its awfully quiet around here...

2019-09-16 Thread hh via use-livecode
@Mark This is the silence(*) that is the same as is with LC (without LCFM) since one year. What about *some* progress at least with • an up-to-date libbrowser/browser widget that *works* on latest OS of Mac/Win/linux(ubuntu)? • full keyboard and mouse events support in HTML standalones? •

Re: Browser selections

2019-09-12 Thread hh via use-livecode
Perhaps you wish to select the text (not getting the selected text what is more difficult) of a textarea with id='j1" then you can do: on mouseUp put 10 into selStart; put 20 into selEnd do "document.getElementById('j1')." & \ "setSelectionRange("& selStart,selEnd &");" in widget

Re: Browser selections

2019-09-12 Thread hh via use-livecode
> JLG wrote: > Is there a way select text by script in a browser widget? I thought I'd > done that before but I don't see a command for it now. You certainly didn't that without javascript. Here is a demostack that shows how to do that, only a few lines are needed for using a

Re: BasicGeoLib_v100

2019-09-12 Thread hh via use-livecode
Forgot the link. BasicGeoLib is available on "SampleStacks" or here: http://livecodeshare.runrev.com/stack/949/basicGeoLib ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your

BasicGeoLib_v100

2019-09-12 Thread hh via use-livecode
Some specialists may be interested in the following, please report if you have any problem with the stack. BasicGeoLib is a collection of very basic functions for using geoPoints. The points have to be in the format: longitude,latitude in that order, as decimal numbers, as in GeoJSON, NOT in

OSTimeInfo_105

2019-09-10 Thread hh via use-livecode
OSTimeInfo_105 is #111 of the Raspi stacks collection. What it does: Shows the uptime (since last reboot) and shows last reboot, last shutdown and last uptime. Works with LC 6/7/8/9 on Mac, Win 7/10, linux (Ubuntu 1904 flavours) and with LC 6.5.1/7.0.4 on Raspi 3/4 running Raspbian or Lubuntu.

How to disable Navigation/BackNavigation in the browser widget

2019-09-01 Thread hh via use-livecode
As this was several times a question in the forum and also in the use-list here a method that works in the browser widget (without redirecting) on all platforms that support the widget. Browser widget usage example #27: NoNavigation/NoBackNavigation

Save/Open stack to/from variable?

2019-09-01 Thread hh via use-livecode
In a situation where you can't 'directly' access the filesystem in order to save or read a stack but can write any variable to a local file and read from any local file to a variable, the questions arise: • Can we save (the current state of) a stack to a variable in a format as the usual

Re: Is HTML5 really practical?

2019-09-01 Thread hh via use-livecode
> Alex T. wrote: > Is there a way to force a reload of the bit you want (need) to reload, > without reloading the engine ? (Continuing my answer) For a reload from cache you can do "location.reload()" as "javascript" If you mean to load another standalone or reset the current standalone

Re: Launch vs Set in widget

2019-09-01 Thread hh via use-livecode
Originally such things could be used to "redirect" urls. But in the current browser widget this is not used and in fact there is no difference between the two: [ The LCB code is public handler OnLaunchUrl(in pUrl as String) setUrl(pUrl) end handler ] But I have meanwhile found a solution you

Re: Is HTML5 really practical?

2019-08-31 Thread hh via use-livecode
> Is there a way to force a reload of the bit you want (need) to reload, > without reloading the engine ? A reload doesn't reload the engine at any rate. To the contrary, it usually just resets the standalone if the engine is (also on server) identical. So reloading a standalone or loading

Re: Launch vs Set in widget

2019-08-31 Thread hh via use-livecode
> JLG wrote: > What is the difference between "launch URL" and "set the URL" in a > browser widget? You probably mean load url which caches non-blocking, contrary to set url. There is also load url in widget which also sends you a message, contrary to set url. Launch url leaves LC and launches

Re: Is HTML5 really practical?

2019-08-31 Thread hh via use-livecode
> Rick H. wrote: > LC HTML5 engine in my opinion isn’t practical for many of the > reasons other’s have stated... > ... What does work for making websites/webpages is: > Apache 2.x, LC Server, databases such as PostgreSQL, > non-LC HTML5, and CSS. I have made with nearly every progress in the

Re: Native HTML5 field

2019-08-31 Thread hh via use-livecode
Just uploaded the source code to "Sample Stacks": [1] HTML5 Multi Windows (Focus-Move-Resize) v110 [2] HTML5 GoStackURL v100 [3] HTML5 Native Field v106 or use http://livecodeshare.runrev.com/stack/945/ ... for [1] http://livecodeshare.runrev.com/stack/947/ ... for [2]

Re: Is HTML5 really practical?

2019-08-31 Thread hh via use-livecode
The HTML5 deployment has its own problems. The biggest problem is that people use it for free and are not willing to buy (at least for a short period) the HTML5 license in order to support further LC development in that field (but then moan about missing features). So, also from that reason,

Native HTML5 field

2019-08-29 Thread hh via use-livecode
One shouldn't go for months without a gift (for some of you). Here is its. * Native HTML5 Field v_101 (for HTML5 standalones )* This works with Chrome, Firefox and Safari on Mac, Windows and linux. (With Firefox are problems when dragging from one field to the other). Test it from (US)

Maintenance forever?

2019-08-29 Thread hh via use-livecode
To do the same things twice or three times is OK if some people have difficulties to do their job. But that's going too far now. After close to a week the "maintenance" people are still exercising only. Many posts are lost in forums and use-list. No upload to livecodeshare is possible. Nearly

Re: Browser widget cookies?

2019-08-28 Thread hh via use-livecode
> Geoff C. wrote: > If I set the url for the browser widget to a url, and the > server sets a cookie, can I read/modify/delete that cookie? Cookie structure (itemdel is ";"). item 1: A "name = value" pair containing the actual data, item 2: An expiry date after which it is no longer valid,

Re: BackKey in browser widget

2019-08-27 Thread hh via use-livecode
(Assuming you don't mean the backKey that leaves your app.) This is eventually not possible from security reasons. There are brute force javascript approaches that probably will break as soon as libbrowser changes and have side effects. Using "on browserNavigateBegin" will lead to an infinite

Multiple windows in HTML5

2019-08-27 Thread hh via use-livecode
I added two demos to my HTML5 standalone samples (US) http://hh.on-rev.com/html5/index-large.html#as (EU) http://hyperhh.de/html5/index-large.html#as 1 • Multi Focus-Move-Resize shows how to move and resize multiple windows (substacks) incl. the main window. Moreover the stack windows are

Re: Selective forums

2019-08-27 Thread hh via use-livecode
> Heather wrote: > Very interesting, yes. We're investigating. Probably to do > with who posted what when, at what point of transition. Some "diff threads" disappeared but it is Ok now. Possibly this was simply a wrong browser/platform switch. ___

Re: another list test

2019-08-27 Thread hh via use-livecode
> Heather wrote: > Hooray, we are back. Thanks to Robin's dedicated work and excellent > detective abilities in figuring out the problem. > Apologies to all for the outage of the lists, they didn't make it > over correctly to our new server and diagnosing the issue was tricky! > > You can all

Selective forums

2019-08-27 Thread hh via use-livecode
The forums have when viewed in Firefox-Mac some days and newer messages lost. Different to Safari/Chrome-Mac where some in-between-posts are lost. This is NOT a problem of caching, but another problem created by "maintenance"... ___ use-livecode

livecodeshare

2019-08-24 Thread hh via use-livecode
Who knows why livecodeshare is now disabled (has maintenance forever respectively)? It was working without problems. And the domain runrev.com is still alive ... ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to

Re: LC expectations

2019-08-23 Thread hh via use-livecode
> So let´s say they "finally" killed the old ones [addresses] I really don't mind the fact. I even wonder that it wasn't done earlier. Could also be done with other "runrev" and "rev" things (for example http://lists.runrev.com and all the libraries). But I mind the procedure. This is not

Re: LC expectations

2019-08-23 Thread hh via use-livecode
Obviously they killed some x.runrev.com addresses and replaced them by x.livecode.com (but not all). Under maintenance forever (so watch 'old' links): forums.runrev.com/ quality.runrev.com/ livecodeshare.runrev.com/ works now as: forums.livecode.com/ quality.livecode.com/ but doesn't exist:

Re: LC expectations

2019-08-23 Thread hh via use-livecode
> Matthias R. wrote: > Just tried and website is accessible You probably mean the top page of livecode.com? What do you do with that page? But on the LC toolbar click "Sample Stacks" or "Tutorials": Under maintenance, since a few thousand minutes ...

LC expectations

2019-08-23 Thread hh via use-livecode
The new LC without LCFM: > Under Maintenance > > We're working on some changes. Unfortunately, livecode.com is > temporarily unavailable. > We expect to be back in a few minutes. Never ever anything has been more than 90% finished with LC. That's life, probably this is impossible, also with

Re: Scaling Imported Images

2019-08-20 Thread hh via use-livecode
> Bob S. wrote: > I seem to remember some time ago there was a key combination > so that when you sized an image, instead of cropping it, it > would scale it. Am I imagining things? I can create a new > scaled image in Preview, so no big deal. Resizing with the pointer tool has these modifier

Re: HTML5 Focus-Move-Resize v_100

2019-08-19 Thread hh via use-livecode
Sorry, the correct download link (if not from "Sample Stacks") is http://livecodeshare.runrev.com/stack/945/ The one below loses the stack name (downloads as "rev" only). > I wrote: > Download "HTML5 Focus-Move-Resize" > from "Sample Stacks" of the LC toolbar or > >

HTML5 Focus-Move-Resize v_100

2019-08-19 Thread hh via use-livecode
The stack shows simple methods how to resize and move a HTML5 standalone in the browser and how to focus a field so that you can start typing at startup without first clicking in a field. Moving a stack window has to be done by JavaScript, the script is in the stack script. It is added to your

Re: QR-Reader_v100

2019-08-14 Thread hh via use-livecode
> So with this tip the browser widget then runs on Linux (Ubuntu) but only > in the IDE? Not as standalone? On linux QR-Reader runs here fine with LC 9.0.5 and 8.1.10 in the IDE on Ubuntu/xUbuntu 1604 64 bit and also as standalone which was made on Mac using LC 9.0.5 (with "search for required

Re: QR-Reader_v100

2019-08-14 Thread hh via use-livecode
Updated to version v101. Download QR-Reader_v101 from "Sample Stacks" of the LC toolbar or http://livecodeshare.runrev.com/stack/943/ The stack works now also on linux with snapshots from the browser widget or other apps on screen using a lengthy but clever workaround by Mark Wieder (see bug #

QR-Reader_v100

2019-08-13 Thread hh via use-livecode
QR-Reader runs with any edition of LC 8/9 (tested with 9.5/9.0.4/8.1.10) on every platform that supports the browser widget. It is a QR code *reader* which reads from static images that may be slightly rotated/skewed/distorted. You can make it to a QR code *scanner* by providing webCam/mobileCam

Re: QR Code Reader with Livecode

2019-08-12 Thread hh via use-livecode
My stack is a (simple) QR Code *reader* not a *scanner*. It reads from static images. That is, if you use a webcam on desktop or a built-in camera on mobile you have to take a (sharp) picture and then select from that picture to read the code. Usually a webcam or a mobile that cannot do an

Re: QR Code Reader with Livecode

2019-08-11 Thread hh via use-livecode
I have a QRcode Reader nearly finished. Will publish it on Wednesday in "Sample Stacks". There will be also a QRcode Writer that outputs to a SVG icon widget (or to a polygon graphic or to an image). ___ use-livecode mailing list

Re: is it possible to readfromfile line x to y

2019-08-10 Thread hh via use-livecode
1. Read for N lines reads sequentially, doesn't need an offset. 2. You could instead try to do that in one strike: put url ("file:"&) into str filter str with "*" typical line for further extracting: U+1F600 ___ use-livecode mailing list

Re: is it possible to readfromfile line x to y

2019-08-10 Thread hh via use-livecode
Did you already try (use a counter add 42 to lineCntr read from file for 42 lines --> placed into it (check the result for empty or "eof") Note. The file contains base64 encoded imagedata (which is in one long line). Such a line may be too long to display in a LC field (-> may cause a hang).

Re: "copy files", specialfolderpath("resources") and missing files = SHOWSTOPPER

2019-08-10 Thread hh via use-livecode
> But does that mean that my previous "chmod" does not stick? Yes, on every unix system. From security reasons. The Carbon question should better be answered by a team member. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit

Re: "copy files", specialfolderpath("resources") and missing files = SHOWSTOPPER

2019-08-10 Thread hh via use-livecode
Once again without missing spaces. > Klaus M. wrote: > yes, success, at least partly, now I get a SHELL error -> ... access denied > Although I "chmod"ded that file to "777" (via the INFO window on my Mac), so > everyone should be able to access it, before I put it into a custom property > of my

Re: "copy files", specialfolderpath("resources") and missing files = SHOWSTOPPER

2019-08-10 Thread hh via use-livecode
> Klaus M. wrote: > yes, success, at least partly, now I get a SHELL error -> ... access denied > Although I "chmod"ded that file to "777" (via the INFO window on my Mac), so > everyone should be able to access it, before I put it into a custom property > of my stack. What can I do to make it run?

Password Rules

2019-08-10 Thread hh via use-livecode
Often passwords should obey some rules, e.g. contain at least a certain number of digits, lowercase chars, uppercase chars, xtra chars with an ascii number in range 32-127 or special local chars as "åáãçß". Or contain only some of these char groups. Stack PasswordRules allows to check whether a

Re: "copy files", specialfolderpath("resources") and missing files = SHOWSTOPPER

2019-08-10 Thread hh via use-livecode
> Klaus M. wrote: > and what can I do to make my app run? Did you already try to put the compiled things on startup from custom props into the temporary folder? I never had problems with running compiled shell scripts from there. ___ use-livecode

Re: Should the scope of WholeMatches be expanded?

2019-08-09 Thread hh via use-livecode
There is already truewordOffset available but you have to check whether the search string is the next trueword. So matchChunk is faster. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and

Re: replacing only exact matches in script

2019-08-07 Thread hh via use-livecode
> Richard H. wrote: > I need to replace only exact true words, though. > So I need to be able to take an input string such as >5*pay - 2*monthlypay > and be able to replace “pay" with >getVal(pay,,,debtor) > without replacing monthlypay. You could try the following (works for me). Put

Re: [OT] Weighted distribution of Numbers

2019-08-05 Thread hh via use-livecode
When computing limits for distribution categories given frequencies the following may be useful: A number q is a p%-quantile of a data set If the percentage of data nums <= q is >= p% and the percentage of data nums >= q is >= (100-p)% For each percentage p there is an interval [lowerV,upperV]

Re: [OT] Weighted distribution of Numbers

2019-08-05 Thread hh via use-livecode
> I wrote: > In order to find these limits simply sort the random data (a random > sample drawn out of the raw data) and take the values that have > approximately 30% or 80% of the values below them (no scaling needed > for that). In statistical terms: Find the 30% and 80% quantiles. Please

Re: [OT] Weighted distribution of Numbers

2019-08-05 Thread hh via use-livecode
I wrote: > In order to find these limits simply sort the random data (a random > sample drawn out of the raw data) and take the values that have > approximately 30% or 80% of the values below them (no scaling needed > for that). In statistical terms: Find the 30% and 80% quantiles. Sorry, read

Re: [OT] Weighted distribution of Numbers

2019-08-05 Thread hh via use-livecode
[@Mark: A (weighted) mean is a location parameter, one number.] Here the customer (say Dagobert Duck) wants to change/weight the distribution of the data. As Dar says, he could do a mapping from 0-800 to bins as "bad, neutral, good" simply by setting limits for the bins. For example 0-30 = bad,

Re: [OT] Weighted distribution of Numbers

2019-08-04 Thread hh via use-livecode
> Ralph D. wrote: > I'm sure there's an actual name for doing this in the statistician's > world but I don't know what it is. This has nothing to do with "statistics". This is simply "try to lie by data cheating". ___ use-livecode mailing list

Re: signature widget

2019-07-30 Thread hh via use-livecode
Dictionary > widget.signature (use Bernd's tinyDict): The pathData is a numerically indexed array of path info elements. Each path info element contains three keys: - path - SVG path instructions - color - the color to paint the path with - width - the line width of the path It is now part of

Re: Gzip in HTML5

2019-07-12 Thread hh via use-livecode
Nothing directly/manually. The "need" for Gzip is meant to speed up serving the HTML5 standalone. This is done (after configuring the .htaccess file) by the server. The standalone builder gives you the files exactly as you need them. What you can change to your taste is the html file connected to

Re: Script Editor CTD

2019-06-28 Thread hh via use-livecode
> JLG wrote: > Hm. I'm also using a widget spinner. Anyone else? How do we > know it keeps going when hidden? See the LCB code: The spinner widget updates every 0.3 seconds, whether visible or not. Instead of hiding you could delete it when done. ___

Re: Script Editor CTD

2019-06-27 Thread hh via use-livecode
CTD = CORE TIPS DIRT (anagram) ___ 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: Script Editor CTD

2019-06-27 Thread hh via use-livecode
Cumulative Trauma Disorder ___ 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: Rects Revisted

2019-06-26 Thread hh via use-livecode
> Craig wrote: > Probably a brain typo... What an excellent wording! ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: Quotient

2019-06-24 Thread hh via use-livecode
A (theoretical) circle is effectively a regular polygon with "many" vertices. LC Script draws only integer valued points (although you can give decimals). That approximation of a circle by regular polygons is shown in the sample stack http://forums.livecode.com/viewtopic.php?p=98716#p98716 The

ImagePalette_v100

2019-06-24 Thread hh via use-livecode
>>> The stack needs LC 9. It also runs in LC 8 but >>> up to 10 times slower. The stack creates a color palette from any image. You set the number of colors (2-256) of the palette. Such palettes are often used to create "harmonic" designs of drawings/posters or for creating web pages. You can

Re: Resuscitation of Scott Raney Paint Tools

2019-06-23 Thread hh via use-livecode
> BR wrote: > The UI is a bit messy, but I want to give a demo of what is possible > for a coloring book with LC versus scripting this whole thing in HTML5 > with JS/CSS/HTML. (it would be a nightmare) This is only a demo if your "coloring book" uses simple pixel paint. HTML5 also includes

Re: Resuscitation of Scott Raney Paint Tools

2019-06-22 Thread hh via use-livecode
It works here in 9.5.0/9.0.5/9.0.2/8.1.10. But if you won't use the simple find dialogue I described then you could directly write (change the two instances of "selectedColor"): 1. script of colorPalette of grp "palette" of cd id 1002 of stack "HAColorChooser": on mouseUp setcolor the

Re: Resuscitation of Scott Raney Paint Tools

2019-06-22 Thread hh via use-livecode
This is a custom property name only. So do cmd-F in the PaintTools stack search for selectedColor in "this stack and its stack files" replace with selectedColor2 Save and you are done. ___ use-livecode mailing list use-livecode@lists.runrev.com

Re: Help with drawing in LiveCode...

2019-06-21 Thread hh via use-livecode
http://forums.livecode.com/viewtopic.php?p=139080#p139080 > > hh wrote: > > Here is a very simple drawing stack made once for testing the > > HTML5 standalone builder. > > > > http://hyperhh.de/html5/krikelKrakel2a-8.0.2X.html > > > Paul D. wrote: >

Re: ImageStatistics_v160

2019-06-21 Thread hh via use-livecode
In case you downloaded v160: [Version 160 had an error in the javascript for listing the (R,G,B)-triplets (was counting some green for red)] So please update! Download "ImageStatistics_v165" from "Sample Stacks" or using http://livecodeshare.runrev.com/stack/882/

Re: Help with drawing in LiveCode...

2019-06-21 Thread hh via use-livecode
Here is a very simple drawing stack made once for testing the HTML5 standalone builder. http://hyperhh.de/html5/krikelKrakel2a-8.0.2X.html > Paul D. wrote: > ... need a sample drawing stack ... > Not a paint stack, but one that uses graphic objects.

Re: Help with drawing in LiveCode...

2019-06-20 Thread hh via use-livecode
One of my "early LC works (2014)" may be (partially) what you are looking for: Raspberry Pi stacks collection #30 = SmoothDraw4.livecode http://forums.livecode.com/viewtopic.php?p=104113#p104113 > Paul D. wrote: > Thank you, but I have realized what I need a tutorial or > - even better - a

Re: Filter an array by content

2019-06-20 Thread hh via use-livecode
Why not "combine array V > filter V > split V"? > JLG wrote: > I need to filter a numeric array by the content of the keys, not by the > keys themselves. Is there a way to do that without looping through the > entire array and looking at each element?

Re: ImageStatistics_v160

2019-06-20 Thread hh via use-livecode
> I wrote: > You can also put the (R,G,B)-triplets into the x^3 bins (ranges combinations) > that > are given by dividing for each channel the 0-255 range into > x=2,4,8,16,32,64,128 bins. > Dar S. wrote: > I think I'm doing something wrong. When I check the Table checkbox, I get x*3 > values

Re: ImageStatistics_v160

2019-06-20 Thread hh via use-livecode
Forgot the link, sorry: Download ImageStatistics_v160 from "Sample Stacks" or using http://livecodeshare.runrev.com/stack/882/ ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your

ImageStatistics_v160

2019-06-20 Thread hh via use-livecode
[Version 100 computes the marginal color value distribution for each channel R/G/B of an image and some statistical parameters for each channel.] Version 160 now adds the distribution of the (R,G,B)-triplets: The frequencies of the used (R,G,B)-triplets are listed for that. By using Javascript

Re: Is there a way to use custom icons in the navbar widget?

2019-06-17 Thread hh via use-livecode
> I wrote: > It is a "HTML5 Native Button", similar to the platform related "androidbutton" > or "iosbutton" widgets. Here is the source code > https://github.com/livecode/livecode/tree/develop/extensions/widgets > > This is good to know for people who give advices relating LC to Webdesign, >

Re: Is there a way to use custom icons in the navbar widget?

2019-06-17 Thread hh via use-livecode
> Roland H. wrote: > (By the way, what is this HTML button widget meant to do? I searched 40 > minutes and still have no clue... Is this my fault to scratch my head?) It is a "HTML5 Native Button", similar to the platform related "androidbutton" or "iosbutton" widgets. Here is the source code

Re: Is there a way to use custom icons in the navbar widget?

2019-06-15 Thread hh via use-livecode
> Tom G. wrote: > I ended up making my own svg nav bar because i wanted the ability to have > shadows or glows on the icons, its really easy to code the distribution of > icons. There was also another limitation that I can't remember. If you > want more visual control, that is what i would

Re: math on widths doesn't add up

2019-06-15 Thread hh via use-livecode
[Sorry, confused notation. The last part of my previous post should read:] This is certainly in general a clear method for counting/ identifying pixels. For example: The rect (x1,y1,x2,y2) with x1 I wrote: > "Use center pixel coordinates" does probably mean you use the math-loc > of a pixel as

Re: math on widths doesn't add up

2019-06-15 Thread hh via use-livecode
> Ralph D. wrote: > You don't need sub-pixels per say but you need to know they exist. > I found that out real quick when writing the color gradient math for > CGI. If I did not use center pixel coordinates the gradients were > "jaggy" so to speak. "Use center pixel coordinates" does probably

Re: math on widths doesn't add up

2019-06-14 Thread hh via use-livecode
@Dar. Could we agree that in LC Script we cannot draw subpixels? (I would like to...) And yes, you are right with the invariance of width and height. The number of pixels isn't dependent of how I enumerate them. Sorry. > I don't understand why you say "pixel 1". OK. I should say pixel 1

Re: math on widths doesn't add up

2019-06-14 Thread hh via use-livecode
@Dar. Probably you wish with your post avoid the confusion between = a math-point (x,y) which has no dimension, so cannot be drawn and = a LC-point (x,y) which is (with a linewidth of 1) in fact a shorthand for the rect (x,y,x+1,y+1)= 1 pixel, which can be drawn. So the LC-point (x,y) is (with

Re: math on widths doesn't add up

2019-06-14 Thread hh via use-livecode
This is interestingly the same problem that made a lot of people believe two thousand years were full at the end of 1999/ beginning of 2000. Two thousand years were full at the END of 2000/ beginning of 2001: Full year 1 has the left 0, the right 1 and the width = right-left = 1 year, ..., full

Re: math on widths doesn't add up

2019-06-14 Thread hh via use-livecode
Nothing is wrong: If you have a row then left is the integer left of first pixel and right is the integer right of last pixel. So left and right are the integers that limit the object, NOT pixel numbers. As to your example: pixel 1 ranges from 0 to 1, ... pixel 12 ranges from 11 to 12. The left

Re: OT - Could someone with an Android phone do me a favour and test my website?

2019-06-13 Thread hh via use-livecode
Sony Xperia Z1 (Android 4.4.2): All is readable as wanted, Impressum starts at top, Disclaimer starts at bottom. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription

Re: stack can write to prefs-folder, and cannot!?

2019-06-10 Thread hh via use-livecode
> Klaus M. wrote: > What the hell is going on here? What am I overlooking? I have here these problems also from a new stack or the message box on MacOS 10.14.5 using LC 9.5.0/ 9.0.5/ 8.1.10. But with "preferences" only, have no problems with "documents" or "desktop".

Re: Black boxes replace images in Mojave (Was "No subject")

2019-06-04 Thread hh via use-livecode
> Matthias R. wrote: > Mostly after a restart of the app, sometimes after 2 - 4 restarts > the png was correctly displayded (orange). > Tried with paint compression set to png also, but without success. Just out of interest: Happened this in the standalone only, not in the IDE? Happened this on

Re: No subject

2019-06-03 Thread hh via use-livecode
> Tom B. wrote: > The issue is that some (not all) images used in a LC standalone app > appear as black boxes. Did you already try to set the paintcompression to PNG in the standalone? Or set it to the paintcompression of the imported image? The black boxes result possibly from alpha data

Re: A question about openCard

2019-06-03 Thread hh via use-livecode
> David E. wrote: > Is there some simple way that an openCard handler can branch based on > what card it is coming from? TMHO, the function that's made for that is the target (dictionary) Returns the object which received the message that started execution. Use the target function within a

Re: play sounds in HTML5

2019-05-25 Thread hh via use-livecode
To avoid misunderstandings: This relates to a HTML5 standalone, not to using HTML5 in a browser widget. We could use two steps. Step 1. Use one certain audio file. Make this work from the html file containing where audio is a folder at the same location as your html file (on the server

Re: how to load a local file into the browser widget?

2019-05-25 Thread hh via use-livecode
>> Curt wrote: >> While I'm at it... some of the folders in the file path will >> be in Russian, which is breaking my current handler... >> I can run those items of the file path through a quick >> transliteration function to change брать into brat' etc., but >> thought it's worth checking... >

Re: Question for LCB FFI workshop attendees at upcoming conference

2019-05-24 Thread hh via use-livecode
Thank you very much for sharing these examples. > Trevor DeV. wrote: > For those interested you can find the source code for the projects we > discussed in the LCB FFI Workshop at the San Jose Conference. The > pocketsphinx project is an experiment to get it working and teach some > concepts. The

Re: Download file from widget browser ?

2019-05-23 Thread hh via use-livecode
> Ludovic T. wrote: > If I go on a website to download text files within the widget browser, > where I retrieve the downloaded file ? You could try to use browserUnhandledLoadRequest. ___ use-livecode mailing list use-livecode@lists.runrev.com Please

Re: play sounds in HTML5

2019-05-16 Thread hh via use-livecode
> Thanks Sean. > I will have to work hard because I am not familiar with Dynamic HTML. One simple way to do that: Write, a little bit more as Sean wrote, in your html file: Then first set in LC newsound, may be randomly: put "/audio/guitar-melody.wav" into newsound Then issue from LC: do

<    1   2   3   4   5   6   7   8   9   10   >