Re: Bringing invisible main stack to front on start in IDE

2015-03-14 Thread Dr. Hawkins
On Sat, Mar 14, 2015 at 11:43 AM, J. Landman Gay wrote: > I usually create a separate handler to do the task (which it sounds like > you've done) and call that at the end of a preOpenCard or openCard handler. > But you have to give the IDE enough time to finish loading and setting up > everyhing,

What property does "set as stack menubar" set?

2015-03-14 Thread Dr. Hawkins
I just can't find the property being set or unset by "set as stack menubar" in the menuBuilder. I build a menu, and set that property. I then clone the stack, and my mac shows the menu in the cloned stack (I need to clone them dynamically for generating output). livecode "set as stack menubar"

Re: [OT] Apple Wireless mouse

2015-03-14 Thread Dr. Hawkins
On Sat, Mar 14, 2015 at 11:40 AM, J. Landman Gay wrote: > > EVERYONE has that problem. I used to think the mouse was responding to my > thoughts, but after years of fighting with it I finally noticed that when I > reach for the mouse my finger might barely brush one of the edges and ZOOM > it tak

Re: Getting use of menus straight

2015-03-14 Thread Dr. Hawkins
On Sat, Mar 14, 2015 at 10:53 AM, Mike Kerner wrote: > On the Mac, instead of being in the top left of your window, it will > display at the top of your display. > I've got that :) I primarily develop on that, and only have windows as a leftover on a FreeBSD laptop. But I'm trying to gbet the

Re: [OT] Apple Wireless mouse

2015-03-14 Thread Dr. Hawkins
On Sat, Mar 14, 2015 at 10:43 AM, Peter Haworth wrote: > It seems to have a mind of its own when it comes to scrolling. I'll be > happily typing away and reach for the mouse and suddenly the window I'm in > scrolls before I even touch the thing. Makes using the script editor > interesting! > >

Bringing invisible main stack to front on start in IDE

2015-03-14 Thread Dr. Hawkins
when my stack loads, the mainstack detects the development environment, and uses a "send openMcp2 to me in 0" to cause the script editor to open a couple of main scripts and position that window I've tried putting "open stack mcp" and send "open stack mcp" to me in 0 at the end of that script,

Getting use of menus straight

2015-03-14 Thread Dr. Hawkins
Before I blow off another limb, I need to see if I have this straight. (Hey, I'm not a GUI kind of person. My general reaction is that they're for displaying arrays of xterms . . . ) So for mac, I set the defaultMenuBar, which can hang around in the main stack. For substacks with custom menus, I

Re: SQLite Problem

2015-03-14 Thread Dr. Hawkins
On Thu, Mar 12, 2015 at 10:21 AM, Peter Haworth wrote: > No errors on that. Subsequently I use revDatabaseColumnNames to get the > column names followed by a loop using revDatabaseColumnNamed to get the > column values. The latter returns an error indicating that printf('%6.2f' > and ,Value are

Re: Beyond PowerStatus: Concurrency options

2015-03-09 Thread Dr. Hawkins
On Mon, Mar 9, 2015 at 11:32 AM, Pierre Sahores wrote: > I see… > > —> Scala > —> PHP > —> Java > > I would choose Scala if i had to solve this my self. Have an eye on it : > it’s a powerful functional programming language witch compile to the JVM > and is able to handle connections to PostgreSQL

Re: Beyond PowerStatus: Concurrency options

2015-03-09 Thread Dr. Hawkins
On Sun, Mar 8, 2015 at 9:27 PM, Pierre Sahores wrote: > Why not clients to an LC server gateway in SSL mode and LC to PostgreSQL > in localhost mode ? > > >From the past few days of discussions, it does not appear that livecode can enforce only encrypted connections--once the socket is open, it w

Re: Beyond PowerStatus: Concurrency options

2015-03-08 Thread Dr. Hawkins
On Sun, Mar 8, 2015 at 1:17 PM, Pierre Sahores wrote: > 1.- home made : i7 8 logical cores under windows : > Not that promising--remember when intel's virtual cores (or whatever they're called) came out? We all got excited about what sounded like a great idea, but it never met it promise. The

Re: Can't open sqlite disk file in XP standalone

2015-03-07 Thread Dr. Hawkins
On Sat, Mar 7, 2015 at 4:01 PM, Mike Bonner wrote: > Ah k. Glad you found it. I had just wondered if the xp machine was slow > enough to cause problems with the preopen, but as you say, when its called > from a substack of the main, thats not the issue. > Now if I can only find a workaround .

Re: Can't open sqlite disk file in XP standalone

2015-03-07 Thread Dr. Hawkins
On Sat, Mar 7, 2015 at 2:16 PM, Mike Bonner wrote: > If you move the code that causes the problem, from preopenstack to > openstack, (or even opencard) does it start to work? > If so, your preopenstack handler is trying to do things that require > libraries that are not yet available. > The preP

Re: Can't open sqlite disk file in XP standalone

2015-03-07 Thread Dr. Hawkins
On Sat, Mar 7, 2015 at 12:45 PM, Peter Haworth wrote: > I see. Is there any error message displayed by the error handler? > It gives the line number of the stack, and name of the file. Naturally, in an "OK" window that doesn't allow copying the text . . An error occurred on line: 89 219,89,8 r

Re: Can't open sqlite disk file in XP standalone

2015-03-07 Thread Dr. Hawkins
On Sat, Mar 7, 2015 at 12:04 PM, Peter Haworth wrote: > So what ends up in PrefsDB? Not sure what you mean by "causes an error > rather than returning an error code". > Nothing; the line is never reached. It's an execution error, goes to the execution error handler, and stops dead. > > Don't

Can't open sqlite disk file in XP standalone

2015-03-07 Thread Dr. Hawkins
I'm in odd waters at the moment, on XP (which is left over on a FreeBSD laptop; I've never actually owned a windows machine, ever . . .) Anyway, this application has compiled and run as a mac standalone for years, and as a windows standalone compiled mac-side at some point in the past. I have a t

