re: Livecode server + NGINX ?

2015-01-21 Thread Pierre Sahores
100% my tough too, Richard ! With up to 3750 connections/second handled in a LAN test 1500 U$ dedicated server configuration with XSS/CSRF filter and protection set to ON, Linux/Apache/LC Server/RevIgniter/PostgreSQL is able to handle more than any of my clients will probably ever need in

Re: A code style question

2015-01-21 Thread Geoff Canyon
I was thinking of doing a switch version, so thanks! On Wed, Jan 21, 2015 at 11:54 AM, Ken Ray k...@sonsothunder.com wrote: local baseID function baseID newID put iff(validID(newID),newID, \ iff(validID(baseID), baseID,this card)) into baseID return baseID end baseID3

Re: [Probably OT] Strange loss of ability to do SSL (through curl)

2015-01-21 Thread Mike Bonner
yeah, same thing as source, I forgot you could . it On Wed, Jan 21, 2015 at 10:06 AM, Peter Haworth p...@lcsql.com wrote: Courtesy of Dariusz Miedzianogora a while back on this list: You could try the following command in the shell call: . ~/.profile;your unix command The first dot (.)

Re: A code style question

2015-01-21 Thread Ken Ray
local baseID function baseID newID put iff(validID(newID),newID, \ iff(validID(baseID), baseID,this card)) into baseID return baseID end baseID3 Of course you could reduce it one step further: function baseID newID return iff(validID(newID),newID, \

Re: Mac Menu Bar Apps

2015-01-21 Thread Peter Haworth
I tried it on MAc and it's not implemented on that platform. I will add a QCC enhancement request. Meantime, hopefully Trevor will chime in with his external. Pete lcSQL Software http://www.lcsql.com Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and SQLiteAdmin

Re: Livecode server + NGINX ?

2015-01-21 Thread Richard Gaskin
Robert Brenstein wrote: On 21.01.2015 at 8:37 Uhr -0800 Richard Gaskin wrote: A few months ago I was experimenting with multi-processing in LiveCode as an alternative to multi-threading. The literature on each notes the higher overhead of the former compared to the latter, but also that the

Re: Mac Menu Bar Apps

2015-01-21 Thread Richard Gaskin
Peter Haworth wrote: On Wed, Jan 21, 2015 at 9:15 AM, Matthias Rebbe wrote: The release not of LC 4.5 definitely list that experimental feature. http://downloads.livecode.com/livecode/4_5_0/LiveCodeNotes-4_5_0.pdf Thanks Matthias. Just read that and unfortunately it says it's only

Re: Fields Have Labels

2015-01-21 Thread Scott Rossi
Going back a few days on this one: Try this in a new stack with one field. It works: set the label of field 1 to Label Test put the label of field 1 I remember discovering this a long time ago, and then remembered why I never use it: the property is not saved. When the stack is closed

Re: Inspector Issue

2015-01-21 Thread Geoff Canyon
Sorry I didn't see this before -- if you're seeing that the problem is now fixed, then maybe -- maybe -- there was something wrong with the stack before. If you still see the problem, if you have a large number of cards/controls, maybe there's some inherent limit in the inspector you're hitting.

Error playing MP3 on Linux as Videoclips

2015-01-21 Thread Alejandro Tejada
Hi All, On Ubuntu, Are you seeing an mplayer error while playing mp3 files inside LiveCode? LiveCode 7.0.2 (RC1) in Ubuntu launch mplayer to play sounds and videos. As soon a video or audio stops playing, LiveCode shuts down mplayer, except after playing MP3 media. Everytime that I play

Re: Mac Menu Bar Apps

2015-01-21 Thread Matthias Rebbe | M-R-D
Do you mean „iconmenu“? This allowed to place an icon with menu in the systray of the taskbar under windows and an icon with menu on the toolbar on mac. If the iconic of the stack was set to true the iconfiyStack handler did the rest For example on iconifyStack set the statusicon to 1005

Re: A code style question

2015-01-21 Thread Bob Sneidar
I believe dBase/Foxpro had an iif function. That is because they also had an if control structure command and the compiler needed to discern between the two. Bob S On Jan 21, 2015, at 07:15 , Ben Rubinstein benr...@cogapp.com wrote: On 21/01/2015 01:58, J. Landman Gay wrote: On 1/20/2015

Re: Livecode server + NGINX ?

2015-01-21 Thread Richard Gaskin
Peter W A Wood wrote: Richard is correct that nginx does not support CGI. It will forward requests to an upstream server or a number of upstream servers. I support one application that has been running for a couple of years that forwards CGI requests to a second server. (The second server is

Re: [Probably OT] Strange loss of ability to do SSL (through curl)

2015-01-21 Thread Mike Bonner
You might check to see the environment variables from the command line, and via lc shell, and do a comparison. If I recall correctly, lc shell environment and the environment you get in a terminal or console can differ. If the lc shell is using bash, and you know which files are processed when a

Re: Livecode server + NGINX ?

2015-01-21 Thread Robert Brenstein
On 21.01.2015 at 8:37 Uhr -0800 Richard Gaskin apparently wrote: A few months ago I was experimenting with multi-processing in LiveCode as an alternative to multi-threading. The literature on each notes the higher overhead of the former compared to the latter, but also that the overhead is

Re: [Probably OT] Strange loss of ability to do SSL (through curl)

2015-01-21 Thread Peter Haworth
Courtesy of Dariusz Miedzianogora a while back on this list: You could try the following command in the shell call: . ~/.profile;your unix command The first dot (.) executes the next file. The ~ (tilde) is a shortcut to the home directory of the user. Since .profile is a shell script that is

Re: Mac Menu Bar Apps

2015-01-21 Thread Matthias Rebbe | M-R-D
The release not of LC 4.5 definitely list that experimental feature. http://downloads.livecode.com/livecode/4_5_0/LiveCodeNotes-4_5_0.pdf Matthias Am 21.01.2015 um 18:09 schrieb Peter Haworth p...@lcsql.com: That does ring a bell but I can't find any mention of it in the dictionary. I

Release notes DB - was Re: Mac Menu Bar Apps

2015-01-21 Thread Alan Stenhouse
+1 +5 actually! On 21 Jan 2015, at 6:23 pm, Peter Haworth p...@lcsql.com wrote: It sure would be nice if there was a searchable database of all the LC release notes :-) ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this

Re: A code style question

2015-01-21 Thread Geoff Canyon
I know iff means in-and-only-if, but I have a habit of taking things that are not functions and making them into functions by appending an f so I went with it. I agree that it would be a very useful thing to have -- the obvious drawback of the way it is now is that both outcomes have to be

Re: Mac Menu Bar Apps

2015-01-21 Thread Richard Gaskin
Wasn't statusMenu an experimental feature for both Mac's menu bar and Windows' Task Bar several versions back? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web

Re: Mac Menu Bar Apps

2015-01-21 Thread Peter Haworth
That does ring a bell but I can't find any mention of it in the dictionary. I suppose I'll have to search through the multiple separate release notes to see if I can find it. Pete lcSQL Software http://www.lcsql.com Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and SQLiteAdmin

Re: Mac Menu Bar Apps

2015-01-21 Thread Peter Haworth
Thanks Matthias. Once again, no mention in the dictionary of statusicon, statusiconmenu, or statusiconmenupick, although I think there's enough in your reply to give it a try. Maybe I'm not using the right terminology. When I say the Mac menu bar, I mean the strip at the top of the screen with

Re: Mac Menu Bar Apps

2015-01-21 Thread Peter Haworth
Thanks Matthias. Just read that and unfortunately it says it's only implemented on Windows, at least in that release. Maybe it made it to Mac in a later release, I guess I'll give it a whirl and see what happens. It sure would be nice if there was a searchable database of all the LC release

Re: Mac Menu Bar Apps

2015-01-21 Thread Matthias Rebbe | M-R-D
Am 21.01.2015 um 17:44 schrieb Matthias Rebbe | M-R-D matthias_livecode_150...@m-r-d.de: Do you mean „iconmenu“? This allowed to place an icon with menu in the systray of the taskbar under windows and an icon with menu on the toolbar on mac. I meant dock not toolbar. If the

Re: Speaking of sockets...

2015-01-21 Thread Bob Sneidar
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. Bob S On Jan 20, 2015, at 19:04 , Dr. Hawkins doch...@gmail.com wrote: On Tue, Jan 20, 2015 at 4:35 PM, Bob Sneidar bobsnei...@iotecdigital.com

Re: [Probably OT] Strange loss of ability to do SSL (through curl)

2015-01-21 Thread Bob Sneidar
Use the sudo command. Sudo allows an administrator account to masquerade as root. You will need to provide the current login password when you do this. I have successfully put the password as a second line in a terminal command. The current login must be an administrator. Bob S On Jan 21,

Re: Mac Menu Bar Apps

2015-01-21 Thread Rick Harrison
Hi there, If Xcode will let you do it as a Mac developer then it it possible. If that is the case, I’d look into either a shell system call or applescript as a possibility. Good luck! Rick P.S. Why does it have to be a menubar app? Seems to me a small open stack window near

Re: Speaking of sockets...

2015-01-21 Thread Dr. Hawkins
On Wed, Jan 21, 2015 at 7:34 AM, Bob Sneidar bobsnei...@iotecdigital.com 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 . . .

Re: Inspector Issue

2015-01-21 Thread Peter Bogdanoff
I reverted back to an earlier version that didn’t show the problem. However, when adding the now missing cards and controls, the problem came back. The missing cards were create anew; controls copied over from the old, weird stack. It does seem to be caused by some object limit that the

Re: Error playing MP3 on Linux as Videoclips

2015-01-21 Thread Alejandro Tejada
Hi Richard, Richard Gaskin wrote I haven't tried that specific recipe, but I rarely have good results with multimedia playback in LC, even as all the other playback tools I use in Ubuntu perform marvelously, often handling more formats more gracefully than Mac's QuickTime. Related, I

Re: Error playing MP3 on Linux as Videoclips

2015-01-21 Thread Richard Gaskin
Alejandro Tejada wrote: On Ubuntu, Are you seeing an mplayer error while playing mp3 files inside LiveCode? LiveCode 7.0.2 (RC1) in Ubuntu launch mplayer to play sounds and videos. As soon a video or audio stops playing, LiveCode shuts down mplayer, except after playing MP3 media. Everytime

Re: Error playing MP3 on Linux as Videoclips

2015-01-21 Thread tbodine
Richard Gaskin wrote I rarely have good results with multimedia playback in LC, even as all the other playback tools I use in Ubuntu perform marvelously, often handling more formats more gracefully than Mac's QuickTime Agreed! I have to say multimedia playback has been quite disappointing

Re: Speaking of sockets...

2015-01-21 Thread Bob Sneidar
Unplug your network connection and try again. The problem occurs when I cannot connect to the database because of firewall issues at a customer location. Then it takes a full minute at least to timeout before I get control of LC again. But no matter because the open socket method I posted fixes

Re: Error playing MP3 on Linux as Videoclips

2015-01-21 Thread Alejandro Tejada
Hi Tom, tbodine wrote [snip] I have to say multimedia playback has been quite disappointing in LC. I've done multimedia work for 20 years on Windows and Mac, coming to LC a couple years ago after giving up on Director and Flash. I am very pleased with most aspects of LC, especially

Re: A Got-Ya

2015-01-21 Thread Dr. Hawkins
On Wed, Jan 21, 2015 at 4:00 PM, Peter Haworth p...@lcsql.com wrote: But doesn't the presence of the and of objectreference 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

Re: A Got-Ya

2015-01-21 Thread Peter Haworth
On Tue, Jan 20, 2015 at 6:14 PM, Geoff Canyon gcan...@gmail.com wrote: 1. It's almost impossible to catch conflicts with custom properties. They don't have to be mentioned by name in a script because: But doesn't the presence of the and of objectreference indicate that the reference is to a

Getting the scroll and clickloc of a browser object

2015-01-21 Thread Michael Julian Lew
I'm playing with displaying pdf notes in a browser object and I would like to respond to the user clicking on text in the pdf and to the scroll reaching certain points. Is there any way to know ow far a pdf file in a browser has been scrolled? Any way to know what might have been clicked?

Re: Error playing MP3 on Linux as Videoclips

2015-01-21 Thread Richard Gaskin
Tom Bodine wrote: It would be great to see multimedia support get updated to modern standards, because so many apps these days depend on images and sound to make a strong impression. Will we see and hear that in 2015? That's the plan, listed on the Road Map under the new Player object:

Re: Error playing MP3 on Linux as Videoclips

2015-01-21 Thread Richmond
On 22/01/15 03:23, Richard Gaskin wrote: Tom Bodine wrote: It would be great to see multimedia support get updated to modern standards, because so many apps these days depend on images and sound to make a strong impression. Will we see and hear that in 2015? That's the plan, listed on the

Re: Mac Menu Bar Apps

2015-01-21 Thread Matthias Rebbe | M-R-D
Hi Pete, yes, but only with an external. Trevor Devore created such an external. It supports the following handlers/messages -- HANDLERS command CreateStatusMenu - generates the menu in the menubar. param 1: Name of the menu. param 2: A cr delimited list of menu items. Each

Re: Livecode server + NGINX ?

2015-01-21 Thread Pierre Sahores
Thanks Richard and Peter. Cheyenne, the Rebol HTTPd (Carl Sassenrath and Cindy !) and Olivier Auverlot, a friend i used to be colleague with when i was working for the French Secretary of Education… Warm Regards, Pierre Le 21 janv. 2015 à 03:14, Peter W A Wood peterwaw...@gmail.com a écrit :

Re: A code style question

2015-01-21 Thread Ben Rubinstein
On 21/01/2015 01:58, J. Landman Gay wrote: On 1/20/2015 7:33 PM, Geoff Canyon wrote: The nested if statements in the first one, and the duplicated set the baseID of this stack to this card offend my eye. There's two of us then. Me three. Also I was glad to see you also have a reflex

Re: [Probably OT] Strange loss of ability to do SSL (through curl)

2015-01-21 Thread Ben Rubinstein
Bob, Thanks for replying - I suspect you're right as to the immediate cause and where something has changed (it might just be about a new certificate, for example). However, my real question is why it works in terminal but not using LC shell; although calling the same service does work via