Re: Data Persistence

2018-08-04 Thread Mike Bonner via use-livecode
Putting text into a field pro-grammatically doesn't fire the openfield and closefield handlers so yes, you'd need to add code to your button. You can either write the code directly, or you can use send (or dispatch) and have the field do it.. IE send "closefield" to field "whateverfield"... But

Re: Using the $_POST global in LiveCode server

2018-08-03 Thread Mike Bonner via use-livecode
Still haven't got a test set up. So trying the quicker easier way.. Hey everyone, in which versions of server are sessions not broken? On Thu, Aug 2, 2018 at 6:17 PM Mike Bonner wrote: > Version 7.1.0 doesn't seem to work. (the version used by on-rev.) Pretty > sure its been in th

Re: Using the $_POST global in LiveCode server

2018-08-02 Thread Mike Bonner via use-livecode
engines. On Thu, Aug 2, 2018 at 6:03 PM Mike Bonner wrote: > Its been a while since I messed with sessions, but that looks right. I > seem to vaguely remember that there is some version of LC server where > sessions is broken, but I can't recall for sure. What version of server > are

Re: Using the $_POST global in LiveCode server

2018-08-02 Thread Mike Bonner via use-livecode
Its been a while since I messed with sessions, but that looks right. I seem to vaguely remember that there is some version of LC server where sessions is broken, but I can't recall for sure. What version of server are you running? (IIRC sessions was implemented some time around 4.6.3? And a

Re: Using the $_POST global in LiveCode server

2018-08-02 Thread Mike Bonner via use-livecode
I don't really understand what I've read yet, but I think what you're looking for is Post/Redirect/Get (prg) Basically.. Accept the post, process it, redirect to another page without the post. (One example I read basically placed the generated html into a session variable and displayed it after

Re: Data Persistence

2018-07-30 Thread Mike Bonner via use-livecode
> > Bob S > > > > On Jul 30, 2018, at 08:19 , Mike Bonner via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > > Doh. Been a bit since I did it. Its-- ATTACH DATABASE pathtodb.db as > dbname > > > ___

Re: Too fundamental to be a bug, so what's wrong?

2018-07-30 Thread Mike Bonner via use-livecode
You have to declare it as a global in every script where you use it. It sounds like thats whats going on here. On Mon, Jul 30, 2018 at 2:10 PM tbodine via use-livecode < use-livecode@lists.runrev.com> wrote: > Hi all. > I have a global array containing the value 4. It's stored in >

Re: Data Persistence

2018-07-30 Thread Mike Bonner via use-livecode
Doh. Been a bit since I did it. Its-- ATTACH DATABASE pathtodb.db as dbname On Mon, Jul 30, 2018 at 8:55 AM Mike Bonner wrote: > Sorry.. To elaborate, yes you can attach a disk based db to a memory db. > Then you use dot notation to specify which database you're working on. > >

Re: Data Persistence

2018-07-30 Thread Mike Bonner via use-livecode
, Jul 30, 2018 at 8:51 AM Mike Bonner wrote: > Yes > > On Mon, Jul 30, 2018 at 8:45 AM Bob Sneidar via use-livecode < > use-livecode@lists.runrev.com> wrote: > >> Wait, you can attach a disk based database to a memory database?? >> >> Bob S >> >&g

Re: Data Persistence

2018-07-30 Thread Mike Bonner via use-livecode
Yes wrote: > Wait, you can attach a disk based database to a memory database?? > > Bob S > > > > On Jul 27, 2018, at 15:19 , Mike Bonner via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > > On the subject of sqLite/memory databases and

Re: Local images and the browser widget

2018-07-29 Thread Mike Bonner via use-livecode
as > everything will be served via a web server, but I was hoping to see this > for testing. > > I will be looking to the new http server LC has as I will need it anyway > for doing some API things with this engine. > > Thanks again to all! > > Best, > Steve > > >

Re: Local images and the browser widget

2018-07-29 Thread Mike Bonner via use-livecode
Sorry, that should have been.. Set the url to "file :///Users/steve/Dropbox/I <http://users/steve/Dropbox/I> TB%20pubEngine/tempMedia/995786d6-4429-4821-8b21-8e811289e12c.jpg" On Sun, Jul 29, 2018 at 3:03 PM Mike Bonner wrote: > If you just need to see the image, you ca

Re: Local images and the browser widget

