Silly Text Field Question

2016-09-20 Thread Peter Reid
I know I'm missing the obvious but I just can't figure out how to get the following behaviour with text fields... 1. When the user presses the tab key on the keyboard, the next field is selected and the current content of the next field is selected (so any typing replaces all the content). 2.

Re: Dumb question about files on a server

2016-09-20 Thread Graham Samuel
Oh Jacque, you’ve been so kind to me over Zygodact and other things, and I’ve been so slow, that I didn’t dare ask! However, you are of course spot on. Thanks. Graham > On 19 Sep 2016, at 23:43, J. Landman Gay wrote: > > On 9/19/16 3:15 PM, Graham Samuel wrote: >> I have a .lc script on the s

Re: error building iOS standalone with LiveCode 8.1

2016-09-20 Thread panagiotis merakos
Hi Chris, I just tested with your stack in LC 8.1.1 RC-1 (not public) and I confirm I still get the "resource fork, Finder information, or similar detritus not allowed” error when building an iOS standalone. After further investigation, it seems this is caused *only* if you add the "Internet" or "

Re: Xcode 8 / iOS 10 support coming in 8.1.1

2016-09-20 Thread Randy Hengst
Panos, Thank you for the help. I’ve finished rebuilding and submitting the updates to Apple. I received the same error message with multiple apps. But, I cannot reliably recreate the problem. I’ll continue to pay attention to this issue as I continue to migrate to LC 8.x be well, randy Randy

Re: Silly Text Field Question

2016-09-20 Thread Mike Bonner
Try this.. local sHilitedelay on openField -- sHilitedelay is used to avoid a weird side effect when regaining stack focus -- by clicking on a field in the card. If a field other than the previously selected -- is clicked, it can start a runaway loop. The delay solves this problem. -- when expe

Re: LiveCode interface to SCORM /LIT

2016-09-20 Thread Earthednet-wp
Todd, There's another LMS interface gaining some use, called "Common Cartridge". It addresses shortcomings that SCORM has for assessment of learning and will probably displace SCORM in higher Ed. https://www.imsglobal.org/cc/ccfaqs.html#37 Best, Bill William Prothero http://es.earthednet.org >

Re: error building iOS standalone with LiveCode 8.1

2016-09-20 Thread panagiotis merakos
Hi Chris, You can apply the workaround described here until 8.1.1 rc1 is released: https://github.com/livecode/livecode/pull/4530/files (Make sure you include the line [get shell("xattr -cr" && quote & pAppBundle & quote)] as well) Best, Panos -- On Tue, Sep 20, 2016 at 9:55 AM, panagiotis mer

Re: LiveCode interface to SCORM /LIT

2016-09-20 Thread Martin Koob
I am interested integrating my app with an LMS but felt there were too many limitations with SCORM. I then found the Tin Can API. http://tincanapi.com/scorm-vs-the-tin-can-api/ Could this be another approach to integrating LiveCode and an LMS? Martin Koob -- View this message in context:

Re: LiveCode interface to SCORM /LIT

2016-09-20 Thread Martin Koob
Oh, One more question. What is LIT? Thanks. Martin Koob -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/LiveCode-interface-to-SCORM-LIT-tp4708670p4708681.html Sent from the Revolution - User mailing list archive at Nabble.com. __

Re: LiveCode interface to SCORM /LIT

2016-09-20 Thread William Prothero
Martin: It’s actually LTI here is a link: http://www.imsglobal.org/activity/learning-tools-interoperability There is another protocol that is getting support in the US called “Common Cartridge”. Link: https://www.imsglobal.org/c

Fast Algorithm to Determine Average Brightness of an Image

2016-09-20 Thread Sannyasin Brahmanathaswami
Use Case: I want to place puzzle tiles on top of an image. We take a field, put a grc behind it, take a snapshot, crop each word off at -1000, -1000 and then scramble the tiles to make a puzzle… all this works really well. So I decided to dress it up a bit more: we dynamically choose a color fo

Re: error building iOS standalone with LiveCode 8.1

2016-09-20 Thread Chris Sheffield
That did the trick on the error, however, now LC is crashing when I try to create a build and include all the files in the app. In addition to my images folder, which contains quite a few png images, I also have a folder that contains *a lot* of mp3 files (to be exact, 8624 of them). Somewhere d

