Re: including a library in a standalone

2015-07-06 Thread J. Landman Gay
On 7/6/2015 6:14 PM, Dr. Hawkins wrote: Is inserting as a back script there way to go? And if so, would I be better off doing the same in the IDE rather than as a library? Unless something has changed since I last heard, the only difference between "start using" and "insert

RE: put url web service timeout

2015-07-06 Thread Ralph DiMola
Pierre, Thanks! I am doing the same thing (even the same escapeShellArg and setQuote). The big delay is when I send mail to other domains than on-rev.com. I would think that the 10 second timeout in the LC client should be able to be increased somehow. Ralph DiMola IT Director Evergreen Inform

Re: Open Socket With Messages

2015-07-06 Thread Dr. Hawkins
On Mon, Jul 6, 2015 at 2:15 PM, Bob Sneidar wrote: > I went back to the dictionary and read more thoroughly what wait for > messages does, and while it is working as advertised, it is fairly > worthless in it’s present form unless you find a way to trap for *ALL* > messages and only respond to th

Re: including a library in a standalone

2015-07-06 Thread Peter Haworth
I've only used the "start using" synonym for "library" but with it you have to include the word library so maybe library stack "dhLib" will work. On Mon, Jul 6, 2015 at 5:08 PM Dr. Hawkins wrote: > On Mon, Jul 6, 2015 at 4:41 PM, Mike Bonner wrote: > > > The library stack is a substack of the m

Re: including a library in a standalone

2015-07-06 Thread Dr. Hawkins
On Mon, Jul 6, 2015 at 4:41 PM, Mike Bonner wrote: > The library stack is a substack of the mainstack I assume? If so, make > sure you haven''t set things so that it breaks out substacks into separate > stackfiles. (at which point its no longer monolithic) If the library stack > isn't a substac

Re: "save as" of stack file from a script

2015-07-06 Thread Dr. Hawkins
On Sat, Jul 4, 2015 at 9:23 AM, Peter Haworth wrote: > *dispatch* "revSaveAsStandalone" to stack "revSaveAsStandalone" with > "" > This worked wonderfully. At least after I fixed the way the save folder gets automatically set to match my new changes. -- Dr. Richard E. Hawkins, Esq. (702) 508

[OT] OpenSSL GUI

2015-07-06 Thread Bob Sneidar
Hi all. I have struggled all day long with generating a self-signed SSL cert following exact instructions from several different sites. As usual, people post as though it’s a cinch, but when following their instructions, what I run into is a series of errors that OpenSSL generates as it repeat

Re: including a library in a standalone

2015-07-06 Thread Mike Bonner
The library stack is a substack of the mainstack I assume? If so, make sure you haven''t set things so that it breaks out substacks into separate stackfiles. (at which point its no longer monolithic) If the library stack isn't a substack, you should make it so that it is.(in code, set the mainsta

Re: put url web service timeout

2015-07-06 Thread Pierre Sahores
Should this sendmail script helps ? function emailLC7 pTo, pSub, pMsg, pFrom, pFromName local tMsg put "From:" && pFromName && "<" & pFrom & ">" & cr & "To:" && pTo & cr & "Subject:" && pSub & cr & "Content-Type: text/html; charset=" & setQuote("utf-8") & cr & cr & pMsg into tMsg put th

including a library in a standalone

2015-07-06 Thread Dr. Hawkins
I happily managed to get the library stack working for shared routines in pretty much a matter of minutes. I've got my routine to prepare for compile copying the library stack to the project stack. However, I assumed "library stack libStackName" would work in a standalone, but it creates errors e

Using GIMP to make buttons

2015-07-06 Thread Richmond
My tutorial is now available: https://www.dropbox.com/sh/tyt4o1md51bfair/AABThCCgJkqLQvz1e-NRQGg7a?dl=0 File: GB.zip If you like it please go here: https://www.facebook.com/RMLCclasses and click "Like". Richmond. ___ use-livecode mailing list use

Re: Open Socket With Messages

2015-07-06 Thread Bob Sneidar
I figured it out. First, wait for messages is just this side of useless. *ANY* message that comes through will do, not just messages from the open socket command. Secondly, I just set up my own wait loop that exits when the socket is in the openSockets or else times out after 10 seconds. This wi