2018-07-29 Thread Mike Bonner via use-livecode
If you just need to see the image, you can do it by changing your method.. Instead of setting the htmltext, it should work to set the url to " http://Users/steve/Dropbox/ITB%20pubEngine/tempMedia/99578 6d6-4429-4821-8b21-8e811289e12c.jpg" I'm not expert, but I think there is some type of

Re: set the filename of image bug?

2018-07-29 Thread Mike Bonner via use-livecode
If you think the stack is corrupted, you might send it to supp...@livecode.com so they can look at it, and/or post a bug report and include the stack there so that it can be looked at. (assuming there is nothing sensitive in the stack) On Sun, Jul 29, 2018 at 11:24 AM Stephen MacLean via

Re: set the filename of image bug?

2018-07-29 Thread Mike Bonner via use-livecode
If it works for Klaus, and fails for you, it makes me wonder if something has gotten munged in the imgUrl variable. You might try putting an "answer imgUrl" (or use the variable inspector) to confirm that everything looks right. (worked fine for me too) On Sun, Jul 29, 2018 at 10:39 AM Stephen

Re: Problem saving image for file

2018-07-28 Thread Mike Bonner via use-livecode
oned, that I saw, in the docs. > > Thanks again! > > Steve > > > On Jul 28, 2018, at 5:52 PM, Mike Bonner via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > > If you use the path /tempMedia that forces it to the root of the > > filesystem

Re: Problem saving image for file

2018-07-28 Thread Mike Bonner via use-livecode
If you use the path /tempMedia that forces it to the root of the filesystem and if there isn't a folder /tempmedia, it'll fail. Either leave off the preceding slash, or prepend it with a . <--(a dot) which designates the current directory. On Sat, Jul 28, 2018 at 3:40 PM Peter Bogdanoff via

Re: Data Persistence

2018-07-27 Thread Mike Bonner via use-livecode
On the subject of sqLite/memory databases and preferences/data persistence, rather than using an array, and doing the encode/decode stuff, would it make sense to do the following.. 1. open an empty in memory database 2. attach a disk based database 3. copy the required table(s) from disk base to

Re: Data Persistence

2018-07-27 Thread Mike Bonner via use-livecode
Your Bran. will be assimilated. (borg zombies FTW) On Fri, Jul 27, 2018 at 3:39 PM J. Landman Gay via use-livecode < use-livecode@lists.runrev.com> wrote: > On 7/27/18 12:47 PM, John McKenzie via use-livecode wrote: > > Tom, thank you for welcoming me. Much different than some online >

Re: drawing a Barcode without a Barcode font

