Re: Suffixes Rename_Anomaly - Renaming batch files in Livecode

2010-12-12 Thread stephen barncard
Thanks for responding, Scott. I will check the stack again. It's about as simple as I can make it. If files weren't created, then obviously nothing else will happen. For the demonstration to work a group of files must be created with the names that are in the left hand column. These files are

Re: Suffixes Rename_Anomaly - Renaming batch files in Livecode

2010-12-12 Thread Mike Bonner
Assuming the strangeness is reliable, this should solve the issue. put replacetext(b,[^a-zA-Z]\.,.) into b On Sun, Dec 12, 2010 at 1:25 AM, Mike Bonner bonnm...@gmail.com wrote: Can you do something like.. if char -6 of item 2 of tln is not a character then put empty into char -6 of item 2

Re: A curious script editor error on saving a stack

2010-12-12 Thread Mark Schonewille
Hi Medard, Cards have no text. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 How to receive a free Color Converter license http://qurl.tk/kv (read the

Re: A curious script editor error on saving a stack

2010-12-12 Thread Medard
Mark Schonewille m.schonewi...@economy-x-talk.com wrote: Cards have no text. Okay, you're right! I took a more thorough look, and it appears that there were a faulty card script, with ancient test pieces of code ;- ___ use-livecode mailing list

Re: RevServer set-up on OSX Server

2010-12-12 Thread Andre Garzia
irgh at least the revserver part worked right? What I do here is this: * I use superduper to make a bootable clone of my HD in an external Hard Drive. * In the rare cases that my mac goes crazy, I reboot from the external hd and then fix the problem. most of the times my mac will not hang

Re: How to write the | char in a script

2010-12-12 Thread Colin Holgate
On Dec 12, 2010, at 5:55 AM, André Bisseret wrote: I have the Show keyboard character viewer checked. But I don't find it on my Mac! By now you should have a keyboard menu near the right end of your menu bar. Mine is between the AirPort and Sound icons. It would look like a French flag

Re: How to write the | char in a script

2010-12-12 Thread Colin Holgate
On Dec 12, 2010, at 11:31 AM, André Bisseret wrote: I did not have the idea to have a look there ; I never noticed these Character Viewer and Keyboard Viewer in this menu! Well, they weren't there until a short while ago when you made that selection in the system preferences!

Re: RevServer set-up on OSX Server

2010-12-12 Thread Keith Clarke
On 12 Dec 2010, at 13:37, Andre Garzia wrote: irgh at least the revserver part worked right? I don't know!! I was rebooting to allow me to copy over the test page when it died (aaargh!) What I do here is this: * I use superduper to make a bootable clone of my HD in an external

Re: closeField and the clear command

2010-12-12 Thread Peter Brigham MD
On Dec 12, 2010, at 11:35 AM, Bill Vlahos wrote: The docs say that if you put something from a script into a field no closeField message is sent. This appears to be the same as if you delete (menuItem Clear) as well. Is this the correct behavior because the docs don't mention it? This

selectionChanged message

2010-12-12 Thread Peter Haworth
I have a front script that intercepts the selectionChanged message to deal with some special handling of datagrids. The dictionary says that selectionChanged is Sent to a field or player when the selection is changed. Obviously the datagrid message should be added to that description but

Re: OT: Powers of Ten

2010-12-12 Thread Colin Holgate
On Dec 12, 2010, at 2:08 PM, Mark Wieder wrote: Completely off any topic, but it's Sunday, so... http://micro.magnet.fsu.edu/primer/java/scienceopticsu/powersof10/ Here's something related, a screen recording of a museum kiosk I programmed ten years ago, for the planetarium in NYC:

Re: OT: Powers of Ten

2010-12-12 Thread Pierre Sahores
Colin, Links seems to be out of date there (error 404). Best regards, Pierre Le 12 déc. 2010 à 20:50, Colin Holgate a écrit : On Dec 12, 2010, at 2:08 PM, Mark Wieder wrote: Completely off any topic, but it's Sunday, so...

Re: OT: Powers of Ten

2010-12-12 Thread Colin Holgate
On Dec 12, 2010, at 2:53 PM, Pierre Sahores wrote: Colin, Links seems to be out of date there (error 404). Thanks, I forgot that I was exporting them as MP4: http://xfiles.funnygarbage.com/~colinholgate/video/planetarium/SS.mp4