[OT] SQLite/Unicode

2015-07-06 Thread Peter Haworth
For those of you wanting to use Unicode with an SQLite database, I came across this on the SQLite list: https://bitbucket.org/alekseyt/nunicode#markdown-header-sqlite3-extension Livecode 7 makes it very easy to insert and retrieve Unicode data to/from an SQlite database but there are some functio

Re: Open Socket With Messages

2015-07-06 Thread Mike Bonner
Hmm. YOu might check socketError Also, in 7.0.5, I just tried this in a button. on mouseUp put "www.google.com:443" into theSocket open secure socket to theSocket with message socketConnected wait for messages put "HI!" & cr end mouseUp on socketConnected pSocket -- callBack for o

Re: Database Input Validation

2015-07-06 Thread Peter Haworth
Hi Pascal, I assume you're referring to SQL injection attacks. You can avoid them by using the varslist/arrayname parameter of revDataFromQuery/revQueryDatabase/revExecute SQL. See the dictionary for more details but it involves using placeholders in your SQL statements and loading the values for

Re: Open Socket With Messages

2015-07-06 Thread Bob Sneidar
Out of curiosity, would having these handlers in a frontscript be a problem? Bob S ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runr

Re: menu buttons and showname

2015-07-06 Thread Bob Sneidar
Agreed. Which brings me back to the point that when the label of a popup menu is empty there ought to be some default behavior like displaying the tootTip or a property containing a value the developer can set. I think we are all agreed that what it ought NOT to do is display the object name. Wo

put url web service timeout