Re: error building iOS standalone with LiveCode 8.1

2016-09-20 Thread panagiotis merakos
Hi Chris, Is the crash consistent when you include the second workaround? I am not on a MacOS Sierra to test now. Best, Panos -- On Tue, Sep 20, 2016 at 10:32 PM, Chris Sheffield wrote: > That did the trick on the error, however, now LC is crashing when I try to > create a build and include al

Re: Fast Algorithm to Determine Average Brightness of an Image

2016-09-20 Thread Rick Harrison
Hi Sannyasin, Based on my previous experiences trying to process images with LC pixel by pixel, I would have to say no. LC is too slow for this kind of processing. You would probably have to use a routine written in some other language like Objective C, or C++, etc. If anyone else has had a diff

Re: error building iOS standalone with LiveCode 8.1

2016-09-20 Thread Chris Sheffield
The crash is consistent, yes, even after applying the second workaround. Like I said, it appears to be happening during the file copy process, before the code signing even takes place. If it would be helpful, I can upload another archive to my dropbox that includes those audio files. I didn’t i

Re: Silly Text Field Question

2016-09-20 Thread Richmond
Maybe I'm being a bit thick, but . . . I have a stack with four textFields and this script in the cardScript: on tabkey put the id of the selected fld into FLDN set the selected fld FLDN to not the selected fld FLDN end tabkey Which means that every time I press my TAB key the selection p

Re: Fast Algorithm to Determine Average Brightness of an Image

2016-09-20 Thread hh
> So is there a fast, efficient way to analyze a 1200 X 800 px > image to get this average brightness value. You could try the following function. It is "dirty" (the definition of 'brightness' is also unsharp!), but it is very fast. local ii="tmp-1.414214" -- uses the average color intensity of

How to extract specific columns/line items from a CSV file?

2016-09-20 Thread Keith Clarke
Hi folks, I’ve a large number of sizeable CSV files from each of which I need to extract just 2 or 3 specific columns. Creating nested iterations through every item in every line seems somewhat inefficient - as does loading each full file into memory - so I feel I must be missing a trick here.

Re: Silly Text Field Question

2016-09-20 Thread Richmond
Well, I missed something as well. I just put this script in the cardScript: on openCard set the autoTab of fld "f1" to true set the autoTab of fld "f2" to true set the autoTab of fld "f3" to true set the autoTab of fld "f4" to true end openCard and everything works . . . even if I d

Re: error building iOS standalone with LiveCode 8.1

2016-09-20 Thread panagiotis merakos
Since the crash occurs before the code signing takes place, I do not think it is caused by the second workaround. I would suggest you upload another archive that includes the audio files. The crash log would be helpful, as well. If I remember correctly, on OSX the crash logs should be stored in /Us

Re: How to extract specific columns/line items from a CSV file?

2016-09-20 Thread Mike Bonner
If a file you can do this.. repeat for each line tline in url "file:yourfilename.csv" put item 1 of tLine & comma & item 3 of tline & comma & item 15 of tLine & return after tExtracted end repeat delete the last char of tExtracted -- remove the extraneous return Or you can put them into an array

Re: How to extract specific columns/line items from a CSV file?

2016-09-20 Thread dunbarx
What Mike said. The reason he said it is this: I made a 1,000,000 line CSV dataset. I extracted two random columns from it. The new 1,000,000 line dataset took 33 ticks. Craig Newman -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/How-to-extract-specific-colu

Re: How to extract specific columns/line items from a CSV file?

2016-09-20 Thread Keith Clarke
Thanks Mike (& Craig) for confirming that iteration of some sort is the way to go. It’s interesting that the url container can be addressed directly, instead of loading the file - I’d not seen that before. I’m currently pulling each file into a regular variable, so will probably stick with tha

RE: What's everyone working on this month? (September 2016)

2016-09-20 Thread Ralph DiMola
I am migrating all my mobile apps from 6.7.x to LC 8.1.0. I am impressed with LC 8 so far now that I am into it heavy. No IDE crashes or lockups on Win 10 and El Capitan so far. IDE load times are as fast if not faster than LC6. iOS builds are using Xcode 7.3.1. I have submitted a couple of bug

