Re: Entire sqlite database wiped of data??

2012-10-05 Thread Dr. Hawkins
On Fri, Oct 5, 2012 at 1:37 PM, Peter Haworth wrote: > Is your database still in the corrupted state? If so issue the following > command: > > PRAGMA integrity_check OK, this is getting bizarre. I rushed to try this, and all of my data is back. I can also see the data (and not just the keys) f

Re: What to intercept for an OS closing of a stack to lock messages

2012-10-05 Thread Dr. Hawkins
On Fri, Oct 5, 2012 at 5:15 PM, Dr. Hawkins wrote: > AFAIK, there isn't any code that it *should* be hitting. ANd this happens even with an empty stack! Or is it empty. This is my output stack. It contains a script, and I regularly delete all the cards. Could I be accumulating some kind of cr

Re: What to intercept for an OS closing of a stack to lock messages

2012-10-05 Thread Dr. Hawkins
On Fri, Oct 5, 2012 at 2:08 PM, Bob Sneidar wrote: > Not sure what the effect of locking messages would be in the middle of a > closeStack. Stack might not close. I seriously doubt >however, that your own scripting is taking 4 seconds to run during closeStack! >If they are, then perhaps it's tim

Re: [OT] Girls Don't Code??

2012-10-05 Thread Dr. Hawkins
On Fri, Oct 5, 2012 at 3:24 PM, Matthias Rebbe wrote: > did i already mention, that i am doing the complete cooking / baking here in > our household. And i love it. And my wife is happy > that she doesn´t need to do it, because she hates it. Gosh, the fire department appreciates the fact that I

Re: [OT] Girls Don't Code??

2012-10-05 Thread Bob Sneidar
On Oct 5, 2012, at 3:24 PM, Matthias Rebbe wrote: > Hi, > > did i already mention, that i am doing the complete cooking / baking here in > our household. And i love it. And my wife is happy that she doesn´t need to > do it, because she hates it. > > Should i be concerned? ;) > > Regards, >

Re: [OT] Girls Don't Code??

2012-10-05 Thread Matthias Rebbe
Hi, did i already mention, that i am doing the complete cooking / baking here in our household. And i love it. And my wife is happy that she doesn´t need to do it, because she hates it. Should i be concerned? ;) Regards, Matthias -- Matthias Rebbe matthias (at) rebbe.tk Tel +49.5741.31

Re: Creating files/folders

2012-10-05 Thread Bob Sneidar
So when will your new stack on System Errors be finished? ;-) JUST KIDDING! On Oct 5, 2012, at 2:56 PM, J. Landman Gay wrote: > On 10/5/12 3:58 PM, Bob Sneidar wrote: >> I tried sysError() instead. It gives me 13 (for folder creation). It >> might be different for files. Now have fun parsing what

Re: Creating files/folders

2012-10-05 Thread J. Landman Gay
On 10/5/12 3:58 PM, Bob Sneidar wrote: I tried sysError() instead. It gives me 13 (for folder creation). It might be different for files. Now have fun parsing what that means! Jacque actually had something along these lines. A function that returned the textual equivalent of a system error? Act

Re: What to intercept for an OS closing of a stack to lock messages

2012-10-05 Thread J. Landman Gay
On 10/5/12 3:55 PM, Dr. Hawkins wrote: I just need this substack to close without executing any handlers. Two ways: 1. In each handler in the mainstack, include a check to see if the target stack is the mainstack and if not, exit the handler. 2. Easier: put empty handlers into the substack

Re: iOS simulator won't work

2012-10-05 Thread Colin Holgate
The instructions about Xcode were for when you get as far as testing on a device, it shouldn't affect whether it works in the simulator. One thing I notice, I wrote that stuff before Apple changed Xcode to become a single application file. If you have a recent Xcode installed there may be a dif

Re: Creating files/folders

2012-10-05 Thread Peter Haworth
Thanks, that's a step in the right direction. The syserror values will be different on each platform so yes, it will be a pain trying to figure out what they mean but more info is better than none at all! Pete lcSQL Software On Fri, Oct 5, 2012 at 1:58 PM, Bob Sneidar wr

Re: What to intercept for an OS closing of a stack to lock messages