Text Wrapping

2010-12-12 Thread Warren Kuhl
I understand that when you have text wrapping on a field, it uses spaces to wrap words. I have situations where the word length (data doesn't have spaces) is longer then my field length and the text doesn't wrap. has anyone encountered this? If so...how did you deal with this? Thanks, Warren

Re: OT: Powers of Ten

2010-12-12 Thread Pierre Sahores
Amazing, Thanks Colin ! Pierre Le 12 déc. 2010 à 20:58, Colin Holgate a écrit : On Dec 12, 2010, at 2:53 PM, Pierre Sahores wrote: Colin, Links seems to be out of date there (error 404). Thanks, I forgot that I was exporting them as MP4:

Re: Text Wrapping

2010-12-12 Thread Mark Schonewille
Hi Warren, Whenever a line is wider than the formattedWidth, you could add a dash somewhere in the middle of the last word of that line. Unfortunately, you might need to create a dictionary for this. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering

How do you compare negative numbers with positive numbers?

2010-12-12 Thread Charles Szasz
I am computing an average of a series of numbers and then comparing each number with the average, which yields a deviation. Of course, there are instances where a negative deviation will occur when it is below the average. Here is my problem. I need to be able to compare a negative number with

Re: selectionChanged message

2010-12-12 Thread J. Landman Gay
On 12/12/10 12:27 PM, Peter Haworth wrote: I have a front script that intercepts the selectionChanged message to deal with some special handling of datagrids. The dictionary says that selectionChanged is Sent to a field or player when the selection is changed. Obviously the datagrid message

Re: Text Wrapping

2010-12-12 Thread Warren Kuhl
Mark, ThanksI was thinking something like that was the answer. Although I was hoping it wasn't. :) Appreciate the quick response! Warren On Sun, Dec 12, 2010 at 2:17 PM, Mark Schonewille m.schonewi...@economy-x-talk.com wrote: Hi Warren, Whenever a line is wider than the

Re: How do you compare negative numbers with positive numbers?

2010-12-12 Thread Colin Holgate
On Dec 12, 2010, at 3:20 PM, Charles Szasz wrote: For example, comparing -3.5 with 2.23. How do you do this? You can use abs to get the positive absolute value, and compare those: put abs(-3.5)abs(2.23) ___ use-livecode mailing list

Re: How do you compare negative numbers with positive numbers?

2010-12-12 Thread Mark Schonewille
Hi Charles, It's been a long time for me, but if I remember well you want either the first differences or the standard deviation. function mean theNumbers return sum(theNumbers)/number of items of theNumbers end mean function firstDifferences theNumbers put mean(theNumbers) into myMean

Re: OT: Powers of Ten

2010-12-12 Thread stephen barncard
Absolutely beautiful UI ! WOW. On 12 December 2010 11:58, Colin Holgate co...@verizon.net wrote: On Dec 12, 2010, at 2:53 PM, Pierre Sahores wrote: Colin, Links seems to be out of date there (error 404). Thanks, I forgot that I was exporting them as MP4:

Re: OT: Powers of Ten

2010-12-12 Thread Pierre Sahores
;-) Einstein's Dream, Unification, String Theory http://www.youtube.com/watch?v=h4_uFU-fKTM Ce Qu'Einstein Ne Savait Pas Encore 1/3 http://www.dailymotion.com/video/xhzi7_ce-qu-einstein-ne-savait-pas-encore_news Le 12 déc. 2010 à 21:33, Richard Gaskin a écrit : And for those who haven't

Re: How do you compare negative numbers with positive numbers?

2010-12-12 Thread Charles Szasz
Colin, Thanks a lot! I had forgotten about the absolute function. I now have to figure out how to do comparisons of this sort so that if a negative number is bigger than a positive value that it is reported as a weakness (such as -3.5 compared with a value of 2.23). And if a positive number is

Strange edit anomaly

2010-12-12 Thread Joe Lewis Wilkins
Anyone... From my edit menu - in the app - if I select some text in my stack and choose Cut or Copy and then Paste, everything works fine; but, if I use the Command Key equivalents, 2 of the strings copied or cut are pasted; though the clipBoardData only shows a single string. I thought it