Re: How to extract specific columns/line items from a CSV file?

2016-09-20 Thread Richard Gaskin
Keith Clarke wrote: > It’s interesting that the url container can be addressed directly, > instead of loading the file get url ("file:"& tFile) ...does the same as: open file tFile for read read from file until EOF close file tFile It's just more convenient than using the three-line m

Re: use-livecode Digest, Vol 156, Issue 20

2016-09-20 Thread Bob Sneidar
Once something is part of a standard, getting it unstandardized is probably like brain surgery with a bic pen. Best not attempted. Bob S On Sep 10, 2016, at 03:28 , Peter Reid mailto:pr...@reidit.co.uk>> wrote: 1.:

Re: Strategies to test stacks in different platforms

2016-09-20 Thread Bob Sneidar
+1. I got 2 new technicians whose struggles with Forms Generator made me rethink a few things. They also found bugs I had not yet discovered. Bob S On Sep 10, 2016, at 14:09 , J. Landman Gay mailto:jac...@hyperactivesw.com>> wrote: Really the only way to test thoroughly is to find someone els

Re: ANN: new glx2 script editor now on line

2016-09-20 Thread Bob Sneidar
My beloved GLX2! I thought I had lost you!!! ;-) Bob S On Sep 10, 2016, at 19:34 , ahsoftware mailto:ahsoftw...@sonic.net>> wrote: Zombie alert: the dead glx2 script editor has come back to life. >From the release notes: 2016.09.10 GLX2 3.0.19 ___

Re: Fast Algorithm to Determine Average Brightness of an Image

