Re: Quit Command corrupts standalone (stack called by standalone splash)

2018-02-26 Thread Phil Davis via use-livecode
Hi Roland, This is the only reply of yours that I see. On 2/26/18 4:13 AM, R.H. via use-livecode wrote: Thanks, Phil and Tom I already replied, but I cannot see my first reply to your answers. Did it appear in the list? Phil: "quitMe" should be sent before 'saveMe' is executed, because th

Re: [Completely OT] Withdrawal symptoms from Slashdot

2018-03-05 Thread Phil Davis via use-livecode
Or this: https://alternativeto.net/software/slashdot/ Phil Davis On 3/3/18 6:37 PM, Rick Harrison via use-livecode wrote: Hi Alex, Try.. https://news360.com You can choose a technical focus too. Enjoy! Rick On Mar 3, 2018, at 7:09 PM, Alex Tweedly via use-livecod

Re: Issues with storage of data in stack

2018-03-08 Thread Phil Davis via use-livecode
Hi Peter, If your app could encrypt the arrayEncoded data before writing to disk, and then decrypt it when reading it, that would solve the unwanted-access problem. The amount of time used by encrypt/decrypt processes is negligible, even for large files. I love arrays. They have become one o

Re: Dinamyc variables.

2018-03-19 Thread Phil Davis via use-livecode
On 3/19/18 9:29 AM, Mike Bonner via use-livecode wrote: Use an array instead... put empty into tCardArrayA[the short name of this card] Newly created cards where you don't specify the card name on creation, will have a card name set to the id of the card. (like "card id 1002") And the array app

height of title bar

2018-03-19 Thread Phil Davis via use-livecode
Is there a way in LC to discover the height of a window's title bar? I tried comparing item 2 of the card's globalLoc(topleft of this card) to item 2 of the stack's topleft, but they are the same. I tried comparing the stack's topleft with no decorations to the same but with decorations. No j

Re: height of title bar

2018-03-19 Thread Phil Davis via use-livecode
Thank you Paul! It does indeed work as you said. Phil On 3/19/18 10:46 AM, Paul Dupuis via use-livecode wrote: On 3/19/2018 1:37 PM, Phil Davis via use-livecode wrote: Is there a way in LC to discover the height of a window's title bar? I tried comparing item 2 of the card's

Re: Checkmark for Mac & Windows

2018-03-23 Thread Phil Davis via use-livecode
One idea: - Create or find a checkmark image you like, that looks good within the textHeight of your lists - Import it into your app - make sure each line of text begins with maybe 3 spaces - use the ID of the checkmark image as the imageSource of char 1 of each line - let your (now modified)

Re: Checkmark for Mac & Windows

2018-03-23 Thread Phil Davis via use-livecode
—where 1234 is the id of the image you want to use. Marty On Mar 23, 2018, at 9:12 PM, Clarence Martin via use-livecode wrote: Phil, can you provide a sample script? -Original Message- From: use-livecode On Behalf Of Phil Davis via use-livecode Sent: Friday, March 23, 2018 7:20 PM T

Re: WordReport Help

2018-04-11 Thread Phil Davis via use-livecode
Hi Charles, On the surface it sounds to me like it might be a text encoding issue. You could do an experiment to find out. Since the textEncode() function isn't available in LC 6.1.3, you would have to use uniEncode() to encode your Word doc content before writing it to disk and handing it off

Re: WordReport Help

2018-04-11 Thread Phil Davis via use-livecode
While on a walk just now, I was thinking about line endings on Mac vs. Windows - they are different! I think you're right - open your original template in Word for Windows, add your tag, and save & close it. Then it will probably work as you expect. Phil On 4/11/18 10:52 AM, Charles Szasz vi

Re: Where LC store preferences in Windows 10?

2017-01-08 Thread Phil Davis via use-livecode
Hi Andre, Might the prefs be in the registry instead? (Seems unlikely, but just trying to cover all possibilities) Phil Davis On 1/8/17 11:24 AM, Andre Garzia via use-livecode wrote: Hey Friends, Just a crash on my surface yesterday and now LC doesn't launch. Removed all the dozen versions

Re: LC Server & Server Based Stack?