2012-10-05 Thread Bob Sneidar
By the way, error 13 is in fact insufficient permissions, as I suspected, but it was more difficult to determine that that I thought it would be. The usual lists of OS X errors usually skips the first 25 or so on the positive side. My opinion here is that system calls that return an error, shoul

re: iOS simulator won't work

2012-10-05 Thread Lars Brehmer
Thanks for the reply Colin! Unfortunately it still doesn't work! > What are the chances! > > Some things may have become more strict over time, and you may have to enter > a more full app id. > > In that field initially there is "com.yourcompany.yourapp", change that to > something else, say

Re: What to intercept for an OS closing of a stack to lock messages

2012-10-05 Thread Bob Sneidar
Not sure what the effect of locking messages would be in the middle of a closeStack. Stack might not close. I seriously doubt however, that your own scripting is taking 4 seconds to run during closeStack! If they are, then perhaps it's time to review the code to see if there is a more efficient

Re: Creating files/folders

2012-10-05 Thread Bob Sneidar
I tried sysError() instead. It gives me 13 (for folder creation). It might be different for files. Now have fun parsing what that means! Jacque actually had something along these lines. A function that returned the textual equivalent of a system error? Bob On Oct 5, 2012, at 1:25 PM, Peter H

Re: What to intercept for an OS closing of a stack to lock messages

2012-10-05 Thread Dr. Hawkins
On Fri, Oct 5, 2012 at 1:51 PM, Bob Sneidar wrote: > There is the shutDownRequest if you are quitting a compiled app. It gets sent > to the current card of the main stack! >Make sure you are trapping for it in the mainStack and not another. Be sure to >pass it in order to complete the shutdown!

Re: What to intercept for an OS closing of a stack to lock messages

2012-10-05 Thread Bob Sneidar
Reading more closely, I am not sure you want to do this anyway. You will not prevent the usual house keeping things from happening in the app or IDE anyway, if you use lock messages. Certain things have to fire off for the IDE to even work properly when messages are locked, or so it is my unders

Re: What to intercept for an OS closing of a stack to lock messages

2012-10-05 Thread Bob Sneidar
There is the shutDownRequest if you are quitting a compiled app. It gets sent to the current card of the main stack! Make sure you are trapping for it in the mainStack and not another. Be sure to pass it in order to complete the shutdown! My understanding is that if you don't the SIGTERM sent to

Re: Creating files/folders

2012-10-05 Thread Bob Sneidar
I would have thought a try catch construct should trap the error. However, upon testing this myself, I find it does not, and the result contains, "can't create that directory". This leads me to believe that a failure to create a directory is not considered by LC to be an error per se. From LC's

Re: Entire sqlite database wiped of data??

2012-10-05 Thread Peter Haworth
Is your database still in the corrupted state? If so issue the following command: PRAGMA integrity_check It will return either OK if it doesn't find any errors or a list of error messages. That won't discover exactly what caused the problem but it might point you in the right direction. In par

Re: Creating files/folders

2012-10-05 Thread Dr. Hawkins
On Fri, Oct 5, 2012 at 1:25 PM, Peter Haworth wrote: > Sorry I should have been more specific. The result just says something > like "Can't create file" or some such generic message - I'm looking for > something more specific as to why it couldn't be created. In that case, you're way beyond my p

What to intercept for an OS closing of a stack to lock messages

2012-10-05 Thread Dr. Hawkins
I find that, even knowing better, I tend to close my output stack with the OS controls (red button on Mac). It seems that messages are being processed; it takes, at best, several seconds. I've tried intercepting closeStack and destroyStack, with no luck. What can I do to lock messages when this h

Re: Entire sqlite database wiped of data??

2012-10-05 Thread Dr. Hawkins
On Fri, Oct 5, 2012 at 1:26 PM, Bob Sneidar wrote: > Hmmm... my professional IT opinion is, the file became damaged somehow. > Certainly not unheard of in the SQL world! Thanks. My inclination is the same--every other explanation seems highly improbable, and then some . . . -- Richard E. Hawk

Re: Entire sqlite database wiped of data??