2016-09-20 Thread Sannyasin Brahmanathaswami
@ hh That works! fascinating. Though what is bright not bright, is, as you say, "not sharp" Images that return a value > 100 still seem bright enough to warrant darker type… and of course you may have e.g. very dark stone mountains (taking up 1/3 of the composition space at the bottom half

Re: Silly Text Field Question

2016-09-20 Thread Peter Reid
Thanks Mike & Richmond. Mike – your solution provides the behaviour I'm after but does seem to live on the edge of a runaway loop! I increased the millisec delay from 1 to 5 to try to reduce the potential for a runaway situation: local sHilitedelay on openField if sHilitedelay is empty the

Re: ANN: new glx2 script editor now on line

2016-09-20 Thread Bob Sneidar
Clairvoyance no workie... I can have a look and see if I can tell what is going wrong. Bob S On Sep 10, 2016, at 19:34 , ahsoftware mailto:ahsoftw...@sonic.net>> wrote: Zombie alert: the dead glx2 script editor has come back to life. >From the release notes: 2016.09.10 GLX2 3.0.19

Re: Bug or Feature - Tranparent Buttons Non-Responsive

2016-09-20 Thread Bob Sneidar
The way Jacque describes it is how it behaves for me. 10.11/8.1. Bob S On Sep 11, 2016, at 20:02 , J. Landman Gay mailto:jac...@hyperactivesw.com>> wrote: Is it just me that thinks the ideal button should be responsive across it's whole rect regardless of the opacity status? That that should b

Re: "lightening" a color

2016-09-20 Thread Bob Sneidar
Lots of graphic affects on Macs, but Win seems to lack some of that functionality. I will put something in front of the background, like a grapic object, then change the opacity of the graphic object. Makes selecting things with a mouse lasso impossible tho' Bob S > On Sep 10, 2016, at 15:00

Re: ANN: new glx2 script editor now on line

2016-09-20 Thread Bob Sneidar
False alarm. I was misremembering that GLX2 had clairvoyance for variable names, but that was a feature of another script editor now long defunct. Bob S On Sep 20, 2016, at 15:37 , Bob Sneidar mailto:bobsnei...@iotecdigital.com>> wrote: Clairvoyance no workie... I can have a look and see if I

Re: ANN: new glx2 script editor now on line

2016-09-20 Thread mwieder
However, there *are* a couple of things that aren't working in release 3.0.19, and I've fixed them up and will post a new build when I get home this evening. What isn't working currently is that folding scripts don't update the line numbers. - -- Mark Wieder ahsoftw...@gmail.com -- View t

Re: Fast Algorithm to Determine Average Brightness of an Image

2016-09-20 Thread hh
There is still one option that uses a weighted grayLevel-mean (I use these weights in imageJIT). This would reflect more than simple averaging that one wants a dark/light decision. return (0.1*byteToNum(byte 2 of iData) \ + 0.6*byteToNum(byte 3 of iData) \ + 0.3*byteToNum(byte 4 of iDa

Tool palette and Inspector disappearing in LC8.1?

2016-09-20 Thread Richard Burkett
I probably have a number of bugs to file when I get some time to search the bugs database and do it, but has anyone else noticed that the tool palette disappears from time to time? I have an app I’m working on with a lot of substacks with their own menus, and I often work with a script open and

Re: Silly Text Field Question

2016-09-20 Thread Mike Bonner
Yeah, it is probably wiser to increase the delay as you did to be safe (if you decided to use the method) This is another thing that would be nice as a settable property. "set the autohilite of field "whatever" to true" On Tue, Sep 20, 2016 at 4:07 PM, Peter Reid wrote: > Thanks Mike & Richmon

Re: How to extract specific columns/line items from a CSV file?

2016-09-20 Thread Mike Bonner
Thanks Richard, that does answer my question. Repeating for each line in an external url does load the whole thing at once. Someone remind me.. I think I read that the "for each" no longer creates a second copy of the data, is this correct? Or did it ever make a duplicate? On Tue, Sep 20, 2016

Re: "lightening" a color

2016-09-20 Thread Roger Eller
There's no reason that Windows can not render a graphic or color equal to that of a Mac. Video card capabilities do have relevance however. On Sep 20, 2016 6:44 PM, "Bob Sneidar" wrote: > Lots of graphic affects on Macs, but Win seems to lack some of that > functionality. I will put something i

Random topic: What script font do you like/use?

2016-09-20 Thread Jeanne A. E. DeVoto
I've used Andale Mono by preference, but I don't have the bold, and so on versions of LC after 5.x, bolding for comments and keywords doesn't show up in the script editor. (Bah.) I liked it because it was: 1) clean-looking with a good x-height 2) has easily distinguishable lowercase l, capita

Re: Random topic: What script font do you like/use?

2016-09-20 Thread Monte Goulding
> On 21 Sep 2016, at 11:31 AM, Jeanne A. E. DeVoto > wrote: > > Source Code Pro is appealing. We are contemplating bundling this with LiveCode as the default it seems to be suitably licensed. Hack is also a pretty nice open source font http://sourcefoundry.org/hack/

Re: Fast Algorithm to Determine Average Brightness of an Image

2016-09-20 Thread Sannyasin Brahmanathaswami
@ HH OK I will "bite" on your idea. but I have never examined or processed the imagedata. Please scrutinize my code below. But there is a major caveat with your original code (see below) I think I got it correct. but there is a huge difference on the result between the 1 X 1 and the 12 X 9

Re: Random topic: What script font do you like/use?

2016-09-20 Thread Mark Wieder
On 09/20/2016 06:36 PM, Monte Goulding wrote: On 21 Sep 2016, at 11:31 AM, Jeanne A. E. DeVoto wrote: Source Code Pro is appealing. Source Code Pro has been my coding font of choice on all platforms and programming languages since it was first announced. -- Mark Wieder ahsoftw...@gmai

Fast way to retrieve a range of data

2016-09-20 Thread Nicolas Cueto
Given a text field ("Vocabulary Indices") of tab-delimited data whose cr lines are organized ascending-numeric first by Column 1 ("Textbook Level" = 1, 2, or 3) then next by Column 2 ("Page Number" = 1 to 200), what are fast ways of retrieving, say, all the cr lines for Textbook Level = 2, Page Num

Re: Fast way to retrieve a range of data

2016-09-20 Thread Mike Bonner
This should be pretty fast if I understand your criteria well enough.. put field "yourfield" into tData filter lines of tData with ("2" & tab & 54 & tab & "*") On Tue, Sep 20, 2016 at 8:08 PM, Nicolas Cueto wrote: > Given a text field ("Vocabulary Indices") of tab-delimited data whose cr > line

Re: Random topic: What script font do you like/use?

2016-09-20 Thread me
I use Typewalk Mono 1915 Medium for the most part. They have a thin as well. I use thin and medium in my own editors and medium in the native one. I am a former Verdana user for the exact reasons you stated, Jeanne. Good luck on your quest! Best, Jerry On Sep 20, 2016, 8:32 PM -0500, Jeanne A.

Re: Tool palette and Inspector disappearing in LC8.1?

2016-09-20 Thread Devin Asay
> On Sep 20, 2016, at 7:04 PM, Richard Burkett > wrote: > > I probably have a number of bugs to file when I get some time to search the > bugs database and do it, but has anyone else noticed that the tool palette > disappears from time to time? I have an app I’m working on with a lot of > su

Japanese (unicode?) text problem

2016-09-20 Thread Nicolas Cueto
​With Notepad++​, created a new file, pasted English and Japanese text, set encoding to UTF-8, then saved as .txt. (Confirmed the file by opening with Windows' "Notepad".) Next, in LC8.1 ran this button script: on mouseUp put empty into field "indices" set the itemdel to quote put item

Malte Brill stack

2016-09-20 Thread Alejandro Tejada
Hi All, Many years ago, Malte Brill posted a stack (or script) that shows how to use images within text fields to simulate a game display board. In his sample text field, you could type a word and automatically, each letter was converted to a bitmap image of the letter typed. Probably, Malte cre

Re: Japanese (unicode?) text problem

2016-09-20 Thread Tim Selander
Hi Nicolas, Finally something I can answer! I have found that you need to use 'open file' because that let's you specify the file's encoding. Assume the path to your file is in tFile, these lines should work: open file tFile for utf8 read read from file tFile until end put

Re: Japanese (unicode?) text problem

2016-09-20 Thread Tore Nilsen
Internally LiveCode uses UTF-16. You can try to decode your text from UTF-8 like this: put url tUrl into tTextToDecode put textDecode(tTextToDecode,”UTF-8") into field “indices" regards Tore > 21. sep. 2016 kl. 06.30 skrev Nicolas Cueto : > > ​With Notepad++​, created a new file, pasted E

Re: Random topic: What script font do you like/use?

2016-09-20 Thread AndyP
I default to Source Code Pro SemiBold. Good identification between upper and lower case, has easily distinguishable lowercase l, capital I, and number 1, and zero and O You have the options of Source Code Pro Source Code Pro Black Source Code Pro ExtraLight Source Code Pro Light Source Code Pr

Re: Random topic: What script font do you like/use?

2016-09-20 Thread Richmond
Ubuntu bold. http://font.ubuntu.com Richmond. On 21.09.2016 04:31, Jeanne A. E. DeVoto wrote: I've used Andale Mono by preference, but I don't have the bold, and so on versions of LC after 5.x, bolding for comments and keywords doesn't show up in the script editor. (Bah.) I liked it because

Re: Japanese (unicode?) text problem

2016-09-20 Thread AndyP
or put url tUrl into tTextToDecode put uniDecode(tTextToDecode,”Japanese") into field “indices" - Andy Piddock My software never has bugs. It just develops random features. Copy the new cloud space, get your free 15GB space now: Get Copy Script editor Themer for LC http://2108.co

Re: How to extract specific columns/line items from a CSV file?

2016-09-20 Thread Keith Clarke
Thanks Richard - the target CSVs are indeed in the 1-100MB range (containing mostly noise data for my current purpose) and it’s always useful to know, amongst the many roads available with LiveCode, which 'all lead to Rome', with the same ETA! :-) Best, Keith.. > On 20 Sep 2016, at 22:42, Richa

Re: Random topic: What script font do you like/use?

2016-09-20 Thread Peter TB Brett
On 21/09/2016 02:31, Jeanne A. E. DeVoto wrote: I've used Andale Mono by preference, but I don't have the bold, and so on versions of LC after 5.x, bolding for comments and keywords doesn't show up in the script editor. (Bah.) I liked it because it was: 1) clean-looking with a good x-height 2)

Re: Random topic: What script font do you like/use?

2016-09-20 Thread David Glasgow
I use Trebuchet MS. It looks a bit different, doesn't look like an MS font, and seems similar on Mac & Win. Sent from my iBrain via iFingers & iPad i-psych.co.uk LinkedIn > On 21 Sep 2016, at 02:31, Jeanne A. E. DeVoto > wrote: > > I've used Andale Mono by preference, but I don't have the