Re: Valuable tip re. v7's Save As

2015-03-07 Thread Dr. Hawkins
On Sat, Mar 7, 2015 at 9:52 AM, Richard Gaskin wrote: > I recently learned that the Save As option in v7 is even smarter than I'd > thought: > OTOH, I'm fitting it this morning. I'm using an old XP laptop while my powerbook dries out (grr!), but after saving a standalone, livecode forgets where

Re: Power Status (was Re: Because LC can't do two things at once.)

2015-03-07 Thread Dr. Hawkins
On Sat, Mar 7, 2015 at 8:33 AM, Peter M. Brigham wrote: > Good point. I guess this never occurred to me because I never do "get …", > I always do "put … into varName". The "it" variable is somewhat ephemeral > if you're not careful. Even with an "ask …" I always follow it with a "put > it into va

Re: Text Field in LC 7

2015-03-07 Thread Dr. Hawkins
On Sat, Mar 7, 2015 at 8:05 AM, Richard Gaskin wrote: > So I submitted a request for an allowTabs field property; off by default, > when true it would allow a field to accept tabs the user types: > > Now that you mention it, that could be insanel

Re: scope of gRevAppIcon on substacks

2015-03-07 Thread Dr. Hawkins
On Fri, Mar 6, 2015 at 7:58 PM, Peter M. Brigham wrote: > From the dictionary: > > - > LiveCode looks for the specified image in the following order: > Thanks. That and Jacqui's explanation of standalones will probably solve everything (it really doesn't matter whether it gives me the imag

Re: stack not specified height (from using editmenus?)

2015-03-06 Thread Dr. Hawkins
On Fri, Mar 6, 2015 at 11:53 AM, J. Landman Gay wrote: > No, it isn't editmenus, it's that you assigned a menu bar to the stack. > What you describe is normal and expected behavior on Mac (only.) When a > menubar exists, the content is scrolled up by the height of the menu group. > T I had read

scope of gRevAppIcon on substacks

2015-03-06 Thread Dr. Hawkins
I'm trying (finally) to use gRevAppIcon, which displays an icon in ask & answer. It seems that this uses the *short* id of the image, which would seem to limit it to the stack in which it occurs (or possibly to the main stack). I've set it as a global in my mainstack, and it is used in the test a

Re: printing at full density in 7!

2015-03-06 Thread Dr. Hawkins
On Fri, Mar 6, 2015 at 11:37 AM, Terence Heaford wrote: > I presume these little remarks are meant for me. Thanks. > > not directly, actually. They just sent me musing, when someone answered before I did (I had to remove the target area when printing to pdf on the switch to 7, and I'm pretty sur

defaultMenubar not staying set

2015-03-06 Thread Dr. Hawkins
late in the openstack handler for the mainstack, I have the command set the defaultMenubar to the long id of group mcp_menu of card 1 of stack mcp It does not seem to take effect; checking the defaultMenuBar property still shows the revMenu default menu, and only the mainstack gets this menu.

stack not specified height (from using editmenus?)

2015-03-06 Thread Dr. Hawkins
I set, and later unset, editmenus, which may be triggering this. I now have a stack (OSX) which reports a height of 240 (which it should, it was set in a script), yet fullly shows a button with a bottom of 258. Experimenting shows that vertical 0 is at about the top of the titlebar, not the botto

Re: printing at full density in 7!

2015-03-06 Thread Dr. Hawkins
On Thu, Mar 5, 2015 at 8:16 PM, J. Landman Gay wrote: > Cool! How nice to get good news. :) > And nice not to be complaining :) (I did find it odd that this was happening in 5.5, as I could print at density from at least SuperCard, and I think also Hypercard, back in 1989 . . .) -- Dr. Richa