2012-10-05 Thread Bob Sneidar
Hmmm... my professional IT opinion is, the file became damaged somehow. Certainly not unheard of in the SQL world! Bob On Oct 5, 2012, at 12:59 PM, Dr. Hawkins wrote: > On Thu, Oct 4, 2012 at 8:43 AM, Bob Sneidar wrote: >> Richard, barring anything your app could have done to wipe the data,

Re: Creating files/folders

2012-10-05 Thread Peter Haworth
Sorry I should have been more specific. The result just says something like "Can't create file" or some such generic message - I'm looking for something more specific as to why it couldn't be created. Pete lcSQL Software On Fri, Oct 5, 2012 at 1:02 PM, Dr. Hawkins wrote:

Re: Re : Suggestion for improved LiveCode scripting notation

2012-10-05 Thread Bob Sneidar
ROQUEFORT!!! On Oct 5, 2012, at 12:44 PM, Francis Nugent Dixon wrote: > No two minds think alike (Thank the man up there !) ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your sub

Re: Re : Suggestion for improved LiveCode scripting notation

2012-10-05 Thread Bob Sneidar
CHEESE! On Oct 5, 2012, at 12:44 PM, Francis Nugent Dixon wrote: > 2 - Are you going to come back to your scripts >next year, and mutter "Who wrote this shit ?) ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to s

Re: [OT] Girls Don't Code??

2012-10-05 Thread Dr. Hawkins
On Fri, Oct 5, 2012 at 10:44 AM, Devin Asay wrote: > Our first two kids were boys. My wife and I, all full of high-minded book > learnin', were all determined that we wouldn't force "gender >roles" on our first child. So we got him both dolls and trucks to play with. >Guess what? He played with

Re: Creating files/folders

2012-10-05 Thread Dr. Hawkins
On Fri, Oct 5, 2012 at 12:56 PM, Peter Haworth wrote: > If I "open file " for write" and the file doesn't exist LC > creates it. But what happens if an error occurs? For example, the file > path includes a folder that doesn't exist, or permissions don't allow the > file to be created. I know the

Re: Entire sqlite database wiped of data??

2012-10-05 Thread Dr. Hawkins
On Thu, Oct 4, 2012 at 8:43 AM, Bob Sneidar wrote: > Richard, barring anything your app could have done to wipe the data, and > barring a damaged database file (a possibility if the >physical media took a hit) there is only one thing left. Someone hacked into >your database and altered the data.

Re: Re : Suggestion for improved LiveCode scripting notation

2012-10-05 Thread Peter Haworth
How about next week :-)!!! I don't think anyone is trying to impose any standards, just gathering ideas on how people tackle the issue. Pete lcSQL Software On Fri, Oct 5, 2012 at 12:44 PM, Francis Nugent Dixon wrote: > 2 - Are you going to come back to your scripts >

Creating files/folders

2012-10-05 Thread Peter Haworth
If I "open file " for write" and the file doesn't exist LC creates it. But what happens if an error occurs? For example, the file path includes a folder that doesn't exist, or permissions don't allow the file to be created. I know the file doesn't get created but how do I check for an error? Sim

Re : Suggestion for improved LiveCode scripting notation

2012-10-05 Thread Francis Nugent Dixon
Hi from Beautiful Brittany, I think we have been round this subject several times. 1 - As anybody going to look at your scripts ? (chances are already vastly reduced !) 2 - Are you going to come back to your scripts next year, and mutter "Who wrote this shit ?) 3 - As a principle, do you

Re: android splash-screen image

2012-10-05 Thread Pierre Sahores
Wouaw ! Seems so simple after getting your game roles ;D Should always read closely the subject before coding ! Thanks friends, Pierre Le 5 oct. 2012 à 20:50, Ralph DiMola a écrit : > Pierre, > > There is no splash screen for the licensed Android build. There have been 2 > techniques that hav

Re: [OT] Girls Don't Code??

2012-10-05 Thread Colin Holgate
That was last week, wasn't it? On Oct 5, 2012, at 2:56 PM, Charles E Buchwald wrote: > >I remember knitting a scarf for my GI Joe. I'm just sayin'. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubs

Re: [OT] Girls Don't Code??