2017-01-08 Thread Phil Davis via use-livecode
On 1/8/17 12:12 PM, Stephen Barncard via use-livecode wrote: stacks are great with LC server. For instance, one can use custom properties and libraries just by 'start using' that stack. I'm not sure about fields but I think they are accessible too. And one can test and edit everything 'on the g

Re: LC Server & Server Based Stack?

2017-01-08 Thread Phil Davis via use-livecode
Hi Mike, It sounds like you're talking about things that apply when your server stack is used in a long-running LC process. If you run in CGI mode, you don't have to deal with some of those things (like figuring out when to reload a stack). Personally I'm glad the on-rev default is CGI mode.

Re: Exit without quitting

2017-01-18 Thread Phil Davis via use-livecode
Hi Bob, What happens in a standalone if you just "exit " instead of "exit to top" ? Of course that could cause problems in some contexts. Phil Davis On 1/18/17 4:20 PM, Bob Sneidar via use-livecode wrote: That is to say, it QUITS the app. BTW this "feature" is not documented. If it's not

Re: Using LC server to check for existence of mp3 on our web server?

2017-01-22 Thread Phil Davis via use-livecode
Hi Tim, Here is a very simplistic way of checking for a file on your server. It assumes your mp3 files are in a 'programs' folder that resides in the 'document root' folder. This script as it is here would be in a .lc file on your server. You pass it a filename in the url and it tells you if

Re: Delete element from array

2017-01-24 Thread Phil Davis via use-livecode
delete variable tMyArray["this key"] On 1/24/17 6:54 PM, Sannyasin Brahmanathaswami via use-livecode wrote: how do you remove a key from an array? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubsc

fontLanguage()

2017-01-30 Thread Phil Davis via use-livecode
Hi folks, In LC 8.1.2 I have checked 'the fontLanguage' of all my installed fonts and get nothing but 'ansi', even for my Arabic fonts. In some previous version of LC my experience was different - guess I'll go digging and see what I find. Does anyone have different outcomes with fontLanguag

Re: fontLanguage()

2017-01-31 Thread Phil Davis via use-livecode
9.0.0 (dp 4).app Paul p...@livecode.org Mac OS Sierra 10.12.3 On Jan 30, 2017, at 8:56 PM, Phil Davis via use-livecode wrote: Hi folks, In LC 8.1.2 I have checked 'the fontLanguage' of all my installed fonts and get nothing but 'ansi', even for my Arabic fonts. In some

fontNames

2017-02-03 Thread Phil Davis via use-livecode
I'm currently fiddling around with fonts. I see that the list returned by 'the fontNames' contains some 'placeholder' values, namely these: (Default) (Menu) (Message) (Styled Text) (System) (Text) (Tooltip) Is there a way to find out what font is used when a field's textFon

Re: fontNames

2017-02-03 Thread Phil Davis via use-livecode
Hi Craig, Maybe those new 'fonts' debuted in LC 7. I see what you're talking about in LC 6.7.10, then in 8.0.2 I see the additional ones. I don't have LC 7 installed anywhere and don't want to take the time, and none of the release notes for 6 / 7 / 8 mention it (that I can see), so... guess I

Re: fontNames

2017-02-03 Thread Phil Davis via use-livecode
A masterful explanation! Thanks Fraser - Phil On 2/3/17 7:20 PM, Fraser Gordon via use-livecode wrote: On 2017-02-03 21:03, Phil Davis via use-livecode wrote: I'm currently fiddling around with fonts. I see that the list returned by 'the fontNames' contains some 'placehol

Re: Windows and OSX 64-bit builds?

2017-02-10 Thread Phil Davis via use-livecode
Your labels are one order of magnitude off the actual values, Bob. Say it with me: 1,024,000,000 BYTES is "one billion bytes" (and change, depending on whose standard you use). Of course one billion bytes is a gigabyte. Same with the labeling of 1,024,000 BYTES = 1000kb = a megabyte, not a gig

on-rev "HTTP_UPGRADE_INSECURE_REQUESTS"

2017-02-21 Thread Phil Davis via use-livecode
Hi folks, Today I got back to my office after a long weekend to find that a desktop app I support, which was working fine last week, is blowing up during a server login process. It's trying to log into a system that runs on an on-rev server. Looking at the server globals, I notice this one:

Re: on-rev "HTTP_UPGRADE_INSECURE_REQUESTS"

2017-02-21 Thread Phil Davis via use-livecode
On Feb 21, 2017, at 14:33 , Phil Davis via use-livecode wrote: Hi folks, Today I got back to my office after a long weekend to find that a desktop app I support, which was working fine last week, is blowing up during a server login process. It's trying to log into a system that runs on

Re: on-rev "HTTP_UPGRADE_INSECURE_REQUESTS"

2017-02-21 Thread Phil Davis via use-livecode
S' is still turned on. Whatever magical thing happened, I'm very grateful. But I sure would like to know what it was so I can tell my client. Thanks - Phil On 2/21/17 3:07 PM, Phil Davis via use-livecode wrote: Thanks Bob - at least there are plenty of straws to go around. Guess I&#

Re: on-rev "HTTP_UPGRADE_INSECURE_REQUESTS"

2017-02-22 Thread Phil Davis via use-livecode
h security certificates and be done with it. Bob S On Feb 21, 2017, at 18:30 , Phil Davis via use-livecode wrote: WHAT JUST HAPPENED? The desktop app I mentioned earlier is now (around 6:15 PM Pacific time) suddenly no longer blowing up during login, and its normal speed has been restored.

Re: Community Dictionary (was Re: Delete element from array)

2017-02-24 Thread Phil Davis via use-livecode
Very nice! I think I'll start using it as my primary docs UI and see if there's anything I wish it had in addition. I love the simplicity of it. Phil Davis On 2/22/17 6:14 PM, Mike Kerner via use-livecode wrote: Everyone, Have a look at what Bernd has done. Again, the thread is http://forums

Re: The selectedText for controls without focus

2017-02-24 Thread Phil Davis via use-livecode
Don't ignore the autoHilite of a field. Dictionary says: Specifies whether a button highlights when it's pressed, or whether selected text in a field is highlighted. Phil Davis On 2/24/17 6:18 PM, Bob Sneidar via use-livecode wrote: Ok I've played with locked, traversalOn, and disabled and t

Re: SHA1 cracked .... What are the chances this will be addressed in LC?

2017-02-28 Thread Phil Davis via use-livecode
However, this works: put sha1Digest("dfgdfgdghgdhfgh") So we know it's there. FWIW - Phil Davis On 2/28/17 11:05 AM, Bob Sneidar via use-livecode wrote: I search for SHA in the dictionary, nada. I type sha1digest in to a script, right click it, nada. I type shaONEdigest in a script, rig

Re: SHA1 cracked .... What are the chances this will be addressed in LC?

2017-02-28 Thread Phil Davis via use-livecode
One thing I discovered just now: the items listed in the API tab of the Dictionary are not necessarily in alphabetic order by default. I discovered it by typing 'sh' into the Filter box and looking at the list, top to bottom. Things weren't where I expected them to be! After I clicked the 'Name

Re: revZip functions, compressing and extracting folder for transfer

2017-03-04 Thread Phil Davis via use-livecode
Here is a sanitized version of a simple zip library stack I use in projects. It keeps me from having to get down into the nuts and bolts every time I want to zip a file: https://www.dropbox.com/s/t8z27p8cy5ir1v9/libZip.livecode?dl=0 HTH - Phil Davis On 3/4/17 9:25 AM, Matt Maier via use-l

Re: AW: AW: Trouble playing videos with MS DirectShow LC 8

2017-03-07 Thread Phil Davis via use-livecode
If you pick the video file with a file dialog and set the filename of the player to "it", will it play then? If so, maybe you're having a path issue. Phil Davis On 3/7/17 8:51 AM, Tiemo Hollmann TB via use-livecode wrote: ... and as I mentioned, the videos play fine on all machines outside o

Re: AW: AW: AW: Trouble playing videos with MS DirectShow LC 8

2017-03-07 Thread Phil Davis via use-livecode
t via a dialog, but not on the other machines. Tiemo -Ursprüngliche Nachricht- Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag von Phil Davis via use-livecode Gesendet: Dienstag, 7. März 2017 18:22 An: How to use LiveCode Cc: Phil Davis Betreff: Re: A