printing at full density in 7!

2015-03-05 Thread Dr. Hawkins
Wow. I just thought to try this for the first time. in 5.5, if you printed cards to the printer, they came out at 72dpi (old screen density). I* had* to use pdfs. (not a real problem, as they are necessary for filing with court). But now, I got a full density printout. -- Dr. Richard E. Hawk

Re: revUnplacedGroupIDs has both false positives and negatives?

2015-03-04 Thread Dr. Hawkins
On Tue, Mar 3, 2015 at 7:56 PM, Dr. Hawkins wrote: > I also find it *not* consistently finding all of the actually unplaced > groups, although this is much harder to track down. > Now I remember how I even found those. I was searching for phrases in menus with the searchtool, I think,

revUnplacedGroupIDs has both false positives and negatives?

2015-03-03 Thread Dr. Hawkins
I know that it's undocumented, but has anyone looked seriously at revUnplacedGroupIDs? As I went hunting for crud, missing menus, and whathaveyou, As I stepped through (after blowing a foot off), I found that some of the ids covered by revUnplacedGroupIDs were, in fact, placed. In one case, it w

Re: DB connection times

2015-03-02 Thread Dr. Hawkins
On Mon, Mar 2, 2015 at 8:21 PM, Richard Gaskin wrote: > Local DB performance like that makes a good case for working with text > files. :) > > How many records are in there? Complex indices? What could account for > so much time to connect locally? > It *is* entirely text. "remote" postgres

Re: DB connection times

2015-03-02 Thread Dr. Hawkins
On Sun, Mar 1, 2015 at 9:27 AM, Richard Gaskin wrote: > Dr. Hawkins and others have noted that the time required for LC to connect > to a database can be long enough to add up under load. > > To get a good feel for the implications of this, and to explore options > for possibly mi

Re: DB connection times

2015-03-02 Thread Dr. Hawkins
On Mon, Mar 2, 2015 at 9:25 AM, Bob Sneidar wrote: > To optimize connections and transfer of data, one of the things you can do > is use VarChar() instead of TEXT whenever possible. A very knowledgable web > designer explained to me that TEXT types pad the storage values to fill the > defined sto

Re: sane way to keep menubar on mac (and what about windows???)

2015-03-02 Thread Dr. Hawkins
On Mon, Mar 2, 2015 at 5:44 AM, Tiemo Hollmann TB wrote: > In the main stack I create a menu with the menu builder and check the > option > "set as stack menu bar" > With this option checked, the menu will be integrated in Apples menu on Mac > and on windows it get a windows menu bar at the top o

sane way to keep menubar on mac (and what about windows???)

2015-03-01 Thread Dr. Hawkins
My primary target is mac, but I'll probably sell more windows than mac over the long run, so I can't *completely* ignore it. After mucking around and installing menus, I'm not seeing a sane solution to keep application menus around. My experimenting suggests that to keep the menu for the main sta

Re: open socket /accept secure

