Re: Yertle the Turtle

2017-01-31 Thread Richmond Mathewson via use-livecode
Thanks for the equations (I had in fact already worked those out), the problem was not that, the problem is that (as far as I am aware) LiveCode cannot move objects for fractions of pixels, so a move of , say, 30 forward at 30 degrees might (and I haven't done the Maths yet) either be 29, 30 or

Re: Yertle the Turtle

2017-01-31 Thread Mike Bonner via use-livecode
If I recall correctly, you can SET a location now that is a fraction of a pixel.. Keep track of the decimals as your current location and use those numbers (within reason) as your start point, and continue onward. (think it was called partial pixel positioning?) While the actual location will be

Re: revDatabaseColumnNames fails to recognize table

2017-01-31 Thread Dr. Hawkins via use-livecode
On Mon, Jan 30, 2017 at 8:07 PM, Mike Kerner via use-livecode < use-livecode@lists.runrev.com> wrote: > What's the type of db, and did you try sending a pragma to pull the table > names to doublecheck? > It's postgreSQL I'll be doing that kind of read today. I was so mystified yesterday, and my

Re: revDatabaseColumnNames fails to recognize table

2017-01-31 Thread Mike Kerner via use-livecode
SELECT * FROM information_schema.columns That's from http://stackoverflow.com/questions/21728073/postgressql-search-all-tables-of-a-database-for-a-field-called-like-active or SELECT table_name FROM information_schema.tables WHERE table_schema='public' AND table_type='BASE TABLE'; from http://

Re: Yertle the Turtle

2017-01-31 Thread hh via use-livecode
> Richmond wrote: > The problem is that (as far as I am aware) LiveCode cannot > move objects for fractions of pixels. Even if it could, this would be not enough, because sqrt(2) is an irrational number ;-) ___ use-livecode mailing list use-livecode@lis

Re: revDatabaseColumnNames fails to recognize table

2017-01-31 Thread Bob Sneidar via use-livecode
I always query the master table for the table names. Get the sql column which is the create statement, from which you can parse the column names. Bob S > On Jan 30, 2017, at 18:29 , Dr. Hawkins via use-livecode > wrote: > > After opening a database, I check for the names of a table > > *pu

Re: revDatabaseColumnNames fails to recognize table

2017-01-31 Thread Bob Sneidar via use-livecode
try put word 1 to -1 of theRes into theRes. Maybe there is a cr in there somewhere. Bob S On Jan 30, 2017, at 19:03 , Dr. Hawkins via use-livecode mailto:use-livecode@lists.runrev.com>> wrote: theRes holds "dhbk_lcnsees", as it should. The name was created, found in revDatabaseTableNames, an

Re: Yertle the Turtle