Re: [Long] Moving a REST request from Desktop to Server

2017-03-09 Thread Phil Davis via use-livecode
+1 Andre - curl is definitely your friend for simple LC-server to other server communication. I maintain a server app that uses it to interact with the Vimeo server. https://curl.haxx.se/docs/ Phil Davis On 3/9/17 9:11 AM, Andre Garzia via use-livecode wrote: Hi, I would shell() to curl

Re: Translating escape sequence

2017-03-14 Thread Phil Davis via use-livecode
Maybe right after you import the JSON data, preprocess it with something like this: set the lineDelimiter to "\u" repeat for each line tLine in tJsonData put numToCodePoint("0x" & char 1 to 4 of tLine) & char 5 to -1 of tLine after tNewData end repeat put tNewData into tJsonData Then go o

'effective' discovery

2017-03-20 Thread Phil Davis via use-livecode
In LC 8.1.3 I just discovered you can say: put the effective properties of control x into tPropsA and it gives you all the effective properties! I knew you could do it with individual props, but didn't know you could get all of them at once. It isn't documented. -- Phil Davis _

Re: Recording audio with LC on OSX?

2017-04-07 Thread Phil Davis via use-livecode
Hi Terry, If you don't mind using a command line app from within your LC app, you might try sox ( http://sox.sourceforge.net/ ). It is quite powerful and seems simpler to me than ffmpeg ( https://ffmpeg.org/) which I have also used from within LC. One of my apps uses sox to create voice record

Re: mergEXT

2017-04-13 Thread Phil Davis via use-livecode
I just Googled "Blue-Bot uuid" maybe one of the Github links will point you in the right direction? Phil Davis On 4/13/17 9:05 AM, Richmond Mathewson via use-livecode wrote: I've just spend a fair time poking around the internet and cannot find an application that can give me the UUID nu

Re: User IP Address from LC Server?

2017-04-27 Thread Phil Davis via use-livecode
Hi Rick, I believe that would be found in $_SERVER["REMOTE_ADDR"] . Here is a simple way to see what's in the $_SERVER array: 1) Put the following code in a text file - I'll call it "globals.lc": " in tOutput put tOutput ?> 2) Upload the file to the folder on your LC server where we

Re: 8.1.4rc1 regressions

2017-05-03 Thread Phil Davis via use-livecode
Same experience here. Phil Davis On 5/3/17 8:02 AM, Bob Sneidar via use-livecode wrote: I can confirm that the script editor is buggy. If you try to close individual tabs, it borks the whole editor and no more tabs can be worked with. Scripts will not be editable and no more tabs can be close

Re: put x into URL... error on Windows network drive

2017-05-04 Thread Phil Davis via use-livecode
Is there any possibility that the network drive has spun down? I haven't tried it in recent versions of LC, but long ago I found I could get "the detailed files" of some folder on a sleeping drive and that would cause it to wake up! Food for thought - Phil Davis On 5/4/17 8:15 AM, Paul Dupui

Re: filter? replace? wildcard? reg exp? help please!

2017-05-09 Thread Phil Davis via use-livecode
There is probably an easier way, but this works: on mouseUp put "]" & field 1 into tText set the lineDelimiter to "[" set the itemDelimiter to "]" repeat for each line tLine in tText put item 2 to -1 of tLine after tNewText end repeat

Re: ANN: new team member

2017-05-11 Thread Phil Davis via use-livecode
Congratulations Ali! Is there a whisky fund where we can send donations? Phil Davis On 5/11/17 9:51 AM, Mark Wieder via use-livecode wrote: Word from the grapevine is that Ali Lloyd is the new father of a baby programmer. -- Phil Davis ___ us

Re: Wouldn't it be nice to have a "back/forward" button in script editor?

2017-05-11 Thread Phil Davis via use-livecode
Maybe show something like the executionContexts as a list in a palette, and be able to go back and forth to the referenced lines by clicking the lines? Phil Davis On 5/11/17 12:18 PM, J. Landman Gay via use-livecode wrote: On 5/11/17 2:09 PM, Richard Gaskin via use-livecode wrote: J. Landma