2015-03-01 Thread Dr. Hawkins
On Sun, Mar 1, 2015 at 3:57 PM, Bjoernke von Gierke wrote: > Not possible, missing feature. > Yikes. All I really need is a secure option for postgres, like there is for mySQL. Or to do ssl, well, securely. I suppose I can use sockets with a key number as the first element (to know which decr

open socket /accept secure

2015-02-27 Thread Dr. Hawkins
I'm looking at the open socket/accept connection behavior. I see clearly that I can "open secure". What I don't see is anything in accept to *only* accept secure/encrypted. I would like to open the socket, keep it open as as secure & encrypted, and pass database queries to the server by a write

Standalones requiring force-quit (and messages?)

2015-02-27 Thread Dr. Hawkins
I've been force-quitting the IDE as my standard so long that I don't give it any thought . . . the frequency with which it gets lost, beachballs, or whatever is high enough that I usually don't even try a plain quit. Anyway, as I'm being advised that the standalones that people are testing are nee

Re: greyed lockText box for table in group?

2015-02-26 Thread Dr. Hawkins
On Wed, Feb 25, 2015 at 4:45 PM, Mike Bonner wrote: > Since its a table field, the dontlock and don'twrap are that way on > purpose. To edit a cell in a simple table, click, and it'll pop up an edit > field. Its supposed to be that way. There are a bunch of settings required > to get it to behav

greyed lockText box for table in group?

2015-02-25 Thread Dr. Hawkins
I have a table in a group that may "summoned" to assist the user. The group is normally hidden, and has its backroundBehavior set. When made visible, the fields may be typed into. The regular fields all work, but this simple table is locked. And when I go to the property inspector, the lockText

Re: Printing just one card to PDF [was Re: The owner of a selected control - a mystery]

2015-02-24 Thread Dr. Hawkins
On Tue, Feb 24, 2015 at 3:06 AM, Graham Samuel wrote: > > OK, I’m trying to follow your code. As I understand it, you have a card > whose name is in “otCd”. You print the whole card by setting its rectangle. > However you don’t print it to a conceptual bit of paper the same size as > the card, d

Re: Printing just one card to PDF [was Re: The owner of a selected control - a mystery]

2015-02-23 Thread Dr. Hawkins
On Mon, Feb 23, 2015 at 1:00 AM, Graham Samuel wrote: > But meanwhile, for my personal knowledge database, I am trying to > understand how to generate a PDF which has exactly the same dimensions as > the object which is being ‘printed’ > I currently have this: -- print otCd from 0,0

Re: Laying out text

2015-02-22 Thread Dr. Hawkins
measureText . . . interesting. Should "width" give the same dimension as the formattedWidth if one put the text into the field? And can this one be done without opening the card containign the field -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___

Re: Laying out text

2015-02-22 Thread Dr. Hawkins
On Sun, Feb 22, 2015 at 2:54 PM, Peter Haworth wrote: > Hmmm, I see it in my copy of 7.0.2(rc1), along with measureunicodeText > It seems that "object" was clicked rather than "all". I've never done that before . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___

Re: Laying out text

2015-02-22 Thread Dr. Hawkins
On Sun, Feb 22, 2015 at 12:35 PM, Paul Hibbert wrote: > > You should be able to do this with measureText, check the dictionary for > the details. You'll probably just need a repeat loop with a function > something like… > Which is missing from the 7.0.2 dictionary . . . -- Dr. Richard E. Hawk

Re: Laying out text

2015-02-22 Thread Dr. Hawkins
On Sun, Feb 22, 2015 at 12:32 AM, Terence Heaford wrote: > Is it possible in LC to work out the size (width) of the field required to > hold the text without firstly creating the field or is it necessary to > place all the fields on the screen, work out the formattedWidth and then > layout the fi

Re: Because LC can't do two things at once.

2015-02-22 Thread Dr. Hawkins
On Sun, Feb 22, 2015 at 7:09 AM, Martin Koob wrote: > I have found another one that I found very helpful to get a basic > understanding of regex. > I actually have a copy of O'Riley's book on it somewhere. And another one on csh or tcsh or both. One is in print, the other on a cd. -- Dr. Ri

Re: opening a stack without changing current stack order?

2015-02-20 Thread Dr. Hawkins
On Sat, Jan 10, 2015 at 11:18 AM, J. Landman Gay wrote: > Is the stack in RAM? You can get any property of anything if the stack is > in memory and you provide a full reference: > >get the formattedheight of fld x of cd y of stack z > > It doesn't even have to be the current card of that stac

Re: Because LC can't do two things at once.

2015-02-20 Thread Dr. Hawkins
On Fri, Feb 20, 2015 at 6:43 AM, Mike Kerner wrote: > So you're mostly focused on desktop development, correct? Primarily, and specifically the generation of pdf forms. I'll add an app version, but it would be for manipulating/viewing the data; in certainly wouldn't be a replacement. I'm also

Re: Because LC can't do two things at once.

2015-02-20 Thread Dr. Hawkins
On Thu, Feb 19, 2015 at 7:36 PM, kee nethery wrote: > What is PDF/A? > > It’s a TLA I’m unfamiliar with. > A PDF variant. http://en.wikipedia.org/?title=PDF/A I think the biggest thing is embedding fonts. This is for court use, so missing fonts or other pieces decades down the road is an issu

Re: Because LC can't do two things at once.

2015-02-19 Thread Dr. Hawkins
On Thu, Feb 19, 2015 at 5:48 PM, Dr. Hawkins wrote: > On Thu, Feb 19, 2015 at 3:05 PM, Mike Kerner > wrote: > >> Wow, that's surprising. So what does your list look like - say for the >> top >> 5? Why is multithreading so important to you? >> > >

Re: Because LC can't do two things at once.

2015-02-19 Thread Dr. Hawkins
On Thu, Feb 19, 2015 at 3:05 PM, Mike Kerner wrote: > Wow, that's surprising. So what does your list look like - say for the top > 5? Why is multithreading so important to you? > Secure Postgres support Multithreading or slave processes Fixing the (*#^%*(m show-stopping bugs in the IDE (shado

Re: Because LC can't do two things at once.

2015-02-19 Thread Dr. Hawkins
On Thu, Feb 19, 2015 at 10:32 AM, Mike Kerner wrote: > If you were prioritizing features for LC, would this be one of your top 5? > It might make my top 10, but I don't know if it would be in my top 5. > I can't see it any lower than my top 2 (the other of which would be postgres ssl support).

Re: undeclared variables getting through in Strict Compilation mode

2015-02-18 Thread Dr. Hawkins
I just stumbled across a couple more of these. \begin{wild_speculation} when there is an undeclared variable slipping through, the shadow bug is more likely to bite \end{wild_speculation} -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___ use-live

Re: Reverse a list

2015-02-17 Thread Dr. Hawkins
On Tue, Feb 17, 2015 at 2:20 PM, Mike Kerner wrote: > I didn't include everything, including the transaction code, or opening the > database in memory instead of on a disk. When we were messing with this, > the piece that became the (58 minute) bottleneck was inside the loop, or, > according to

Re: undeclared variables getting through in Strict Compilation mode

2015-02-17 Thread Dr. Hawkins
On Tue, Feb 17, 2015 at 2:57 PM, Bob Sneidar wrote: > Ya know, simply turning off explicit variables for now allows you to move > forward with your project. Who knows, you might like it. ;-) With my typing, that would be a bad idea (tm), Dr. Venkman . . . I was able to go forward by declaring