2012-10-05 Thread Charles E Buchwald
On 2012-10-05, at 12:58 PM, J. Landman Gay wrote: > I think some of it is genetic tendencies, some of it is culture, and some of > it is upbringing. If you could remove the cultural and child rearing biases, > the natural tendencies would win out, and I think those may be more evenly > balance

RE: android splash-screen image

2012-10-05 Thread Ralph DiMola
Pierre, There is no splash screen for the licensed Android build. There have been 2 techniques that have been offered on this list. 1) Dual Stack==>Have a start up stack that shows a Splash card. Then start up the "real" stack with all initializing stuff that would have delayed the first card fro

Re: android splash-screen image

2012-10-05 Thread Colin Holgate
I have wondered about that splash image. Android apps don't have a splash image system like on iOS, so I assumed that LC inserts that image after the stack is opened but before it's fully loaded. If it loads quickly then I'm not sure if you would see the splash image, unless you had the same ima

android splash-screen image

2012-10-05 Thread Pierre Sahores
Hi there, I'm missing something : i can't get my Android build to load the splash screen image i selected in the standalone application setting screen !? Works fine on the iOS side but nada on the Android side ;-( Any help will be greatly welcome ;D Thanks, Pierre -- Pierre Sahores mobile :

Re: [OT] Girls Don't Code??

2012-10-05 Thread Phil Davis
Here is a Kickstarter project that dovetails nicely with this discussion: http://www.kickstarter.com/projects/16029337/goldieblox-the-engineering-toy-for-girls As I see it, LC is to conventional software dev as GoldieBlox is to the world of Legos and such. LC removes some of the reasons why more

Re: SUggestion for improved LiveCode scripting notation

2012-10-05 Thread Peter Haworth
Thanks Jacque, didn't know about the right click options. Pete lcSQL Software On Fri, Oct 5, 2012 at 10:24 AM, J. Landman Gay wrote: > Right-click the handler name in the script, choose "Go to definition" in > the contextual menu. _

Re: SUggestion for improved LiveCode scripting notation

2012-10-05 Thread Peter Haworth
That's a great idea! I've used comments to divide up handlers of different types but that, of course, doesn't show up in the list of scripts. Pete lcSQL Software On Fri, Oct 5, 2012 at 10:32 AM, Charles E Buchwald wrote: > I don't use GLX2 so I can't do grouping like tha

Re: SUggestion for improved LiveCode scripting notation

2012-10-05 Thread Mike Bonner
In this case that makes no difference. If the function is being defined, its yours, since functions are not events/messages. On Fri, Oct 5, 2012 at 12:27 PM, Peter Haworth wrote: > Yes, I do that too but unfortunately there's no alternative to "function". > Pete > lcSQL Software

Re: SUggestion for improved LiveCode scripting notation

2012-10-05 Thread Peter Haworth
Yes, I do that too but unfortunately there's no alternative to "function". Pete lcSQL Software On Fri, Oct 5, 2012 at 9:50 AM, Mike Bonner wrote: > While not the same thing as you are talking about, when I write scripts I > use the "on" form for lc commands and handlers

Re: [ANN] Free 'Clearview' desktop clock v1.1 update

2012-10-05 Thread Bob Sneidar
Yeah the splash about screen somehow got layered behind another window. Too many clicks. I should have known. Works for me now too. Bob On Oct 5, 2012, at 10:04 AM, Shawn Blc wrote: > Works great on my Retina 15" MBP (version 1.1) It'd be nice if 1) it > started when I rebooted and 2) it rem

Re: [OT] Girls Don't Code??

2012-10-05 Thread J. Landman Gay
On 10/5/12 12:44 PM, Devin Asay wrote: On Oct 5, 2012, at 11:04 AM, Bob Sneidar wrote: I think it is more a question of tendencies than abilities. Our first two kids were boys. My wife and I, all full of high-minded book learnin', were all determined that we wouldn't force "gender roles"

Re: [OT] Girls Don't Code??

2012-10-05 Thread Devin Asay
On Oct 5, 2012, at 11:04 AM, Bob Sneidar wrote: > I think it is more a question of tendencies than abilities. Our first two kids were boys. My wife and I, all full of high-minded book learnin', were all determined that we wouldn't force "gender roles" on our first child. So we got him bot

Re: SUggestion for improved LiveCode scripting notation

2012-10-05 Thread Klaus on-rev
Am 05.10.2012 um 19:32 schrieb Charles E Buchwald : >> On Oct 5, 2012, at 9:50 AM, Mike Bonner wrote: >> >>> While not the same thing as you are talking about, when I write scripts I >>> use the "on" form for lc commands and handlers and any that are created >>> soley by me I use the "command" f

Re: SUggestion for improved LiveCode scripting notation

2012-10-05 Thread Charles E Buchwald
> On Oct 5, 2012, at 9:50 AM, Mike Bonner wrote: > >> While not the same thing as you are talking about, when I write scripts I >> use the "on" form for lc commands and handlers and any that are created >> soley by me I use the "command" form. This way it only takes a glance to >> know which are

Re: SUggestion for improved LiveCode scripting notation

2012-10-05 Thread J. Landman Gay
On 10/5/12 11:47 AM, Peter Haworth wrote: This is something I've thought about too. Even for my own use, coming back to code I haven't looked at for some time, it's sometimes hard to remember where a handler is located. Right-click the handler name in the script, choose "Go to definition" in

Re: [ANN] Free 'Clearview' desktop clock v1.1 update

2012-10-05 Thread FlexibleLearning.com
Bob, Is the modal 'About' window displayed? Close it first. Hugh Senior FLCo > Date: Fri, 5 Oct 2012 09:44:08 -0700 > From: Bob Sneidar > To: How to use LiveCode > Subject: Re: [ANN] Free 'Clearview' desktop clock v1.1 update > Message-ID: > Content-Type: text/plain; charset=us-ascii > > P

Re: SUggestion for improved LiveCode scripting notation

2012-10-05 Thread Bob Sneidar
I group them. I use GLX2, which has a feature that allows you to create categories of commands and functions by entering --> and some text in the script of an object. Everything that comes after that and before the next declaration gets grouped into it's own "folder" in the left pane. I believe

Re: [ANN] Free 'Clearview' desktop clock v1.1 update

2012-10-05 Thread Shawn Blc
Works great on my Retina 15" MBP (version 1.1) It'd be nice if 1) it started when I rebooted and 2) it remembered the location where I last put it. Other than that it's FANTASTIC! Thank you. On Fri, Oct 5, 2012 at 11:44 AM, Bob Sneidar wrote: > Problems. Now none of the controls work, and

[OT] Girls Don't Code??

2012-10-05 Thread Bob Sneidar
In response to the recent LC Journal article about girls and coding, I would like to say that propose there are 3 possible reasons that girls don't code is like asking someone what kind of vegetable they prefer: Peas or Carrots. There is at least one more possibility I might add to the list: Gir

Re: SUggestion for improved LiveCode scripting notation

2012-10-05 Thread Mike Bonner
While not the same thing as you are talking about, when I write scripts I use the "on" form for lc commands and handlers and any that are created soley by me I use the "command" form. This way it only takes a glance to know which are mine and which are built in. On Fri, Oct 5, 2012 at 10:47 AM, P

Re: SUggestion for improved LiveCode scripting notation

2012-10-05 Thread Peter Haworth
This is something I've thought about too. Even for my own use, coming back to code I haven't looked at for some time, it's sometimes hard to remember where a handler is located. As part of the docs for my code, I have a script that goes through all the scripts in a stack file, lists every handler

Re: [ANN] Free 'Clearview' desktop clock v1.1 update

2012-10-05 Thread Bob Sneidar
Problems. Now none of the controls work, and I cannot move the window. System just beeps when I try. On Oct 5, 2012, at 9:38 AM, FlexibleLearning.com wrote: > Thank you for the kind comments. > > New: Added a collapse/expand toggle. Useful when space is needed (as I am > now finding out)... >

[ANN] Free 'Clearview' desktop clock v1.1 update

2012-10-05 Thread FlexibleLearning.com
Thank you for the kind comments. New: Added a collapse/expand toggle. Useful when space is needed (as I am now finding out)... Download at www.FlexibleLearning.com/freeclock Hugh Senior FLCo -- Original messages On Thu, 4 Oct 2012 at 10:56 PM, Pierre Sahores wrote: Hi Hugh ! Look really ni

SUggestion for improved LiveCode scripting notation

2012-10-05 Thread stgoldb...@aol.com
Reading someone's LiveCode scripting has been improved by adding the prefix "t" (for temporary) to the notation for a local variable and "g" for a global variable. With the increase in the number of scripting words, it also has helped to use the prefixes "mobile", "iphone", "android", and "

[ANN] Midi external for MacOsX

2012-10-05 Thread Thierry Douez
Hi everyone, Special offer at http://sunny-tdz.com in October. sunnYmidi v2.0,a Midi external for MacOsX is available! sunnYmidi-lite (previously sunnYmidi v1.0) is also available! Right now you can download a full working Livecode tutorial with a trial version of sunnYmidi at: http://sunny-

Re: Finally found one.

2012-10-05 Thread Mark Talluto
On Oct 3, 2012, at 8:47 AM, Mark Wieder wrote: > John- > > Tuesday, October 2, 2012, 11:12:58 PM, you wrote: > >> Pressing the stop button just makes another call to the handler, it >> doesn't cancel the scheduled message - it's still there and will still fire. > > The problem, as I see it, is

Re: relation between textsize and field height?

2012-10-05 Thread Dr. Hawkins
On Friday, October 5, 2012, Tiemo Hollmann TB wrote: > By making some statistics, I found a factor: field height = 1.9 * textsize. > But this is just trial and error. Is there any "standard layout factor"? For multi-line fields, I'm using the formmattedTextHeight. You may or may not find that y

AW: relation between textsize and field height?

2012-10-05 Thread Tiemo Hollmann TB
Thanks for the link Mark > -Ursprüngliche Nachricht- > Von: use-livecode-boun...@lists.runrev.com [mailto:use-livecode- > boun...@lists.runrev.com] Im Auftrag von Mark Schonewille > Gesendet: Freitag, 5. Oktober 2012 14:14 > An: How to use LiveCode > Betreff: Re: relation between textsize

AW: relation between textsize and field height?

2012-10-05 Thread Tiemo Hollmann TB
By making some statistics, I found a factor: field height = 1.9 * textsize. But this is just trial and error. Is there any "standard layout factor"? Tiemo > -Ursprüngliche Nachricht- > Von: use-livecode-boun...@lists.runrev.com [mailto:use-livecode- > boun...@lists.runrev.com] Im Auftrag v

Re: relation between textsize and field height?

2012-10-05 Thread Mark Schonewille
Hi Tiemo, There was a discussion about it on the forum. Look here: http://qery.us/2ll -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Use Color Converter to conver

relation between textsize and field height?

2012-10-05 Thread Tiemo Hollmann TB
Hi, I want to let the user change the textsize of single line fields. Now I am looking for a formula for calculating the ideal field height, so that the text sits centered in the height of the field. The perfect height of the field is neither (at least not for all options) the formatted height, no

Re: [ANN] Free 'Clearview' desktop clock

2012-10-05 Thread Pierre Sahores
Bob, God to hear ! Have to add that i still own a good collection of pre-intel Apple boxes still able to run like charms (PWB 140/160, 5300, G3 15 inches, G4 13 inches, MacMini G4,...) and that my concerns began with intel MBP 15 inches dualcore. All went a kind of AppleCare + protected, so i g

Re: bring LC to front after a launch command

2012-10-05 Thread René Micout
Le 5 oct. 2012 à 09:14, Thierry Douez a écrit : > Hi everyone, > > 2012/9/28 Thierry Douez : > >> set the systemWindow of stack... > > > For the record, this solution finally doesn't work in my case. > > As I want to launch an app in the background from a modeless > stack in LC IDE, the sys

Re: bring LC to front after a launch command

2012-10-05 Thread Thierry Douez
Hi everyone, 2012/9/28 Thierry Douez : > set the systemWindow of stack... For the record, this solution finally doesn't work in my case. As I want to launch an app in the background from a modeless stack in LC IDE, the systemWindow property is too restrictive. It hides the LC menus, all the a