2017-01-31 Thread Colin Holgate via use-livecode
Whether you’re able to set subpixel or not, keep the intended location in variables, and add your move to the variables, then set the location of the turtle to the updated variables. > On Jan 31, 2017, at 2:41 AM, Richmond Mathewson via use-livecode > wrote: > > Thanks for the equations (I h

Re: revDatabaseColumnNames fails to recognize table

2017-01-31 Thread Bob Sneidar via use-livecode
Oh PostGre I am out of my league then. Bob S On Jan 31, 2017, at 07:27 , Dr. Hawkins via use-livecode mailto:use-livecode@lists.runrev.com>> wrote: It's postgreSQL ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to

Re: Launch URL with LInk Back to LC App

2017-01-31 Thread Richard Gaskin via use-livecode
Sannyasin Brahmanathaswami wrote: > Ralph > > Thanks, hacking the pList definitely works! > > I guess Apple doesn't care, right? I would imagine not, since they defined the plist and included that value for that purpose. I suppose the question for us is: Why isn't this supported in LC as an

Re: Yertle the Turtle

2017-01-31 Thread Richard Gaskin via use-livecode
Richmond Mathewson wrote: > Being a fan of Seymour Papert . . . > > I thought I'd try and implement turtle graphics in Livecode. Have you seen Jim Hurley's?: http://jamesphurley.com/Revolution.html -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobil

Re: Launch URL with LInk Back to LC App

2017-01-31 Thread panagiotis merakos via use-livecode
This option is not in the Standalone Settings because the engine does not yet support suspend/resume explicitly. IIRC, in the past we had discussed what needs to be done to properly support suspend/resume messages on mobile, and it turned out to be quite tricky, requiring a major rewrite. On Tue

Re: Browser Widget/HTML5/LC Integration

2017-01-31 Thread Richard Gaskin via use-livecode
Alex Tweedly wrote: > HTML also has something else - CSS, The object inheritance model in > LC allows you to inherit properties (e.g. colour, margins, etc.) for > your objects - but it doesn't have any easy way to classify together > (I wanted to say "group" but that would get confusing :-) a num

RE: Launch URL with Link Back to LC App

2017-01-31 Thread Ralph DiMola via use-livecode
>Richard Gaskin wrote: >I suppose the question for us is: Why isn't this supported in LC as an option in the Standalone Builder? It is in a way with the "background audio" option in the standalone settings. Enabling will get you rejected if there is no audio played in the app(ask me how I know). T

Mobile library for barcodes?

2017-01-31 Thread Devin Asay via use-livecode
Hi all, I have a vague memory that someone had created a barcode library or extension for mobile. Anybody know anything about that? Thanks, Devin Devin Asay Director Office of Digital Humanities Brigham Young University ___ use-livecode mailing list

Re: Yertle the Turtle

2017-01-31 Thread Quentin Long via use-livecode
Suggestion for RM to try: Don't fuss about non-integer points—do all the necessary calculations "under the hood", and just let point-coördinates be assigned the resulting non-integer numbers as needed. With any luck, LC will make this "just work" on your screen. "Bewitched" + "Charlie's Ang

Re: fontLanguage()

2017-01-31 Thread Paul Hibbert via use-livecode
From my simple tests, this seems to have been broken sometime after LC5.5.5, that’s the only version I have installed that doesn’t return ascii for every font installed on my Mac. I tested; LiveCode 5.5.5.app LiveCode 6.7.8.app LiveCode Commercial 6.7.11 (rc 2).app LiveCode Indy 7.1.1.app L

Re: Yertle the Turtle

2017-01-31 Thread Richard Gaskin via use-livecode
Quentin Long wrote: > Suggestion for RM to try: Don't fuss about non-integer points—do all > the necessary calculations "under the hood", and just let point- > coördinates be assigned the resulting non-integer numbers as needed. > With any luck, LC will make this "just work" on your screen. Appa

Re: Mobile library for barcodes?

2017-01-31 Thread Roger Eller via use-livecode
This? http://mergext.com/home/mergzxing/ or http://splash21.com/sQuiRt.php On Tue, Jan 31, 2017 at 12:25 PM, Devin Asay via use-livecode < use-livecode@lists.runrev.com> wrote: > Hi all, > > I have a vague memory that someone had created a barcode library or > extension for mobile. Anybody kn

Re: Yertle the Turtle

2017-01-31 Thread Richmond Mathewson via use-livecode
If sqrt(2) is a bonkers number does anyone know how LOGO manages this? Richmond. On 1/31/17 5:36 pm, hh via use-livecode wrote: Richmond wrote: The problem is that (as far as I am aware) LiveCode cannot move objects for fractions of pixels. Even if it could, this would be not enough, because s

Re: Mobile library for barcodes?

2017-01-31 Thread John Dixon via use-livecode
John Craig wrote a library called 'squirt' for QR codes... works a treat ! Sent from my iPhone > On 31 Jan 2017, at 17:26, Devin Asay via use-livecode > wrote: > > Hi all, > > I have a vague memory that someone had created a barcode library or extension > for mobile. Anybody know anything ab

Re: Yertle the Turtle

2017-01-31 Thread Colin Holgate via use-livecode
I’m sure any system would not attempt to parse an infinite number of decimal places. The turtle would probably be placed at 1.41421356237 pixels. If you want to try more accurately than that, here’s the first million decimal places: https://apod.nasa.gov/htmltest/gifcity/sqrt2.1mil > On Jan 31

Re: Mobile library for barcodes?

2017-01-31 Thread Mike Kerner via use-livecode
Do you mean for reading them or printing them? squirt is for printing qr codes mergzxing lets you scan them, HOWEVER, I would strongly recommend that you use mergAV to scan them as it is more up-to-date, and has better options. ios only. On Tue, Jan 31, 2017 at 1:29 PM, John Dixon via use-livecod

'the printerSettings' LC Indy 7.0 to 8.1.3 rc1

2017-01-31 Thread Robert Eppich via use-livecode
The following pasted into the message box returns the result: “unknown printer”, in LC Indy 8.1.3 rc1 through to 7.0. This script operates correctly in Livecode versions up to 6.7.7, by returning the result as empty. put the printerSettings into tps set the printerSettings to tps put the result

Re: Yertle the Turtle

2017-01-31 Thread hh via use-livecode
> Colin H. wrote: > I’m sure any system would not attempt to parse an infinite number of decimal > places. The turtle would probably be placed at 1.41421356237 pixels. If you > want to try more accurately than that, here’s the first million decimal > places: > https://apod.nasa.gov/htmltest/gifci

Re: fontLanguage()

2017-01-31 Thread Phil Davis via use-livecode
Thanks Paul. I went to file a bug report and saw that Kenji Kojima filed one against LC 6.7.0 when the problem first occurred: http://quality.livecode.com/show_bug.cgi?id=12430 I didn't realize the feature had been deprecated. Ben Beaumont commented: This feature was going to be deprec

Re: Yertle the Turtle

2017-01-31 Thread Mike Bonner via use-livecode
Yeah, I think this is due to that change a while back (the partial pixel positioning stuff) it doesn't throw an error in your face if you set to a decimal coord anymore. > > Apparently fractional coordinates work fine, rounded reasonably well - > this works: > >set the left of btn 1 to 100.0

Re: Yertle the Turtle

2017-01-31 Thread Mike Bonner via use-livecode
Ah. Its sub pixel positioning. (a rose by any other name wouldn't be as alliterative as a ppp name) On Tue, Jan 31, 2017 at 2:35 PM, Mike Bonner wrote: > Yeah, I think this is due to that change a while back (the partial pixel > positioning stuff) it doesn't throw an error in your face if you se

Re: Yertle the Turtle

2017-01-31 Thread Mike Bonner via use-livecode
nvm. ignore me. :) Something else entirely. (but the whole idea of tracking the coords separately still applies) (goes to bed) On Tue, Jan 31, 2017 at 2:57 PM, Mike Bonner wrote: > Ah. Its sub pixel positioning. (a rose by any other name wouldn't be as > alliterative as a ppp name) > > On Tue,

Re: Mobile library for barcodes?

2017-01-31 Thread Devin Asay via use-livecode
Thanks for the responses. I am actually interested in *bar code* reading rather than QR codes. Do any of these solutions do bar codes? I’ll have a look as well in the meantime. Devin On Jan 31, 2017, at 11:47 AM, Mike Kerner via use-livecode mailto:use-livecode@lists.runrev.com>> wrote: Do y

Re: revDatabaseColumnNames fails to recognize table

2017-01-31 Thread Dr. Hawkins via use-livecode
On Tue, Jan 31, 2017 at 7:35 AM, Mike Kerner via use-livecode < use-livecode@lists.runrev.com> wrote: > SELECT table_name FROM information_schema.tables WHERE > table_schema='public' AND table_type='BASE TABLE'; > It wasn't so much getting the names, but trying to find out what the db thought it

Re: Mobile library for barcodes?

2017-01-31 Thread Mike Kerner via use-livecode
See my email. mergAV is choice #1 for reading. mergZX reads, but is not as advanced as mergAV and really should be deprecated because it does not have any features that mergAV does not have. It just uses a different code base. On Tue, Jan 31, 2017 at 5:31 PM, Devin Asay via use-livecode < use-l

Re: Mobile library for barcodes?

2017-01-31 Thread hh via use-livecode
> Devin A. wrote: > I am actually interested in *bar code* reading rather than QR codes. https://github.com/trozware/rev_stacks/ ? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage y

RE: Yertle the Turtle

2017-01-31 Thread Ralph DiMola via use-livecode
>Mike Wrote: >Ah. Its sub pixel positioning. (a rose by any other name wouldn't be as alliterative as a ppp name) I banged my head against a wall for days trying to get smooth shading of 3d objects correct. (assembler on a 1980's ECL super computer) until the light went on and I used center pixel

LC-Magick Collection

2017-01-31 Thread hh via use-livecode
Added today #6: Bilinear Perspective Image Distortion Distortion part by 'hh', Antialiasing part by 'BNig'. LC-Magick #1 - Blur and Pixelate (Scott R.) http://tactilemedia.com/blog/2016/03/26/update-blur-effect-plus-pixelize-bonus/ LC-Magick #2 - Pointillize (Hermann H.) http://forums.livecode.com

Re: Mobile library for barcodes?

2017-01-31 Thread Dave Kilroy via use-livecode
Devin in case you need this for Android, Monte built an Android version of merZXing (mergZXing-android-1-2 available to Indy/Business licence holders) which works fine Dave ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this

Re: Mobile library for barcodes?

2017-01-31 Thread Jonathan Lynch via use-livecode
Could you just use a JavaScript-based barcode reading library? That would work the same in all platforms. Sent from my iPhone > On Jan 31, 2017, at 6:48 PM, Dave Kilroy via use-livecode > wrote: > > Devin in case you need this for Android, Monte built an Android version of > merZXing (mergZX

Re: Mobile library for barcodes?

2017-01-31 Thread Mike Kerner via use-livecode
I am not aware of how you would get a JS library to tell the camera to capture an image on ios. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://l

Re: Mobile library for barcodes?

2017-01-31 Thread Jonathan Lynch via use-livecode
You would capture the image in LC and pass it to JC - hypothetically Sent from my iPhone > On Jan 31, 2017, at 7:36 PM, Mike Kerner via use-livecode > wrote: > > I am not aware of how you would get a JS library to tell the camera to > capture an image on ios. >

Re: Mobile library for barcodes?

2017-01-31 Thread Roger Eller via use-livecode
When a question about what's available for "mobile" is raised, I always read it as "android, iOS, and maybe even Windows-mobile". I never purchaced the full merg-suite because it doesn't fully support all of LiveCodes mobile platforms. I do have mergZXing because it works on Android. It shouldn'

Re: LC-Magick Collection

2017-01-31 Thread Roger Eller via use-livecode
I think your stack that traces the outlines of a multicolor PNG into polygon shapes would be a fabulous addition to this image tool collection. ~Roger On Jan 31, 2017 6:23 PM, "hh via use-livecode" < use-livecode@lists.runrev.com> wrote: > Added today #6: Bilinear Perspective Image Distortion >

Re: Mobile library for barcodes?

2017-01-31 Thread Mike Kerner via use-livecode
Roger, I agree. I was not aware, until you mentioned it, this evening, that zx ran on android. If that is the case, and mergAV does not, then of course it should not be deprecated, at least on Android. On iOS, it is not as useful for barcode scanning and recognition as mergAV is. Anyway, Jonath

Re: LC-Magick Collection

2017-01-31 Thread hh via use-livecode
Tracing all opaque parts of a picture with transparency, not only the outline, is one of the tools that BerndN uses in button "TracedAntialias" for the bilinear distortion, the tracing method used is "radial sweep". We should ask him to make an own 'little stack' for "Antialiased Tracing" where he