Re: Reverse a list

2015-02-17 Thread Dr. Hawkins
On Tue, Feb 17, 2015 at 12:11 PM, Mike Kerner wrote: > The following is very fast: > put "INSERT INTO sortTest VALUES :1" into tSQL > repeat for each line tLine in tDataSet >revExecuteSQL dbid, tsql, tline > end repeat > Faster still would probably be to build a command in the loop. Termina

Re: Reverse a list

2015-02-17 Thread Dr. Hawkins
On Tue, Feb 17, 2015 at 9:01 AM, Geoff Canyon wrote: > Given that you have access to lines, items, and words, if possible it would > be better to set the outer loop to work on lines, and then do whatever you > like with items within the loop. > Most of the time, it is enough to set the outer loo

Re: undeclared variables getting through in Strict Compilation mode

2015-02-17 Thread Dr. Hawkins
On Mon, Feb 16, 2015 at 10:16 PM, J. Landman Gay wrote: > On 2/16/2015 7:54 PM, Dr. Hawkins wrote: > >> Livecode just plain didn't catch that a variable was undeclared . . . had >> it been declared as local, it would have been an error. >> > > Hm. Are you

Re: undeclared variables getting through in Strict Compilation mode

2015-02-17 Thread Dr. Hawkins
On Mon, Feb 16, 2015 at 10:14 PM, J. Landman Gay wrote: > It threw no error loading prAry, and it turned into the correct array. >> >> Single step into the calling handler, and prAry and the global prAry was >> gone. >> > > This is correct behavior, at least when explicit variables is off (if it'

Re: Reverse a list

2015-02-17 Thread Dr. Hawkins
On Mon, Feb 16, 2015 at 6:23 PM, Peter M. Brigham wrote: > No need to change the itemdel in a loop, you can use this instead: > > put getItem(pList, pIndex, pDelim) into tItem > Won't this be orders of magnitude slower? I can see the use in the general case, but Im ususally in nested loops wher

Re: Reverse a list

2015-02-16 Thread Dr. Hawkins
On Mon, Feb 16, 2015 at 3:08 PM, Alex Tweedly wrote: > That's not quite correct. It doesn't do a single initial complete scan of > the whole variable and keep all the pointers. What it does is (more like) > keep track of how far it has currently processed, and then when it needs > the next line,

Re: undeclared variables getting through in Strict Compilation mode

2015-02-16 Thread Dr. Hawkins
On Mon, Feb 16, 2015 at 3:55 PM, Bob Sneidar wrote: > The simple way to avoid that in the future is what many have suggested for > the eons we have been posting on this list: Name your variables in such a > way that they *cannot* conflict. > But that's not the problem here :) Livecode just plai

Re: undeclared variables getting through in Strict Compilation mode

2015-02-16 Thread Dr. Hawkins
On Mon, Feb 16, 2015 at 4:06 PM, Peter Haworth wrote: > Certainly good to have naming conventions. Unfortunately, it doesn't > prevent the infamous "name shadows another variable" compile error. > Although I seem to be getting far fewer of those now I've moved to more > recent LC versions. > > I

Re: undeclared variables getting through in Strict Compilation mode

2015-02-16 Thread Dr. Hawkins
On Mon, Feb 16, 2015 at 2:03 PM, J. Landman Gay wrote: > I'm still not sure what you saw. Maybe if you can post the handler and > describe what happened again we will spot something. It used to be on prePreOpenStack local prefsDir, prefsFilNam, newPrefsDb, prTabNams local dcmd, theData,

Re: undeclared variables getting through in Strict Compilation mode

2015-02-16 Thread Dr. Hawkins
On Mon, Feb 16, 2015 at 11:07 AM, J. Landman Gay wrote: > Is the global declared at the top of the script? Are you trying to use a > local variable in a handler with the same name as the global? > > no & nope. There is a single local variable declared outside of any scripts (to flag initializati

undeclared variables getting through in Strict Compilation mode

2015-02-16 Thread Dr. Hawkins
I've never seen *this* before, but I've been bitten by it twice this morning in different stubstacks & handlers. Variable values were not getting set, even though they showed as set in handlers. In both cases, it turned out that I was modifying a globle variable that hadn't been set in that handl

Re: Long IDE pauses?

2015-02-15 Thread Dr. Hawkins
On Tue, Feb 3, 2015 at 12:56 PM, Bernard Devlin wrote: > I am currently working with 6.7, and I'm seeing the IDE freeze for maybe 30 > seconds at a time. I've got the message watcher open, and it's not like > there's lots going on. > Sometimes I see a small LC window pop up for a second then dis

Re: Passing control away and back again

2015-02-15 Thread Dr. Hawkins
On Sun, Feb 15, 2015 at 4:14 AM, Graham Samuel wrote: > 2. To get the user input, the script does a 'go to' (which is really an > 'open') to a special stack for this input. Eventually, the data is input > and checked, and the user clicks say an "OK" button to get back to the > startup process. >

Re: "accept" and socket read/write

2015-02-12 Thread Dr. Hawkins
On Thu, Feb 12, 2015 at 8:15 AM, Dr. Hawkins wrote: > Conjecture about parallelism aside, half a second seems a very long time >> just to open a DB connection. It may be worthwhile submitting a bug report >> so that can be reviewed. >> > > I'll time it again, bu

Re: "accept" and socket read/write

2015-02-12 Thread Dr. Hawkins
On Thu, Feb 12, 2015 at 7:30 AM, Richard Gaskin wrote: > Dr. Hawkinsv wrote: > > My thinking is that the application launches, and then it uses shell > > commands to launch, say, three other instances which will listen on > > three other ports. Initial connections would be round robin-ed (?) > >

Re: "accept" and socket read/write

2015-02-11 Thread Dr. Hawkins
On Wed, Feb 11, 2015 at 5:02 PM, Richard Gaskin wrote: > Phil Davis wrote: > > As it stands right now, the engine is single-threaded so there's no > > distributing of anything to other cores within a single instance of > > your application. As for the future, I can't address that. > My thinking

Re: Set Script Limits in Standalones

2015-02-11 Thread Dr. Hawkins
On Thu, Feb 5, 2015 at 9:12 AM, Bob Sneidar wrote: > So, wait a minute. If an MD makes a mistake, people can die. So if a PhD > in Physics makes a mistake, does it alter the fabric of space/time? Or worse, Dr. Venkman . . . it could be *bad* -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___

"accept" and socket read/write

2015-02-11 Thread Dr. Hawkins
Am I reading the dictionary correctly? If I am, the accept command on the server end would use the same "read from socket" and "write from socket" commands as the client size uses? So when I client first connects to set up a connection, the callback message on the serer would be used for authenti

Re: Postgres SSL connection?

2015-02-11 Thread Dr. Hawkins
On Tue, Feb 10, 2015 at 3:41 PM, Andrew Kluthe wrote: > Also, yes, it's just not supported. I wouldn't count on getting it > supported anytime real soon. > I find that mind-boggling, though. Once can argue its merits in comparison with Oracle (technical, political, commercial, and others, I sup

Re: Postgres SSL connection?

2015-02-11 Thread Dr. Hawkins
On Tue, Feb 10, 2015 at 4:33 PM, Bob Sneidar wrote: > IC, no I mean a *local* file, like sqLite. But I take you to mean that > Postgres is socket based. > Postgres runs as a server, either to the localhost, or to the outside world. It can either accept a connection on a regular port, or it can

Re: Postgres SSL connection?

2015-02-11 Thread Dr. Hawkins
On Tue, Feb 10, 2015 at 3:37 PM, Andrew Kluthe wrote: > Is your server side component something that would run on a clients machine > or will you forever be in charge of the potential server side of it? Put > differently, is the server side component something you intend to ship for > end users t

Postgres SSL connection?

2015-02-10 Thread Dr. Hawkins
It appears that, for reasons I cannot begin to imagine, SSL is only supported for mySQL database connections, and not postgres. Is this correct? Does anyone know if there are plans to implement SSL for postgres? At the moment, it seems that my only options are to either accept the limitations of

Re: Best Practice: Prevent Substacks from Triggering Main Stack Scripts

2015-02-08 Thread Dr. Hawkins
On Fri, Feb 6, 2015 at 12:33 PM, J. Landman Gay wrote: > If almost everything needs to use the open* handlers except one or two > stacks, then I put the handlers into the mainstack stack script and put > blocking handlers into the stacks that are an exception. This. I quickly figured out that

Re: gratuitous inclusion of oracle in 7.0.2-RC2

2015-02-04 Thread Dr. Hawkins
On Wed, Feb 4, 2015 at 5:00 PM, J. Landman Gay wrote: > I've never built an app that large, for something like that I usually use > the splash method so that I can have modules. > Oh, and you're not selling to lawyers :) Once the program is established, changes will actually happen more in the

Re: gratuitous inclusion of oracle in 7.0.2-RC2

2015-02-04 Thread Dr. Hawkins
On Wed, Feb 4, 2015 at 5:00 PM, J. Landman Gay wrote: > I'm still thinking the slowdown is due to having "search for required > inclusions" selected in the standalone settings. The search would have to > scan and parse at least 30,000+ lines just given the specs that were > listed. Richard (the H

Re: removing accumulated garbage fro stacks?

2015-02-04 Thread Dr. Hawkins
On Wed, Feb 4, 2015 at 4:01 PM, Peter Haworth wrote: > As mentioned in that thread, there's an undocumented stack property > revUnplacedGroupIDs. You'll need a simple script to go through your > stack/substacks and check that property. > I managed to miss that splinter of the thread :( Tried

Re: gratuitous inclusion of oracle in 7.0.2-RC2

2015-02-04 Thread Dr. Hawkins
On Wed, Feb 4, 2015 at 11:20 AM, Richard Gaskin wrote: > > I just saw livecode take 15 minutes building a standalone (quadcore > > i5,16gb)... > > That's a very long time. > > indeed :) I think it was something like 3-5 min with 5.5, but it probably wasn't even that long Can you give us some e

removing accumulated garbage fro stacks?

2015-02-04 Thread Dr. Hawkins
There was a recent discussion about accumulated unplaced images and groups. But how are these found? How does one go hunting for these? -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___ use-livecode mailing list use-livecode@lists.runrev.com Please v

Re: explicitvariables

2015-02-04 Thread Dr. Hawkins
On Wed, Feb 4, 2015 at 4:17 AM, Jean-Jacques Wagner wrote: > The "Strict Compilation Mode" option in Preferences was set (for some > reason( > That's a good thing. I don't even like variable names not being case-sensitive . . . Also, you will find that you get good and bad days with this bug;

Re: gratuitous inclusion of oracle in 7.0.2-RC2

2015-02-03 Thread Dr. Hawkins
On Tue, Feb 3, 2015 at 6:04 PM, Dr. Hawkins wrote: > Aside from the fact that that should be findable, should this take this > long? OK, 15 minutes seems to be how long it takes *without* errors, too. I feel like I fell into the 1980s . . . -- Dr. Richard E. Hawkins, Esq. (702) 50

gratuitous inclusion of oracle in 7.0.2-RC2

2015-02-03 Thread Dr. Hawkins
I just saw livecode take 15 minutes building a standalone (quadcore i5,16gb) before finally putting up a message (which I didn't save correctly) that it couldn't find the oracle database driver (which I don't need,anyway). Aside from the fact that that should be findable, should this take this lon

Re: explicitvariables

2015-02-03 Thread Dr. Hawkins
On Tue, Feb 3, 2015 at 12:35 PM, Jean-Jacques Wagner wrote: > What to do when the compiler does not accept new variable > (explicitvariables?, so it is well set to false). Your done, your script is > not working anymore. > it disappear and come again. > There is a very long standing bug in which

Re: Set Script Limits in Standalones

2015-02-01 Thread Dr. Hawkins
On Sun, Feb 1, 2015 at 8:50 AM, Earthednet-wp wrote: > Personally I'd feel like I was being pompous if I insisted that the title > of Dr was used to address me outside of academia. Again, no criticism of Dr > Hawkins. I am guessing that, in his world, it's customary. Actuall

Re: Set Script Limits in Standalones

2015-01-31 Thread Dr. Hawkins
On Sat, Jan 31, 2015 at 2:52 PM, Peter M. Brigham wrote: > Sorry, but as an MD I have to protest this. I may not have contributed to > knowledge in the sense of having published original research, but i'm > confident that I have contributed to the well-being of thousands of > patients. That said,

Re: dealing with graphics whose size changes

2015-01-31 Thread Dr. Hawkins
On Sat, Jan 31, 2015 at 7:31 AM, Scott Rossi wrote: > Are the graphics polygons? > > If yes, you can store the original points of the polygons as custom > properties in the graphics, and revert to those before doing any size > changes. You may need to account for an offset depending on where the

Re: 6.7 vs 7.0 performance [was: Re: Tio does not work ]

2015-01-31 Thread Dr. Hawkins
"Livecode 7" and "Performance" should not be used in the same sentence . . . :) -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your

Where did the handlers for my menukeys go???

2015-01-31 Thread Dr. Hawkins
Sometime, over two years ago, I set up some key accelerators for a card (or maybe the substack). They still work--and I can't find them. I assume that I used the menubuilder. These drivers send a mouseup to an associated button Can anyone tell me where to hunt for them? -- Dr. Richard E. Hawk

Re: changing layer within a group by script/ speed of "start editing"

2015-01-31 Thread Dr. Hawkins
On Mon, Jan 26, 2015 at 10:54 AM, Geoff Canyon wrote: > set relayergroupedcontrols to true > set the layer of to > wow. That did it. I keep trying to read large blocks of the dictionary, but there is still so much to find . . . We're a long way from hypercard, for which I read the entire bo

dealing with graphics whose size changes

2015-01-31 Thread Dr. Hawkins
I have graphics whose animation will take them to arbitrary sizes from 10 to 200 pixels, with an initial displayed size of 100. If reset their size & width, they eventually get jagged. Is there a "best" method for keeping them to date in shape? The extreme versions would seem to be to have one fo

Re: Set Script Limits in Standalones

2015-01-31 Thread Dr. Hawkins
On Tue, Jan 27, 2015 at 9:39 AM, Ray wrote: > I didn't know Scott had a doctoral degree and I hope he was never offended > that I didn't address him with this title. I have yet to meet a real doctor that gets offended or expects the title to be used outside of a classroom. MDs are another stor

changing layer within a group by script/ speed of "start editing"

2015-01-25 Thread Dr. Hawkins
I have a group with four overlapping graphics. Depending upon what happens, different ones want to be brought to the top and change the overlap. I'm currently using start editing/set the layer of zzz to top/stop editing. I think it also changes the size. I can actually see the order in which th

Re: A Got-Ya

2015-01-22 Thread Dr. Hawkins
On Thu, Jan 22, 2015 at 10:07 AM, Peter Haworth wrote: > On Wed, Jan 21, 2015 at 4:56 PM, Dr. Hawkins wrote: > > > repeat for each word theProp in "a b c" > >set the theProp of me to empty > > end repeat > > > > That's correct, b

Re: A Got-Ya

2015-01-21 Thread Dr. Hawkins
On Wed, Jan 21, 2015 at 4:00 PM, Peter Haworth wrote: > But doesn't the presence of "the" and "of " indicate that > the reference is to a (custom) property not a variable? > Not necessarily. repeat for each word theProp in "a b c" set the theProp of me to empty end repeat It's necessary to

Re: Speaking of sockets...

2015-01-21 Thread Dr. Hawkins
On Wed, Jan 21, 2015 at 7:34 AM, Bob Sneidar wrote: > Oh good to know. However, I am getting less than a second response time > for open socket, and I wouldn’t want to set a timeout that low for SQL. > > I'm currently seeing ~250 ms to connect to mySQL on dreamhost . . . -- Dr. Richard E. Hawk

Re: Speaking of sockets...

2015-01-20 Thread Dr. Hawkins
On Tue, Jan 20, 2015 at 4:35 PM, Bob Sneidar wrote: > I’ve mentioned in the past that if I am unable to connect to a mySQL > server (such as going to a location with my laptop and finding their > firewall blocks port 3306) it takes close to a minute for LC to release and > tell me it cannot conne

<    4   5   6   7   8   9   10   11   12   13   >