Re: Android Touchscreen Malfunction

2017-05-16 Thread Phil Davis via use-livecode
I assume flushEvents() isn't available for mobile? At least the 8.1.3 dictionary shows it is for desktop only. So would something like this work? local sTaskStatus, sTaskRequests on mouseUp send "doTask" to me in 0 seconds put the result & CR after sTaskRequests end mouseUp command

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 firs

Re: send mouseup to control

2017-05-24 Thread Phil Davis via use-livecode
Hi Al, I wonder if the "call" command could simplify things for you. (Probably not but I thought I would mention it.) Otherwise maybe put your mouseUp code in separate handlers outside of "mouseUp" so you can have more parameter options in their execution. Thanks - Phil Davis On 5/24/17 1

Re: clipsToRect property (was Re: Instantiaing Grouped Controls - Templates - Responsive)

2017-06-13 Thread Phil Davis via use-livecode
So it's about manually updating the rect vs. having it in an auto-update mode? Phil Davis On 6/13/17 3:01 PM, Devin Asay via use-livecode wrote: So far I’m kind of partial to Scott R’s “Persistent rect”. Conversely, it could be something like “Auto-update rect”, but then the checkbox would b

Re: clipsToRect property (was Re: Instantiaing Grouped Controls - Templates - Responsive)