Edit Anomaly

2010-12-12 Thread Joe Lewis Wilkins
Hmn! Turns out I don't have to implement these command keys. LC does it for me, so my routine was making one paste and LC followed it up with another one. Sometimes LC does too much for us. Joe Wilkins ___ use-livecode mailing list

Re: Edit Anomaly

2010-12-12 Thread Peter Haworth
Interesting that LC implements the command key versions of cut and paste yet doesn't create the scripts for them when you create a menu. Pete Haworth On Dec 12, 2010, at 4:27 PM, Joe Lewis Wilkins wrote: Hmn! Turns out I don't have to implement these command keys. LC does it for me, so my

Re: selectionChanged message

2010-12-12 Thread Peter Haworth
Thanks Jacquie. Here's an interesting one. I put an answer information at the top of my selectionChanged handler so I could tell what might be triggering it. Clicking on the line number to set a debug break point didn't trigger it. Moving around with the script editor window (with

Re: Edit Anomaly

2010-12-12 Thread Joe Lewis Wilkins
Yeah Peter. And then not enough. It's all trial and error. Mostly error. I guess if I were a full time LC coder, this wouldn't be so confusing, but it is. I just checked the Undo command key, think it might also be implemented by LC, but doesn't appear that it is. At least not to my

Re: Edit Anomaly

2010-12-12 Thread J. Landman Gay
On 12/12/10 6:40 PM, Peter Haworth wrote: Interesting that LC implements the command key versions of cut and paste yet doesn't create the scripts for them when you create a menu. It doesn't create them in a standalone, you have to script it. What was probably happening to Joe's stack is that

Re: selectionChanged message - Correction

2010-12-12 Thread Peter Haworth
I think I used the wrong terminology when I said the menu bar of the Application Browser. What I meant was the window bar (?), the area at the top of the window that has the window title and the close, minimise and maximise buttons (I didn't click on any of those, just in a blank area of

Re: Edit Anomaly

2010-12-12 Thread Joe Lewis Wilkins
But does it continue to double paste? I have created a standalone in some time to see what's missing there. Joe Wilkins On Dec 12, 2010, at 4:50 PM, J. Landman Gay wrote: On 12/12/10 6:40 PM, Peter Haworth wrote: Interesting that LC implements the command key versions of cut and paste yet

Re: How do you compare negative numbers with positive numbers?

2010-12-12 Thread Colin Holgate
On Dec 12, 2010, at 3:20 PM, Charles Szasz wrote: For example, comparing -3.5 with 2.23. How do you do this? This may sum it up: While Google recently updated its mobile version of Google Docs to support editing on smartphones, it acknowledged the feature was somewhat limited. The new

Re: How do you compare negative numbers with positive numbers?

2010-12-12 Thread Colin Holgate
For anyone slightly confused by that, I was telling a colleague about changes in Google Docs for iPad, and pasted the reply into th ewrong window! Hope some of you were intrigued anyway. ___ use-livecode mailing list use-livecode@lists.runrev.com

savingStandalone Problem

2010-12-12 Thread Peter Haworth
I have the following code in a savingStandalone handler in the script of my main stack: go to card FieldPrompt of stack Prompts as modal if the dialogData is not Cancel then set the BandTrakVersion of stack BandTrak to the dialogData end if The modal window is displayed and

Re: closeField and the clear command

2010-12-12 Thread Peter Haworth
..and maybe setting the menuHistory property of a button which generates a menuPick message. I know that's not something a user does directly but it does get set when the user selects an item from an option menu. I actually like that. I can set the label of an option menu button if I

Re: OT: Powers of Ten

2010-12-12 Thread Colin Holgate
On Dec 12, 2010, at 7:01 PM, Terry Judd wrote: Really nice Colin and they don't look at all dated. Are they still in use? I'm not sure. It's a few years since I was there, and at that time the size scales ones were still in use, on four screens in this area:

Re: OT: Powers of Ten

2010-12-12 Thread Terry Judd
On 13/12/10 12:14 PM, Colin Holgate co...@verizon.net wrote: The kiosks were done using Director 7, and the animations made mostly with After Effects. I made the spiral galaxy using 50,000 sprites in Director, and some of the forming of planets were done using Director too. Wow! Director