2015-07-06 Thread Ralph DiMola
I created a web service with a "wait 30 seconds" before I return data. When I access my web service from a browser the browser hangs for 30 seconds and returned data is as expected. When I do a ===>put url ("http://myaccount.on-rev.com/myservice.lc?info1=blah) into MyVar<== it times out in about 9

Re: Open Socket With Messages

2015-07-06 Thread Bob Sneidar
I am connecting to a mySQL server so I do not need to manage the host. Bob S On Jul 6, 2015, at 12:59 , Eric Corbett mailto:e...@canelasoftware.com>> wrote: Did you accept connection on port aConnection["deport”]? I think it’s possible for the open socket to remain in the openSockets list un

Re: Open Socket With Messages

2015-07-06 Thread Bob Sneidar
It doesn’t wait. It passes the wait for messages just fine. I am using wait for messages because that is what the dictionary says I should be doing if I need to wait for the connection to be made before proceeding, otherwise the script will just keep going, which is precisely what I do NOT want

Re: Database Input Validation

2015-07-06 Thread Bob Sneidar
Sorry try/catch is not a loop. :-) Bob S > On Jul 6, 2015, at 13:12 , Bob Sneidar wrote: > > One way I used in the past was to get the schema of the table, and for each > column I would be updating I would check type, length, limits etc. to make > sure my data fell within the constraints of

Re: Database Input Validation

2015-07-06 Thread Bob Sneidar
One way I used in the past was to get the schema of the table, and for each column I would be updating I would check type, length, limits etc. to make sure my data fell within the constraints of the column. Another way involves using the error messages SQL sends back when a query fails to determ

Re: menu buttons and showname

2015-07-06 Thread Scott Rossi
Hi Bob: I would propose that empty is not an informative value for a user. Something like "" or a call to action "Select an option" is going to be more helpful than an empty line. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 7/6/15, 12:55 PM, "Bob Sneidar" wrote: >

Re: how to check for unnecessary local declarations?

2015-07-06 Thread Bob Sneidar
Thanks Mark. The code to get the script locals looks suspiciously like what I suggested. Are you sure Jerry didn’t use Jacques Time Travel stack to steal my code?? Bob S > On Jul 3, 2015, at 11:53 , Mark Wieder wrote: > > On 07/03/2015 11:11 AM, Peter Haworth wrote: >> Nice! Only thing I do

Re: Open Socket With Messages

2015-07-06 Thread Mike Bonner
A couple things.. Remove the wait for messages, its not needed and is probably a bad idea. Then, since you're opening a secure socket, you might need to specify with, or without verification (depending on your needs of course) Also, there is a parameter that is passed along with the message that

Re: Release 6.7.6 / 7.0.6

2015-07-06 Thread J. Landman Gay
On 7/6/2015 2:37 PM, Richmond wrote: On 06/07/15 22:33, J. Landman Gay wrote: On 7/6/2015 1:35 PM, Richmond wrote: unfortunately, the Quality Control Center, along with all the other bits of RunRev's site seem to be "down the tubes" again, whether because of DDoS or something else, I don't know

Re: Open Socket With Messages

2015-07-06 Thread Eric Corbett
Did you accept connection on port aConnection["deport”]? I think it’s possible for the open socket to remain in the openSockets list until the connection times out. Grab message socketTimeout pSocketID to see if it’s timing out without connecting. Eric On Jul 6, 2015, at 12:36 PM, Bob Sneidar

Re: menu buttons and showname

2015-07-06 Thread Bob Sneidar
There are all kinds of workarounds for this. What is being discussed is why we need workarounds in the first place. Bob S > On Jul 3, 2015, at 05:25 , David Epstein wrote: > > “Set the label of button myBtn to space” makes an option button appear blank > but does not interfere with a user’s

Re: menu buttons and showname

2015-07-06 Thread Bob Sneidar
New copier device. Popup menu of manufacturers. I want user to explicitly pick a manufacturer, not just ignore the manufacturer that is there. I set it to empty and then check for empty before saving the data. Bob S On Jul 2, 2015, at 20:07 , Kay C Lan mailto:lan.kc.macm...@gmail.com>> wrote:

Re: Release 6.7.6 / 7.0.6

2015-07-06 Thread Richmond
On 06/07/15 22:33, J. Landman Gay wrote: On 7/6/2015 1:35 PM, Richmond wrote: unfortunately, the Quality Control Center, along with all the other bits of RunRev's site seem to be "down the tubes" again, whether because of DDoS or something else, I don't know. Yeah, I noticed that too while try

Open Socket With Messages

2015-07-06 Thread Bob Sneidar
Hi all. I am trying to use open socket like this: put aConnection["dbhost"] & ":" & aConnection["dbport"] into theSocket open secure socket to theSocket with message socketConnected wait for messages put the openSockets into theOpenSockets close socke

Re: Release 6.7.6 / 7.0.6

2015-07-06 Thread J. Landman Gay
On 7/6/2015 1:35 PM, Richmond wrote: unfortunately, the Quality Control Center, along with all the other bits of RunRev's site seem to be "down the tubes" again, whether because of DDoS or something else, I don't know. Yeah, I noticed that too while trying to update a bug report. I think it's

Re: Release 6.7.6 / 7.0.6

2015-07-06 Thread Richmond
AND, real or imaginary insults aside, unfortunately, the Quality Control Center, along with all the other bits of RunRev's site seem to be "down the tubes" again, whether because of DDoS or something else, I don't know. Which is a very great pity as I was going to add some more info about bug

Re: Release 6.7.6 / 7.0.6

2015-07-06 Thread Richmond
On 06/07/15 20:11, Richard Gaskin wrote: Richmond wrote: > On 05/07/15 20:18, Richard Gaskin wrote: >> >> I believe both the RQCC being down and the bug itself may be related >> to the recent DDoS attack. I'm unable to reproduce this issue this >> morning under Ubuntu 14.10. I would try again

Re: Release 6.7.6 / 7.0.6

2015-07-06 Thread Richard Gaskin
Richmond wrote: > On 05/07/15 20:18, Richard Gaskin wrote: >> >> I believe both the RQCC being down and the bug itself may be related >> to the recent DDoS attack. I'm unable to reproduce this issue this >> morning under Ubuntu 14.10. I would try again while the servers >> appear to be working

Database Input Validation

2015-07-06 Thread Pascal Lehner
Hi all, I am working on a desktop app that is running a SQLite database and might well end up as a HTML5 server version with MySQL in the not-so-far future. For this I want to have some sort of input validation to avoid security and XSS incidents. Does anyone have a library or function to "saniti