2017-06-13 Thread Phil Davis via use-livecode
(The ? was meant to soften my suggestion, not to indicate that I'm not following - that's that's always a possibility) Phil On 6/13/17 3:11 PM, Phil Davis wrote: So it's about manually updating the rect vs. having it in an auto-update mode? Phil Davis On 6/13/17 3:01 PM, Devin Asay via us

Re: [ANN] Release 8.1.5 RC-1

2017-06-14 Thread Phil Davis via use-livecode
On 6/14/17 4:06 PM, Curry Kenworthy via use-livecode wrote: But on that subject, which I never imagined seeing here, I would advise males to pee in the most manly way possible TMI... for me it's triggering that scene in "About Schmidt". Moving on now. Phil -- Phil Davis ___

Re: OT: Mandelbrot set deep dive

2017-06-30 Thread Phil Davis via use-livecode
After watching a couple minutes of this, I started getting light-headed and felt like I was going back to the late 60s. Phil Davis On 6/30/17 1:44 PM, Mark Wieder via use-livecode wrote: And while I'm posting off-topic subjects, here's a seriously deep dive into the Mandelbrot set. https://

Re: AW: can I lock screen over more than one handler?

2017-07-05 Thread Phil Davis via use-livecode
Did you try locking messages before setting the filename of the player? That could help. Phil Davis On 7/5/17 6:57 AM, Tiemo Hollmann TB via use-livecode wrote: Thanks Jonathan, Trevor and Sean for your comments. Meanwhile I could drill down my "flickering" problem (post from yesterday) to a

Re: Set the tooltip of a datagrid

2017-07-12 Thread Phil Davis via use-livecode
BUT you can set the toolTipDelay, to speed up or slow down its appearance. That's about it. Phil Davis On 7/12/17 10:54 AM, Bob Sneidar via use-livecode wrote: Yes just figured that out thank you. Initially it wasn't displaying, but I think that was because of an early bug which I already q

Re: E.T.

2017-07-29 Thread Phil Davis via use-livecode
Or... This is reaching back into the annals of computing history, but it works. You could distribute your product on flash drives and require that they be plugged in during use. Each flash drive (thumb drive, whatever) has a unique ID in its firmware that the OS (and therefore LC) can access.

Re: E.T.

2017-07-29 Thread Phil Davis via use-livecode
On 7/29/17 8:47 AM, Dr. Hawkins wrote: On Sat, Jul 29, 2017 at 1:25 AM, Phil Davis via use-livecode mailto:use-livecode@lists.runrev.com>> wrote: You could distribute your product on flash drives and require that they be plugged in during use. Each flash drive (thumb

Re: Need crash course in Dropbox library

2019-02-18 Thread Phil Davis via use-livecode
I'm not sure how this would work in your context, but one way to break up a file into pieces is to use open / read / close like this: # assumes LC 9.0.2 # tMyFolder = path of folder containing the file to upload # tMyFileShortFilename = 'short' filename of file to upload - no path, j

Re: Compiling Livecode

2019-03-06 Thread Phil Davis via use-livecode
After using Parallels for a few years, I realized I hate virtual environments. What I really do like, however, is having a Windows 10 physical machine's desktop available in a window on my Mac, much like Mac-to-Mac Screen Sharing. (I recently discovered MS Remote Desktop - no going back!) I gue

Re: LiveCode Localization?

2019-03-17 Thread Phil Davis via use-livecode
Hi Kee, I support a training development & delivery system that currently supports training in English, Spanish and Arabic. The training dev environment is English only, but the training content you can create with it can be in those other languages. When we added support for Arabic a couple

Re: LiveCode Localization?

2019-03-17 Thread Phil Davis via use-livecode
On 3/17/19 5:31 PM, Phil Davis via use-livecode wrote: Hi Kee, I support a training development & delivery system that currently supports training in English, Spanish and Arabic. The training dev environment is English only, but the training content you can create with it can be in t

Re: LiveCode Localization?

2019-03-18 Thread Phil Davis via use-livecode
I considered qualifying that phrase, but... nh. On 3/18/19 3:52 PM, Bob Sneidar via use-livecode wrote: The hell I am! ;-) Bob S On Mar 17, 2019, at 17:31 , Phil Davis via use-livecode wrote: To add a new language, we clone an existing YAML file and translate it, and adjust the RTL

Re: LC application running on lab computers

2019-03-27 Thread Phil Davis via use-livecode
Hi Peter, Is it possible you're running LC in a user account that doesn't have "admin" permissions? I suggest this because they are lab computers. You can check Apple menu > System Preferences > Users & Groups > [username] to find out. Phil Davis On 3/27/19 11:20 PM, Peter Bogdanoff via u

Re: What is Macintosh equivalent of relaunch handler?

2019-03-29 Thread Phil Davis via use-livecode
Hi Bill, It sounds like this is your scenario: You have an app with UI that is running, and you want it to occasionally send/receive info to/from another invisible 'helper' app. Is that correct? If so, can you use sockets in your environment? That would be a simple way to get the interaction

Re: What is Macintosh equivalent of relaunch handler?

2019-03-29 Thread Phil Davis via use-livecode
Or another approach might be to open the invisible app as a process in the UI app. On 3/29/19 10:50 AM, Phil Davis via use-livecode wrote: Hi Bill, It sounds like this is your scenario: You have an app with UI that is running, and you want it to occasionally send/receive info to/from another

Re: button ICON

2019-04-22 Thread Phil Davis via use-livecode
Hi Klaus, The only method I can think of is where you set the icon of a button to the id of an image object, and then set the text of that image object to the binfile url of different image files. That does work, but may not be what you're looking for. Best - Phil Davis On 4/20/19 9:36 AM,

Re: button ICON

2019-04-22 Thread Phil Davis via use-livecode
Thanks hh - I concur. Your approach seems cleaner. Phil On 4/22/19 9:20 AM, hh via use-livecode wrote: As Phil said, but don't set the text of the (empty) image used as icon of the button but set the filename of the image. The icon will change accordingly. ___

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

2019-06-04 Thread Phil Davis via use-livecode
As it turns out, the Remove script uses the sips command. (* Remove ©2009 Apple, Inc. Use sips to remove embedded profile and color management data from an image. *) on run     display dialog "Remove the embedded profile from an image."     set chosenFile to choose

Re: Design questions...

2019-06-06 Thread Phil Davis via use-livecode
Hi Glen, There are some screen resolution stats on the web that may be useful, at least for 'general public' app window sizes: https://en.wikipedia.org/wiki/Display_resolution Phil Davis On 6/6/19 6:47 AM, Glen Bojsza via use-livecode wrote: Hello, I was looking for input on the follo

Re: Duplicate card and object command lc 9.0.4

2019-06-07 Thread Phil Davis via use-livecode
Hi Muaadh, Try this: Go to the card you want to duplicate and in the Message Box type "clone this card". It isn't exactly the answer to your question but it should give you the outcome you desire. Phil Davis On 6/7/19 11:15 AM, Muaadh Salih via use-livecode wrote: Until now I was using LC

Re: Audio Recording with cameracontrol

2019-09-20 Thread Phil Davis via use-livecode
Hi Dan, I haven't used cameracontrol, but... In a Mac-only app I built for a client, I used the 'sox' commandline app for recording. It has been quite reliable now for several years. Like so: command audio_startRecording* *    put into sRecorderApp     put into sFilename     put sRecorde

Re: Stacks and Sub Stacks

2019-09-25 Thread Phil Davis via use-livecode
On 9/25/19 7:43 AM, Sannyasin Brahmanathaswami via use-livecode wrote: Related: if you have this in the message box. put the openstacks you only get the 1. presently open binary stacks 2. any script only stack that you explicitly have open in the IDE Some more options: put revLo

Re: Where LiveCode is Now

2019-10-03 Thread Phil Davis via use-livecode
Amen Bob! Phil Davis On 10/3/19 9:31 AM, Bob Sneidar via use-livecode wrote: For my part I love what you guys do. As I've mentioned before, Livecode has upped my value to my employer, as they see that I am capable of more than what they hider me to do. It may even have been responsible for a

Re: Possible solution to determine if default network has changed (MacOS only for now)

2019-10-22 Thread Phil Davis via use-livecode
I'm guessing you meant "route -v get default" ? Otherwise I don't get much back from the command. Phil Davis On 10/22/19 11:05 AM, Bob Sneidar via use-livecode wrote: Hi all. MacOS only for now. I think I put together a way to tell if the default network has changed since the last time an

Re: Can I find out what handler I am in?

2019-10-25 Thread Phil Davis via use-livecode
Tom, param(0) contains the name of the handler you're in. on mouseUp    put param(0) end mouseUp Would put into the message box:     mouseUp Phil Davis On 10/25/19 10:00 AM, Tom Glod via use-livecode wrote: Hey you guys, I have searched high and low and I am pretty sure the answer is no , b

identifying text chars in an image

2019-10-28 Thread Phil Davis via use-livecode
I want to [programmatically] take a picture of a Scrabble board and then take from that image the characters displayed in it, and maintain the organization of the text. In other words, I want to convert the text displayed in the image to text strings. Any ideas where I should start? I would l

Re: identifying text chars in an image

2019-10-28 Thread Phil Davis via use-livecode
Thanks Richmond and hh - really appreciate these ideas. I'll be looking into them. Phil On 10/28/19 7:26 AM, hh via use-livecode wrote: There are also emscripten ports to javascript you could use via a browser widget (and a CDN if online). https://tesseract.projectnaptha.com https://antimatt

Re: identifying text chars in an image

2019-10-28 Thread Phil Davis via use-livecode
Thanks for the followup on this. I experimented some with tesseract and came to the same conclusion. Since the values assigned to each character are standard wthin Scrabble, I don't really need to detect those tiny numerals. But the alpha chars are of course essential. I believe there must b

Re: identifying text chars in an image

2019-10-28 Thread Phil Davis via use-livecode
dkids like to use Scrabble letters when playing Bananagrams so they can see who gets high score.) Thanks - Phil On 10/28/19 2:23 PM, Phil Davis via use-livecode wrote: Thanks for the followup on this. I experimented some with tesseract and came to the same conclusion. Since the values assign