2018-07-20 Thread Mike Bonner via use-livecode
Hey Mark (or anyone?) Feel like writing up a widget for this (with lots of comments) as an instructional? (Plus the fact that it'd be a very useful widget in its own right) BTW wow. I toss out a short little ugly hunk of code and you all make it into something so much better. On Fri, Jul 20,

Re: drawing a Barcode without a Barcode font

2018-07-20 Thread Mike Bonner via use-livecode
he last grc to tBarTopLeft > else >set the topleft of the last grc to horAdjust(tHorAdjust) > end if > break > end switch > put the short id of the last grc into tLast -- the id of the most > recently placed bar >

Re: drawing a Barcode without a Barcode font

2018-07-19 Thread Mike Bonner via use-livecode
Not sure if it will work for your purpose, but as a test I created for graphic lines, 1 narrow black, 1 wider black, duplicated them and set the blendlevel of the copies so that they're transparent. Grcs are named narrowB, wideB, narrowC and wideC (b for black, c for clear) Then used the

Re: Docker

2018-07-11 Thread Mike Bonner via use-livecode
They'll be more annoyed that their car isn't where they left it. Of course if they understand sock science, maybe they'll go look for it in the dryer. On Wed, Jul 11, 2018 at 6:09 PM Mark Wieder via use-livecode < use-livecode@lists.runrev.com> wrote: > On 07/11/2018 03:18 PM, Bob Sneidar via

Re: Docker

2018-07-11 Thread Mike Bonner via use-livecode
> I'm not sure about the rest of it, but the temporally advantaged are not > eligible unless they actually find and deliver a lost sock. > Unfortunately that's a catch-22 because the list does not accept > enclosures, which is something I'd whine about if I had the chance. > > On 7/11

Re: Docker

2018-07-11 Thread Mike Bonner via use-livecode
ode@lists.runrev.com> wrote: > On 7/11/18 12:33 PM, Mike Bonner via use-livecode wrote: > > Sorry for the whine. > > You've been here long enough that you're entitled to a whine. I believe > there's a participation quotient for those. > > -- > Jacquel

Re: Docker

2018-07-11 Thread Mike Bonner via use-livecode
If I make any real progress, I'll definitely write things down. Honestly, not sure how far I'll get, seems that every time I feel good enough to resume working on projects, the bad health truck parks on my face again. *grins from underneath a wheel* Wow what a morning I've been having. Sorry for

Re: Docker

2018-07-10 Thread Mike Bonner via use-livecode
Love that its a childrens guide. Definitely my speed. On Tue, Jul 10, 2018 at 6:00 PM Mike Bonner wrote: > Thank you! > > On Tue, Jul 10, 2018 at 5:42 PM Mark Wieder via use-livecode < > use-livecode@lists.runrev.com> wrote: > >> On 07/10/2018 02:40 PM, Mike Bo

Re: Docker

2018-07-10 Thread Mike Bonner via use-livecode
Thank you! On Tue, Jul 10, 2018 at 5:42 PM Mark Wieder via use-livecode < use-livecode@lists.runrev.com> wrote: > On 07/10/2018 02:40 PM, Mike Bonner via use-livecode wrote: > > Mostly i'm looking to learn how things work, but the end goal is to a) > have > > a front lc

Re: Docker

2018-07-10 Thread Mike Bonner via use-livecode
ng the > httd library to accept and reply to requests. > > so i'm curious about your experience with that when you get to it. > > > > On Tue, Jul 10, 2018 at 2:18 PM, Mike Bonner via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > Hoping some

Docker

2018-07-10 Thread Mike Bonner via use-livecode
Hoping someone can help me shortcut this.. If I start with an alpine image, what things do I need to add so that LC executables will run? (using the -ui flag) Or would I be better off starting with another base? I'm looking to end up with smallest possible docker that can do the job.

Re: What are possible reasons for memory consumption ...

2018-07-08 Thread Mike Bonner via use-livecode
Or alternatively, check the pendingmessages and only send if there is not already a message for the handler in question in queue. I've had situations (in my case, bad coding) where I thought I was starting a looping handler once ,but had left a call to that handler elsewhere accidentally during

Re: odbc "information type out of range"

2018-07-06 Thread Mike Bonner via use-livecode
(#1) > > syntax error near "(" > > > Unexpected symbol or invalid SQL/R language statement. > > > On Fri, Jul 6, 2018 at 1:04 PM Mike Bonner via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > I have no way to test it, but if you chan

Re: odbc "information type out of range"

2018-07-06 Thread Mike Bonner via use-livecode
I have no way to test it, but if you change your insert to.. insert into employee (empno) values (double(-1)) Does it make a difference? On Fri, Jul 6, 2018 at 10:14 AM Mike Kerner via use-livecode < use-livecode@lists.runrev.com> wrote: > Hmmm. How about this: The insert is actually

Re: Capture Keystrokes & MouseMovements without being in focus?

2018-07-06 Thread Mike Bonner via use-livecode
s something i wanted to do but can live without. > Thanks, I will try this tomorrow ...i don't see why it wouldn't work for > what I need. > > there is always an answer i guess. this community rocks. > > On Fri, Jul 6, 2018 at 12:23 AM, Mike Bonner via use-livecode < > use-liv

Re: Capture Keystrokes & MouseMovements without being in focus?

2018-07-05 Thread Mike Bonner via use-livecode
The only way I know of is to start a relatively fast send loop and check the keysdown(). For some things it works fine but for most other things its not a good answer since you can see if a key is down, but not how long its down, or tell if it has been pressed, then pressed again before the next

Re: Script Only Stack Behaviors and Nesting

2018-07-02 Thread Mike Bonner via use-livecode
Curious if this would be useful. It occurred to me that one could use getters and setters in the behavior if one wanted a "central" location for data for objects using that behavior. Not as easy as just using an actual property set, but might end up being faster? To test I put the following

Re: Sort IP List

2018-06-29 Thread Mike Bonner via use-livecode
You all are just too darn smart. great solution. On Fri, Jun 29, 2018 at 5:54 PM Alex Tweedly via use-livecode < use-livecode@lists.runrev.com> wrote: > Why not just do it directly (avoid the function call) ... > > function sortIPList2 pIPList > set the itemdelimiter to "." > try >

Re: Sort IP List

2018-06-29 Thread Mike Bonner via use-livecode
p; \ > (item 4 of each + 0) >catch theError > breakpoint >end try >return pIPList > end sortIPList2 > > With a small subset of data, it doesn't error meaning I have some cruft in > the data. Fair enough. The bad news is... IT DOESN'T SORT! LOL!!

Re: Sort IP List

2018-06-29 Thread Mike Bonner via use-livecode
eakpoint but there is nothing in theError. What version/OS > are you running? We may have uncovered an engine anomaly. > > > > Bob S > > > >> On Jun 29, 2018, at 15:00 , Mike Bonner via use-livecode < >

Re: Sort IP List

2018-06-29 Thread Mike Bonner via use-livecode
Oh, the above assumes setting the numberformat to "000" as you specified of course. On Fri, Jun 29, 2018 at 4:00 PM Mike Bonner wrote: > Thx for the clue, I see what you mean. > > I had tried to get something similar to your value(item 1 of each +0) > method to wor

Re: Sort IP List

2018-06-29 Thread Mike Bonner via use-livecode
Thx for the clue, I see what you mean. I had tried to get something similar to your value(item 1 of each +0) method to work and something wasn't clicking, but after seeing yours, I think I have it working. sort lines of tList ascending numeric by (item 1 of each +0) & (item 2 of each + 0) &

Re: Sort IP List

2018-06-29 Thread Mike Bonner via use-livecode
Actually, when using the multiple key sort, dont reverse the order since it does it all in one go. On Fri, Jun 29, 2018 at 11:29 AM Mike Bonner wrote: > Ok, now i'm curious about something.. I know its possible to designate > multiple keys to a single sort using the form.. > sort lines

Re: Sort IP List

2018-06-29 Thread Mike Bonner via use-livecode
er file. The time to do this of course would be much > longer, but it would avoid any memory constraints. > > Bob S > > > > On Jun 29, 2018, at 09:35 , Mike Bonner via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > > ## was writing this when you

Re: Sort IP List

2018-06-29 Thread Mike Bonner via use-livecode
, all this is likely moot unless the ip list is huge. On Fri, Jun 29, 2018 at 9:37 AM Mike Bonner wrote: > I don't know what speed differences there might be, but another option is > something like this.. > > function ipfunc pIp >set the itemdel to "." >set the nu

Re: Sort IP List

2018-06-29 Thread Mike Bonner via use-livecode
I don't know what speed differences there might be, but another option is something like this.. function ipfunc pIp set the itemdel to "." set the numberformat to "###" -- force length of each chunk to 3 -- append the numbers together sans "." with padded 0's using numberformat repeat

Re: Grabbing a widget

2018-06-27 Thread Mike Bonner via use-livecode
I haven't found a way to make it stop sticking either. And I agree with the QCC entry that basic mouse event type messages including the ability to use "grab" or whatever should be glommed on to all widgets in some way. Admittedly, the grab issue can likely be worked around (mousedown itself

Re: Translation Service Deepl.com

2018-06-24 Thread Mike Bonner via use-livecode
Same method as yandex from a recent thread, built your query string some way and send it to the server. something like.. put urlencode("Text to translate") into tText put "https://api.deepl.com/v1/translate?text=; & tText & "target_lang=EN_key=YourAuthKeyHere" into tUrl get URL tUrl put it You

Re: merge()

2018-06-15 Thread Mike Bonner via use-livecode
something. > > put the text of field 1 into tMerge > put merge(tMerge) into tDangerousUse > put merge("Field 1 contains: [[tMerge]]") into tSafeUse > > So, I think your assumption is correct. > > On Fri, Jun 15, 2018 at 8:06 PM, Mike Bonner via use-livecode < > use-

Re: Regex (matchChunk) help...

2018-06-15 Thread Mike Bonner via use-livecode
Hey cool! I'd use Jims (an marks) method. MUCH simpler. On Fri, Jun 15, 2018 at 7:06 PM Jim Lambert via use-livecode < use-livecode@lists.runrev.com> wrote: > Building on what Mark Wieder elegantly wrote: > > > MarkW wrote: > > > > filter lotsOfText with "*selkirkst*skyrider1*” > > function

merge()

2018-06-15 Thread Mike Bonner via use-livecode
I just had a thought while pondering some code from another thread. I have done things like put merge("This is a random number: [[random(tNum)]]") Since merge can do what do can, is there a way this method could be taken advantage of using an injection type of attack? I'm thinking the answer

Re: calling an api from a stack?

2018-06-15 Thread Mike Bonner via use-livecode
s, and I can > only do that if I put the returned value or it or the result into a > variable of some sort. > > Bob S > > > > On Jun 15, 2018, at 14:28 , Mike Bonner via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > > If you mean using me

Re: calling an api from a stack?

2018-06-15 Thread Mike Bonner via use-livecode
don't like to nest functions. You cannot tell what > the function returned without pulling it apart. > > Bob S > > > > On Jun 15, 2018, at 10:40 , Mike Bonner via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > > jsontoarray returns an array, yo

Re: Regex (matchChunk) help...

2018-06-15 Thread Mike Bonner via use-livecode
ode@lists.runrev.com> wrote: > Hi Mike, > > Yes this worksnever used or knew about trueword. > > thanks! > > Glen > > On Fri, Jun 15, 2018 at 1:21 PM, Mike Bonner via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > Try this.. > > >

Re: Regex (matchChunk) help...

2018-06-15 Thread Mike Bonner via use-livecode
Slightly cleaned up, and adjusted to empty tPair after a match. (on the off chance there is a second ending without a matching new beginning word) > on mouseup >put the text of field 1 into tText >put "beginning" into tstartword -- string begin >put "ending" into tEndword --

Re: calling an api from a stack?

2018-06-15 Thread Mike Bonner via use-livecode
jsontoarray returns an array, you'll have to dig through the array to find where pieces of information reside, but it pretty straightforward after you poke around. For example.. If you instead do this.. put jsontoarray(tResult) into tArray you have an array variable named tArray. If you-- put

Re: Regex (matchChunk) help...

2018-06-15 Thread Mike Bonner via use-livecode
Try this.. on mouseup local tCharOffset --set the text of field 1 to the text of field 1 put the text of field 1 into tText put "beginning" into tstartword -- string begin put "ending" into tEndword -- string end put 1 into tCounter -- tracks current word repeat for each

Re: Regex (matchChunk) help...

2018-06-15 Thread Mike Bonner via use-livecode
If I understand correctly.. If you find the beginning string occurrence, and then find another beginning string, you want to ignore the first, and only take strings where beginning and end have no intermediate beginnings? Like this I mean.. beginning blah blah blah blah blah *beginning blah blah

Re: calling an api from a stack?

2018-06-15 Thread Mike Bonner via use-livecode
/* A quick and dirty example of using yandex translator Fill in your key then use the 2 functions to try things out. Put this in your card or stack script, then call the desired function passing in the required parameters. */ constant kKey="put your key here" constant kGetTransURL="

Re: scancodes

2018-06-11 Thread Mike Bonner via use-livecode
Don't think of a key press and key release as if they should be 2 different can codes, instead think of them as as being state changes. Like a light. Send power to the lightbulb, the light is on. Remove power from the bulb, the light is off. The bulb is still the same bulb. Same with the

Re: Area of regular polygon triangles

2018-06-07 Thread Mike Bonner via use-livecode
Cool! On Thu, Jun 7, 2018 at 5:08 PM, David Epstein via use-livecode < use-livecode@lists.runrev.com> wrote: > While trying Mike Bonner's suggestion of "manual" measuring, I learned the > answer: a regular polygon whose official length is L and width is W is > inscribed in the oval whose length

Re: Area of regular polygon triangles

2018-06-06 Thread Mike Bonner via use-livecode
If you need to use the box method, and the control rect isn't perfect, it might be easier to create the rect on your own. Go through the points and find the topmost, left most, rightmost, bottom most coordinates and that gives you your box. Alternatively, if you just want the area and don't

Re: SQL Help

2018-06-01 Thread Mike Bonner via use-livecode
if I understand correctly, and just off the top of my head, using "limit" is one way to do this... The sql pseudo code would be something like: select * from yourtable order by iStoreGrp descending where meterNum = 1 AND valveNum = 3 limit 1 This would grab all the rows, sort them by istoregrp

Re: UTF8 on LC server

2018-05-31 Thread Mike Bonner via use-livecode
oops, dyslexic typo on my part, sorry about that. On Thu, May 31, 2018 at 6:33 PM, Alex Tweedly via use-livecode < use-livecode@lists.runrev.com> wrote: > > > On 01/06/2018 01:17, Mike Bonner via use-livecode wrote: > >> on-rev host is 7.0.1 you can get it with version()

Re: UTF8 on LC server

2018-05-31 Thread Mike Bonner via use-livecode
on-rev host is 7.0.1 you can get it with version() On Thu, May 31, 2018 at 6:14 PM, Tim Selander via use-livecode < use-livecode@lists.runrev.com> wrote: > Hi Kee and Alex, > > The original documents I'm working with are UTF8, so that's that I've been > using. So converting them to UTF16 is

Re: LC >= 8 no more HC friendly?

2018-05-30 Thread Mike Bonner via use-livecode
Just curious, if you open with lc 5, and then save a copy as an lc stack, can you then open it with the later version? (and do the usual "messages off" thing too of course) On Wed, May 30, 2018 at 7:55 AM, Klaus major-k via use-livecode < use-livecode@lists.runrev.com> wrote: > Hi friends, > >

Re: Graphing Solution...

2018-05-27 Thread Mike Bonner via use-livecode
+ mMaxYLabelWidth + gridPadding(),tY+20] on this canvas On Sun, May 27, 2018 at 10:05 PM, Mike Bonner <bonnm...@gmail.com> wrote: > I floundered around cluelessly with it for a bit, randomly changing a few > things till I got something that seems to work. I'm sure there are thin

Re: Graphing Solution...

2018-05-27 Thread Mike Bonner via use-livecode
I floundered around cluelessly with it for a bit, randomly changing a few things till I got something that seems to work. I'm sure there are things I still misunderstand about this, and that I've added code that probably doesn't need to be there. Also not sure if there will be issues with larger

Re: Was: URGENT: MergGoogle no longer works on iOS: CLIENTS VERY UNHAPPY

2018-05-25 Thread Mike Bonner via use-livecode
Curry- don't know if such a thing would help your situation, but i'm attaching a photo of my lift. Its simply a relatively small i-beam solidly anchored, a trolly to match, a 2000lb hoist (overkill) and a very simple, self designed sling hooked to a home made spreader bar. Lower it, sling in

Re: Was: URGENT: MergGoogle no longer works on iOS: CLIENTS VERY UNHAPPY

2018-05-25 Thread Mike Bonner via use-livecode
Hey Sean, While its true that the full details of what was going on weren't available, there were 2 things that stood out to me from your previous writings. Large amounts of distress, and a monetary connection to the distress. I can't help with the distress directly, but it just makes sense to

Re: on-rev choosing engine

2018-05-24 Thread Mike Bonner via use-livecode
> server engines were not installed again. > > Matthias > > > > Am 24.05.2018 um 21:46 schrieb Mike Bonner via use-livecode < > use-livecode@lists.runrev.com>: > > > > Thanks, I'll try this and see what I can figure out. It seems though > that > > the

Re: on-rev choosing engine

2018-05-24 Thread Mike Bonner via use-livecode
, you have to put livecode server and > .htaccess into each root folder. > > > Regards, > Matthias > > > Am 24.05.2018 um 17:32 schrieb Mike Bonner via use-livecode < > use-livecode@lists.runrev.com>: > > > > Has anyone had luck using an .htaccess to cha

on-rev choosing engine

2018-05-24 Thread Mike Bonner via use-livecode
Has anyone had luck using an .htaccess to change the engine used with onrev? I'm hoping to override 7.0.1 (the default version it seems) with a more recent version, but the information here: http://lessons.livecode.com/m/4070/l/41105-how-do-i-choose-which-livecode-server-engine-to-use-with-on-rev

Re: Would Anyone Like a Ring Tone At End of Standalone Built?

2018-05-20 Thread Mike Bonner via use-livecode
Hey that's cool! And it works well. On Sun, May 20, 2018 at 1:22 PM, Matthias Rebbe via use-livecode < use-livecode@lists.runrev.com> wrote: > You could add a StandaloneSaved handler to your stack which is send to the > mainstack when it was saved as a standalone. > You could add the code for

Re: PDF

2018-05-13 Thread Mike Bonner via use-livecode
I ended up using pdftotext, it worked like a charm. (Though I had to look up how to send it a file list using find.. Too long away from the shell.) I now have a little app that can do a word search for matching files and show either the extracted text, or the original pdf using the browser

Re: PDF

2018-05-12 Thread Mike Bonner via use-livecode
Thanks Richard. This helps cut my search down considerably. I had already set up an ubuntu vm on my unraid server, so I should be able to get something going. Much appreciated. On Sat, May 12, 2018 at 2:08 PM, Richard Gaskin via use-livecode < use-livecode@lists.runrev.com> wrote:

Re: PDF

2018-05-12 Thread Mike Bonner via use-livecode
te group "pdfViewer" > return textDecode(tUnicodeDocumentText,"UTF16") > end pdfText > > Maybe LiveCode will have a sale some day in the future that will meet > your price point. > > For other who may have a Business License or just interested in what you &

Re: PDF

2018-05-12 Thread Mike Bonner via use-livecode
com> wrote: > If you have a Business License, you can use the XPDF external available > with those editions for doing that. > > On 5/12/2018 12:58 PM, Mike Bonner via use-livecode wrote: > > I haven't needed to do this before, but is there a (relatively) easy way > to > &

PDF

2018-05-12 Thread Mike Bonner via use-livecode
I haven't needed to do this before, but is there a (relatively) easy way to extract the text from a bunch of pdf files? I'm hoping I can build some indexes for the boatload of files I want to go through. (THough, I guess I could bipass LC and just grep my heart out) Any suggestions?

Re: Active window and mouse location

2018-05-10 Thread Mike Bonner via use-livecode
ld be able to bring your app to the front. Put the file somewhere accessible, and use launch document to run it. There are threads on this in the forum, I'll re-locate them if you are interested in the idea. On Thu, May 10, 2018 at 9:14 AM, Mike Bonner <bonnm...@gmail.com> wrote: > H

Re: Active window and mouse location

2018-05-10 Thread Mike Bonner via use-livecode
Hmm Just a curiosity question to further the experiment if you don't mind.. I had been thinking you could use the "click" command to bring things to front, but if its not in front you can't do that. So out of curiosity.. If you set it to a system window so that its in front of everything, and

Re: Active window and mouse location

2018-05-09 Thread Mike Bonner via use-livecode
Hmm. Not sure whats up then. doing the systemwindow trick pops things to the front for me from behind a browser of whatever happens to be in front, so no clue why it won't work for you. (unless the window that it is behind is a system window itself) On Wed, May 9, 2018 at 3:34 PM, Douglas

Re: How to turn off editor formatting

2018-05-09 Thread Mike Bonner via use-livecode
4:07 PM Bob Sneidar via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > No work. First, there does not seem to be an option for turning off > > auto-complete. Also, turning off auto-format seems to not effect anything > > much. > > > > Bob S &g

Re: How to turn off editor formatting

2018-05-09 Thread Mike Bonner via use-livecode
In the scripteditor window, click the edit menu, options, then enable/disable the things you wish. On Wed, May 9, 2018 at 1:08 PM, William Prothero via use-livecode < use-livecode@lists.runrev.com> wrote: > Folks: > I know there must be a way to turn off the part of the IDE editor >

Re: imagedata and alpha byte

2018-05-09 Thread Mike Bonner via use-livecode
Already assuming that you know which pixel you wish to modify, (like if you want to modify pixel 25 in pixel row 3, that would be pixel 75.. I think..) you would need to do something like the following.. --first, put the current alphadata into a variable. put the alphadata of img "myImg" into

Re: Active window and mouse location

2018-05-09 Thread Mike Bonner via use-livecode
While the solution is not perfect, you can have your script set the systemwindow of stack "stackname" to true wait 1 tick set the systemwindow of stack "stackname" to false (Saw this on the forums at one time or another, think the thanks go to Lagi) The only negative of this method is the

Re: Sean?

2018-05-08 Thread Mike Bonner via use-livecode
Thank you Dan On Tue, May 8, 2018 at 10:13 AM, Dan Brown via use-livecode < use-livecode@lists.runrev.com> wrote: > I just received word from Sean's family, he is safe and is coping with last > week's difficult events > > On Tue, 8 May 2018, 15:40 prothero--- via use-livecode, < >

Re: Livecode Share

2018-05-02 Thread Mike Bonner via use-livecode
e image files. > > Bob S > > > > > On May 2, 2018, at 12:42 , Mark Wieder via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > > On 05/02/2018 12:37 PM, Mike Bonner via use-livecode wrote: > >> If you go to "sample stacks" from

Re: Livecode Share

2018-05-02 Thread Mike Bonner via use-livecode
If you go to "sample stacks" from the livecode bar, on the upper right you can either log in or sign up. Sign up to create an account, at which point you should be good to go. On Wed, May 2, 2018 at 1:25 PM, Paul Hibbert via use-livecode < use-livecode@lists.runrev.com> wrote: > I’ve had this

Re: Down a leafy lane or up queer street?

2018-04-29 Thread Mike Bonner via use-livecode
Did you declare it as a global on the card also? You have to declare it for every context that it will be used. Stack, card, if you use it in a button script, wherever. If you've declared it in a card script, and set its value, but then use it WITHOUT declaration all you get back is the text of

Re: Q on Accessing multi-dimension arrays.

2018-04-26 Thread Mike Bonner via use-livecode
I had no clue you could do that! Thank you! On Thu, Apr 26, 2018 at 8:43 AM, Brian Milby via use-livecode < use-livecode@lists.runrev.com> wrote: > on mouseUp >put "answer" into tA["firstkey"]["secondkey"] >put "firstkey" into tPath[1] >put "secondkey" into tPath[2] >put

Re: Get only Pathname of a dragdropped Object

2018-04-22 Thread Mike Bonner via use-livecode
when you set the dragaction, it doesn't actually DO the action.. All it really does is a) set the prompt to the action you intend to do, and b) send that info back to the source of the dragdrop. (not positive about that second part) So, if you have a button as the destination for your drag drop,

Re: Title Case

2018-04-21 Thread Mike Bonner via use-livecode
Not sure what you mean? Also, definitely use one of the Andy versions to "case" your titles. Much more comprehensive solution. The only edge case I can see would be something like a title with a McGary type name, pretty much impossible to account for without looking up every word in a names DB.

Re: Title Case

2018-04-20 Thread Mike Bonner via use-livecode
Something like this might work.. put "a create a sentence title" into tTitle repeat with i = 1 to the number of truewords in tTitle put toupper(char 1 of trueword i of tTitle) into char 1 of trueword i of tTitle end repeat put tTitle -- the adjusted case sentence If you have words that you

Re: DataGrid Column Labels

2018-04-18 Thread Mike Bonner via use-livecode
Should have been diffcompare(the script of tWorking, the script of tBroken, 1) Typos galore. On Wed, Apr 18, 2018 at 9:05 AM, Mike Bonner <bonnm...@gmail.com> wrote: > I'm curious as to the differences.. > Bob, what do you get if you.. > put the behavior of group "

Re: DataGrid Column Labels

2018-04-18 Thread Mike Bonner via use-livecode
I'm curious as to the differences.. Bob, what do you get if you.. put the behavior of group "workingdatagridname" into tWorking put the behavior of group "nonworkingdatagridname" into tBroken get dicompare(the script of tWorking,tBroken,1) put it On Wed, Apr 18, 2018 at 8:53 AM, Bob Sneidar via

Re: Posting to LiveCode Server

2018-04-18 Thread Mike Bonner via use-livecode
Can you share the code to the page you're actually posting to? Its sounding like its not actually returning any output, causing a 500 internal error. Just to let you test, I set up a quick and dirty page at http://guidezone.info/test.lc The code in the page is as follows. " end repeat else

Re: name resolution stinker

2018-04-11 Thread Mike Bonner via use-livecode
Not sure if this will be userful, but would placing the following script in your stack (or frontscript I guess) work easier? command amIHere pName try dispatch "imHere" to group pName of the current card catch tError return false end try end amIHere command imHere return true end imHere

Re: Text to Speech

2018-04-06 Thread Mike Bonner via use-livecode
Check the result and see if there is an error message. What OS/Platform? I use revspeak to talk to an amazon echo since it speaks more clearly than I do. (Had it set up for a while so that I could have it talk to my echo while I was in another room using a rev http stack.) I'm on windows, but

Re: Standalone Settings Frustration

2018-04-04 Thread Mike Bonner via use-livecode
Just a guess, but if it happens again, I'd look at "the filename of stack and if its not what you want, change it. ( I can think of another few possible ways that it might be forced to change, but this would probably be the easiest) On Wed, Apr 4, 2018 at 6:22 PM, William Prothero via

Re: memory databases fail in Windows

2018-04-03 Thread Mike Bonner via use-livecode
Yes please! ###I hear ya'. I find myself tempted way more than I have time for to write an xquery-like library for working with arrays. We could sure use one.### On Tue, Apr 3, 2018 at 2:12 PM, Richard Gaskin via use-livecode < use-livecode@lists.runrev.com> wrote: > Bob Sneidar wrote: > >

  1   2   3   4   5   6   7   8   9   10   >