Re: identifying text chars in an image

2019-10-29 Thread Phil Davis via use-livecode
Thanks for your great ideas Hermann. In my next experiment I think I'll start by looking for any scrabble tile by looking for its [known] background color, and then work out to its edges. That should give me both the grid cell size and a starting point for discovering all cells in the grid. U

server push to desktop client

2019-11-04 Thread Phil Davis via use-livecode
I need to make a desktop app (Mac only for now) that receives pushed data from a LC server. I've never done this - all the desktop <-> server interactions I've programmed have used the traditional client-server model. So I'm looking for approaches/tips/ideas from anyone who has experience with

Re: server push to desktop client

2019-11-05 Thread Phil Davis via use-livecode
pulls from the server because most servers cannot push through firewalls and routers an NAT servers to initiate first contact with a client. Kee Nethery On Nov 4, 2019, at 11:26 PM, Phil Davis via use-livecode wrote: I need to make a desktop app (Mac only for now) that receives pushed data

Re: server push to desktop client

2019-11-05 Thread Phil Davis via use-livecode
Thanks for sharing your insight Richard. Great food for thought. Phil On 11/5/19 12:29 AM, Richard Gaskin via use-livecode wrote: Phil Davis wrote: > I need to make a desktop app (Mac only for now) that receives pushed > data from a LC server. I've never done this - all the desktop <-> > serv

Re: Indy 9.5.0. Apple can't search for malware in LC Indy?

2019-11-05 Thread Phil Davis via use-livecode
On this issue, isn't it possible to let a web server detect the OS requesting the download? So the server can then do the picking and send the right version to the requestor? Or maybe the info available to the server about the requesting OS isn't that detailed. Not sure. At least I'm sure I ca

Re: Indy 9.5.0. Apple can't search for malware in LC Indy?

2019-11-05 Thread Phil Davis via use-livecode
peat     put tOutput ?> Phil Davis On 11/5/2019 12:02 PM, Phil Davis via use-livecode wrote: On this issue, isn't it possible to let a web server detect the OS requesting the download? So the server can then do the picking and send the right version to the requestor? Or maybe the i

Re: shell() and pdftotext

2020-01-12 Thread Phil Davis via use-livecode
To find the full path, this may work - open Terminal and type:     which pdftotext and it should display the path to the copy of pdftotext that the OS runs when you type the 'pdftotext' command. Phil Davis On 1/12/20 2:00 PM, Brian Milby via use-livecode wrote: My guess is that shell can’t

TIFF support in the past?

2020-01-24 Thread Phil Davis via use-livecode
I'm trying to find out if there was a time in the distant past when LC supported the TIFF image format. I found some TIFF image assets in some subfolders of a project from back then (maybe 10 or more years ago?) but can't run a copy of LC from that era to find out. Any memories? Thanks - Phil

Re: TIFF support in the past?

2020-01-24 Thread Phil Davis via use-livecode
Davis via use-livecode wrote: I'm trying to find out if there was a time in the distant past when LC supported the TIFF image format. I found some TIFF image assets in some subfolders of a project from back then (maybe 10 or more years ago?) but can't run a copy of LC from that era t

Re: TIFF support in the past?

2020-01-24 Thread Phil Davis via use-livecode
Wow. How soon we (I) forget! Phil On 1/24/20 1:28 AM, Richmond Mathewson via use-livecode wrote: http://runtime-revolution.278305.n4.nabble.com/LiveCode-Import-Tiff-td3432308.html On Fri, Jan 24, 2020 at 10:43 AM Phil Davis via use-livecode < use-livecode@lists.runrev.com> wrote: Tha

does this PNG have transparency?

2020-01-24 Thread Phil Davis via use-livecode
I usually make things harder than they need to be, so I'm asking: Is there a simple way my LC code can determine if a PNG image is completely opaque or not? Thanks - Phil -- Phil Davis 503-307-4363 ___ use-livecode mailing list use-livecode@lists.r

Re: does this PNG have transparency?

2020-01-24 Thread Phil Davis via use-livecode
"my test") OR (tZero is in the maskData of img "my test") end mouseUp Phil On 1/24/20 1:48 PM, Phil Davis via use-livecode wrote: I usually make things harder than they need to be, so I'm asking: Is there a simple way my LC code can determine if a PNG image is complet

Re: does this PNG have transparency?

2020-01-27 Thread Phil Davis via use-livecode
I like it! Nice job. Phil On 1/27/20 8:21 AM, Bob Sneidar via use-livecode wrote: Voila! function pngIsTransparent pImageFile if not (there is a file pImageFile) then return "ERROR: Invalid file path!" set the filename of the templateImage to pImageFile put numtochar(0) into tZero

Re: Invalid Image File / Original Image Size

2020-02-17 Thread Phil Davis via use-livecode
Hi Ralph, Certainly Klaus's approach will work. Here is another that works. As you know, image files have "signatures" in their headers to identify what kind of files they are: https://en.wikipedia.org/wiki/List_of_file_signatures (the "ISO 8859-1" column) Once you know the signatures

<    1   2