From jaguayo at telur.es Tue Mar 1 03:11:06 2011 From: jaguayo at telur.es (Joseba Aguayo) Date: Tue, 1 Mar 2011 09:11:06 +0100 Subject: Rev player for Windows 7??? Message-ID: <199998C0-804F-44F3-938D-6669B6F411D1@telur.es> Finally my stack run OK in windows 7 (with Revolution Player) But run slooooooowly when save datas. The stack have 3,8Mb and for save datas in about 10-15 seconds. Is this normal? In Windows XP or Mac save datas in 1-2 seconds. Un saludo. Joseba Aguayo Fern?ndez (jaguayo at telur.es) From keith.clarke at clarkeandclarke.co.uk Tue Mar 1 03:59:12 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Tue, 1 Mar 2011 08:59:12 +0000 Subject: Number/Currenct formatting by locale In-Reply-To: References: <07E886CD-7DBF-4A75-85FF-C72ECC93C2D3@mollysrevenge.com> <4D6C3C1C.1000709@comcast.net> <91A79131-9855-4DC6-9D70-724E3615FF29@twft.com> <4751EC78-0269-47F3-A212-8BA6A863858D@mollysrevenge.com> Message-ID: <7DE01EBC-8491-47FD-9165-FB7F442644A5@clarkeandclarke.co.uk> Bob, Just a couple of thoughts - I don't know what you're trying to achieve with your app, but are you sure you even want to have such settings to follow the user's machine/OS settings automatically? From my experience with multi-locale/currency/language software products - ERP, CRM, etc - localisation settings tend to be associated with entities (including, of course, the user entity!) rather than bubble-up from the environment in which the app is being accessed. For example, if I log into Salesforce.com from an internet cafe, whilst on holiday in the Maldives (some hope!), I still want my reports to follow my personal user-based preference for locale, rather than the machine I happen to be using or its IP address. Also, multi-currency apps tend to have a limited number of supported currencies so that exchange rates can be managed. Ignore all this if it's outside the scope of your current considerations. Best, Keith.. On 1 Mar 2011, at 01:35, Bob Sneidar wrote: > Oh nvm I just read the whole thing didn't try LC > > Bob > > On Feb 28, 2011, at 5:12 PM, Peter Haworth wrote: > >> The decimal point is there but the thousands sep and grouping info is wrong. Similar corruption occurs for the LC_MONETARY info. >> >> Is Shell broken? >> >> >> Pete Haworth > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From tkuypers at telenet.be Tue Mar 1 04:04:29 2011 From: tkuypers at telenet.be (tkuypers at telenet.be) Date: Tue, 1 Mar 2011 10:04:29 +0100 Subject: using mySQL on a web-based server In-Reply-To: <1298948257017-3329158.post@n4.nabble.com> References: <4BF53F5E-F701-4D9F-BBFF-C0578866D033@telenet.be> <1298948257017-3329158.post@n4.nabble.com> Message-ID: Hi Andrew, Could you tell me a little more about that... I know what revIgniter does, but how do you start "building webservices"? Met vriendelijke groeten, Ton Kuypers On 1-mrt-2011, at 03:57, Andrew Kluthe wrote: > Also, revIgniter has made it very easy for me to quickly build webservices > that hand data to my livecode app. > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/using-mySQL-on-a-web-based-server-tp3328963p3329158.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gerry.orkin at gmail.com Tue Mar 1 04:51:17 2011 From: gerry.orkin at gmail.com (Gerry) Date: Tue, 1 Mar 2011 20:51:17 +1100 Subject: What's the best way to do objects? Message-ID: <89D255EC21BF4F3689799378DDFF88F2@gmail.com> Years ago I used to use Macromedia Director, and got to be pretty good at programming objects (the kind that operated independently once they were birthed...sort of OOP). What's the best way of doing that sort of thing in LiveCode? Cheers Gerry -- photo site: http://gerryorkin.com From sarah.reichelt at gmail.com Tue Mar 1 05:14:55 2011 From: sarah.reichelt at gmail.com (Sarah Reichelt) Date: Tue, 1 Mar 2011 20:14:55 +1000 Subject: Script to format a currency value In-Reply-To: References: Message-ID: On Tue, Mar 1, 2011 at 2:55 PM, Peter Haworth wrote: > OK, here's an amusing exercise in scripting for you experts out there, but I'm giving away a prize! ?I will give the person who provides the best solution a copy of my band's latest CD, Aged 10 years. ?the definition of "best" is strictly my opinion! ?If you don;t like traditional Celtic music (including bagpipes), we;ll just do the script for the fun of it and sell the CD on eBay!!! > > You have an integer value that needs to be formatted into a currency value. ?It is stored as a positive or negative binary value no matter how many decimal places it has (eg 10000 = $100.00). You have the following formatting characters to deal with: Sounds like a fun challenge Pete, but this bit has me confused. You say the numbers are stored as binary, but I don't see how 10000 binary gets to $100.00 10000 binary = 16 decimal So I am assuming that it isn't actually binary, just the currency to 2 decimal places, only without the decimal point. Also, can you provide some test cases showing what you want to get back for a given set of parameters? Cheers, Sarah From andrew at rjdfarm.com Tue Mar 1 09:02:26 2011 From: andrew at rjdfarm.com (Andrew Kluthe) Date: Tue, 1 Mar 2011 06:02:26 -0800 (PST) Subject: using mySQL on a web-based server In-Reply-To: References: <4BF53F5E-F701-4D9F-BBFF-C0578866D033@telenet.be> <1298948257017-3329158.post@n4.nabble.com> Message-ID: <1298988146612-3329891.post@n4.nabble.com> I make a nice little controller that accepts the an encrypted email and password as post and returns the information being desired from the controller in an encrypted string that contains the results (encrypted with a different key for transactions back to my client). revIgniters ActiveRecord database handlers make it pretty easy to pull data from the local db. It has built in security features to cleanse post variables of nasties, etc. Then I just build the text string carefully in JSON format and encrypt it out. Does this help at all? -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/using-mySQL-on-a-web-based-server-tp3328963p3329891.html Sent from the Revolution - User mailing list archive at Nabble.com. From mcgrath3 at mac.com Tue Mar 1 09:27:30 2011 From: mcgrath3 at mac.com (Thomas McGrath III) Date: Tue, 01 Mar 2011 09:27:30 -0500 Subject: What's the best way to do objects? In-Reply-To: <89D255EC21BF4F3689799378DDFF88F2@gmail.com> References: <89D255EC21BF4F3689799378DDFF88F2@gmail.com> Message-ID: behaviors + groups = widgets -- Tom McGrath III http://lazyriver.on-rev.com 3mcgrath at comcast.net On Mar 1, 2011, at 4:51 AM, Gerry wrote: > Years ago I used to use Macromedia Director, and got to be pretty good at programming objects (the kind that operated independently once they were birthed...sort of OOP). > > What's the best way of doing that sort of thing in LiveCode? > > Cheers > > Gerry > > > > -- photo site: http://gerryorkin.com > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From coiin at verizon.net Tue Mar 1 10:11:18 2011 From: coiin at verizon.net (Colin Holgate) Date: Tue, 01 Mar 2011 10:11:18 -0500 Subject: What's the best way to do objects? In-Reply-To: References: <89D255EC21BF4F3689799378DDFF88F2@gmail.com> Message-ID: <7BADBC40-DE89-45BD-98A5-17EF08797E92@verizon.net> On Mar 1, 2011, at 9:27 AM, Thomas McGrath III wrote: > behaviors + groups = widgets That is a bit different to objects. An object might look more like this: var myobj:MyObj = new MyObj(); myobj.doSomethingSpecial(); You could I suppose have a new thing on the card that you set the script of, and then send messages to that object. Like: on mouseUp new Button set the name of button the number of buttons to "myobj" set the script of button myobj to field "my script" send dosomethingspecial to button myobj end mouseUp and field "my script" would contain: on dosomethingspecial put "hello world" end dosomethingspecial From bvg at mac.com Tue Mar 1 10:34:00 2011 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Tue, 01 Mar 2011 16:34:00 +0100 Subject: What's the best way to do objects? In-Reply-To: <7BADBC40-DE89-45BD-98A5-17EF08797E92@verizon.net> References: <89D255EC21BF4F3689799378DDFF88F2@gmail.com> <7BADBC40-DE89-45BD-98A5-17EF08797E92@verizon.net> Message-ID: <25EA93EC-3BB5-4247-9BB0-64D519529434@mac.com> On 1 Mar 2011, at 16:11, Colin Holgate wrote: > on mouseUp > new Button > set the name of button the number of buttons to "myobj" > --set the script of button myobj to field "my script" set the behaviour of button "myobj" to the long id of button "my script" > send dosomethingspecial to button "myobj" > end mouseUp Ok you can't use a field, but beyond that? totally working? But I just don't see any advantage in that. Instead, use the message path, and you'l be much more easily able to do things in the flow it's intended to be in. Asking for orientational objects does not actually give you more ease of use, but increases complexity. For example, behaviours are akward and hard to figure out where what is to edit and adjust. They're also single use, you can't have several of different ones per object. Using the message path however is very natural, so instead of the above case: on mouseUp doSomethingSpecial end mouseUp where in the card/stack/group/library script you have the handler: on dosomethingspecial put "hello world" end dosomethingspecial -- official ChatRev page: http://bjoernke.com?target=chatrev Chat with other RunRev developers: go stack URL "http://bjoernke.com/chatrev/chatrev1.3b3.rev" From bvg at mac.com Tue Mar 1 11:58:00 2011 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Tue, 01 Mar 2011 17:58:00 +0100 Subject: Livecode code event invitation Message-ID: Hello I am currently searching for presenters for the live livecode code event, this week or any week later on. Please mail me off list if you're interested. currently underrepresented topics: - super basic stuff like what is a field why should i care, neat tricks with basic properties - custom property and array intro - general intros to basic or intermeidate LC - slightly advanced stuff (but not uber-geek complex), like datagrid, basic revbrowsr, revxml encryption, etc. - iOS (anything) - Server - Web plugin - your product (yes it's missing!) - your favourite topic (you know that one thing you're so passionate about) Please mail me off list if you're interested. Cheers Bj?rnke -- official ChatRev page: http://bjoernke.com?target=chatrev Chat with other RunRev developers: go stack URL "http://bjoernke.com/chatrev/chatrev1.3b3.rev" From bobs at twft.com Tue Mar 1 12:09:21 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 1 Mar 2011 09:09:21 -0800 Subject: Number/Currenct formatting by locale In-Reply-To: <7DE01EBC-8491-47FD-9165-FB7F442644A5@clarkeandclarke.co.uk> References: <07E886CD-7DBF-4A75-85FF-C72ECC93C2D3@mollysrevenge.com> <4D6C3C1C.1000709@comcast.net> <91A79131-9855-4DC6-9D70-724E3615FF29@twft.com> <4751EC78-0269-47F3-A212-8BA6A863858D@mollysrevenge.com> <7DE01EBC-8491-47FD-9165-FB7F442644A5@clarkeandclarke.co.uk> Message-ID: Not me, Peter. Bob On Mar 1, 2011, at 12:59 AM, Keith Clarke wrote: > Bob, > Just a couple of thoughts - I don't know what you're trying to achieve with your app, but are you sure you even want to have such settings to follow the user's machine/OS settings automatically? From bobs at twft.com Tue Mar 1 12:11:07 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 1 Mar 2011 09:11:07 -0800 Subject: Script to format a currency value In-Reply-To: References: Message-ID: Oh hell, I will just buy that outright! I love Celtic music and used to play in a marching bagpipe band. And yes, I wore a kilt! I looked good in it too. Bob On Feb 28, 2011, at 8:55 PM, Peter Haworth wrote: > OK, here's an amusing exercise in scripting for you experts out there, but I'm giving away a prize! I will give the person who provides the best solution a copy of my band's latest CD, Aged 10 years. the definition of "best" is strictly my opinion! If you don;t like traditional Celtic music (including bagpipes), we;ll just do the script for the fun of it and sell the CD on eBay!!! From pete at mollysrevenge.com Tue Mar 1 12:11:11 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 1 Mar 2011 09:11:11 -0800 Subject: Number/Currenct formatting by locale In-Reply-To: <7DE01EBC-8491-47FD-9165-FB7F442644A5@clarkeandclarke.co.uk> References: <07E886CD-7DBF-4A75-85FF-C72ECC93C2D3@mollysrevenge.com> <4D6C3C1C.1000709@comcast.net> <91A79131-9855-4DC6-9D70-724E3615FF29@twft.com> <4751EC78-0269-47F3-A212-8BA6A863858D@mollysrevenge.com> <7DE01EBC-8491-47FD-9165-FB7F442644A5@clarkeandclarke.co.uk> Message-ID: <768A1943-8BEC-4967-843E-FE20BD0DCC0A@mollysrevenge.com> Hi Keith, Actually, it's me who is trying to implement this not Bob. You raise some good points though. My first question is why on earth would you be running Salesforce when you're on holiday in the Maldives :-) My thoughts are that are that the first time you run my application, it will gather the OS preferences and store them as it's private preferences which the user can change if needed. So in your example, assuming you first run the app on a computer that has it's preferences set to wherever you live, my app would store those preferences locally. Then when you're in the Maldives, it will still use it's private preferences rather than the ones on the computer you are on, unless, of course, you needed to change them because you decided to move to the Maldives permanently :-) In my related post, I'm looking for a script to format currency according to the info in the OS preferences since I'd probably store that data within my app in that form. Pete Haworth On Mar 1, 2011, at 12:59 AM, Keith Clarke wrote: > Bob, > Just a couple of thoughts - I don't know what you're trying to achieve with your app, but are you sure you even want to have such settings to follow the user's machine/OS settings automatically? > > From my experience with multi-locale/currency/language software products - ERP, CRM, etc - localisation settings tend to be associated with entities (including, of course, the user entity!) rather than bubble-up from the environment in which the app is being accessed. For example, if I log into Salesforce.com from an internet cafe, whilst on holiday in the Maldives (some hope!), I still want my reports to follow my personal user-based preference for locale, rather than the machine I happen to be using or its IP address. > > Also, multi-currency apps tend to have a limited number of supported currencies so that exchange rates can be managed. > > Ignore all this if it's outside the scope of your current considerations. > Best, > Keith.. > > On 1 Mar 2011, at 01:35, Bob Sneidar wrote: > >> Oh nvm I just read the whole thing didn't try LC >> >> Bob >> >> On Feb 28, 2011, at 5:12 PM, Peter Haworth wrote: >> >>> The decimal point is there but the thousands sep and grouping info is wrong. Similar corruption occurs for the LC_MONETARY info. >>> >>> Is Shell broken? >>> >>> >>> Pete Haworth >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at mollysrevenge.com Tue Mar 1 12:16:56 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 1 Mar 2011 09:16:56 -0800 Subject: Script to format a currency value In-Reply-To: References: Message-ID: <11800F97-6879-486F-A90A-76DC20C41C0A@mollysrevenge.com> Hi Sarah, Sorry for the confusion, bad terminology! You're right when you say it's just the currency value stored without the decimal point (although the number of implied decimal points is part of the formatting spec, not fixed at 2). I'll come up with some test cases today and send them in a separate email. Pete Haworth On Mar 1, 2011, at 2:14 AM, Sarah Reichelt wrote: > On Tue, Mar 1, 2011 at 2:55 PM, Peter Haworth wrote: >> OK, here's an amusing exercise in scripting for you experts out there, but I'm giving away a prize! I will give the person who provides the best solution a copy of my band's latest CD, Aged 10 years. the definition of "best" is strictly my opinion! If you don;t like traditional Celtic music (including bagpipes), we;ll just do the script for the fun of it and sell the CD on eBay!!! >> >> You have an integer value that needs to be formatted into a currency value. It is stored as a positive or negative binary value no matter how many decimal places it has (eg 10000 = $100.00). You have the following formatting characters to deal with: > > > Sounds like a fun challenge Pete, but this bit has me confused. > You say the numbers are stored as binary, but I don't see how 10000 > binary gets to $100.00 > 10000 binary = 16 decimal > So I am assuming that it isn't actually binary, just the currency to 2 > decimal places, only without the decimal point. > > Also, can you provide some test cases showing what you want to get > back for a given set of parameters? > > Cheers, > Sarah > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at mollysrevenge.com Tue Mar 1 12:19:05 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 1 Mar 2011 09:19:05 -0800 Subject: Script to format a currency value In-Reply-To: References: Message-ID: Pictures please! Pete Haworth On Mar 1, 2011, at 9:11 AM, Bob Sneidar wrote: > Oh hell, I will just buy that outright! I love Celtic music and used to play in a marching bagpipe band. And yes, I wore a kilt! I looked good in it too. > > Bob > > > On Feb 28, 2011, at 8:55 PM, Peter Haworth wrote: > >> OK, here's an amusing exercise in scripting for you experts out there, but I'm giving away a prize! I will give the person who provides the best solution a copy of my band's latest CD, Aged 10 years. the definition of "best" is strictly my opinion! If you don;t like traditional Celtic music (including bagpipes), we;ll just do the script for the fun of it and sell the CD on eBay!!! > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From form at nonsanity.com Tue Mar 1 12:19:45 2011 From: form at nonsanity.com (Nonsanity) Date: Tue, 1 Mar 2011 12:19:45 -0500 Subject: What's the best way to do objects? In-Reply-To: <89D255EC21BF4F3689799378DDFF88F2@gmail.com> References: <89D255EC21BF4F3689799378DDFF88F2@gmail.com> Message-ID: In LC, buttons and fields are objects with "methods" (functions and commands) and "member variables" (custom properties) and so are groups. It's possible to create an empty group under script control ("create group" "set name of last group to myName") and set its behavior to a previously arranged object, another empty group or something more easily accessible elsewhere. This gets you invisible objects with common code and instance-specific data. You could use hidden buttons or other objects just as well. But really, except for when you really need "physical" objects like buttons or cards, the OO paradigm isn't necessarily the best solution for all problems. I've NEVER used this sort of behind-the-scenes OO code myself. I'm happy to keep my collections of data in stack-based custom properties or property sets, and keep the code to manipulate them in some central place - usually the stack script. I can end up with huge stack scripts this way, which I know bothers some people. They prefer to split the code up into different locations, but I find dragging a scrollbar a faster way to get from section to section than jumping to different single-use library stacks or other cards, etc. But to each their own... :) ~ Chris Innanen ~ Nonsanity On Tue, Mar 1, 2011 at 4:51 AM, Gerry wrote: > Years ago I used to use Macromedia Director, and got to be pretty good at > programming objects (the kind that operated independently once they were > birthed...sort of OOP). > > What's the best way of doing that sort of thing in LiveCode? > > Cheers > > Gerry > > > > -- photo site: http://gerryorkin.com > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From coiin at verizon.net Tue Mar 1 12:49:53 2011 From: coiin at verizon.net (Colin Holgate) Date: Tue, 01 Mar 2011 12:49:53 -0500 Subject: What's the best way to do objects? In-Reply-To: <25EA93EC-3BB5-4247-9BB0-64D519529434@mac.com> References: <89D255EC21BF4F3689799378DDFF88F2@gmail.com> <7BADBC40-DE89-45BD-98A5-17EF08797E92@verizon.net> <25EA93EC-3BB5-4247-9BB0-64D519529434@mac.com> Message-ID: On Mar 1, 2011, at 10:34 AM, Bj?rnke von Gierke wrote: > > Ok you can't use a field, but beyond that? totally working? It works with a button, and the plan would be to set the button to be invisible. It's just a container for handlers, and if it's self sufficient code it would be a bit like an encapsulated object. I've always like the physical object way that HyperCard, Director, LC, and even Flash can work, but in the world of "real" programming, it's often a requirement of the job to do things in an OOP way, regardless of whether there is any value in doing that. In the Flash world a lot of people didn't jump on ActionScript 3 right away because they were convinced that you could only use it as OOP, and going from applying non-OOP scripts onto physical objects, to all external OOP code attached to nothing, was too abstract for them to deal with. I knew better though, and managed to do some very neat AS3 things just using non-OOP timeline code. Later I had to get the hang of the OOP way too, when doing a job where the client demanded that the code be done that way. From keith.clarke at clarkeandclarke.co.uk Tue Mar 1 12:50:56 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Tue, 1 Mar 2011 17:50:56 +0000 Subject: Number/Currenct formatting by locale In-Reply-To: <768A1943-8BEC-4967-843E-FE20BD0DCC0A@mollysrevenge.com> References: <07E886CD-7DBF-4A75-85FF-C72ECC93C2D3@mollysrevenge.com> <4D6C3C1C.1000709@comcast.net> <91A79131-9855-4DC6-9D70-724E3615FF29@twft.com> <4751EC78-0269-47F3-A212-8BA6A863858D@mollysrevenge.com> <7DE01EBC-8491-47FD-9165-FB7F442644A5@clarkeandclarke.co.uk> <768A1943-8BEC-4967-843E-FE20BD0DCC0A@mollysrevenge.com> Message-ID: Peter (sorry, Bob!), I guess I spend too much time using web apps on multiple platforms - I forget that with desktop client-server, you tend to move the client with you! Still, with net-aware client-server, you might still want the local to be a virtual user setting across (for instance) work PC, home Mac, iPad etc. I do get what you mean about the first run, but if that convenience means loads of coding for platform-specific interrogation, I think I'd use the indolence plugin - that is, give the user a preferences dialogue box! Oh - and the reason I'd be checking Salesforce from holiday is to check whether I can stay for another month or have to come back and do some work - in my dreams that is! Best, Keith.. On 1 Mar 2011, at 17:11, Peter Haworth wrote: > Hi Keith, > Actually, it's me who is trying to implement this not Bob. You raise some good points though. My first question is why on earth would you be running Salesforce when you're on holiday in the Maldives :-) > > My thoughts are that are that the first time you run my application, it will gather the OS preferences and store them as it's private preferences which the user can change if needed. So in your example, assuming you first run the app on a computer that has it's preferences set to wherever you live, my app would store those preferences locally. Then when you're in the Maldives, it will still use it's private preferences rather than the ones on the computer you are on, unless, of course, you needed to change them because you decided to move to the Maldives permanently :-) > > In my related post, I'm looking for a script to format currency according to the info in the OS preferences since I'd probably store that data within my app in that form. > > Pete Haworth > > On Mar 1, 2011, at 12:59 AM, Keith Clarke wrote: > >> Bob, >> Just a couple of thoughts - I don't know what you're trying to achieve with your app, but are you sure you even want to have such settings to follow the user's machine/OS settings automatically? >> >> From my experience with multi-locale/currency/language software products - ERP, CRM, etc - localisation settings tend to be associated with entities (including, of course, the user entity!) rather than bubble-up from the environment in which the app is being accessed. For example, if I log into Salesforce.com from an internet cafe, whilst on holiday in the Maldives (some hope!), I still want my reports to follow my personal user-based preference for locale, rather than the machine I happen to be using or its IP address. >> >> Also, multi-currency apps tend to have a limited number of supported currencies so that exchange rates can be managed. >> >> Ignore all this if it's outside the scope of your current considerations. >> Best, >> Keith.. >> >> On 1 Mar 2011, at 01:35, Bob Sneidar wrote: >> >>> Oh nvm I just read the whole thing didn't try LC >>> >>> Bob >>> >>> On Feb 28, 2011, at 5:12 PM, Peter Haworth wrote: >>> >>>> The decimal point is there but the thousands sep and grouping info is wrong. Similar corruption occurs for the LC_MONETARY info. >>>> >>>> Is Shell broken? >>>> >>>> >>>> Pete Haworth >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobs at twft.com Tue Mar 1 13:03:52 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 1 Mar 2011 10:03:52 -0800 Subject: What's the best way to do objects? In-Reply-To: References: <89D255EC21BF4F3689799378DDFF88F2@gmail.com> <7BADBC40-DE89-45BD-98A5-17EF08797E92@verizon.net> <25EA93EC-3BB5-4247-9BB0-64D519529434@mac.com> Message-ID: <586AEF97-CA75-4659-8B5F-F15B3F6540FD@twft.com> Years ago I tried to go from Procedural Foxpro to Visual Foxpro, and the methods were so different, I told myself that it would be easier to just start from scratch. Later I read articles on the subject, and that was pretty much the consensus for migrating from Procedural IDE's to OOP. Bob On Mar 1, 2011, at 9:49 AM, Colin Holgate wrote: > > On Mar 1, 2011, at 10:34 AM, Bj?rnke von Gierke wrote: > >> >> Ok you can't use a field, but beyond that? totally working? > > It works with a button, and the plan would be to set the button to be invisible. It's just a container for handlers, and if it's self sufficient code it would be a bit like an encapsulated object. > > I've always like the physical object way that HyperCard, Director, LC, and even Flash can work, but in the world of "real" programming, it's often a requirement of the job to do things in an OOP way, regardless of whether there is any value in doing that. In the Flash world a lot of people didn't jump on ActionScript 3 right away because they were convinced that you could only use it as OOP, and going from applying non-OOP scripts onto physical objects, to all external OOP code attached to nothing, was too abstract for them to deal with. I knew better though, and managed to do some very neat AS3 things just using non-OOP timeline code. Later I had to get the hang of the OOP way too, when doing a job where the client demanded that the code be done that way. > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ray at linkit.com Tue Mar 1 13:08:16 2011 From: ray at linkit.com (Ray Horsley) Date: Tue, 1 Mar 2011 13:08:16 -0500 Subject: Answer and Ask Dialogs Message-ID: <002a01cbd83b$a42e7810$ec8b6830$@LinkIt.Com> I know I should probably use a stack of my own for these but I've been using the 'answer' and 'ask' commands so long that it's become a daunting task to swap them all out for something else. Anyway, anybody know where these stacks reside so I can alter their appearance and other things like where they appear on screen when opened? Thanks, Ray Horsley LinkIt! Software From pete at mollysrevenge.com Tue Mar 1 13:11:01 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 1 Mar 2011 10:11:01 -0800 Subject: Number/Currenct formatting by locale In-Reply-To: References: <07E886CD-7DBF-4A75-85FF-C72ECC93C2D3@mollysrevenge.com> <4D6C3C1C.1000709@comcast.net> <91A79131-9855-4DC6-9D70-724E3615FF29@twft.com> <4751EC78-0269-47F3-A212-8BA6A863858D@mollysrevenge.com> <7DE01EBC-8491-47FD-9165-FB7F442644A5@clarkeandclarke.co.uk> <768A1943-8BEC-4967-843E-FE20BD0DCC0A@mollysrevenge.com> Message-ID: <5B9406B7-334A-42DD-9DFE-AF8B2180DC34@mollysrevenge.com> Yes, the situation is certainly different for web apps (mine's a desktop app). The coding is quite simple to get the OS preferences and store them. The hard part is the formatting code which has to be done no matter where I get the prefs from. LC makes it easy to deal with dates and times but, as far as I can tell, has no way to format numbers and currency values per user or OS preferences, so that's what is really behind this. If 'm wrong on that, someone please tell me! Pete Haworth On Mar 1, 2011, at 9:50 AM, Keith Clarke wrote: > Peter (sorry, Bob!), > I guess I spend too much time using web apps on multiple platforms - I forget that with desktop client-server, you tend to move the client with you! Still, with net-aware client-server, you might still want the local to be a virtual user setting across (for instance) work PC, home Mac, iPad etc. I do get what you mean about the first run, but if that convenience means loads of coding for platform-specific interrogation, I think I'd use the indolence plugin - that is, give the user a preferences dialogue box! > > Oh - and the reason I'd be checking Salesforce from holiday is to check whether I can stay for another month or have to come back and do some work - in my dreams that is! > Best, > Keith.. > > On 1 Mar 2011, at 17:11, Peter Haworth wrote: > >> Hi Keith, >> Actually, it's me who is trying to implement this not Bob. You raise some good points though. My first question is why on earth would you be running Salesforce when you're on holiday in the Maldives :-) >> >> My thoughts are that are that the first time you run my application, it will gather the OS preferences and store them as it's private preferences which the user can change if needed. So in your example, assuming you first run the app on a computer that has it's preferences set to wherever you live, my app would store those preferences locally. Then when you're in the Maldives, it will still use it's private preferences rather than the ones on the computer you are on, unless, of course, you needed to change them because you decided to move to the Maldives permanently :-) >> >> In my related post, I'm looking for a script to format currency according to the info in the OS preferences since I'd probably store that data within my app in that form. >> >> Pete Haworth >> >> On Mar 1, 2011, at 12:59 AM, Keith Clarke wrote: >> >>> Bob, >>> Just a couple of thoughts - I don't know what you're trying to achieve with your app, but are you sure you even want to have such settings to follow the user's machine/OS settings automatically? >>> >>> From my experience with multi-locale/currency/language software products - ERP, CRM, etc - localisation settings tend to be associated with entities (including, of course, the user entity!) rather than bubble-up from the environment in which the app is being accessed. For example, if I log into Salesforce.com from an internet cafe, whilst on holiday in the Maldives (some hope!), I still want my reports to follow my personal user-based preference for locale, rather than the machine I happen to be using or its IP address. >>> >>> Also, multi-currency apps tend to have a limited number of supported currencies so that exchange rates can be managed. >>> >>> Ignore all this if it's outside the scope of your current considerations. >>> Best, >>> Keith.. >>> >>> On 1 Mar 2011, at 01:35, Bob Sneidar wrote: >>> >>>> Oh nvm I just read the whole thing didn't try LC >>>> >>>> Bob >>>> >>>> On Feb 28, 2011, at 5:12 PM, Peter Haworth wrote: >>>> >>>>> The decimal point is there but the thousands sep and grouping info is wrong. Similar corruption occurs for the LC_MONETARY info. >>>>> >>>>> Is Shell broken? >>>>> >>>>> >>>>> Pete Haworth >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Tue Mar 1 13:39:16 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 01 Mar 2011 12:39:16 -0600 Subject: Rev player for Windows 7??? In-Reply-To: <199998C0-804F-44F3-938D-6669B6F411D1@telur.es> References: <199998C0-804F-44F3-938D-6669B6F411D1@telur.es> Message-ID: <4D6D3D54.5000300@hyperactivesw.com> On 3/1/11 2:11 AM, Joseba Aguayo wrote: > Finally my stack run OK in windows 7 (with Revolution Player) > But run slooooooowly when save datas. > The stack have 3,8Mb and for save datas in about 10-15 seconds. Is this normal? > In Windows XP or Mac save datas in 1-2 seconds. The Player is very old and I don't think Windows 7 existed when it was written. Win7 stores data differently from XP in some cases, using a "virtual store" location. Depending on where you are trying to save the stack, that may be the problem. Is there a reason you can't build a modern standalone? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at mollysrevenge.com Tue Mar 1 16:00:09 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 1 Mar 2011 13:00:09 -0800 Subject: Following up on shell(locale) problem Message-ID: <34DC7291-AC14-4811-B6D8-C1A9EE66425E@mollysrevenge.com> Hoping someone might come up with some help. To recap, if I execute the command locale -k LC_NUMERIC ...from Terminal on my Mac, the output is decimal_point="." thousands_sep="," grouping="3;3" However, if I use the LC Shell command to issue the same command and put the output into a field, it gives me: decimal_point="." thousands_sep= grouping="0" The thousands_sep and grouping lines don't show the correct info. I have also tried using the shell command to issue "locale -k LC_NUMERIC > myFile.txt", then accessed myFile.txt with the put url command and used open/read to get the contents, but still the same result. The file looks fine when opened in TextEdit. I can even copy and paste from TextEdit to the LC field and it looks fine. I'm really hoping not, but this is feeling like a bug. Any thoughts? Pete Haworth From massung at gmail.com Tue Mar 1 16:13:58 2011 From: massung at gmail.com (Jeff Massung) Date: Tue, 1 Mar 2011 14:13:58 -0700 Subject: Following up on shell(locale) problem In-Reply-To: <34DC7291-AC14-4811-B6D8-C1A9EE66425E@mollysrevenge.com> References: <34DC7291-AC14-4811-B6D8-C1A9EE66425E@mollysrevenge.com> Message-ID: It's possible that when you launch Terminal.app you are using BASH and that LC is using SH (or something other than BASH) that doesn't have the localization environment setup the same? That's just a guess. Jeff M. On Tue, Mar 1, 2011 at 2:00 PM, Peter Haworth wrote: > Hoping someone might come up with some help. To recap, if I execute the > command > > locale -k LC_NUMERIC > > ...from Terminal on my Mac, the output is > > decimal_point="." > thousands_sep="," > grouping="3;3" > > However, if I use the LC Shell command to issue the same command and put > the output into a field, it gives me: > > decimal_point="." > thousands_sep= > grouping="0" > From pete at mollysrevenge.com Tue Mar 1 16:33:15 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 1 Mar 2011 13:33:15 -0800 Subject: Following up on shell(locale) problem In-Reply-To: References: <34DC7291-AC14-4811-B6D8-C1A9EE66425E@mollysrevenge.com> Message-ID: Thanks Jeff. I tried setting the shellCommand property to point to bash but still the same problem. Pete Haworth -------------- next part -------------- http://www.mollysrevenge.com http://www.sonicbids.com/MollysRevenge http://www.myspace.com/mollysrevengeband On Mar 1, 2011, at 1:13 PM, Jeff Massung wrote: > It's possible that when you launch Terminal.app you are using BASH and that > LC is using SH (or something other than BASH) that doesn't have the > localization environment setup the same? > > That's just a guess. > > Jeff M. > > On Tue, Mar 1, 2011 at 2:00 PM, Peter Haworth wrote: > >> Hoping someone might come up with some help. To recap, if I execute the >> command >> >> locale -k LC_NUMERIC >> >> ...from Terminal on my Mac, the output is >> >> decimal_point="." >> thousands_sep="," >> grouping="3;3" >> >> However, if I use the LC Shell command to issue the same command and put >> the output into a field, it gives me: >> >> decimal_point="." >> thousands_sep= >> grouping="0" >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From francois.chaplais at mines-paristech.fr Tue Mar 1 16:36:12 2011 From: francois.chaplais at mines-paristech.fr (=?iso-8859-1?Q?Fran=E7ois_Chaplais?=) Date: Tue, 1 Mar 2011 22:36:12 +0100 Subject: Following up on shell(locale) problem In-Reply-To: <34DC7291-AC14-4811-B6D8-C1A9EE66425E@mollysrevenge.com> References: <34DC7291-AC14-4811-B6D8-C1A9EE66425E@mollysrevenge.com> Message-ID: <8AF8E8AF-8ADE-4803-AC37-800DE13A3A26@mines-paristech.fr> the LC shell command launches a shell which not the same as the one in Terminal. I am unfortunately not a Unix guru, but I know this has consequences on some "default" options, even if you use the same variant of the shell (BASH, I believe). Le 1 mars 2011 ? 22:00, Peter Haworth a ?crit : > Hoping someone might come up with some help. To recap, if I execute the command > > locale -k LC_NUMERIC > > ...from Terminal on my Mac, the output is > > decimal_point="." > thousands_sep="," > grouping="3;3" > > However, if I use the LC Shell command to issue the same command and put the output into a field, it gives me: > > decimal_point="." > thousands_sep= > grouping="0" > > The thousands_sep and grouping lines don't show the correct info. > > I have also tried using the shell command to issue "locale -k LC_NUMERIC > myFile.txt", then accessed myFile.txt with the put url command and used open/read to get the contents, but still the same result. The file looks fine when opened in TextEdit. I can even copy and paste from TextEdit to the LC field and it looks fine. > > I'm really hoping not, but this is feeling like a bug. > > Any thoughts? > > Pete Haworth > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at mollysrevenge.com Tue Mar 1 16:38:42 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 1 Mar 2011 13:38:42 -0800 Subject: Following up on shell(locale) problem In-Reply-To: References: <34DC7291-AC14-4811-B6D8-C1A9EE66425E@mollysrevenge.com> Message-ID: <8F7638B1-7979-4776-9142-8064A0F7FF1C@mollysrevenge.com> Hey Jeff, I also tried using the Bourne shell in Temrinal (the dictionary says that's what LC uses by default), and I got the same results as with bash. I wish it had been that simple! Pete Haworth On Mar 1, 2011, at 1:13 PM, Jeff Massung wrote: > It's possible that when you launch Terminal.app you are using BASH and that > LC is using SH (or something other than BASH) that doesn't have the > localization environment setup the same? > > That's just a guess. > > Jeff M. > > On Tue, Mar 1, 2011 at 2:00 PM, Peter Haworth wrote: > >> Hoping someone might come up with some help. To recap, if I execute the >> command >> >> locale -k LC_NUMERIC >> >> ...from Terminal on my Mac, the output is >> >> decimal_point="." >> thousands_sep="," >> grouping="3;3" >> >> However, if I use the LC Shell command to issue the same command and put >> the output into a field, it gives me: >> >> decimal_point="." >> thousands_sep= >> grouping="0" >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From warren at warrensweb.us Tue Mar 1 16:42:31 2011 From: warren at warrensweb.us (Warren Samples) Date: Tue, 01 Mar 2011 15:42:31 -0600 Subject: Following up on shell(locale) problem In-Reply-To: <34DC7291-AC14-4811-B6D8-C1A9EE66425E@mollysrevenge.com> References: <34DC7291-AC14-4811-B6D8-C1A9EE66425E@mollysrevenge.com> Message-ID: <1299015751.2309.144.camel@mint-i7> On Tue, 2011-03-01 at 13:00 -0800, Peter Haworth wrote: > Hoping someone might come up with some help. To recap, if I execute the command > > locale -k LC_NUMERIC > > ...from Terminal on my Mac, the output is > > decimal_point="." > thousands_sep="," > grouping="3;3" > > However, if I use the LC Shell command to issue the same command and put the output into a field, it gives me: > > decimal_point="." > thousands_sep= > grouping="0" > > The thousands_sep and grouping lines don't show the correct info. > > I have also tried using the shell command to issue "locale -k LC_NUMERIC > myFile.txt", then accessed myFile.txt with the put url command and used open/read to get the contents, but still the same result. The file looks fine when opened in TextEdit. I can even copy and paste from TextEdit to the LC field and it looks fine. > > I'm really hoping not, but this is feeling like a bug. > > Any thoughts? > > Pete Haworth > > Hi Peter, Doing 'put shell("locale -k LC_NUMERIC")' in the message box returns the same (expected) result for me here, running Linux, as I get in a terminal. Same for putting the result into a field. I do get the same unexpected behavior as you under OS X, however. I know this doesn't help you solve you problem, but at may help isolate whatever bug it is that's causing it. Good Luck, Warren From pete at mollysrevenge.com Tue Mar 1 16:47:11 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 1 Mar 2011 13:47:11 -0800 Subject: Following up on shell(locale) problem In-Reply-To: <8AF8E8AF-8ADE-4803-AC37-800DE13A3A26@mines-paristech.fr> References: <34DC7291-AC14-4811-B6D8-C1A9EE66425E@mollysrevenge.com> <8AF8E8AF-8ADE-4803-AC37-800DE13A3A26@mines-paristech.fr> Message-ID: <2BAAA05E-FA74-4C5C-BB7C-E3D47AFB7598@mollysrevenge.com> Thanks Francois. I don;t think that's the problem though. If I use the LC shell command to execute the locale command and put it's output into a file, the contents of the file are correct. BUt then if I open the file in LC and put the contents into a field, it's garbled again. I wonder if there are some strange hidden characters in the output that are confusing LC? Pete Haworth On Mar 1, 2011, at 1:36 PM, Fran?ois Chaplais wrote: > the LC shell command launches a shell which not the same as the one in Terminal. I am unfortunately not a Unix guru, but I know this has consequences on some "default" options, even if you use the same variant of the shell (BASH, I believe). > Le 1 mars 2011 ? 22:00, Peter Haworth a ?crit : > >> Hoping someone might come up with some help. To recap, if I execute the command >> >> locale -k LC_NUMERIC >> >> ...from Terminal on my Mac, the output is >> >> decimal_point="." >> thousands_sep="," >> grouping="3;3" >> >> However, if I use the LC Shell command to issue the same command and put the output into a field, it gives me: >> >> decimal_point="." >> thousands_sep= >> grouping="0" >> >> The thousands_sep and grouping lines don't show the correct info. >> >> I have also tried using the shell command to issue "locale -k LC_NUMERIC > myFile.txt", then accessed myFile.txt with the put url command and used open/read to get the contents, but still the same result. The file looks fine when opened in TextEdit. I can even copy and paste from TextEdit to the LC field and it looks fine. >> >> I'm really hoping not, but this is feeling like a bug. >> >> Any thoughts? >> >> Pete Haworth >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at mollysrevenge.com Tue Mar 1 16:54:50 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 1 Mar 2011 13:54:50 -0800 Subject: Following up on shell(locale) problem In-Reply-To: <1299015751.2309.144.camel@mint-i7> References: <34DC7291-AC14-4811-B6D8-C1A9EE66425E@mollysrevenge.com> <1299015751.2309.144.camel@mint-i7> Message-ID: <5562DCD1-FF04-4166-83DB-9A91543B2CC6@mollysrevenge.com> Thanks Warren. I just used the message box on my Mac and got the same (incorrect) output too. It's good to know if works under Linux though because that makes me think it's an LC bug even more. I'm currently researching if there's a way to get this info using Applescript (without issuing a shell command I mean) as a means to work around the problem. Pete Haworth On Mar 1, 2011, at 1:42 PM, Warren Samples wrote: > Hi Peter, > > Doing 'put shell("locale -k LC_NUMERIC")' in the message box returns the > same (expected) result for me here, running Linux, as I get in a > terminal. Same for putting the result into a field. I do get the same > unexpected behavior as you under OS X, however. I know this doesn't help > you solve you problem, but at may help isolate whatever bug it is that's > causing it. > > Good Luck, > > Warren From etcawley at fastmail.fm Tue Mar 1 17:08:54 2011 From: etcawley at fastmail.fm (edward cawley) Date: Tue, 1 Mar 2011 16:08:54 -0600 Subject: standalone builder In-Reply-To: References: Message-ID: <949DD4EC-582A-41AF-AAB0-A480177FB765@fastmail.fm> Solved most of my problems. My problem was the file path, Loaded my files into the the folder (Misipp files) in the standalone and loaded QuickTime into my copy of WindowsXP on VM Fusion. Only two problems left. I need to enlarge the font in the menubar in the Window stack? As long as I am running the stack from my drive everything is working but if I move the App into the C: drive in Windows it can't find the files. I'm using relative paths and Windows can't fine them. How can I refer to the relative paths in both Mac and Windows? I'm planing on distributing the App to students to use on their own laptops and I don't want to have them run the App from individual CDs. On Feb 25, 2011, at 10:29 AM, use-livecode-request at lists.runrev.com wrote: > > Message: 24 > Date: Fri, 25 Feb 2011 00:49:31 -0600 > From: "J. Landman Gay" > To: How to use LiveCode > Subject: Re: standalones and external files > Message-ID: <4D6750FB.6060103 at hyperactivesw.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > On 2/24/11 8:55 PM, edward cawley wrote: > >> Yes I am using external paths and I figured out that the standalone >> included a folder in the bundle but did not transfer the files into >> the folder. I changed the name of the folder from "resources" to >> "MisippFiles" and copied the files into the folder in the bundle of >> the standalone. It works fine now. > > Glad you got it figured out. But the standalone builder should have > copied all the files by itself. I just tested that and it seems to work > here. It copies the folder exactly, with the same name, and all the > contents. > > The "Resources" name is reserved in iOS and shouldn't be used for those > builds, but it should work okay in desktop standalones. It's a good idea > to avoid that name anyway just for clarity, since the standalone already > has a Resources folder in a different directory. But technically there > should not have been a conflict. > > Copying the files manually works too, I just wonder why you had to. > >> I am testing the windows app in VM Fusion, it is working fine with >> the exception that the movie in a player does not run in windows. Do >> I have to install the quick time player into VM Fusion or use the >> windows media player? > > It depends on what version of LiveCode you're using. You should be able > to run compatible videos with WMP, but if your movies are QT-specific > movies then you'd need to install QT. In older versions of LiveCode > (when it was Rev) QT was always required in Windows. I can't remember > the exact version where the change was made but it wasn't too many > versions ago. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > > ******************************************** From bonnmike at gmail.com Tue Mar 1 17:10:38 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 1 Mar 2011 15:10:38 -0700 Subject: Following up on shell(locale) problem In-Reply-To: <5562DCD1-FF04-4166-83DB-9A91543B2CC6@mollysrevenge.com> References: <34DC7291-AC14-4811-B6D8-C1A9EE66425E@mollysrevenge.com> <1299015751.2309.144.camel@mint-i7> <5562DCD1-FF04-4166-83DB-9A91543B2CC6@mollysrevenge.com> Message-ID: If theres a .bashrc file, or .. well I forget what its name is supposed to be, you might try shell("source path/to/my/.bashrc; locale -k LC_NUMERIC") Basically, find the file that bash loads, source it to force to be processed, and then tack your command onto the end. On Tue, Mar 1, 2011 at 2:54 PM, Peter Haworth wrote: > Thanks Warren. I just used the message box on my Mac and got the same > (incorrect) output too. It's good to know if works under Linux though > because that makes me think it's an LC bug even more. > > I'm currently researching if there's a way to get this info using > Applescript (without issuing a shell command I mean) as a means to work > around the problem. > > Pete Haworth > > On Mar 1, 2011, at 1:42 PM, Warren Samples wrote: > > > Hi Peter, > > > > Doing 'put shell("locale -k LC_NUMERIC")' in the message box returns the > > same (expected) result for me here, running Linux, as I get in a > > terminal. Same for putting the result into a field. I do get the same > > unexpected behavior as you under OS X, however. I know this doesn't help > > you solve you problem, but at may help isolate whatever bug it is that's > > causing it. > > > > Good Luck, > > > > Warren > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bonnmike at gmail.com Tue Mar 1 17:13:31 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 1 Mar 2011 15:13:31 -0700 Subject: Following up on shell(locale) problem In-Reply-To: References: <34DC7291-AC14-4811-B6D8-C1A9EE66425E@mollysrevenge.com> <1299015751.2309.144.camel@mint-i7> <5562DCD1-FF04-4166-83DB-9A91543B2CC6@mollysrevenge.com> Message-ID: oh. If lc uses sh not bash, might need to parse whatever the default shell resource file is for the LANG string, at which point you could manually set it before calling locale. I don't recall if sh and bash are similar enough to eat the same file. On Tue, Mar 1, 2011 at 3:10 PM, Mike Bonner wrote: > If theres a .bashrc file, or .. well I forget what its name is supposed to > be, you might try > > shell("source path/to/my/.bashrc; locale -k LC_NUMERIC") > > Basically, find the file that bash loads, source it to force to be > processed, and then tack your command onto the end. > > On Tue, Mar 1, 2011 at 2:54 PM, Peter Haworth wrote: > >> Thanks Warren. I just used the message box on my Mac and got the same >> (incorrect) output too. It's good to know if works under Linux though >> because that makes me think it's an LC bug even more. >> >> I'm currently researching if there's a way to get this info using >> Applescript (without issuing a shell command I mean) as a means to work >> around the problem. >> >> Pete Haworth >> >> On Mar 1, 2011, at 1:42 PM, Warren Samples wrote: >> >> > Hi Peter, >> > >> > Doing 'put shell("locale -k LC_NUMERIC")' in the message box returns the >> > same (expected) result for me here, running Linux, as I get in a >> > terminal. Same for putting the result into a field. I do get the same >> > unexpected behavior as you under OS X, however. I know this doesn't help >> > you solve you problem, but at may help isolate whatever bug it is that's >> > causing it. >> > >> > Good Luck, >> > >> > Warren >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From warren at warrensweb.us Tue Mar 1 17:26:02 2011 From: warren at warrensweb.us (Warren Samples) Date: Tue, 01 Mar 2011 16:26:02 -0600 Subject: Following up on shell(locale) problem In-Reply-To: References: <34DC7291-AC14-4811-B6D8-C1A9EE66425E@mollysrevenge.com> <1299015751.2309.144.camel@mint-i7> <5562DCD1-FF04-4166-83DB-9A91543B2CC6@mollysrevenge.com> Message-ID: <1299018362.2309.166.camel@mint-i7> On Tue, 2011-03-01 at 15:13 -0700, Mike Bonner wrote: > oh. If lc uses sh not bash, might need to parse whatever the default shell > resource file is for the LANG string, at which point you could manually set > it before calling locale. I don't recall if sh and bash are similar enough > to eat the same file. > > On Tue, Mar 1, 2011 at 3:10 PM, Mike Bonner wrote: > > > If theres a .bashrc file, or .. well I forget what its name is supposed to > > be, you might try > > > > shell("source path/to/my/.bashrc; locale -k LC_NUMERIC") > > > > Basically, find the file that bash loads, source it to force to be > > processed, and then tack your command onto the end. > > > > On Tue, Mar 1, 2011 at 2:54 PM, Peter Haworth wrote: > > > >> Thanks Warren. I just used the message box on my Mac and got the same > >> (incorrect) output too. It's good to know if works under Linux though > >> because that makes me think it's an LC bug even more. > >> > >> I'm currently researching if there's a way to get this info using > >> Applescript (without issuing a shell command I mean) as a means to work > >> around the problem. > >> > >> Pete Haworth > >> > >> On Mar 1, 2011, at 1:42 PM, Warren Samples wrote: > >> > >> > Hi Peter, > >> > > >> > Doing 'put shell("locale -k LC_NUMERIC")' in the message box returns the > >> > same (expected) result for me here, running Linux, as I get in a > >> > terminal. Same for putting the result into a field. I do get the same > >> > unexpected behavior as you under OS X, however. I know this doesn't help > >> > you solve you problem, but at may help isolate whatever bug it is that's > >> > causing it. > >> > > >> > Good Luck, > >> > > >> > Warren > >> > >> Hello, "Which shell" doesn't seem to be the problem. 'locale' returns the same result regardless of the shell it's called from. Tried it in 'csh', 'zsh', 'bash' and sh. 'sh' and '/bin/sh' seem to just be aliases for bash under OS X, at any rate. Is that not correct? Warren From bonnmike at gmail.com Tue Mar 1 17:44:53 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 1 Mar 2011 15:44:53 -0700 Subject: Following up on shell(locale) problem In-Reply-To: <1299018362.2309.166.camel@mint-i7> References: <34DC7291-AC14-4811-B6D8-C1A9EE66425E@mollysrevenge.com> <1299015751.2309.144.camel@mint-i7> <5562DCD1-FF04-4166-83DB-9A91543B2CC6@mollysrevenge.com> <1299018362.2309.166.camel@mint-i7> Message-ID: Ah k, hadn't seen this one.. *Thanks Francois. I don;t think that's the problem though. If I use the LC shell command to execute the locale command and put it's output into a file, the contents of the file are correct. BUt then if I open the file in LC and put the contents into a field, it's garbled again.* I'd still be curious to know if env; |grep LANG returns the same environment variable value both from LC shell, and from terminal, but no clue why reading in the file output from locale would cause it to go funky. On Tue, Mar 1, 2011 at 3:26 PM, Warren Samples wrote: > On Tue, 2011-03-01 at 15:13 -0700, Mike Bonner wrote: > > oh. If lc uses sh not bash, might need to parse whatever the default > shell > > resource file is for the LANG string, at which point you could manually > set > > it before calling locale. I don't recall if sh and bash are similar > enough > > to eat the same file. > > > > On Tue, Mar 1, 2011 at 3:10 PM, Mike Bonner wrote: > > > > > If theres a .bashrc file, or .. well I forget what its name is supposed > to > > > be, you might try > > > > > > shell("source path/to/my/.bashrc; locale -k LC_NUMERIC") > > > > > > Basically, find the file that bash loads, source it to force to be > > > processed, and then tack your command onto the end. > > > > > > On Tue, Mar 1, 2011 at 2:54 PM, Peter Haworth >wrote: > > > > > >> Thanks Warren. I just used the message box on my Mac and got the same > > >> (incorrect) output too. It's good to know if works under Linux though > > >> because that makes me think it's an LC bug even more. > > >> > > >> I'm currently researching if there's a way to get this info using > > >> Applescript (without issuing a shell command I mean) as a means to > work > > >> around the problem. > > >> > > >> Pete Haworth > > >> > > >> On Mar 1, 2011, at 1:42 PM, Warren Samples wrote: > > >> > > >> > Hi Peter, > > >> > > > >> > Doing 'put shell("locale -k LC_NUMERIC")' in the message box returns > the > > >> > same (expected) result for me here, running Linux, as I get in a > > >> > terminal. Same for putting the result into a field. I do get the > same > > >> > unexpected behavior as you under OS X, however. I know this doesn't > help > > >> > you solve you problem, but at may help isolate whatever bug it is > that's > > >> > causing it. > > >> > > > >> > Good Luck, > > >> > > > >> > Warren > > >> > > >> > > Hello, > > "Which shell" doesn't seem to be the problem. 'locale' returns the same > result regardless of the shell it's called from. Tried it in 'csh', > 'zsh', 'bash' and sh. 'sh' and '/bin/sh' seem to just be aliases for > bash under OS X, at any rate. Is that not correct? > > Warren > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From eps11 at mac.com Tue Mar 1 17:55:27 2011 From: eps11 at mac.com (Eric Peyron) Date: Tue, 01 Mar 2011 23:55:27 +0100 Subject: Creating a scrollview with Livecode Message-ID: <861CF3D4-1352-48BE-AD51-FB46F5FCD5B4@mac.com> Hi all, I am trying to create an eComic with Livecode and I need the user to be able to scroll each page vertically or horizontally. When I developped the App in Objective-C, I had to implement a scrollview, but as I am still a beginner, I don't know how to do this in Livecode yet. Can anyone help? Thanks, Eric From jimaultwins at yahoo.com Tue Mar 1 18:10:54 2011 From: jimaultwins at yahoo.com (Jim Ault) Date: Tue, 1 Mar 2011 15:10:54 -0800 Subject: Answer and Ask Dialogs In-Reply-To: <002a01cbd83b$a42e7810$ec8b6830$@LinkIt.Com> References: <002a01cbd83b$a42e7810$ec8b6830$@LinkIt.Com> Message-ID: <9C9369A2-89D8-4F3F-B26F-30D2A8E357EB@yahoo.com> On Mar 1, 2011, at 10:08 AM, Ray Horsley wrote: > I know I should probably use a stack of my own for these but I've > been using > the 'answer' and 'ask' commands so long that it's become a daunting > task to > swap them all out for something else. Anyway, anybody know where > these > stacks reside so I can alter their appearance and other things like > where > they appear on screen when opened? > Open the Application Browser by using the Tools menu then choose "Revolution UI Elements in Lists" in the View menu ( LiveCode may have changed this menu entry) Now you should see all the Integrated Dev Environ stacks (IDE) that all begin with 'rev', with the exception of the stack called "Home" You can now open these stacks and cards, scripts and settings. If you modify and save changes, your IDE will retain those, so be careful about corrupting your editing environ. Hope this helps. Jim Ault Las Vegas From jimaultwins at yahoo.com Tue Mar 1 18:19:17 2011 From: jimaultwins at yahoo.com (Jim Ault) Date: Tue, 1 Mar 2011 15:19:17 -0800 Subject: Creating a scrollview with Livecode In-Reply-To: <861CF3D4-1352-48BE-AD51-FB46F5FCD5B4@mac.com> References: <861CF3D4-1352-48BE-AD51-FB46F5FCD5B4@mac.com> Message-ID: <35AFCE36-B6BA-47FE-9315-9498D4AE9D3D@yahoo.com> On Mar 1, 2011, at 2:55 PM, Eric Peyron wrote: > Hi all, > > I am trying to create an eComic with Livecode and I need the user to > be able to scroll each page vertically or horizontally. When I > developped the App in Objective-C, I had to implement a scrollview, > but as I am still a beginner, I don't know how to do this in > Livecode yet. Can anyone help? I think you will want to take the objects on a card and make them into a group. At that point you can set the group vscroll & hscroll to 'on' If you also set the group to 'behave like a background' then new cards added to the same stack will add any of the groups so marked. You can 'place' or 'remove' any groups from any card. Groups are part of the stack and don't have to appear on any of the cards. Hope this helps. Jim Ault Las Vegas From tsj at unimelb.edu.au Tue Mar 1 18:28:20 2011 From: tsj at unimelb.edu.au (Terry Judd) Date: Wed, 02 Mar 2011 10:28:20 +1100 Subject: Creating a scrollview with Livecode In-Reply-To: <35AFCE36-B6BA-47FE-9315-9498D4AE9D3D@yahoo.com> Message-ID: Eric - check under 'example stacks and resources' in the Livecode help menu. There should be an iOS scroller example there that has both vertical and horizontal scrolling implemented. Regards, Terry... On 2/03/11 10:19 AM, "Jim Ault" wrote: > > On Mar 1, 2011, at 2:55 PM, Eric Peyron wrote: > >> Hi all, >> >> I am trying to create an eComic with Livecode and I need the user to >> be able to scroll each page vertically or horizontally. When I >> developped the App in Objective-C, I had to implement a scrollview, >> but as I am still a beginner, I don't know how to do this in >> Livecode yet. Can anyone help? > > > I think you will want to take the objects on a card and make them into > a group. > At that point you can set the group vscroll & hscroll to 'on' > > If you also set the group to 'behave like a background' then new cards > added to the same stack will add any of the groups so marked. > > You can 'place' or 'remove' any groups from any card. > Groups are part of the stack and don't have to appear on any of the > cards. > > Hope this helps. > > Jim Ault > Las Vegas > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Dr Terry Judd | Senior Lecturer in Medical Education Medical Education Unit Melbourne Medical School The University of Melbourne From pete at mollysrevenge.com Tue Mar 1 18:48:15 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 1 Mar 2011 15:48:15 -0800 Subject: Following up on shell(locale) problem In-Reply-To: References: <34DC7291-AC14-4811-B6D8-C1A9EE66425E@mollysrevenge.com> <1299015751.2309.144.camel@mint-i7> <5562DCD1-FF04-4166-83DB-9A91543B2CC6@mollysrevenge.com> <1299018362.2309.166.camel@mint-i7> Message-ID: <5244F6D0-E1FC-4F8B-A63F-25ECA4D149A8@mollysrevenge.com> OK, In terminal, that returns "LANG=en_US.UTF-8". With the LC shell command, it returns nothing!! There's definitely something weird going on with the LC shell command. Pete Haworth On Mar 1, 2011, at 2:44 PM, Mike Bonner wrote: > I'd still be curious to know if > env; |grep LANG > > returns the same environment variable value both from LC shell, and from > terminal From pete at mollysrevenge.com Tue Mar 1 18:58:06 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 1 Mar 2011 15:58:06 -0800 Subject: Following up on shell(locale) problem In-Reply-To: References: <34DC7291-AC14-4811-B6D8-C1A9EE66425E@mollysrevenge.com> <1299015751.2309.144.camel@mint-i7> <5562DCD1-FF04-4166-83DB-9A91543B2CC6@mollysrevenge.com> <1299018362.2309.166.camel@mint-i7> Message-ID: <78BA1995-0C94-4783-8932-4B654B7DF63F@mollysrevenge.com> Ok, the plot thickens! I ran a simple Applescript from the Applescript editor: do shell script ("locale -k LC_MONETARY") and got the same problem! Pete Haworth On Mar 1, 2011, at 2:44 PM, Mike Bonner wrote: > Ah k, hadn't seen this one.. > > *Thanks Francois. I don;t think that's the problem though. If I use the LC > shell command to execute the locale command and put it's output into a file, > the contents of the file are correct. BUt then if I open the file in LC and > put the contents into a field, it's garbled again.* > > > I'd still be curious to know if > env; |grep LANG > > returns the same environment variable value both from LC shell, and from > terminal, but no clue why reading in the file output from locale would cause > it to go funky. > > > On Tue, Mar 1, 2011 at 3:26 PM, Warren Samples wrote: > >> On Tue, 2011-03-01 at 15:13 -0700, Mike Bonner wrote: >>> oh. If lc uses sh not bash, might need to parse whatever the default >> shell >>> resource file is for the LANG string, at which point you could manually >> set >>> it before calling locale. I don't recall if sh and bash are similar >> enough >>> to eat the same file. >>> >>> On Tue, Mar 1, 2011 at 3:10 PM, Mike Bonner wrote: >>> >>>> If theres a .bashrc file, or .. well I forget what its name is supposed >> to >>>> be, you might try >>>> >>>> shell("source path/to/my/.bashrc; locale -k LC_NUMERIC") >>>> >>>> Basically, find the file that bash loads, source it to force to be >>>> processed, and then tack your command onto the end. >>>> >>>> On Tue, Mar 1, 2011 at 2:54 PM, Peter Haworth >> wrote: >>>> >>>>> Thanks Warren. I just used the message box on my Mac and got the same >>>>> (incorrect) output too. It's good to know if works under Linux though >>>>> because that makes me think it's an LC bug even more. >>>>> >>>>> I'm currently researching if there's a way to get this info using >>>>> Applescript (without issuing a shell command I mean) as a means to >> work >>>>> around the problem. >>>>> >>>>> Pete Haworth >>>>> >>>>> On Mar 1, 2011, at 1:42 PM, Warren Samples wrote: >>>>> >>>>>> Hi Peter, >>>>>> >>>>>> Doing 'put shell("locale -k LC_NUMERIC")' in the message box returns >> the >>>>>> same (expected) result for me here, running Linux, as I get in a >>>>>> terminal. Same for putting the result into a field. I do get the >> same >>>>>> unexpected behavior as you under OS X, however. I know this doesn't >> help >>>>>> you solve you problem, but at may help isolate whatever bug it is >> that's >>>>>> causing it. >>>>>> >>>>>> Good Luck, >>>>>> >>>>>> Warren >>>>> >>>>> >> >> Hello, >> >> "Which shell" doesn't seem to be the problem. 'locale' returns the same >> result regardless of the shell it's called from. Tried it in 'csh', >> 'zsh', 'bash' and sh. 'sh' and '/bin/sh' seem to just be aliases for >> bash under OS X, at any rate. Is that not correct? >> >> Warren >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bonnmike at gmail.com Tue Mar 1 19:04:20 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 1 Mar 2011 17:04:20 -0700 Subject: Following up on shell(locale) problem In-Reply-To: <5244F6D0-E1FC-4F8B-A63F-25ECA4D149A8@mollysrevenge.com> References: <34DC7291-AC14-4811-B6D8-C1A9EE66425E@mollysrevenge.com> <1299015751.2309.144.camel@mint-i7> <5562DCD1-FF04-4166-83DB-9A91543B2CC6@mollysrevenge.com> <1299018362.2309.166.camel@mint-i7> <5244F6D0-E1FC-4F8B-A63F-25ECA4D149A8@mollysrevenge.com> Message-ID: Ok, while this doesn't solve the issue, if you do shell("LANG=en_US.UTF-8;locale -k LC_NUMERIC") You get back the correct info yes? The problem here is that (I think someone said this farther up) the process shell uses isn't the same as a full blown terminal start. If you have a .bash_profile file in your user directory, and you do shell("source ~/.bash_profile ; locale -k LC_MONETARY") does it work? On Tue, Mar 1, 2011 at 4:48 PM, Peter Haworth wrote: > OK, In terminal, that returns "LANG=en_US.UTF-8". With the LC shell > command, it returns nothing!! There's definitely something weird going on > with the LC shell command. > > Pete Haworth > > On Mar 1, 2011, at 2:44 PM, Mike Bonner wrote: > > > I'd still be curious to know if > > env; |grep LANG > > > > returns the same environment variable value both from LC shell, and from > > terminal > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From tkuypers at telenet.be Tue Mar 1 19:10:01 2011 From: tkuypers at telenet.be (tkuypers at telenet.be) Date: Wed, 2 Mar 2011 01:10:01 +0100 Subject: using mySQL on a web-based server In-Reply-To: <1298988146612-3329891.post@n4.nabble.com> References: <4BF53F5E-F701-4D9F-BBFF-C0578866D033@telenet.be> <1298948257017-3329158.post@n4.nabble.com> <1298988146612-3329891.post@n4.nabble.com> Message-ID: Hi Andrew, No, I'm sorry it doesn't... I know exactly what you mean, but I got no idea how to setup something like this :-( warm regards, Ton Kuypers On 1-mrt-2011, at 15:02, Andrew Kluthe wrote: > I make a nice little controller that accepts the an encrypted email and > password as post and returns the information being desired from the > controller in an encrypted string that contains the results (encrypted with > a different key for transactions back to my client). revIgniters > ActiveRecord database handlers make it pretty easy to pull data from the > local db. It has built in security features to cleanse post variables of > nasties, etc. Then I just build the text string carefully in JSON format and > encrypt it out. > > Does this help at all? > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/using-mySQL-on-a-web-based-server-tp3328963p3329891.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bonnmike at gmail.com Tue Mar 1 19:10:23 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 1 Mar 2011 17:10:23 -0700 Subject: Following up on shell(locale) problem In-Reply-To: References: <34DC7291-AC14-4811-B6D8-C1A9EE66425E@mollysrevenge.com> <1299015751.2309.144.camel@mint-i7> <5562DCD1-FF04-4166-83DB-9A91543B2CC6@mollysrevenge.com> <1299018362.2309.166.camel@mint-i7> <5244F6D0-E1FC-4F8B-A63F-25ECA4D149A8@mollysrevenge.com> Message-ID: Oh. And since it's UTF-8, and it looks correct in the file apparently (which is weird with no LANG env variable) would that affect how you have to manage the results? I'm definately not a font guy, so dunno the answer to that. On Tue, Mar 1, 2011 at 5:04 PM, Mike Bonner wrote: > Ok, while this doesn't solve the issue, if you do > > shell("LANG=en_US.UTF-8;locale -k LC_NUMERIC") > > You get back the correct info yes? > > The problem here is that (I think someone said this farther up) the process > shell uses isn't the same as a full blown terminal start. If you have a > .bash_profile file in your user directory, and you do > > shell("source ~/.bash_profile ; locale -k LC_MONETARY") does it work? > > On Tue, Mar 1, 2011 at 4:48 PM, Peter Haworth wrote: > >> OK, In terminal, that returns "LANG=en_US.UTF-8". With the LC shell >> command, it returns nothing!! There's definitely something weird going on >> with the LC shell command. >> >> Pete Haworth >> >> On Mar 1, 2011, at 2:44 PM, Mike Bonner wrote: >> >> > I'd still be curious to know if >> > env; |grep LANG >> > >> > returns the same environment variable value both from LC shell, and from >> > terminal >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From ray at linkit.com Tue Mar 1 19:21:30 2011 From: ray at linkit.com (Ray Horsley) Date: Tue, 1 Mar 2011 19:21:30 -0500 Subject: Answer and Ask Dialogs In-Reply-To: <9C9369A2-89D8-4F3F-B26F-30D2A8E357EB@yahoo.com> References: <002a01cbd83b$a42e7810$ec8b6830$@LinkIt.Com> <9C9369A2-89D8-4F3F-B26F-30D2A8E357EB@yahoo.com> Message-ID: <001501cbd86f$c8218300$58648900$@LinkIt.Com> Jim, Very helpful! Thanks, Ray -----Original Message----- From: use-livecode-bounces at lists.runrev.com [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Jim Ault Sent: Tuesday, March 01, 2011 6:11 PM To: How to use LiveCode Subject: Re: Answer and Ask Dialogs On Mar 1, 2011, at 10:08 AM, Ray Horsley wrote: > I know I should probably use a stack of my own for these but I've been > using the 'answer' and 'ask' commands so long that it's become a > daunting task to swap them all out for something else. Anyway, > anybody know where these stacks reside so I can alter their appearance > and other things like where they appear on screen when opened? > Open the Application Browser by using the Tools menu then choose "Revolution UI Elements in Lists" in the View menu ( LiveCode may have changed this menu entry) Now you should see all the Integrated Dev Environ stacks (IDE) that all begin with 'rev', with the exception of the stack called "Home" You can now open these stacks and cards, scripts and settings. If you modify and save changes, your IDE will retain those, so be careful about corrupting your editing environ. Hope this helps. Jim Ault Las Vegas _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From pete at mollysrevenge.com Tue Mar 1 19:24:17 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 1 Mar 2011 16:24:17 -0800 Subject: Following up on shell(locale) problem In-Reply-To: References: <34DC7291-AC14-4811-B6D8-C1A9EE66425E@mollysrevenge.com> <1299015751.2309.144.camel@mint-i7> <5562DCD1-FF04-4166-83DB-9A91543B2CC6@mollysrevenge.com> <1299018362.2309.166.camel@mint-i7> <5244F6D0-E1FC-4F8B-A63F-25ECA4D149A8@mollysrevenge.com> Message-ID: Thanks Mike. 'Fraid the command you gave me still returns the incorrect info when executed with the LC shell command. In answer to your other email, I'm trying to get this info so I can format numbers and currency in my application according to the user's preferences, rather than having the user specify the same preferences to my application. But it's quickly becoming more trouble than it's worth! Pete Haworth -------------- next part -------------- http://www.mollysrevenge.com http://www.sonicbids.com/MollysRevenge http://www.myspace.com/mollysrevengeband On Mar 1, 2011, at 4:04 PM, Mike Bonner wrote: > Ok, while this doesn't solve the issue, if you do > > shell("LANG=en_US.UTF-8;locale -k LC_NUMERIC") > > You get back the correct info yes? > > The problem here is that (I think someone said this farther up) the process > shell uses isn't the same as a full blown terminal start. If you have a > .bash_profile file in your user directory, and you do > > shell("source ~/.bash_profile ; locale -k LC_MONETARY") does it work? > > On Tue, Mar 1, 2011 at 4:48 PM, Peter Haworth wrote: > >> OK, In terminal, that returns "LANG=en_US.UTF-8". With the LC shell >> command, it returns nothing!! There's definitely something weird going on >> with the LC shell command. >> >> Pete Haworth >> >> On Mar 1, 2011, at 2:44 PM, Mike Bonner wrote: >> >>> I'd still be curious to know if >>> env; |grep LANG >>> >>> returns the same environment variable value both from LC shell, and from >>> terminal >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From scott at tactilemedia.com Tue Mar 1 19:38:23 2011 From: scott at tactilemedia.com (Scott Rossi) Date: Tue, 01 Mar 2011 16:38:23 -0800 Subject: Creating a scrollview with Livecode In-Reply-To: <861CF3D4-1352-48BE-AD51-FB46F5FCD5B4@mac.com> Message-ID: Recently, Eric Peyron wrote: > I am trying to create an eComic with Livecode and I need the user to be able > to scroll each page vertically or horizontally. When I developped the App in > Objective-C, I had to implement a scrollview, but as I am still a beginner, I > don't know how to do this in Livecode yet. Can anyone help? If you wind up with a large image (or set of images), you'll probably want to group them, set the size of the group to whatever size you need on your card, set the lockLoc of the group to true (this keeps the group from expanding to show all its contents), and then enable whatever scrollbar/s you need: vscrollbar and/or hscrollbar. Another option you might consider is placing each image/panel on its own card, and then using transitions when navigating between cards -- see "Working with Visual Transition Effects" in the User Guide (on Mac OS X there may even be a page turn effect available, I can't recall). This might make for a an interesting presentation. Regards, Scott Rossi Creative Director Tactile Media, UX Design From bobs at twft.com Tue Mar 1 19:40:37 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 1 Mar 2011 16:40:37 -0800 Subject: A curious case Message-ID: <3F4989FE-6744-41ED-BC4B-1299986C6654@twft.com> Hi all. I just came across a curious issue where I had an if then else control structure inside another if then structure. I *thought* I used toe be able to use the form if statement then -- do somestuff else if anotherstatement then -- do someotherstuff else -- do defaultstuff end if When I nested this inside another if then else control structure it told me I was missing an end if! However if I converted the above structure to a switch control structure the script compiled fine. Have I stumbled upon something here? It kind of makes sense to me because the compiler may be having trouble knowing which control structure *else if anotherstatement* belongs to. This is not a problem per se, but I am just curious and it may help someone else who encounters it in the future to not spend an hour or two poring over code that is technically correct but won't compile. Bob From alex at tweedly.net Tue Mar 1 19:42:28 2011 From: alex at tweedly.net (Alex Tweedly) Date: Wed, 02 Mar 2011 00:42:28 +0000 Subject: Script to format a currency value In-Reply-To: References: Message-ID: <4D6D9274.7090809@tweedly.net> I'm curious is there really a real-life use-case for the group spec ? i.e. variable size groupings of digits ? Not sure what order you want for currency and neg sign ? Should it be $-123 or -$123 and should it be 123-$ or 123$- ? Should there always be a 0 before the "point" ? i.e. could the result be .12 rather than 0.12 ? How about -.12 rather than -0.12 ? Thanks for a fun challenge .... -- Alex. On 01/03/2011 04:55, Peter Haworth wrote: > OK, here's an amusing exercise in scripting for you experts out there, but I'm giving away a prize! I will give the person who provides the best solution a copy of my band's latest CD, Aged 10 years. the definition of "best" is strictly my opinion! If you don;t like traditional Celtic music (including bagpipes), we;ll just do the script for the fun of it and sell the CD on eBay!!! > > You have an integer value that needs to be formatted into a currency value. It is stored as a positive or negative binary value no matter how many decimal places it has (eg 10000 = $100.00). You have the following formatting characters to deal with: > > currency symbol: always present > > currency symbol position: 1 = before the number, 0=after the number > > decimal delimiter : could be empty > > number of decimals: could be zero and will be if decimal point char is empty > > negative sign character: always present > > negative sign position: 1= at the start of the formatted number , 0= at the end of the formatted number > > group separator character: Specifies the character separator used for grouping digits to the left of the decimal delimiter in formatted monetary quantities. Could be present even if no decimal delimiter is specified. Also could be empty, meaning no grouping. > > grouping spec: Specifies a string that defines the size of each group of digits in formatted monetary quantities. Only present if the group separator is not empty. Consists of a sequence of semicolon-separated integers. Each integer specifies the number of digits in a group. The initial integer defines the size of the group immediately to the left of the decimal delimiter. The following integers define succeeding groups to the left of the previous group. If the last integer is not -1, the size of the previous group (if any) is repeatedly used for the remainder of the digits. If the last integer is -1, no further grouping is performed. > > Deadline is midnight Friday March 4th, California time. Good luck! > > Pete Haworth > > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From tsj at unimelb.edu.au Tue Mar 1 19:48:27 2011 From: tsj at unimelb.edu.au (Terry Judd) Date: Wed, 02 Mar 2011 11:48:27 +1100 Subject: A curious case In-Reply-To: <3F4989FE-6744-41ED-BC4B-1299986C6654@twft.com> Message-ID: Bob - as you've found out, nested if/then statements tend to break down in unexpected ways when you mix the short and long forms of the syntax. To be on the safe side, always opt for the long form when nesting statements - these always compile correctly. Terry... On 2/03/11 11:40 AM, "Bob Sneidar" wrote: > Hi all. > > I just came across a curious issue where I had an if then else control > structure inside another if then structure. > > I *thought* I used toe be able to use the form > > if statement then > -- do somestuff > else if anotherstatement then > -- do someotherstuff > else > -- do defaultstuff > end if > > When I nested this inside another if then else control structure it told me I > was missing an end if! However if I converted the above structure to a switch > control structure the script compiled fine. Have I stumbled upon something > here? It kind of makes sense to me because the compiler may be having trouble > knowing which control structure *else if anotherstatement* belongs to. > > This is not a problem per se, but I am just curious and it may help someone > else who encounters it in the future to not spend an hour or two poring over > code that is technically correct but won't compile. > > Bob > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Dr Terry Judd | Senior Lecturer in Medical Education Medical Education Unit Melbourne Medical School The University of Melbourne From bonnmike at gmail.com Tue Mar 1 19:52:58 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 1 Mar 2011 17:52:58 -0700 Subject: Following up on shell(locale) problem In-Reply-To: References: <34DC7291-AC14-4811-B6D8-C1A9EE66425E@mollysrevenge.com> <1299015751.2309.144.camel@mint-i7> <5562DCD1-FF04-4166-83DB-9A91543B2CC6@mollysrevenge.com> <1299018362.2309.166.camel@mint-i7> <5244F6D0-E1FC-4F8B-A63F-25ECA4D149A8@mollysrevenge.com> Message-ID: Well if you can figure out how to get locale to work from an lc shell, there are interesting things that can be done in that vein using python. If LANG is set to en_GB, and locale is actually working, you can feed it to a python script such as this #!/usr/bin/python import locale -- for locale stuff of course import sys -- so we can get argv tVal = float(sys.argv[1]) -- sets argv[1] type to float and puts in tval locale.setlocale(locale.LC_ALL, ' ' ) -- assuming all is perfect *cough* grabs the locale tOut = locale.currency(tVal,1,1,0) -- puts out the number with adjustements. tVal is passed number, next is whether to show or not show the symbol, next is grouping on or off, next is use international symbol, or not. So, if LANG is set to en_GB you get back the great brit symbol, groups of 3, seperated by comma with a "." decimal. As you say though, not sure it'ts worth the effort, can just ask the user. If you're curious, I got this info from http://docs.python.org/library/locale.html On Tue, Mar 1, 2011 at 5:24 PM, Peter Haworth wrote: > Thanks Mike. 'Fraid the command you gave me still returns the incorrect > info when executed with the LC shell command. > > In answer to your other email, I'm trying to get this info so I can format > numbers and currency in my application according to the user's preferences, > rather than having the user specify the same preferences to my application. > But it's quickly becoming more trouble than it's worth! > > > Pete Haworth > > > > > > > > > http://www.mollysrevenge.com > http://www.sonicbids.com/MollysRevenge > http://www.myspace.com/mollysrevengeband > > > > > > > > > On Mar 1, 2011, at 4:04 PM, Mike Bonner wrote: > > > Ok, while this doesn't solve the issue, if you do > > > > shell("LANG=en_US.UTF-8;locale -k LC_NUMERIC") > > > > You get back the correct info yes? > > > > The problem here is that (I think someone said this farther up) the > process > > shell uses isn't the same as a full blown terminal start. If you have a > > .bash_profile file in your user directory, and you do > > > > shell("source ~/.bash_profile ; locale -k LC_MONETARY") does it work? > > > > On Tue, Mar 1, 2011 at 4:48 PM, Peter Haworth >wrote: > > > >> OK, In terminal, that returns "LANG=en_US.UTF-8". With the LC shell > >> command, it returns nothing!! There's definitely something weird going > on > >> with the LC shell command. > >> > >> Pete Haworth > >> > >> On Mar 1, 2011, at 2:44 PM, Mike Bonner wrote: > >> > >>> I'd still be curious to know if > >>> env; |grep LANG > >>> > >>> returns the same environment variable value both from LC shell, and > from > >>> terminal > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at mollysrevenge.com Tue Mar 1 20:33:28 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 1 Mar 2011 17:33:28 -0800 Subject: Script to format a currency value In-Reply-To: <4D6D9274.7090809@tweedly.net> References: <4D6D9274.7090809@tweedly.net> Message-ID: Hi Alex, To be honest, I'm not sure if there's a real life case for variable sizing of groups! I'm using the specs for the information returned by the Unix locale LC_MONETARY command and it specifically talks about the group spec this way. Seems unlikely but it adds to the spice of writing a script to deal with it! I have come across some currencies where the neg sign comes after the currency symbol so I think I will have to add another parameter for that but For now, always make the neg sign either the first char or the last char in the string, so "-$12.34" and "12.34$-". Good question on the zero issue. The first thing I realised with this is that if the number of decimals is greater than the number of digits passed in, zero-filling is needed. For example, if I pass in 5 and the number of decimals is 2, then the numbers after the decimal need to be 05, not 5. But in answer to your question, there should be a zero before the decimal point if the number is less than 1, so $0.05 or -$0.05. Thanks! Pete Haworth -------------- next part -------------- http://www.mollysrevenge.com http://www.sonicbids.com/MollysRevenge http://www.myspace.com/mollysrevengeband On Mar 1, 2011, at 4:42 PM, Alex Tweedly wrote: > I'm curious is there really a real-life use-case for the group spec ? i.e. variable size groupings of digits ? > > Not sure what order you want for currency and neg sign ? Should it be > $-123 or -$123 > and should it be 123-$ or 123$- ? > > Should there always be a 0 before the "point" ? i.e. could the result be .12 rather than 0.12 ? > How about -.12 rather than -0.12 ? > > Thanks for a fun challenge .... > -- Alex. > > > > On 01/03/2011 04:55, Peter Haworth wrote: >> OK, here's an amusing exercise in scripting for you experts out there, but I'm giving away a prize! I will give the person who provides the best solution a copy of my band's latest CD, Aged 10 years. the definition of "best" is strictly my opinion! If you don;t like traditional Celtic music (including bagpipes), we;ll just do the script for the fun of it and sell the CD on eBay!!! >> >> You have an integer value that needs to be formatted into a currency value. It is stored as a positive or negative binary value no matter how many decimal places it has (eg 10000 = $100.00). You have the following formatting characters to deal with: >> >> currency symbol: always present >> >> currency symbol position: 1 = before the number, 0=after the number >> >> decimal delimiter : could be empty >> >> number of decimals: could be zero and will be if decimal point char is empty >> >> negative sign character: always present >> >> negative sign position: 1= at the start of the formatted number , 0= at the end of the formatted number >> >> group separator character: Specifies the character separator used for grouping digits to the left of the decimal delimiter in formatted monetary quantities. Could be present even if no decimal delimiter is specified. Also could be empty, meaning no grouping. >> >> grouping spec: Specifies a string that defines the size of each group of digits in formatted monetary quantities. Only present if the group separator is not empty. Consists of a sequence of semicolon-separated integers. Each integer specifies the number of digits in a group. The initial integer defines the size of the group immediately to the left of the decimal delimiter. The following integers define succeeding groups to the left of the previous group. If the last integer is not -1, the size of the previous group (if any) is repeatedly used for the remainder of the digits. If the last integer is -1, no further grouping is performed. >> >> Deadline is midnight Friday March 4th, California time. Good luck! >> >> Pete Haworth >> >> >> >> >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at mollysrevenge.com Tue Mar 1 20:37:34 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 1 Mar 2011 17:37:34 -0800 Subject: Following up on shell(locale) problem In-Reply-To: References: <34DC7291-AC14-4811-B6D8-C1A9EE66425E@mollysrevenge.com> <1299015751.2309.144.camel@mint-i7> <5562DCD1-FF04-4166-83DB-9A91543B2CC6@mollysrevenge.com> <1299018362.2309.166.camel@mint-i7> <5244F6D0-E1FC-4F8B-A63F-25ECA4D149A8@mollysrevenge.com> Message-ID: Thanks Mike. I'm glad to hear there is a programming language out there that actually uses the locale information. Unfortunately, there isn;t anything in LiveCode, for numbers and currency that is. Pete Haworth On Mar 1, 2011, at 4:52 PM, Mike Bonner wrote: > Well if you can figure out how to get locale to work from an lc shell, there > are interesting things that can be done in that vein using python. > > If LANG is set to en_GB, and locale is actually working, you can feed it to > a python script such as this > > #!/usr/bin/python > import locale -- for locale stuff of course > import sys -- so we can get argv > tVal = float(sys.argv[1]) -- sets argv[1] type to float and puts in tval > locale.setlocale(locale.LC_ALL, ' ' ) -- assuming all is perfect *cough* > grabs the locale > tOut = locale.currency(tVal,1,1,0) > > -- puts out the number with adjustements. tVal is passed number, next is > whether to show or not show the symbol, next is grouping on or off, next is > use international symbol, or not. So, if LANG is set to en_GB you get back > the great brit symbol, groups of 3, seperated by comma with a "." decimal. > > As you say though, not sure it'ts worth the effort, can just ask the user. > > If you're curious, I got this info from > http://docs.python.org/library/locale.html > > On Tue, Mar 1, 2011 at 5:24 PM, Peter Haworth wrote: > >> Thanks Mike. 'Fraid the command you gave me still returns the incorrect >> info when executed with the LC shell command. >> >> In answer to your other email, I'm trying to get this info so I can format >> numbers and currency in my application according to the user's preferences, >> rather than having the user specify the same preferences to my application. >> But it's quickly becoming more trouble than it's worth! >> >> >> Pete Haworth >> >> >> >> >> >> >> >> >> http://www.mollysrevenge.com >> http://www.sonicbids.com/MollysRevenge >> http://www.myspace.com/mollysrevengeband >> >> >> >> >> >> >> >> >> On Mar 1, 2011, at 4:04 PM, Mike Bonner wrote: >> >>> Ok, while this doesn't solve the issue, if you do >>> >>> shell("LANG=en_US.UTF-8;locale -k LC_NUMERIC") >>> >>> You get back the correct info yes? >>> >>> The problem here is that (I think someone said this farther up) the >> process >>> shell uses isn't the same as a full blown terminal start. If you have a >>> .bash_profile file in your user directory, and you do >>> >>> shell("source ~/.bash_profile ; locale -k LC_MONETARY") does it work? >>> >>> On Tue, Mar 1, 2011 at 4:48 PM, Peter Haworth >> wrote: >>> >>>> OK, In terminal, that returns "LANG=en_US.UTF-8". With the LC shell >>>> command, it returns nothing!! There's definitely something weird going >> on >>>> with the LC shell command. >>>> >>>> Pete Haworth >>>> >>>> On Mar 1, 2011, at 2:44 PM, Mike Bonner wrote: >>>> >>>>> I'd still be curious to know if >>>>> env; |grep LANG >>>>> >>>>> returns the same environment variable value both from LC shell, and >> from >>>>> terminal >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bonnmike at gmail.com Tue Mar 1 20:42:19 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 1 Mar 2011 18:42:19 -0700 Subject: Following up on shell(locale) problem In-Reply-To: References: <34DC7291-AC14-4811-B6D8-C1A9EE66425E@mollysrevenge.com> <1299015751.2309.144.camel@mint-i7> <5562DCD1-FF04-4166-83DB-9A91543B2CC6@mollysrevenge.com> <1299018362.2309.166.camel@mint-i7> <5244F6D0-E1FC-4F8B-A63F-25ECA4D149A8@mollysrevenge.com> Message-ID: Yeah, was just pointing out that since os x has python installed by default (right?) could include a small python script and just feed it numbers through shell anytime you wanted a currency format. Not sure how fast it would be for lots of conversions though. /shrug On Tue, Mar 1, 2011 at 6:37 PM, Peter Haworth wrote: > Thanks Mike. I'm glad to hear there is a programming language out there > that actually uses the locale information. Unfortunately, there isn;t > anything in LiveCode, for numbers and currency that is. > > > Pete Haworth > > > On Mar 1, 2011, at 4:52 PM, Mike Bonner wrote: > > > Well if you can figure out how to get locale to work from an lc shell, > there > > are interesting things that can be done in that vein using python. > > > > If LANG is set to en_GB, and locale is actually working, you can feed it > to > > a python script such as this > > > > #!/usr/bin/python > > import locale -- for locale stuff of course > > import sys -- so we can get argv > > tVal = float(sys.argv[1]) -- sets argv[1] type to float and puts in tval > > locale.setlocale(locale.LC_ALL, ' ' ) -- assuming all is perfect *cough* > > grabs the locale > > tOut = locale.currency(tVal,1,1,0) > > > > -- puts out the number with adjustements. tVal is passed number, next is > > whether to show or not show the symbol, next is grouping on or off, next > is > > use international symbol, or not. So, if LANG is set to en_GB you get > back > > the great brit symbol, groups of 3, seperated by comma with a "." > decimal. > > > > As you say though, not sure it'ts worth the effort, can just ask the > user. > > > > If you're curious, I got this info from > > http://docs.python.org/library/locale.html > > > > On Tue, Mar 1, 2011 at 5:24 PM, Peter Haworth >wrote: > > > >> Thanks Mike. 'Fraid the command you gave me still returns the incorrect > >> info when executed with the LC shell command. > >> > >> In answer to your other email, I'm trying to get this info so I can > format > >> numbers and currency in my application according to the user's > preferences, > >> rather than having the user specify the same preferences to my > application. > >> But it's quickly becoming more trouble than it's worth! > >> > >> > >> Pete Haworth > >> > >> > >> > >> > >> > >> > >> > >> > >> http://www.mollysrevenge.com > >> http://www.sonicbids.com/MollysRevenge > >> http://www.myspace.com/mollysrevengeband > >> > >> > >> > >> > >> > >> > >> > >> > >> On Mar 1, 2011, at 4:04 PM, Mike Bonner wrote: > >> > >>> Ok, while this doesn't solve the issue, if you do > >>> > >>> shell("LANG=en_US.UTF-8;locale -k LC_NUMERIC") > >>> > >>> You get back the correct info yes? > >>> > >>> The problem here is that (I think someone said this farther up) the > >> process > >>> shell uses isn't the same as a full blown terminal start. If you have a > >>> .bash_profile file in your user directory, and you do > >>> > >>> shell("source ~/.bash_profile ; locale -k LC_MONETARY") does it work? > >>> > >>> On Tue, Mar 1, 2011 at 4:48 PM, Peter Haworth >>> wrote: > >>> > >>>> OK, In terminal, that returns "LANG=en_US.UTF-8". With the LC shell > >>>> command, it returns nothing!! There's definitely something weird > going > >> on > >>>> with the LC shell command. > >>>> > >>>> Pete Haworth > >>>> > >>>> On Mar 1, 2011, at 2:44 PM, Mike Bonner wrote: > >>>> > >>>>> I'd still be curious to know if > >>>>> env; |grep LANG > >>>>> > >>>>> returns the same environment variable value both from LC shell, and > >> from > >>>>> terminal > >>>> > >>>> > >>>> _______________________________________________ > >>>> use-livecode mailing list > >>>> use-livecode at lists.runrev.com > >>>> Please visit this url to subscribe, unsubscribe and manage your > >>>> subscription preferences: > >>>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>>> > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>> > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at mollysrevenge.com Tue Mar 1 21:10:48 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 1 Mar 2011 18:10:48 -0800 Subject: Following up on shell(locale) problem In-Reply-To: References: <34DC7291-AC14-4811-B6D8-C1A9EE66425E@mollysrevenge.com> <1299015751.2309.144.camel@mint-i7> <5562DCD1-FF04-4166-83DB-9A91543B2CC6@mollysrevenge.com> <1299018362.2309.166.camel@mint-i7> <5244F6D0-E1FC-4F8B-A63F-25ECA4D149A8@mollysrevenge.com> Message-ID: <07A9020F-E5D3-45BE-8914-40672507030A@mollysrevenge.com> That's definitely an option if I don't find a solution to getting the locale info from within LiveCode. Unfortunately, I know nothing about python. I've been sent some pretty cool LC scripts to do this formatting in response to my post about it. I'm almost at the point where I will just have the user enter these prefs into my app then use the scripts people have given me to do the fomatting. Pete Haworth On Mar 1, 2011, at 5:42 PM, Mike Bonner wrote: > Yeah, was just pointing out that since os x has python installed by default > (right?) could include a small python script and just feed it numbers > through shell anytime you wanted a currency format. Not sure how fast it > would be for lots of conversions though. /shrug > > On Tue, Mar 1, 2011 at 6:37 PM, Peter Haworth wrote: > >> Thanks Mike. I'm glad to hear there is a programming language out there >> that actually uses the locale information. Unfortunately, there isn;t >> anything in LiveCode, for numbers and currency that is. >> >> >> Pete Haworth >> >> >> On Mar 1, 2011, at 4:52 PM, Mike Bonner wrote: >> >>> Well if you can figure out how to get locale to work from an lc shell, >> there >>> are interesting things that can be done in that vein using python. >>> >>> If LANG is set to en_GB, and locale is actually working, you can feed it >> to >>> a python script such as this >>> >>> #!/usr/bin/python >>> import locale -- for locale stuff of course >>> import sys -- so we can get argv >>> tVal = float(sys.argv[1]) -- sets argv[1] type to float and puts in tval >>> locale.setlocale(locale.LC_ALL, ' ' ) -- assuming all is perfect *cough* >>> grabs the locale >>> tOut = locale.currency(tVal,1,1,0) >>> >>> -- puts out the number with adjustements. tVal is passed number, next is >>> whether to show or not show the symbol, next is grouping on or off, next >> is >>> use international symbol, or not. So, if LANG is set to en_GB you get >> back >>> the great brit symbol, groups of 3, seperated by comma with a "." >> decimal. >>> >>> As you say though, not sure it'ts worth the effort, can just ask the >> user. >>> >>> If you're curious, I got this info from >>> http://docs.python.org/library/locale.html >>> >>> On Tue, Mar 1, 2011 at 5:24 PM, Peter Haworth >> wrote: >>> >>>> Thanks Mike. 'Fraid the command you gave me still returns the incorrect >>>> info when executed with the LC shell command. >>>> >>>> In answer to your other email, I'm trying to get this info so I can >> format >>>> numbers and currency in my application according to the user's >> preferences, >>>> rather than having the user specify the same preferences to my >> application. >>>> But it's quickly becoming more trouble than it's worth! >>>> >>>> >>>> Pete Haworth >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> http://www.mollysrevenge.com >>>> http://www.sonicbids.com/MollysRevenge >>>> http://www.myspace.com/mollysrevengeband >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> On Mar 1, 2011, at 4:04 PM, Mike Bonner wrote: >>>> >>>>> Ok, while this doesn't solve the issue, if you do >>>>> >>>>> shell("LANG=en_US.UTF-8;locale -k LC_NUMERIC") >>>>> >>>>> You get back the correct info yes? >>>>> >>>>> The problem here is that (I think someone said this farther up) the >>>> process >>>>> shell uses isn't the same as a full blown terminal start. If you have a >>>>> .bash_profile file in your user directory, and you do >>>>> >>>>> shell("source ~/.bash_profile ; locale -k LC_MONETARY") does it work? >>>>> >>>>> On Tue, Mar 1, 2011 at 4:48 PM, Peter Haworth >>>> wrote: >>>>> >>>>>> OK, In terminal, that returns "LANG=en_US.UTF-8". With the LC shell >>>>>> command, it returns nothing!! There's definitely something weird >> going >>>> on >>>>>> with the LC shell command. >>>>>> >>>>>> Pete Haworth >>>>>> >>>>>> On Mar 1, 2011, at 2:44 PM, Mike Bonner wrote: >>>>>> >>>>>>> I'd still be curious to know if >>>>>>> env; |grep LANG >>>>>>> >>>>>>> returns the same environment variable value both from LC shell, and >>>> from >>>>>>> terminal >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>> subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Tue Mar 1 22:04:16 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 01 Mar 2011 21:04:16 -0600 Subject: A curious case In-Reply-To: <3F4989FE-6744-41ED-BC4B-1299986C6654@twft.com> References: <3F4989FE-6744-41ED-BC4B-1299986C6654@twft.com> Message-ID: <4D6DB3B0.7090400@hyperactivesw.com> On 3/1/11 6:40 PM, Bob Sneidar wrote: > Hi all. > > I just came across a curious issue where I had an if then else control structure inside another if then structure. > > I *thought* I used toe be able to use the form > > if statement then > -- do somestuff > else if anotherstatement then > -- do someotherstuff > else > -- do defaultstuff > end if > > When I nested this inside another if then else control structure it told me I was missing an end if! However if I converted the above structure to a switch control structure the script compiled fine. Have I stumbled upon something here? It kind of makes sense to me because the compiler may be having trouble knowing which control structure *else if anotherstatement* belongs to. > > This is not a problem per se, but I am just curious and it may help someone else who encounters it in the future to not spend an hour or two poring over code that is technically correct but won't compile. > > Bob It's a known issue when the compiler gets confused about which "else" goes with which. You can either rewrite the section using the long form, or put a carriage return after the last line of the embedded "end if". I tend to use the short if/else form a lot myself and I see this all the time. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From dunbarx at aol.com Tue Mar 1 22:29:55 2011 From: dunbarx at aol.com (dunbarx at aol.com) Date: Tue, 01 Mar 2011 22:29:55 -0500 Subject: A curious case In-Reply-To: Message-ID: <8CDA6A13C0205D3-1C20-4A338@webmail-m142.sysops.aol.com> This goes way back to the earliest HC days. You can even find cases where indentation doesn't even work, never mind successful compiles, even though the construction is sound. I seem to remember that in HC, it happened both ways with mixed constructs as well, that failed indentations worked, and that properly indented structures did not. Craig Newman -----Original Message----- From: Terry Judd To: How to use LiveCode Sent: Tue, Mar 1, 2011 7:48 pm Subject: Re: A curious case Bob - as you've found out, nested if/then statements tend to break down in unexpected ways when you mix the short and long forms of the syntax. To be on the safe side, always opt for the long form when nesting statements - these always compile correctly. Terry... On 2/03/11 11:40 AM, "Bob Sneidar" wrote: > Hi all. > > I just came across a curious issue where I had an if then else control > structure inside another if then structure. > > I *thought* I used toe be able to use the form > > if statement then > -- do somestuff > else if anotherstatement then > -- do someotherstuff > else > -- do defaultstuff > end if > > When I nested this inside another if then else control structure it told me I > was missing an end if! However if I converted the above structure to a switch > control structure the script compiled fine. Have I stumbled upon something > here? It kind of makes sense to me because the compiler may be having trouble > knowing which control structure *else if anotherstatement* belongs to. > > This is not a problem per se, but I am just curious and it may help someone > else who encounters it in the future to not spend an hour or two poring over > code that is technically correct but won't compile. > > Bob > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Dr Terry Judd | Senior Lecturer in Medical Education Medical Education Unit Melbourne Medical School The University of Melbourne _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From andrew at rjdfarm.com Wed Mar 2 02:28:36 2011 From: andrew at rjdfarm.com (Andrew Kluthe) Date: Tue, 1 Mar 2011 23:28:36 -0800 (PST) Subject: using mySQL on a web-based server In-Reply-To: References: <4BF53F5E-F701-4D9F-BBFF-C0578866D033@telenet.be> <1298948257017-3329158.post@n4.nabble.com> <1298988146612-3329891.post@n4.nabble.com> Message-ID: <1299050916972-3331110.post@n4.nabble.com> Hmmm. Perhaps towards the end of the month, I could do a two parter for livecode.tv. An intro to revIgniter and a talk on building web services with it. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/using-mySQL-on-a-web-based-server-tp3328963p3331110.html Sent from the Revolution - User mailing list archive at Nabble.com. From eps11 at mac.com Wed Mar 2 03:05:08 2011 From: eps11 at mac.com (eps11 at mac.com) Date: Wed, 02 Mar 2011 09:05:08 +0100 Subject: Zooming with a pinch motion Message-ID: <3BCDD1EE-E8E0-42F3-B842-2D6559EF08CF@mac.com> Hi all, I have created a stack allowing the user to zoom an image, and it was actually easy with the "How do I implement a multi-touch pinch motion?" lesson. Now, I need my images to have a min size of 320*480 when zoomed in, and a max size when zoomed out. Does someone know how I could implement these additional functionalities into the existing script? Thanks, Eric From keith.clarke at clarkeandclarke.co.uk Wed Mar 2 03:16:04 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Wed, 2 Mar 2011 08:16:04 +0000 Subject: Script to format a currency value In-Reply-To: References: <4D6D9274.7090809@tweedly.net> Message-ID: <3D13B443-C520-4A51-AEDD-558C6B36EBDD@clarkeandclarke.co.uk> Peter, I seem to recall that in accountancy, negative values can be shown in parentheses rather than using the minus sign, so (?1,234.56) = -?1,234.56. Just another variable! ;-) On 2 Mar 2011, at 01:33, Peter Haworth wrote: > Hi Alex, > To be honest, I'm not sure if there's a real life case for variable sizing of groups! I'm using the specs for the information returned by the Unix locale LC_MONETARY command and it specifically talks about the group spec this way. Seems unlikely but it adds to the spice of writing a script to deal with it! > > I have come across some currencies where the neg sign comes after the currency symbol so I think I will have to add another parameter for that but For now, always make the neg sign either the first char or the last char in the string, so "-$12.34" and "12.34$-". > > Good question on the zero issue. The first thing I realised with this is that if the number of decimals is greater than the number of digits passed in, zero-filling is needed. For example, if I pass in 5 and the number of decimals is 2, then the numbers after the decimal need to be 05, not 5. But in answer to your question, there should be a zero before the decimal point if the number is less than 1, so $0.05 or -$0.05. > > Thanks! > > Pete Haworth > > > > > > > > http://www.mollysrevenge.com > http://www.sonicbids.com/MollysRevenge > http://www.myspace.com/mollysrevengeband > > > > > > > > > On Mar 1, 2011, at 4:42 PM, Alex Tweedly wrote: > >> I'm curious is there really a real-life use-case for the group spec ? i.e. variable size groupings of digits ? >> >> Not sure what order you want for currency and neg sign ? Should it be >> $-123 or -$123 >> and should it be 123-$ or 123$- ? >> >> Should there always be a 0 before the "point" ? i.e. could the result be .12 rather than 0.12 ? >> How about -.12 rather than -0.12 ? >> >> Thanks for a fun challenge .... >> -- Alex. >> >> >> >> On 01/03/2011 04:55, Peter Haworth wrote: >>> OK, here's an amusing exercise in scripting for you experts out there, but I'm giving away a prize! I will give the person who provides the best solution a copy of my band's latest CD, Aged 10 years. the definition of "best" is strictly my opinion! If you don;t like traditional Celtic music (including bagpipes), we;ll just do the script for the fun of it and sell the CD on eBay!!! >>> >>> You have an integer value that needs to be formatted into a currency value. It is stored as a positive or negative binary value no matter how many decimal places it has (eg 10000 = $100.00). You have the following formatting characters to deal with: >>> >>> currency symbol: always present >>> >>> currency symbol position: 1 = before the number, 0=after the number >>> >>> decimal delimiter : could be empty >>> >>> number of decimals: could be zero and will be if decimal point char is empty >>> >>> negative sign character: always present >>> >>> negative sign position: 1= at the start of the formatted number , 0= at the end of the formatted number >>> >>> group separator character: Specifies the character separator used for grouping digits to the left of the decimal delimiter in formatted monetary quantities. Could be present even if no decimal delimiter is specified. Also could be empty, meaning no grouping. >>> >>> grouping spec: Specifies a string that defines the size of each group of digits in formatted monetary quantities. Only present if the group separator is not empty. Consists of a sequence of semicolon-separated integers. Each integer specifies the number of digits in a group. The initial integer defines the size of the group immediately to the left of the decimal delimiter. The following integers define succeeding groups to the left of the previous group. If the last integer is not -1, the size of the previous group (if any) is repeatedly used for the remainder of the digits. If the last integer is -1, no further grouping is performed. >>> >>> Deadline is midnight Friday March 4th, California time. Good luck! >>> >>> Pete Haworth >>> >>> >>> >>> >>> >>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jaguayo at telur.es Wed Mar 2 03:21:54 2011 From: jaguayo at telur.es (Joseba Aguayo) Date: Wed, 2 Mar 2011 09:21:54 +0100 Subject: use-livecode Digest, Vol 90, Issue 3 In-Reply-To: References: Message-ID: <1662FE47-28F0-421C-AEEB-BD16151C3430@telur.es> Hello Jacqueline: How can I build a modern stack that run OK in windows 7. When I create a standalone application, the application don`t save datas that I change in fields. Un saludo. Joseba Aguayo Fern?ndez (jaguayo at telur.es) On Mar 2, 2011, at 1:21 AM, use-livecode-request at lists.runrev.com wrote: > The Player is very old and I don't think Windows 7 existed when it was > written. Win7 stores data differently from XP in some cases, using a > "virtual store" location. Depending on where you are trying to save the > stack, that may be the problem. > > Is there a reason you can't build a modern standalone? > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com From effendi at wanadoo.fr Wed Mar 2 05:32:22 2011 From: effendi at wanadoo.fr (Francis Nugent Dixon) Date: Wed, 2 Mar 2011 11:32:22 +0100 Subject: standalone builder Message-ID: Hi from Beautiful Britanny, Edward wrote : > How can I refer to the relative paths in both Mac and Windows? Note that I use a "Revolution" folder for all concerned with LiveCode. All my sub-folders and files of all my stacks are in there somewhere. put the platform into GVHoldPlatform if GVHoldPlatform = "MacOS" then put "/Revolution/" into GVStackPath -- No leading drive on the Mac. end if if LVHoldPlatform = "Win32" then -- -- System 7 patch to ensure using the Systems Disk for "StackPath" on PC's -- put item 1 of specialfolderpath("system") & "/Revolution/"into GVStackPath -- Get Stack Path with Disk ID. replace "WINDOWS/" with empty in GVStackPath -- Remove Windows Folder Name. end if Add sub-folder names or file names to reach the final destination. HTH -Francis "Nothing should ever be done for the first time !" From bvg at mac.com Wed Mar 2 10:27:10 2011 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Wed, 02 Mar 2011 16:27:10 +0100 Subject: Live LiveCode Code event invitation In-Reply-To: <1299050916972-3331110.post@n4.nabble.com> References: <4BF53F5E-F701-4D9F-BBFF-C0578866D033@telenet.be> <1298948257017-3329158.post@n4.nabble.com> <1298988146612-3329891.post@n4.nabble.com> <1299050916972-3331110.post@n4.nabble.com> Message-ID: <144240BA-A7D1-4AE7-B65C-B18A6B842EC4@mac.com> Cool! Anyone else? maybe someone for this week? Contact me directly if you're interested! Bj?rnke On 2 Mar 2011, at 08:28, Andrew Kluthe wrote: > Hmmm. Perhaps towards the end of the month, I could do a two parter for > livecode.tv. An intro to revIgniter and a talk on building web services with > it. > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/using-mySQL-on-a-web-based-server-tp3328963p3331110.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- official ChatRev page: http://bjoernke.com?target=chatrev Chat with other RunRev developers: go stack URL "http://bjoernke.com/chatrev/chatrev1.3b3.rev" From form at nonsanity.com Wed Mar 2 10:40:52 2011 From: form at nonsanity.com (Nonsanity) Date: Wed, 2 Mar 2011 10:40:52 -0500 Subject: A curious case In-Reply-To: <3F4989FE-6744-41ED-BC4B-1299986C6654@twft.com> References: <3F4989FE-6744-41ED-BC4B-1299986C6654@twft.com> Message-ID: Others have answered this pretty well, but I thought I'd add some examples for clarity - With future readers in mind. The following won't work: if x = 1 then doSomething else if x = 2 then if y = 3 then doSomethingElse else if x = 2 then -- little lost else doThirdThing end if This is because the y = 3 line thinks the next else belongs to it, like so: if x = 1 then doSomething else if x = 2 then if y = 3 then doSomethingElse else if x = 2 then doThirdThing end if Because the following is a valid if-else format: if true then Blah1 else Blah2 If there's another line between the dangling if and the parent structure's next else, all is fine. if x = 1 then doSomething else if x = 2 then if y = 3 then doSomethingElse get it else if x = 2 then doThirdThing end if But the best practice, as Terry said, is to use the long form in situations like these. if x = 1 then doSomething else if x = 2 then if y = 3 then doSomethingElse end if else if x = 2 then doThirdThing end if That way the code is clear to everyone, at least in regard to else-ownership. Clarity of the code itself varies by programmer... :) ~ Chris Innanen ~ Nonsanity On Tue, Mar 1, 2011 at 7:40 PM, Bob Sneidar wrote: > Hi all. > > I just came across a curious issue where I had an if then else control > structure inside another if then structure. > > I *thought* I used toe be able to use the form > > if statement then > -- do somestuff > else if anotherstatement then > -- do someotherstuff > else > -- do defaultstuff > end if > > When I nested this inside another if then else control structure it told me > I was missing an end if! However if I converted the above structure to a > switch control structure the script compiled fine. Have I stumbled upon > something here? It kind of makes sense to me because the compiler may be > having trouble knowing which control structure *else if anotherstatement* > belongs to. > > This is not a problem per se, but I am just curious and it may help someone > else who encounters it in the future to not spend an hour or two poring over > code that is technically correct but won't compile. > > Bob > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bvg at mac.com Wed Mar 2 10:58:17 2011 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Wed, 02 Mar 2011 16:58:17 +0100 Subject: A curious case In-Reply-To: References: <3F4989FE-6744-41ED-BC4B-1299986C6654@twft.com> Message-ID: <31E80E31-49F9-4187-B678-160BF6339787@mac.com> I always thought that the dozens of ways to use if-then-else constructs in LC are too much options. I always use each on it's own line, because otherwise it's just so hard to read and decipher. Even for super simple cases: if the visible of me then exit repeat end if On 2 Mar 2011, at 16:40, Nonsanity wrote: > Others have answered this pretty well, but I thought I'd add some examples > for clarity - With future readers in mind. > > The following won't work: > > if x = 1 then > doSomething > else if x = 2 then > if y = 3 then doSomethingElse > else if x = 2 then -- little lost else > doThirdThing > end if > > This is because the y = 3 line thinks the next else belongs to it, like so: > > if x = 1 then > doSomething > else if x = 2 then > if y = 3 then doSomethingElse > else if x = 2 then > doThirdThing > end if > > Because the following is a valid if-else format: > > if true then Blah1 > else Blah2 > > If there's another line between the dangling if and the parent structure's > next else, all is fine. > > if x = 1 then > doSomething > else if x = 2 then > if y = 3 then doSomethingElse > get it > else if x = 2 then > doThirdThing > end if > > But the best practice, as Terry said, is to use the long form in situations > like these. > > if x = 1 then > doSomething > else if x = 2 then > if y = 3 then > doSomethingElse > end if > else if x = 2 then > doThirdThing > end if > > That way the code is clear to everyone, at least in regard to > else-ownership. Clarity of the code itself varies by programmer... :) > > > ~ Chris Innanen > ~ Nonsanity > > > > On Tue, Mar 1, 2011 at 7:40 PM, Bob Sneidar wrote: > >> Hi all. >> >> I just came across a curious issue where I had an if then else control >> structure inside another if then structure. >> >> I *thought* I used toe be able to use the form >> >> if statement then >> -- do somestuff >> else if anotherstatement then >> -- do someotherstuff >> else >> -- do defaultstuff >> end if >> >> When I nested this inside another if then else control structure it told me >> I was missing an end if! However if I converted the above structure to a >> switch control structure the script compiled fine. Have I stumbled upon >> something here? It kind of makes sense to me because the compiler may be >> having trouble knowing which control structure *else if anotherstatement* >> belongs to. >> >> This is not a problem per se, but I am just curious and it may help someone >> else who encounters it in the future to not spend an hour or two poring over >> code that is technically correct but won't compile. >> >> Bob -- official ChatRev page: http://bjoernke.com?target=chatrev Chat with other RunRev developers: go stack URL "http://bjoernke.com/chatrev/chatrev1.3b3.rev" From andre at andregarzia.com Wed Mar 2 11:12:35 2011 From: andre at andregarzia.com (Andre Garzia) Date: Wed, 2 Mar 2011 13:12:35 -0300 Subject: A curious case In-Reply-To: <31E80E31-49F9-4187-B678-160BF6339787@mac.com> References: <3F4989FE-6744-41ED-BC4B-1299986C6654@twft.com> <31E80E31-49F9-4187-B678-160BF6339787@mac.com> Message-ID: 2011/3/2 Bj?rnke von Gierke > I always thought that the dozens of ways to use if-then-else constructs in > LC are too much options. I always use each on it's own line, because > otherwise it's just so hard to read and decipher. Even for super simple > cases: > > if the visible of me then > exit repeat > end if > I tend to work on the same way. longer forms makes shorter understanding time. I'd rather write more and understand more than write faster and then one week from now, be completely lost in nested mazes > > On 2 Mar 2011, at 16:40, Nonsanity wrote: > > > Others have answered this pretty well, but I thought I'd add some > examples > > for clarity - With future readers in mind. > > > > The following won't work: > > > > if x = 1 then > > doSomething > > else if x = 2 then > > if y = 3 then doSomethingElse > > else if x = 2 then -- little lost else > > doThirdThing > > end if > > > > This is because the y = 3 line thinks the next else belongs to it, like > so: > > > > if x = 1 then > > doSomething > > else if x = 2 then > > if y = 3 then doSomethingElse > > else if x = 2 then > > doThirdThing > > end if > > > > Because the following is a valid if-else format: > > > > if true then Blah1 > > else Blah2 > > > > If there's another line between the dangling if and the parent > structure's > > next else, all is fine. > > > > if x = 1 then > > doSomething > > else if x = 2 then > > if y = 3 then doSomethingElse > > get it > > else if x = 2 then > > doThirdThing > > end if > > > > But the best practice, as Terry said, is to use the long form in > situations > > like these. > > > > if x = 1 then > > doSomething > > else if x = 2 then > > if y = 3 then > > doSomethingElse > > end if > > else if x = 2 then > > doThirdThing > > end if > > > > That way the code is clear to everyone, at least in regard to > > else-ownership. Clarity of the code itself varies by programmer... :) > > > > > > ~ Chris Innanen > > ~ Nonsanity > > > > > > > > On Tue, Mar 1, 2011 at 7:40 PM, Bob Sneidar wrote: > > > >> Hi all. > >> > >> I just came across a curious issue where I had an if then else control > >> structure inside another if then structure. > >> > >> I *thought* I used toe be able to use the form > >> > >> if statement then > >> -- do somestuff > >> else if anotherstatement then > >> -- do someotherstuff > >> else > >> -- do defaultstuff > >> end if > >> > >> When I nested this inside another if then else control structure it told > me > >> I was missing an end if! However if I converted the above structure to a > >> switch control structure the script compiled fine. Have I stumbled upon > >> something here? It kind of makes sense to me because the compiler may be > >> having trouble knowing which control structure *else if > anotherstatement* > >> belongs to. > >> > >> This is not a problem per se, but I am just curious and it may help > someone > >> else who encounters it in the future to not spend an hour or two poring > over > >> code that is technically correct but won't compile. > >> > >> Bob > > -- > > official ChatRev page: > http://bjoernke.com?target=chatrev > > > Chat with other RunRev developers: > go stack URL "http://bjoernke.com/chatrev/chatrev1.3b3.rev" > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- http://www.andregarzia.com All We Do Is Code. From ambassador at fourthworld.com Wed Mar 2 11:26:57 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 02 Mar 2011 08:26:57 -0800 Subject: A curious case Message-ID: <4D6E6FD1.9020305@fourthworld.com> Andre Garzia wrote: > I tend to work on the same way. longer forms makes shorter understanding > time. I'd rather write more and understand more than write faster and then > one week from now, be completely lost in nested mazes Well said. And sometimes lengthy deeply-nested IFs are good candidates for a switch block. I once stumbled across two tips about code style that have been very helpful: 1. If a given function has nested IFs more than three levels deep, it may be a good candidate for breaking it up into smaller functions. 2. If a function is longer than can be viewed in one screen, it may be a good candidate for breaking it up into smaller functions. Sometimes those can't be applied for sound practical reasons, but where they can oh boy does it make code more readable. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From jacque at hyperactivesw.com Wed Mar 2 11:29:59 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 02 Mar 2011 10:29:59 -0600 Subject: A curious case In-Reply-To: References: <3F4989FE-6744-41ED-BC4B-1299986C6654@twft.com> Message-ID: <4D6E7087.5090506@hyperactivesw.com> On 3/2/11 9:40 AM, Nonsanity wrote: > Others have answered this pretty well, but I thought I'd add some examples > for clarity - With future readers in mind. The examples are excellent. I think you should add a user note to the "if" page in the docs. That way the info won't get lost. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From andrew at rjdfarm.com Wed Mar 2 11:36:02 2011 From: andrew at rjdfarm.com (Andrew Kluthe) Date: Wed, 2 Mar 2011 08:36:02 -0800 (PST) Subject: Live LiveCode Code event invitation In-Reply-To: <144240BA-A7D1-4AE7-B65C-B18A6B842EC4@mac.com> References: <4BF53F5E-F701-4D9F-BBFF-C0578866D033@telenet.be> <1298948257017-3329158.post@n4.nabble.com> <1298988146612-3329891.post@n4.nabble.com> <1299050916972-3331110.post@n4.nabble.com> <144240BA-A7D1-4AE7-B65C-B18A6B842EC4@mac.com> Message-ID: <1299083762322-3331808.post@n4.nabble.com> Yeah, id be happy to do it towards the end of march. Perhaps the Live LiveCode event on the 26th? -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/using-mySQL-on-a-web-based-server-tp3328963p3331808.html Sent from the Revolution - User mailing list archive at Nabble.com. From warren at warrensweb.us Wed Mar 2 11:37:08 2011 From: warren at warrensweb.us (Warren Samples) Date: Wed, 02 Mar 2011 10:37:08 -0600 Subject: Following up on shell(locale) problem In-Reply-To: <07A9020F-E5D3-45BE-8914-40672507030A@mollysrevenge.com> References: <34DC7291-AC14-4811-B6D8-C1A9EE66425E@mollysrevenge.com> <1299015751.2309.144.camel@mint-i7> <5562DCD1-FF04-4166-83DB-9A91543B2CC6@mollysrevenge.com> <1299018362.2309.166.camel@mint-i7> <5244F6D0-E1FC-4F8B-A63F-25ECA4D149A8@mollysrevenge.com> <07A9020F-E5D3-45BE-8914-40672507030A@mollysrevenge.com> Message-ID: <1299083828.2253.78.camel@mint-i7> On Tue, 2011-03-01 at 18:10 -0800, Peter Haworth wrote: > That's definitely an option if I don't find a solution to getting the locale info from within LiveCode. Unfortunately, I know nothing about python. I've been sent some pretty cool LC scripts to do this formatting in response to my post about it. I'm almost at the point where I will just have the user enter these prefs into my app then use the scripts people have given me to do the fomatting. > > Pete Haworth > Peter, Try running 'locfale -k LC_CTYPE' Running that command in Terminal returns 'charmap="UTF-8"' but in Livecode it returns 'charmap="US-ASCII"' for me. Good luck :) Warren From warren at warrensweb.us Wed Mar 2 11:46:55 2011 From: warren at warrensweb.us (Warren Samples) Date: Wed, 02 Mar 2011 10:46:55 -0600 Subject: Following up on shell(locale) problem In-Reply-To: <1299083828.2253.78.camel@mint-i7> References: <34DC7291-AC14-4811-B6D8-C1A9EE66425E@mollysrevenge.com> <1299015751.2309.144.camel@mint-i7> <5562DCD1-FF04-4166-83DB-9A91543B2CC6@mollysrevenge.com> <1299018362.2309.166.camel@mint-i7> <5244F6D0-E1FC-4F8B-A63F-25ECA4D149A8@mollysrevenge.com> <07A9020F-E5D3-45BE-8914-40672507030A@mollysrevenge.com> <1299083828.2253.78.camel@mint-i7> Message-ID: <1299084415.2253.83.camel@mint-i7> On Wed, 2011-03-02 at 10:37 -0600, Warren Samples wrote: > On Tue, 2011-03-01 at 18:10 -0800, Peter Haworth wrote: > > That's definitely an option if I don't find a solution to getting the locale info from within LiveCode. Unfortunately, I know nothing about python. I've been sent some pretty cool LC scripts to do this formatting in response to my post about it. I'm almost at the point where I will just have the user enter these prefs into my app then use the scripts people have given me to do the fomatting. > > > > Pete Haworth > > > > > Peter, > > Try running 'locfale -k LC_CTYPE' > > Running that command in Terminal returns 'charmap="UTF-8"' but in > Livecode it returns 'charmap="US-ASCII"' for me. > > Good luck :) > > Warren > > > _______________________________________________ I should say: that is under OS X. Under Linux, 'charmap="UTF-8"' is returned both in a terminal and in Livecode. Warren From jacque at hyperactivesw.com Wed Mar 2 11:51:48 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 02 Mar 2011 10:51:48 -0600 Subject: use-livecode Digest, Vol 90, Issue 3 In-Reply-To: <1662FE47-28F0-421C-AEEB-BD16151C3430@telur.es> References: <1662FE47-28F0-421C-AEEB-BD16151C3430@telur.es> Message-ID: <4D6E75A4.6040701@hyperactivesw.com> On 3/2/11 2:21 AM, Joseba Aguayo wrote: > Hello Jacqueline: > > How can I build a modern stack that run OK in windows 7. When I > create a standalone application, the application don`t save datas > that I change in fields. I see. Executables on any OS can't save data to themselves. You need to use the "launcher" approach, where you create a standalone from a single card, often a splash screen, and that opens your data stack. This is exactly how the Player works, in fact. There is a lesson how to do it here: The lesson focuses on saving custom properties, but the same applies to any data, including text in fields. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From m.schonewille at economy-x-talk.com Wed Mar 2 11:53:32 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 2 Mar 2011 17:53:32 +0100 Subject: Live LiveCode Code event invitation In-Reply-To: <1299083762322-3331808.post@n4.nabble.com> References: <4BF53F5E-F701-4D9F-BBFF-C0578866D033@telenet.be> <1298948257017-3329158.post@n4.nabble.com> <1298988146612-3329891.post@n4.nabble.com> <1299050916972-3331110.post@n4.nabble.com> <144240BA-A7D1-4AE7-B65C-B18A6B842EC4@mac.com> <1299083762322-3331808.post@n4.nabble.com> Message-ID: Hi Bj?rnke. I am still considering to do a presentation and I'll contact you off-list about it. For next week, I won't be able to do it and we will definitely need two people who want to do a presentation! -- Kind regards, Mark Schonewille Economy-x-Talk Http://economy-x-talk.com Share the clipboard of your computer over a local network with Clipboard Link http://clipboardlink.economy-x-talk.com Op 2 mrt. 2011 om 17:36 heeft Andrew Kluthe het volgende geschreven: > Yeah, id be happy to do it towards the end of march. Perhaps the Live > LiveCode event on the 26th? > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/using-mySQL-on-a-web-based-server-tp3328963p3331808.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobs at twft.com Wed Mar 2 12:06:08 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 2 Mar 2011 09:06:08 -0800 Subject: A curious case In-Reply-To: <4D6DB3B0.7090400@hyperactivesw.com> References: <3F4989FE-6744-41ED-BC4B-1299986C6654@twft.com> <4D6DB3B0.7090400@hyperactivesw.com> Message-ID: Well that explains why it was compiling for a while and then stopped! I must have deleted that empty line. Bob On Mar 1, 2011, at 7:04 PM, J. Landman Gay wrote: > You can either rewrite the section using the long form, or put a carriage return after the last line of the embedded "end if". From pete at mollysrevenge.com Wed Mar 2 12:09:03 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Wed, 2 Mar 2011 09:09:03 -0800 Subject: Script to format a currency value In-Reply-To: <3D13B443-C520-4A51-AEDD-558C6B36EBDD@clarkeandclarke.co.uk> References: <4D6D9274.7090809@tweedly.net> <3D13B443-C520-4A51-AEDD-558C6B36EBDD@clarkeandclarke.co.uk> Message-ID: <2C38306D-6A55-42D4-BE07-50C11C4AD0D0@mollysrevenge.com> Yes, I was just thinking about that yesterday, plus sometimes negatives are shown in red. I'm leaning towards leaving it to the application that calls the formatting routine to deal with those options, mainly because the OS user preferences don't include a way to specify either the parentheses or colour options (at least on a Mac). Pete Haworth On Mar 2, 2011, at 12:16 AM, Keith Clarke wrote: > Peter, I seem to recall that in accountancy, negative values can be shown in parentheses rather than using the minus sign, so (?1,234.56) = -?1,234.56. > > Just another variable! ;-) > > On 2 Mar 2011, at 01:33, Peter Haworth wrote: > >> Hi Alex, >> To be honest, I'm not sure if there's a real life case for variable sizing of groups! I'm using the specs for the information returned by the Unix locale LC_MONETARY command and it specifically talks about the group spec this way. Seems unlikely but it adds to the spice of writing a script to deal with it! >> >> I have come across some currencies where the neg sign comes after the currency symbol so I think I will have to add another parameter for that but For now, always make the neg sign either the first char or the last char in the string, so "-$12.34" and "12.34$-". >> >> Good question on the zero issue. The first thing I realised with this is that if the number of decimals is greater than the number of digits passed in, zero-filling is needed. For example, if I pass in 5 and the number of decimals is 2, then the numbers after the decimal need to be 05, not 5. But in answer to your question, there should be a zero before the decimal point if the number is less than 1, so $0.05 or -$0.05. >> >> Thanks! >> >> Pete Haworth >> >> >> >> >> >> >> >> http://www.mollysrevenge.com >> http://www.sonicbids.com/MollysRevenge >> http://www.myspace.com/mollysrevengeband >> >> >> >> >> >> >> >> >> On Mar 1, 2011, at 4:42 PM, Alex Tweedly wrote: >> >>> I'm curious is there really a real-life use-case for the group spec ? i.e. variable size groupings of digits ? >>> >>> Not sure what order you want for currency and neg sign ? Should it be >>> $-123 or -$123 >>> and should it be 123-$ or 123$- ? >>> >>> Should there always be a 0 before the "point" ? i.e. could the result be .12 rather than 0.12 ? >>> How about -.12 rather than -0.12 ? >>> >>> Thanks for a fun challenge .... >>> -- Alex. >>> >>> >>> >>> On 01/03/2011 04:55, Peter Haworth wrote: >>>> OK, here's an amusing exercise in scripting for you experts out there, but I'm giving away a prize! I will give the person who provides the best solution a copy of my band's latest CD, Aged 10 years. the definition of "best" is strictly my opinion! If you don;t like traditional Celtic music (including bagpipes), we;ll just do the script for the fun of it and sell the CD on eBay!!! >>>> >>>> You have an integer value that needs to be formatted into a currency value. It is stored as a positive or negative binary value no matter how many decimal places it has (eg 10000 = $100.00). You have the following formatting characters to deal with: >>>> >>>> currency symbol: always present >>>> >>>> currency symbol position: 1 = before the number, 0=after the number >>>> >>>> decimal delimiter : could be empty >>>> >>>> number of decimals: could be zero and will be if decimal point char is empty >>>> >>>> negative sign character: always present >>>> >>>> negative sign position: 1= at the start of the formatted number , 0= at the end of the formatted number >>>> >>>> group separator character: Specifies the character separator used for grouping digits to the left of the decimal delimiter in formatted monetary quantities. Could be present even if no decimal delimiter is specified. Also could be empty, meaning no grouping. >>>> >>>> grouping spec: Specifies a string that defines the size of each group of digits in formatted monetary quantities. Only present if the group separator is not empty. Consists of a sequence of semicolon-separated integers. Each integer specifies the number of digits in a group. The initial integer defines the size of the group immediately to the left of the decimal delimiter. The following integers define succeeding groups to the left of the previous group. If the last integer is not -1, the size of the previous group (if any) is repeatedly used for the remainder of the digits. If the last integer is -1, no further grouping is performed. >>>> >>>> Deadline is midnight Friday March 4th, California time. Good luck! >>>> >>>> Pete Haworth >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From andre at andregarzia.com Wed Mar 2 12:14:58 2011 From: andre at andregarzia.com (Andre Garzia) Date: Wed, 2 Mar 2011 14:14:58 -0300 Subject: A curious case In-Reply-To: <4D6E6FD1.9020305@fourthworld.com> References: <4D6E6FD1.9020305@fourthworld.com> Message-ID: > > 2. If a function is longer than can be viewed in one screen, it may be a > good candidate for breaking it up into smaller functions. > > Never, ever look into the process_request command inside RevHTTP..... it has so many pages that I've considered adding an index... (and yes, there is really no reason why it can't be broken up... I was lazy) -- http://www.andregarzia.com All We Do Is Code. From pete at mollysrevenge.com Wed Mar 2 12:17:57 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Wed, 2 Mar 2011 09:17:57 -0800 Subject: Following up on shell(locale) problem In-Reply-To: <1299083828.2253.78.camel@mint-i7> References: <34DC7291-AC14-4811-B6D8-C1A9EE66425E@mollysrevenge.com> <1299015751.2309.144.camel@mint-i7> <5562DCD1-FF04-4166-83DB-9A91543B2CC6@mollysrevenge.com> <1299018362.2309.166.camel@mint-i7> <5244F6D0-E1FC-4F8B-A63F-25ECA4D149A8@mollysrevenge.com> <07A9020F-E5D3-45BE-8914-40672507030A@mollysrevenge.com> <1299083828.2253.78.camel@mint-i7> Message-ID: That's what happens with me too. This is getting stranger! I've posted this as a bug in the QC. I'm not 100% it's a Livecode problem since the same thing occurs using Applescript but someone at RunRev may be able to enlighten me on what's going on. Pete Haworth -------------- next part -------------- http://www.mollysrevenge.com http://www.sonicbids.com/MollysRevenge http://www.myspace.com/mollysrevengeband On Mar 2, 2011, at 8:37 AM, Warren Samples wrote: > On Tue, 2011-03-01 at 18:10 -0800, Peter Haworth wrote: >> That's definitely an option if I don't find a solution to getting the locale info from within LiveCode. Unfortunately, I know nothing about python. I've been sent some pretty cool LC scripts to do this formatting in response to my post about it. I'm almost at the point where I will just have the user enter these prefs into my app then use the scripts people have given me to do the fomatting. >> >> Pete Haworth >> > > > Peter, > > Try running 'locfale -k LC_CTYPE' > > Running that command in Terminal returns 'charmap="UTF-8"' but in > Livecode it returns 'charmap="US-ASCII"' for me. > > Good luck :) > > Warren > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at mollysrevenge.com Wed Mar 2 12:22:58 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Wed, 2 Mar 2011 09:22:58 -0800 Subject: locale Problem Solved! Message-ID: <30107246-5B92-45FD-910A-55A4D7FA777B@mollysrevenge.com> I just got a response to the bug report I posted on the QC yesterday, as follows. Hi Peter, Thanks for the report. The 'locale' command uses the value of the LANG environment variable to determine what locale should be used to return its results. It would appear that the OS is *not* setting this for applications launched from the Desktop, hence when you use 'shell' in LiveCode (which uses the same environment variables passed to LiveCode) the locale function defaults to the empty locale (which has no monetary settings). To make the shell function work as you need, try this: put line 1 of shell("defaults read .GlobalPreferences AppleLocale") into $LANG put uniDecode(uniEncode(shell("locale -k LC_MONETARY"), "utf8")) into tLocale Hope this helps, Warmest Regards, Mark. I have tested this and it does indeed produce the correct results. Now I can get on with my life! Thanks to everyone who tried helping me out with this. Pete Haworth From pete at mollysrevenge.com Wed Mar 2 12:57:34 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Wed, 2 Mar 2011 09:57:34 -0800 Subject: Enhancements for getting number/monetary formats Message-ID: <100ED5A9-E3AE-45A6-93CB-F629D4B953BF@mollysrevenge.com> There are a couple of enhancement requests at the QC regarding this. #3392 dates back to 2006 and is a request to be able get the OS number and monetary format information. #9422 was entered by me yesterday and requests a method of formatting numbers and monetary values per the OS settings, perhaps with some variant of the convert command. Guess how many votes I cast for each one! Pete Haworth From bobs at twft.com Wed Mar 2 13:06:02 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 2 Mar 2011 10:06:02 -0800 Subject: Enhancements for getting number/monetary formats In-Reply-To: <100ED5A9-E3AE-45A6-93CB-F629D4B953BF@mollysrevenge.com> References: <100ED5A9-E3AE-45A6-93CB-F629D4B953BF@mollysrevenge.com> Message-ID: Peter, if you put a link to the QC if you have it handy I will vote for it too. Otherwise I would have to actually go look for it myself, and I am too dam lazy. ;-) Bob On Mar 2, 2011, at 9:57 AM, Peter Haworth wrote: > There are a couple of enhancement requests at the QC regarding this. > > #3392 dates back to 2006 and is a request to be able get the OS number and monetary format information. > > #9422 was entered by me yesterday and requests a method of formatting numbers and monetary values per the OS settings, perhaps with some variant of the convert command. > > Guess how many votes I cast for each one! > > Pete Haworth > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at mollysrevenge.com Wed Mar 2 13:32:01 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Wed, 2 Mar 2011 10:32:01 -0800 Subject: Enhancements for getting number/monetary formats In-Reply-To: References: <100ED5A9-E3AE-45A6-93CB-F629D4B953BF@mollysrevenge.com> Message-ID: Good point Bob! Here they are: http://quality.runrev.com/qacenter/show_bug.cgi?id=9422 http://quality.runrev.com/qacenter/show_bug.cgi?id=3392 Pete Haworth -------------- next part -------------- http://www.mollysrevenge.com http://www.sonicbids.com/MollysRevenge http://www.myspace.com/mollysrevengeband On Mar 2, 2011, at 10:06 AM, Bob Sneidar wrote: > Peter, if you put a link to the QC if you have it handy I will vote for it too. Otherwise I would have to actually go look for it myself, and I am too dam lazy. ;-) > > Bob > > > On Mar 2, 2011, at 9:57 AM, Peter Haworth wrote: > >> There are a couple of enhancement requests at the QC regarding this. >> >> #3392 dates back to 2006 and is a request to be able get the OS number and monetary format information. >> >> #9422 was entered by me yesterday and requests a method of formatting numbers and monetary values per the OS settings, perhaps with some variant of the convert command. >> >> Guess how many votes I cast for each one! >> >> Pete Haworth >> >> >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at mollysrevenge.com Wed Mar 2 14:20:18 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Wed, 2 Mar 2011 11:20:18 -0800 Subject: Debug Break Point Problem Message-ID: <0EE77B9F-1A1E-4667-8FBD-6FA4220C8967@mollysrevenge.com> I set a debug breakpoint in the preOpenCard handler of the only card in a Main stack, save it, then quit and rerun that main stack. The code doesn't break at that point and I'm certain it's being executed. Is there a known problem with break points in these circumstances? Thanks, Pete Haworth From ray at linkit.com Wed Mar 2 14:27:42 2011 From: ray at linkit.com (Ray Horsley) Date: Wed, 2 Mar 2011 14:27:42 -0500 Subject: Editing a Cell in a Datagrid Message-ID: <003301cbd90f$e75e12b0$b61a3810$@LinkIt.Com> Greetings, LiveCode's datagrid seems kind of sticky to me. I'm simply trying to open up any given cell for editing without obligating the user to double-click it. I'm not having any luck with the commands from the tutorials such as EditFieldText, EditValue, EditKey and EditKeyOfIndex. EditFieldText seems most likely but it never likes the parameters I send it. EditCell seems pretty straight forward by simply passing the column name and line number but this produces an error that no such handler exists. Any ideas? Thanks, Ray From bobs at twft.com Wed Mar 2 14:36:38 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 2 Mar 2011 11:36:38 -0800 Subject: Debug Break Point Problem In-Reply-To: <0EE77B9F-1A1E-4667-8FBD-6FA4220C8967@mollysrevenge.com> References: <0EE77B9F-1A1E-4667-8FBD-6FA4220C8967@mollysrevenge.com> Message-ID: I recall having this problem before. I don't think breakpoints work in preOpenCard and preOpenStack. But I might be mistaken. Bob On Mar 2, 2011, at 11:20 AM, Peter Haworth wrote: > I set a debug breakpoint in the preOpenCard handler of the only card in a Main stack, save it, then quit and rerun that main stack. The code doesn't break at that point and I'm certain it's being executed. Is there a known problem with break points in these circumstances? > > Thanks, > > Pete Haworth > > > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dunbarx at aol.com Wed Mar 2 14:43:22 2011 From: dunbarx at aol.com (dunbarx at aol.com) Date: Wed, 02 Mar 2011 14:43:22 -0500 Subject: Debug Break Point Problem In-Reply-To: <0EE77B9F-1A1E-4667-8FBD-6FA4220C8967@mollysrevenge.com> References: <0EE77B9F-1A1E-4667-8FBD-6FA4220C8967@mollysrevenge.com> Message-ID: <8CDA729393DB125-5F8-D631@webmail-d140.sysops.aol.com> I don't know if you mean a "breakpoint" command inserted in a script, or a breakpoint set with the little orange ball. But in either case these are remembered between sessions for me. HC did not save the manual breakpoint; of course it saved the command. -----Original Message----- From: Peter Haworth To: How to use LiveCode Sent: Wed, Mar 2, 2011 2:20 pm Subject: Debug Break Point Problem I set a debug breakpoint in the preOpenCard handler of the only card in a Main stack, save it, then quit and rerun that main stack. The code doesn't break at that point and I'm certain it's being executed. Is there a known problem with break points in these circumstances? Thanks, Pete Haworth _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From dunbarx at aol.com Wed Mar 2 14:45:34 2011 From: dunbarx at aol.com (dunbarx at aol.com) Date: Wed, 02 Mar 2011 14:45:34 -0500 Subject: Debug Break Point Problem In-Reply-To: References: <0EE77B9F-1A1E-4667-8FBD-6FA4220C8967@mollysrevenge.com> Message-ID: <8CDA729882F0AE5-5F8-D69E@webmail-d140.sysops.aol.com> It seems so. I had tried it in a button handler, to see if it persisted. It did not in a preOpenStack handler in a stack script. -----Original Message----- From: Bob Sneidar To: How to use LiveCode Sent: Wed, Mar 2, 2011 2:36 pm Subject: Re: Debug Break Point Problem I recall having this problem before. I don't think breakpoints work in preOpenCard and preOpenStack. But I might be mistaken. Bob On Mar 2, 2011, at 11:20 AM, Peter Haworth wrote: > I set a debug breakpoint in the preOpenCard handler of the only card in a Main stack, save it, then quit and rerun that main stack. The code doesn't break at that point and I'm certain it's being executed. Is there a known problem with break points in these circumstances? > > Thanks, > > Pete Haworth > > > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From pete at mollysrevenge.com Wed Mar 2 14:49:48 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Wed, 2 Mar 2011 11:49:48 -0800 Subject: Debug Break Point Problem In-Reply-To: <8CDA729393DB125-5F8-D631@webmail-d140.sysops.aol.com> References: <0EE77B9F-1A1E-4667-8FBD-6FA4220C8967@mollysrevenge.com> <8CDA729393DB125-5F8-D631@webmail-d140.sysops.aol.com> Message-ID: <7FC5A08A-1EFA-4110-A911-21E36276BD64@mollysrevenge.com> Haven't tried the breakpoint command, just setting the little orange (red?) ball. The red ball is still there after I rerun the stack but the breakpoint doesn;t happen. Pete Haworth On Mar 2, 2011, at 11:43 AM, dunbarx at aol.com wrote: > I don't know if you mean a "breakpoint" command inserted in a script, or a breakpoint set with the little orange ball. > > > But in either case these are remembered between sessions for me. HC did not save the manual breakpoint; of course it saved the command. > > > > > > -----Original Message----- > From: Peter Haworth > To: How to use LiveCode > Sent: Wed, Mar 2, 2011 2:20 pm > Subject: Debug Break Point Problem > > > I set a debug breakpoint in the preOpenCard handler of the only card in a Main > stack, save it, then quit and rerun that main stack. The code doesn't break at > that point and I'm certain it's being executed. Is there a known problem with > break points in these circumstances? > > Thanks, > > Pete Haworth > > > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Wed Mar 2 14:55:59 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 02 Mar 2011 13:55:59 -0600 Subject: Debug Break Point Problem In-Reply-To: <7FC5A08A-1EFA-4110-A911-21E36276BD64@mollysrevenge.com> References: <0EE77B9F-1A1E-4667-8FBD-6FA4220C8967@mollysrevenge.com> <8CDA729393DB125-5F8-D631@webmail-d140.sysops.aol.com> <7FC5A08A-1EFA-4110-A911-21E36276BD64@mollysrevenge.com> Message-ID: <4D6EA0CF.3070306@hyperactivesw.com> On 3/2/11 1:49 PM, Peter Haworth wrote: > Haven't tried the breakpoint command, just setting the little orange > (red?) ball. The red ball is still there after I rerun the stack but > the breakpoint doesn;t happen. The IDE overrides some of this. Use the word "breakpoint" inserted into the script instead of clicking to get a red dot. The word will work. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at mollysrevenge.com Wed Mar 2 15:04:24 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Wed, 2 Mar 2011 12:04:24 -0800 Subject: Debug Break Point Problem In-Reply-To: <4D6EA0CF.3070306@hyperactivesw.com> References: <0EE77B9F-1A1E-4667-8FBD-6FA4220C8967@mollysrevenge.com> <8CDA729393DB125-5F8-D631@webmail-d140.sysops.aol.com> <7FC5A08A-1EFA-4110-A911-21E36276BD64@mollysrevenge.com> <4D6EA0CF.3070306@hyperactivesw.com> Message-ID: <89A19C60-6CA0-49C9-A825-904EF300E9A0@mollysrevenge.com> Yes, that works! Thank you. Pete Haworth -------------- next part -------------- http://www.mollysrevenge.com http://www.sonicbids.com/MollysRevenge http://www.myspace.com/mollysrevengeband On Mar 2, 2011, at 11:55 AM, J. Landman Gay wrote: > On 3/2/11 1:49 PM, Peter Haworth wrote: >> Haven't tried the breakpoint command, just setting the little orange >> (red?) ball. The red ball is still there after I rerun the stack but >> the breakpoint doesn;t happen. > > The IDE overrides some of this. Use the word "breakpoint" inserted into the script instead of clicking to get a red dot. The word will work. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ray at linkit.com Wed Mar 2 15:08:56 2011 From: ray at linkit.com (Ray Horsley) Date: Wed, 2 Mar 2011 15:08:56 -0500 Subject: Editing a Cell in a Datagrid Message-ID: <003801cbd915$aa018cc0$fe04a640$@LinkIt.Com> Please disregard. I got it! (One of those embarrassing little oversights) Thanks, Ray From powai903 at yahoo.com Wed Mar 2 16:14:16 2011 From: powai903 at yahoo.com (Vikram Singh) Date: Thu, 3 Mar 2011 02:44:16 +0530 (IST) Subject: ipad 2 graphics much more powerful - LIVECODE impact In-Reply-To: <8CDA729393DB125-5F8-D631@webmail-d140.sysops.aol.com> References: <0EE77B9F-1A1E-4667-8FBD-6FA4220C8967@mollysrevenge.com> <8CDA729393DB125-5F8-D631@webmail-d140.sysops.aol.com> Message-ID: <910583.98361.qm@web94708.mail.in2.yahoo.com> Hi Hoping that animations, scrolling and pinch to zoom etc, will now become acceptably smooth... then we are on a level playing field?with other toolkits. or does this?impact only hardware accelerated graphics (which livecode is not i presume) cheers vikram From eps11 at mac.com Wed Mar 2 16:14:01 2011 From: eps11 at mac.com (Eric Peyron) Date: Wed, 02 Mar 2011 22:14:01 +0100 Subject: Creating a scrollview with Livecode Message-ID: Thanks Jim! I just copied the code, cleaned it up a little, tweaked it and it works! One of the things I can't seem to grasp right now is why the scrolling is disabled when I change iphoneControlSet sScrollerId, "visible", "true" into iphoneControlSet sScrollerId, "visible", "false" What I want is to hide the scroller so that the reader can only see the image. When I enter false, it hides the scroller, but not the part where it should be, and the image doesn't scroll anymore. Does someone have a way to just enable scrolling and not showing the scroller part? The scrolling part of the code also seems to cancel the zooming part of the code. The scrolling part comes from the Mobile Scroller Example stack, and the resizing part from the iPhone Pinch Lesson stack. Does someone have an idea of what part of these codes is canceling the other part? Thanks in advance, Eric From jimaultwins at yahoo.com Wed Mar 2 16:38:22 2011 From: jimaultwins at yahoo.com (Jim Ault) Date: Wed, 2 Mar 2011 13:38:22 -0800 Subject: Creating a scrollview with Livecode In-Reply-To: References: Message-ID: <0F736AA5-4C04-4871-BA22-98B5F38A909E@yahoo.com> On Mar 2, 2011, at 1:14 PM, Eric Peyron wrote: > Thanks Jim! I just copied the code, cleaned it up a little, tweaked > it and it works! The code was offered by Scott Rossi, one of the LC gurus. Perhaps in the future, but I haven't done any work with iOS and mobile devices. Jim Ault Las Vegas From pmbrig at gmail.com Wed Mar 2 17:39:45 2011 From: pmbrig at gmail.com (Peter Brigham MD) Date: Wed, 2 Mar 2011 17:39:45 -0500 Subject: A curious case In-Reply-To: <4D6E6FD1.9020305@fourthworld.com> References: <4D6E6FD1.9020305@fourthworld.com> Message-ID: <96AA7144-EFC2-4059-B3EF-A43F5F196E5C@gmail.com> On Mar 2, 2011, at 11:26 AM, Richard Gaskin wrote: > Andre Garzia wrote: >> I tend to work on the same way. longer forms makes shorter >> understanding >> time. I'd rather write more and understand more than write faster >> and then >> one week from now, be completely lost in nested mazes > > Well said. > > And sometimes lengthy deeply-nested IFs are good candidates for a > switch block. > > I once stumbled across two tips about code style that have been very > helpful: > > 1. If a given function has nested IFs more than three levels deep, > it may be a good candidate for breaking it up into smaller functions. > > 2. If a function is longer than can be viewed in one screen, it may > be a good candidate for breaking it up into smaller functions. > > Sometimes those can't be applied for sound practical reasons, but > where they can oh boy does it make code more readable. I grapple with this all the time. My status with LC is "dedicated amateur," so I may not use the best practices, but.... One other consideration is breaking out a chunk of code when it needs to be reusable, but this is not without problems too. I have a number of text-processing handlers that parse out various context-sensitive options for constructing pop-up menus, inserting text strings that are themselves constructed using various if-else- then scenarios, etc, and these tend to result in very long handlers with lots of conditional branching. I keep trying to break up my long handlers into smaller chunks. What I run into is that to do this I often face trying to construct functions that require 8-10 parameters, which are cumbersome to call, since you have to keep careful track of the order in which to list things in the calling statement. Whereas within a long handler I can make use of multiple variables that already contain pieces of data and make use of them without having to pass them anywhere. I usually end up splitting off a chunk of code into a function when I find that I need to use it a number of times in different contexts. I end up with some handlers and functions that require lots of parameters but can be called from many different buttons, fields, menus, etc., in which case living with a long parameter list is well worth it for the flexibility. I have not yet found very many tricks to avoid long multivariable handers, given that I'm trying to provide extremely context-sensitive behavior. I do end up with some very sophisticated features, eg, constructing a prescription for printing or just logging, checking to ensure the med is not in the patient's allergy list, checking if a telephoned prescription is a controlled drug and therefore needs a faxed copy and if so then setting up a reminder to fax the copy (but only if there is a fax number listed for the patient's pharmacy, if not, then a reminder to get the fax number), logging the prescription in the notes field and the current meds list, calculating and noting the expected date the med will expire, loading the med into the prescription history, and checking to see if a serum blood level is (a) necessary and (b) overdue -- all with a mouseclick on the med listing line, and a couple of keypresses. It turns out that it is hard to break this kind of thing down into one- page handlers, but I keep trying. I tend to use switch blocks for long complex conditionals and if-else-then for the shorter conditionals, but I'm fairly sloppy about when I do one or the other. But I almost always construct if-else-then structures using the long form -- I heartily agree that it is much, much more readable. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From bobs at twft.com Wed Mar 2 18:03:46 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 2 Mar 2011 15:03:46 -0800 Subject: A curious case In-Reply-To: <96AA7144-EFC2-4059-B3EF-A43F5F196E5C@gmail.com> References: <4D6E6FD1.9020305@fourthworld.com> <96AA7144-EFC2-4059-B3EF-A43F5F196E5C@gmail.com> Message-ID: <1395C0FB-26A8-444D-99C5-F2CC6B2DC03E@twft.com> I think the switch control structure is pretty handy for this. If you put all the conditions that will not require a break at the top, then the program will flow down through your conditions and only execute the code inside your case statements if the conditions are true. Towards the end of the switch statement put the conditions that will break when met (if any). It reads much cleaner. Bob On Mar 2, 2011, at 2:39 PM, Peter Brigham MD wrote: > On Mar 2, 2011, at 11:26 AM, Richard Gaskin wrote: > >> Andre Garzia wrote: >>> I tend to work on the same way. longer forms makes shorter understanding >>> time. I'd rather write more and understand more than write faster and then >>> one week from now, be completely lost in nested mazes >> >> Well said. >> >> And sometimes lengthy deeply-nested IFs are good candidates for a switch block. >> >> I once stumbled across two tips about code style that have been very helpful: >> >> 1. If a given function has nested IFs more than three levels deep, it may be a good candidate for breaking it up into smaller functions. >> >> 2. If a function is longer than can be viewed in one screen, it may be a good candidate for breaking it up into smaller functions. >> >> Sometimes those can't be applied for sound practical reasons, but where they can oh boy does it make code more readable. > > I grapple with this all the time. My status with LC is "dedicated amateur," so I may not use the best practices, but.... One other consideration is breaking out a chunk of code when it needs to be reusable, but this is not without problems too. From pete at mollysrevenge.com Wed Mar 2 18:19:52 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Wed, 2 Mar 2011 15:19:52 -0800 Subject: A curious case In-Reply-To: <1395C0FB-26A8-444D-99C5-F2CC6B2DC03E@twft.com> References: <4D6E6FD1.9020305@fourthworld.com> <96AA7144-EFC2-4059-B3EF-A43F5F196E5C@gmail.com> <1395C0FB-26A8-444D-99C5-F2CC6B2DC03E@twft.com> Message-ID: <96F9099A-C730-4D85-9E4F-870E7AFD2DA0@mollysrevenge.com> Switch is definitley very handy but I wish it was more flexible. As far as I can tell, the case statement can only test for equality, for example: switch myvar case begins with "xyz" ... generates an error as does anything else other than just a straight value on the case line. I know you can do switch case myVar begins with "xyz" ...just seems like conditions other than = would be more elegant on the case line. Pete Haworth On Mar 2, 2011, at 3:03 PM, Bob Sneidar wrote: > I think the switch control structure is pretty handy for this. If you put all the conditions that will not require a break at the top, then the program will flow down through your conditions and only execute the code inside your case statements if the conditions are true. Towards the end of the switch statement put the conditions that will break when met (if any). It reads much cleaner. > > Bob > > > On Mar 2, 2011, at 2:39 PM, Peter Brigham MD wrote: > >> On Mar 2, 2011, at 11:26 AM, Richard Gaskin wrote: >> >>> Andre Garzia wrote: >>>> I tend to work on the same way. longer forms makes shorter understanding >>>> time. I'd rather write more and understand more than write faster and then >>>> one week from now, be completely lost in nested mazes >>> >>> Well said. >>> >>> And sometimes lengthy deeply-nested IFs are good candidates for a switch block. >>> >>> I once stumbled across two tips about code style that have been very helpful: >>> >>> 1. If a given function has nested IFs more than three levels deep, it may be a good candidate for breaking it up into smaller functions. >>> >>> 2. If a function is longer than can be viewed in one screen, it may be a good candidate for breaking it up into smaller functions. >>> >>> Sometimes those can't be applied for sound practical reasons, but where they can oh boy does it make code more readable. >> >> I grapple with this all the time. My status with LC is "dedicated amateur," so I may not use the best practices, but.... One other consideration is breaking out a chunk of code when it needs to be reusable, but this is not without problems too. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at mollysrevenge.com Wed Mar 2 19:20:15 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Wed, 2 Mar 2011 16:20:15 -0800 Subject: Julian Days and Eon seconds Message-ID: Why do I keep getting involved in these off-the-wall topics! I have a need to convert dates back and forth between the formats used by sqlite and human readable formats. LC has me covered for text string dates and dates stored in seconds but SQLIte can also store dates in Julian format, defined as the number of days since 11/24, 4714 BC. I guess it's a matter of conjecture as what's significant about that date but aside form that, I can't find anything in he LC dictionary that leads me to believe it can deal with dates in that format. Anyone come up with a way to deal with Julian dates/ Pete Haworth From alex at tweedly.net Wed Mar 2 19:28:04 2011 From: alex at tweedly.net (Alex Tweedly) Date: Thu, 03 Mar 2011 00:28:04 +0000 Subject: Julian Days and Eon seconds In-Reply-To: References: Message-ID: <4D6EE094.8090002@tweedly.net> "When it's important, go to Sarah's site." (with apologies to M&S :-) http://www.troz.net/rev/index.irev?category=Library#stacks -- Alex. On 03/03/2011 00:20, Peter Haworth wrote: > Why do I keep getting involved in these off-the-wall topics! > > I have a need to convert dates back and forth between the formats used by sqlite and human readable formats. LC has me covered for text string dates and dates stored in seconds but SQLIte can also store dates in Julian format, defined as the number of days since 11/24, 4714 BC. I guess it's a matter of conjecture as what's significant about that date but aside form that, I can't find anything in he LC dictionary that leads me to believe it can deal with dates in that format. Anyone come up with a way to deal with Julian dates/ > > Pete Haworth > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dunbarx at aol.com Wed Mar 2 19:33:33 2011 From: dunbarx at aol.com (dunbarx at aol.com) Date: Wed, 02 Mar 2011 19:33:33 -0500 Subject: A curious case In-Reply-To: <96F9099A-C730-4D85-9E4F-870E7AFD2DA0@mollysrevenge.com> References: <4D6E6FD1.9020305@fourthworld.com><96AA7144-EFC2-4059-B3EF-A43F5F196E5C@gmail.com><1395C0FB-26A8-444D-99C5-F2CC6B2DC03E@twft.com> <96F9099A-C730-4D85-9E4F-870E7AFD2DA0@mollysrevenge.com> Message-ID: <8CDA751C2CA2466-203C-4440@webmail-m142.sysops.aol.com> No, I think it can resolve any LC statement, no? put 3 into temp switch case temp < 4 put "lessThan" break case temp = 11 put "never see this" break end switch Craig Newman -----Original Message----- From: Peter Haworth To: How to use LiveCode Sent: Wed, Mar 2, 2011 6:19 pm Subject: Re: A curious case Switch is definitley very handy but I wish it was more flexible. As far as I can tell, the case statement can only test for equality, for example: switch myvar case begins with "xyz" ... generates an error as does anything else other than just a straight value on the case line. I know you can do switch case myVar begins with "xyz" ...just seems like conditions other than = would be more elegant on the case line. Pete Haworth On Mar 2, 2011, at 3:03 PM, Bob Sneidar wrote: > I think the switch control structure is pretty handy for this. If you put all the conditions that will not require a break at the top, then the program will flow down through your conditions and only execute the code inside your case statements if the conditions are true. Towards the end of the switch statement put the conditions that will break when met (if any). It reads much cleaner. > > Bob > > > On Mar 2, 2011, at 2:39 PM, Peter Brigham MD wrote: > >> On Mar 2, 2011, at 11:26 AM, Richard Gaskin wrote: >> >>> Andre Garzia wrote: >>>> I tend to work on the same way. longer forms makes shorter understanding >>>> time. I'd rather write more and understand more than write faster and then >>>> one week from now, be completely lost in nested mazes >>> >>> Well said. >>> >>> And sometimes lengthy deeply-nested IFs are good candidates for a switch block. >>> >>> I once stumbled across two tips about code style that have been very helpful: >>> >>> 1. If a given function has nested IFs more than three levels deep, it may be a good candidate for breaking it up into smaller functions. >>> >>> 2. If a function is longer than can be viewed in one screen, it may be a good candidate for breaking it up into smaller functions. >>> >>> Sometimes those can't be applied for sound practical reasons, but where they can oh boy does it make code more readable. >> >> I grapple with this all the time. My status with LC is "dedicated amateur," so I may not use the best practices, but.... One other consideration is breaking out a chunk of code when it needs to be reusable, but this is not without problems too. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From pete at mollysrevenge.com Wed Mar 2 20:03:12 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Wed, 2 Mar 2011 17:03:12 -0800 Subject: A curious case In-Reply-To: <8CDA751C2CA2466-203C-4440@webmail-m142.sysops.aol.com> References: <4D6E6FD1.9020305@fourthworld.com><96AA7144-EFC2-4059-B3EF-A43F5F196E5C@gmail.com><1395C0FB-26A8-444D-99C5-F2CC6B2DC03E@twft.com> <96F9099A-C730-4D85-9E4F-870E7AFD2DA0@mollysrevenge.com> <8CDA751C2CA2466-203C-4440@webmail-m142.sysops.aol.com> Message-ID: Yes, I know that's possible. But it can't do: switch temp case < 4 break case > 10 break end switch Pete Haworth On Mar 2, 2011, at 4:33 PM, DunbarX at aol.com wrote: > No, I think it can resolve any LC statement, no? > > > put 3 into temp > switch > case temp < 4 > put "lessThan" > break > case temp = 11 > put "never see this" > break > end switch > > > Craig Newman > > > > > > -----Original Message----- > From: Peter Haworth > To: How to use LiveCode > Sent: Wed, Mar 2, 2011 6:19 pm > Subject: Re: A curious case > > > Switch is definitley very handy but I wish it was more flexible. As far as I > can tell, the case statement can only test for equality, for example: > > switch myvar > case begins with "xyz" > > ... generates an error as does anything else other than just a straight value on > the case line. > > I know you can do > > switch > case myVar begins with "xyz" > > ...just seems like conditions other than = would be more elegant on the case > line. > > Pete Haworth > > On Mar 2, 2011, at 3:03 PM, Bob Sneidar wrote: > >> I think the switch control structure is pretty handy for this. If you put all > the conditions that will not require a break at the top, then the program will > flow down through your conditions and only execute the code inside your case > statements if the conditions are true. Towards the end of the switch statement > put the conditions that will break when met (if any). It reads much cleaner. >> >> Bob >> >> >> On Mar 2, 2011, at 2:39 PM, Peter Brigham MD wrote: >> >>> On Mar 2, 2011, at 11:26 AM, Richard Gaskin wrote: >>> >>>> Andre Garzia wrote: >>>>> I tend to work on the same way. longer forms makes shorter understanding >>>>> time. I'd rather write more and understand more than write faster and then >>>>> one week from now, be completely lost in nested mazes >>>> >>>> Well said. >>>> >>>> And sometimes lengthy deeply-nested IFs are good candidates for a switch > block. >>>> >>>> I once stumbled across two tips about code style that have been very > helpful: >>>> >>>> 1. If a given function has nested IFs more than three levels deep, it may be > a good candidate for breaking it up into smaller functions. >>>> >>>> 2. If a function is longer than can be viewed in one screen, it may be a > good candidate for breaking it up into smaller functions. >>>> >>>> Sometimes those can't be applied for sound practical reasons, but where they > can oh boy does it make code more readable. >>> >>> I grapple with this all the time. My status with LC is "dedicated amateur," > so I may not use the best practices, but.... One other consideration is breaking > out a chunk of code when it needs to be reusable, but this is not without > problems too. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jimaultwins at yahoo.com Wed Mar 2 20:03:45 2011 From: jimaultwins at yahoo.com (Jim Ault) Date: Wed, 2 Mar 2011 17:03:45 -0800 Subject: A curious case In-Reply-To: <96F9099A-C730-4D85-9E4F-870E7AFD2DA0@mollysrevenge.com> References: <4D6E6FD1.9020305@fourthworld.com> <96AA7144-EFC2-4059-B3EF-A43F5F196E5C@gmail.com> <1395C0FB-26A8-444D-99C5-F2CC6B2DC03E@twft.com> <96F9099A-C730-4D85-9E4F-870E7AFD2DA0@mollysrevenge.com> Message-ID: On Mar 2, 2011, at 3:19 PM, Peter Haworth wrote: > Switch is definitley very handy but I wish it was more flexible. As > far as I can tell, the case statement can only test for equality, > for example: > > switch myvar > case begins with "xyz" > > ... generates an error as does anything else other than just a > straight value on the case line. > > I know you can do > > switch > case myVar begins with "xyz" > ...just seems like conditions other than = would be more elegant on > the case line. You can actually test for anything that resolves to true or false. put (the width of this stack div 2) > 154 into testValue put the locktext of fld 1 into testValue get the script of this stack put the number of lines in IT into testValue switch testValue case true ---------------------- put the textcolor of fld 1 into testValue switch testValue case "red" case "yellow" case "orange" put "red" into newFontColor break case "green" case "blue" case "purple" put "green" into newFontColor break case (testValue is among the words in "pink coral azure maize") put "darkBlue" into newFontColor break default put "black" into newFontColor end switch set the textcolor of fld 1 to newFontColor Hope this gives you many ideas. Jim Ault Las Vegas From jimaultwins at yahoo.com Wed Mar 2 20:25:20 2011 From: jimaultwins at yahoo.com (Jim Ault) Date: Wed, 2 Mar 2011 17:25:20 -0800 Subject: A curious case (fixed typo) In-Reply-To: References: <4D6E6FD1.9020305@fourthworld.com> <96AA7144-EFC2-4059-B3EF-A43F5F196E5C@gmail.com> <1395C0FB-26A8-444D-99C5-F2CC6B2DC03E@twft.com> <96F9099A-C730-4D85-9E4F-870E7AFD2DA0@mollysrevenge.com> Message-ID: <8ED451FD-83D8-4D3C-9AE0-A05074128612@yahoo.com> was: > case (testValue is among the words IN "pink coral azure maize") should be: case (testValue is among the words "pink coral azure maize") On Mar 2, 2011, at 5:03 PM, Jim Ault wrote: > > On Mar 2, 2011, at 3:19 PM, Peter Haworth wrote: > >> Switch is definitley very handy but I wish it was more flexible. >> As far as I can tell, the case statement can only test for >> equality, for example: >> >> switch myvar >> case begins with "xyz" >> >> ... generates an error as does anything else other than just a >> straight value on the case line. >> >> I know you can do >> >> switch >> case myVar begins with "xyz" >> ...just seems like conditions other than = would be more elegant on >> the case line. > > You can actually test for anything that resolves to true or false. > > put (the width of this stack div 2) > 154 into testValue > > put the locktext of fld 1 into testValue > > get the script of this stack > put the number of lines in IT into testValue > > switch testValue > case true > > ---------------------- > put the textcolor of fld 1 into testValue > > switch testValue > case "red" > case "yellow" > case "orange" > put "red" into newFontColor > break > case "green" > case "blue" > case "purple" > put "green" into newFontColor > break > case (testValue is among the words "pink coral azure maize") > put "darkBlue" into newFontColor > break > default > put "black" into newFontColor > end switch > > set the textcolor of fld 1 to newFontColor > > Hope this gives you many ideas. Jim Ault Las Vegas From pete at mollysrevenge.com Wed Mar 2 20:26:50 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Wed, 2 Mar 2011 17:26:50 -0800 Subject: Julian Days and Eon seconds In-Reply-To: <4D6EE094.8090002@tweedly.net> References: <4D6EE094.8090002@tweedly.net> Message-ID: <4E5B4D0A-6DC3-437B-B4E7-D809A1397436@mollysrevenge.com> Ah yes, forgot about that! I looked in Sarah's date routines and found what I'm looking for.... BUT - it says the base date is January 1, 4713 BCE and SQLite says the base date is 11/24, 4714 BC, a few months after Sarah;s base date. Maybe I'll just give it a whirl and see what happens. Pete Haworth On Mar 2, 2011, at 4:28 PM, Alex Tweedly wrote: > "When it's important, go to Sarah's site." (with apologies to M&S :-) > > http://www.troz.net/rev/index.irev?category=Library#stacks > > -- Alex. > > > > On 03/03/2011 00:20, Peter Haworth wrote: >> Why do I keep getting involved in these off-the-wall topics! >> >> I have a need to convert dates back and forth between the formats used by sqlite and human readable formats. LC has me covered for text string dates and dates stored in seconds but SQLIte can also store dates in Julian format, defined as the number of days since 11/24, 4714 BC. I guess it's a matter of conjecture as what's significant about that date but aside form that, I can't find anything in he LC dictionary that leads me to believe it can deal with dates in that format. Anyone come up with a way to deal with Julian dates/ >> >> Pete Haworth >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at mollysrevenge.com Wed Mar 2 21:32:41 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Wed, 2 Mar 2011 18:32:41 -0800 Subject: Julian Days and Eon seconds In-Reply-To: <4E5B4D0A-6DC3-437B-B4E7-D809A1397436@mollysrevenge.com> References: <4D6EE094.8090002@tweedly.net> <4E5B4D0A-6DC3-437B-B4E7-D809A1397436@mollysrevenge.com> Message-ID: Never mind, just realised that SQlite can do all the conversion for me. Pete Haworth -------------- next part -------------- http://www.mollysrevenge.com http://www.sonicbids.com/MollysRevenge http://www.myspace.com/mollysrevengeband On Mar 2, 2011, at 5:26 PM, Peter Haworth wrote: > Ah yes, forgot about that! I looked in Sarah's date routines and found what I'm looking for.... BUT - it says the base date is January 1, 4713 BCE and SQLite says the base date is 11/24, 4714 BC, a few months after Sarah;s base date. > > Maybe I'll just give it a whirl and see what happens. > > Pete Haworth > > On Mar 2, 2011, at 4:28 PM, Alex Tweedly wrote: > >> "When it's important, go to Sarah's site." (with apologies to M&S :-) >> >> http://www.troz.net/rev/index.irev?category=Library#stacks >> >> -- Alex. >> >> >> >> On 03/03/2011 00:20, Peter Haworth wrote: >>> Why do I keep getting involved in these off-the-wall topics! >>> >>> I have a need to convert dates back and forth between the formats used by sqlite and human readable formats. LC has me covered for text string dates and dates stored in seconds but SQLIte can also store dates in Julian format, defined as the number of days since 11/24, 4714 BC. I guess it's a matter of conjecture as what's significant about that date but aside form that, I can't find anything in he LC dictionary that leads me to believe it can deal with dates in that format. Anyone come up with a way to deal with Julian dates/ >>> >>> Pete Haworth >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From keith.clarke at clarkeandclarke.co.uk Thu Mar 3 08:09:52 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Thu, 3 Mar 2011 13:09:52 +0000 Subject: GLX application framework: application stacks and .dat files? Message-ID: <627BACD2-1219-40DA-B0A1-B115327757BB@clarkeandclarke.co.uk> Hi folks, I'm trying to configure a GLX application framework for my first 'proper' application but I'm struggling with getting my stack to be launched by the GLX launcher stack... I have copied my 'app.rev' stack file into the GLX application directory, successfully added it as a stack (a required, load on start-up, window type) and deleted the default program.dat stack reference. I have also updated the application stack script's kProgramStackName Constant to 'admin' (and I've also tried 'admin.rev'). This is the related GLX lesson http://revolution.screenstepslive.com/spaces/revolution/manuals/glxapp/lessons/6698-Incorporating-Your-Program-Stack-Into-the-Framework-Based-Application But, if I open the launcher app in LiveCode, my stack doesn't get loaded or opened. Am I missing something obvious here? What are these GLX .dat stack files all about, anyway? Best, Keith.. From lists at mangomultimedia.com Thu Mar 3 08:58:18 2011 From: lists at mangomultimedia.com (Trevor DeVore) Date: Thu, 3 Mar 2011 08:58:18 -0500 Subject: GLX application framework: application stacks and .dat files? In-Reply-To: <627BACD2-1219-40DA-B0A1-B115327757BB@clarkeandclarke.co.uk> References: <627BACD2-1219-40DA-B0A1-B115327757BB@clarkeandclarke.co.uk> Message-ID: On Thu, Mar 3, 2011 at 8:09 AM, Keith Clarke < keith.clarke at clarkeandclarke.co.uk> wrote: > Hi folks, > I'm trying to configure a GLX application framework for my first 'proper' > application but I'm struggling with getting my stack to be launched by the > GLX launcher stack... > > I have copied my 'app.rev' stack file into the GLX application directory, > successfully added it as a stack (a required, load on start-up, window type) > and deleted the default program.dat stack reference. I have also updated the > application stack script's kProgramStackName Constant to 'admin' (and I've > also tried 'admin.rev'). This is the related GLX lesson > http://revolution.screenstepslive.com/spaces/revolution/manuals/glxapp/lessons/6698-Incorporating-Your-Program-Stack-Into-the-Framework-Based-Application > But, if I open the launcher app in LiveCode, my stack doesn't get loaded or > opened. Am I missing something obvious here? Questions: * What happens when you click on the launcher stack? Does it disappear and then nothing happens? * Is "admin" the name of the main stack that is stored in your app.rev stack file in memory? To start troubleshooting this you can add a breakpoint to the glxapp_openApplication handler in the application stack script. This is the handler that opens the stack targeted by kProgramStackName. When you get to the breakpoint you can refresh the list of stacks in the Application Browser (little refresh button at the bottom of the left column in the Application Browser) and verify that you have a stack in memory whose name matches the value of kProgramStackName. If you aren't familiar with using the debugger then you could add the following line to the glxapp_openApplication handler: answer there is a stack kProgramStackName > What are these GLX .dat stack files all about, anyway? This lesson explains what each .dat file does. http://revolution.screenstepslive.com/spaces/revolution/manuals/glxapp/lessons/5545-Understanding-How-The-Framework-Is-Designed -- Trevor DeVore Blue Mango Learning Systems ScreenSteps: http://www.screensteps.com LiveCode Resources for Developers: http://livecode.bluemangolearning.com From keith.clarke at clarkeandclarke.co.uk Thu Mar 3 10:37:06 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Thu, 3 Mar 2011 15:37:06 +0000 Subject: GLX application framework: application stacks and .dat files? In-Reply-To: References: <627BACD2-1219-40DA-B0A1-B115327757BB@clarkeandclarke.co.uk> Message-ID: Trevor, Thanks for the response - sorted! This was the key question that led me to the fix. > > * Is "admin" the name of the main stack that is stored in your app.rev stack > file in memory? I had the Application stack's kProgramStackName pointing at the name of the .rev file I had added within the Stacks and Externals configuration dialogue, rather than the main stack name *within* this file. Now that I understand this subtle difference in terminology between 'stack and 'stack file', might I suggest an enhancement to this lesson to help future readers? It would really aid clarity if an example application was shown through the steps, alongside the default files to be deleted. Perhaps an .rev file called, say, 'my_new_app.rev' and its main stack, called 'my_main_stack', with the following tweaks(?): 1. Move Your Stack Files into Application Directory: Add a 'my_new_app.rev' file in the finder, under the program.dat file; identifying in the the notes, (1) the file added and (2) program.dat to be deleted. 2. Update Application Stacks: Show the added .rev file to show that it's OK to have files that don't have a .dat suffix (I was trying to open the .rev bundle on OSX to extract individual stack files, before I realised that 'stack file' was not an individual stack, extracted as a 'stack.dat' file but rather, a 'file of stacks' or more simply, a '.rev' file!) 3. Edit kProgramStackName Constant: Extend the first sentence to read '...to match the name of the main program stack, for example, 'my_main_stack'. BTW I had read the lesson on the purpose of the various '.dat' files - my question was more regarding why '.dat' rather than .rev, etc? Best, Keith.. From RevList at CreaTECHSol.com Thu Mar 3 11:28:55 2011 From: RevList at CreaTECHSol.com (RevList) Date: Thu, 03 Mar 2011 08:28:55 -0800 Subject: Drag and Drop Row Arrangement in DataGrid Message-ID: I don't know if this is possible or not, but I thought I would ask. If you turn off sorting in a datagrid, is it possible to do drag and drop rearranging of rows? Has anyone done this? Is there a lesson on this, or does someone have a sample stack that would demonstrate this? Thank in advance. ****************************************** Stewart Lynch CreaTECH Solutions slynch at CreaTECHSol.com 604.484.8499 Skype:StewartLynch There are only 10 kinds of people. Those who understand binary and those who don't. ****************************************** From bobs at twft.com Thu Mar 3 11:41:15 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 3 Mar 2011 08:41:15 -0800 Subject: A curious case In-Reply-To: <8CDA751C2CA2466-203C-4440@webmail-m142.sysops.aol.com> References: <4D6E6FD1.9020305@fourthworld.com><96AA7144-EFC2-4059-B3EF-A43F5F196E5C@gmail.com><1395C0FB-26A8-444D-99C5-F2CC6B2DC03E@twft.com> <96F9099A-C730-4D85-9E4F-870E7AFD2DA0@mollysrevenge.com> <8CDA751C2CA2466-203C-4440@webmail-m142.sysops.aol.com> Message-ID: <2D35D7EA-A33A-48C1-A3AE-EDEFAE95D0A8@twft.com> I think he means that he was familiar with an IDE which used switch to test for different values of a variable, and each case statement was for value of the variable. I can see it being used in that form, but it seems to me that is actually more limiting not more flexible. In that form the ONLY thing you could test for is the value of the variable. Bob On Mar 2, 2011, at 4:33 PM, DunbarX at aol.com wrote: > No, I think it can resolve any LC statement, no? > > > put 3 into temp > switch > case temp < 4 > put "lessThan" > break > case temp = 11 > put "never see this" > break > end switch > > > Craig Newman > > > > > > -----Original Message----- > From: Peter Haworth > To: How to use LiveCode > Sent: Wed, Mar 2, 2011 6:19 pm > Subject: Re: A curious case > > > Switch is definitley very handy but I wish it was more flexible. As far as I > can tell, the case statement can only test for equality, for example: > > switch myvar > case begins with "xyz" > > ... generates an error as does anything else other than just a straight value on > the case line. > > I know you can do > > switch > case myVar begins with "xyz" > > ...just seems like conditions other than = would be more elegant on the case > line. > > Pete Haworth > > On Mar 2, 2011, at 3:03 PM, Bob Sneidar wrote: > >> I think the switch control structure is pretty handy for this. If you put all > the conditions that will not require a break at the top, then the program will > flow down through your conditions and only execute the code inside your case > statements if the conditions are true. Towards the end of the switch statement > put the conditions that will break when met (if any). It reads much cleaner. >> >> Bob >> >> >> On Mar 2, 2011, at 2:39 PM, Peter Brigham MD wrote: >> >>> On Mar 2, 2011, at 11:26 AM, Richard Gaskin wrote: >>> >>>> Andre Garzia wrote: >>>>> I tend to work on the same way. longer forms makes shorter understanding >>>>> time. I'd rather write more and understand more than write faster and then >>>>> one week from now, be completely lost in nested mazes >>>> >>>> Well said. >>>> >>>> And sometimes lengthy deeply-nested IFs are good candidates for a switch > block. >>>> >>>> I once stumbled across two tips about code style that have been very > helpful: >>>> >>>> 1. If a given function has nested IFs more than three levels deep, it may be > a good candidate for breaking it up into smaller functions. >>>> >>>> 2. If a function is longer than can be viewed in one screen, it may be a > good candidate for breaking it up into smaller functions. >>>> >>>> Sometimes those can't be applied for sound practical reasons, but where they > can oh boy does it make code more readable. >>> >>> I grapple with this all the time. My status with LC is "dedicated amateur," > so I may not use the best practices, but.... One other consideration is breaking > out a chunk of code when it needs to be reusable, but this is not without > problems too. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobs at twft.com Thu Mar 3 11:43:00 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 3 Mar 2011 08:43:00 -0800 Subject: Julian Days and Eon seconds In-Reply-To: References: Message-ID: <672B3097-73E9-4E51-B986-AD706B218CFD@twft.com> Gee, I wonder what happened on that date? Bob On Mar 2, 2011, at 4:20 PM, Peter Haworth wrote: > LC has me covered for text string dates and dates stored in seconds but SQLIte can also store dates in Julian format, defined as the number of days since 11/24, 4714 BC. From bobs at twft.com Thu Mar 3 11:55:33 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 3 Mar 2011 08:55:33 -0800 Subject: Julian Days and Eon seconds In-Reply-To: <4E5B4D0A-6DC3-437B-B4E7-D809A1397436@mollysrevenge.com> References: <4D6EE094.8090002@tweedly.net> <4E5B4D0A-6DC3-437B-B4E7-D809A1397436@mollysrevenge.com> Message-ID: <50BFA094-BF2C-4360-8148-28851EE0613E@twft.com> http://en.wikipedia.org/wiki/Julian_day Apparently there are a number of different Julian Date forms. Kind of makes you wonder why anyone uses it at all! Bob On Mar 2, 2011, at 5:26 PM, Peter Haworth wrote: > Ah yes, forgot about that! I looked in Sarah's date routines and found what I'm looking for.... BUT - it says the base date is January 1, 4713 BCE and SQLite says the base date is 11/24, 4714 BC, a few months after Sarah;s base date. From pete at mollysrevenge.com Thu Mar 3 12:05:28 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Thu, 3 Mar 2011 09:05:28 -0800 Subject: Julian Days and Eon seconds In-Reply-To: <50BFA094-BF2C-4360-8148-28851EE0613E@twft.com> References: <4D6EE094.8090002@tweedly.net> <4E5B4D0A-6DC3-437B-B4E7-D809A1397436@mollysrevenge.com> <50BFA094-BF2C-4360-8148-28851EE0613E@twft.com> Message-ID: <7C2E9482-CD0A-41BF-BD8C-59525254936E@mollysrevenge.com> That was my concern. I guess it doesn't matter as long as you use the same base date for conversion to and from Julian format, and once I found SQL provides functions to do that, I realised I don;t need any LC code. Pete Haworth On Mar 3, 2011, at 8:55 AM, Bob Sneidar wrote: > http://en.wikipedia.org/wiki/Julian_day > > Apparently there are a number of different Julian Date forms. Kind of makes you wonder why anyone uses it at all! > > Bob > > > On Mar 2, 2011, at 5:26 PM, Peter Haworth wrote: > >> Ah yes, forgot about that! I looked in Sarah's date routines and found what I'm looking for.... BUT - it says the base date is January 1, 4713 BCE and SQLite says the base date is 11/24, 4714 BC, a few months after Sarah;s base date. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From admin at FlexibleLearning.com Thu Mar 3 12:06:07 2011 From: admin at FlexibleLearning.com (FlexibleLearning) Date: Thu, 3 Mar 2011 17:06:07 -0000 Subject: roundUp500 In-Reply-To: Message-ID: Here's a poser for you all... How to round a number UP to the nearest 500? Hugh Senior FLCo From bobs at twft.com Thu Mar 3 12:11:54 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 3 Mar 2011 09:11:54 -0800 Subject: Drag and Drop Row Arrangement in DataGrid In-Reply-To: References: Message-ID: <0AD587A9-D8DC-499D-B90F-1158004217CE@twft.com> Yes, but that is not what is keeping you from doing drag and drop operations. You have to code your drag and drop. Zryip's Data Grid Helper has, among a great many other benefits, the ability to add a drag and drop script for you. It does beg the question though, whether or not a drag and drop in a sorted datagrid will disable the sort! It certainly should! You can probably handle this in your dragDrop or dragReorderDrop handler. Bob On Mar 3, 2011, at 8:28 AM, RevList wrote: > I don't know if this is possible or not, but I thought I would ask. > If you turn off sorting in a datagrid, is it possible to do drag and drop > rearranging of rows? > Has anyone done this? > Is there a lesson on this, or does someone have a sample stack that would > demonstrate this? > > Thank in advance. > > ****************************************** > Stewart Lynch > CreaTECH Solutions > slynch at CreaTECHSol.com > 604.484.8499 > Skype:StewartLynch > > There are only 10 kinds of people. Those who understand binary and those > who don't. > ****************************************** > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From m.schonewille at economy-x-talk.com Thu Mar 3 12:13:15 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Thu, 3 Mar 2011 18:13:15 +0100 Subject: roundUp500 In-Reply-To: References: Message-ID: <848C6D1D-699F-4CEC-9AA9-6920E7F5CCF4@economy-x-talk.com> Hi Hugh, function roundUp500 theNumber return trunc(theNumber/500+1)*500 end roundUp500 Seems to work. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce On 3 mrt 2011, at 18:06, FlexibleLearning wrote: > Here's a poser for you all... > > How to round a number UP to the nearest 500? > > > Hugh Senior > FLCo From briany at qldlearning.com Thu Mar 3 12:22:22 2011 From: briany at qldlearning.com (Brian Yennie) Date: Thu, 3 Mar 2011 12:22:22 -0500 Subject: roundUp500 In-Reply-To: <848C6D1D-699F-4CEC-9AA9-6920E7F5CCF4@economy-x-talk.com> References: <848C6D1D-699F-4CEC-9AA9-6920E7F5CCF4@economy-x-talk.com> Message-ID: <889E1403-34B9-4016-B71D-A8931773CA40@qldlearning.com> Another variant: trunc(n + (500 - (n mod 500))) > Hi Hugh, > > function roundUp500 theNumber > return trunc(theNumber/500+1)*500 > end roundUp500 > > Seems to work. > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce > > On 3 mrt 2011, at 18:06, FlexibleLearning wrote: > >> Here's a poser for you all... >> >> How to round a number UP to the nearest 500? >> >> >> Hugh Senior >> FLCo > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode --- Brian Yennie QLD Learning (310)-367-7364 From admin at FlexibleLearning.com Thu Mar 3 13:18:33 2011 From: admin at FlexibleLearning.com (FlexibleLearning) Date: Thu, 3 Mar 2011 18:18:33 -0000 Subject: roundUp500 In-Reply-To: Message-ID: Yeah! Minor tweak and it's working: function roundUp500 theNumber return trunc((theNumber-1)/500+1)*500 end roundUp500 Many thanks Mark and Brian. I love this group. Hugh Senior FLCo On 3 mrt 2011, at 18:06, FlexibleLearning wrote: > Here's a poser for you all... > > How to round a number UP to the nearest 500? > > > Hugh Senior > FLCo From RevList at CreaTECHSol.com Thu Mar 3 13:28:49 2011 From: RevList at CreaTECHSol.com (RevList) Date: Thu, 03 Mar 2011 10:28:49 -0800 Subject: Drag and Drop Row Arrangement in DataGrid In-Reply-To: <0AD587A9-D8DC-499D-B90F-1158004217CE@twft.com> References: <0AD587A9-D8DC-499D-B90F-1158004217CE@twft.com> Message-ID: Bob Sneidar on March 3, 2011 at 9:11 AM -0800 wrote: >Yes, but that is not what is keeping you from doing drag and drop >operations. You have to code your drag and drop. Zryip's Data Grid Helper >has, among a great many other benefits, the ability to add a drag and >drop script for you. > >It does beg the question though, whether or not a drag and drop in a >sorted datagrid will disable the sort! It certainly should! You can >probably handle this in your dragDrop or dragReorderDrop handler. > I have Data Grid Helper, but as you point out, it is the code that is holding me back. I am not at all clear how to implement this and was hoping that there was a sample stack out there somewhere where someone had already done this, and I can learn from it. Stewart From form at nonsanity.com Thu Mar 3 13:40:41 2011 From: form at nonsanity.com (Nonsanity) Date: Thu, 3 Mar 2011 13:40:41 -0500 Subject: A curious case In-Reply-To: References: <4D6E6FD1.9020305@fourthworld.com> <96AA7144-EFC2-4059-B3EF-A43F5F196E5C@gmail.com> <1395C0FB-26A8-444D-99C5-F2CC6B2DC03E@twft.com> <96F9099A-C730-4D85-9E4F-870E7AFD2DA0@mollysrevenge.com> Message-ID: On Wed, Mar 2, 2011 at 8:03 PM, Jim Ault wrote: > put the textcolor of fld 1 into testValue > > switch testValue > case "red" > case "yellow" > case "orange" > put "red" into newFontColor > break > case "green" > case "blue" > case "purple" > put "green" into newFontColor > break > case (testValue is among the words in "pink coral azure maize") > put "darkBlue" into newFontColor > break > default > put "black" into newFontColor > end switch > > set the textcolor of fld 1 to newFontColor > Are you sure the "is among" line works there? The case structure equates what comes after the "switch" keyword with what comes after each "case", executing the code after first one to match and all further code until it hits a "break". By those rules, you would only get "darkBlue" if testValue contained "false". Since "false" is not in the color list, the "is among" returns "false", which then matches the switch value, so "darkBlue" is returned. But if testValue is "pink", you're going to get "black" as a result. I can't test it right now, so I'm not sure, but that's how I read the code. But if that code works as you say, then LC's switch flow control is severely distorted from the norm! Personally, I avoid switch-case controls like the plague... UNLESS my needs exactly match the control's two main strengths - one and only one value to test, and fall-through concatenation of code blocks - AND the use is a simple, one-screenfull affair. Switches reek of the evil stench of gotos and taste of spaghetti. They aren't as readable as the rest of LC's code, which tends towards spoken language on the whole. IF you can speak a switch statement in a sentence, THEN it might be the better solution, ELSE you're probably better off just sticking with if-else chains. ...Which are more flexible, anyway. It sucks to build a whole switch structure, only to find out that you need to also test a second variable for some cases, and have to convert the whole thing to if-elses after the fact. [This option may not be equal to the majority's view, but it's mine.] ~ Chris Innanen ~ Nonsanity From RevList at CreaTECHSol.com Thu Mar 3 13:48:07 2011 From: RevList at CreaTECHSol.com (RevList) Date: Thu, 03 Mar 2011 10:48:07 -0800 Subject: Drag and Drop Row Arrangement in DataGrid In-Reply-To: References: <0AD587A9-D8DC-499D-B90F-1158004217CE@twft.com> <,> Message-ID: I wrote on March 3, 2011 at 10:28 AM -0800 wrote: >I have Data Grid Helper, but as you point out, it is the code that is >holding me back. I am not at all clear how to implement this and was >hoping that there was a sample stack out there somewhere where someone had >already done this, and I can learn from it. Nevermind. I just went back to my Developer Conference DVD set from RunRev Live 09 and found Trevor's Advanced Data Grid techniques video. It shows me exactly what I need to know. BTW, this video is excellent to help one understand how data grids work and what is going on behind the scene. Stewart From bobs at twft.com Thu Mar 3 14:07:48 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 3 Mar 2011 11:07:48 -0800 Subject: Drag and Drop Row Arrangement in DataGrid In-Reply-To: References: <0AD587A9-D8DC-499D-B90F-1158004217CE@twft.com> Message-ID: <4BFC6E5E-AD89-48D9-8CF3-3A46557676C8@twft.com> I just tried this on my own DataGrid and I was able to drag and drop with a column sort enabled. When I do this, the column sort property is still set, but the column is unsorted, so this does not happen auto-magically. I think the key then is to set the Sort By Column property to empty before you change the contents of the datagrid. You would do this in the DragDrop or the dragReorderDrop handler of the destination datagrid. (You can only use one or the other in a script one takes priority, I think it's dragReorderDrop). What is rather unfortunate at this time is that the API on lessons.runrev.com list this command under data grid properties, and then not the actual name of the command, without spaces. I give you: "sort by column - The column that the table data is currently being sorted by. You can set this property to sort by a new column." You would use: sortByColumn empty to set the sort to nothing. Otherwise, if you do something like set the dgText (or dgData if I am not mistaken) the refresh will sort the datagrid which is probably not the behavior you want in a drag and drop situation. So my dragReorderDrop handler looks like this. Keep in mind I have modified it to work for dragging and dropping a single cell in a single column. But the relevant code is that I issue the command "sortByColumn empty" just before I modify the data in the datagrid. on DragReorderDrop pOriginatingIndex, pStartLine, pDroppedOnLine local tTheDragData put the dragData["private"] into tTheDragData put the dragsource into theSource put the dragdestination into theDestination ## Reorder Items -- We don't want to move whole lines, only the items in a column -- get the control the user clicked on put line 2 of tTheDragData into theControlID put word 1 of the short name of theControlID into theColumn put the dgIndex of thesource into theSourceID put the dgIndex of thedestination into theDestinationID put the dgDataOfIndex[theSourceID] of me into aSourceData put the dgDataOfIndex[theDestinationID] of me into aDestinationData if aSourceData is not an array or aDestinationData is not an array then answer "What the hell is going on here??!?" & cr & \ theSource & cr & theDestination with "I have no idea!!!" end if sortByColumn empty -- the magical line of code put aSourceData[theColumn] into temp put aDestinationData[theColumn] into aSourceData[theColumn] put temp into aDestinationData[theColumn] set the dgDataOfIndex[theSourceID] of me to aSourceData set the dgDataOfIndex[theDestinationID] of me to aDestinationData end DragReorderDrop BTW if you use the message box to issue the command: edit the script of the behavior of group "dgMyDataGrid" You can see what is going on behind the scenes and find out all the stuff you can do with a data grid. I am learning a lot that way. Bob From alex at tweedly.net Thu Mar 3 14:57:15 2011 From: alex at tweedly.net (Alex Tweedly) Date: Thu, 03 Mar 2011 19:57:15 +0000 Subject: roundUp500 In-Reply-To: References: Message-ID: <4D6FF29B.105@tweedly.net> put 500 * round(x/500 + 0.4999999) -- Alex. On 03/03/2011 17:06, FlexibleLearning wrote: > Here's a poser for you all... > > How to round a number UP to the nearest 500? > > > Hugh Senior > FLCo > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jimaultwins at yahoo.com Thu Mar 3 15:26:01 2011 From: jimaultwins at yahoo.com (Jim Ault) Date: Thu, 3 Mar 2011 12:26:01 -0800 Subject: A curious case In-Reply-To: References: <4D6E6FD1.9020305@fourthworld.com> <96AA7144-EFC2-4059-B3EF-A43F5F196E5C@gmail.com> <1395C0FB-26A8-444D-99C5-F2CC6B2DC03E@twft.com> <96F9099A-C730-4D85-9E4F-870E7AFD2DA0@mollysrevenge.com> Message-ID: On Mar 3, 2011, at 10:40 AM, Nonsanity wrote: > > Are you sure the "is among" line works there? I apologize for creating confusion with my example. You are correct in that I mixed the TWO forms of the SWITCH structure in the same example. "among the words" only works if you use the 'naked switch' form where you specify each test, rather than test against a single variable > > It sucks to build a whole switch > structure, only to find out that you need to also test a second > variable for > some cases, and have to convert the whole thing to if-elses after > the fact. The following should let you see an alternative: -------- script 1 --------------------- put word 1 of fld 1 into testValue put "second test" into conditionTwo SWITCH -- no variable specified case testValue = "red" case testValue = "yellow" case testValue = "orange" put "red" into newFontColor break case testValue = "green" case testValue = "blue" case testValue = "purple" put "green" into newFontColor break case (testValue is among the words "pink coral azure maize") \ and (conditionTwo is "second test") put "gray40" into newFontColor break case (conditionTwo is "second test") put "CornflowerBlue" into newFontColor break case (testValue is among the words "pink coral azure maize") put "Aquamarine" into newFontColor break default put "black" into newFontColor end switch set the textcolor of fld 1 to newFontColor ;put newFontColor -------- script 2 --------------------- put word 1 of fld 1 into testValue SWITCH TESTVALUE --using variable case "red" case "yellow" case "orange" put "red" into newFontColor break case "green" case "blue" case "purple" put "green" into newFontColor break default put "black" into newFontColor end switch set the textcolor of fld 1 to newFontColor ;put newFontColor On Mar 3, 2011, at 10:40 AM, Nonsanity wrote: > > > Are you sure the "is among" line works there? > > The case structure equates what comes after the "switch" keyword > with what > comes after each "case", executing the code after first one to match > and all > further code until it hits a "break". By those rules, you would only > get > "darkBlue" if testValue contained "false". Since "false" is not in > the color > list, the "is among" returns "false", which then matches the switch > value, > so "darkBlue" is returned. But if testValue is "pink", you're going > to get > "black" as a result. > > I can't test it right now, so I'm not sure, but that's how I read > the code. > But if that code works as you say, then LC's switch flow control is > severely > distorted from the norm! > > Personally, I avoid switch-case controls like the plague... UNLESS > my needs > exactly match the control's two main strengths - one and only one > value to > test, and fall-through concatenation of code blocks - AND the use is a > simple, one-screenfull affair. > > Switches reek of the evil stench of gotos and taste of spaghetti. They > aren't as readable as the rest of LC's code, which tends towards > spoken > language on the whole. > > IF you can speak a switch statement in a sentence, THEN it might be > the > better solution, ELSE you're probably better off just sticking with > if-else > chains. > > ...Which are more flexible, anyway. It sucks to build a whole switch > structure, only to find out that you need to also test a second > variable for > some cases, and have to convert the whole thing to if-elses after > the fact. > > [This option may not be equal to the majority's view, but it's mine.] > > ~ Chris Innanen > ~ Nonsanity Jim Ault Las Vegas From bobs at twft.com Thu Mar 3 15:28:50 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 3 Mar 2011 12:28:50 -0800 Subject: roundUp500 In-Reply-To: <4D6FF29B.105@tweedly.net> References: <4D6FF29B.105@tweedly.net> Message-ID: You trigonometry wiz kids just amaze me. ;-P Bob On Mar 3, 2011, at 11:57 AM, Alex Tweedly wrote: > > put 500 * round(x/500 + 0.4999999) > > -- Alex. > > > On 03/03/2011 17:06, FlexibleLearning wrote: >> Here's a poser for you all... >> >> How to round a number UP to the nearest 500? >> >> >> Hugh Senior >> FLCo >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobs at twft.com Thu Mar 3 15:30:04 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 3 Mar 2011 12:30:04 -0800 Subject: A curious case In-Reply-To: References: <4D6E6FD1.9020305@fourthworld.com> <96AA7144-EFC2-4059-B3EF-A43F5F196E5C@gmail.com> <1395C0FB-26A8-444D-99C5-F2CC6B2DC03E@twft.com> <96F9099A-C730-4D85-9E4F-870E7AFD2DA0@mollysrevenge.com> Message-ID: <5C18A843-F60B-40B0-B721-F60AED4EAB42@twft.com> sounds like what I used to get when I talked back to my mom. Bob On Mar 3, 2011, at 12:26 PM, Jim Ault wrote: > only works if you use the 'naked switch' form From dunbarx at aol.com Thu Mar 3 16:08:24 2011 From: dunbarx at aol.com (dunbarx at aol.com) Date: Thu, 03 Mar 2011 16:08:24 -0500 Subject: A curious case In-Reply-To: References: <4D6E6FD1.9020305@fourthworld.com><96AA7144-EFC2-4059-B3EF-A43F5F196E5C@gmail.com><1395C0FB-26A8-444D-99C5-F2CC6B2DC03E@twft.com><96F9099A-C730-4D85-9E4F-870E7AFD2DA0@mollysrevenge.com> Message-ID: <8CDA7FE403D61FA-5F8-1E795@webmail-d140.sysops.aol.com> Two tests: on mouseUp put "coral" into testValue put "" wait 15 switch --this catches "coral" case testValue is among the words of "pink coral azure maize" put "found coral" break default put "no coral" end switch end mouseup on mouseUp put "coral" into testValue put "" wait 15 switch testValue -- this does not case testValue is among the words of "pink coral azure maize" put "found coral" break default put "no coral" end switch end mouseup The case keyword can evaluate correctly, but only if it has (sort of) complete control, that is, the switch structure does not dictate what is to be evaluated. If that makes any sense. For my part, I find switch structures much more powerful, compact and readable than complex if/then structures. Oh, and more flexible, modifiable and fun to write. Craig Newman > put the textcolor of fld 1 into testValue > > switch testValue > case "red" > case "yellow" > case "orange" > put "red" into newFontColor > break > case "green" > case "blue" > case "purple" > put "green" into newFontColor > break > case (testValue is among the words in "pink coral azure maize") > put "darkBlue" into newFontColor > break > default > put "black" into newFontColor > end switch > > set the textcolor of fld 1 to newFontColor > -----Original Message----- From: Nonsanity
To: How to use LiveCode Sent: Thu, Mar 3, 2011 1:40 pm Subject: Re: A curious case On Wed, Mar 2, 2011 at 8:03 PM, Jim Ault wrote: > put the textcolor of fld 1 into testValue > > switch testValue > case "red" > case "yellow" > case "orange" > put "red" into newFontColor > break > case "green" > case "blue" > case "purple" > put "green" into newFontColor > break > case (testValue is among the words in "pink coral azure maize") > put "darkBlue" into newFontColor > break > default > put "black" into newFontColor > end switch > > set the textcolor of fld 1 to newFontColor > Are you sure the "is among" line works there? The case structure equates what comes after the "switch" keyword with what comes after each "case", executing the code after first one to match and all further code until it hits a "break". By those rules, you would only get "darkBlue" if testValue contained "false". Since "false" is not in the color list, the "is among" returns "false", which then matches the switch value, so "darkBlue" is returned. But if testValue is "pink", you're going to get "black" as a result. I can't test it right now, so I'm not sure, but that's how I read the code. But if that code works as you say, then LC's switch flow control is severely distorted from the norm! Personally, I avoid switch-case controls like the plague... UNLESS my needs exactly match the control's two main strengths - one and only one value to test, and fall-through concatenation of code blocks - AND the use is a simple, one-screenfull affair. Switches reek of the evil stench of gotos and taste of spaghetti. They aren't as readable as the rest of LC's code, which tends towards spoken language on the whole. IF you can speak a switch statement in a sentence, THEN it might be the better solution, ELSE you're probably better off just sticking with if-else chains. ...Which are more flexible, anyway. It sucks to build a whole switch structure, only to find out that you need to also test a second variable for some cases, and have to convert the whole thing to if-elses after the fact. [This option may not be equal to the majority's view, but it's mine.] ~ Chris Innanen ~ Nonsanity _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From stevejones at mac.com Thu Mar 3 17:35:32 2011 From: stevejones at mac.com (Steve Jones) Date: Thu, 03 Mar 2011 16:35:32 -0600 Subject: Just starting out in iOs and LiveCode Message-ID: Greeting! I am a novice LiveCode user, and even more so to the iOS environment. I used RuntimeRevolution for a bit, and before that SuperCard and HyperCard so I am not completely lost. But I did have a question on the best methodology to use for a project I have started working on to use as a learning project with LiveCode iOS. I work for a non-profit theatre and am attempting to build an iPhone app for them. My question concerns the best way to update content. Some sections of the app will be static info. But other sections, like UPCOMING EVENTS the content will change as new events are added and old ones go past. This could probably be done via app updates, but I doubt that will be timely enough. So I am wondering if there is a way that content (such as text and small images) can be pulled up via the internet and inserted into a "layout" in the app? I know I can load a web page thru the app, but then I have to maintain a web page AND an app. It would be great to have just the pieces I need to update pulled offline and "inserted" into the app. I know this would be problematic for those w/ no internet access. Is this doable? Even allowed by Apple? Any recommendation on how to get started on such a section? I know apps like "We Rule" and all the news and reader apps add content when they load, so it must be doable. Thanks! Steve From form at nonsanity.com Thu Mar 3 17:48:55 2011 From: form at nonsanity.com (Nonsanity) Date: Thu, 3 Mar 2011 17:48:55 -0500 Subject: Just starting out in iOs and LiveCode In-Reply-To: References: Message-ID: There are many, many ways to do this. The barest minimum might be: put url "http://myserver.org/updatedata/latest.txt" into latestUpdateData Then work with that data as you wish. Not a web site, though it requires a web host to stick the file on, of course. Though there are plenty of free places to do that. Even a DropBox... You can get as complicated as you want from there on, but that lets you update all apps by updating one file. ~ Chris Innanen ~ Nonsanity On Thu, Mar 3, 2011 at 5:35 PM, Steve Jones wrote: > Greeting! > > I am a novice LiveCode user, and even more so to the iOS environment. I > used RuntimeRevolution for a bit, and before that SuperCard and HyperCard so > I am not completely lost. But I did have a question on the best methodology > to use for a project I have started working on to use as a learning project > with LiveCode iOS. > > I work for a non-profit theatre and am attempting to build an iPhone app > for them. My question concerns the best way to update content. Some > sections of the app will be static info. But other sections, like UPCOMING > EVENTS the content will change as new events are added and old ones go past. > This could probably be done via app updates, but I doubt that will be > timely enough. So I am wondering if there is a way that content (such as > text and small images) can be pulled up via the internet and inserted into a > "layout" in the app? I know I can load a web page thru the app, but then I > have to maintain a web page AND an app. It would be great to have just the > pieces I need to update pulled offline and "inserted" into the app. I know > this would be problematic for those w/ no internet access. > > Is this doable? Even allowed by Apple? Any recommendation on how to get > started on such a section? > > I know apps like "We Rule" and all the news and reader apps add content > when they load, so it must be doable. > > Thanks! > > Steve > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From gerry.orkin at gmail.com Thu Mar 3 20:34:32 2011 From: gerry.orkin at gmail.com (Gerry) Date: Fri, 4 Mar 2011 12:34:32 +1100 Subject: Just starting out in iOs and LiveCode In-Reply-To: References: Message-ID: <11794393678A42B4A19718435E8F0953@gmail.com> Just trying the put URL thing - pulling down a .txt file with UNIX line breaks, it seems to strip the line breaks out. How to I handle that? g -- photo site: http://gerryorkin.com On Friday, 4 March 2011 at 9:48 AM, Nonsanity wrote: > There are many, many ways to do this. The barest minimum might be: > > put url "http://myserver.org/updatedata/latest.txt" into latestUpdateData > > Then work with that data as you wish. From gerry.orkin at gmail.com Thu Mar 3 21:26:43 2011 From: gerry.orkin at gmail.com (Gerry) Date: Fri, 4 Mar 2011 13:26:43 +1100 Subject: Just starting out in iOs and LiveCode In-Reply-To: <11794393678A42B4A19718435E8F0953@gmail.com> References: <11794393678A42B4A19718435E8F0953@gmail.com> Message-ID: <068F8AA4C25748D7A602FB6F7E03EC8F@gmail.com> I'm embedding my own item delimiter character in the file for now (I'm using "\"). I then cycle through the text and grab each item one by one, putting them into lines of the field. It works, but there must be a better way. Is the problem with my .txt file? I save it out of a text editor with Unix line breaks specified, and it's stored on dropbox. Gerry -- photo site: http://gerryorkin.com On Friday, 4 March 2011 at 12:34 PM, Gerry wrote: > Just trying the put URL thing - pulling down a .txt file with UNIX line breaks, it seems to strip the line breaks out. How to I handle that? > > g > > -- photo site: http://gerryorkin.com > > On Friday, 4 March 2011 at 9:48 AM, Nonsanity wrote: > > There are many, many ways to do this. The barest minimum might be: > > > > put url "http://myserver.org/updatedata/latest.txt" into latestUpdateData > > > > Then work with that data as you wish. > From jacque at hyperactivesw.com Thu Mar 3 23:11:39 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 03 Mar 2011 22:11:39 -0600 Subject: Just starting out in iOs and LiveCode In-Reply-To: <068F8AA4C25748D7A602FB6F7E03EC8F@gmail.com> References: <11794393678A42B4A19718435E8F0953@gmail.com> <068F8AA4C25748D7A602FB6F7E03EC8F@gmail.com> Message-ID: <4D70667B.3010207@hyperactivesw.com> On 3/3/11 8:26 PM, Gerry wrote: > I'm embedding my own item delimiter character in the file for now > (I'm using "\"). I then cycle through the text and grab each item one > by one, putting them into lines of the field. It works, but there > must be a better way. Don't do that. Line breaks are preserved in text files so you shouldn't have to do anything, and also the backslash has a special meaning in LiveCode scripts, though in this case it probably won't interfere. I'm not sure why you aren't seeing the line breaks in a plain text file, but they are definitely preserved. Internally, LiveCode translates all line breaks to unix line endings and then translates them back to the native OS when you write the file to disk. This is all done transparently and usually you never have to think about it. Is there a reason you think the line endings aren't there? I've never seen them disappear. > > Is the problem with my .txt file? I save it out of a text editor with > Unix line breaks specified, and it's stored on dropbox. That should be fine. This is all you need to do: put url ("http://www.server.com/path/file.txt") into tVar The contents of the text file should come in intact and be stored in the variable "tVar". If you want to check, then do this in the next line to see what's there: put the number of lines in tVar You should see a number in the message box representing the number of lines in the file. If that doesn't work, post the handler and we'll figure it out. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From martinblackman at gmail.com Thu Mar 3 23:45:14 2011 From: martinblackman at gmail.com (Martin Blackman) Date: Fri, 4 Mar 2011 12:45:14 +0800 Subject: Just starting out in iOs and LiveCode In-Reply-To: <4D70667B.3010207@hyperactivesw.com> References: <11794393678A42B4A19718435E8F0953@gmail.com> <068F8AA4C25748D7A602FB6F7E03EC8F@gmail.com> <4D70667B.3010207@hyperactivesw.com> Message-ID: I don't know if you are using windows but if you were to open such a file in notepad you wouldnt see the linebreaks, but switch to wordpad and they should appear On 3/3/11 8:26 PM, Gerry wrote: > >> I'm embedding my own item delimiter character in the file for now >> (I'm using "\"). I then cycle through the text and grab each item one >> by one, putting them into lines of the field. It works, but there >> must be a better way. >> > From jacque at hyperactivesw.com Fri Mar 4 00:13:11 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 03 Mar 2011 23:13:11 -0600 Subject: Just starting out in iOs and LiveCode In-Reply-To: References: Message-ID: <4D7074E7.5010302@hyperactivesw.com> On 3/3/11 4:35 PM, Steve Jones wrote: > Greeting! > > I am a novice LiveCode user, and even more so to the iOS environment. > I used RuntimeRevolution for a bit, and before that SuperCard and > HyperCard so I am not completely lost. But I did have a question on > the best methodology to use for a project I have started working on > to use as a learning project with LiveCode iOS. Welcome. Since you're familiar with HyperCard and SuperCard, you won't have much trouble adjusting to LiveCode. > > I work for a non-profit theatre and am attempting to build an iPhone > app for them. My question concerns the best way to update content. > Some sections of the app will be static info. But other sections, > like UPCOMING EVENTS the content will change as new events are added > and old ones go past. This could probably be done via app updates, > but I doubt that will be timely enough. So I am wondering if there is > a way that content (such as text and small images) can be pulled up > via the internet and inserted into a "layout" in the app? I know I > can load a web page thru the app, but then I have to maintain a web > page AND an app. It would be great to have just the pieces I need to > update pulled offline and "inserted" into the app. I know this would > be problematic for those w/ no internet access. > > Is this doable? Even allowed by Apple? Any recommendation on how to > get started on such a section? Perfectly doable, and even pretty easy. If I were doing this, I'd have a field for the changeable data (or several fields, depending on what you need) and then I would grab a text file off a server. Parse the text if you need to divide it up for display in different places, or else just dump the whole thing into a field. Say you've got an events list, for example, with one event per line in a text file, and you want to put that text into a field in your app called "events". You can do it in one line: put url ("http://www.myserver.com/textfile.txt") into fld "events" I don't know what exactly Apple allows, but I'd be surprised if something like this was forbidden. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at mollysrevenge.com Fri Mar 4 02:28:59 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Thu, 3 Mar 2011 23:28:59 -0800 Subject: mySQL Admin Tools Message-ID: Favourite mySQL admin tools? Pete Haworth From johnny at southshore.com Fri Mar 4 03:27:40 2011 From: johnny at southshore.com (Johnny Harris) Date: Fri, 4 Mar 2011 02:27:40 -0600 Subject: mySQL Admin Tools In-Reply-To: References: Message-ID: On Windows I use Heidi SQL jharris -----Original Message----- From: Peter Haworth Sent: Friday, March 04, 2011 1:28 AM To: How to use LiveCode Subject: mySQL Admin Tools Favourite mySQL admin tools? Pete Haworth _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From tkuypers at telenet.be Fri Mar 4 05:26:29 2011 From: tkuypers at telenet.be (tkuypers at telenet.be) Date: Fri, 4 Mar 2011 11:26:29 +0100 Subject: mySQL Admin Tools In-Reply-To: References: Message-ID: http://www.sequelpro.com/ Met vriendelijke groeten, Ton Kuypers On 4-mrt-2011, at 08:28, Peter Haworth wrote: > Favourite mySQL admin tools? > > Pete Haworth > > > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From keith.clarke at clarkeandclarke.co.uk Fri Mar 4 07:07:27 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Fri, 4 Mar 2011 12:07:27 +0000 Subject: How to develop and deploy with ListMagic within the GLX application framework? Message-ID: <58A7C3FA-253F-44E0-A6B2-8F629FD784A2@clarkeandclarke.co.uk> Hi folks, Is there a trick to have the GLX application framework launcher load ListMagic in the background but not open its admin window? If ListMagic.rev isn't open whilst working on my app in the IDE, debug errors are thrown when the mouse enters any ListMagic fields. So, I've added ListMagic to the GLX Application configuration as a stack, with 'Required' and 'Load at Startup' set to prevent the debug errors. However, as ListMagic has substacks, it has to be loaded as a Window, which mean that the ListMagic configuration window opens. This is an inconvenience during development but I need to prevent this once the app gets deployed as a stand-alone. What am I missing here? Best, Keith.. From lists at mangomultimedia.com Fri Mar 4 10:25:48 2011 From: lists at mangomultimedia.com (Trevor DeVore) Date: Fri, 4 Mar 2011 10:25:48 -0500 Subject: How to develop and deploy with ListMagic within the GLX application framework? In-Reply-To: <58A7C3FA-253F-44E0-A6B2-8F629FD784A2@clarkeandclarke.co.uk> References: <58A7C3FA-253F-44E0-A6B2-8F629FD784A2@clarkeandclarke.co.uk> Message-ID: On Fri, Mar 4, 2011 at 7:07 AM, Keith Clarke < keith.clarke at clarkeandclarke.co.uk> wrote: > Is there a trick to have the GLX application framework launcher load > ListMagic in the background but not open its admin window? > > If ListMagic.rev isn't open whilst working on my app in the IDE, debug > errors are thrown when the mouse enters any ListMagic fields. So, I've added > ListMagic to the GLX Application configuration as a stack, with 'Required' > and 'Load at Startup' set to prevent the debug errors. However, as ListMagic > has substacks, it has to be loaded as a Window, which mean that the > ListMagic configuration window opens. > Keith, The framework never tries to visually open (using 'go stack') any stacks that you add to it. It only loads the stack files into memory by executing the following code: if there is a stack PATH_TO_STACK_FILE... If a stack file is marked as being a library then the framework will also issue the "start using" command for the stack and substacks in the stack file. There must be some code somewhere else that is opening the window (either in the ListMagic code or your code). -- Trevor DeVore Blue Mango Learning Systems ScreenSteps: http://www.screensteps.com LiveCode Resources for Developers: http://livecode.bluemangolearning.com From andre at andregarzia.com Fri Mar 4 10:29:31 2011 From: andre at andregarzia.com (Andre Garzia) Date: Fri, 4 Mar 2011 12:29:31 -0300 Subject: mySQL Admin Tools In-Reply-To: References: Message-ID: phpMyAdmin :-D On Fri, Mar 4, 2011 at 4:28 AM, Peter Haworth wrote: > Favourite mySQL admin tools? > > Pete Haworth > > > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- http://www.andregarzia.com All We Do Is Code. From lists at mangomultimedia.com Fri Mar 4 10:41:38 2011 From: lists at mangomultimedia.com (Trevor DeVore) Date: Fri, 4 Mar 2011 10:41:38 -0500 Subject: GLX application framework: application stacks and .dat files? In-Reply-To: References: <627BACD2-1219-40DA-B0A1-B115327757BB@clarkeandclarke.co.uk> Message-ID: On Thu, Mar 3, 2011 at 10:37 AM, Keith Clarke < keith.clarke at clarkeandclarke.co.uk> wrote: > I had the Application stack's kProgramStackName pointing at the name of the > .rev file I had added within the Stacks and Externals configuration > dialogue, rather than the main stack name *within* this file. > > Now that I understand this subtle difference in terminology between 'stack > and 'stack file', might I suggest an enhancement to this lesson to help > future readers? > I added a note about using the stack name in memory and not the stack file name on disk. > It would really aid clarity if an example application was shown through the > steps, alongside the default files to be deleted. Perhaps an .rev file > called, say, 'my_new_app.rev' and its main stack, called 'my_main_stack', > with the following tweaks(?): > > 1. Move Your Stack Files into Application Directory: > Add a 'my_new_app.rev' file in the finder, under the program.dat file; > identifying in the the notes, (1) the file added and (2) program.dat to be > deleted. > > 2. Update Application Stacks: > Show the added .rev file to show that it's OK to have files that don't have > a .dat suffix > (I was trying to open the .rev bundle on OSX to extract individual stack > files, before I realised that 'stack file' was not an individual stack, > extracted as a 'stack.dat' file but rather, a 'file of stacks' or more > simply, a '.rev' file!) > > 3. Edit kProgramStackName Constant: > Extend the first sentence to read '...to match the name of the main program > stack, for example, 'my_main_stack'. > Time is a bit tight right now so if you would like to write this up and take the screenshots then I can add it to the documentation. Alternatively you could propose documentation additions on the Google Group list for the framework (framework discussion should probably move over there anyway) and see if anyone picks it up. Here is the URL: http://groups.google.com/group/glxapp/ > BTW I had read the lesson on the purpose of the various '.dat' files - my > question was more regarding why '.dat' rather than .rev, etc? When distributing a final application to customers I don't like to use a .rev suffix. The files aren't meant to be opened in an IDE at that point. So I use the .dat extension. The only file in the framework that I use the .rev extension for is the launcher.rev stack as that is the one you open up directly in the IDE. All the rest are loaded for you when the application is launched. -- Trevor DeVore Blue Mango Learning Systems ScreenSteps: http://www.screensteps.com LiveCode Resources for Developers: http://livecode.bluemangolearning.com From admin at FlexibleLearning.com Fri Mar 4 10:48:05 2011 From: admin at FlexibleLearning.com (FlexibleLearning) Date: Fri, 4 Mar 2011 15:48:05 -0000 Subject: [ANN] New ChartMaker release In-Reply-To: Message-ID: An upgrade for ChartMaker has been released. It has also moved home to its own website. If you already have a copy, you can click 'Check for updates...' in the program, download the file and follow the link. If you would like to investigate ChartMaker, see a screencast, find out what's new in this release and download a free trial, go to www.flexibleLearning.com/chartmaker You can also download a free trial and purchase ChartMaker from the runRev store at http://www.runrev.com/store/product/chartmaker/ My public thanks to all the beta testers; you are stars, each one of you! Hugh Senior FLCo From yvescoppe at skynet.be Fri Mar 4 11:05:01 2011 From: yvescoppe at skynet.be (Yves COPPE) Date: Fri, 4 Mar 2011 17:05:01 +0100 Subject: [ANN] New ChartMaker release In-Reply-To: References: Message-ID: Le 4 mars 2011 ? 16:48, FlexibleLearning a ?crit : > An upgrade for ChartMaker has been released. It has also moved home to its > own website. > > > If you already have a copy, you can click 'Check for updates...' in the > program, download the file and follow the link. > > If you would like to investigate ChartMaker, see a screencast, find out > what's new in this release and download a free trial, go to > www.flexibleLearning.com/chartmaker > > You can also download a free trial and purchase ChartMaker from the runRev > store at http://www.runrev.com/store/product/chartmaker/ > > > My public thanks to all the beta testers; you are stars, each one of you! > > > Hugh Senior > FLCo > Hi list As user from version 1 and now version 2, I recommend this upgrade to everyone. Very easy and yet very powerful tool for making beautiful charts with much possibilities. Greetings. Yves COPPE yvescoppe at skynet.be From keith.clarke at clarkeandclarke.co.uk Fri Mar 4 11:28:12 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Fri, 4 Mar 2011 16:28:12 +0000 Subject: GLX application framework: application stacks and .dat files? In-Reply-To: References: <627BACD2-1219-40DA-B0A1-B115327757BB@clarkeandclarke.co.uk> Message-ID: Trevor, Thanks for the hand-holding on the GLX framework and the clarification on why and when you use .dat files for distribution - another subtlety learned! Conscious of time constraints - and being a ScreenSteps user myself - I'd be happy to draft an 'idiot-proof' update of this lesson for your review. If you want to share the lesson file with me - in whatever way you think appropriate - perhaps we should take this off-list. Best, Keith.. From keith.clarke at clarkeandclarke.co.uk Fri Mar 4 11:34:12 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Fri, 4 Mar 2011 16:34:12 +0000 Subject: How to develop and deploy with ListMagic within the GLX application framework? In-Reply-To: References: <58A7C3FA-253F-44E0-A6B2-8F629FD784A2@clarkeandclarke.co.uk> Message-ID: Hi Trevor, Thanks for confirming that this behaviour is not coming from the GLX framework. Maybe it's time to bite the bullet and replace my simple ListMagic controls with data grids - and learn how to drive them and DGH properly! ;-) On 4 Mar 2011, at 15:25, Trevor DeVore wrote: > The framework never tries to visually open (using 'go stack') any stacks > that you add to it. It only loads the stack files into memory by executing > the following code: > > if there is a stack PATH_TO_STACK_FILE... > > If a stack file is marked as being a library then the framework will also > issue the "start using" command for the stack and substacks in the stack > file. > > There must be some code somewhere else that is opening the window (either in > the ListMagic code or your code). From bvg at mac.com Fri Mar 4 12:40:06 2011 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Fri, 04 Mar 2011 18:40:06 +0100 Subject: Live LiveCode Code event #13 In-Reply-To: References: <1A45BA5D-B90D-413F-B44D-60847D242A85@mac.com> Message-ID: It's here again! Due to problems with finding presenters, the regulars had to fly in. Please step up to present. Yes you. You think I don't mean you, but I do. Marks presentation will be about reading and writing unicode files, unicode text manipulation by script, and right-to-left text display in LC fields. www.livecode.tv/mark David will wrap up with a undisclosed topic. He promised to do a proper show with recording and example code and stuff, by an oath on his iPhone. www.livecode.tv/david get all the info at: www.livecode.tv or simply join chatrev tomorrow, Saturday at: Zurich: 20:00 Buenos Aires: 16:00 New York: 14:00 San Francisco: 11:00 Sydney: 06:00 Have fun Bj?rnke -- official ChatRev page: http://bjoernke.com/chatrev Chat with other RunRev developers: go stack URL "http://bjoernke.com/chatrev/chatrev1.3b3.rev" From bobs at twft.com Fri Mar 4 12:59:52 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 4 Mar 2011 09:59:52 -0800 Subject: mySQL Admin Tools In-Reply-To: References: Message-ID: <3274CAD9-4C10-42B4-82A9-FDC9D5FAF0A0@twft.com> MySqlWorkbench incorporates the features of both the Mysql Administrator, and Mysql Query Browser. These were beta and were fairly unstable. MySqlWorkbench replaces them and is free. When I was having trouble with Mysql Administrator, and Mysql Query Browser, I purchased Navicat. That wrked really well for me too, but MySqlWorkbench is free and does everything I need it to. Bob On Mar 3, 2011, at 11:28 PM, Peter Haworth wrote: > Favourite mySQL admin tools? > > Pete Haworth > > > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pmbrig at gmail.com Fri Mar 4 13:05:05 2011 From: pmbrig at gmail.com (Peter Brigham MD) Date: Fri, 4 Mar 2011 13:05:05 -0500 Subject: new trick, for me Message-ID: <65C21CD4-F753-4BC3-8124-06CB837F2652@gmail.com> Just discovered a trick I didn't know about. This is in the IDE, BTW. I needed to have the first card of one of my stacks as the current card, while I do something from another stack (a utility stack). If I "go card 1 of stack " then the stack comes to the front, but I want to keep the utility stack as the topstack, so even following this by "go back" or some such looks messy on screen. Instead, I can do this: set the currentcard of stack to \ the short name of card 1 of stack and it all happens in the background. Probably others knew about this, but I didn't, so I'm posting it for those like me for whom it is a new trick. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From bobs at twft.com Fri Mar 4 13:24:17 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 4 Mar 2011 10:24:17 -0800 Subject: How to develop and deploy with ListMagic within the GLX application framework? In-Reply-To: References: <58A7C3FA-253F-44E0-A6B2-8F629FD784A2@clarkeandclarke.co.uk> Message-ID: What really helped me take hold of the reigns of datagrids is the notion of getting the index (or line) of a data control, getting the array associated with that line, altering the array, and then setting the array in the datagrid when I was done. This process is actually quite simple. Lets say a user clicked on a line in a table form and you want to process it somehow. Consider the following: put the dgHilitedIndex of group "myDataGrid" into theIndexNumber -- a number referencing the row array if theIndexNumber is empty then -- nothing selected exit mouseUp end if put the dgDataOfIndex[theIndexNumber] of group "myDataGrid" into aMyData -- an array put aMyData["column1"] into theFirstValue -- a value. column1 is the actual name of your column. put aMyData["column2"] into theSecondValue put aMyData["column3"] into theThirdValue Now go do some stuff with the data, and when you are done: put theFirstValue aMyData["column1"] into aMyData["column1"] put theSecondValue aMyData["column2"] into aMyData["column2"] put theThirdValue aMyData["column3"] into aMyData["column3"] set the dgDataOfIndex[theIndexNumber] of group "myDataGrid" to aMyData -- update the row Sometimes it is easier to work with the data grid data as a chunk of text: put the dgtext ["false"] of group "myDataGrid" into theGridData -- tab/cr delimited list false means the first row does not contain the column names. In this mode it will simply use the position of the column as the index to the data in the column. If you use true, then the first line of your text needs to be the column names. This can be handy when you want to update only certain columns but leave the others intact. When done processing: set the dgtext ["false"] of group "myDataGrid" to theGridData -- put the data back While the Datagrid tutorial and API is very useful, and I recommend it for the first time use of data grids, it doesn't actually list everything you can do with a datagrid. To see all the commands and functions available to the data grid, issue this command: edit the script of the behavior of group "myDataGrid". Simple huh? What would be nice is if I could pass the column names off to dgText so that I only got the columns I wanted. The beauty is though, that I can copy the behavior scripts to a new button, set the behavior of the datagrid to that button, and then make it do things the way I want to. Bob On Mar 4, 2011, at 8:34 AM, Keith Clarke wrote: > Hi Trevor, > Thanks for confirming that this behaviour is not coming from the GLX framework. > Maybe it's time to bite the bullet and replace my simple ListMagic controls with data grids - and learn how to drive them and DGH properly! ;-) From drjohn at wellminds.org Fri Mar 4 13:24:34 2011 From: drjohn at wellminds.org (John R. Brauer) Date: Fri, 4 Mar 2011 12:24:34 -0600 Subject: Newbie: how to start with this iOS project Message-ID: <02DC3669-964C-44EF-96C0-F5E6B86F15CF@wellminds.org> Hello, I am relatively new to LiveCode and totally new to iOS. I have a project that I would like to do and need suggestions about how to begin and how to do the data structure for it. The project would be similar to the Audubon Bird program on iOS (although the content is not about birds); I would like the same search capabilities (enter parameters on a variety of fields; color, size, habitat, etc.) and would like suggestions about how to start... would this be a database endeavor, etc. Can databases be used in iOS projects? I would like for the content to be stored in-app; no need for internet connection to use it. The used would not need to be able to enter or alter the data provided by the app, although there is another part of the same app where I would like the user to be able to store their own notes, sort of akin to the Life List aspect of the Audubon app. What would you all suggest, so that I can know where to start reading? Thanks!!! Sincerely, John R. Brauer, Psy.D. Licensed Clinical Psychologist Lisle, Joliet and Elmhurst, IL drjohn at wellminds.org (630) 435-1550 www.wellminds.org From bobs at twft.com Fri Mar 4 13:38:16 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 4 Mar 2011 10:38:16 -0800 Subject: new trick, for me In-Reply-To: <65C21CD4-F753-4BC3-8124-06CB837F2652@gmail.com> References: <65C21CD4-F753-4BC3-8124-06CB837F2652@gmail.com> Message-ID: <5C173ECF-F260-4399-98BA-D679FABC7FED@twft.com> I wonder if that triggers an openCard event? Bob On Mar 4, 2011, at 10:05 AM, Peter Brigham MD wrote: > Just discovered a trick I didn't know about. This is in the IDE, BTW. I needed to have the first card of one of my stacks as the current card, while I do something from another stack (a utility stack). If I "go card 1 of stack " then the stack comes to the front, but I want to keep the utility stack as the topstack, so even following this by "go back" or some such looks messy on screen. Instead, I can do this: > > set the currentcard of stack to \ > the short name of card 1 of stack > > and it all happens in the background. > > Probably others knew about this, but I didn't, so I'm posting it for those like me for whom it is a new trick. > > -- Peter > > Peter M. Brigham > pmbrig at gmail.com > http://home.comcast.net/~pmbrig > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Fri Mar 4 13:48:51 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 04 Mar 2011 12:48:51 -0600 Subject: new trick, for me In-Reply-To: <5C173ECF-F260-4399-98BA-D679FABC7FED@twft.com> References: <65C21CD4-F753-4BC3-8124-06CB837F2652@gmail.com> <5C173ECF-F260-4399-98BA-D679FABC7FED@twft.com> Message-ID: <4D713413.8070105@hyperactivesw.com> On 3/4/11 12:38 PM, Bob Sneidar wrote: > I wonder if that triggers an openCard event? No. I don't think it triggers any messages. > > Bob > > > On Mar 4, 2011, at 10:05 AM, Peter Brigham MD wrote: > >> Just discovered a trick I didn't know about. This is in the IDE, BTW. I needed to have the first card of one of my stacks as the current card, while I do something from another stack (a utility stack). If I "go card 1 of stack" then the stack comes to the front, but I want to keep the utility stack as the topstack, so even following this by "go back" or some such looks messy on screen. Instead, I can do this: >> >> set the currentcard of stack to \ >> the short name of card 1 of stack >> >> and it all happens in the background. >> >> Probably others knew about this, but I didn't, so I'm posting it for those like me for whom it is a new trick. >> >> -- Peter >> >> Peter M. Brigham >> pmbrig at gmail.com >> http://home.comcast.net/~pmbrig -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pmbrig at gmail.com Fri Mar 4 14:04:17 2011 From: pmbrig at gmail.com (Peter Brigham MD) Date: Fri, 4 Mar 2011 14:04:17 -0500 Subject: new trick, for me In-Reply-To: <4D713413.8070105@hyperactivesw.com> References: <65C21CD4-F753-4BC3-8124-06CB837F2652@gmail.com> <5C173ECF-F260-4399-98BA-D679FABC7FED@twft.com> <4D713413.8070105@hyperactivesw.com> Message-ID: <8D8A5396-9297-428F-B110-DD3A36018E45@gmail.com> It appears not to trigger openCard. FYI, the reason that I needed to do this is that I am trying to do something with long id's and found what seems to be a bug in how the engine handles this. If I do this while on the first card of the stack: put the long id of control 76 of card 1 of stack I get something like this: field id 1051 of group id 1045 of group id 1004 of card id 2276 of stack "PDdata" of stack But if I move to any other card of the stack, and execute the same command, I get: field id 1051 of group id 1045 of group id 1004 of card id 2675 of stack "PDdata" of stack Note that the card id number in the long id is different, depending on which card is current -- despite that fact that I asked specifically for "the long id of control 76 of ***card 1*** " both times. I know that occasionally executing commands via msg box give anomalous results, but that appears not to be a factor here. So I need to be on the same card of the stack every time I fetch long id's for controls of that stack, or else my handlers won't work properly. Bug, or what? -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Mar 4, 2011, at 1:48 PM, J. Landman Gay wrote: > On 3/4/11 12:38 PM, Bob Sneidar wrote: >> I wonder if that triggers an openCard event? > > No. I don't think it triggers any messages. > >> >> Bob >> >> >> On Mar 4, 2011, at 10:05 AM, Peter Brigham MD wrote: >> >>> Just discovered a trick I didn't know about. This is in the IDE, >>> BTW. I needed to have the first card of one of my stacks as the >>> current card, while I do something from another stack (a utility >>> stack). If I "go card 1 of stack" then the >>> stack comes to the front, but I want to keep the >>> utility stack as the topstack, so even following this by "go back" >>> or some such looks messy on screen. Instead, I can do this: >>> >>> set the currentcard of stack to \ >>> the short name of card 1 of stack >>> >>> and it all happens in the background. >>> >>> Probably others knew about this, but I didn't, so I'm posting it >>> for those like me for whom it is a new trick. >>> >>> -- Peter >>> >>> Peter M. Brigham >>> pmbrig at gmail.com >>> http://home.comcast.net/~pmbrig > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobs at twft.com Fri Mar 4 14:17:50 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 4 Mar 2011 11:17:50 -0800 Subject: new trick, for me In-Reply-To: <8D8A5396-9297-428F-B110-DD3A36018E45@gmail.com> References: <65C21CD4-F753-4BC3-8124-06CB837F2652@gmail.com> <5C173ECF-F260-4399-98BA-D679FABC7FED@twft.com> <4D713413.8070105@hyperactivesw.com> <8D8A5396-9297-428F-B110-DD3A36018E45@gmail.com> Message-ID: Is the field a part of a background group? A background group belongs to a stack, not to a card. (I might be wrong but I doubt it ;-) Also try: send "put the long id of control 76" to card 1 of stack get the result What does that produce? Bob On Mar 4, 2011, at 11:04 AM, Peter Brigham MD wrote: > It appears not to trigger openCard. > > FYI, the reason that I needed to do this is that I am trying to do something with long id's and found what seems to be a bug in how the engine handles this. If I do this while on the first card of the stack: > > put the long id of control 76 of card 1 of stack > > I get something like this: > > field id 1051 of group id 1045 of group id 1004 of card id 2276 of stack "PDdata" of stack > > But if I move to any other card of the stack, and execute the same command, I get: > > field id 1051 of group id 1045 of group id 1004 of card id 2675 of stack "PDdata" of stack > > Note that the card id number in the long id is different, depending on which card is current -- despite that fact that I asked specifically for "the long id of control 76 of ***card 1*** " both times. > > I know that occasionally executing commands via msg box give anomalous results, but that appears not to be a factor here. > > So I need to be on the same card of the stack every time I fetch long id's for controls of that stack, or else my handlers won't work properly. > > Bug, or what? > > -- Peter From jacque at hyperactivesw.com Fri Mar 4 15:04:06 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 04 Mar 2011 14:04:06 -0600 Subject: Backscript behavior Message-ID: <4D7145B6.7050502@hyperactivesw.com> Somebody preserve my sanity here...if a stack script is inserted into the back, and you happen to be working in that stack, are called handlers executed twice? I'm getting some weird results. The message watcher says they aren't, and lists only one call for each handler. But the debugger steps through each one twice. I'm inclined to think it's a debugger issue, but if not, it would explain some weird behaviors I'm seeing in my stack. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From dunbarx at aol.com Fri Mar 4 15:18:34 2011 From: dunbarx at aol.com (dunbarx at aol.com) Date: Fri, 04 Mar 2011 15:18:34 -0500 Subject: Backscript behavior In-Reply-To: <4D7145B6.7050502@hyperactivesw.com> References: <4D7145B6.7050502@hyperactivesw.com> Message-ID: <8CDA8C078D209A0-100C-B2C@webmail-d056.sysops.aol.com> Jacques: If I have this in a button script: on mouseUp checkBack end mouseUp and this in a stack script: on checkBack put "" wait 20 put random(99) end checkBack and then insert that stack script into back, I still only get one random number. Is that what you meant, that you might get two? And by the way, answers are what we expect from you, not questions. Craig -----Original Message----- From: J. Landman Gay To: LiveCode Mailing List Sent: Fri, Mar 4, 2011 3:04 pm Subject: Backscript behavior Somebody preserve my sanity here...if a stack script is inserted into the back, and you happen to be working in that stack, are called handlers executed twice? I'm getting some weird results. The message watcher says they aren't, and lists only one call for each handler. But the debugger steps through each one twice. I'm inclined to think it's a debugger issue, but if not, it would explain some weird behaviors I'm seeing in my stack. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From bobs at twft.com Fri Mar 4 16:18:40 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 4 Mar 2011 13:18:40 -0800 Subject: Backscript behavior In-Reply-To: <8CDA8C078D209A0-100C-B2C@webmail-d056.sysops.aol.com> References: <4D7145B6.7050502@hyperactivesw.com> <8CDA8C078D209A0-100C-B2C@webmail-d056.sysops.aol.com> Message-ID: <63B3708A-EBCF-4B2E-AA37-4B3804E81FA5@twft.com> You would have to pass checkBack for that to be a valid test wouldn't you? Bob On Mar 4, 2011, at 12:18 PM, DunbarX at aol.com wrote: > Jacques: > > > If I have this in a button script: > > > on mouseUp > checkBack > end mouseUp > > > and this in a stack script: > > > > on checkBack > put "" > wait 20 > put random(99) > end checkBack > > > > > > > and then insert that stack script into back, I still only get one random number. Is that what you meant, that you might get two? > > > And by the way, answers are what we expect from you, not questions. > > > Craig > > > > > > -----Original Message----- > From: J. Landman Gay > To: LiveCode Mailing List > Sent: Fri, Mar 4, 2011 3:04 pm > Subject: Backscript behavior > > > Somebody preserve my sanity here...if a stack script is inserted into the back, and you happen to be working in that stack, are called handlers executed twice? > > I'm getting some weird results. The message watcher says they aren't, and lists only one call for each handler. But the debugger steps through each one twice. > > I'm inclined to think it's a debugger issue, but if not, it would explain some weird behaviors I'm seeing in my stack. > > -- Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at mollysrevenge.com Fri Mar 4 18:50:54 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Fri, 4 Mar 2011 15:50:54 -0800 Subject: mySQL Admin Tools In-Reply-To: <3274CAD9-4C10-42B4-82A9-FDC9D5FAF0A0@twft.com> References: <3274CAD9-4C10-42B4-82A9-FDC9D5FAF0A0@twft.com> Message-ID: Thanks everyone. HAd hoped there'd be at least tool with more than one vote! But I guess they probably all work just fine. Pete Haworth On Mar 4, 2011, at 9:59 AM, Bob Sneidar wrote: > MySqlWorkbench incorporates the features of both the Mysql Administrator, and Mysql Query Browser. These were beta and were fairly unstable. MySqlWorkbench replaces them and is free. > > When I was having trouble with Mysql Administrator, and Mysql Query Browser, I purchased Navicat. That wrked really well for me too, but MySqlWorkbench is free and does everything I need it to. > > Bob > > > On Mar 3, 2011, at 11:28 PM, Peter Haworth wrote: > >> Favourite mySQL admin tools? >> >> Pete Haworth >> >> >> >> >> >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pmbrig at gmail.com Fri Mar 4 20:47:55 2011 From: pmbrig at gmail.com (Peter Brigham MD) Date: Fri, 4 Mar 2011 20:47:55 -0500 Subject: new trick, for me In-Reply-To: References: <65C21CD4-F753-4BC3-8124-06CB837F2652@gmail.com> <5C173ECF-F260-4399-98BA-D679FABC7FED@twft.com> <4D713413.8070105@hyperactivesw.com> <8D8A5396-9297-428F-B110-DD3A36018E45@gmail.com> Message-ID: <06074E6F-8339-4FB4-A213-E8563D41011F@gmail.com> On Mar 4, 2011, at 2:17 PM, Bob Sneidar wrote: > Is the field a part of a background group? A background group > belongs to a stack, not to a card. (I might be wrong but I doubt > it ;-) "belongs to" is what sense? The owner of the background group is the card. Can you say what you mean operationally? > Also try: > > send "put the long id of control 76" to card 1 of stack > get the result > What does that produce? the result is empty executing just the first line gives (for some reason) just the short name of the control. I'm not even going to try to decipher that anomaly. > On Mar 4, 2011, at 11:04 AM, Peter Brigham MD wrote: > >> It appears not to trigger openCard. >> >> FYI, the reason that I needed to do this is that I am trying to do >> something with long id's and found what seems to be a bug in how >> the engine handles this. If I do this while on the first card of >> the stack: >> >> put the long id of control 76 of card 1 of stack >> >> I get something like this: >> >> field id 1051 of group id 1045 of group id 1004 of card id 2276 of >> stack "PDdata" of stack >> >> But if I move to any other card of the stack, and execute the same >> command, I get: >> >> field id 1051 of group id 1045 of group id 1004 of card id 2675 of >> stack "PDdata" of stack >> >> Note that the card id number in the long id is different, depending >> on which card is current -- despite that fact that I asked >> specifically for "the long id of control 76 of ***card 1*** " both >> times. >> >> I know that occasionally executing commands via msg box give >> anomalous results, but that appears not to be a factor here. >> >> So I need to be on the same card of the stack every time I fetch >> long id's for controls of that stack, or else my handlers won't >> work properly. >> >> Bug, or what? This still strikes me as a bug. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From stephenREVOLUTION2 at barncard.com Fri Mar 4 21:04:21 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Fri, 4 Mar 2011 18:04:21 -0800 Subject: mySQL Admin Tools In-Reply-To: References: <3274CAD9-4C10-42B4-82A9-FDC9D5FAF0A0@twft.com> Message-ID: Sequel Pro for the Mac rocks. Free. sqb On 4 March 2011 15:50, Peter Haworth wrote: > Thanks everyone. HAd hoped there'd be at least tool with more than one > vote! But I guess they probably all work just fine. > > Pete Haworth > > On Mar 4, 2011, at 9:59 AM, Bob Sneidar wrote: > > > MySqlWorkbench incorporates the features of both the Mysql Administrator, > and Mysql Query Browser. These were beta and were fairly unstable. > MySqlWorkbench replaces them and is free. > > > > When I was having trouble with Mysql Administrator, and Mysql Query > Browser, I purchased Navicat. That wrked really well for me too, but > MySqlWorkbench is free and does everything I need it to. > > > > Bob > > > > > > On Mar 3, 2011, at 11:28 PM, Peter Haworth wrote: > > > >> Favourite mySQL admin tools? > >> > >> Pete Haworth > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Stephen Barncard San Francisco Ca. USA more about sqb From sarah.reichelt at gmail.com Fri Mar 4 21:51:47 2011 From: sarah.reichelt at gmail.com (Sarah Reichelt) Date: Sat, 5 Mar 2011 12:51:47 +1000 Subject: Backscript behavior In-Reply-To: <4D7145B6.7050502@hyperactivesw.com> References: <4D7145B6.7050502@hyperactivesw.com> Message-ID: On Sat, Mar 5, 2011 at 6:04 AM, J. Landman Gay wrote: > Somebody preserve my sanity here... Sorry, you've been talking to associating with all of us here for too long... there is now no way to preserve sanity :-) From pete at mollysrevenge.com Fri Mar 4 21:59:18 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Fri, 4 Mar 2011 18:59:18 -0800 Subject: mySQL Admin Tools In-Reply-To: References: <3274CAD9-4C10-42B4-82A9-FDC9D5FAF0A0@twft.com> Message-ID: Thanks, that's 2 votes for it! Pete Haworth On Mar 4, 2011, at 6:04 PM, stephen barncard wrote: > Sequel Pro for the Mac rocks. Free. > > sqb > > > > On 4 March 2011 15:50, Peter Haworth wrote: > >> Thanks everyone. HAd hoped there'd be at least tool with more than one >> vote! But I guess they probably all work just fine. >> >> Pete Haworth >> >> On Mar 4, 2011, at 9:59 AM, Bob Sneidar wrote: >> >>> MySqlWorkbench incorporates the features of both the Mysql Administrator, >> and Mysql Query Browser. These were beta and were fairly unstable. >> MySqlWorkbench replaces them and is free. >>> >>> When I was having trouble with Mysql Administrator, and Mysql Query >> Browser, I purchased Navicat. That wrked really well for me too, but >> MySqlWorkbench is free and does everything I need it to. >>> >>> Bob >>> >>> >>> On Mar 3, 2011, at 11:28 PM, Peter Haworth wrote: >>> >>>> Favourite mySQL admin tools? >>>> >>>> Pete Haworth >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > > -- > > > > Stephen Barncard > San Francisco Ca. USA > > more about sqb > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Sat Mar 5 00:34:35 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 04 Mar 2011 23:34:35 -0600 Subject: Backscript behavior In-Reply-To: References: <4D7145B6.7050502@hyperactivesw.com> Message-ID: <4D71CB6B.7010203@hyperactivesw.com> On 3/4/11 8:51 PM, Sarah Reichelt wrote: > On Sat, Mar 5, 2011 at 6:04 AM, J. Landman Gay wrote: > >> Somebody preserve my sanity here... > > Sorry, you've been talking to associating with all of us here for too > long... there is now no way to preserve sanity :-) I'm afraid you may be right... I've been trying to track down an intermittent, rarely reproducible, data-destroying bug for four days. If that doesn't make you crazy, I don't know what will. I have to assume everyone here is the same, we've all been there. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Sat Mar 5 00:52:02 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 04 Mar 2011 23:52:02 -0600 Subject: Backscript behavior In-Reply-To: <8CDA8C078D209A0-100C-B2C@webmail-d056.sysops.aol.com> References: <4D7145B6.7050502@hyperactivesw.com> <8CDA8C078D209A0-100C-B2C@webmail-d056.sysops.aol.com> Message-ID: <4D71CF82.9020904@hyperactivesw.com> On 3/4/11 2:18 PM, dunbarx at aol.com wrote: > If I have this in a button script: > > on mouseUp > checkBack > end mouseUp > > and this in a stack script: > > on checkBack > put "" > wait 20 > put random(99) > end checkBack > > > and then insert that stack script into back, I still only get > one random number. Is that what you meant, that you might get two? Yes, but only if I'm in the debugger. When I had the handler announce itself in the message box, I got the right number of iterations too. But when I stepped through in the debugger, it was like it called itself twice. The message watcher also said there was only one message sent. It may be a debugger issue rather than a message-sending problem. The code acts okay until I step through it. > And by the way, answers are what we expect from you, not questions. I wanted to give you something to do. :) I've been trying to track down a critical bug for four days and I can't find where it's happening. I thought this backscript thing might have something to do with it, but I've removed the backscript and it didn't help. So, blind alley. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Sat Mar 5 01:03:45 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 05 Mar 2011 00:03:45 -0600 Subject: Newbie: how to start with this iOS project In-Reply-To: <02DC3669-964C-44EF-96C0-F5E6B86F15CF@wellminds.org> References: <02DC3669-964C-44EF-96C0-F5E6B86F15CF@wellminds.org> Message-ID: <4D71D241.8040909@hyperactivesw.com> On 3/4/11 12:24 PM, John R. Brauer wrote: > Hello, > > I am relatively new to LiveCode and totally new to iOS. Glad you made it here. > I have a > project that I would like to do and need suggestions about how to > begin and how to do the data structure for it. The project would be > similar to the Audubon Bird program on iOS (although the content is > not about birds); I would like the same search capabilities (enter > parameters on a variety of fields; color, size, habitat, etc.) and > would like suggestions about how to start... would this be a database > endeavor, etc. Can databases be used in iOS projects? I would like > for the content to be stored in-app; no need for internet connection > to use it. The used would not need to be able to enter or alter the > data provided by the app, although there is another part of the same > app where I would like the user to be able to store their own notes, > sort of akin to the Life List aspect of the Audubon app. What would > you all suggest, so that I can know where to start reading? No databases yet in iOS; no externals at all in fact, although they're coming. But if most of your content is static I don't think I'd bother with one anyway. I'd store the images in a folder on disk and set file references to all the image objects on the cards so they load. Using external image files is more efficient in iOS and is recommended, so don't import the images as controls. You can use LiveCode's built-in search capabilities for finding stuff. You might want to add a hidden keyword field on each card if the display text doesn't contain all the possible search words. For user notes, you'll need to store the user's entries in a text file in one of the "approved" Apple folders, probably Documents. Writing and reading from text files is a one-line operation if you use the url syntax and is also very easy. Read the file in whenever the user wants to see or edit their notes, and put it into a field. Save it back to the text file when they're done. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From eps11 at mac.com Sat Mar 5 02:58:31 2011 From: eps11 at mac.com (Eric Peyron) Date: Sat, 05 Mar 2011 08:58:31 +0100 Subject: Resizing an image with min and max limits Message-ID: <27445759-7924-4C0F-BDE5-FAED4A8CBD18@mac.com> Hi all, I have created an app with multi-touch resizing of images using the "How do I implement a multi-touch pinch motion?" lesson, but I can't seem to set limits to the resizing. What lines could I add to the code of the sample stack from this lesson to have a min size and and a max size for my image? Thanks in advance, Eric From keith.clarke at clarkeandclarke.co.uk Sat Mar 5 03:35:29 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Sat, 5 Mar 2011 08:35:29 +0000 Subject: How to develop and deploy with ListMagic within the GLX application framework? In-Reply-To: References: <58A7C3FA-253F-44E0-A6B2-8F629FD784A2@clarkeandclarke.co.uk> Message-ID: ...thanks Bob - very useful stuff - and I'll definitely be referencing this as I work through the lessons again and DGH documentation. However, before I get to manipulating data, I need to learn how to use non-data UI elements within data grids - to replicate ListMagic's row-select checkboxes. On 4 Mar 2011, at 18:24, Bob Sneidar wrote: > What really helped me take hold of the reigns of datagrids is the notion of getting the index (or line) of a data control, getting the array associated with that line, altering the array, and then setting the array in the datagrid when I was done. From claus at dreischer.de Sat Mar 5 04:55:33 2011 From: claus at dreischer.de (Claus Dreischer) Date: Sat, 05 Mar 2011 10:55:33 +0100 Subject: formattedHeight and scrollbars In-Reply-To: <4D5C3B93.5060106@dreischer.de> References: <4D5C3B93.5060106@dreischer.de> Message-ID: <4D720895.2030904@dreischer.de> Fixed with 4.6.0-dp-6. http://quality.runrev.com/qacenter/show_bug.cgi?id=9404 We can now use the formattedHeight (or Width) reliably to decide if a field needs scrollbars or not. Regards, Claus. Am 16.02.11 22:03, schrieb Claus Dreischer: > Hi, > > I'm a bit confused with the formattedHeight of a field and an additional > scrollbar: > > The content of a field has the formattedHeight of e.g. 74 > The scrollbarwidth is set to 10, but the hScrollbar is not enabled yet. > > Now when i enable the hScrollbar, > the formattedHeight of that field jumps to *94*. > > The scrollbar is counted twice. > > I would have expected the new formattedHeight to jump to 84. > > Can someone please explain the logic behind this (when it's intended)? > > > Regards, > Claus. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From harald at etcpp.de Sat Mar 5 05:32:19 2011 From: harald at etcpp.de (=?iso-8859-1?Q?Harald_M=FCller?=) Date: Sat, 5 Mar 2011 11:32:19 +0100 Subject: Resizing an image with min and max limits In-Reply-To: <27445759-7924-4C0F-BDE5-FAED4A8CBD18@mac.com> References: <27445759-7924-4C0F-BDE5-FAED4A8CBD18@mac.com> Message-ID: <022880CE-60B5-4E34-AC5A-73059E18D6FC@etcpp.de> Hi Eric, the function "resizeGraphic" in the demo will resize the graphic, here you could add your image limits. Best regards, Harald. | Harald M?ller (app.etcpp.de) | Theodor-K?rner-Stra?e 4, D-97072 W?rzburg | Telefon 0931-8049170 Am 05.03.2011 um 08:58 schrieb Eric Peyron: > Hi all, > > I have created an app with multi-touch resizing of images using the "How do I implement a multi-touch pinch motion?" lesson, but I can't seem to set limits to the resizing. What lines could I add to the code of the sample stack from this lesson to have a min size and and a max size for my image? > > Thanks in advance, > Eric > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From eps11 at mac.com Sat Mar 5 06:01:16 2011 From: eps11 at mac.com (eps11 at mac.com) Date: Sat, 05 Mar 2011 12:01:16 +0100 Subject: Resizing an image with min and max limits Message-ID: <048CF0E1-7E78-4887-8187-7CF9C7D79F92@mac.com> Thanks for your answer. I have been trying to add limits in this section, but the results are... strange. I am trying to put a max limit on the width of image "Small" (which is 320x480) by entering : if the width of image "Small" < 480 then set the width of image "Small" to round(sFRAMEWIDTH * (tPercentage / 100)) if the width of image "Small" >= 480 then After this latest "then", I have tried everything I know (but I am still a beginner) "set the width of image "Small" to 480" or "set the maxwidth of image "Small" to 480" works, but block the resizing at 480 "put 100 into tPercentage" blocks the resizing at 480 too At this stage, I think I would need to find a way to enter a fixed value for either the percentage or the maxwidth, then reset this value so that the resizing could continue, but there might be a better way to do all this. I am not sure about what to do next. From m.schonewille at economy-x-talk.com Sat Mar 5 06:42:51 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sat, 5 Mar 2011 12:42:51 +0100 Subject: Resizing an image with min and max limits In-Reply-To: <27445759-7924-4C0F-BDE5-FAED4A8CBD18@mac.com> References: <27445759-7924-4C0F-BDE5-FAED4A8CBD18@mac.com> Message-ID: Hi Eric, You might find this function useful: function rescale theImgWidth,theImgHeight,theCdWidth,theCdHeight if theCdWidth/theImgWidth < theCdHeight/theImgHeight then put theCdWidth / theImgWidth into myRatio else put theCdHeight / theImgHeight into myRatio end if put theImgWidth * myRatio into myNewWidth put theImgHeight * myRatio into myNewHeight return myNewWidth,myNewHeight end rescale TheImgWidth and theImgHeight are the original width and height, e.g. the formattedWidth and formattedHeight of an image object, and the CdWidth and theDcHeight are the width and height of the destination area. It returns the new height and width for your object, with correct aspect ratio. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce On 5 mrt 2011, at 08:58, Eric Peyron wrote: > Hi all, > > I have created an app with multi-touch resizing of images using the "How do I implement a multi-touch pinch motion?" lesson, but I can't seem to set limits to the resizing. What lines could I add to the code of the sample stack from this lesson to have a min size and and a max size for my image? > > Thanks in advance, > Eric From williamdesmet at gmail.com Sat Mar 5 09:40:49 2011 From: williamdesmet at gmail.com (William de Smet) Date: Sat, 5 Mar 2011 15:40:49 +0100 Subject: I need advise on slow start standalone Message-ID: <9E4D1E7C-C570-49DF-804B-D09733787E56@gmail.com> Hi there all, I have a educational standalone which start very slow on OSX and Win 7 (20 sec or longer).The stack has 180 cards and its size is 80 MB. The standalone however is only 8 MB but uses 150 MB of RAM. I know all cards are put into memory on startup. Is there a way to speed things up? I already set the 'DontUseQT' to true. I could put all cards as seperate stacks in a folder and call them when needed. So only then they are put in memory, right? But this is a lot of work :-( In addition to this: If I use seperate stacks how do I make sure the individual stacks are not opened in the IDE and used? I know I can password protect them but I don't want them to open at all. All your advise is welcome!! greetings, William From liste.revo at medard.on-rev.com Sat Mar 5 10:46:10 2011 From: liste.revo at medard.on-rev.com (Medard) Date: Sat, 5 Mar 2011 16:46:10 +0100 Subject: On-Rev antispam (& reCAPTCHA) Message-ID: <1jxo0im.p869sxzh3akgM%liste.revo@medard.on-rev.com> Bonjour ! After all, on my modest On-Rev blog, I am beginning to get some spam ;-> In my blog, comments are written to separate text files -- so it's easy to delete and regenerate them when they are filled with spam ;-) But it is turning into a tedious work! I thought of a "reCAPTCHA" solution (now owned by Google), but it seems a little laborious -- and mostly I don't understand exactly how to operate with On-Rev... The "client" side is quite clear (a form with some script statements), but I don't see how to code the "server" side... They do have some sample code, but not too much -- and no "irev" code, only PHP code (I am willing to do that in irev code) Searching the Nabble archives, I saw that Pierre "Wo...ords" used some antispam, but he seems to be using a simpler solution (number of chars of the email address) What are your thoughts about that? -- lectures.medard.on-rev.com From stephenREVOLUTION2 at barncard.com Sat Mar 5 10:54:59 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Sat, 5 Mar 2011 07:54:59 -0800 Subject: On-Rev antispam (& reCAPTCHA) In-Reply-To: <1jxo0im.p869sxzh3akgM%liste.revo@medard.on-rev.com> References: <1jxo0im.p869sxzh3akgM%liste.revo@medard.on-rev.com> Message-ID: you might do what Sarah did: create a simple handler to create, randomize and ask a math problem to enter: What is 6+3 ? easily done in php or rev server and requires a human to work sqb On 5 March 2011 07:46, Medard wrote: > Bonjour ! > > After all, on my modest On-Rev blog, I am beginning to get some spam ;-> > > In my blog, comments are written to separate text files -- so it's easy > to delete and regenerate them when they are filled with spam ;-) > > But it is turning into a tedious work! > > I thought of a "reCAPTCHA" solution (now owned by Google), but it seems > a little laborious -- and mostly I don't understand exactly how to > operate with On-Rev... > > The "client" side is quite clear (a form with some script statements), > but I don't see how to code the "server" side... > > They do have some sample code, but not too much -- and no "irev" code, > only PHP code (I am willing to do that in irev code) > > Searching the Nabble archives, I saw that Pierre "Wo...ords" used some > antispam, but he seems to be using a simpler solution (number of chars > of the email address) > > What are your thoughts about that? > > -- > lectures.medard.on-rev.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Stephen Barncard San Francisco Ca. USA more about sqb From warren at warrensweb.us Sat Mar 5 11:03:24 2011 From: warren at warrensweb.us (Warren Samples) Date: Sat, 05 Mar 2011 10:03:24 -0600 Subject: On-Rev antispam (& reCAPTCHA) In-Reply-To: <1jxo0im.p869sxzh3akgM%liste.revo@medard.on-rev.com> References: <1jxo0im.p869sxzh3akgM%liste.revo@medard.on-rev.com> Message-ID: <1299341004.2582.32.camel@mint-i7> On Sat, 2011-03-05 at 16:46 +0100, Medard wrote: > Bonjour ! > > After all, on my modest On-Rev blog, I am beginning to get some spam ;-> > > In my blog, comments are written to separate text files -- so it's easy > to delete and regenerate them when they are filled with spam ;-) > > But it is turning into a tedious work! > > I thought of a "reCAPTCHA" solution (now owned by Google), but it seems > a little laborious -- and mostly I don't understand exactly how to > operate with On-Rev... > > The "client" side is quite clear (a form with some script statements), > but I don't see how to code the "server" side... > > They do have some sample code, but not too much -- and no "irev" code, > only PHP code (I am willing to do that in irev code) > > Searching the Nabble archives, I saw that Pierre "Wo...ords" used some > antispam, but he seems to be using a simpler solution (number of chars > of the email address) > > What are your thoughts about that? > Hello Medard, Personally, I have always disliked captcha and in its current form I absolutely hate it. I can hardly read the damn words and sometimes it takes forever to get one I can read. Have you considered some variant of "obvious answer"? You may find this not too tricky to script, presenting a randomly selected question or task from a list and checking the user supplies the correct matching response. This might get a little cumbersome if there are number of languages you'd feel the need to support gets long, though. Good luck! From gcanyon+rev at gmail.com Sat Mar 5 12:04:00 2011 From: gcanyon+rev at gmail.com (Geoff Canyon Rev) Date: Sat, 5 Mar 2011 11:04:00 -0600 Subject: I need advise on slow start standalone In-Reply-To: <9E4D1E7C-C570-49DF-804B-D09733787E56@gmail.com> References: <9E4D1E7C-C570-49DF-804B-D09733787E56@gmail.com> Message-ID: curious how you're going from an 80mb stack to an 8mb standalone. In any case, likely you should change it so you only load content when you need it. If you have any openstack, preopenstack, opencard, preopencard handlers, throw some diagnostics in them to keep track of time as they execute, to figure out where the time is going, something like: put ticks() & "step one" & cr after displayThisWhenStartupIsComplete gc From bvg at mac.com Sat Mar 5 13:06:13 2011 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Sat, 05 Mar 2011 19:06:13 +0100 Subject: Live LiveCode Code event #13 In-Reply-To: References: <1A45BA5D-B90D-413F-B44D-60847D242A85@mac.com> Message-ID: One hour to go. Invitation to watch: commence! On 4 Mar 2011, at 18:40, Bj?rnke von Gierke wrote: > It's here again! > > Due to problems with finding presenters, the regulars had to fly in. Please step up to present. Yes you. You think I don't mean you, but I do. > > Marks presentation will be about reading and writing unicode files, unicode text manipulation by script, and right-to-left text display in LC fields. > www.livecode.tv/mark > > David will wrap up with a undisclosed topic. He promised to do a proper show with recording and example code and stuff, by an oath on his iPhone. > www.livecode.tv/david > > > get all the info at: > www.livecode.tv > > or simply join chatrev tomorrow, Saturday at: > Zurich: 20:00 > Buenos Aires: 16:00 > New York: 14:00 > San Francisco: 11:00 > Sydney: 06:00 > > Have fun > Bj?rnke > > -- > > official ChatRev page: > http://bjoernke.com/chatrev > > > Chat with other RunRev developers: > go stack URL "http://bjoernke.com/chatrev/chatrev1.3b3.rev" > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gbrackett at luceatlux.com Sat Mar 5 13:17:56 2011 From: gbrackett at luceatlux.com (George C Brackett) Date: Sat, 5 Mar 2011 13:17:56 -0500 Subject: re [ANN] New ChartMaker Release Message-ID: Congratulations, Hugh! A very big achievement. Speaking as a beta-tester and new owner of CM 2.1, if you deal with data display and don't have this tool, you should get it right away; if you have a previous version you should upgrade! George Brackett > An upgrade for ChartMaker has been released. It has also moved home to its > own website. > > > If you already have a copy, you can click 'Check for updates...' in the > program, download the file and follow the link. > > If you would like to investigate ChartMaker, see a screencast, find out > what's new in this release and download a free trial, go to > www.flexibleLearning.com/chartmaker > > You can also download a free trial and purchase ChartMaker from the runRev > store at http://www.runrev.com/store/product/chartmaker/ > > > My public thanks to all the beta testers; you are stars, each one of you! > > > Hugh Senior > FLCo From bdrunrev at gmail.com Sat Mar 5 13:47:09 2011 From: bdrunrev at gmail.com (Bernard Devlin) Date: Sat, 5 Mar 2011 18:47:09 +0000 Subject: dynamic map of android activations Message-ID: http://www.youtube.com/watch?v=fqFpq9WXbJo Might be of interest to some. I'm not one for the latest gadgets, so I had barely heard of Droid. Bernard From Roger.E.Eller at sealedair.com Sat Mar 5 14:03:10 2011 From: Roger.E.Eller at sealedair.com (Roger.E.Eller at sealedair.com) Date: Sat, 5 Mar 2011 14:03:10 -0500 Subject: dynamic map of android activations In-Reply-To: Message-ID: Bernard Devlin wrote: > http://www.youtube.com/watch?v=fqFpq9WXbJo > > Might be of interest to some. I'm not one for the latest gadgets, so > I had barely heard of Droid. > > Bernard VERY COOL! ~Roger From jacque at hyperactivesw.com Sat Mar 5 14:17:54 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 05 Mar 2011 13:17:54 -0600 Subject: On-Rev antispam (& reCAPTCHA) In-Reply-To: <1jxo0im.p869sxzh3akgM%liste.revo@medard.on-rev.com> References: <1jxo0im.p869sxzh3akgM%liste.revo@medard.on-rev.com> Message-ID: <4D728C62.6040707@hyperactivesw.com> On 3/5/11 9:46 AM, Medard wrote: > Bonjour ! > > After all, on my modest On-Rev blog, I am beginning to get some spam ;-> > > In my blog, comments are written to separate text files -- so it's easy > to delete and regenerate them when they are filled with spam ;-) > > But it is turning into a tedious work! > > I thought of a "reCAPTCHA" solution (now owned by Google), but it seems > a little laborious -- and mostly I don't understand exactly how to > operate with On-Rev... > > The "client" side is quite clear (a form with some script statements), > but I don't see how to code the "server" side... I had the same problem within a few minutes of putting up a contact page. I started getting email from bots. My solution is dead simple but I haven't received a single spam since I added it. Bots don't seem to change any selections in option or radio buttons, so I added two radio buttons to my form, named "verify" with values "human" and "algorithm". The default is "algorithm", so anyone who wants to email me has to change the selection. I intentionally did not use the word "bot" just in case they do parse pages for that. In my iRev script I do this in the section that parses the form data: if $_POST["verify"] = "human" then If "verify" isn't "human" I discard the entry and don't send email. It really does seem to work. I hate capchas, I can never read them. This is easy and quick for any real person to use. The page is here if you want to look: -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Sat Mar 5 14:36:08 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 05 Mar 2011 13:36:08 -0600 Subject: Resizing an image with min and max limits In-Reply-To: <048CF0E1-7E78-4887-8187-7CF9C7D79F92@mac.com> References: <048CF0E1-7E78-4887-8187-7CF9C7D79F92@mac.com> Message-ID: <4D7290A8.5020801@hyperactivesw.com> On 3/5/11 5:01 AM, eps11 at mac.com wrote: > Thanks for your answer. I have been trying to add limits in this > section, but the results are... strange. > > I am trying to put a max limit on the width of image "Small" (which > is 320x480) by entering : > > if the width of image "Small"< 480 then set the width of image > "Small" to round(sFRAMEWIDTH * (tPercentage / 100)) if the width of > image "Small">= 480 then > > After this latest "then", I have tried everything I know (but I am > still a beginner) > > "set the width of image "Small" to 480" or "set the maxwidth of image > "Small" to 480" works, but block the resizing at 480 "put 100 into > tPercentage" blocks the resizing at 480 too > > At this stage, I think I would need to find a way to enter a fixed > value for either the percentage or the maxwidth, then reset this > value so that the resizing could continue, but there might be a > better way to do all this. > > I am not sure about what to do next. Here is a handler I use that scales an image to fit into a specified rectanglular area, preserving proportions. You pass a long image reference (like "the name of image 1" or "image 'Small'") and the rect you want it to fit into. In your case it sounds like that may be the screenrect. Images that are already smaller than the target rect are not changed. Larger ones get scaled to fit. The location of the image is preserved so it doesn't move around the screen. on scaleToFit pImg,pRect -- pass an image reference & a target rect put the formattedHeight of pImg into tFHt put the formattedWidth of pImg into tFWd put item 3 of pRect - item 1 of pRect into tTargetWd put item 4 of pRect - item 2 of pRect into tTargetHt set the rect of pImg to pRect -- to init; put the loc of pImg into tLoc set the width of pImg to tFWd set the height of pImg to tFHt if tTargetHt < tFHt or tTargetWd < tFWd then put min(tTargetHt/tFHt, tTargetWd/tFWd) into theRatio set the height of pImg to tFHt*theRatio set the width of pImg to tFWd*theRatio end if set the loc of pImg to tLoc end scaleToFit -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From scott at tactilemedia.com Sat Mar 5 14:56:11 2011 From: scott at tactilemedia.com (Scott Rossi) Date: Sat, 05 Mar 2011 11:56:11 -0800 Subject: On-Rev antispam (& reCAPTCHA) In-Reply-To: <4D728C62.6040707@hyperactivesw.com> Message-ID: Recently, Jacque Landman Gay wrote: >> After all, on my modest On-Rev blog, I am beginning to get some spam ;-> > I had the same problem within a few minutes of putting up a contact > page. I started getting email from bots. My solution is dead simple but > I haven't received a single spam since I added it. I recently heard out about this visual captcha service, that requires you to count objects in an image: I haven't used it yet myself, but I like the idea of a picture test. Ideally, the developers should supplement it with audio like reCaptcha, but still an interesting solution. Regards, Scott Rossi Creative Director Tactile Media, UX Design From harrison at all-auctions.com Sat Mar 5 14:59:09 2011 From: harrison at all-auctions.com (Rick Harrison) Date: Sat, 5 Mar 2011 14:59:09 -0500 Subject: I need advise on slow start standalone In-Reply-To: <9E4D1E7C-C570-49DF-804B-D09733787E56@gmail.com> References: <9E4D1E7C-C570-49DF-804B-D09733787E56@gmail.com> Message-ID: <5290CCEE-8401-441C-825D-672845187DAE@all-auctions.com> Hi William, Use variables instead of fields when at all possible. You will find that your executable code will pick up in speed. If you are just afraid users will think the stack has crashed, use a progress bar to tell them when everything has finished loading. For some weird reason progress bars make some people a little more patient. Other than that, try displays and timers in your code to see which sections are taking the longest to load. Then look at the code to see if there is a more efficient way of accomplishing the same tasks. Good luck! Rick On Mar 5, 2011, at 9:40 AM, William de Smet wrote: > Hi there all, > > I have a educational standalone which start very slow on OSX and Win 7 (20 sec or longer).The stack has 180 cards and its size is 80 MB. The standalone however is only 8 MB but uses 150 MB of RAM. I know all cards are put into memory on startup. > > Is there a way to speed things up? I already set the 'DontUseQT' to true. > I could put all cards as seperate stacks in a folder and call them when needed. > So only then they are put in memory, right? > But this is a lot of work :-( > > In addition to this: If I use seperate stacks how do I make sure the individual stacks are not opened in the IDE and used? I know I can password protect them but I don't want them to open at all. > > All your advise is welcome!! > > greetings, > > William > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode __________________________________ Rick Harrison You can buy my $10 music album "Funny Time Machine" digital CD on the iTunes Store Now! To visit the iTunes Store now to listen to samples of my CD please click on the following link. (Please note you must have iTunes installed on your computer for this link to work.) http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?playListId=213668290 From rman at free.fr Sat Mar 5 16:51:35 2011 From: rman at free.fr (Robert Mann) Date: Sat, 5 Mar 2011 13:51:35 -0800 (PST) Subject: On-Rev antispam (& reCAPTCHA) In-Reply-To: References: <1jxo0im.p869sxzh3akgM%liste.revo@medard.on-rev.com> <4D728C62.6040707@hyperactivesw.com> Message-ID: <1299361895712-3337116.post@n4.nabble.com> Hi so far the simple "double" field solution has eliminated spams : I just require the email info to be written a second time in order to check its validity. Your name Your email Your emailForValidation -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/On-Rev-antispam-reCAPTCHA-tp3336762p3337116.html Sent from the Revolution - User mailing list archive at Nabble.com. From bvg at mac.com Sat Mar 5 17:01:30 2011 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Sat, 05 Mar 2011 23:01:30 +0100 Subject: On-Rev antispam (& reCAPTCHA) In-Reply-To: <1299361895712-3337116.post@n4.nabble.com> References: <1jxo0im.p869sxzh3akgM%liste.revo@medard.on-rev.com> <4D728C62.6040707@hyperactivesw.com> <1299361895712-3337116.post@n4.nabble.com> Message-ID: <267DF6DE-E378-474D-8128-F3C7F09535D1@mac.com> another trick is to not name your html fields not so obvious. Most bots look for email fields and fill in garbage into the rest. So naming your fields "Applepie", "Rocketbooster" and "Sacknut" instead of "email", "about" and "password" will actually get rid of quite a few of the smarter bots. On 5 Mar 2011, at 22:51, Robert Mann wrote: > Hi so far the simple "double" field solution has eliminated spams : > I just require the email info to be written a second time in order to check > its validity. > Your name > Your email > Your emailForValidation > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/On-Rev-antispam-reCAPTCHA-tp3336762p3337116.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From RevList at CreaTECHSol.com Sat Mar 5 18:03:57 2011 From: RevList at CreaTECHSol.com (RevList) Date: Sat, 05 Mar 2011 15:03:57 -0800 Subject: Position of Answer Dialog Message-ID: I have an enhancement suggestion. I do not always want to have the Answer dialog box show up as a sheet on OS X. The problem is that it always centers it on the screen, rather than on the active window as it does on Windows. I would prefer to be able to control this position. This particularly applies to Answer Color. I want to have the color picker open right by the control that I click on, and not way off to the center of the screen. ****************************************** Stewart Lynch CreaTECH Solutions slynch at CreaTECHSol.com 604.484.8499 Skype:StewartLynch There are only 10 kinds of people. Those who understand binary and those who don't. ****************************************** From film2 at handheldfilm.com Sat Mar 5 18:12:03 2011 From: film2 at handheldfilm.com (Emmett Gray) Date: Sat, 5 Mar 2011 18:12:03 -0500 Subject: Midi measure number to spoken voice? Message-ID: Does anyone know of a way to have a synthesized voice announce measure numbers from a midi file? I've got a long click track someone wants to use for rehearsal, but no way to know where they are unless they run a sequencer, but they want an MP3. From peterwawood at gmail.com Sat Mar 5 18:41:22 2011 From: peterwawood at gmail.com (Peter W A Wood) Date: Sun, 6 Mar 2011 07:41:22 +0800 Subject: On-Rev antispam (& reCAPTCHA) In-Reply-To: <267DF6DE-E378-474D-8128-F3C7F09535D1@mac.com> References: <1jxo0im.p869sxzh3akgM%liste.revo@medard.on-rev.com> <4D728C62.6040707@hyperactivesw.com> <1299361895712-3337116.post@n4.nabble.com> <267DF6DE-E378-474D-8128-F3C7F09535D1@mac.com> Message-ID: another trick is to hide an html field with a name that would encourage a bot to complete it such as "password" and then ignore any request which has it filled in. On 6 Mar 2011, at 06:01, Bj?rnke von Gierke wrote: > another trick is to not name your html fields not so obvious. Most bots look for email fields and fill in garbage into the rest. So naming your fields "Applepie", "Rocketbooster" and "Sacknut" instead of "email", "about" and "password" will actually get rid of quite a few of the smarter bots. > > > On 5 Mar 2011, at 22:51, Robert Mann wrote: > >> Hi so far the simple "double" field solution has eliminated spams : >> I just require the email info to be written a second time in order to check >> its validity. >> Your name >> Your email >> Your emailForValidation >> >> >> -- >> View this message in context: http://runtime-revolution.278305.n4.nabble.com/On-Rev-antispam-reCAPTCHA-tp3336762p3337116.html >> Sent from the Revolution - User mailing list archive at Nabble.com. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From drjohn at wellminds.org Sat Mar 5 20:28:01 2011 From: drjohn at wellminds.org (John R. Brauer) Date: Sat, 5 Mar 2011 19:28:01 -0600 Subject: Newbie: how to start with this iOS project Message-ID: <20996F8F-4DB6-42CB-90E4-32C6B47E987D@wellminds.org> Jacqueline, Thanks for the suggestions. I will start reading about these things your mentioned. > No databases yet in iOS; no externals at all in fact, although they're > coming. But if most of your content is static I don't think I'd bother > with one anyway. I'd store the images in a folder on disk and set file > references to all the image objects on the cards so they load. Using > external image files is more efficient in iOS and is recommended, so > don't import the images as controls. > > You can use LiveCode's built-in search capabilities for finding stuff. > You might want to add a hidden keyword field on each card if the display > text doesn't contain all the possible search words. > > For user notes, you'll need to store the user's entries in a text file > in one of the "approved" Apple folders, probably Documents. Writing and > reading from text files is a one-line operation if you use the url > syntax and is also very easy. Read the file in whenever the user wants > to see or edit their notes, and put it into a field. Save it back to the > text file when they're done. > > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com From pete at mollysrevenge.com Sat Mar 5 22:38:09 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Sat, 5 Mar 2011 19:38:09 -0800 Subject: Currency Formatting wrap up. Message-ID: <7689C54F-02B6-40AA-8A26-875BF4227FC4@mollysrevenge.com> I have to break this down into more than one message since my original post was apparently too big! I got the scripts I needed to do the currency formatting I was looking for. Thanks to Chris and Alex for providing them. I couldn't tell which one was the best so I'm sending both of them a CD! I'll include both the scripts in a separate message for those who are interested, but wanted to update everyone on what I needed to do to get hold of the information I needed from OSX to pass in to the scripts. You probably saw my posts about the problems I was having with trying to execute the locale command from LC. They were eventually solved by Mark at the QC and the solution is: put line 1 of shell("defaults read .GlobalPreferences AppleLocale") into $LANG put uniDecode(uniEncode(shell("locale -k LC_MONETARY"), "utf8")) into tLocale Please don't ask me to explain it! All I know is, it worked! So now I was able to get hold of all the locale information but then discovered that wasn't enough. Turns out that if the user customises any of these settings in System Settings/Languages and Text/Formats, those changes do not make it to the locale information. They are stored in the user's Library/Preferences folder in a file named com.apple.systempreferences.plist. I had thought that plist files were in XML format but apparently Apple changed that while back to some derivative of XML that is stored as a binary file, so I could not just open the file and read it with Livecode. As an aside, if you right click on any of Apple's plist files and select the Quick Look option, it will display it in readable form - looks just like XML. I ended up writing an Applescript to get the info I needed and executing it from LiveCode. That too will be in the follow up posting. Thanks to everyone for their help. Pete Haworth From jacque at hyperactivesw.com Sun Mar 6 00:43:41 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 05 Mar 2011 23:43:41 -0600 Subject: Newbie: how to start with this iOS project In-Reply-To: <20996F8F-4DB6-42CB-90E4-32C6B47E987D@wellminds.org> References: <20996F8F-4DB6-42CB-90E4-32C6B47E987D@wellminds.org> Message-ID: <4D731F0D.7080609@hyperactivesw.com> On 3/5/11 7:28 PM, John R. Brauer wrote: > Jacqueline, > > Thanks for the suggestions. I will start reading about these things your mentioned. Holler if you get stuck. That's why we're here. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From shaosean at wehostmacs.com Sun Mar 6 01:40:11 2011 From: shaosean at wehostmacs.com (Shao Sean) Date: Sun, 6 Mar 2011 01:40:11 -0500 Subject: Currency Formatting wrap up. Message-ID: <81A3EFD5-FA2D-49A0-AF45-2D1235075B63@wehostmacs.com> This information is easily obtained from the OS through the externals interface.. The OS also broadcasts when it is changed so no need for polling.. From gerry.orkin at gmail.com Sun Mar 6 05:26:29 2011 From: gerry.orkin at gmail.com (Gerry) Date: Sun, 6 Mar 2011 21:26:29 +1100 Subject: iOS button ink settings Message-ID: <8444F65AA17441DF8A1D54F6AE672168@gmail.com> Hi folks, I'm using ink settings on some buttons with icons, and while they work in the stack they don't in the simulator or on my iPhone when I've installed the app. Are ink settings supported on iOS? Gerry -- photo site: http://gerryorkin.com From janschenkel at yahoo.com Sun Mar 6 05:54:24 2011 From: janschenkel at yahoo.com (Jan Schenkel) Date: Sun, 6 Mar 2011 02:54:24 -0800 (PST) Subject: Locale aware formatting Message-ID: <175112.86892.qm@web65416.mail.ac4.yahoo.com> Hi all, In light of the recent questions regarding Locale aware formatting of date/time/number/currency in LiveCode, I thought it might be interesting to put together a different solution, using Java as a helper process: The most interesting part of this approach is that it also offers support for formatting content in a locale other than the system locale. Applicable if your application is used by a French user to send an invoice to a German-speaking customer, for instance. HTH, Jan Schenkel. ===== Quartam Reports & PDF Library for LiveCode www.quartam.com ===== "As we grow older, we grow both wiser and more foolish at the same time." (La Rochefoucauld) From liste.revo at medard.on-rev.com Sun Mar 6 08:54:06 2011 From: liste.revo at medard.on-rev.com (Medard) Date: Sun, 6 Mar 2011 14:54:06 +0100 Subject: On-Rev antispam (& reCAPTCHA) In-Reply-To: <1jxo0im.p869sxzh3akgM%liste.revo@medard.on-rev.com> Message-ID: <1jxpovi.ssbhde1mb90zlM%liste.revo@medard.on-rev.com> Medard wrote: > What are your thoughts about that? Thank you for all your responses! Me too, i dislike Captchas, and I am glad of your suggestions! Medard -- lectures.medard.on-rev.com From pete at mollysrevenge.com Sun Mar 6 12:37:47 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Sun, 6 Mar 2011 09:37:47 -0800 Subject: Locale aware formatting In-Reply-To: <175112.86892.qm@web65416.mail.ac4.yahoo.com> References: <175112.86892.qm@web65416.mail.ac4.yahoo.com> Message-ID: Sounds great Jan. I forgot to mention in my post that I put in an enhancement request for the ability to format numbers and currency per the locale/user preferences and it seems like it was well received so hopefully we'll see this as a native LC function at some point. Also wanted to mention that my email with the scripts in it has been held for approval because it's too large! Pete Haworth On Mar 6, 2011, at 2:54 AM, Jan Schenkel wrote: > Hi all, > > In light of the recent questions regarding Locale aware formatting of date/time/number/currency in LiveCode, I thought it might be interesting to put together a different solution, using Java as a helper process: > > > The most interesting part of this approach is that it also offers support for formatting content in a locale other than the system locale. Applicable if your application is used by a French user to send an invoice to a German-speaking customer, for instance. > > HTH, > > Jan Schenkel. > ===== > Quartam Reports & PDF Library for LiveCode > www.quartam.com > > ===== > "As we grow older, we grow both wiser and more foolish at the same time." (La Rochefoucauld) > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at mollysrevenge.com Sun Mar 6 12:38:33 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Sun, 6 Mar 2011 09:38:33 -0800 Subject: Currency Formatting wrap up. In-Reply-To: <81A3EFD5-FA2D-49A0-AF45-2D1235075B63@wehostmacs.com> References: <81A3EFD5-FA2D-49A0-AF45-2D1235075B63@wehostmacs.com> Message-ID: <9091C539-7CA2-427D-8A4B-F0A07D596E3B@mollysrevenge.com> Hi Shao, Sorry but I don;t understand - what is the "externals interface"? Pete Haworth On Mar 5, 2011, at 10:40 PM, Shao Sean wrote: > This information is easily obtained from the OS through the externals interface.. The OS also broadcasts when it is changed so no need for polling.. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From keith.clarke at clarkeandclarke.co.uk Sun Mar 6 15:38:40 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Sun, 6 Mar 2011 20:38:40 +0000 Subject: On-Rev antispam (& reCAPTCHA) In-Reply-To: <1jxpovi.ssbhde1mb90zlM%liste.revo@medard.on-rev.com> References: <1jxpovi.ssbhde1mb90zlM%liste.revo@medard.on-rev.com> Message-ID: ...I concur, what great ideas: a) language-independent, random simple maths questions that humans need to understand; b) deliberate hidden password field to capture bots; c) obscure names for login fields to confuse bots; d) simple validation repeat fields. I've learned so much about programming and logic from the creative bunch of people on this list! Best, Keith.. On 6 Mar 2011, at 13:54, Medard wrote: > Medard wrote: > >> What are your thoughts about that? > > Thank you for all your responses! > > Me too, i dislike Captchas, and I am glad of your suggestions! > > Medard > > -- > lectures.medard.on-rev.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From shaosean at wehostmacs.com Sun Mar 6 17:34:17 2011 From: shaosean at wehostmacs.com (Shao Sean) Date: Sun, 6 Mar 2011 17:34:17 -0500 Subject: Currency Formatting wrap up. Message-ID: http://www.runrev.com/newsletter/november/issue13/newsletter5.php From zryip.theslug at gmail.com Sun Mar 6 17:53:05 2011 From: zryip.theslug at gmail.com (zryip theSlug) Date: Sun, 6 Mar 2011 23:53:05 +0100 Subject: How to develop and deploy with ListMagic within the GLX application framework? In-Reply-To: References: <58A7C3FA-253F-44E0-A6B2-8F629FD784A2@clarkeandclarke.co.uk> Message-ID: On Sat, Mar 5, 2011 at 9:35 AM, Keith Clarke wrote: > ...thanks Bob - very useful stuff - and I'll definitely be referencing this as I work through the lessons again and DGH documentation. > > However, before I get to manipulating data, I need to learn how to use non-data UI elements within data grids - to replicate ListMagic's row-select checkboxes. Hi Keith, It was the good occasion to write our first lesson presenting how to create a checkbox in a data grid using the DGH plugin: http://lessons.runrev.com/spaces/lessons/manuals/3060/lessons/28472-How-Do-I-Create-a-Checkbox-in-a-Column- Best regards, -- -Zryip TheSlug- wish you the best! 8) http://www.aslugontheroad.co.cc From capellan2000 at gmail.com Sun Mar 6 22:35:59 2011 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Sun, 6 Mar 2011 19:35:59 -0800 (PST) Subject: New website of Mark Greenberg Message-ID: <1299468959475-3338324.post@n4.nabble.com> Hi all, Recently, I was updating my bookmarks for webpages about LiveCode and found the new website of Mark Greenberg: http://mistergreenberg.com/Games/MrGreenbergsGames.html This website contains many games oriented to teach specific concepts in Mark?s classes. Visit his site and enjoy his creations! Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/New-website-of-Mark-Greenberg-tp3338324p3338324.html Sent from the Revolution - User mailing list archive at Nabble.com. From keith.clarke at clarkeandclarke.co.uk Mon Mar 7 02:46:18 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Mon, 7 Mar 2011 07:46:18 +0000 Subject: How to develop and deploy with ListMagic within the GLX application framework? In-Reply-To: References: <58A7C3FA-253F-44E0-A6B2-8F629FD784A2@clarkeandclarke.co.uk> Message-ID: Hi Zryip, Thanks for the lesson - very timely! And you have anticipated my follow-up question which was to be how to embed a button within a row - brilliant! Don't go thinking that this has exhausted my list of questions on DG/DGH though! ;-) Best, Keith.. On 6 Mar 2011, at 22:53, zryip theSlug wrote: > It was the good occasion to write our first lesson presenting how to > create a checkbox in a data grid using the DGH plugin: > > http://lessons.runrev.com/spaces/lessons/manuals/3060/lessons/28472-How-Do-I-Create-a-Checkbox-in-a-Column- > > > Best regards, > -- > -Zryip TheSlug- wish you the best! 8) > http://www.aslugontheroad.co.cc From keith.clarke at clarkeandclarke.co.uk Mon Mar 7 05:55:01 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Mon, 7 Mar 2011 10:55:01 +0000 Subject: How to develop and deploy with ListMagic within the GLX application framework? In-Reply-To: References: <58A7C3FA-253F-44E0-A6B2-8F629FD784A2@clarkeandclarke.co.uk> Message-ID: <017C4C22-7155-462E-A93D-B8E28EB728A2@clarkeandclarke.co.uk> Hi Zryip, Great lesson - I have a checkbox in a cell. I did have to divert from your lesson slightly. So, below are the additional steps that I took - just in case you want to update your lesson for the following scenario... I wanted a row 'Select' column of (just) checkboxes, centrally aligned under the Select column heading. To: 1. Hide the checkbox name, clear the checkbox control's Basic Properties 'Show name' checkbox 2. Align the checkbox centrally within the column's cell, simply drag the checkbox control around in the DGH Column Builder's 'Column Content' view - to over the middle of the underlying _ColumnData_ control, as shown here http://dl.dropbox.com/u/1909531/checkbox%20in%20DGH%20cell.png It works, though I'm not sure if it's best practice?!? BTW For this list, I want these Row-Select checkboxes to be mutually-exclusive - so that if one is set to true, those in all other rows are cleared. Where should I place such a script - against the _ColumnData_ object or the data grid group level? Best, Keith.. On 7 Mar 2011, at 07:46, Keith Clarke wrote: > Don't go thinking that this has exhausted my list of questions on DG/DGH though! ;-) From toolbook at kestner.de Mon Mar 7 06:05:56 2011 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Mon, 7 Mar 2011 12:05:56 +0100 Subject: OT: On-Rev antispam (& reCAPTCHA) In-Reply-To: References: <1jxpovi.ssbhde1mb90zlM%liste.revo@medard.on-rev.com> Message-ID: <002101cbdcb7$a99cc2e0$fcd648a0$@de> Hi, what I would like to know is what intention do have bots (the humans behind the bots) to make useless entries into blogs or - in my case - in signing on to get a newsletter with non existent nonsense email addresses. The only sense in that behavior I can think of is that there must be any kind of forms where robots _do_ have any advantage from and all the other entries (like in my newsletter) are just "collateral damages" But up to now I couldn't imagine any sense behind that and couldn't find anyone who could tell me. But I am sure you can! Tiemo > -----Urspr?ngliche Nachricht----- > Von: use-livecode-bounces at lists.runrev.com [mailto:use-livecode- > bounces at lists.runrev.com] Im Auftrag von Keith Clarke > Gesendet: Sonntag, 6. M?rz 2011 21:39 > An: How to use LiveCode > Betreff: Re: On-Rev antispam (& reCAPTCHA) > > ...I concur, what great ideas: > a) language-independent, random simple maths questions that humans need to > understand; > b) deliberate hidden password field to capture bots; > c) obscure names for login fields to confuse bots; > d) simple validation repeat fields. > > I've learned so much about programming and logic from the creative bunch of > people on this list! > Best, > Keith.. > > On 6 Mar 2011, at 13:54, Medard wrote: > > > Medard wrote: > > > >> What are your thoughts about that? > > > > Thank you for all your responses! > > > > Me too, i dislike Captchas, and I am glad of your suggestions! > > > > Medard > > > > -- > > lectures.medard.on-rev.com > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Mon Mar 7 06:42:11 2011 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 07 Mar 2011 13:42:11 +0200 Subject: [OT] BSD? Message-ID: <4D74C493.9050109@gmail.com> Just about to have-a-go with BSD on a Pentium 4; and wondering whether Livecode/RunRev post 2.8 will work on it. I am taking "the baby route" and installing PC-BSD 8.2 which is really just a hold-yer-hands type of FreeBSD. From bill at bluewatermaritime.com Mon Mar 7 07:15:04 2011 From: bill at bluewatermaritime.com (william humphrey) Date: Mon, 7 Mar 2011 08:15:04 -0400 Subject: How to develop and deploy with ListMagic within the GLX application framework? In-Reply-To: <017C4C22-7155-462E-A93D-B8E28EB728A2@clarkeandclarke.co.uk> References: <58A7C3FA-253F-44E0-A6B2-8F629FD784A2@clarkeandclarke.co.uk> <017C4C22-7155-462E-A93D-B8E28EB728A2@clarkeandclarke.co.uk> Message-ID: I have to chime in here too. I love listMagic but it isn't compatible with Remo. The library for listMagic freezes a quit from your app when your running Remo. The only real solution would be for the listMagic folks to release it's library unlocked (probably not ever happen) so I'm gradually replacing all my listMagic objects with datagrids too and I recommend the same for everyone. From keith.clarke at clarkeandclarke.co.uk Mon Mar 7 07:43:02 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Mon, 7 Mar 2011 12:43:02 +0000 Subject: Potential Data Grid Helper column builder header alignment bug? Message-ID: <7F3D4372-DAA6-4541-9A0C-C4B777178B17@clarkeandclarke.co.uk> Hi folks, Does anyone else find that within the DGH column builder, setting Header Alignment to centre introduces ~20px of padding to either side of the column heading box that sits in front of - and can obscure - the heading name/title? (Also, not that I need it but I notice that right alignment doesn't make the column heading flush-right either, but seems to align to the right less ~20px) Best, Keith.. From bvg at mac.com Mon Mar 7 09:38:50 2011 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Mon, 07 Mar 2011 15:38:50 +0100 Subject: OT: On-Rev antispam (& reCAPTCHA) In-Reply-To: <002101cbdcb7$a99cc2e0$fcd648a0$@de> References: <1jxpovi.ssbhde1mb90zlM%liste.revo@medard.on-rev.com> <002101cbdcb7$a99cc2e0$fcd648a0$@de> Message-ID: <806BB8F5-0C21-4F07-BFF2-C8C2034C77A2@mac.com> They make a lot of money. Normally there's some url hidden in the crap, and if people go there they make 2 cents from google adverts. If they spam 2 million per day, and the turnaround is 0.1 percent, then they get a good income. Sometimes they also harvest email replies, and working email addresses can also be sold to other spammers and scammers for about 5-10 cent per piece. On 7 Mar 2011, at 12:05, Tiemo Hollmann TB wrote: > Hi, > what I would like to know is what intention do have bots (the humans behind > the bots) to make useless entries into blogs or - in my case - in signing > on to get a newsletter with non existent nonsense email addresses. The only > sense in that behavior I can think of is that there must be any kind of > forms where robots _do_ have any advantage from and all the other entries > (like in my newsletter) are just "collateral damages" > But up to now I couldn't imagine any sense behind that and couldn't find > anyone who could tell me. But I am sure you can! > Tiemo > >> -----Urspr?ngliche Nachricht----- >> Von: use-livecode-bounces at lists.runrev.com [mailto:use-livecode- >> bounces at lists.runrev.com] Im Auftrag von Keith Clarke >> Gesendet: Sonntag, 6. M?rz 2011 21:39 >> An: How to use LiveCode >> Betreff: Re: On-Rev antispam (& reCAPTCHA) >> >> ...I concur, what great ideas: >> a) language-independent, random simple maths questions that humans need to >> understand; >> b) deliberate hidden password field to capture bots; >> c) obscure names for login fields to confuse bots; >> d) simple validation repeat fields. >> >> I've learned so much about programming and logic from the creative bunch > of >> people on this list! >> Best, >> Keith.. >> >> On 6 Mar 2011, at 13:54, Medard wrote: >> >>> Medard wrote: >>> >>>> What are your thoughts about that? >>> >>> Thank you for all your responses! >>> >>> Me too, i dislike Captchas, and I am glad of your suggestions! >>> >>> Medard >>> >>> -- >>> lectures.medard.on-rev.com >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your > subscription >> preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your > subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From zryip.theslug at gmail.com Mon Mar 7 10:28:15 2011 From: zryip.theslug at gmail.com (zryip theSlug) Date: Mon, 7 Mar 2011 16:28:15 +0100 Subject: Potential Data Grid Helper column builder header alignment bug? In-Reply-To: <7F3D4372-DAA6-4541-9A0C-C4B777178B17@clarkeandclarke.co.uk> References: <7F3D4372-DAA6-4541-9A0C-C4B777178B17@clarkeandclarke.co.uk> Message-ID: On Mon, Mar 7, 2011 at 1:43 PM, Keith Clarke wrote: > Hi folks, > Does anyone else find that within the DGH column builder, setting Header Alignment to centre introduces ~20px of padding to either side of the column heading box that sits in front of - and can obscure - the heading name/title? > > (Also, not that I need it but I notice that right alignment doesn't make the column heading flush-right either, but seems to align to the right less ~20px) > Best, > Keith.. Hi Keith, It is more relative on how the datagrid object displays the header than a direct issue in DGH. This padding issue represents the reserved size of the small arrow icon associated to the header and shown when a column is sorted. When the size of a column falls under 40 pixels and the header aligmnent is center or right, the label will be hidden totally or partially by this reserved size. I could imagine you have reduced the size of the checkbox column. If you have no need to sort this column I could demonstrate how to fix this by changing the default header parent script of the datagrid. Let me know . I have not my regular LC kit with me, but I could post this later today. Best regards, -- -Zryip TheSlug- wish you the best! 8) http://www.aslugontheroad.co.cc From keith.clarke at clarkeandclarke.co.uk Mon Mar 7 11:15:10 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Mon, 7 Mar 2011 16:15:10 +0000 Subject: Potential Data Grid Helper column builder header alignment bug? In-Reply-To: References: <7F3D4372-DAA6-4541-9A0C-C4B777178B17@clarkeandclarke.co.uk> Message-ID: Thanks for the clarification - this all makes a lot of sense and I'm glad it's not a bug. It just so happened that my first two columns are both very narrow columns - for this row select checkbox and an inline button called 'test' that will fire a function on a per-row basis. (I'll share what I'm working on, once I have a few things sorted.) No need to hack any deeper than necessary - for now, I'll just align left and use very short Titles! Best, Keith.. On 7 Mar 2011, at 15:28, zryip theSlug wrote: > > This padding issue represents the reserved size of the small arrow > icon associated to the header and shown when a column is sorted. > > When the size of a column falls under 40 pixels and the header > aligmnent is center or right, the label will be hidden totally or > partially by this reserved size. > > I could imagine you have reduced the size of the checkbox column. If > you have no need to sort this column I could demonstrate how to fix > this by changing the default header parent script of the datagrid. From pete at mollysrevenge.com Mon Mar 7 11:22:00 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Mon, 7 Mar 2011 08:22:00 -0800 Subject: How to develop and deploy with ListMagic within the GLX application framework? In-Reply-To: <017C4C22-7155-462E-A93D-B8E28EB728A2@clarkeandclarke.co.uk> References: <58A7C3FA-253F-44E0-A6B2-8F629FD784A2@clarkeandclarke.co.uk> <017C4C22-7155-462E-A93D-B8E28EB728A2@clarkeandclarke.co.uk> Message-ID: <93B591D8-478D-4C08-876E-85146488AC49@mollysrevenge.com> Hi Keith, You might want to consider another approach than checkboxes in this situation, depending on what you want to do with the checked row. If you just want to carry out some processing on the data in the selected row, you can use the dghilitedline property of the datagrid to find out which row the user has clicked on and take whatever action you want. Make sure the multiple lines property for the datagrid is not selected and use the selectionChanged event to check the dghilitedline. If there are multiple things you might want to do with the selected row, use a popup menu activated by a right click (more complicated). Pete Haworth On Mar 7, 2011, at 2:55 AM, Keith Clarke wrote: > BTW For this list, I want these Row-Select checkboxes to be mutually-exclusive - so that if one is set to true, those in all other rows are cleared. Where should I place such a script - against the _ColumnData_ object or the data grid group level? From toolbook at kestner.de Mon Mar 7 11:34:42 2011 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Mon, 7 Mar 2011 17:34:42 +0100 Subject: AW: OT: On-Rev antispam (& reCAPTCHA) In-Reply-To: <806BB8F5-0C21-4F07-BFF2-C8C2034C77A2@mac.com> References: <1jxpovi.ssbhde1mb90zlM%liste.revo@medard.on-rev.com> <002101cbdcb7$a99cc2e0$fcd648a0$@de> <806BB8F5-0C21-4F07-BFF2-C8C2034C77A2@mac.com> Message-ID: <008701cbdce5$94afecd0$be0fc670$@de> Hi Bj?rnke, the business with email harvesting and nasty links are of those business models I know. But just entering a stupid (probably not working) email address into my newsletter database or entering senseless entries (without links) in blogs or guest books - I can't see any sense. Are these "collateral damages" of their bots or do you see any model of value they take out of these entries? Tiemo > -----Urspr?ngliche Nachricht----- > Von: use-livecode-bounces at lists.runrev.com [mailto:use-livecode- > bounces at lists.runrev.com] Im Auftrag von Bj?rnke von Gierke > Gesendet: Montag, 7. M?rz 2011 15:39 > An: How to use LiveCode > Betreff: Re: OT: On-Rev antispam (& reCAPTCHA) > > They make a lot of money. Normally there's some url hidden in the crap, and if > people go there they make 2 cents from google adverts. If they spam 2 million > per day, and the turnaround is 0.1 percent, then they get a good income. > Sometimes they also harvest email replies, and working email addresses can > also be sold to other spammers and scammers for about 5-10 cent per piece. > > > > On 7 Mar 2011, at 12:05, Tiemo Hollmann TB wrote: > > > Hi, > > what I would like to know is what intention do have bots (the humans behind > > the bots) to make useless entries into blogs or - in my case - in signing > > on to get a newsletter with non existent nonsense email addresses. The only > > sense in that behavior I can think of is that there must be any kind of > > forms where robots _do_ have any advantage from and all the other entries > > (like in my newsletter) are just "collateral damages" > > But up to now I couldn't imagine any sense behind that and couldn't find > > anyone who could tell me. But I am sure you can! > > Tiemo > > > >> -----Urspr?ngliche Nachricht----- > >> Von: use-livecode-bounces at lists.runrev.com [mailto:use-livecode- > >> bounces at lists.runrev.com] Im Auftrag von Keith Clarke > >> Gesendet: Sonntag, 6. M?rz 2011 21:39 > >> An: How to use LiveCode > >> Betreff: Re: On-Rev antispam (& reCAPTCHA) > >> > >> ...I concur, what great ideas: > >> a) language-independent, random simple maths questions that humans need to > >> understand; > >> b) deliberate hidden password field to capture bots; > >> c) obscure names for login fields to confuse bots; > >> d) simple validation repeat fields. > >> > >> I've learned so much about programming and logic from the creative bunch > > of > >> people on this list! > >> Best, > >> Keith.. > >> > >> On 6 Mar 2011, at 13:54, Medard wrote: > >> > >>> Medard wrote: > >>> > >>>> What are your thoughts about that? > >>> > >>> Thank you for all your responses! > >>> > >>> Me too, i dislike Captchas, and I am glad of your suggestions! > >>> > >>> Medard > >>> > >>> -- > >>> lectures.medard.on-rev.com > >>> > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your > > subscription > >> preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > > subscription > >> preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From keith.clarke at clarkeandclarke.co.uk Mon Mar 7 11:32:04 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Mon, 7 Mar 2011 16:32:04 +0000 Subject: How to develop and deploy with ListMagic within the GLX application framework? In-Reply-To: <93B591D8-478D-4C08-876E-85146488AC49@mollysrevenge.com> References: <58A7C3FA-253F-44E0-A6B2-8F629FD784A2@clarkeandclarke.co.uk> <017C4C22-7155-462E-A93D-B8E28EB728A2@clarkeandclarke.co.uk> <93B591D8-478D-4C08-876E-85146488AC49@mollysrevenge.com> Message-ID: Hi Peter, Thanks for the tip and for reframing the problem to provide mutually exclusive row selection, without the complexity of dealing with the checkbox. Nice! :-) Best, Keith.. On 7 Mar 2011, at 16:22, Peter Haworth wrote: > Hi Keith, > You might want to consider another approach than checkboxes in this situation, depending on what you want to do with the checked row. If you just want to carry out some processing on the data in the selected row, you can use the dghilitedline property of the datagrid to find out which row the user has clicked on and take whatever action you want. Make sure the multiple lines property for the datagrid is not selected and use the selectionChanged event to check the dghilitedline. If there are multiple things you might want to do with the selected row, use a popup menu activated by a right click (more complicated). > > Pete Haworth > > On Mar 7, 2011, at 2:55 AM, Keith Clarke wrote: > >> BTW For this list, I want these Row-Select checkboxes to be mutually-exclusive - so that if one is set to true, those in all other rows are cleared. Where should I place such a script - against the _ColumnData_ object or the data grid group level? > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at mollysrevenge.com Mon Mar 7 11:45:28 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Mon, 7 Mar 2011 08:45:28 -0800 Subject: How to develop and deploy with ListMagic within the GLX application framework? In-Reply-To: References: <58A7C3FA-253F-44E0-A6B2-8F629FD784A2@clarkeandclarke.co.uk> <017C4C22-7155-462E-A93D-B8E28EB728A2@clarkeandclarke.co.uk> <93B591D8-478D-4C08-876E-85146488AC49@mollysrevenge.com> Message-ID: <4B8E18D4-8899-4187-A1CA-B615CA0D0B3A@mollysrevenge.com> No problem Keith. Also saw your other post about a button in the datagrid. Once again, it might be worth considering a combination of the dghilitedline and one button outside the datagrid that would launch your processing of the currently selected datagrid row. I have some code I use that floats a button next to whatever row the user clicks on so it's right next to their selected line, but a static button works too.. Hope that helps. Pete Haworth On Mar 7, 2011, at 8:32 AM, Keith Clarke wrote: > Hi Peter, > Thanks for the tip and for reframing the problem to provide mutually exclusive row selection, without the complexity of dealing with the checkbox. Nice! :-) > Best, > Keith.. > > On 7 Mar 2011, at 16:22, Peter Haworth wrote: > >> Hi Keith, >> You might want to consider another approach than checkboxes in this situation, depending on what you want to do with the checked row. If you just want to carry out some processing on the data in the selected row, you can use the dghilitedline property of the datagrid to find out which row the user has clicked on and take whatever action you want. Make sure the multiple lines property for the datagrid is not selected and use the selectionChanged event to check the dghilitedline. If there are multiple things you might want to do with the selected row, use a popup menu activated by a right click (more complicated). >> >> Pete Haworth >> >> On Mar 7, 2011, at 2:55 AM, Keith Clarke wrote: >> >>> BTW For this list, I want these Row-Select checkboxes to be mutually-exclusive - so that if one is set to true, those in all other rows are cleared. Where should I place such a script - against the _ColumnData_ object or the data grid group level? >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at mollysrevenge.com Mon Mar 7 11:53:30 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Mon, 7 Mar 2011 08:53:30 -0800 Subject: Help with mySQL Message-ID: <13B3A2A2-CB46-4B85-A14D-F7443C12C719@mollysrevenge.com> Folks, Thanks for the pointers on mySQL admin tools. I'm trying out a couple, Workbench and Sequel Pro and having a problem getting off the ground. I've been using SQLite so far so connecting to a server is a new thing. Here's the problem. I can't build a mySQL database until I define a connection but I can't figure out how to set up that first connection. I'm logged in to my Mac as an administrator but any connections I try to define are rejected by the server because I don;t have the rights to set one up. And I can't give myself whatever rights I need because I don;t have a connection to the server! Grateful for any guidance. Thanks, Pete Haworth -------------- next part -------------- http://www.mollysrevenge.com http://www.sonicbids.com/MollysRevenge http://www.myspace.com/mollysrevengeband From keith.clarke at clarkeandclarke.co.uk Mon Mar 7 11:56:50 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Mon, 7 Mar 2011 16:56:50 +0000 Subject: How to develop and deploy with ListMagic within the GLX application framework? In-Reply-To: <4B8E18D4-8899-4187-A1CA-B615CA0D0B3A@mollysrevenge.com> References: <58A7C3FA-253F-44E0-A6B2-8F629FD784A2@clarkeandclarke.co.uk> <017C4C22-7155-462E-A93D-B8E28EB728A2@clarkeandclarke.co.uk> <93B591D8-478D-4C08-876E-85146488AC49@mollysrevenge.com> <4B8E18D4-8899-4187-A1CA-B615CA0D0B3A@mollysrevenge.com> Message-ID: You read my mind, Sir. I was just defining the pair of buttons under the simplified data grid as your post popped into my inbox! :-) On 7 Mar 2011, at 16:45, Peter Haworth wrote: > No problem Keith. Also saw your other post about a button in the datagrid. Once again, it might be worth considering a combination of the dghilitedline and one button outside the datagrid that would launch your processing of the currently selected datagrid row. I have some code I use that floats a button next to whatever row the user clicks on so it's right next to their selected line, but a static button works too.. > > Hope that helps. > > Pete Haworth From keith.clarke at clarkeandclarke.co.uk Mon Mar 7 12:02:15 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Mon, 7 Mar 2011 17:02:15 +0000 Subject: Help with mySQL In-Reply-To: <13B3A2A2-CB46-4B85-A14D-F7443C12C719@mollysrevenge.com> References: <13B3A2A2-CB46-4B85-A14D-F7443C12C719@mollysrevenge.com> Message-ID: <4E832801-DFB2-43AA-931D-79B23B610C33@clarkeandclarke.co.uk> Pete, Sorry I can't help with the MySQL problem (another large area of virgin territory in my knowledge landscape) but FYI, on the tools side of things, MacUpdate Promo are doing a special on Navicat today http://www.mupromo.com/ - and there might be some getting started help lurking amongst their video(?) Best, Keith.. On 7 Mar 2011, at 16:53, Peter Haworth wrote: > Folks, > Thanks for the pointers on mySQL admin tools. I'm trying out a couple, Workbench and Sequel Pro and having a problem getting off the ground. I've been using SQLite so far so connecting to a server is a new thing. > > Here's the problem. I can't build a mySQL database until I define a connection but I can't figure out how to set up that first connection. I'm logged in to my Mac as an administrator but any connections I try to define are rejected by the server because I don;t have the rights to set one up. And I can't give myself whatever rights I need because I don;t have a connection to the server! > > Grateful for any guidance. > > Thanks, > > Pete Haworth > > > > > > > > http://www.mollysrevenge.com > http://www.sonicbids.com/MollysRevenge > http://www.myspace.com/mollysrevengeband > > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From m.schonewille at economy-x-talk.com Mon Mar 7 12:04:09 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Mon, 7 Mar 2011 18:04:09 +0100 Subject: Help with mySQL In-Reply-To: <13B3A2A2-CB46-4B85-A14D-F7443C12C719@mollysrevenge.com> References: <13B3A2A2-CB46-4B85-A14D-F7443C12C719@mollysrevenge.com> Message-ID: Pete, A SQLite database is usually a little file next to your stack. What are you talking about a server? -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce On 7 mrt 2011, at 17:53, Peter Haworth wrote: > Folks, > Thanks for the pointers on mySQL admin tools. I'm trying out a couple, Workbench and Sequel Pro and having a problem getting off the ground. I've been using SQLite so far so connecting to a server is a new thing. > > Here's the problem. I can't build a mySQL database until I define a connection but I can't figure out how to set up that first connection. I'm logged in to my Mac as an administrator but any connections I try to define are rejected by the server because I don;t have the rights to set one up. And I can't give myself whatever rights I need because I don;t have a connection to the server! > > Grateful for any guidance. > > Thanks, > > Pete Haworth > > > > > > > > http://www.mollysrevenge.com > http://www.sonicbids.com/MollysRevenge > http://www.myspace.com/mollysrevengeband > > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at mollysrevenge.com Mon Mar 7 12:08:36 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Mon, 7 Mar 2011 09:08:36 -0800 Subject: Help with mySQL In-Reply-To: References: <13B3A2A2-CB46-4B85-A14D-F7443C12C719@mollysrevenge.com> Message-ID: <06BE435F-2E4C-42C1-AE96-42D7B8EF3C52@mollysrevenge.com> Uh, because I'm trying to connect to a mySQL server not an SQLIte database. Pete Haworth -------------- next part -------------- http://www.mollysrevenge.com http://www.sonicbids.com/MollysRevenge http://www.myspace.com/mollysrevengeband On Mar 7, 2011, at 9:04 AM, Mark Schonewille wrote: > Pete, > > A SQLite database is usually a little file next to your stack. What are you talking about a server? > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce > > On 7 mrt 2011, at 17:53, Peter Haworth wrote: > >> Folks, >> Thanks for the pointers on mySQL admin tools. I'm trying out a couple, Workbench and Sequel Pro and having a problem getting off the ground. I've been using SQLite so far so connecting to a server is a new thing. >> >> Here's the problem. I can't build a mySQL database until I define a connection but I can't figure out how to set up that first connection. I'm logged in to my Mac as an administrator but any connections I try to define are rejected by the server because I don;t have the rights to set one up. And I can't give myself whatever rights I need because I don;t have a connection to the server! >> >> Grateful for any guidance. >> >> Thanks, >> >> Pete Haworth >> >> >> >> >> >> >> >> http://www.mollysrevenge.com >> http://www.sonicbids.com/MollysRevenge >> http://www.myspace.com/mollysrevengeband >> >> >> >> >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at mollysrevenge.com Mon Mar 7 12:08:47 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Mon, 7 Mar 2011 09:08:47 -0800 Subject: Help with mySQL In-Reply-To: <4E832801-DFB2-43AA-931D-79B23B610C33@clarkeandclarke.co.uk> References: <13B3A2A2-CB46-4B85-A14D-F7443C12C719@mollysrevenge.com> <4E832801-DFB2-43AA-931D-79B23B610C33@clarkeandclarke.co.uk> Message-ID: <027A1C60-9615-4E3A-8891-BE027535A920@mollysrevenge.com> Thanks. Pete Haworth -------------- next part -------------- http://www.mollysrevenge.com http://www.sonicbids.com/MollysRevenge http://www.myspace.com/mollysrevengeband On Mar 7, 2011, at 9:02 AM, Keith Clarke wrote: > Pete, > Sorry I can't help with the MySQL problem (another large area of virgin territory in my knowledge landscape) but FYI, on the tools side of things, MacUpdate Promo are doing a special on Navicat today http://www.mupromo.com/ - and there might be some getting started help lurking amongst their video(?) > Best, > Keith.. > > On 7 Mar 2011, at 16:53, Peter Haworth wrote: > >> Folks, >> Thanks for the pointers on mySQL admin tools. I'm trying out a couple, Workbench and Sequel Pro and having a problem getting off the ground. I've been using SQLite so far so connecting to a server is a new thing. >> >> Here's the problem. I can't build a mySQL database until I define a connection but I can't figure out how to set up that first connection. I'm logged in to my Mac as an administrator but any connections I try to define are rejected by the server because I don;t have the rights to set one up. And I can't give myself whatever rights I need because I don;t have a connection to the server! >> >> Grateful for any guidance. >> >> Thanks, >> >> Pete Haworth >> >> >> >> >> >> >> >> http://www.mollysrevenge.com >> http://www.sonicbids.com/MollysRevenge >> http://www.myspace.com/mollysrevengeband >> >> >> >> >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bobs at twft.com Mon Mar 7 12:14:30 2011 From: bobs at twft.com (Bob Sneidar) Date: Mon, 7 Mar 2011 09:14:30 -0800 Subject: Position of Answer Dialog In-Reply-To: References: Message-ID: I asked this a couple years back myself. I believe the consensus was you had to roll your own. Bob On Mar 5, 2011, at 3:03 PM, RevList wrote: > I have an enhancement suggestion. I do not always want to have the Answer > dialog box show up as a sheet on OS X. The problem is that it always > centers it on the screen, rather than on the active window as it does on > Windows. > I would prefer to be able to control this position. This particularly > applies to Answer Color. I want to have the color picker open right by > the control that I click on, and not way off to the center of the screen. > > ****************************************** > Stewart Lynch > CreaTECH Solutions > slynch at CreaTECHSol.com > 604.484.8499 > Skype:StewartLynch > > There are only 10 kinds of people. Those who understand binary and those > who don't. > ****************************************** > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobs at twft.com Mon Mar 7 12:16:55 2011 From: bobs at twft.com (Bob Sneidar) Date: Mon, 7 Mar 2011 09:16:55 -0800 Subject: Locale aware formatting In-Reply-To: <175112.86892.qm@web65416.mail.ac4.yahoo.com> References: <175112.86892.qm@web65416.mail.ac4.yahoo.com> Message-ID: Pretty daggum nifty! I've saved this in my Livecode Keepers folder. Bob On Mar 6, 2011, at 2:54 AM, Jan Schenkel wrote: > Hi all, > > In light of the recent questions regarding Locale aware formatting of date/time/number/currency in LiveCode, I thought it might be interesting to put together a different solution, using Java as a helper process: > > > The most interesting part of this approach is that it also offers support for formatting content in a locale other than the system locale. Applicable if your application is used by a French user to send an invoice to a German-speaking customer, for instance. > > HTH, > > Jan Schenkel. > ===== > Quartam Reports & PDF Library for LiveCode > www.quartam.com > > ===== > "As we grow older, we grow both wiser and more foolish at the same time." (La Rochefoucauld) > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobs at twft.com Mon Mar 7 12:24:10 2011 From: bobs at twft.com (Bob Sneidar) Date: Mon, 7 Mar 2011 09:24:10 -0800 Subject: How to develop and deploy with ListMagic within the GLX application framework? In-Reply-To: References: <58A7C3FA-253F-44E0-A6B2-8F629FD784A2@clarkeandclarke.co.uk> Message-ID: <447E7AA0-9D04-4C5C-8683-08D73D7B04F2@twft.com> I believe you will need to use form style datagrids then, I'm sure you know. I have no experience in those, but at some point I will want to jump in because the notion of checkboxes in a table are very appealing to what I am going to be doing later on. Bob On Mar 5, 2011, at 12:35 AM, Keith Clarke wrote: > ...thanks Bob - very useful stuff - and I'll definitely be referencing this as I work through the lessons again and DGH documentation. > > However, before I get to manipulating data, I need to learn how to use non-data UI elements within data grids - to replicate ListMagic's row-select checkboxes. From keith.clarke at clarkeandclarke.co.uk Mon Mar 7 12:33:55 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Mon, 7 Mar 2011 17:33:55 +0000 Subject: How to develop and deploy with ListMagic within the GLX application framework? In-Reply-To: <447E7AA0-9D04-4C5C-8683-08D73D7B04F2@twft.com> References: <58A7C3FA-253F-44E0-A6B2-8F629FD784A2@clarkeandclarke.co.uk> <447E7AA0-9D04-4C5C-8683-08D73D7B04F2@twft.com> Message-ID: <596F0A29-E671-4048-80E2-D75704357657@clarkeandclarke.co.uk> ...with Pete's help I've backed-off the embedded controls within a data grid table for now - my brain's hurting enough, already! On 7 Mar 2011, at 17:24, Bob Sneidar wrote: > I believe you will need to use form style datagrids then, I'm sure you know. I have no experience in those, but at some point I will want to jump in because the notion of checkboxes in a table are very appealing to what I am going to be doing later on. > > Bob > > > On Mar 5, 2011, at 12:35 AM, Keith Clarke wrote: > >> ...thanks Bob - very useful stuff - and I'll definitely be referencing this as I work through the lessons again and DGH documentation. >> >> However, before I get to manipulating data, I need to learn how to use non-data UI elements within data grids - to replicate ListMagic's row-select checkboxes. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From m.schonewille at economy-x-talk.com Mon Mar 7 12:39:27 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Mon, 7 Mar 2011 18:39:27 +0100 Subject: Help with mySQL In-Reply-To: <06BE435F-2E4C-42C1-AE96-42D7B8EF3C52@mollysrevenge.com> References: <13B3A2A2-CB46-4B85-A14D-F7443C12C719@mollysrevenge.com> <06BE435F-2E4C-42C1-AE96-42D7B8EF3C52@mollysrevenge.com> Message-ID: <22170992-E7F8-4300-A285-ED2BD5528438@economy-x-talk.com> Ahh, I get it. I don't know which operating system you are using, but this might help: http://qery.us/ob -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce On 7 mrt 2011, at 18:08, Peter Haworth wrote: > Uh, because I'm trying to connect to a mySQL server not an SQLIte database. > > Pete Haworth > > > http://www.mollysrevenge.com > http://www.sonicbids.com/MollysRevenge > http://www.myspace.com/mollysrevengeband > From warren at warrensweb.us Mon Mar 7 13:04:58 2011 From: warren at warrensweb.us (Warren Samples) Date: Mon, 07 Mar 2011 12:04:58 -0600 Subject: Help with mySQL In-Reply-To: <13B3A2A2-CB46-4B85-A14D-F7443C12C719@mollysrevenge.com> References: <13B3A2A2-CB46-4B85-A14D-F7443C12C719@mollysrevenge.com> Message-ID: <1299521098.2304.89.camel@mint-i7> On Mon, 2011-03-07 at 08:53 -0800, Peter Haworth wrote: > Folks, > Thanks for the pointers on mySQL admin tools. I'm trying out a couple, Workbench and Sequel Pro and having a problem getting off the ground. I've been using SQLite so far so connecting to a server is a new thing. > > Here's the problem. I can't build a mySQL database until I define a connection but I can't figure out how to set up that first connection. I'm logged in to my Mac as an administrator but any connections I try to define are rejected by the server because I don;t have the rights to set one up. And I can't give myself whatever rights I need because I don;t have a connection to the server! > > Grateful for any guidance. > > Thanks, > > Pete Haworth > > > > Have you tried logging in as user "root" leaving password empty? This may be necessary the very first time you log in. Then, you can set up a more normal and secure account with admin privileges and delete the unsecure root account, or give it a password if that idea bothers you. http://dev.mysql.com/doc/refman/5.1/en/default-privileges.html Good luck! Warren From form at nonsanity.com Mon Mar 7 13:07:56 2011 From: form at nonsanity.com (Nonsanity) Date: Mon, 7 Mar 2011 13:07:56 -0500 Subject: OT: On-Rev antispam (& reCAPTCHA) In-Reply-To: <008701cbdce5$94afecd0$be0fc670$@de> References: <1jxpovi.ssbhde1mb90zlM%liste.revo@medard.on-rev.com> <002101cbdcb7$a99cc2e0$fcd648a0$@de> <806BB8F5-0C21-4F07-BFF2-C8C2034C77A2@mac.com> <008701cbdce5$94afecd0$be0fc670$@de> Message-ID: I think it's a case of poor quality control on the part of the spammers. The operate in such volume, and often use trojans to make unwitting accomplices of other victims, that one mistake in setting up their system can have vast consequences. If you forget to load your URL into the trojan, or it gets stripped out somehow when duplicating itself to another patsy that "clicked here for naked pictures", then you're going to see lots of activity with no real point. Of course, evolution operates in any forum that has replication, variation, and competition. So a trojan that isn't putting out a working link to the trojan download page isn't replicating itself successfully, and therefore isn't being selected for in future generations. It's a non-viable mutation. :) You might be getting a lot of these at the moment because the current non-viable mutation is active. Later, you won't get any. I've had bouts of similar pointless spam-postings in the past, though none currently. Right now I'm getting the "hey, I just took an IQ test , you should too!" instant messages from a few of my contacts. I could block them, but its fun to use this as a sort of mentalist trick with my friends. "My friend is IMing me about an IQ test he just took. I know it's the middle of the day but *rub temples mystically* I BET he's about to take a shower..." (If you respond to the bot, it eventually says it's going to jump in the shower, to end the conversation. It also will respond to the word "hacked" by claiming it isn't. :) Eliza, eat your fiscal heart out.) ~ Chris Innanen ~ Nonsanity On Mon, Mar 7, 2011 at 11:34 AM, Tiemo Hollmann TB wrote: > Hi Bj?rnke, > > the business with email harvesting and nasty links are of those business > models I know. But just entering a stupid (probably not working) email > address into my newsletter database or entering senseless entries (without > links) in blogs or guest books - I can't see any sense. Are these > "collateral damages" of their bots or do you see any model of value they > take out of these entries? > Tiemo > > > -----Urspr?ngliche Nachricht----- > > Von: use-livecode-bounces at lists.runrev.com [mailto:use-livecode- > > bounces at lists.runrev.com] Im Auftrag von Bj?rnke von Gierke > > Gesendet: Montag, 7. M?rz 2011 15:39 > > An: How to use LiveCode > > Betreff: Re: OT: On-Rev antispam (& reCAPTCHA) > > > > They make a lot of money. Normally there's some url hidden in the crap, > and if > > people go there they make 2 cents from google adverts. If they spam 2 > million > > per day, and the turnaround is 0.1 percent, then they get a good income. > > Sometimes they also harvest email replies, and working email addresses > can > > also be sold to other spammers and scammers for about 5-10 cent per > piece. > > > > > > > > On 7 Mar 2011, at 12:05, Tiemo Hollmann TB wrote: > > > > > Hi, > > > what I would like to know is what intention do have bots (the humans > behind > > > the bots) to make useless entries into blogs or - in my case - in > signing > > > on to get a newsletter with non existent nonsense email addresses. The > only > > > sense in that behavior I can think of is that there must be any kind of > > > forms where robots _do_ have any advantage from and all the other > entries > > > (like in my newsletter) are just "collateral damages" > > > But up to now I couldn't imagine any sense behind that and couldn't > find > > > anyone who could tell me. But I am sure you can! > > > Tiemo > > > > > >> -----Urspr?ngliche Nachricht----- > > >> Von: use-livecode-bounces at lists.runrev.com [mailto:use-livecode- > > >> bounces at lists.runrev.com] Im Auftrag von Keith Clarke > > >> Gesendet: Sonntag, 6. M?rz 2011 21:39 > > >> An: How to use LiveCode > > >> Betreff: Re: On-Rev antispam (& reCAPTCHA) > > >> > > >> ...I concur, what great ideas: > > >> a) language-independent, random simple maths questions that humans > need > to > > >> understand; > > >> b) deliberate hidden password field to capture bots; > > >> c) obscure names for login fields to confuse bots; > > >> d) simple validation repeat fields. > > >> > > >> I've learned so much about programming and logic from the creative > bunch > > > of > > >> people on this list! > > >> Best, > > >> Keith.. > > >> > > >> On 6 Mar 2011, at 13:54, Medard wrote: > > >> > > >>> Medard wrote: > > >>> > > >>>> What are your thoughts about that? > > >>> > > >>> Thank you for all your responses! > > >>> > > >>> Me too, i dislike Captchas, and I am glad of your suggestions! > > >>> > > >>> Medard > > >>> > > >>> -- > > >>> lectures.medard.on-rev.com > > >>> > > >>> _______________________________________________ > > >>> use-livecode mailing list > > >>> use-livecode at lists.runrev.com > > >>> Please visit this url to subscribe, unsubscribe and manage your > > > subscription > > >> preferences: > > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > > >> > > >> > > >> _______________________________________________ > > >> use-livecode mailing list > > >> use-livecode at lists.runrev.com > > >> Please visit this url to subscribe, unsubscribe and manage your > > > subscription > > >> preferences: > > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at lists.runrev.com > > > Please visit this url to subscribe, unsubscribe and manage your > subscription > > preferences: > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription > > preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From warren at warrensweb.us Mon Mar 7 13:08:24 2011 From: warren at warrensweb.us (Warren Samples) Date: Mon, 07 Mar 2011 12:08:24 -0600 Subject: Help with mySQL In-Reply-To: <1299521098.2304.89.camel@mint-i7> References: <13B3A2A2-CB46-4B85-A14D-F7443C12C719@mollysrevenge.com> <1299521098.2304.89.camel@mint-i7> Message-ID: <1299521304.2304.97.camel@mint-i7> On Mon, 2011-03-07 at 12:04 -0600, Warren Samples wrote: > On Mon, 2011-03-07 at 08:53 -0800, Peter Haworth wrote: > > Folks, > > Thanks for the pointers on mySQL admin tools. I'm trying out a couple, Workbench and Sequel Pro and having a problem getting off the ground. I've been using SQLite so far so connecting to a server is a new thing. > > > > Here's the problem. I can't build a mySQL database until I define a connection but I can't figure out how to set up that first connection. I'm logged in to my Mac as an administrator but any connections I try to define are rejected by the server because I don;t have the rights to set one up. And I can't give myself whatever rights I need because I don;t have a connection to the server! > > > > Grateful for any guidance. > > > > Thanks, > > > > Pete Haworth > > > > > > > > > > > Have you tried logging in as user "root" leaving password empty? This > may be necessary the very first time you log in. Then, you can set up a > more normal and secure account with admin privileges and delete the > unsecure root account, or give it a password if that idea bothers you. > > http://dev.mysql.com/doc/refman/5.1/en/default-privileges.html > > Good luck! > > Warren > To be more clear, this is the login credentials you supply as you set up a connection in your GUI tool. I used the predecessor to SequelPro and liked it. It's a good tool and I add my recommendation :) Warren From bonnmike at gmail.com Mon Mar 7 13:14:04 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 7 Mar 2011 11:14:04 -0700 Subject: OT: On-Rev antispam (& reCAPTCHA) In-Reply-To: References: <1jxpovi.ssbhde1mb90zlM%liste.revo@medard.on-rev.com> <002101cbdcb7$a99cc2e0$fcd648a0$@de> <806BB8F5-0C21-4F07-BFF2-C8C2034C77A2@mac.com> <008701cbdce5$94afecd0$be0fc670$@de> Message-ID: Another option is that its a farm bot rather than a spam bot. Farms to see if an account can be made, including a successful post, at which point it logs the account info for later use. From stgoldberg at aol.com Mon Mar 7 14:09:59 2011 From: stgoldberg at aol.com (stgoldberg at aol.com) Date: Mon, 07 Mar 2011 14:09:59 -0500 Subject: I need advise on slow start standalone Message-ID: <8CDAB12635C3972-1A94-2300@Webmail-d120.sysops.aol.com> On several of my projects, where the opening standalone screen is not immediately responsive (particular on Windows) for say a half minute or more, I have found it useful to place a card titled "Loading" at the top of the stack. The card has a simple black background with the words "Loading..." at the center. The script for the card is: on openStack if the short name of this card is "Loading" then go next end openStack Then, the user has more patience waiting for the program to fully load. Hope this helps. Stephen Goldberg www.medmaster.net From stevejones at mac.com Mon Mar 7 14:45:15 2011 From: stevejones at mac.com (Steve Jones) Date: Mon, 07 Mar 2011 13:45:15 -0600 Subject: Scrolling text w/o scroll bars in iOS Message-ID: <336868AB-68FD-4665-9E74-2759F9E30092@mac.com> Hello! I am trying to figure out how to get a field on a card in iOS LiveCode to scroll text without scroll bars and instead rely on swiping up and down. How do I go about this? I've looked at the Mobile Scroller example, but that really seems to apply to graphics. Thanks! Steve From coiin at verizon.net Mon Mar 7 15:07:56 2011 From: coiin at verizon.net (Colin Holgate) Date: Mon, 07 Mar 2011 15:07:56 -0500 Subject: Scrolling text w/o scroll bars in iOS In-Reply-To: <336868AB-68FD-4665-9E74-2759F9E30092@mac.com> References: <336868AB-68FD-4665-9E74-2759F9E30092@mac.com> Message-ID: <615566B3-AD95-49EC-AA99-D13A8F663DB7@verizon.net> Try this on a field that is set to not show scrollbars, lock text, and not focusable: local startscroll,startv on mousedown put the scroll of me into startscroll put the mousev into startv end mousedown on mousestilldown set the scroll of me to startscroll - the mousev + startv end mousestilldown The scrolling is just to the nearest line, but it does what you asked. At least on my iPad it does! From liste.revo at medard.on-rev.com Mon Mar 7 15:31:50 2011 From: liste.revo at medard.on-rev.com (Medard) Date: Mon, 7 Mar 2011 21:31:50 +0100 Subject: OT: On-Rev antispam (& reCAPTCHA) In-Reply-To: Message-ID: <1jxs3no.15np7ssqnafpqM%liste.revo@medard.on-rev.com> Mike Bonner wrote: > Another option is that its a farm bot rather than a spam bot. Farms to see > if an account can be made, including a successful post, at which point it > logs the account info for later use. that seems to be that sort of spam ;-) again and again they put forward the same insurance company* *I can tell you which is this company, for NOT to make business with them ;-> From stevejones at mac.com Mon Mar 7 15:50:06 2011 From: stevejones at mac.com (Steve Jones) Date: Mon, 07 Mar 2011 14:50:06 -0600 Subject: Scrolling text w/o scroll bars in iOS In-Reply-To: <615566B3-AD95-49EC-AA99-D13A8F663DB7@verizon.net> References: <336868AB-68FD-4665-9E74-2759F9E30092@mac.com> <615566B3-AD95-49EC-AA99-D13A8F663DB7@verizon.net> Message-ID: This doesn't seem to work for me - either in the iPhone simulator or downloaded to my iPhone. It does work in the internal "test:\" mode to LiveCode though. So not sure what's up there. Steve On Mar 7, 2011, at 2:07 PM, Colin Holgate wrote: > Try this on a field that is set to not show scrollbars, lock text, and not focusable: > > local startscroll,startv > > on mousedown > put the scroll of me into startscroll > put the mousev into startv > end mousedown > > on mousestilldown > set the scroll of me to startscroll - the mousev + startv > end mousestilldown > > > > The scrolling is just to the nearest line, but it does what you asked. At least on my iPad it does! > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gerry.orkin at gmail.com Mon Mar 7 16:14:32 2011 From: gerry.orkin at gmail.com (Gerry) Date: Tue, 8 Mar 2011 08:14:32 +1100 Subject: Location in iOS Message-ID: <27FFE751558F432B9243FE9B4DB445EB@gmail.com> Has anyone seen (or made) an example stack that successfully uses location services in iOS? I need help! g -- photo site: http://gerryorkin.com From bobs at twft.com Mon Mar 7 16:40:12 2011 From: bobs at twft.com (Bob Sneidar) Date: Mon, 7 Mar 2011 13:40:12 -0800 Subject: OT: On-Rev antispam (& reCAPTCHA) In-Reply-To: References: <1jxpovi.ssbhde1mb90zlM%liste.revo@medard.on-rev.com> <002101cbdcb7$a99cc2e0$fcd648a0$@de> <806BB8F5-0C21-4F07-BFF2-C8C2034C77A2@mac.com> <008701cbdce5$94afecd0$be0fc670$@de> Message-ID: They are not entirely useless. If they send a link to a single pixel white gif, and your email is set to download images upon opening, they now have another email address they can add to the "gold" list and sell for more money. I disable image downloading as standard procedure, only because I have gotten mail from previously unknown spammers after nuking what seemed to be a senseless email from them in the past. It also keeps me from seeing some of the gawdawful stuff they send. Bob On Mar 7, 2011, at 10:07 AM, Nonsanity wrote: > Hi Bj?rnke, > > the business with email harvesting and nasty links are of those business > models I know. But just entering a stupid (probably not working) email > address into my newsletter database or entering senseless entries (without > links) in blogs or guest books - I can't see any sense. Are these > "collateral damages" of their bots or do you see any model of value they > take out of these entries? > Tiemo From etcawley at fastmail.fm Mon Mar 7 17:59:37 2011 From: etcawley at fastmail.fm (edward cawley) Date: Mon, 7 Mar 2011 16:59:37 -0600 Subject: use-livecode Digest, Vol 90, Issue 4 In-Reply-To: References: Message-ID: Still having trouble with a standalone to Windows. I know what's wrong but I'm not sure how to debug it. The program loads, the substacks work in the menubar and the navigation buttons all work, and some of the images grouped over the buttons also show but not all. The background images seem to show on the "open card" but then disappear. I'm sure it's a path problem but I'm not sure how to solve it. I'm running the Windows XP on VM Fusion and I'm a real newby on Windows after 30 yrs on Macs. I modified Francis code as follows: put the platform into GVHoldPlatform if GVHoldPlatform = "MacOS" then put "misippfiles/" into GVStackPath -- No leading drive on the Mac. end if if GVHoldPlatform = "Win32" then -- System 7 patch to ensure using the Systems Disk for "StackPath" on PC's put item 1 of specialfolderpath("system") & "/misippfiles/"into GVStackPath-- Get Stack Path with Disk ID. replace "WINDOWS/" with empty in GVStackPath -- Remove Windows Folder Name. end if but I'm not sure how to see the results in the Windows program. TheGVStackPath seems to work in some parts of the script but not in others. I'll appreciate any suggestions. Also a second minor problem -How do I increase the font size in the menu bar in the Windows program? On Mar 2, 2011, at 10:27 AM, use-livecode-request at lists.runrev.com wrote: > > > Message: 17 > Date: Wed, 2 Mar 2011 11:32:22 +0100 > From: Francis Nugent Dixon > To: use-livecode at lists.runrev.com > Subject: Re: standalone builder > Message-ID: > Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes > > Hi from Beautiful Britanny, > > Edward wrote : > >> How can I refer to the relative paths in both Mac and Windows? > > > Note that I use a "Revolution" folder for all concerned with LiveCode. > All my sub-folders and files of all my stacks are in there somewhere. > > put the platform into GVHoldPlatform > if GVHoldPlatform = "MacOS" then > put "/Revolution/" into GVStackPath -- No leading drive on the > Mac. > end if > if LVHoldPlatform = "Win32" then > -- > -- System 7 patch to ensure using the Systems Disk for > "StackPath" on PC's > -- > put item 1 of specialfolderpath("system") & "/Revolution/"into > GVStackPath -- Get Stack Path with Disk ID. > replace "WINDOWS/" with empty in > GVStackPath -- Remove Windows Folder > Name. > end if > > Add sub-folder names or file names to reach the final destination. > > HTH > > -Francis > > "Nothing should ever be done for the first time ! > ******************************************* From paul.foraker at gmail.com Mon Mar 7 18:44:46 2011 From: paul.foraker at gmail.com (Paul Foraker) Date: Mon, 7 Mar 2011 15:44:46 -0800 Subject: Problem with iRev refresh Message-ID: I'm working on a registration page for a training ( www.blueskytrainings.com/register.irev ). I'm having a problem with Safari and Chrome improperly refreshing to a PayPal page. I'm on a Mac. The following code works perfectly in Firefox and Camino. It fails to go to PayPal in Safari and Chrome. When I copy the URL and paste it into Safari, it works. But, from the irev page, I get a blank page and no PayPal URL (keeps the original URL). Any suggestions? put "https://www.paypal.com/cgi-bin/webscr" into tURL if getsDiscount then put "Discounted" into tuitionValue else put "Full+Tuition" into tuitionValue put "?cmd=_s-xclick&hosted_button_id=D88XBUTK3GS2A&on0=Training+Fee" into tPost put "&os0=" & tuitionValue after tPost put "¤cy_code=USD" after tPost put tPost after tURL put format("") into thePlaceToGo put thePlaceToGo -- Paul From sarah.reichelt at gmail.com Mon Mar 7 20:19:10 2011 From: sarah.reichelt at gmail.com (Sarah Reichelt) Date: Tue, 8 Mar 2011 11:19:10 +1000 Subject: Problem with iRev refresh In-Reply-To: References: Message-ID: <288DB91E-F5C6-40C1-A47D-3FD6DC0F079F@gmail.com> On 08/03/2011, at 9:44 AM, Paul Foraker wrote: > I'm working on a registration page for a training ( > www.blueskytrainings.com/register.irev ). I'm having a problem with Safari > and Chrome improperly refreshing to a PayPal page. I'm on a Mac. > > The following code works perfectly in Firefox and Camino. It fails to go to > PayPal in Safari and Chrome. > > When I copy the URL and paste it into Safari, it works. But, from the irev > page, I get a blank page and no PayPal URL (keeps the original URL). > > Any suggestions? > > put "https://www.paypal.com/cgi-bin/webscr" into tURL > if getsDiscount then put "Discounted" into tuitionValue else put > "Full+Tuition" into tuitionValue > put "?cmd=_s-xclick&hosted_button_id=D88XBUTK3GS2A&on0=Training+Fee" into > tPost > put "&os0=" & tuitionValue after tPost > put "¤cy_code=USD" after tPost > put tPost after tURL > put format("") into > thePlaceToGo > put thePlaceToGo > My only suggestion would be to try using lower case url in the meta tag. All the examples I have seen are lower case e.g. content=0;url=http://whatever.com Maybe some browsers are more picky than others about such things. Cheers, Sarah From jacque at hyperactivesw.com Mon Mar 7 20:47:32 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 07 Mar 2011 19:47:32 -0600 Subject: Scrolling text w/o scroll bars in iOS In-Reply-To: References: <336868AB-68FD-4665-9E74-2759F9E30092@mac.com> <615566B3-AD95-49EC-AA99-D13A8F663DB7@verizon.net> Message-ID: <4D758AB4.2090902@hyperactivesw.com> On 3/7/11 2:50 PM, Steve Jones wrote: > This doesn't seem to work for me - either in the iPhone simulator or > downloaded to my iPhone. It does work in the internal "test:\" mode > to LiveCode though. So not sure what's up there. Do you mean you don't want any kind of scroller at all, or do you want a field with an iOS scroller but no native field scrollbars? In other words, do you need to emulate the iOS look and feel? For no scrollbar/scroller at all, try using Colin's script but with the touch events instead of the mouse events. I'm not sure mouseStillDown is the best way to scroll, but start with that. Ideally you'd use a "send" structure. If you want a native iOS scroller, that's different, it's overlaid on top of the field. You catch the messages it sends and respond to them by changing the field's vScroll property. If you can give a little more info about what you need, we can help. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at mollysrevenge.com Mon Mar 7 21:21:35 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Mon, 7 Mar 2011 18:21:35 -0800 Subject: Help with mySQL In-Reply-To: <1299521098.2304.89.camel@mint-i7> References: <13B3A2A2-CB46-4B85-A14D-F7443C12C719@mollysrevenge.com> <1299521098.2304.89.camel@mint-i7> Message-ID: <5CF8561C-B8BA-49FC-A821-FB55F78A9C43@mollysrevenge.com> Thanks thatt did it. t filled in root as the user but default and I guess I was hung up with root needing a password. Pete Haworth On Mar 7, 2011, at 10:04 AM, Warren Samples wrote: > On Mon, 2011-03-07 at 08:53 -0800, Peter Haworth wrote: >> Folks, >> Thanks for the pointers on mySQL admin tools. I'm trying out a couple, Workbench and Sequel Pro and having a problem getting off the ground. I've been using SQLite so far so connecting to a server is a new thing. >> >> Here's the problem. I can't build a mySQL database until I define a connection but I can't figure out how to set up that first connection. I'm logged in to my Mac as an administrator but any connections I try to define are rejected by the server because I don;t have the rights to set one up. And I can't give myself whatever rights I need because I don;t have a connection to the server! >> >> Grateful for any guidance. >> >> Thanks, >> >> Pete Haworth >> >> >> >> > > > Have you tried logging in as user "root" leaving password empty? This > may be necessary the very first time you log in. Then, you can set up a > more normal and secure account with admin privileges and delete the > unsecure root account, or give it a password if that idea bothers you. > > http://dev.mysql.com/doc/refman/5.1/en/default-privileges.html > > Good luck! > > Warren > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at mollysrevenge.com Mon Mar 7 21:21:52 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Mon, 7 Mar 2011 18:21:52 -0800 Subject: Help with mySQL In-Reply-To: <22170992-E7F8-4300-A285-ED2BD5528438@economy-x-talk.com> References: <13B3A2A2-CB46-4B85-A14D-F7443C12C719@mollysrevenge.com> <06BE435F-2E4C-42C1-AE96-42D7B8EF3C52@mollysrevenge.com> <22170992-E7F8-4300-A285-ED2BD5528438@economy-x-talk.com> Message-ID: <19C3FCA0-0444-45E0-A215-E975D0B5B535@mollysrevenge.com> Thanks Mark. Pete Haworth On Mar 7, 2011, at 9:39 AM, Mark Schonewille wrote: > Ahh, I get it. I don't know which operating system you are using, but this might help: http://qery.us/ob > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce > > On 7 mrt 2011, at 18:08, Peter Haworth wrote: > >> Uh, because I'm trying to connect to a mySQL server not an SQLIte database. >> >> Pete Haworth >> >> >> http://www.mollysrevenge.com >> http://www.sonicbids.com/MollysRevenge >> http://www.myspace.com/mollysrevengeband >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jhj at jhj.com Mon Mar 7 21:35:17 2011 From: jhj at jhj.com (Jerry J) Date: Mon, 7 Mar 2011 18:35:17 -0800 Subject: Help with mySQL In-Reply-To: <22170992-E7F8-4300-A285-ED2BD5528438@economy-x-talk.com> References: <13B3A2A2-CB46-4B85-A14D-F7443C12C719@mollysrevenge.com> <06BE435F-2E4C-42C1-AE96-42D7B8EF3C52@mollysrevenge.com> <22170992-E7F8-4300-A285-ED2BD5528438@economy-x-talk.com> Message-ID: On Mar 7, 2011, at 9:39 AM, Mark Schonewille wrote: > Ahh, I get it. I don't know which operating system you are using, but this might help: http://qery.us/ob Safari claims that link has bad intentions. What's up with that? --Jerry J From iowahengst at mac.com Mon Mar 7 22:02:26 2011 From: iowahengst at mac.com (Randy Hengst) Date: Mon, 07 Mar 2011 21:02:26 -0600 Subject: Scrolling text w/o scroll bars in iOS In-Reply-To: <4D758AB4.2090902@hyperactivesw.com> References: <336868AB-68FD-4665-9E74-2759F9E30092@mac.com> <615566B3-AD95-49EC-AA99-D13A8F663DB7@verizon.net> <4D758AB4.2090902@hyperactivesw.com> Message-ID: Steve and Jacque, Steve I did it using the script below in the text field? no scroll bar shows?. but, Jacque, I'd love to see a specific example of scrolling one text field with the iOS scroller showing. I really haven't been able to organize the overlay deal. local tScollField local tStartY on mouseDown put item 2 the clickLoc into tStartY put tStartY put "yes" into tScollField end mouseDown on mouseMove x,y if tScollField = "yes" then set the vscroll of target to (the vScroll of target) - (y-tStartY) end if end mouseMove on mouseUp put "no" into tScollField end mouseUp on mouseRelease mouseUp end mouseRelease take care, randy hengst ----- On Mar 7, 2011, at 7:47 PM, J. Landman Gay wrote: > On 3/7/11 2:50 PM, Steve Jones wrote: >> This doesn't seem to work for me - either in the iPhone simulator or >> downloaded to my iPhone. It does work in the internal "test:\" mode >> to LiveCode though. So not sure what's up there. > > Do you mean you don't want any kind of scroller at all, or do you want a field with an iOS scroller but no native field scrollbars? In other words, do you need to emulate the iOS look and feel? > > For no scrollbar/scroller at all, try using Colin's script but with the touch events instead of the mouse events. I'm not sure mouseStillDown is the best way to scroll, but start with that. Ideally you'd use a "send" structure. > > If you want a native iOS scroller, that's different, it's overlaid on top of the field. You catch the messages it sends and respond to them by changing the field's vScroll property. > > If you can give a little more info about what you need, we can help. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Mon Mar 7 23:45:33 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 07 Mar 2011 22:45:33 -0600 Subject: Scrolling text w/o scroll bars in iOS In-Reply-To: References: <336868AB-68FD-4665-9E74-2759F9E30092@mac.com> <615566B3-AD95-49EC-AA99-D13A8F663DB7@verizon.net> <4D758AB4.2090902@hyperactivesw.com> Message-ID: <4D75B46D.5010604@hyperactivesw.com> On 3/7/11 9:02 PM, Randy Hengst wrote: > > but, Jacque, I'd love to see a specific example of scrolling one text > field with the iOS scroller showing. I really haven't been able to > organize the overlay deal. The best example is the one that ships with LiveCode in the Mobile section of Resources. That uses a group of images but you could put a field in there instead and limit the scroll to vertical. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Tue Mar 8 00:03:09 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 07 Mar 2011 23:03:09 -0600 Subject: Scrolling text w/o scroll bars in iOS In-Reply-To: References: <336868AB-68FD-4665-9E74-2759F9E30092@mac.com> <615566B3-AD95-49EC-AA99-D13A8F663DB7@verizon.net> <4D758AB4.2090902@hyperactivesw.com> Message-ID: <4D75B88D.20009@hyperactivesw.com> On 3/7/11 9:02 PM, Randy Hengst wrote: > I'd love to see a specific example of scrolling one text > field with the iOS scroller showing. I really haven't been able to > organize the overlay deal. I just did a quick one, it works fine. Make a copy of the Scroller Example in the Mobile Resources folder. Edit the main "imageScroller" group, add a locked field and delete all the images. Put some text into the field and set the height of the field tall enough to hold all the text. Mine was 800 pixels high. Set the width to something close to the width of the scroller control; mine was 300. Set the top of the field to the top of the scroller; mine was at 4. Edit the card script. In the "contentRect" part of the preOpenCard handler, change the dimensions to that of your field: iphoneControlSet sScrollerId, "contentRect", (0, 0, 300, 800) That's all I had to do. It scrolls smoothly up and down in the simulator. You can set the "canBounce" to true if you want it to have that little bob at the ends that iOS does. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at mollysrevenge.com Tue Mar 8 00:19:55 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Mon, 7 Mar 2011 21:19:55 -0800 Subject: Help with mySQL In-Reply-To: References: <13B3A2A2-CB46-4B85-A14D-F7443C12C719@mollysrevenge.com> <06BE435F-2E4C-42C1-AE96-42D7B8EF3C52@mollysrevenge.com> <22170992-E7F8-4300-A285-ED2BD5528438@economy-x-talk.com> Message-ID: <0745E56E-0CF1-47F1-9C95-7D4EBAC83BD8@mollysrevenge.com> Yes, so does Chrome. Pete Haworth On Mar 7, 2011, at 6:35 PM, Jerry J wrote: > On Mar 7, 2011, at 9:39 AM, Mark Schonewille wrote: > >> Ahh, I get it. I don't know which operating system you are using, but this might help: http://qery.us/ob > > Safari claims that link has bad intentions. What's up with that? > --Jerry J > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From paul.foraker at gmail.com Tue Mar 8 01:01:54 2011 From: paul.foraker at gmail.com (Paul Foraker) Date: Mon, 7 Mar 2011 22:01:54 -0800 Subject: Problem with iRev refresh In-Reply-To: <288DB91E-F5C6-40C1-A47D-3FD6DC0F079F@gmail.com> References: <288DB91E-F5C6-40C1-A47D-3FD6DC0F079F@gmail.com> Message-ID: Thank you, Sarah, but that didn't work. Safari and Chrome still fail to reach the PayPal site. Testing some more, I found an odd error using IE on Windows NT. IE also fails to go to PayPal, but instead it puts the following URL onto a blank page: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=D88XBUTK3GS2A&on0=Training+Fee&os0=Full+Tuition ?cy_code=USD Note in the last dozen characters, the string "¤cy_code=USD" has been replaced with "?cy_code=USD" (whatever that character is; can't get its charToNum). Is there some special meaning to "¤"? Firefox on Windows works fine. A standard PayPal button works fine with Safari. Maybe I have to give up and move the PayPal functionality outside of the LiveCode handlers again. That would be unfortunate as it means the user has to fill out and submit a form, and then click another button to go to PayPal. Hmm... On Mon, Mar 7, 2011 at 5:19 PM, Sarah Reichelt wrote: > My only suggestion would be to try using lower case url in the meta tag. > All the examples I have seen are lower case e.g. > content=0;url=http://whatever.com > > Maybe some browsers are more picky than others about such things. > > Cheers, > Sarah > From paul.foraker at gmail.com Tue Mar 8 01:26:25 2011 From: paul.foraker at gmail.com (Paul Foraker) Date: Mon, 7 Mar 2011 22:26:25 -0800 Subject: Problem with iRev refresh In-Reply-To: References: <288DB91E-F5C6-40C1-A47D-3FD6DC0F079F@gmail.com> Message-ID: Problem solved (thank you, Cristophe!). Instead of put format("") into thePlaceToGo put thePlaceToGo which fails on Safari, Chrome and IE. This works perfectly on all tested browsers: -- put format("") into thePlaceToGo put new header "Location: "&tURL put "test" -- Paul From janschenkel at yahoo.com Tue Mar 8 06:51:20 2011 From: janschenkel at yahoo.com (Jan Schenkel) Date: Tue, 8 Mar 2011 03:51:20 -0800 (PST) Subject: Problem with iRev refresh In-Reply-To: Message-ID: <330858.97494.qm@web65405.mail.ac4.yahoo.com> --- On Mon, 3/7/11, Paul Foraker wrote: > Problem solved (thank you, > Cristophe!). > > Instead of > > put format(" content=\"0;url=" &tURL & ">") into > thePlaceToGo > put thePlaceToGo > > which fails on Safari, Chrome and IE. > > This works perfectly on all tested browsers: > > -- put format(" content=\"0;url=" &tURL & ">") > into thePlaceToGo > put new header "Location: "&tURL > put "test" > > -- Paul > Aren't you missing a quote after tURL to close the content attribute? Or is that a typo when you wrote the email? ## put format("") into thePlaceToGo put thePlaceToGo ## Some source ssuggest that you should use both a redirect, and a meta refresh tag to make sure everything works on all browsers. Jan Schenkel. ===== Quartam Reports & PDF Library for LiveCode www.quartam.com ===== "As we grow older, we grow both wiser and more foolish at the same time." (La Rochefoucauld) From iowahengst at mac.com Tue Mar 8 07:37:41 2011 From: iowahengst at mac.com (Randy Hengst) Date: Tue, 08 Mar 2011 06:37:41 -0600 Subject: Scrolling text w/o scroll bars in iOS In-Reply-To: <4D75B88D.20009@hyperactivesw.com> References: <336868AB-68FD-4665-9E74-2759F9E30092@mac.com> <615566B3-AD95-49EC-AA99-D13A8F663DB7@verizon.net> <4D758AB4.2090902@hyperactivesw.com> <4D75B88D.20009@hyperactivesw.com> Message-ID: <5D86AF2C-06CB-44EB-9036-AAAC909154DC@mac.com> Thank you Jacque? I'll give it go. take care, randy hengst ----- On Mar 7, 2011, at 11:03 PM, J. Landman Gay wrote: > On 3/7/11 9:02 PM, Randy Hengst wrote: >> I'd love to see a specific example of scrolling one text >> field with the iOS scroller showing. I really haven't been able to >> organize the overlay deal. > > I just did a quick one, it works fine. Make a copy of the Scroller Example in the Mobile Resources folder. Edit the main "imageScroller" group, add a locked field and delete all the images. Put some text into the field and set the height of the field tall enough to hold all the text. Mine was 800 pixels high. Set the width to something close to the width of the scroller control; mine was 300. Set the top of the field to the top of the scroller; mine was at 4. > > Edit the card script. In the "contentRect" part of the preOpenCard handler, change the dimensions to that of your field: > > iphoneControlSet sScrollerId, "contentRect", (0, 0, 300, 800) > > That's all I had to do. It scrolls smoothly up and down in the simulator. You can set the "canBounce" to true if you want it to have that little bob at the ends that iOS does. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From revolution at derbrill.de Tue Mar 8 08:15:35 2011 From: revolution at derbrill.de (Malte Brill) Date: Tue, 8 Mar 2011 14:15:35 +0100 Subject: Coding Challenge Message-ID: <334A28CB-F76A-4CDF-BC34-39CDC06D231E@derbrill.de> Hi folks, this is over my head. I have a problem I can not tackle alone, so please let me scream for help... HEEEEEEEEEELLLLLLLP Imagine a group of kids: Paul,Peter,Fritz,Madeleine,Joanne (and any additional number of kids) I want to programmatically test on age relations of those kids: e.g. Peter is older than Paul, Joanne is the same age as Paul. Now I want to be able to test if the statement Joanne is older than Peter (or same age, or younger) are valid or not. I will need to be able to do this for all kids in the group. Any ideas on how to tackle that??? Cheers, Malte From alex at tweedly.net Tue Mar 8 08:20:05 2011 From: alex at tweedly.net (Alex Tweedly) Date: Tue, 08 Mar 2011 13:20:05 +0000 Subject: Problem with iRev refresh In-Reply-To: <288DB91E-F5C6-40C1-A47D-3FD6DC0F079F@gmail.com> References: <288DB91E-F5C6-40C1-A47D-3FD6DC0F079F@gmail.com> Message-ID: <4D762D05.1090002@tweedly.net> I think the quotes are strangely placed in the 'format' statement below (assuming it was copied/pasted). > put format("") into would produce On 08/03/2011, at 9:44 AM, Paul Foraker wrote: > >> I'm working on a registration page for a training ( >> www.blueskytrainings.com/register.irev ). I'm having a problem with Safari >> and Chrome improperly refreshing to a PayPal page. I'm on a Mac. >> >> The following code works perfectly in Firefox and Camino. It fails to go to >> PayPal in Safari and Chrome. >> >> When I copy the URL and paste it into Safari, it works. But, from the irev >> page, I get a blank page and no PayPal URL (keeps the original URL). >> >> Any suggestions? >> >> put "https://www.paypal.com/cgi-bin/webscr" into tURL >> if getsDiscount then put "Discounted" into tuitionValue else put >> "Full+Tuition" into tuitionValue >> put "?cmd=_s-xclick&hosted_button_id=D88XBUTK3GS2A&on0=Training+Fee" into >> tPost >> put "&os0="& tuitionValue after tPost >> put "¤cy_code=USD" after tPost >> put tPost after tURL >> put format("") into >> thePlaceToGo >> put thePlaceToGo >> > My only suggestion would be to try using lower case url in the meta tag. > All the examples I have seen are lower case e.g. > content=0;url=http://whatever.com > > Maybe some browsers are more picky than others about such things. > > Cheers, > Sarah > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bvg at mac.com Tue Mar 8 08:32:34 2011 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Tue, 08 Mar 2011 14:32:34 +0100 Subject: Coding Challenge In-Reply-To: <334A28CB-F76A-4CDF-BC34-39CDC06D231E@derbrill.de> References: <334A28CB-F76A-4CDF-BC34-39CDC06D231E@derbrill.de> Message-ID: I'm not sure i understand the problem. given: Paul 3 Peter 6 Joanne 6 fritz 9 Madelaine 15 sort by word 2 of each put lineoffset("paul", theList) - lineoffset ("peter") into theCompare if theCompare < 0 then --child one is younger else --child 2 is younger end if that should solve all cases, unless they're the same age, which you need to check with a direct comparision (if word 2 of child1 = word 2 of child2 then sameAge)... of course you could as well always use comparisions, and i'm sure you'd think of that yourself. so i really don't understand the question it seems. On 8 Mar 2011, at 14:15, Malte Brill wrote: > Hi folks, > > this is over my head. I have a problem I can not tackle alone, so please let me scream for help... > > > HEEEEEEEEEELLLLLLLP > > > Imagine a group of kids: > > Paul,Peter,Fritz,Madeleine,Joanne (and any additional number of kids) > > I want to programmatically test on age relations of those kids: > > e.g. Peter is older than Paul, Joanne is the same age as Paul. > Now I want to be able to test if the statement Joanne is older than Peter (or same age, or younger) are valid or not. > I will need to be able to do this for all kids in the group. Any ideas on how to tackle that??? > > Cheers, > > Malte > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From m.schonewille at economy-x-talk.com Tue Mar 8 08:35:04 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Tue, 8 Mar 2011 14:35:04 +0100 Subject: Coding Challenge In-Reply-To: <334A28CB-F76A-4CDF-BC34-39CDC06D231E@derbrill.de> References: <334A28CB-F76A-4CDF-BC34-39CDC06D231E@derbrill.de> Message-ID: <7585CB8F-7626-4C3E-8447-CE91931B5AB9@economy-x-talk.com> Malte, Create lines with on each line the name and age of the subject (and possibly an id number), sort by age, check the line numbers. What exactly do you want to do with the result? -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce On 8 mrt 2011, at 14:15, Malte Brill wrote: > Hi folks, > > this is over my head. I have a problem I can not tackle alone, so please let me scream for help... > > > HEEEEEEEEEELLLLLLLP > > > Imagine a group of kids: > > Paul,Peter,Fritz,Madeleine,Joanne (and any additional number of kids) > > I want to programmatically test on age relations of those kids: > > e.g. Peter is older than Paul, Joanne is the same age as Paul. > Now I want to be able to test if the statement Joanne is older than Peter (or same age, or younger) are valid or not. > I will need to be able to do this for all kids in the group. Any ideas on how to tackle that??? > > Cheers, > > Malte From bvg at mac.com Tue Mar 8 09:54:24 2011 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Tue, 08 Mar 2011 15:54:24 +0100 Subject: Live LiveCode Code event #13 In-Reply-To: References: <1A45BA5D-B90D-413F-B44D-60847D242A85@mac.com> Message-ID: <15C68EE9-BAFC-49DE-AE95-1391DFE0861C@mac.com> Hi people who like to be educated, it's wrap up time: Here you can find Marks presentation about how to use Unicode in LiveCode: http://blog.livecode.tv/2011/03/wrapup-of-event-13/ Sadly, David has not supplied any material about his talk on participatory coding and using a wiki within a LiveCode stack. Please contact Mark or me for doing a show, this week or any other one. Give us feedback too! Cheers Bj?rnke On 4 Mar 2011, at 18:40, Bj?rnke von Gierke wrote: > It's here again! > > Due to problems with finding presenters, the regulars had to fly in. Please step up to present. Yes you. You think I don't mean you, but I do. > > Marks presentation will be about reading and writing unicode files, unicode text manipulation by script, and right-to-left text display in LC fields. > www.livecode.tv/mark > > David will wrap up with a undisclosed topic. He promised to do a proper show with recording and example code and stuff, by an oath on his iPhone. > www.livecode.tv/david > > > get all the info at: > www.livecode.tv > > or simply join chatrev tomorrow, Saturday at: > Zurich: 20:00 > Buenos Aires: 16:00 > New York: 14:00 > San Francisco: 11:00 > Sydney: 06:00 > > Have fun > Bj?rnke > > -- > > official ChatRev page: > http://bjoernke.com/chatrev > > > Chat with other RunRev developers: > go stack URL "http://bjoernke.com/chatrev/chatrev1.3b3.rev" > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From form at nonsanity.com Tue Mar 8 10:07:48 2011 From: form at nonsanity.com (Nonsanity) Date: Tue, 8 Mar 2011 10:07:48 -0500 Subject: Coding Challenge In-Reply-To: <334A28CB-F76A-4CDF-BC34-39CDC06D231E@derbrill.de> References: <334A28CB-F76A-4CDF-BC34-39CDC06D231E@derbrill.de> Message-ID: Malte, are you looking for a general solution to problems such as this: "Tom is younger than Rose, but older than Will and Jack, in that order. Rose is younger than Susie, but older than Jack. Jack is younger than Jim. Susie is older than Rose, but younger than Jim. Jim is older than Tom. Who is the oldest?" ~ Chris Innanen ~ Nonsanity On Tue, Mar 8, 2011 at 8:15 AM, Malte Brill wrote: > Hi folks, > > this is over my head. I have a problem I can not tackle alone, so please > let me scream for help... > > > HEEEEEEEEEELLLLLLLP > > > Imagine a group of kids: > > Paul,Peter,Fritz,Madeleine,Joanne (and any additional number of kids) > > I want to programmatically test on age relations of those kids: > > e.g. Peter is older than Paul, Joanne is the same age as Paul. > Now I want to be able to test if the statement Joanne is older than Peter > (or same age, or younger) are valid or not. > I will need to be able to do this for all kids in the group. Any ideas on > how to tackle that??? > > Cheers, > > Malte > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From form at nonsanity.com Tue Mar 8 10:41:50 2011 From: form at nonsanity.com (Nonsanity) Date: Tue, 8 Mar 2011 10:41:50 -0500 Subject: Coding Challenge In-Reply-To: References: <334A28CB-F76A-4CDF-BC34-39CDC06D231E@derbrill.de> Message-ID: On Tue, Mar 8, 2011 at 10:07 AM, Nonsanity wrote: > Malte, are you looking for a general solution to problems such as this: > > "Tom is younger than Rose, but older than Will and Jack, in that order. > Rose is younger than Susie, but older than Jack. Jack is younger than Jim. > Susie is older than Rose, but younger than Jim. Jim is older than Tom. Who > is the oldest?" > > ~ Chris Innanen > ~ Nonsanity Using that as an example, the steps to get not just the oldest but a complete ordered list is to: 1) Codify all the less-than greater-than pairs and group them in a list all going the same way. I'll pick less-than here. (Names have been reduced to the first letter, except for Jim who is "M".) T < R W < T J < T J < R W < R R < S J < R J < M R < S S < M T < M 2) IF you have enough relationships to determine a complete ordering, then the names missing from each side of the list represent the youngest and oldest. In this case, "M" is not on the left (younger) side, and "J" is not on the right (older) side, so Jim is the youngest and Jack is the oldest. 3) Eliminate all pairings that involve the known individuals and see if you have enough information to proceed. (youngest) J ... M (oldest) T < R W < T [J < T] [J < R] W < R R < S [J < R] [J < M] R < S [S < M] [T < M] 4) Repeat. "S" is not on the left (younger) side and "W" is not on the right (older) side, so add them to the ordered list. (youngest) J W ... S M (oldest) T < R 5) With only two names remaining, and one conditional, we have enough information to complete the list. (youngest) J W T R S M (oldest) If the data given is not enough to get a complete list, it may be possible to pluck out some slightly more complex relationships (A is older than B IF C is older than D) but it sounds like you need more solid answers. Anyway, that's A general solution to this sort of problem. I don't know if there's a better one or not... I didn't already know this proceedure, I just worked it out when you asked. I only now went back to the web site where I got the sample problem and clicked the answer button. It's Jim. Yeay. Hmmm... Looking back, I think that if you have incomplete data, you can still get a mostly ordered list out of this. If more than one name is missing from the left (younger) side, then you know that those names are the youngest, you just don't know which is younger or older among them. I'd repackage them as a single unit (new letter) and substitute it though the whole list for all the affected names, then try again. In the end, you should have a list with groups of unknown order scattered throughout, but still have an overall list. If further data is presented for the names in those groups, they can be put through this same routine in isolation from the rest of the list. Hope this is what you were looking for! (But it was fun to work out anyway...) ~ Chris Innanen ~ Nonsanity From form at nonsanity.com Tue Mar 8 10:59:02 2011 From: form at nonsanity.com (Nonsanity) Date: Tue, 8 Mar 2011 10:59:02 -0500 Subject: Coding Challenge In-Reply-To: References: <334A28CB-F76A-4CDF-BC34-39CDC06D231E@derbrill.de> Message-ID: Oh! I forgot to add "J < W" to the list when I re-did it in the email. It comes from the "in that order" phrase below. Without it, there are TWO names missing from the youngest side of the list, so W and J would be grouped together (into X) like so: T < R X < T X < T X < R X < R R < S X < R X < M R < S S < M T < M And the output of the first iteration would be: (youngest) [J,W] ... M The rest of the solution would proceed as normal. You would end up knowing that Jack and Will are younger than everyone else, but not know which of the two was the youngest. Oh, and any equality statements in the original data (Karen is the same age as Helen) should be substituted for a single variable, grouping them the same way you would a pair of unknowns, like J and W when I left out the one conditional statement. ~ Chris Innanen ~ Nonsanity On Tue, Mar 8, 2011 at 10:41 AM, Nonsanity wrote: > On Tue, Mar 8, 2011 at 10:07 AM, Nonsanity wrote: > >> Malte, are you looking for a general solution to problems such as this: >> >> "Tom is younger than Rose, but older than Will and Jack, in that order. >> Rose is younger than Susie, but older than Jack. Jack is younger than Jim. >> Susie is older than Rose, but younger than Jim. Jim is older than Tom. Who >> is the oldest?" >> >> ~ Chris Innanen >> ~ Nonsanity > > > Using that as an example, the steps to get not just the oldest but a > complete ordered list is to: > > 1) Codify all the less-than greater-than pairs and group them in a list all > going the same way. I'll pick less-than here. (Names have been reduced to > the first letter, except for Jim who is "M".) > > T < R > W < T > J < T > J < R > W < R > R < S > J < R > J < M > R < S > S < M > T < M > > 2) IF you have enough relationships to determine a complete ordering, then > the names missing from each side of the list represent the youngest and > oldest. In this case, "M" is not on the left (younger) side, and "J" is not > on the right (older) side, so Jim is the youngest and Jack is the oldest. > > 3) Eliminate all pairings that involve the known individuals and see if you > have enough information to proceed. > > (youngest) J ... M (oldest) > > T < R > W < T > [J < T] > [J < R] > W < R > R < S > [J < R] > [J < M] > R < S > [S < M] > [T < M] > > 4) Repeat. "S" is not on the left (younger) side and "W" is not on the > right (older) side, so add them to the ordered list. > > (youngest) J W ... S M (oldest) > > T < R > > 5) With only two names remaining, and one conditional, we have enough > information to complete the list. > > (youngest) J W T R S M (oldest) > > > If the data given is not enough to get a complete list, it may be possible > to pluck out some slightly more complex relationships (A is older than B IF > C is older than D) but it sounds like you need more solid answers. > > Anyway, that's A general solution to this sort of problem. I don't know if > there's a better one or not... I didn't already know this proceedure, I just > worked it out when you asked. I only now went back to the web site where I > got the sample problem and clicked the answer button. It's Jim. Yeay. > > Hmmm... Looking back, I think that if you have incomplete data, you can > still get a mostly ordered list out of this. If more than one name is > missing from the left (younger) side, then you know that those names are the > youngest, you just don't know which is younger or older among them. I'd > repackage them as a single unit (new letter) and substitute it though the > whole list for all the affected names, then try again. In the end, you > should have a list with groups of unknown order scattered throughout, but > still have an overall list. If further data is presented for the names in > those groups, they can be put through this same routine in isolation from > the rest of the list. > > Hope this is what you were looking for! (But it was fun to work out > anyway...) > > > ~ Chris Innanen > ~ Nonsanity > > From form at nonsanity.com Tue Mar 8 11:02:47 2011 From: form at nonsanity.com (Nonsanity) Date: Tue, 8 Mar 2011 11:02:47 -0500 Subject: Coding Challenge In-Reply-To: References: <334A28CB-F76A-4CDF-BC34-39CDC06D231E@derbrill.de> Message-ID: On Tue, Mar 8, 2011 at 10:59 AM, Nonsanity wrote: > Without it, there are TWO names missing from the youngest side of the > list... > Correction: ...from the OLDEST side of the list, and therefore are the youngest... Gotta keep things clear in stuff like this. I almost let that slide, but... :) ~ Chris Innanen ~ Nonsanity From bobs at twft.com Tue Mar 8 12:08:56 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 8 Mar 2011 09:08:56 -0800 Subject: Help with mySQL In-Reply-To: References: <13B3A2A2-CB46-4B85-A14D-F7443C12C719@mollysrevenge.com> <06BE435F-2E4C-42C1-AE96-42D7B8EF3C52@mollysrevenge.com> <22170992-E7F8-4300-A285-ED2BD5528438@economy-x-talk.com> Message-ID: <3666E992-E8C7-4162-9500-C0F9EB102250@twft.com> It may have been hijacked. Bob On Mar 7, 2011, at 6:35 PM, Jerry J wrote: > On Mar 7, 2011, at 9:39 AM, Mark Schonewille wrote: > >> Ahh, I get it. I don't know which operating system you are using, but this might help: http://qery.us/ob > > Safari claims that link has bad intentions. What's up with that? > --Jerry J > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From RevList at CreaTECHSol.com Tue Mar 8 13:26:51 2011 From: RevList at CreaTECHSol.com (RevList) Date: Tue, 08 Mar 2011 10:26:51 -0800 Subject: Position of Answer Dialog In-Reply-To: References: Message-ID: Bob Sneidar on March 7, 2011 at 9:14 AM -0800 wrote: >I asked this a couple years back myself. I believe the consensus was you >had to roll your own. Well if someone has a roll your own Answer Color dialog box then I would really appreciate them sharing it. ****************************************** Stewart Lynch CreaTECH Solutions slynch at CreaTECHSol.com 604.484.8499 Skype:StewartLynch There are only 10 kinds of people. Those who understand binary and those who don't. ****************************************** From stephenREVOLUTION2 at barncard.com Tue Mar 8 13:37:41 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Tue, 8 Mar 2011 10:37:41 -0800 Subject: Position of Answer Dialog In-Reply-To: References: Message-ID: no, no, that means 'make your own!' a wonderful exercise in Livecode scripting. Learn about modal dialogs and the dialogData global property. Add all the buttons and positioning you want. Return data in arrays! sqb On 8 March 2011 10:26, RevList wrote: > Bob Sneidar on March 7, 2011 at 9:14 AM -0800 wrote: > >I asked this a couple years back myself. I believe the consensus was you > >had to roll your own. > > Well if someone has a roll your own Answer Color dialog box then I would > really appreciate them sharing it. > > ****************************************** > Stewart Lynch > CreaTECH Solutions > slynch at CreaTECHSol.com > 604.484.8499 > Skype:StewartLynch > > There are only 10 kinds of people. Those who understand binary and those > who don't. > ****************************************** > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Stephen Barncard San Francisco Ca. USA more about sqb From richmondmathewson at gmail.com Tue Mar 8 13:45:12 2011 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 08 Mar 2011 20:45:12 +0200 Subject: Position of Answer Dialog In-Reply-To: References: Message-ID: <4D767938.5060103@gmail.com> On 03/08/2011 08:26 PM, RevList wrote: > Bob Sneidar on March 7, 2011 at 9:14 AM -0800 wrote: >> I asked this a couple years back myself. I believe the consensus was you >> had to roll your own. > Well if someone has a roll your own Answer Color dialog box then I would > really appreciate them sharing it. > I don't think this is terribly complicated: I cannot stand the built-in Answer dialogues [nor can I stand the spelling 'dialog' . . . :) ] and always roll my own; I have recently stopped using substacks and started using a PNG file that consists of an 'Answer dialogue' picture in the centre of an image that covers the whole parent stack set to something like 90% transparency [I use GIMP]. Using the 90% transparent border stops end-users from being able to click in areas of the stack outwith the fake Answer dialogue. Think of a button with a script a bit like this: on mouseUp set the vis of img "BigFatQuestion" to true end mouseUp easy, peasy, lemon-squeezy! From revolution at derbrill.de Tue Mar 8 13:49:12 2011 From: revolution at derbrill.de (Malte Brill) Date: Tue, 8 Mar 2011 19:49:12 +0100 Subject: Coding Challenge In-Reply-To: References: Message-ID: <2FE493E3-B55C-4B15-B95A-FA8E777EC71F@derbrill.de> Thanks for the head ups folks, Bj?rnke and Mark: I do not have the exact ages to sort by. All I do have is relations: Malte is older than Bj?rnke Mark is older than Malte And now I need to compute if it is valid to say: - Bj?rnke is older than Mark (obviously not) - Bj?rnke is the same age as Mark (obviously not) - Bj?rnke is younger than Mark. (That?s the one) What comes easy to the human brain in fact appears to be a lot more difficult when having to be tackled computationaly. Chris: Yes, I want such a list in the end. But in order to finally get this I will need to tell the machine which relations are legal first (the user tells which relations there are) and ideally filter out the data for relations that make no sense. Now I wish it was easy to tell the machine to just use logic and make sense itself :D This comparison has to be done for thousands of entities (children in this case). Cheers, Malte From bobs at twft.com Tue Mar 8 14:01:39 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 8 Mar 2011 11:01:39 -0800 Subject: Position of Answer Dialog In-Reply-To: References: Message-ID: Okay so here is the thing. You can get into the script of the answer (or I assume the Answer Color) stack and fudge with the code, but I wouldn't recommend that, partly because you could hose it if not careful, and partly because there is a good chance the next time Revolution is updated you will lose your changes. Another way would be to save the stack as, and then make it a substack of your own application. Then you could modify it to work the way you want. Create a handler called "myAnswer" in the stack script and call your copy of the stack, passing all the necessary arguments. Almost the first thing the script does is figure out what the center of the current display is and set the position variable of the window there. Note that I have not tried this myself, so I post my hearty disclaimer here that I am not responsible for any new gray hairs you may develop while in pursuit of this methodology. ;-) Bob On Mar 8, 2011, at 10:26 AM, RevList wrote: > Bob Sneidar on March 7, 2011 at 9:14 AM -0800 wrote: >> I asked this a couple years back myself. I believe the consensus was you >> had to roll your own. > > Well if someone has a roll your own Answer Color dialog box then I would > really appreciate them sharing it. > > ****************************************** > Stewart Lynch > CreaTECH Solutions > slynch at CreaTECHSol.com > 604.484.8499 > Skype:StewartLynch > > There are only 10 kinds of people. Those who understand binary and those > who don't. > ****************************************** > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobs at twft.com Tue Mar 8 14:04:49 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 8 Mar 2011 11:04:49 -0800 Subject: Position of Answer Dialog In-Reply-To: <4D767938.5060103@gmail.com> References: <4D767938.5060103@gmail.com> Message-ID: That spelling of Dialog looks suspiciously French to me. Extra letters that serve absolutely no purpose whatsoever in the actual pronunciation of the word... Yup, French for sure. ;-) Bob On Mar 8, 2011, at 10:45 AM, Richmond wrote: > I have recently stopped using > substacks and started using a PNG file that consists of an 'Answer dialogue' From pete at mollysrevenge.com Tue Mar 8 14:05:58 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 8 Mar 2011 11:05:58 -0800 Subject: Coding Challenge In-Reply-To: <2FE493E3-B55C-4B15-B95A-FA8E777EC71F@derbrill.de> References: <2FE493E3-B55C-4B15-B95A-FA8E777EC71F@derbrill.de> Message-ID: <8FE38245-AADD-47E6-9583-D69A49AA33FA@mollysrevenge.com> Would it work to assign "pseudo ages" to each of the people based on the given relationships, starting with the first? In your example: Malte (1000) is older than Bjornke(500) Mark (1500) is older than Malte Then you can sort by the age as others have suggested. Seems to work well on this small sample size but I guess it could get pretty complicated to assign the pseudo ages if there is a large number of people. Pete Haworth On Mar 8, 2011, at 10:49 AM, Malte Brill wrote: > Thanks for the head ups folks, > > Bj?rnke and Mark: I do not have the exact ages to sort by. All I do have is relations: > > Malte is older than Bj?rnke > Mark is older than Malte > > And now I need to compute if it is valid to say: > - Bj?rnke is older than Mark (obviously not) > - Bj?rnke is the same age as Mark (obviously not) > - Bj?rnke is younger than Mark. (That?s the one) > > What comes easy to the human brain in fact appears to be a lot more difficult when having to be tackled computationaly. > > Chris: Yes, I want such a list in the end. But in order to finally get this I will need to tell the machine which relations are legal first (the user tells which relations there are) and ideally filter out the data for relations that make no sense. Now I wish it was easy to tell the machine to just use logic and make sense itself :D This comparison has to be done for thousands of entities (children in this case). > > Cheers, > > Malte > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bobs at twft.com Tue Mar 8 14:14:47 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 8 Mar 2011 11:14:47 -0800 Subject: Coding Challenge In-Reply-To: <8FE38245-AADD-47E6-9583-D69A49AA33FA@mollysrevenge.com> References: <2FE493E3-B55C-4B15-B95A-FA8E777EC71F@derbrill.de> <8FE38245-AADD-47E6-9583-D69A49AA33FA@mollysrevenge.com> Message-ID: Dang I was just formulating that, but you would have to build a list of already assigned people and then pop them in the middle as logic dictates. Bob On Mar 8, 2011, at 11:05 AM, Peter Haworth wrote: > Would it work to assign "pseudo ages" to each of the people based on the given relationships, starting with the first? In your example: > > Malte (1000) is older than Bjornke(500) > Mark (1500) is older than Malte > > Then you can sort by the age as others have suggested. Seems to work well on this small sample size but I guess it could get pretty complicated to assign the pseudo ages if there is a large number of people. > > Pete Haworth > > On Mar 8, 2011, at 10:49 AM, Malte Brill wrote: > >> Thanks for the head ups folks, >> >> Bj?rnke and Mark: I do not have the exact ages to sort by. All I do have is relations: >> >> Malte is older than Bj?rnke >> Mark is older than Malte >> >> And now I need to compute if it is valid to say: >> - Bj?rnke is older than Mark (obviously not) >> - Bj?rnke is the same age as Mark (obviously not) >> - Bj?rnke is younger than Mark. (That?s the one) >> >> What comes easy to the human brain in fact appears to be a lot more difficult when having to be tackled computationaly. >> >> Chris: Yes, I want such a list in the end. But in order to finally get this I will need to tell the machine which relations are legal first (the user tells which relations there are) and ideally filter out the data for relations that make no sense. Now I wish it was easy to tell the machine to just use logic and make sense itself :D This comparison has to be done for thousands of entities (children in this case). >> >> Cheers, >> >> Malte >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From revolution at derbrill.de Tue Mar 8 14:18:39 2011 From: revolution at derbrill.de (Malte Brill) Date: Tue, 8 Mar 2011 20:18:39 +0100 Subject: Position of Answer Dialog In-Reply-To: References: Message-ID: <72A8BBF8-F12C-4272-B2DA-3AC2743F821D@derbrill.de> I am a little late to the party... For answer color (and answer printer for that matter) you seem to be out of luck, as these seem to directly trigger the OS API. For answer and ask the suspendStack message is your friend. on suspendStack if "Answer Dialog" is among the lines of the openstacks then -- reposition it here end if end suspendStack Not much help, but maybe useful. Cheers, Malte From pete at mollysrevenge.com Tue Mar 8 14:33:03 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 8 Mar 2011 11:33:03 -0800 Subject: Coding Challenge In-Reply-To: References: <2FE493E3-B55C-4B15-B95A-FA8E777EC71F@derbrill.de> <8FE38245-AADD-47E6-9583-D69A49AA33FA@mollysrevenge.com> Message-ID: I've got a feeling that any mathematician lurking on this list could give the algorithm to do this in no time - something to do with "set theory"?. My clumsy attempt at doing would probably involve creating an array with the person's name as the key and the assigned pseudo age as the value. Then I'd probably make multiple passes through the list assigning the ages based on the relationship and whether there is a key in the array for the person. After that, it's easy to compare: if Array["Bjornke"] > Array["Malte"] then do true stuff else do false stuff end if Pete Haworth On Mar 8, 2011, at 11:14 AM, Bob Sneidar wrote: > Dang I was just formulating that, but you would have to build a list of already assigned people and then pop them in the middle as logic dictates. > > Bob > > > On Mar 8, 2011, at 11:05 AM, Peter Haworth wrote: > >> Would it work to assign "pseudo ages" to each of the people based on the given relationships, starting with the first? In your example: >> >> Malte (1000) is older than Bjornke(500) >> Mark (1500) is older than Malte >> >> Then you can sort by the age as others have suggested. Seems to work well on this small sample size but I guess it could get pretty complicated to assign the pseudo ages if there is a large number of people. >> >> Pete Haworth >> >> On Mar 8, 2011, at 10:49 AM, Malte Brill wrote: >> >>> Thanks for the head ups folks, >>> >>> Bj?rnke and Mark: I do not have the exact ages to sort by. All I do have is relations: >>> >>> Malte is older than Bj?rnke >>> Mark is older than Malte >>> >>> And now I need to compute if it is valid to say: >>> - Bj?rnke is older than Mark (obviously not) >>> - Bj?rnke is the same age as Mark (obviously not) >>> - Bj?rnke is younger than Mark. (That?s the one) >>> >>> What comes easy to the human brain in fact appears to be a lot more difficult when having to be tackled computationaly. >>> >>> Chris: Yes, I want such a list in the end. But in order to finally get this I will need to tell the machine which relations are legal first (the user tells which relations there are) and ideally filter out the data for relations that make no sense. Now I wish it was easy to tell the machine to just use logic and make sense itself :D This comparison has to be done for thousands of entities (children in this case). >>> >>> Cheers, >>> >>> Malte >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From briany at qldlearning.com Tue Mar 8 14:55:26 2011 From: briany at qldlearning.com (Brian Yennie) Date: Tue, 8 Mar 2011 14:55:26 -0500 Subject: Coding Challenge In-Reply-To: <2FE493E3-B55C-4B15-B95A-FA8E777EC71F@derbrill.de> References: <2FE493E3-B55C-4B15-B95A-FA8E777EC71F@derbrill.de> Message-ID: Malte, How about something like this: 1) Normalize all of your relations to "older than" (reverse of "younger than") So if you started with: Malte is older than Bjornke Mark is older than Malte Mark is younger than Fred George is younger than Fred You now have these ordered pairs: Malte,Bjornke Mark, Malte Fred,Mark Fred, George Ignore "equals" relations for now. 2) Combine any places where a name occurs in both the 1st and last items, repeat as necessary: => Malte,Bjornke Fred, Mark, Malte Fred, George => Fred, Mark, Malte, Bjornke Fred, George 4) For any "equals" relations, simply treat them as aliases in the final analysis. If a name doesn't appear in your list, try all of the aliases because the result will be the same. 5) To answer a question, use each resulting line as a test. Examples: If Person A > Person B, then they will appear before them in at least 1 line If Person A < Person B, then they will appear after them in at least 1 line If Person A = Person B, then they must not appear on the same line This probably isn't perfect, but maybe a good direction? > Thanks for the head ups folks, > > Bj?rnke and Mark: I do not have the exact ages to sort by. All I do have is relations: > > Malte is older than Bj?rnke > Mark is older than Malte > > And now I need to compute if it is valid to say: > - Bj?rnke is older than Mark (obviously not) > - Bj?rnke is the same age as Mark (obviously not) > - Bj?rnke is younger than Mark. (That?s the one) > > What comes easy to the human brain in fact appears to be a lot more difficult when having to be tackled computationaly. > > Chris: Yes, I want such a list in the end. But in order to finally get this I will need to tell the machine which relations are legal first (the user tells which relations there are) and ideally filter out the data for relations that make no sense. Now I wish it was easy to tell the machine to just use logic and make sense itself :D This comparison has to be done for thousands of entities (children in this case). > > Cheers, > > Malte From form at nonsanity.com Tue Mar 8 15:11:02 2011 From: form at nonsanity.com (Nonsanity) Date: Tue, 8 Mar 2011 15:11:02 -0500 Subject: Coding Challenge In-Reply-To: <2FE493E3-B55C-4B15-B95A-FA8E777EC71F@derbrill.de> References: <2FE493E3-B55C-4B15-B95A-FA8E777EC71F@derbrill.de> Message-ID: That's a lot of children. Hmmm... Are you looking to use relative ages instead of actual ages because the entry times (old photographs for example) involve the children at different ages? The entry of all that is going to be the biggest headache, I imagine, as every relationship will require selecting two people. But once the data is input, the method I outlined should give you the results you want. ~ Chris Innanen ~ Nonsanity On Tue, Mar 8, 2011 at 1:49 PM, Malte Brill wrote: > Thanks for the head ups folks, > > Bj?rnke and Mark: I do not have the exact ages to sort by. All I do have is > relations: > > Malte is older than Bj?rnke > Mark is older than Malte > > And now I need to compute if it is valid to say: > - Bj?rnke is older than Mark (obviously not) > - Bj?rnke is the same age as Mark (obviously not) > - Bj?rnke is younger than Mark. (That?s the one) > > What comes easy to the human brain in fact appears to be a lot more > difficult when having to be tackled computationaly. > > Chris: Yes, I want such a list in the end. But in order to finally get this > I will need to tell the machine which relations are legal first (the user > tells which relations there are) and ideally filter out the data for > relations that make no sense. Now I wish it was easy to tell the machine to > just use logic and make sense itself :D This comparison has to be done for > thousands of entities (children in this case). > > Cheers, > > Malte > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jmyepes at mac.com Tue Mar 8 15:21:55 2011 From: jmyepes at mac.com (JosepM) Date: Tue, 8 Mar 2011 12:21:55 -0800 (PST) Subject: Coding Challenge In-Reply-To: References: <334A28CB-F76A-4CDF-BC34-39CDC06D231E@derbrill.de> <2FE493E3-B55C-4B15-B95A-FA8E777EC71F@derbrill.de> Message-ID: <1299615715724-3342144.post@n4.nabble.com> And if you assign a value (a weight) to the relation? 0 or 1 in function if are older or younger, assign the relation value to the person and compare the persons with the relation value or weigth. Salut, Josep -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Coding-Challenge-tp3341313p3342144.html Sent from the Revolution - User mailing list archive at Nabble.com. From jmyepes at mac.com Tue Mar 8 15:24:37 2011 From: jmyepes at mac.com (JosepM) Date: Tue, 8 Mar 2011 12:24:37 -0800 (PST) Subject: datagrid: force to send "on closeeditor" to one column Message-ID: <1299615877631-3342154.post@n4.nabble.com> Hi, How can send a "on closeeditor" to one particular column of a datagrid? I do some checks into the closeeditor and when the user drop a row I need fire the closeeditor. Any idea? Salut, Josep -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/datagrid-force-to-send-on-closeeditor-to-one-column-tp3342154p3342154.html Sent from the Revolution - User mailing list archive at Nabble.com. From tbandi at swissonline.ch Tue Mar 8 15:40:33 2011 From: tbandi at swissonline.ch (Till Bandi) Date: Tue, 8 Mar 2011 21:40:33 +0100 Subject: [ANN] New ChartMaker release In-Reply-To: References: Message-ID: <69BED8B3-3EC2-407B-9E42-E178B437AAE5@swissonline.ch> if you don't have it yet ? ge it! if you have it ? upgrade!! It's easy to learn, flexible to use and even better in the new version. The only excuse for not having it in your toolbox is if you don't ever work with numbers... so everybody needs it. And Hugh deserves your support! A Happy user Till Am 04.03.2011 um 16:48 schrieb FlexibleLearning: > An upgrade for ChartMaker has been released. It has also moved home to its > own website. > > > If you already have a copy, you can click 'Check for updates...' in the > program, download the file and follow the link. > > If you would like to investigate ChartMaker, see a screencast, find out > what's new in this release and download a free trial, go to > www.flexibleLearning.com/chartmaker > > You can also download a free trial and purchase ChartMaker from the runRev > store at http://www.runrev.com/store/product/chartmaker/ > > > My public thanks to all the beta testers; you are stars, each one of you! > > > Hugh Senior > FLCo > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobs at twft.com Tue Mar 8 15:43:29 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 8 Mar 2011 12:43:29 -0800 Subject: Position of Answer Dialog In-Reply-To: <72A8BBF8-F12C-4272-B2DA-3AC2743F821D@derbrill.de> References: <72A8BBF8-F12C-4272-B2DA-3AC2743F821D@derbrill.de> Message-ID: <7F8DF54B-AB49-4478-A559-589EE6F0E378@twft.com> Oh hey how about that! Probably should pass suspendStack though. Bob On Mar 8, 2011, at 11:18 AM, Malte Brill wrote: > I am a little late to the party... > > For answer color (and answer printer for that matter) you seem to be out of luck, as these seem to directly trigger the OS API. > For answer and ask the suspendStack message is your friend. > > on suspendStack > if "Answer Dialog" is among the lines of the openstacks then > -- reposition it here > end if > end suspendStack > > Not much help, but maybe useful. > > Cheers, > > Malte > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobs at twft.com Tue Mar 8 16:01:00 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 8 Mar 2011 13:01:00 -0800 Subject: datagrid: force to send "on closeeditor" to one column In-Reply-To: <1299615877631-3342154.post@n4.nabble.com> References: <1299615877631-3342154.post@n4.nabble.com> Message-ID: <4B7870E6-5153-4C6B-9E28-AB4B82A541D6@twft.com> I don't know what you mean by "drops a row". Do you mean deletes a row? closeEditor gets sent to the dataGrid. The column is not an entity per se, the way a row is. You can get the data of an index or row and get the array for that row, but you cannot get the data of a column in the same way. closeEditor is a system message that gets sent to the dataGrid (I believe) when you terminate the editing of the special field used for editing. You should be able to trap for that in the dataGrid script. If you want to generate the message yourself, you can dispatch closeEditor to the datagrid, but I do not think that will actually close the editor. If you trap it, then you should pass it when you are done. Bob On Mar 8, 2011, at 12:24 PM, JosepM wrote: > Hi, > > How can send a "on closeeditor" to one particular column of a datagrid? > I do some checks into the closeeditor and when the user drop a row I need > fire the closeeditor. > > Any idea? > > > > Salut, > Josep > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/datagrid-force-to-send-on-closeeditor-to-one-column-tp3342154p3342154.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jmyepes at mac.com Tue Mar 8 16:09:22 2011 From: jmyepes at mac.com (JosepM) Date: Tue, 8 Mar 2011 13:09:22 -0800 (PST) Subject: datagrid: force to send "on closeeditor" to one column In-Reply-To: <4B7870E6-5153-4C6B-9E28-AB4B82A541D6@twft.com> References: <1299615877631-3342154.post@n4.nabble.com> <4B7870E6-5153-4C6B-9E28-AB4B82A541D6@twft.com> Message-ID: <1299618562477-3342231.post@n4.nabble.com> Hi Bob, "drop a row" means that the user perform a drag and drop operation from one datagrid to other datagrid. When the "on dragDrop" is finish it, I need fire the closeeditor. Salut, Josep -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/datagrid-force-to-send-on-closeeditor-to-one-column-tp3342154p3342231.html Sent from the Revolution - User mailing list archive at Nabble.com. From zryip.theslug at gmail.com Tue Mar 8 16:28:40 2011 From: zryip.theslug at gmail.com (zryip theSlug) Date: Tue, 8 Mar 2011 22:28:40 +0100 Subject: How to develop and deploy with ListMagic within the GLX application framework? In-Reply-To: <017C4C22-7155-462E-A93D-B8E28EB728A2@clarkeandclarke.co.uk> References: <58A7C3FA-253F-44E0-A6B2-8F629FD784A2@clarkeandclarke.co.uk> <017C4C22-7155-462E-A93D-B8E28EB728A2@clarkeandclarke.co.uk> Message-ID: On Mon, Mar 7, 2011 at 11:55 AM, Keith Clarke wrote: Hi Keith, > Great lesson - I have a checkbox in a cell. I did have to divert from your lesson slightly. So, below are the additional steps that I took - just in case you want to update your lesson for the following scenario... > > I wanted a row 'Select' column of (just) checkboxes, centrally aligned under the Select column heading. To: > > 1. Hide the checkbox name, clear the checkbox control's Basic Properties 'Show name' checkbox > 2. Align the checkbox centrally within the column's cell, simply drag the checkbox control around in the DGH Column Builder's 'Column Content' view - to over the middle of the underlying _ColumnData_ control, as shown here http://dl.dropbox.com/u/1909531/checkbox%20in%20DGH%20cell.png > > It works, though I'm not sure if it's best practice?!? You are right. By keeping the "_ColumnData_" field you will be able to center the checkbox "by hand" in the column. When the column has not this field, the check box is drawn on the left of the column. So it is the best way to come if you not want to script the position of the button in the layoutControl handler of the column script. I'm going to update the lesson according to your observation. Thanks! > > BTW For this list, I want these Row-Select checkboxes to be mutually-exclusive - so that if one is set to true, those in all other rows are cleared. Where should I place such a script - against the _ColumnData_ object or the data grid group level? > Best, > Keith.. Best, -- -Zryip TheSlug- wish you the best! 8) http://www.aslugontheroad.co.cc From zryip.theslug at gmail.com Tue Mar 8 17:15:11 2011 From: zryip.theslug at gmail.com (zryip theSlug) Date: Tue, 8 Mar 2011 23:15:11 +0100 Subject: datagrid: force to send "on closeeditor" to one column In-Reply-To: <1299618562477-3342231.post@n4.nabble.com> References: <1299615877631-3342154.post@n4.nabble.com> <4B7870E6-5153-4C6B-9E28-AB4B82A541D6@twft.com> <1299618562477-3342231.post@n4.nabble.com> Message-ID: On Tue, Mar 8, 2011 at 10:09 PM, JosepM wrote: Hi Josep, I suppose you mean "CloseFieldEditor" The CloseFieldEditor message is associated with the cell in edition (named field Editor). In a drag & drop operation there is no cell in edition, and executing the "CloseFieldEditor" event after the drop seems not the better way. Let's explore another solution, maybe more understandable. 1. When one enter a value in a column, you need to check the validity of this value 2. You need to check this validity also when one drops a row in the datagrid. Do you have a validity constraint for each column of the datagrid? Or only for one column? Best regards, -- -Zryip TheSlug- wish you the best! 8) http://www.aslugontheroad.co.cc From dunbarx at aol.com Tue Mar 8 17:18:59 2011 From: dunbarx at aol.com (dunbarx at aol.com) Date: Tue, 08 Mar 2011 17:18:59 -0500 Subject: Odd menu In-Reply-To: References: <4D7145B6.7050502@hyperactivesw.com> Message-ID: <8CDABF5F1C5B54A-2598-39BB@webmail-d028.sysops.aol.com> I threw a small mainstack together and saved it. I used the menuBuilder to add a new menu (a default, "menu 4") and populated it with a few menuItems (also defaults, "item 1", "item 2", etc. up to "item 6"). No other actions, just this build procedure. But Menu 4 truncates the last two menuItems, so I only see 1-4. If I delete all but two, I see nothing, and in fact the menu itself disappears. If I add one more menuItem, (item 3 again) I see only item 1. If I do not set the menu as a stack menu all the items are there as advertised (I am on a Mac). Going back and forth does nothing. The other default menus, "File", "Edit" and "Help", all are fine. A new session works the same way. Anyone ever see this? I use custom menus all the time. No problem. LC v4.3. Craig Newman -----Original Message----- From: Sarah Reichelt To: How to use LiveCode Sent: Fri, Mar 4, 2011 9:51 pm Subject: Re: Backscript behavior On Sat, Mar 5, 2011 at 6:04 AM, J. Landman Gay wrote: > Somebody preserve my sanity here... Sorry, you've been talking to associating with all of us here for too long... there is now no way to preserve sanity :-) _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Tue Mar 8 17:27:18 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 08 Mar 2011 14:27:18 -0800 Subject: Odd menu Message-ID: <4D76AD46.90200@fourthworld.com> dunbarx wrote: > I threw a small mainstack together and saved it. I used the menuBuilder to add a new menu (a default, "menu 4") and populated it with a few menuItems (also defaults, "item 1", "item 2", etc. up to "item 6"). No other actions, just this build procedure. > > > But Menu 4 truncates the last two menuItems, so I only see 1-4. If I delete all but two, I see nothing, and in fact the menu itself disappears. If I add one more menuItem, (item 3 again) I see only item 1. > > > If I do not set the menu as a stack menu all the items are there as advertised (I am on a Mac). Going back and forth does nothing. The other default menus, "File", "Edit" and "Help", all are fine. A new session works the same way. > > > Anyone ever see this? I use custom menus all the time. No problem. LC v4.3. > It's a feature: in HIG-compliant apps the last menu is "Help", and the last menu item is "About" with second-to-last being a divider. The menu will render unaltered on Linux and Windows, but since Mac is different it moves the last item to the application menu and removes the divider that had been above it. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From tsj at unimelb.edu.au Tue Mar 8 17:37:59 2011 From: tsj at unimelb.edu.au (Terry Judd) Date: Wed, 09 Mar 2011 09:37:59 +1100 Subject: Comparing filenames based on case sensitive filepaths Message-ID: Due to an obscure but annoying issue with OSX 10.5 I need to be able to check for the existence of a file based on the case of its name before I can launch it from Livecode. The exists function isn?t case sensitive and the only idea I?ve been able to come up with to date is to use the files function, filter the results based on the filename and then compare the two filenames (having set the caseSensitive property to true). This seems a bit long winded and I was hoping for a simpler and quicker way. Any ideas? Terry... -- Dr Terry Judd | Senior Lecturer in Medical Education Medical Education Unit Melbourne Medical School The University of Melbourne From jmyepes at mac.com Tue Mar 8 17:51:57 2011 From: jmyepes at mac.com (JosepM) Date: Tue, 8 Mar 2011 14:51:57 -0800 (PST) Subject: datagrid: force to send "on closeeditor" to one column In-Reply-To: References: <1299615877631-3342154.post@n4.nabble.com> <4B7870E6-5153-4C6B-9E28-AB4B82A541D6@twft.com> <1299618562477-3342231.post@n4.nabble.com> Message-ID: <1299624717290-3342398.post@n4.nabble.com> Hi, I have a validation for each column. Salut, Josep -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/datagrid-force-to-send-on-closeeditor-to-one-column-tp3342154p3342398.html Sent from the Revolution - User mailing list archive at Nabble.com. From dunbarx at aol.com Tue Mar 8 18:00:40 2011 From: dunbarx at aol.com (dunbarx at aol.com) Date: Tue, 08 Mar 2011 18:00:40 -0500 Subject: Odd menu In-Reply-To: <4D76AD46.90200@fourthworld.com> References: <4D76AD46.90200@fourthworld.com> Message-ID: <8CDABFBC7749769-2598-41D2@webmail-d028.sysops.aol.com> Richard. Odd, but that explains it. You cannot have the last menu be a custom menu. I guess this was true in HC as well. If you created a new menu, you did not have control over where it was placed except within the confines of the built-in menuSpace open to you. And the "help" menu was always last. I just rashly assumed that with the additional control in LC, I could shuffle at will. Thanks. Craig -----Original Message----- From: Richard Gaskin To: How to use LiveCode Sent: Tue, Mar 8, 2011 5:27 pm Subject: Re: Odd menu dunbarx wrote: > I threw a small mainstack together and saved it. I used the menuBuilder to add a new menu (a default, "menu 4") and populated it with a few menuItems (also defaults, "item 1", "item 2", etc. up to "item 6"). No other actions, just this build procedure. > > > But Menu 4 truncates the last two menuItems, so I only see 1-4. If I delete all but two, I see nothing, and in fact the menu itself disappears. If I add one more menuItem, (item 3 again) I see only item 1. > > > If I do not set the menu as a stack menu all the items are there as advertised (I am on a Mac). Going back and forth does nothing. The other default menus, "File", "Edit" and "Help", all are fine. A new session works the same way. > > > Anyone ever see this? I use custom menus all the time. No problem. LC v4.3. > It's a feature: in HIG-compliant apps the last menu is "Help", and the last menu item is "About" with second-to-last being a divider. The menu will render unaltered on Linux and Windows, but since Mac is different it moves the last item to the application menu and removes the divider that had been above it. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From zryip.theslug at gmail.com Tue Mar 8 18:18:53 2011 From: zryip.theslug at gmail.com (zryip theSlug) Date: Wed, 9 Mar 2011 00:18:53 +0100 Subject: datagrid: force to send "on closeeditor" to one column In-Reply-To: <1299624717290-3342398.post@n4.nabble.com> References: <1299615877631-3342154.post@n4.nabble.com> <4B7870E6-5153-4C6B-9E28-AB4B82A541D6@twft.com> <1299618562477-3342231.post@n4.nabble.com> <1299624717290-3342398.post@n4.nabble.com> Message-ID: On Tue, Mar 8, 2011 at 11:51 PM, JosepM wrote: > Hi, > > I have a validation for each column. Ok, so I assume you have defined a custom column behavior. Your closeFieldEditor should be something like this: on closeFieldEditor pFieldEditor local tValue put the text of pFieldEditor into tValue switch the dgColumn of me case myFirstCol checkValue tValue break case mySecondCol checkValue tValue break etc end switch end closeFieldEditor Why not have a handler somewhere in the datagrid group: command checkAllValue pColumn, pValue switch pColumn case myFirstCol checkValue pValue break case mySecondCol checkValue pValue break etc end switch end checkAllValue You could call this handler in the closeFieldEditor handler on closeFieldEditor pFieldEditor local tValue put the text of pFieldEditor into tValue checkAllValue the dgColumn of me, tValue end closeFieldEditor And also in the dragDrop handler for each column of the datagrid. Best, -- -Zryip TheSlug- wish you the best! 8) http://www.aslugontheroad.co.cc From eps11 at mac.com Tue Mar 8 18:19:16 2011 From: eps11 at mac.com (Eric Peyron) Date: Wed, 09 Mar 2011 00:19:16 +0100 Subject: Speeding the transition between cards Message-ID: Hi all, I am creating my first eComic Livecode App, and I have a little problem I can't seem to solve: the more objects/scripts on cards, the slower the transition between these cards. I know there are ways to speed things up by locking the screen, and I have tried to add "lock screen" in the "Next card" buttons' scripts, but it doesn't speed things up. Does anyone have an idea about how to accelerate the transition? Thanks in advance, Eric From bobs at twft.com Tue Mar 8 18:21:45 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 8 Mar 2011 15:21:45 -0800 Subject: datagrid: force to send "on closeeditor" to one column In-Reply-To: <1299618562477-3342231.post@n4.nabble.com> References: <1299615877631-3342154.post@n4.nabble.com> <4B7870E6-5153-4C6B-9E28-AB4B82A541D6@twft.com> <1299618562477-3342231.post@n4.nabble.com> Message-ID: <0D053E68-FB88-4954-92F1-A2665FA96C24@twft.com> OIC you are dragging into an active editor? Interesting. I'd like to see how that works out. I think from an interface perspective, I'd prevent a drag and drop operation to anything in a dataGrid EXCEPT the editor, if there was an active edit session. Bob On Mar 8, 2011, at 1:09 PM, JosepM wrote: > Hi Bob, > > "drop a row" means that the user perform a drag and drop operation from one > datagrid to other datagrid. > When the "on dragDrop" is finish it, I need fire the closeeditor. > > > Salut, > Josep > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/datagrid-force-to-send-on-closeeditor-to-one-column-tp3342154p3342231.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From revdev at pdslabs.net Tue Mar 8 18:26:55 2011 From: revdev at pdslabs.net (Phil Davis) Date: Tue, 08 Mar 2011 15:26:55 -0800 Subject: Speeding the transition between cards In-Reply-To: References: Message-ID: <4D76BB3F.4030002@pdslabs.net> Hi Eric, 1) You can change the effectRate to a lower number on milliseconds - that might help. 2) You can use the 'fast' or 'very fast' modifiers on your visual effects. Both of these ideas assume you're using visual effects. Phil Davis On 3/8/11 3:19 PM, Eric Peyron wrote: > Hi all, > > I am creating my first eComic Livecode App, and I have a little problem I can't seem to solve: the more objects/scripts on cards, the slower the transition between these cards. I know there are ways to speed things up by locking the screen, and I have tried to add "lock screen" in the "Next card" buttons' scripts, but it doesn't speed things up. Does anyone have an idea about how to accelerate the transition? > > Thanks in advance, > Eric > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Phil Davis PDS Labs Professional Software Development http://pdslabs.net From RevList at CreaTECHSol.com Tue Mar 8 18:31:09 2011 From: RevList at CreaTECHSol.com (RevList) Date: Tue, 08 Mar 2011 15:31:09 -0800 Subject: Position of Answer Dialog In-Reply-To: <72A8BBF8-F12C-4272-B2DA-3AC2743F821D@derbrill.de> References: <72A8BBF8-F12C-4272-B2DA-3AC2743F821D@derbrill.de> Message-ID: How to use LiveCode on March 8, 2011 at 11:18 AM -0800 wrote: >For answer color (and answer printer for that matter) you seem to be out >of luck, as these seem to directly trigger the OS API. >For answer and ask the suspendStack message is your friend. > >on suspendStack > if "Answer Dialog" is among the lines of the openstacks then > -- reposition it here > end if >end suspendStack > >Not much help, but maybe useful. It is the Answer Color that I am most interested in. I know I could "roll my own" for a simple Answer dialog box, but it is the answer color that I need for my solution. Right now, it pops up in the middle of the screen and I really want it to be close to the mouse position when I click on the control that calls this dialog. There is no way that I am going to try to roll my own version of this one because, as you point out, it triggers and OS API and I wouldn't know how to do that and position the picker in the right location. From niconiko at gmail.com Tue Mar 8 18:43:08 2011 From: niconiko at gmail.com (Nicolas Cueto) Date: Wed, 9 Mar 2011 08:43:08 +0900 Subject: crash when moving between stacks (again) Message-ID: Dear List, Posted this back in June. Got no reply. But am posting gain, in hopes. In short, one of my more convoluted Rev creations keeps crashing when some of its stacks close. It's a combination of stacks. Here are the pieces: - standalone-stack (holds the engine) - central-stack (for game-stack selection) - game-stacks (a myriad of these, some of them with substacks) Crashes happen when a game-stack is closed to return to the central-stack. Moreso for some game-stacks than others. I double checked that every stack, substack, and card has a preopen/open/close handler, even if this is empty. I thought it may be a memory issue, cause the game-stack that almost always crashes has many URL-referenced image objects and runs on older Win machines. However, I tested on a newer machine with ample memory and cpu power, but still get crashes. Below is an outline of the scripted inter-relation between stacks. Perhaps someone will spot something I've overlooked Thank you. -- Nicolas Cueto ------ S T A R T O F S C R I P T S ----- /* In the card script of STANDALONE-STACK, this handler sets stackFiles and then goes to stack CENTRAL-STACK. */ on setUpTheFoundation start using stack "STANDALONE " put "GAMESTACK1,gamestack1.rev" & cr & "GAMESTACK2,gamestack2.rev" & cr & ... \ & "animationEngine,animationEngine.rev" into tStackFiles set the stackFiles of stack "niconiko" to tStackFiles ## Set the globals used by all stacks open stack "CENTRAL" hide stack "STANDALONE" end setUpTheFoundation /* In stack script of CENTRALSTACK. */ on closestack quit end closestack /* In a go-to-gamestack button script on CENTRALSTACK./ on mouseUp open stack GAMESTACK hide stack CENTRALSTACK end mouseUp /* In the stack script of BAD-GAMESTACK */ on closeStack ## Reset custom props of some grouped objects. ## Clear pending messages ## Clear the cachedURLs. set the lockScreen to true ## Set to empty the filename of 100 images. set the lockScreen to false go to card "main" of stack "gss" show stack "gss" delete stack "blitz" end closeStack /* In the card script of BAD-GAMESTACK, which script calls up the NAVIGATION-SUBSTACK that can take user back to CENTRALSTACK. */ on rawKeyUp theKey switch theKey case "56" modal stack NAVIGATION-SUBSTACK pass rawKeyUp exit rawKeyUp exit to top break end switch end rawKeyUp on closecard ## Clear the cachedURLs. ## Cancel pending messages. ## Reset custom props. ## For each of 100 image objects: ## reset filename to "", outerglow, ## and innerglow. ## Close the socket connection to ## the local server. end closecard /* In the card script of NAVIGATION-SUBSTACK. */ on rawKeyUp theKey put "49,50,51,52" into tGameControllerRightsideButtons if theKey is not among the items of tGameControllerRightsideButtons then pass rawKeyUp exit rawKeyUp end if ## Find which navigational image is on. switch tCurentlyOnImage case "quit" send "closeStack" to stack BAD-GAMESTACK in 2 seconds close this stack -- i.e., NAVIGATION-SUBSTACK... should I name the stack explicitly here? exit to top break end switch end rawKeyUp ------ E N D O F S C R I P T S ----- From scott at tactilemedia.com Tue Mar 8 18:55:42 2011 From: scott at tactilemedia.com (Scott Rossi) Date: Tue, 08 Mar 2011 15:55:42 -0800 Subject: Speeding the transition between cards In-Reply-To: Message-ID: Recently, Eric Peyron wrote: > I am creating my first eComic Livecode App, and I have a little problem I > can't seem to solve: the more objects/scripts on cards, the slower the > transition between these cards. I know there are ways to speed things up by > locking the screen, and I have tried to add "lock screen" in the "Next card" > buttons' scripts, but it doesn't speed things up. Does anyone have an idea > about how to accelerate the transition? Can you provide any more information here? There's not really much to go on. The number of objects on card could conceivably slow things down if you're talking hundreds, but number of scripts really shouldn't affect anything unless you're activating a bunch of scripts simultaneously. If you're initializing things when opening a card, that could cause a bottle neck -- try initializing within a preOpenCard card handler instead of within openCard. It's hard to tell, but from what you describe, you *might* get better results by doing this: Lock screen -> go next card -> unlock screen [with visual effect ] FWIW, I've found you can sometimes trim a few extra millisecs off processing by explicitly calling "unlock screen" at the end of handler that locks the screen, rather than waiting for the handler to exit on its own. But if you're using visual effects, you're already doing this. Regards, Scott Rossi Creative Director Tactile Media, UX Design From bobs at twft.com Tue Mar 8 19:35:37 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 8 Mar 2011 16:35:37 -0800 Subject: Speeding the transition between cards In-Reply-To: References: Message-ID: Do you think this is a load into memory problem? Maybe caching the cards will help, if it's not too much. Does the problem occur every time or just the first time you load a card? If it's just the first time, then maybe you could go to every card on startup with the screen locked to load everything into memory. You could also trap on idle and reference each card in sequence (doesn't that load the entire card into memory?) Just shooting in the dark here. Bob On Mar 8, 2011, at 3:55 PM, Scott Rossi wrote: > Recently, Eric Peyron wrote: > >> I am creating my first eComic Livecode App, and I have a little problem I >> can't seem to solve: the more objects/scripts on cards, the slower the >> transition between these cards. I know there are ways to speed things up by >> locking the screen, and I have tried to add "lock screen" in the "Next card" >> buttons' scripts, but it doesn't speed things up. Does anyone have an idea >> about how to accelerate the transition? > > Can you provide any more information here? There's not really much to go > on. The number of objects on card could conceivably slow things down if > you're talking hundreds, but number of scripts really shouldn't affect > anything unless you're activating a bunch of scripts simultaneously. If > you're initializing things when opening a card, that could cause a bottle > neck -- try initializing within a preOpenCard card handler instead of within > openCard. > > It's hard to tell, but from what you describe, you *might* get better > results by doing this: > Lock screen -> go next card -> unlock screen [with visual effect ] > > FWIW, I've found you can sometimes trim a few extra millisecs off processing > by explicitly calling "unlock screen" at the end of handler that locks the > screen, rather than waiting for the handler to exit on its own. But if > you're using visual effects, you're already doing this. > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX Design > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bvg at mac.com Tue Mar 8 20:00:37 2011 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Wed, 09 Mar 2011 02:00:37 +0100 Subject: crash when moving between stacks (again) In-Reply-To: References: Message-ID: <02D60181-0EB2-4C1D-A44D-BC9CF9DAD011@mac.com> Crashes should always be reported directly to runrev. They always get highes priority. And they can give you a workaround. However, they depend on the crashes to happen on their own machine, so you might need to send them example stacks. I suggest you contact support with this. On 9 Mar 2011, at 00:43, Nicolas Cueto wrote: > Dear List, > > Posted this back in June. Got no reply. But am posting gain, in hopes. > > In short, one of my more convoluted Rev creations keeps crashing > when some of its stacks close. > > It's a combination of stacks. Here are the pieces: > > - standalone-stack (holds the engine) > - central-stack (for game-stack selection) > - game-stacks (a myriad of these, some of them with substacks) > > Crashes happen when a game-stack is closed to return to the central-stack. > Moreso for some game-stacks than others. > > I double checked that every stack, substack, and card has a > preopen/open/close handler, even if this is empty. > > I thought it may be a memory issue, cause the game-stack that almost > always crashes has many URL-referenced image objects and runs on older > Win machines. However, I tested on a newer machine with ample memory > and cpu power, but still get crashes. > > Below is an outline of the scripted inter-relation between stacks. Perhaps > someone will spot something I've overlooked > > Thank you. > > -- > > > Nicolas Cueto > > ------ S T A R T O F S C R I P T S ----- > > /* In the card script of STANDALONE-STACK, > this handler sets stackFiles and then goes to > stack CENTRAL-STACK. */ > > on setUpTheFoundation > start using stack "STANDALONE " > put "GAMESTACK1,gamestack1.rev" & cr & "GAMESTACK2,gamestack2.rev" > & cr & ... \ > & "animationEngine,animationEngine.rev" into tStackFiles > set the stackFiles of stack "niconiko" to tStackFiles > ## Set the globals used by all stacks > open stack "CENTRAL" > hide stack "STANDALONE" > end setUpTheFoundation > > /* In stack script of CENTRALSTACK. */ > > on closestack > quit > end closestack > > /* In a go-to-gamestack button script on > CENTRALSTACK./ > > on mouseUp > open stack GAMESTACK > hide stack CENTRALSTACK > end mouseUp > > /* In the stack script of BAD-GAMESTACK */ > > on closeStack > ## Reset custom props of some grouped objects. > ## Clear pending messages > ## Clear the cachedURLs. > set the lockScreen to true > ## Set to empty the filename of 100 images. > set the lockScreen to false > go to card "main" of stack "gss" > show stack "gss" > delete stack "blitz" > end closeStack > > /* In the card script of BAD-GAMESTACK, which script > calls up the NAVIGATION-SUBSTACK that can take > user back to CENTRALSTACK. */ > > on rawKeyUp theKey > switch theKey > case "56" > modal stack NAVIGATION-SUBSTACK > pass rawKeyUp > exit rawKeyUp > exit to top > break > end switch > end rawKeyUp > > on closecard > ## Clear the cachedURLs. > ## Cancel pending messages. > ## Reset custom props. > ## For each of 100 image objects: > ## reset filename to "", outerglow, > ## and innerglow. > ## Close the socket connection to > ## the local server. > end closecard > > /* In the card script of NAVIGATION-SUBSTACK. */ > > on rawKeyUp theKey > put "49,50,51,52" into tGameControllerRightsideButtons > if theKey is not among the items of tGameControllerRightsideButtons then > pass rawKeyUp > exit rawKeyUp > end if > ## Find which navigational image is on. > switch tCurentlyOnImage > case "quit" > send "closeStack" to stack BAD-GAMESTACK in 2 seconds > close this stack -- i.e., NAVIGATION-SUBSTACK... should I > name the stack explicitly here? > exit to top > break > end switch > end rawKeyUp > > ------ E N D O F S C R I P T S ----- > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jmyepes at mac.com Tue Mar 8 20:22:10 2011 From: jmyepes at mac.com (JosepM) Date: Tue, 8 Mar 2011 17:22:10 -0800 (PST) Subject: datagrid: force to send "on closeeditor" to one column In-Reply-To: References: <1299615877631-3342154.post@n4.nabble.com> <4B7870E6-5153-4C6B-9E28-AB4B82A541D6@twft.com> <1299618562477-3342231.post@n4.nabble.com> <1299624717290-3342398.post@n4.nabble.com> Message-ID: <1299633730121-3342588.post@n4.nabble.com> So, from inside the dragdrop call checkAllValue pColumn, pValue? Salut, Josep -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/datagrid-force-to-send-on-closeeditor-to-one-column-tp3342154p3342588.html Sent from the Revolution - User mailing list archive at Nabble.com. From mwieder at ahsoftware.net Tue Mar 8 21:27:05 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Tue, 8 Mar 2011 18:27:05 -0800 Subject: Speeding the transition between cards In-Reply-To: References: Message-ID: <93-2145308703.20110308182705@ahsoftware.net> Eric- Do you happen to have an openCard or preOpenCard handler in the stack script? -- -Mark Wieder mwieder at ahsoftware.net From dunbarx at aol.com Tue Mar 8 22:05:25 2011 From: dunbarx at aol.com (dunbarx at aol.com) Date: Tue, 08 Mar 2011 22:05:25 -0500 Subject: crash when moving between stacks (again) In-Reply-To: References: Message-ID: <8CDAC1DF86773F5-17DC-7A50@webmail-m062.sysops.aol.com> Hi. I have little to offer in the way of help, but you have several places with: pass rawKeyUp exit rawKeyUp exit to top I can't imagine this is a problem, but it is certainly superfluous. Just an observation... Craig Newman -----Original Message----- From: Nicolas Cueto To: LiveCode - general list Sent: Tue, Mar 8, 2011 6:43 pm Subject: crash when moving between stacks (again) Dear List, Posted this back in June. Got no reply. But am posting gain, in hopes. In short, one of my more convoluted Rev creations keeps crashing when some of its stacks close. It's a combination of stacks. Here are the pieces: - standalone-stack (holds the engine) - central-stack (for game-stack selection) - game-stacks (a myriad of these, some of them with substacks) Crashes happen when a game-stack is closed to return to the central-stack. Moreso for some game-stacks than others. I double checked that every stack, substack, and card has a preopen/open/close handler, even if this is empty. I thought it may be a memory issue, cause the game-stack that almost always crashes has many URL-referenced image objects and runs on older Win machines. However, I tested on a newer machine with ample memory and cpu power, but still get crashes. Below is an outline of the scripted inter-relation between stacks. Perhaps someone will spot something I've overlooked Thank you. -- Nicolas Cueto ------ S T A R T O F S C R I P T S ----- /* In the card script of STANDALONE-STACK, this handler sets stackFiles and then goes to stack CENTRAL-STACK. */ on setUpTheFoundation start using stack "STANDALONE " put "GAMESTACK1,gamestack1.rev" & cr & "GAMESTACK2,gamestack2.rev" & cr & ... \ & "animationEngine,animationEngine.rev" into tStackFiles set the stackFiles of stack "niconiko" to tStackFiles ## Set the globals used by all stacks open stack "CENTRAL" hide stack "STANDALONE" end setUpTheFoundation /* In stack script of CENTRALSTACK. */ on closestack quit end closestack /* In a go-to-gamestack button script on CENTRALSTACK./ on mouseUp open stack GAMESTACK hide stack CENTRALSTACK end mouseUp /* In the stack script of BAD-GAMESTACK */ on closeStack ## Reset custom props of some grouped objects. ## Clear pending messages ## Clear the cachedURLs. set the lockScreen to true ## Set to empty the filename of 100 images. set the lockScreen to false go to card "main" of stack "gss" show stack "gss" delete stack "blitz" end closeStack /* In the card script of BAD-GAMESTACK, which script calls up the NAVIGATION-SUBSTACK that can take user back to CENTRALSTACK. */ on rawKeyUp theKey switch theKey case "56" modal stack NAVIGATION-SUBSTACK pass rawKeyUp exit rawKeyUp exit to top break end switch end rawKeyUp on closecard ## Clear the cachedURLs. ## Cancel pending messages. ## Reset custom props. ## For each of 100 image objects: ## reset filename to "", outerglow, ## and innerglow. ## Close the socket connection to ## the local server. end closecard /* In the card script of NAVIGATION-SUBSTACK. */ on rawKeyUp theKey put "49,50,51,52" into tGameControllerRightsideButtons if theKey is not among the items of tGameControllerRightsideButtons then pass rawKeyUp exit rawKeyUp end if ## Find which navigational image is on. switch tCurentlyOnImage case "quit" send "closeStack" to stack BAD-GAMESTACK in 2 seconds close this stack -- i.e., NAVIGATION-SUBSTACK... should I name the stack explicitly here? exit to top break end switch end rawKeyUp ------ E N D O F S C R I P T S ----- _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From etcawley at fastmail.fm Tue Mar 8 22:11:05 2011 From: etcawley at fastmail.fm (edward cawley) Date: Tue, 8 Mar 2011 21:11:05 -0600 Subject: Standalone problem In-Reply-To: References: Message-ID: <21617411-4E32-4EB9-A5BE-8912F432F114@fastmail.fm> Forgot to change the Subject line,try again. Still having trouble with a standalone to Windows. I know what's wrong but I'm not sure how to debug it. The program loads, the substacks work in the menubar and the navigation buttons all work, and some of the images grouped over the buttons also show but not all. The background images seem to show on the "open card" but then disappear. I'm sure it's a path problem but I'm not sure how to solve it. I'm running the Windows XP on VM Fusion and I'm a real newby on Windows after 30 yrs on Macs. I modified Francis code as follows: put the platform into GVHoldPlatform if GVHoldPlatform = "MacOS" then put "misippfiles/" into GVStackPath -- No leading drive on the Mac. end if if GVHoldPlatform = "Win32" then -- System 7 patch to ensure using the Systems Disk for "StackPath" on PC's put item 1 of specialfolderpath("system") & "/misippfiles/"into GVStackPath-- Get Stack Path with Disk ID. replace "WINDOWS/" with empty in GVStackPath -- Remove Windows Folder Name. end if but I'm not sure how to see the results in the Windows program. TheGVStackPath seems to work in some parts of the script but not in others. I'll appreciate any suggestions. Also a second minor problem -How do I increase the font size in the menu bar in the Windows program? Thanks for the continued help. Ed Cawley On Mar 2, 2011, at 10:27 AM, use-livecode-request at lists.runrev.com wrote: > > > Message: 17 > Date: Wed, 2 Mar 2011 11:32:22 +0100 > From: Francis Nugent Dixon > To: use-livecode at lists.runrev.com > Subject: Re: standalone builder > Message-ID: > Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes > > Hi from Beautiful Britanny, > > Edward wrote : > >> How can I refer to the relative paths in both Mac and Windows? > > > Note that I use a "Revolution" folder for all concerned with LiveCode. > All my sub-folders and files of all my stacks are in there somewhere. > > put the platform into GVHoldPlatform > if GVHoldPlatform = "MacOS" then > put "/Revolution/" into GVStackPath -- No leading drive on the > Mac. > end if > if LVHoldPlatform = "Win32" then > -- > -- System 7 patch to ensure using the Systems Disk for > "StackPath" on PC's > -- > put item 1 of specialfolderpath("system") & "/Revolution/"into > GVStackPath -- Get Stack Path with Disk ID. > replace "WINDOWS/" with empty in > GVStackPath -- Remove Windows Folder > Name. > end if > > Add sub-folder names or file names to reach the final destination. > > HTH > > -Francis > > "Nothing should ever be done for the first time ! > ******************************************* From mwieder at ahsoftware.net Tue Mar 8 22:16:19 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Tue, 8 Mar 2011 19:16:19 -0800 Subject: Standalone problem In-Reply-To: <21617411-4E32-4EB9-A5BE-8912F432F114@fastmail.fm> References: <21617411-4E32-4EB9-A5BE-8912F432F114@fastmail.fm> Message-ID: <87-2142354593.20110308191619@ahsoftware.net> edward- Tuesday, March 8, 2011, 7:11:05 PM, you wrote: > put item 1 of specialfolderpath("system") & > "/misippfiles/"into GVStackPath-- Get Stack Path with Disk ID. > replace "WINDOWS/" with empty in GVStackPath -- Remove Windows Folder Name. What's your itemdelimiter set to? You'll need it to be "/" in order for that "put item 1..." line to work. -- -Mark Wieder mwieder at ahsoftware.net From tsj at unimelb.edu.au Tue Mar 8 22:26:06 2011 From: tsj at unimelb.edu.au (Terry Judd) Date: Wed, 09 Mar 2011 14:26:06 +1100 Subject: iOS - scrolling editable fields - possible? Message-ID: I?m attempting to implement a scrolling editable field in an iOS project and am really struggling. I?ve attached a iOS scroller to a group containing the field and this all works fine when the field is locked. When the field is unlocked and the user drags over it it seems as if (and I?ve only tested this in the simulator) there appears, on the simulators part, to be some confusion over whether the user wants to scroll the field or edit it ? sometimes it scrolls, sometimes it pops up the keyboard. A couple of iPad note apps that I?ve had a look at seem to distinguish quite clearly between a swipe (to scroll) and a tap (to edit), and this is what I?m looking to emulate. Added to this the group (and the scroller) needs to be resized when the keyboard is activated and deactivated and the field needs to be resized as its formatted height changes. I think I?ve got these covered (or at least have an idea of how to go about them) provided I can get the swipe/tap distinction happening. Has anyone managed to satisfactorily implement such a beast yet, and if so would they mind providing a tip or two? TIA, Terry... -- Dr Terry Judd | Senior Lecturer in Medical Education Medical Education Unit Melbourne Medical School The University of Melbourne From jacque at hyperactivesw.com Tue Mar 8 22:53:14 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 08 Mar 2011 21:53:14 -0600 Subject: Standalone problem In-Reply-To: <21617411-4E32-4EB9-A5BE-8912F432F114@fastmail.fm> References: <21617411-4E32-4EB9-A5BE-8912F432F114@fastmail.fm> Message-ID: <4D76F9AA.50209@hyperactivesw.com> On 3/8/11 9:11 PM, edward cawley wrote: > I modified Francis code as follows: > > put the platform into GVHoldPlatform > if GVHoldPlatform = "MacOS" then > put "misippfiles/" into GVStackPath -- No leading drive on the Mac. > end if > if GVHoldPlatform = "Win32" then > -- System 7 patch to ensure using the Systems Disk for "StackPath" on PC's > put item 1 of specialfolderpath("system")& "/misippfiles/"into GVStackPath-- Get Stack Path with Disk ID. > replace "WINDOWS/" with empty in GVStackPath -- Remove Windows Folder Name. > end if You've got a mix of relative and absolute paths there. For MacOS, it's relative. When your app starts up, assuming you haven't changed the defaultfolder, the place it is going to look for files is in the same folder with the standalone. Your path points to a folder called "missippfiles" inside the standalone folder. For the Windows segment, the script gets an absolute path to the system folder at the root of the drive, and looks for your "missippfiles" folder next to that. I'm betting you aren't storing images there on Windows. You can use the same folder path for both Mac and Windows. Your image files are always going to be relative to where your standalone is no matter which drive holds it, so you don't care about the drive letter. It isn't necessary to check for platform, just use this for all operating systems: put "misippfiles/" into GVStackPath Put your "misippfiles" folder right next to your standalone, inside the same enclosing folder. Be aware that if any of your scripts change the defaultfolder, the paths won't work any more if you are calculating them on the fly. It would be a good idea to store GVStackPath in a variable early after startup so you can use it later, since it isn't going to change. If the scripts never change the defaultfolder, then you probably don't even need to do that. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Tue Mar 8 23:07:30 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 08 Mar 2011 22:07:30 -0600 Subject: Comparing filenames based on case sensitive filepaths In-Reply-To: References: Message-ID: <4D76FD02.1060709@hyperactivesw.com> On 3/8/11 4:37 PM, Terry Judd wrote: > Due to an obscure but annoying issue with OSX 10.5 I need to be able to > check for the existence of a file based on the case of its name before I can > launch it from Livecode. The exists function isn?t case sensitive and the > only idea I?ve been able to come up with to date is to use the files > function, filter the results based on the filename and then compare the two > filenames (having set the caseSensitive property to true). This seems a bit > long winded and I was hoping for a simpler and quicker way. The Mac isn't case-sensitive, and it won't let you duplicate names regardless of their case. I'm curious why you'd need to distinguish by that. I can't think of any other way to compare case than what you've come up with though. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jhj at jhj.com Tue Mar 8 23:26:02 2011 From: jhj at jhj.com (Jerry J) Date: Tue, 8 Mar 2011 20:26:02 -0800 Subject: Comparing filenames based on case sensitive filepaths In-Reply-To: <4D76FD02.1060709@hyperactivesw.com> References: <4D76FD02.1060709@hyperactivesw.com> Message-ID: <337C73CB-685A-41DA-A92F-4639DADF74AD@jhj.com> On Mar 8, 2011, at 8:07 PM, J. Landman Gay wrote: > On 3/8/11 4:37 PM, Terry Judd wrote: >> Due to an obscure but annoying issue with OSX 10.5 I need to be able to >> check for the existence of a file based on the case of its name before I can >> launch it from Livecode. The exists function isn?t case sensitive and the >> only idea I?ve been able to come up with to date is to use the files >> function, filter the results based on the filename and then compare the two >> filenames (having set the caseSensitive property to true). This seems a bit >> long winded and I was hoping for a simpler and quicker way. > > The Mac isn't case-sensitive, and it won't let you duplicate names regardless of their case. I'm curious why you'd need to distinguish by that. > > I can't think of any other way to compare case than what you've come up with though. Do I remember correctly that one can format an HFS+ volume to be case-sensitive? I never heard of anybody actually doing it, except just before they un-did it because of all the trouble it caused. Jerry Jensen From mwieder at ahsoftware.net Tue Mar 8 23:37:17 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Tue, 8 Mar 2011 20:37:17 -0800 Subject: Position of Answer Dialog In-Reply-To: References: Message-ID: <69-2137495796.20110308203717@ahsoftware.net> Stewart- Tuesday, March 8, 2011, 10:26:51 AM, you wrote: > Well if someone has a roll your own Answer Color dialog box then I would > really appreciate them sharing it. IIRC there are a few variations on revOnline. http://revonline2.runrev.com/stack/470/Color-Picker-Plugin http://revonline2.runrev.com/stack/364/PropertyCopier -- -Mark Wieder mwieder at ahsoftware.net From tsj at unimelb.edu.au Tue Mar 8 23:44:55 2011 From: tsj at unimelb.edu.au (Terry Judd) Date: Wed, 09 Mar 2011 15:44:55 +1100 Subject: Comparing filenames based on case sensitive filepaths In-Reply-To: <4D76FD02.1060709@hyperactivesw.com> Message-ID: On 9/03/11 3:07 PM, "J. Landman Gay" wrote: > On 3/8/11 4:37 PM, Terry Judd wrote: >> Due to an obscure but annoying issue with OSX 10.5 I need to be able to >> check for the existence of a file based on the case of its name before I can >> launch it from Livecode. The exists function isn?t case sensitive and the >> only idea I?ve been able to come up with to date is to use the files >> function, filter the results based on the filename and then compare the two >> filenames (having set the caseSensitive property to true). This seems a bit >> long winded and I was hoping for a simpler and quicker way. > > The Mac isn't case-sensitive, and it won't let you duplicate names > regardless of their case. I'm curious why you'd need to distinguish by that. It's because of a weird glitch on OSX 10.5. If you have an old-style (non bundle) Mac app that is named the same (case sensitive) as its parent folder then you cant launch it other than by double-clicking its icon (shell, Livecode and Applescript launch methods all fail). Change the case of one character in either the folder or the filename and you can launch it any old way. I bumped into this because I had a stack of old Director apps sitting inside identically named folders that I was trying to launch from a Livecode 'software browser'. Worked fine on 10.6, failed dismally on 10.5. Still not sure how I managed to isolate the problem (inspired guesswork?). Terry... > > I can't think of any other way to compare case than what you've come up > with though. -- Dr Terry Judd | Senior Lecturer in Medical Education Medical Education Unit Melbourne Medical School The University of Melbourne From jacque at hyperactivesw.com Wed Mar 9 01:11:30 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 09 Mar 2011 00:11:30 -0600 Subject: Comparing filenames based on case sensitive filepaths In-Reply-To: References: Message-ID: <4D771A12.7050203@hyperactivesw.com> On 3/8/11 10:44 PM, Terry Judd wrote: > > It's because of a weird glitch on OSX 10.5. If you have an old-style (non > bundle) Mac app that is named the same (case sensitive) as its parent folder > then you cant launch it other than by double-clicking its icon (shell, > Livecode and Applescript launch methods all fail). Change the case of one > character in either the folder or the filename and you can launch it any old > way. That's just bizarre. I'm surprised you could isolate it. Your sleuthing techniques are pretty good. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From paul.foraker at gmail.com Wed Mar 9 01:50:54 2011 From: paul.foraker at gmail.com (Paul Foraker) Date: Tue, 8 Mar 2011 22:50:54 -0800 Subject: Problem with iRev refresh In-Reply-To: <330858.97494.qm@web65405.mail.ac4.yahoo.com> References: <330858.97494.qm@web65405.mail.ac4.yahoo.com> Message-ID: On Tue, Mar 8, 2011 at 3:51 AM, Jan Schenkel wrote: > Aren't you missing a quote after tURL to close the content attribute? Or is > that a typo when you wrote the email? > > ## > put format("") > into thePlaceToGo > put thePlaceToGo > ## > There is a missing quote, but as Alex pointed out, it's after the zero. > > Some source ssuggest that you should use both a redirect, and a meta > refresh tag to make sure everything works on all browsers. > > Interesting... thanks. From paul.foraker at gmail.com Wed Mar 9 01:51:00 2011 From: paul.foraker at gmail.com (Paul Foraker) Date: Tue, 8 Mar 2011 22:51:00 -0800 Subject: Problem with iRev refresh In-Reply-To: <4D762D05.1090002@tweedly.net> References: <288DB91E-F5C6-40C1-A47D-3FD6DC0F079F@gmail.com> <4D762D05.1090002@tweedly.net> Message-ID: Thanks, Alex, yeah, that's obviously an error. Since I got it working the other way, I won't mess with the code now, but I'll know to look more intensely next time. On Tue, Mar 8, 2011 at 5:20 AM, Alex Tweedly wrote: > I think the quotes are strangely placed in the 'format' statement below > (assuming it was copied/pasted). > > > put format("") >> into >> > would produce > > > Might be that some browsers can figure out what was intended and some > can't. > > -- Alex. > > From toolbook at kestner.de Wed Mar 9 02:32:34 2011 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Wed, 9 Mar 2011 08:32:34 +0100 Subject: AW: crash when moving between stacks (again) In-Reply-To: References: Message-ID: <003601cbde2c$2c359ef0$84a0dcd0$@de> Hi Nicolas, Perhaps you could try to add a "pass ..." at the end of all standard handlers like open and close, so that the engine can catch them too. Actually I don't know what is happening inside, but perhaps the engine still wants to clean up some stuff, what it can't do without the pass? Tiemo > -----Urspr?ngliche Nachricht----- > Von: use-livecode-bounces at lists.runrev.com [mailto:use-livecode- > bounces at lists.runrev.com] Im Auftrag von Nicolas Cueto > Gesendet: Mittwoch, 9. M?rz 2011 00:43 > An: LiveCode - general list > Betreff: crash when moving between stacks (again) > > Dear List, > > Posted this back in June. Got no reply. But am posting gain, in hopes. > > In short, one of my more convoluted Rev creations keeps crashing > when some of its stacks close. > > It's a combination of stacks. Here are the pieces: > > - standalone-stack (holds the engine) > - central-stack (for game-stack selection) > - game-stacks (a myriad of these, some of them with substacks) > > Crashes happen when a game-stack is closed to return to the central-stack. > Moreso for some game-stacks than others. > > I double checked that every stack, substack, and card has a > preopen/open/close handler, even if this is empty. > > I thought it may be a memory issue, cause the game-stack that almost > always crashes has many URL-referenced image objects and runs on older > Win machines. However, I tested on a newer machine with ample memory > and cpu power, but still get crashes. > > Below is an outline of the scripted inter-relation between stacks. Perhaps > someone will spot something I've overlooked > > Thank you. > > -- > > > Nicolas Cueto > > ------ S T A R T O F S C R I P T S ----- > > /* In the card script of STANDALONE-STACK, > this handler sets stackFiles and then goes to > stack CENTRAL-STACK. */ > > on setUpTheFoundation > start using stack "STANDALONE " > put "GAMESTACK1,gamestack1.rev" & cr & "GAMESTACK2,gamestack2.rev" > & cr & ... \ > & "animationEngine,animationEngine.rev" into tStackFiles > set the stackFiles of stack "niconiko" to tStackFiles > ## Set the globals used by all stacks > open stack "CENTRAL" > hide stack "STANDALONE" > end setUpTheFoundation > > /* In stack script of CENTRALSTACK. */ > > on closestack > quit > end closestack > > /* In a go-to-gamestack button script on > CENTRALSTACK./ > > on mouseUp > open stack GAMESTACK > hide stack CENTRALSTACK > end mouseUp > > /* In the stack script of BAD-GAMESTACK */ > > on closeStack > ## Reset custom props of some grouped objects. > ## Clear pending messages > ## Clear the cachedURLs. > set the lockScreen to true > ## Set to empty the filename of 100 images. > set the lockScreen to false > go to card "main" of stack "gss" > show stack "gss" > delete stack "blitz" > end closeStack > > /* In the card script of BAD-GAMESTACK, which script > calls up the NAVIGATION-SUBSTACK that can take > user back to CENTRALSTACK. */ > > on rawKeyUp theKey > switch theKey > case "56" > modal stack NAVIGATION-SUBSTACK > pass rawKeyUp > exit rawKeyUp > exit to top > break > end switch > end rawKeyUp > > on closecard > ## Clear the cachedURLs. > ## Cancel pending messages. > ## Reset custom props. > ## For each of 100 image objects: > ## reset filename to "", outerglow, > ## and innerglow. > ## Close the socket connection to > ## the local server. > end closecard > > /* In the card script of NAVIGATION-SUBSTACK. */ > > on rawKeyUp theKey > put "49,50,51,52" into tGameControllerRightsideButtons > if theKey is not among the items of tGameControllerRightsideButtons then > pass rawKeyUp > exit rawKeyUp > end if > ## Find which navigational image is on. > switch tCurentlyOnImage > case "quit" > send "closeStack" to stack BAD-GAMESTACK in 2 seconds > close this stack -- i.e., NAVIGATION-SUBSTACK... should I > name the stack explicitly here? > exit to top > break > end switch > end rawKeyUp > > ------ E N D O F S C R I P T S ----- > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From eps11 at mac.com Wed Mar 9 03:13:04 2011 From: eps11 at mac.com (eps11 at mac.com) Date: Wed, 09 Mar 2011 09:13:04 +0100 Subject: Speeding the transition between cards Message-ID: Hi all, Thank you for your answers. And sorry if my answer appears as a new thread, I can't seem to understand how to just post an answer in an existing thread... I am using effects for very fast transitions between cards, but the problem is the same: whatever the effect, the card loads quickly enough if it holds a main image and other smaller images that I use as buttons, but it loads more slowly if it holds too many images or buttons. As I am creating an ecomic with a thumbnails bar that should appear on the click of a button, I solved the "too many buttons" problem by creating a whole card for all the thumbnails. It is visually less exciting but it will do if I don't find a solution. Now, the scripts slowing down the displaying of the cards is a more tricky problem. The problem occurs only with cards holding 480x720 images and the Thumbnails card. I had to allow the user to scroll the image, as it will be displayed in a 320x480 iPhone, and to scroll the Thumbnails card. For this, I simply copied and pasted the script from the Scroller Example stack (in the Livecode folder), and tweaked it a little so that it works for my cards. As the Thumbnails card holds this script only (and a lot of images I use as buttons...), it seems to be mostly this script that is slowing down the displaying of the cards. Do you have ideas about what we could add to the script that would speed up the process? Thanks, Eric From gerry.orkin at gmail.com Wed Mar 9 05:40:19 2011 From: gerry.orkin at gmail.com (Gerry) Date: Wed, 9 Mar 2011 21:40:19 +1100 Subject: MySQL in iOS apps? In-Reply-To: References: Message-ID: <534B4E808CF840FEBD2D2B0C9B4BB0BD@gmail.com> I'm trying to read data from a MySQL database on a server into an iOS app. Works fine in the stack, but not in the app. Don't iOS apps support calls to remote databases? Gerry From mazzapaoloitaly at gmail.com Wed Mar 9 06:01:21 2011 From: mazzapaoloitaly at gmail.com (paolo mazza) Date: Wed, 9 Mar 2011 12:01:21 +0100 Subject: MySQL in iOS apps? In-Reply-To: <534B4E808CF840FEBD2D2B0C9B4BB0BD@gmail.com> References: <534B4E808CF840FEBD2D2B0C9B4BB0BD@gmail.com> Message-ID: Gerry, the MySQL database plugin does not work in iOS apps. A way to read data from a MySQL database is through a cgi. You can have a CGI on the same server MySQL is, and call that CGI from an iOS app. Paolo Mazza From effendi at wanadoo.fr Wed Mar 9 06:07:59 2011 From: effendi at wanadoo.fr (Francis Nugent Dixon) Date: Wed, 9 Mar 2011 12:07:59 +0100 Subject: Position of Answer Dialog Message-ID: <1E777AB4-5743-4D4F-A1CF-509E6AD213C0@wanadoo.fr> Hi from Beautiful Britanny, Bob Sneidar wrote : > That spelling of Dialog looks suspiciously French to me. > Extra letters that serve absolutely no purpose whatsoever > in the actual pronunciation of the word... > Yup, French for sure. ;-) From the Shorter Oxford ENGLISH Dictionary : Dialogue : (Middle English) first noted in 1597. This was, of course, before the United States were even heard of. However, over the past 200 years, the Americans have systematically beaten the English language to death, and use the term "American English" to illustrate the pride they have in this, their NEW language. However, "English English" lives on :>). If you want to castigate the French language, then complain about the useless Masculine and Feminine (le and la), or maybe the confusing posessive pronoun (son et sa). And of course, the useless accents (which only serve to precisely define the correct pronunciation. A bon entendeur, salut (and this, from an Irishman) ! -Francis Post Scriptum (that's Latin): Of course, this has NOTHING to do with the Answer DialogUE ! From gerry.orkin at gmail.com Wed Mar 9 06:23:36 2011 From: gerry.orkin at gmail.com (Gerry) Date: Wed, 9 Mar 2011 22:23:36 +1100 Subject: MySQL in iOS apps? In-Reply-To: References: <534B4E808CF840FEBD2D2B0C9B4BB0BD@gmail.com> Message-ID: <5549382EFC3E4856B18A918DDDEA5F86@gmail.com> Thanks :) Just another thing to learn. I'll Google .cgi and MySql (I've never written a .cgi) - but do you have an example of one that calls a SQL database in LiveCode? Gerry -- photo site: http://gerryorkin.com On Wednesday, 9 March 2011 at 10:01 PM, paolo mazza wrote: > Gerry, > the MySQL database plugin does not work in iOS apps. > A way to read data from a MySQL database is through a cgi. You can > have a CGI on the same server MySQL is, and call that CGI from an iOS > app. > > Paolo Mazza > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From mazzapaoloitaly at gmail.com Wed Mar 9 06:47:33 2011 From: mazzapaoloitaly at gmail.com (paolo mazza) Date: Wed, 9 Mar 2011 12:47:33 +0100 Subject: MySQL in iOS apps? In-Reply-To: <5549382EFC3E4856B18A918DDDEA5F86@gmail.com> References: <534B4E808CF840FEBD2D2B0C9B4BB0BD@gmail.com> <5549382EFC3E4856B18A918DDDEA5F86@gmail.com> Message-ID: Gerry, using the on-rev server, you can use LiveCode/Rev server to set up a cgi to call the MySQL database. I have been using this for a small application, and it works. To connect to the database It is as simple as this: put revOpenDatabase("mysql", tDatabaseAddress, tDatabaseName, tDatabaseUser, tDatabasePassword) Otherwise, you can set up a cgi using other languages (i.e. PERL , PHP ). All the best, Paolo From ambassador at fourthworld.com Wed Mar 9 09:00:40 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 09 Mar 2011 06:00:40 -0800 Subject: Position of Answer Dialog Message-ID: <4D778808.2080000@fourthworld.com> CreaTECHSol wrote: > How to use LiveCode on March 8, 2011 at > 11:18 AM -0800 wrote: >>For answer color (and answer printer for that matter) you seem to be out >>of luck, as these seem to directly trigger the OS API. >>For answer and ask the suspendStack message is your friend. >> >>on suspendStack >> if "Answer Dialog" is among the lines of the openstacks then >> -- reposition it here >> end if >>end suspendStack >> >>Not much help, but maybe useful. I've been using a frontScript for that, trapping preOpenStack so I can adjust the loc of the dialog before it's rendered. But here we find that this is a very different problem: > It is the Answer Color that I am most interested in. The color pickers Mark linked to can be good starting points, and you may also consider using a color picker stack with the popup command - small-sized stacks work great as graphical popup menus, and getting the mouseColor during the click to dismiss it should give you what you need with minimal code. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From ambassador at fourthworld.com Wed Mar 9 09:04:25 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 09 Mar 2011 06:04:25 -0800 Subject: MySQL in iOS apps? Message-ID: <4D7788E9.5050402@fourthworld.com> Gerry wrote: > Thanks :) Just another thing to learn. I'll Google .cgi and MySql > (I've never written a .cgi) - but do you have an example of one > that calls a SQL database in LiveCode? Jacque's got you covered well with her tutorial on using the Rev CGI engine: WARNING: With her tutorial it's really easy to get started enjoying CGIs in LiveCode, and once you get started you'll likely find it very addictive, staying up late to write CGIs for all sorts of fun things, some of which you don't really even need but you'll be having such a good time you won't be able to stop yourself. :) -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From bonnmike at gmail.com Wed Mar 9 09:17:15 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 9 Mar 2011 07:17:15 -0700 Subject: Comparing filenames based on case sensitive filepaths In-Reply-To: <4D771A12.7050203@hyperactivesw.com> References: <4D771A12.7050203@hyperactivesw.com> Message-ID: If I understand what you mean, this might work set the defualtfolder to justAbovethedirectoryToBeChecked get shell(ls myTest |grep `ls -d myTest` -) --myTest is the folder name and the filename if it is empty then answer information "They differ" else answer information "They match" end if I don't have a mac to test on, and so don't know if ls is case sensitive on mac. Even if it isn't, I THINK it will work since it should return the actual case of the file and folder names at which point, grep is case sensitive so should work fine. On Tue, Mar 8, 2011 at 11:11 PM, J. Landman Gay wrote: > On 3/8/11 10:44 PM, Terry Judd wrote: > >> >> It's because of a weird glitch on OSX 10.5. If you have an old-style (non >> bundle) Mac app that is named the same (case sensitive) as its parent >> folder >> then you cant launch it other than by double-clicking its icon (shell, >> Livecode and Applescript launch methods all fail). Change the case of one >> character in either the folder or the filename and you can launch it any >> old >> way. >> > > That's just bizarre. I'm surprised you could isolate it. Your sleuthing > techniques are pretty good. > > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bonnmike at gmail.com Wed Mar 9 09:18:30 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 9 Mar 2011 07:18:30 -0700 Subject: Comparing filenames based on case sensitive filepaths In-Reply-To: References: <4D771A12.7050203@hyperactivesw.com> Message-ID: forgot the quotes. get shell("ls myTest |grep `ls -d myTest` -") On Wed, Mar 9, 2011 at 7:17 AM, Mike Bonner wrote: > If I understand what you mean, this might work > > set the defualtfolder to justAbovethedirectoryToBeChecked > get shell(ls myTest |grep `ls -d myTest` -) --myTest is the folder name and > the filename > if it is empty then > answer information "They differ" > else > answer information "They match" > end if > > I don't have a mac to test on, and so don't know if ls is case sensitive > on mac. Even if it isn't, I THINK it will work since it should return the > actual case of the file and folder names at which point, grep is case > sensitive so should work fine. > > > On Tue, Mar 8, 2011 at 11:11 PM, J. Landman Gay wrote: > >> On 3/8/11 10:44 PM, Terry Judd wrote: >> >>> >>> It's because of a weird glitch on OSX 10.5. If you have an old-style (non >>> bundle) Mac app that is named the same (case sensitive) as its parent >>> folder >>> then you cant launch it other than by double-clicking its icon (shell, >>> Livecode and Applescript launch methods all fail). Change the case of one >>> character in either the folder or the filename and you can launch it any >>> old >>> way. >>> >> >> That's just bizarre. I'm surprised you could isolate it. Your sleuthing >> techniques are pretty good. >> >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From benr_mc at cogapp.com Wed Mar 9 09:28:54 2011 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Wed, 09 Mar 2011 14:28:54 +0000 Subject: Problems with 'Revolution' BBEdit language module Message-ID: <4D778EA6.5050308@cogapp.com> I'm a happy user of Blue Mango's language module for 'Revolution' (thanks, Trevor!). Recently however I've found that BBEdit crashes as soon as I try to edit a file with this language module active - viewing is fine, copy is fine, but any attempt to change the text, by typing or paste, causes a bad access crash. A colleague has reported what is probably the same thing. I assume that there's some conflict with BBEdit 9.6.3, which I probably updated to a month or so ago. Has anyone else encountered this? Does anyone know if there's a more recent language module available? (I'm using the 'Revolution' one of Dec 18 2008 (which replaced the 'Transcript' one of June 2 2004). I've taken a look on BareBones' site (and Blue Mango's) and there's nothing obvious to suggest that BB has made a conscious change in the API. TIA, Ben From bonnmike at gmail.com Wed Mar 9 09:50:27 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 9 Mar 2011 07:50:27 -0700 Subject: Comparing filenames based on case sensitive filepaths In-Reply-To: References: <4D771A12.7050203@hyperactivesw.com> Message-ID: Ah, one last thing. Need to know the correct name of the directory too else IT returns 2 lines for files not found (if ls IS case sensitive) but that should be easy enough to check for. Of course this will probably be a non-issue depending on how you get the directory name. Hmm of course if you have the path to the executable, then simply comparing item -1 to item -2 with caseSensitive on, will work. Ok. Ignore my ramblings, not sure if any of this at all is a help since you'd need to already have enough info to do what you want inside rev, before you could do it outside with a shell. On Wed, Mar 9, 2011 at 7:18 AM, Mike Bonner wrote: > forgot the quotes. > > get shell("ls myTest |grep `ls -d myTest` -") > > On Wed, Mar 9, 2011 at 7:17 AM, Mike Bonner wrote: > >> If I understand what you mean, this might work >> >> set the defualtfolder to justAbovethedirectoryToBeChecked >> get shell(ls myTest |grep `ls -d myTest` -) --myTest is the folder name >> and the filename >> if it is empty then >> answer information "They differ" >> else >> answer information "They match" >> end if >> >> I don't have a mac to test on, and so don't know if ls is case sensitive >> on mac. Even if it isn't, I THINK it will work since it should return the >> actual case of the file and folder names at which point, grep is case >> sensitive so should work fine. >> >> >> On Tue, Mar 8, 2011 at 11:11 PM, J. Landman Gay > > wrote: >> >>> On 3/8/11 10:44 PM, Terry Judd wrote: >>> >>>> >>>> It's because of a weird glitch on OSX 10.5. If you have an old-style >>>> (non >>>> bundle) Mac app that is named the same (case sensitive) as its parent >>>> folder >>>> then you cant launch it other than by double-clicking its icon (shell, >>>> Livecode and Applescript launch methods all fail). Change the case of >>>> one >>>> character in either the folder or the filename and you can launch it any >>>> old >>>> way. >>>> >>> >>> That's just bizarre. I'm surprised you could isolate it. Your sleuthing >>> techniques are pretty good. >>> >>> >>> -- >>> Jacqueline Landman Gay | jacque at hyperactivesw.com >>> HyperActive Software | http://www.hyperactivesw.com >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> > From bonnmike at gmail.com Wed Mar 9 09:59:43 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 9 Mar 2011 07:59:43 -0700 Subject: crash when moving between stacks (again) In-Reply-To: <003601cbde2c$2c359ef0$84a0dcd0$@de> References: <003601cbde2c$2c359ef0$84a0dcd0$@de> Message-ID: When you say it crashes, does it just poof on you, or is there an actual error? If it just poofs, i'm wondering of the closestack message is reaching your engine stack when you close one of the others. Since all you have in that is quit, things would just go away. On Wed, Mar 9, 2011 at 12:32 AM, Tiemo Hollmann TB wrote: > Hi Nicolas, > Perhaps you could try to add a "pass ..." at the end of all standard > handlers like open and close, so that the engine can catch them too. > Actually I don't know what is happening inside, but perhaps the engine > still > wants to clean up some stuff, what it can't do without the pass? > Tiemo > > > -----Urspr?ngliche Nachricht----- > > Von: use-livecode-bounces at lists.runrev.com [mailto:use-livecode- > > bounces at lists.runrev.com] Im Auftrag von Nicolas Cueto > > Gesendet: Mittwoch, 9. M?rz 2011 00:43 > > An: LiveCode - general list > > Betreff: crash when moving between stacks (again) > > > > Dear List, > > > > Posted this back in June. Got no reply. But am posting gain, in hopes. > > > > In short, one of my more convoluted Rev creations keeps crashing > > when some of its stacks close. > > > > It's a combination of stacks. Here are the pieces: > > > > - standalone-stack (holds the engine) > > - central-stack (for game-stack selection) > > - game-stacks (a myriad of these, some of them with substacks) > > > > Crashes happen when a game-stack is closed to return to the > central-stack. > > Moreso for some game-stacks than others. > > > > I double checked that every stack, substack, and card has a > > preopen/open/close handler, even if this is empty. > > > > I thought it may be a memory issue, cause the game-stack that almost > > always crashes has many URL-referenced image objects and runs on older > > Win machines. However, I tested on a newer machine with ample memory > > and cpu power, but still get crashes. > > > > Below is an outline of the scripted inter-relation between stacks. > Perhaps > > someone will spot something I've overlooked > > > > Thank you. > > > > -- > > > > > > Nicolas Cueto > > > > ------ S T A R T O F S C R I P T S ----- > > > > /* In the card script of STANDALONE-STACK, > > this handler sets stackFiles and then goes to > > stack CENTRAL-STACK. */ > > > > on setUpTheFoundation > > start using stack "STANDALONE " > > put "GAMESTACK1,gamestack1.rev" & cr & "GAMESTACK2,gamestack2.rev" > > & cr & ... \ > > & "animationEngine,animationEngine.rev" into > tStackFiles > > set the stackFiles of stack "niconiko" to tStackFiles > > ## Set the globals used by all stacks > > open stack "CENTRAL" > > hide stack "STANDALONE" > > end setUpTheFoundation > > > > /* In stack script of CENTRALSTACK. */ > > > > on closestack > > quit > > end closestack > > > > /* In a go-to-gamestack button script on > > CENTRALSTACK./ > > > > on mouseUp > > open stack GAMESTACK > > hide stack CENTRALSTACK > > end mouseUp > > > > /* In the stack script of BAD-GAMESTACK */ > > > > on closeStack > > ## Reset custom props of some grouped objects. > > ## Clear pending messages > > ## Clear the cachedURLs. > > set the lockScreen to true > > ## Set to empty the filename of 100 images. > > set the lockScreen to false > > go to card "main" of stack "gss" > > show stack "gss" > > delete stack "blitz" > > end closeStack > > > > /* In the card script of BAD-GAMESTACK, which script > > calls up the NAVIGATION-SUBSTACK that can take > > user back to CENTRALSTACK. */ > > > > on rawKeyUp theKey > > switch theKey > > case "56" > > modal stack NAVIGATION-SUBSTACK > > pass rawKeyUp > > exit rawKeyUp > > exit to top > > break > > end switch > > end rawKeyUp > > > > on closecard > > ## Clear the cachedURLs. > > ## Cancel pending messages. > > ## Reset custom props. > > ## For each of 100 image objects: > > ## reset filename to "", outerglow, > > ## and innerglow. > > ## Close the socket connection to > > ## the local server. > > end closecard > > > > /* In the card script of NAVIGATION-SUBSTACK. */ > > > > on rawKeyUp theKey > > put "49,50,51,52" into tGameControllerRightsideButtons > > if theKey is not among the items of tGameControllerRightsideButtons > then > > pass rawKeyUp > > exit rawKeyUp > > end if > > ## Find which navigational image is on. > > switch tCurentlyOnImage > > case "quit" > > send "closeStack" to stack BAD-GAMESTACK in 2 seconds > > close this stack -- i.e., NAVIGATION-SUBSTACK... should I > > name the stack explicitly here? > > exit to top > > break > > end switch > > end rawKeyUp > > > > ------ E N D O F S C R I P T S ----- > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription > > preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bonnmike at gmail.com Wed Mar 9 10:18:52 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 9 Mar 2011 08:18:52 -0700 Subject: crash when moving between stacks (again) In-Reply-To: References: <003601cbde2c$2c359ef0$84a0dcd0$@de> Message-ID: do you have a closestack handler on your navigation stack? If not, that might be when this occurs. you close this stack and it does, but theres no on closestack (unless you didn't list it, or I missed it) at which point the closestack message will hit your engine stack and shut everything down. On Wed, Mar 9, 2011 at 7:59 AM, Mike Bonner wrote: > When you say it crashes, does it just poof on you, or is there an actual > error? > > If it just poofs, i'm wondering of the closestack message is reaching your > engine stack when you close one of the others. Since all you have in that is > quit, things would just go away. > > > On Wed, Mar 9, 2011 at 12:32 AM, Tiemo Hollmann TB wrote: > >> Hi Nicolas, >> Perhaps you could try to add a "pass ..." at the end of all standard >> handlers like open and close, so that the engine can catch them too. >> Actually I don't know what is happening inside, but perhaps the engine >> still >> wants to clean up some stuff, what it can't do without the pass? >> Tiemo >> >> > -----Urspr?ngliche Nachricht----- >> > Von: use-livecode-bounces at lists.runrev.com [mailto:use-livecode- >> > bounces at lists.runrev.com] Im Auftrag von Nicolas Cueto >> > Gesendet: Mittwoch, 9. M?rz 2011 00:43 >> > An: LiveCode - general list >> > Betreff: crash when moving between stacks (again) >> > >> > Dear List, >> > >> > Posted this back in June. Got no reply. But am posting gain, in hopes. >> > >> > In short, one of my more convoluted Rev creations keeps crashing >> > when some of its stacks close. >> > >> > It's a combination of stacks. Here are the pieces: >> > >> > - standalone-stack (holds the engine) >> > - central-stack (for game-stack selection) >> > - game-stacks (a myriad of these, some of them with substacks) >> > >> > Crashes happen when a game-stack is closed to return to the >> central-stack. >> > Moreso for some game-stacks than others. >> > >> > I double checked that every stack, substack, and card has a >> > preopen/open/close handler, even if this is empty. >> > >> > I thought it may be a memory issue, cause the game-stack that almost >> > always crashes has many URL-referenced image objects and runs on older >> > Win machines. However, I tested on a newer machine with ample memory >> > and cpu power, but still get crashes. >> > >> > Below is an outline of the scripted inter-relation between stacks. >> Perhaps >> > someone will spot something I've overlooked >> > >> > Thank you. >> > >> > -- >> > >> > >> > Nicolas Cueto >> > >> > ------ S T A R T O F S C R I P T S ----- >> > >> > /* In the card script of STANDALONE-STACK, >> > this handler sets stackFiles and then goes to >> > stack CENTRAL-STACK. */ >> > >> > on setUpTheFoundation >> > start using stack "STANDALONE " >> > put "GAMESTACK1,gamestack1.rev" & cr & "GAMESTACK2,gamestack2.rev" >> > & cr & ... \ >> > & "animationEngine,animationEngine.rev" into >> tStackFiles >> > set the stackFiles of stack "niconiko" to tStackFiles >> > ## Set the globals used by all stacks >> > open stack "CENTRAL" >> > hide stack "STANDALONE" >> > end setUpTheFoundation >> > >> > /* In stack script of CENTRALSTACK. */ >> > >> > on closestack >> > quit >> > end closestack >> > >> > /* In a go-to-gamestack button script on >> > CENTRALSTACK./ >> > >> > on mouseUp >> > open stack GAMESTACK >> > hide stack CENTRALSTACK >> > end mouseUp >> > >> > /* In the stack script of BAD-GAMESTACK */ >> > >> > on closeStack >> > ## Reset custom props of some grouped objects. >> > ## Clear pending messages >> > ## Clear the cachedURLs. >> > set the lockScreen to true >> > ## Set to empty the filename of 100 images. >> > set the lockScreen to false >> > go to card "main" of stack "gss" >> > show stack "gss" >> > delete stack "blitz" >> > end closeStack >> > >> > /* In the card script of BAD-GAMESTACK, which script >> > calls up the NAVIGATION-SUBSTACK that can take >> > user back to CENTRALSTACK. */ >> > >> > on rawKeyUp theKey >> > switch theKey >> > case "56" >> > modal stack NAVIGATION-SUBSTACK >> > pass rawKeyUp >> > exit rawKeyUp >> > exit to top >> > break >> > end switch >> > end rawKeyUp >> > >> > on closecard >> > ## Clear the cachedURLs. >> > ## Cancel pending messages. >> > ## Reset custom props. >> > ## For each of 100 image objects: >> > ## reset filename to "", outerglow, >> > ## and innerglow. >> > ## Close the socket connection to >> > ## the local server. >> > end closecard >> > >> > /* In the card script of NAVIGATION-SUBSTACK. */ >> > >> > on rawKeyUp theKey >> > put "49,50,51,52" into tGameControllerRightsideButtons >> > if theKey is not among the items of tGameControllerRightsideButtons >> then >> > pass rawKeyUp >> > exit rawKeyUp >> > end if >> > ## Find which navigational image is on. >> > switch tCurentlyOnImage >> > case "quit" >> > send "closeStack" to stack BAD-GAMESTACK in 2 seconds >> > close this stack -- i.e., NAVIGATION-SUBSTACK... should I >> > name the stack explicitly here? >> > exit to top >> > break >> > end switch >> > end rawKeyUp >> > >> > ------ E N D O F S C R I P T S ----- >> > >> > _______________________________________________ >> > use-livecode mailing list >> > use-livecode at lists.runrev.com >> > Please visit this url to subscribe, unsubscribe and manage your >> subscription >> > preferences: >> > http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From bobs at twft.com Wed Mar 9 11:38:02 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 9 Mar 2011 08:38:02 -0800 Subject: Comparing filenames based on case sensitive filepaths In-Reply-To: <4D76FD02.1060709@hyperactivesw.com> References: <4D76FD02.1060709@hyperactivesw.com> Message-ID: <182964A8-C539-4425-8A3D-C3741176915E@twft.com> It is possible to format a mac hfs+ volume as case sensitive. Also, Apple Xsan volumes are case sensitive and I don't think you can format them any other way. Shared volumes may or may not be case sensitive. I am having a problem with backups because the Mac doing the backup thinks This Spreadsheet.xlsx and this spreadsheet.xlsx are the same file, but the Xsan file system I am backing up to disagrees. Bob On Mar 8, 2011, at 8:07 PM, J. Landman Gay wrote: > The Mac isn't case-sensitive, and it won't let you duplicate names regardless of their case. I'm curious why you'd need to distinguish by that. > > I can't think of any other way to compare case than what you've come up with though. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com From tkuypers at telenet.be Wed Mar 9 11:48:30 2011 From: tkuypers at telenet.be (tkuypers at telenet.be) Date: Wed, 9 Mar 2011 17:48:30 +0100 Subject: CGI, Web/Server Deployment Pack Message-ID: <6ABB2895-73D1-4A0B-BA3B-B05AD83CE3AC@telenet.be> Hi, For a couple of months now, I'm stuck with a small problem and maybe some of you could explain a few things... I would love to create webbased products, but the need for the web-plugin scares me a little. Also, I want to be able to use centralized data (mySQL-based) in my local clients, but the ports to access the mySQL database is closed in the firewall of most companies. So I started to take a closer look into what I know: LiveCode and more specific, deploying for web, the web-server and CGI features of LiveCode The current LiveCode engine cannot be use as a CGI engine anymore, need to use version 3.5 or lower for this. So this is no option. The (upcoming) Server Deployment Pack is still in beta but it's specs show everything I need... So my question(s): - Is there already a price set for the Server Deployment Pack? - Do I need to start writing php-code or php-like code, to work with this "revServer"? - What is the difference in deploying for web or using the Server Deployment Pack? And maybe the most "burning" question right now: I need to access my mySQL database, which is accessible through the default mySQL port. Because of security-issues, this is not allowed at most companies, so I need to create some kind of web-service, that accepts SQL queries and returns the result. Do I need to get a PHP programmer, to do this for me, do I need to use the 3.5 engine and write some CGI scripts for this, or do I need to get the beta version of the Server Deployment Pack? I've found a tutorial about the CGI by Jacqueline Landman Gay, it seems Rodney Tamblyn and Monte Goulding have written a powerful library called LibCGI, but I can't find it anywhere. Then lately there is a lot of talk about RevIgnitor, but I believe this is a third-party product, only useful when using the Server Deployment Pack? hmmm... way to many questions... Someone, please enlighten me ;-) Met vriendelijke groeten, Warm regards, Ton Kuypers +32 (0)477 739 530 www.intelli-pubs.com From eps11 at mac.com Wed Mar 9 12:00:32 2011 From: eps11 at mac.com (eps11 at mac.com) Date: Wed, 09 Mar 2011 18:00:32 +0100 Subject: Speeding the transition between cards 2: tests on the iPhone device Message-ID: Hi all, This is a follow-up on my first post. I have tried to put my App on the iPhone device to test it and it was even slower than in the simulator. So, as a test, I did the following: I have created a new stack with two cards. On the first card, I put a 320x480 image and two "Go card 2" buttons. On the second one, I put a different 320x480 image and two "Go card 1" buttons (These images are actually 480x320 images I imported using the "Import as Control" command, then resized to 320x480). Then, I built the app and put it on my iPhone 4. The page turns are very very slow. Even the loading of the app is slow. And I still can't understand why. Can you help? Thanks, Eric From zryip.theslug at gmail.com Wed Mar 9 12:01:12 2011 From: zryip.theslug at gmail.com (zryip theSlug) Date: Wed, 9 Mar 2011 18:01:12 +0100 Subject: datagrid: force to send "on closeeditor" to one column In-Reply-To: <1299633730121-3342588.post@n4.nabble.com> References: <1299615877631-3342154.post@n4.nabble.com> <4B7870E6-5153-4C6B-9E28-AB4B82A541D6@twft.com> <1299618562477-3342231.post@n4.nabble.com> <1299624717290-3342398.post@n4.nabble.com> <1299633730121-3342588.post@n4.nabble.com> Message-ID: On Wed, Mar 9, 2011 at 2:22 AM, JosepM wrote: > So, from inside the dragdrop call checkAllValue pColumn, pValue? Hi Josep, It is a possibility, yes. You need to do this in a loop checking each value of the row. Another solution could consist to check the row "by anticipation" in the first datagrid, when the drag starts, in the purpose to allow or not the dragAction in the destination datagrid. Best regards, -- -Zryip TheSlug- wish you the best! 8) http://www.aslugontheroad.co.cc From stephenREVOLUTION2 at barncard.com Wed Mar 9 13:34:52 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Wed, 9 Mar 2011 10:34:52 -0800 Subject: CGI, Web/Server Deployment Pack In-Reply-To: <6ABB2895-73D1-4A0B-BA3B-B05AD83CE3AC@telenet.be> References: <6ABB2895-73D1-4A0B-BA3B-B05AD83CE3AC@telenet.be> Message-ID: Tom. many of u on this list think like I do: that the Rev server works well even in its current Beta state. One way to test RevServer is to get an account at On-Rev for a couple of months and try it out in situ. There are several examples of complete CMS sites constructed in RevServer, and also several frameworks, including Ralf Bitter's excellent RevIgniter. All this stuff is basically open. With RevServer you won't need much php if any. sqb On 9 March 2011 08:48, tkuypers at telenet.be wrote: > Hi, > > For a couple of months now, I'm stuck with a small problem and maybe some > of you could explain a few things... > > I would love to create webbased products, but the need for the web-plugin > scares me a little. > Also, I want to be able to use centralized data (mySQL-based) in my local > clients, but the ports to access the mySQL database is closed in the > firewall of most companies. > > So I started to take a closer look into what I know: LiveCode and more > specific, deploying for web, the web-server and CGI features of LiveCode > > The current LiveCode engine cannot be use as a CGI engine anymore, need to > use version 3.5 or lower for this. So this is no option. > The (upcoming) Server Deployment Pack is still in beta but it's specs show > everything I need... > > So my question(s): > - Is there already a price set for the Server Deployment Pack? > - Do I need to start writing php-code or php-like code, to work with this > "revServer"? > - What is the difference in deploying for web or using the Server > Deployment Pack? > > And maybe the most "burning" question right now: > I need to access my mySQL database, which is accessible through the default > mySQL port. Because of security-issues, this is not allowed at most > companies, so I need to create some kind of web-service, that accepts SQL > queries and returns the result. > Do I need to get a PHP programmer, to do this for me, do I need to use the > 3.5 engine and write some CGI scripts for this, or do I need to get the beta > version of the Server Deployment Pack? > > I've found a tutorial about the CGI by Jacqueline Landman Gay, it seems > Rodney Tamblyn and Monte Goulding have written a powerful library called > LibCGI, but I can't find it anywhere. Then lately there is a lot of talk > about RevIgnitor, but I believe this is a third-party product, only useful > when using the Server Deployment Pack? > > hmmm... way to many questions... Someone, please enlighten me ;-) > > > Met vriendelijke groeten, > Warm regards, > > Ton Kuypers > +32 (0)477 739 530 > www.intelli-pubs.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Stephen Barncard San Francisco Ca. USA more about sqb From tsj at unimelb.edu.au Wed Mar 9 13:52:10 2011 From: tsj at unimelb.edu.au (Terry Judd) Date: Thu, 10 Mar 2011 05:52:10 +1100 Subject: Comparing filenames based on case sensitive filepaths In-Reply-To: Message-ID: Thanks Mike - I'll give that a try. Terry... On 10/03/11 1:18 AM, "Mike Bonner" wrote: > forgot the quotes. > > get shell("ls myTest |grep `ls -d myTest` -") > > On Wed, Mar 9, 2011 at 7:17 AM, Mike Bonner wrote: > >> If I understand what you mean, this might work >> >> set the defualtfolder to justAbovethedirectoryToBeChecked >> get shell(ls myTest |grep `ls -d myTest` -) --myTest is the folder name and >> the filename >> if it is empty then >> answer information "They differ" >> else >> answer information "They match" >> end if >> >> I don't have a mac to test on, and so don't know if ls is case sensitive >> on mac. Even if it isn't, I THINK it will work since it should return the >> actual case of the file and folder names at which point, grep is case >> sensitive so should work fine. >> >> >> On Tue, Mar 8, 2011 at 11:11 PM, J. Landman Gay >> wrote: >> >>> On 3/8/11 10:44 PM, Terry Judd wrote: >>> >>>> >>>> It's because of a weird glitch on OSX 10.5. If you have an old-style (non >>>> bundle) Mac app that is named the same (case sensitive) as its parent >>>> folder >>>> then you cant launch it other than by double-clicking its icon (shell, >>>> Livecode and Applescript launch methods all fail). Change the case of one >>>> character in either the folder or the filename and you can launch it any >>>> old >>>> way. >>>> >>> >>> That's just bizarre. I'm surprised you could isolate it. Your sleuthing >>> techniques are pretty good. >>> >>> >>> -- >>> Jacqueline Landman Gay | jacque at hyperactivesw.com >>> HyperActive Software | http://www.hyperactivesw.com >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Dr Terry Judd | Senior Lecturer in Medical Education Medical Education Unit Melbourne Medical School The University of Melbourne From jacque at hyperactivesw.com Wed Mar 9 14:15:30 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 09 Mar 2011 13:15:30 -0600 Subject: Speeding the transition between cards 2: tests on the iPhone device In-Reply-To: References: Message-ID: <4D77D1D2.2070008@hyperactivesw.com> On 3/9/11 11:00 AM, eps11 at mac.com wrote: > Hi all, > > This is a follow-up on my first post. I have tried to put my App on > the iPhone device to test it and it was even slower than in the > simulator. So, as a test, I did the following: I have created a new > stack with two cards. On the first card, I put a 320x480 image and > two "Go card 2" buttons. On the second one, I put a different 320x480 > image and two "Go card 1" buttons (These images are actually 480x320 > images I imported using the "Import as Control" command, then resized > to 320x480). Then, I built the app and put it on my iPhone 4. The > page turns are very very slow. Even the loading of the app is slow. > And I still can't understand why. Can you help? It shouldn't be that slow (how slow is "slow", on average?) But what you did is a good test. From what I've heard, imported images are inefficient on iOS and you should use referenced images instead whenever possible. The platform is optimized to load all resources from disk. To do that, place your images in a folder and include that folder in the Files and Folders pane of the standalone builder. They will be placed in the bundle in your app after it's built. In your test stack, delete the imported images and instead create new image objects with no content, and set their filenames to the files on disk. Use a relative path; i.e., if your images are in a folder called "images" then the filename of an image object would be "images/photo.jpg". Build the app and see if that speeds it up. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From niggemann at uni-wh.de Wed Mar 9 15:59:05 2011 From: niggemann at uni-wh.de (BNig) Date: Wed, 9 Mar 2011 12:59:05 -0800 (PST) Subject: Speeding the transition between cards 2: tests on the iPhone device In-Reply-To: References: Message-ID: <1299704345908-3344534.post@n4.nabble.com> Hi Eric, I did a quick test: a stack with 2 cards and on each card there is one image of 320x460. And on each card is a button with the script: go next I loaded that to my iPhone G3 running iOS 4.2.1 which is sloow on the iPhone G3. The app started in under 2 seconds. The response to the click on the button was noticeable but less than 1/2 a second (as to my chrono-guess-meter). Nothing unusual for my iPhone in terms of reactivity. I suspect there is something else going on. Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Speeding-the-transition-between-cards-2-tests-on-the-iPhone-device-tp3344026p3344534.html Sent from the Revolution - User mailing list archive at Nabble.com. From rjb at robelko.com Wed Mar 9 17:02:29 2011 From: rjb at robelko.com (Robert Brenstein) Date: Wed, 9 Mar 2011 23:02:29 +0100 Subject: CGI, Web/Server Deployment Pack In-Reply-To: <6ABB2895-73D1-4A0B-BA3B-B05AD83CE3AC@telenet.be> References: <6ABB2895-73D1-4A0B-BA3B-B05AD83CE3AC@telenet.be> Message-ID: On 09.03.2011 at 17:48 Uhr +0100 tkuypers at telenet.be apparently wrote: > >The current LiveCode engine cannot be use as a CGI engine anymore, >need to use version 3.5 or lower for this. So this is no option. Well, actually, LC 3.5 does not really differ from LC 4.5 in terms of CGI-related functionality. Pretty much all changes are with GUI and other things that are not relevant for CGI. Think of a CGI as a faceless LC program that runs behind webserver. Having said that, the RevServer makes many things simpler even in current state. Robert From niconiko at gmail.com Wed Mar 9 21:40:33 2011 From: niconiko at gmail.com (Nicolas Cueto) Date: Thu, 10 Mar 2011 11:40:33 +0900 Subject: crash when moving between stacks (again) In-Reply-To: References: <003601cbde2c$2c359ef0$84a0dcd0$@de> Message-ID: > When you say it crashes, does it just poof on you, or is there an actual > error? Actual error message, from the Windows system. -- Nicolas Cueto From liste.revo at medard.on-rev.com Thu Mar 10 03:19:53 2011 From: liste.revo at medard.on-rev.com (Medard) Date: Thu, 10 Mar 2011 09:19:53 +0100 Subject: On-Rev antispam (& reCAPTCHA) In-Reply-To: Message-ID: <1jxwpov.flmxx91iwhyinM%liste.revo@medard.on-rev.com> stephen barncard wrote: > you might do what Sarah did: create a simple handler to create, randomize > and ask a math problem to enter: I took eventually this solution :-) It was a little awkward to manage the mix of html and on-rev code, but I made it work -- not a very polished code, but it works, and (I hope) I am getting rid of that spam :-)) Anyway, Thanks to Sarah "Troz"! -- lectures.medard.on-rev.com From liste.revo at medard.on-rev.com Thu Mar 10 10:41:28 2011 From: liste.revo at medard.on-rev.com (Medard) Date: Thu, 10 Mar 2011 16:41:28 +0100 Subject: On-Rev antispam (& reCAPTCHA) In-Reply-To: <1jxwpov.flmxx91iwhyinM%liste.revo@medard.on-rev.com> Message-ID: <1jxxa7n.1m62yvh15b8saaM%liste.revo@medard.on-rev.com> Medard wrote: > and (I hope) I am getting rid of that spam :-)) Ahem! i got new spams -- but I am not sure, according to the date and hour (if the spammers post in another time zone?) Nonetheless, I closed the comments in the archived articles ;-) -- From alex at tweedly.net Thu Mar 10 11:53:51 2011 From: alex at tweedly.net (Alex Tweedly) Date: Thu, 10 Mar 2011 16:53:51 +0000 Subject: On-Rev antispam (& reCAPTCHA) In-Reply-To: <1jxwpov.flmxx91iwhyinM%liste.revo@medard.on-rev.com> References: <1jxwpov.flmxx91iwhyinM%liste.revo@medard.on-rev.com> Message-ID: <4D79021F.9060601@tweedly.net> I took a similar approach, and didn't find the html + rev too akward ... here's what I have > > -- the next section is the HTML form > -- with rev snippets to fill in the default data or data already > supplied > put round(random(8)) into t1 > put round(random(8)) into t2 > put t1+t2 into tTotal > ?> > > Please enter the following data: > > > <-- all the html for the other fields --> >

> >
>

/>
> and elsewhere when I get input, I have simply > put $_POST["total"] into tTotal > put $_POST["thetotal"] into tTheTotal > > -- check that enough valid data has been received > -- the error message could be more detailed here > > if tTotal <> tTheTotal then > put "

Please get the sum right.
" > into tErrorMessage > else > -- data ok, so set the flag > put true into tDataEnteredOK > end if -- Alex. On 10/03/2011 08:19, Medard wrote: > stephen barncard wrote: > >> you might do what Sarah did: create a simple handler to create, randomize >> and ask a math problem to enter: > I took eventually this solution :-) > It was a little awkward to manage the mix of html and on-rev code, but I > made it work -- not a very polished code, but it works, and (I hope) I > am getting rid of that spam :-)) > > Anyway, Thanks to Sarah "Troz"! > > From richmondmathewson at gmail.com Thu Mar 10 12:06:38 2011 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 10 Mar 2011 19:06:38 +0200 Subject: Closing palettes Message-ID: <4D79051E.3040307@gmail.com> I have a palette that is a substack of a multi-card stack (i.e. nothing screamingly original) called "FLOATER". On the palette I have a close 'iocn' and when the end-user clicks on it it execute this script: on mouseUp close stack "FLOATER" end mouseUp which it does . . . . . which is all jolly well and fine, BUT . . . it also returns the main multi-card stack to card 1 every time; something I should like to prevent. ??? Pretty Please. Richmond. From keith.clarke at clarkeandclarke.co.uk Thu Mar 10 12:12:29 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Thu, 10 Mar 2011 17:12:29 +0000 Subject: Closing palettes In-Reply-To: <4D79051E.3040307@gmail.com> References: <4D79051E.3040307@gmail.com> Message-ID: <461DB843-D6B6-4D07-9381-3507497F8049@clarkeandclarke.co.uk> ...how about on mouseUp go to previous card close stack "FLOATER" end mouseUp BTW As one who enjoys the surf, I try to avoid floaters whenever possible ;-) On 10 Mar 2011, at 17:06, Richmond wrote: > I have a palette that is a substack of a multi-card stack (i.e. nothing > screamingly original) called "FLOATER". > > On the palette I have a close 'iocn' and when the end-user clicks on it > it execute this script: > > on mouseUp > close stack "FLOATER" > end mouseUp > > which it does . . . . . which is all jolly well and fine, BUT . . . it also returns the main > multi-card stack to card 1 every time; something I should like to prevent. > > ??? > > Pretty Please. > > Richmond. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Thu Mar 10 12:17:21 2011 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 10 Mar 2011 19:17:21 +0200 Subject: Closing palettes In-Reply-To: <461DB843-D6B6-4D07-9381-3507497F8049@clarkeandclarke.co.uk> References: <4D79051E.3040307@gmail.com> <461DB843-D6B6-4D07-9381-3507497F8049@clarkeandclarke.co.uk> Message-ID: <4D7907A1.4030007@gmail.com> On 03/10/2011 07:12 PM, Keith Clarke wrote: > ...how about > > on mouseUp > go to previous card > close stack "FLOATER" > end mouseUp > Not really, as the close 'icon' is on the palette itself. > BTW As one who enjoys the surf, I try to avoid floaters whenever possible ;-) My "FLOATER" is a fairly dark shade of turquoise . . . definitely worth avoiding . . . :) > On 10 Mar 2011, at 17:06, Richmond wrote: > >> I have a palette that is a substack of a multi-card stack (i.e. nothing >> screamingly original) called "FLOATER". >> >> On the palette I have a close 'iocn' and when the end-user clicks on it >> it execute this script: >> >> on mouseUp >> close stack "FLOATER" >> end mouseUp >> >> which it does . . . . . which is all jolly well and fine, BUT . . . it also returns the main >> multi-card stack to card 1 every time; something I should like to prevent. >> >> ??? >> >> Pretty Please. >> >> Richmond. >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From etcawley at fastmail.fm Thu Mar 10 12:18:14 2011 From: etcawley at fastmail.fm (edward cawley) Date: Thu, 10 Mar 2011 11:18:14 -0600 Subject: Standalone problem In-Reply-To: References: Message-ID: Thank you much Jacque, I'm almost there. I made the changes you suggested and I have one remaining problem. If I run it off the shared disk in VM Fusion it works fine, but if I move the app and associated files to the C drive on the students laptops, or on the C drive on the Windows OS on the VM Fusion, the last 60 files in the folder do not transfer. I have 300 small files on the folder, is there some limit on how many files can be in a folder in Windows? If not any ideas why they do not transfer? Is it a Window problem or a VM problem? Thanks again. Ed On Mar 9, 2011, at 8:17 AM, use-livecode-request at lists.runrev.com wrote: > > > Message: 11 > Date: Tue, 08 Mar 2011 21:53:14 -0600 > From: "J. Landman Gay" > To: How to use LiveCode > Subject: Re: Standalone problem > Message-ID: <4D76F9AA.50209 at hyperactivesw.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > On 3/8/11 9:11 PM, edward cawley wrote: >> I modified Francis code as follows: >> >> put the platform into GVHoldPlatform >> if GVHoldPlatform = "MacOS" then >> put "misippfiles/" into GVStackPath -- No leading drive on the Mac. >> end if >> if GVHoldPlatform = "Win32" then >> -- System 7 patch to ensure using the Systems Disk for "StackPath" on PC's >> put item 1 of specialfolderpath("system")& "/misippfiles/"into GVStackPath-- Get Stack Path with Disk ID. >> replace "WINDOWS/" with empty in GVStackPath -- Remove Windows Folder Name. >> end if > > You've got a mix of relative and absolute paths there. For MacOS, it's > relative. When your app starts up, assuming you haven't changed the > defaultfolder, the place it is going to look for files is in the same > folder with the standalone. Your path points to a folder called > "missippfiles" inside the standalone folder. > > For the Windows segment, the script gets an absolute path to the system > folder at the root of the drive, and looks for your "missippfiles" > folder next to that. I'm betting you aren't storing images there on Windows. > > You can use the same folder path for both Mac and Windows. Your image > files are always going to be relative to where your standalone is no > matter which drive holds it, so you don't care about the drive letter. > It isn't necessary to check for platform, just use this for all > operating systems: > > put "misippfiles/" into GVStackPath > > Put your "misippfiles" folder right next to your standalone, inside the > same enclosing folder. > > Be aware that if any of your scripts change the defaultfolder, the paths > won't work any more if you are calculating them on the fly. It would be > a good idea to store GVStackPath in a variable early after startup so > you can use it later, since it isn't going to change. If the scripts > never change the defaultfolder, then you probably don't even need to do > that. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > From jacque at hyperactivesw.com Thu Mar 10 12:22:27 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 10 Mar 2011 11:22:27 -0600 Subject: Closing palettes In-Reply-To: <4D79051E.3040307@gmail.com> References: <4D79051E.3040307@gmail.com> Message-ID: <4D7908D3.2000203@hyperactivesw.com> On 3/10/11 11:06 AM, Richmond wrote: > I have a palette that is a substack of a multi-card stack (i.e. nothing > screamingly original) called "FLOATER". > > On the palette I have a close 'iocn' and when the end-user clicks on it > it execute this script: > > on mouseUp > close stack "FLOATER" > end mouseUp > > which it does . . . . . which is all jolly well and fine, BUT . . . it > also returns the main > multi-card stack to card 1 every time; something I should like to prevent. It sounds like you have a handler somewhere in the mainstack that goes to card 1, either on opencard, preopencard, or resumestack. Try locking messages before executing the "close stack" command in your floater. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From keith.clarke at clarkeandclarke.co.uk Thu Mar 10 12:24:30 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Thu, 10 Mar 2011 17:24:30 +0000 Subject: Closing palettes In-Reply-To: <4D7907A1.4030007@gmail.com> References: <4D79051E.3040307@gmail.com> <461DB843-D6B6-4D07-9381-3507497F8049@clarkeandclarke.co.uk> <4D7907A1.4030007@gmail.com> Message-ID: <93A1FE29-0767-421D-B9AD-53E3CAE9158A@clarkeandclarke.co.uk> ...how about an absolute reference, such as go to card 'x' of stack 'y'? Turquoise floater - rat poison! :-) On 10 Mar 2011, at 17:17, Richmond wrote: > On 03/10/2011 07:12 PM, Keith Clarke wrote: >> ...how about >> >> on mouseUp >> go to previous card >> close stack "FLOATER" >> end mouseUp >> > > Not really, as the close 'icon' is on the palette itself. > >> BTW As one who enjoys the surf, I try to avoid floaters whenever possible ;-) > > My "FLOATER" is a fairly dark shade of turquoise . . . definitely worth avoiding . . . :) > >> On 10 Mar 2011, at 17:06, Richmond wrote: >> >>> I have a palette that is a substack of a multi-card stack (i.e. nothing >>> screamingly original) called "FLOATER". >>> >>> On the palette I have a close 'iocn' and when the end-user clicks on it >>> it execute this script: >>> >>> on mouseUp >>> close stack "FLOATER" >>> end mouseUp >>> >>> which it does . . . . . which is all jolly well and fine, BUT . . . it also returns the main >>> multi-card stack to card 1 every time; something I should like to prevent. >>> >>> ??? >>> >>> Pretty Please. >>> >>> Richmond. >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Thu Mar 10 12:35:26 2011 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 10 Mar 2011 19:35:26 +0200 Subject: Closing palettes In-Reply-To: <4D7908D3.2000203@hyperactivesw.com> References: <4D79051E.3040307@gmail.com> <4D7908D3.2000203@hyperactivesw.com> Message-ID: <4D790BDE.7070109@gmail.com> On 03/10/2011 07:22 PM, J. Landman Gay wrote: > On 3/10/11 11:06 AM, Richmond wrote: >> I have a palette that is a substack of a multi-card stack (i.e. nothing >> screamingly original) called "FLOATER". >> >> On the palette I have a close 'iocn' and when the end-user clicks on it >> it execute this script: >> >> on mouseUp >> close stack "FLOATER" >> end mouseUp >> >> which it does . . . . . which is all jolly well and fine, BUT . . . it >> also returns the main >> multi-card stack to card 1 every time; something I should like to >> prevent. > > It sounds like you have a handler somewhere in the mainstack that goes > to card 1, either on opencard, preopencard, or resumestack. > > Try locking messages before executing the "close stack" command in > your floater. > > Love you! on mouseUp set the lockMessages to true close stack "FLOATER" set the lockMessages to false end mouseUp works a charm! "How wise one micht be makin inquiries at the Bellingham show" Richmond. From bobs at twft.com Thu Mar 10 12:51:58 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 10 Mar 2011 09:51:58 -0800 Subject: Standalone problem In-Reply-To: References: Message-ID: <619E641B-BFA4-4112-9417-E2087D5AD028@twft.com> Sounds like a local system problem. Try refreshing the folder view. I have copied files before and the view for whatever reason did not refresh properly, even after I closed and reopened it. The only other thing that could affect it is special permissions on the files themselves. If you know how, check the effective permissions on one of the files that don't copy. Bob On Mar 10, 2011, at 9:18 AM, edward cawley wrote: > Thank you much Jacque, I'm almost there. > I made the changes you suggested and I have one remaining problem. > > If I run it off the shared disk in VM Fusion it works fine, but if I move the app and associated files to the C drive on the students laptops, or on the C drive on the Windows OS on the VM Fusion, the last 60 files in the folder do not transfer. I have 300 small files on the folder, is there some limit on how many files can be in a folder in Windows? If not any ideas why they do not transfer? Is it a Window problem or a VM problem? > > Thanks again. > Ed From bobs at twft.com Thu Mar 10 12:54:09 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 10 Mar 2011 09:54:09 -0800 Subject: Closing palettes In-Reply-To: <461DB843-D6B6-4D07-9381-3507497F8049@clarkeandclarke.co.uk> References: <4D79051E.3040307@gmail.com> <461DB843-D6B6-4D07-9381-3507497F8049@clarkeandclarke.co.uk> Message-ID: At least you can see the floaters a comin'. What I worry about are submarines. Bob On Mar 10, 2011, at 9:12 AM, Keith Clarke wrote: > ...how about > > on mouseUp > go to previous card > close stack "FLOATER" > end mouseUp > > BTW As one who enjoys the surf, I try to avoid floaters whenever possible ;-) From richmondmathewson at gmail.com Thu Mar 10 13:50:58 2011 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 10 Mar 2011 20:50:58 +0200 Subject: Closing palettes In-Reply-To: <4D7908D3.2000203@hyperactivesw.com> References: <4D79051E.3040307@gmail.com> <4D7908D3.2000203@hyperactivesw.com> Message-ID: <4D791D92.3010705@gmail.com> Here's a "Thank you" for everyone's help: http://andregarzia.on-rev.com/richmond/STUFF/CLOSURE.zip this contains 3 png images (at various sizes) I made for my Maximise, Minimise and Close operations. They are offered here completely FREE (Use them, Abuse them, Steal them, Changes them, and so on). I made them using a combination of Livecode and GIMP. Richmond Mathewson. From admin at FlexibleLearning.com Thu Mar 10 13:51:41 2011 From: admin at FlexibleLearning.com (FlexibleLearning) Date: Thu, 10 Mar 2011 18:51:41 -0000 Subject: Efficiency question for list modification In-Reply-To: Message-ID: Problem: I have a long list of several thousand lines. Each line contains two comma-separated numbers. I want to divide the first item of each line by one divisor, and divide the second item of each line by a different divisor. The list order must stay the same. Example: Using 2 and 5 as divisors... 10,10 12,15 8,12 would become 5,2 6,3 4,2.4 Options: Using "repeat with n=1 to num of lines" takes far too long. Using "repeat for each line L" either attempts to modify read-only data, or is only 25% faster using a dumping variable. Using split/combine will mess up the ordering (numeric array keys are not sorted numerically with combine). Any other ideas? Hugh Senior FLCo From stephenREVOLUTION2 at barncard.com Thu Mar 10 14:18:35 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Thu, 10 Mar 2011 11:18:35 -0800 Subject: Efficiency question for list modification In-Reply-To: References: Message-ID: perhaps find a way to speed up the other code inside that is parsing and doing the math. can't you add an index (id) column to the data? even temporarily? therefore create the arrays in a way where you can restore the original order. On 10 March 2011 10:51, FlexibleLearning wrote: > Problem: > I have a long list of several thousand lines. > Each line contains two comma-separated numbers. > I want to divide the first item of each line by one divisor, and divide the > second item of each line by a different divisor. > The list order must stay the same. > > Example: > Using 2 and 5 as divisors... > 10,10 > 12,15 > 8,12 > would become > 5,2 > 6,3 > 4,2.4 > > Options: > Using "repeat with n=1 to num of lines" takes far too long. > Using "repeat for each line L" either attempts to modify read-only data, or > is only 25% faster using a dumping variable. > Using split/combine will mess up the ordering (numeric array keys are not > sorted numerically with combine). > > Any other ideas? > > Hugh Senior > FLCo > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Stephen Barncard San Francisco Ca. USA more about sqb From dunbarx at aol.com Thu Mar 10 14:18:17 2011 From: dunbarx at aol.com (dunbarx at aol.com) Date: Thu, 10 Mar 2011 14:18:17 -0500 Subject: Efficiency question for list modification In-Reply-To: Message-ID: <8CDAD6F0B800B22-1EF0-55AB1@webmail-d093.sysops.aol.com> I ran this with a field "rawData" containing 5000 lines: on mouseUp put the ticks into aa put fld "rawdata" into temp put 3 into div1 put 5 into div2 repeat with y = 1 to the number of lines of temp put item 1 of line y of temp / div1 & "," & item 2 of line y of temp / div2 into line y of temp end repeat put temp into fld "tresult" put the ticks - aa end mouseUp Took about 2.5 seconds. If that is too slow, what if you added a third item for each of the lines in your data field, such that the lines were numbered: If you had: 3,6 4,7 5,8 Make it into: 1,3,6 2,4,7 3,5,8 Now you can use an array, and the ordering can be recovered since the lines contain unique identifiers. Craig Newman -----Original Message----- From: FlexibleLearning To: use-livecode at lists.runrev.com Sent: Thu, Mar 10, 2011 1:51 pm Subject: Efficiency question for list modification Problem: I have a long list of several thousand lines. Each line contains two comma-separated numbers. I want to divide the first item of each line by one divisor, and divide the second item of each line by a different divisor. The list order must stay the same. Example: Using 2 and 5 as divisors... 10,10 12,15 8,12 would become 5,2 6,3 4,2.4 Options: Using "repeat with n=1 to num of lines" takes far too long. Using "repeat for each line L" either attempts to modify read-only data, or is only 25% faster using a dumping variable. Using split/combine will mess up the ordering (numeric array keys are not sorted numerically with combine). Any other ideas? Hugh Senior FLCo _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From form at nonsanity.com Thu Mar 10 14:42:25 2011 From: form at nonsanity.com (Nonsanity) Date: Thu, 10 Mar 2011 14:42:25 -0500 Subject: Efficiency question for list modification In-Reply-To: References: Message-ID: I made a quick test stack to try out a few ides: http://dl.dropbox.com/u/144280/Divide%20List%20Tests.livecode It generates 100,000 random integer pairs into one field, then has four buttons to do the sample division you gave to the two items in each line. The first is a straight-up "repeat with a = 1 to the number of lines" making sure to copy the data from the field into a variable, and write the new data into a variable before saving it to the output field. (Because working directly with fields is slower than pure variables.) The second cuts the input list into ten 10,000 line chunks, and runs through each of those in turn, tacking it all onto one output variable as it goes. The third does the same thing, but cuts the input into a hundred 1,000 line chunks. And the fourth brings it down to a mere 100 lines per chunk. (But a thousand chunks.) Times were as follows on my not-so-hot machine: Generate Randoms: 2 seconds Divide all 100,000: 77 seconds Divide in groups of 10,000: 10 seconds Divide in groups of 1,000: 7 seconds Divide in groups of 100: 7 seconds Those totals are for doing ALL 100,000 regardless of how they are broken down. I get the same output for all of them. So you can see that the slowdown is probably in accessing "line 84,932" etc of the input string. Whereas limiting the line numbers to less than 10,000 makes a HUGE difference in speed. And even a bit better with a line limit of 1,000. Any further savings of using tiny 100-line chunks is lost by having to cut out 1,000 different chunks. But this should show where the slowdown is, and offer a way to work around it. When the cookie is too big, break off what you can chew. ~ Chris Innanen ~ Nonsanity On Thu, Mar 10, 2011 at 1:51 PM, FlexibleLearning < admin at flexiblelearning.com> wrote: > Problem: > I have a long list of several thousand lines. > Each line contains two comma-separated numbers. > I want to divide the first item of each line by one divisor, and divide the > second item of each line by a different divisor. > The list order must stay the same. > > Example: > Using 2 and 5 as divisors... > 10,10 > 12,15 > 8,12 > would become > 5,2 > 6,3 > 4,2.4 > > Options: > Using "repeat with n=1 to num of lines" takes far too long. > Using "repeat for each line L" either attempts to modify read-only data, or > is only 25% faster using a dumping variable. > Using split/combine will mess up the ordering (numeric array keys are not > sorted numerically with combine). > > Any other ideas? > > Hugh Senior > FLCo > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From Stgoldberg at aol.com Thu Mar 10 14:42:59 2011 From: Stgoldberg at aol.com (Stgoldberg at aol.com) Date: Thu, 10 Mar 2011 14:42:59 EST Subject: Memory issue for iPad Livecode apps? Message-ID: <5a864.43703be5.3aaa83c3@aol.com> In preparing an app for iPad using Livecode, is there any issue regarding Livecode taking up significantly more disc space than a similar app prepared with a different programming language? If so, would this significantly restrict how much one could put into the app in the way of sound, images, or other aspects of an app? Thanks. Steve Goldberg stgoldberg at aol.com www.medmaster.net From dunbarx at aol.com Thu Mar 10 14:49:57 2011 From: dunbarx at aol.com (dunbarx at aol.com) Date: Thu, 10 Mar 2011 14:49:57 -0500 Subject: Efficiency question for list modification In-Reply-To: <8CDAD6F0B800B22-1EF0-55AB1@webmail-d093.sysops.aol.com> Message-ID: <8CDAD7377B306E5-1EF0-56403@webmail-d093.sysops.aol.com> Forgot to include the other method, which you also knew about: on mouseUp put the ticks into aa put fld "rawdata" into temp put 3 into div1 put 5 into div2 repeat for each line tLine in temp put item 1 of tLine / div1 & "," & item 2 of tLine/ div2 & retuen after accum end repeat put accum into fld "tresult" put the ticks - aa end mouseUp This took 4 ticks with 5000 lines, and 25 ticks with 50,000. What do you have in that field? Craig Newman -----Original Message----- From: dunbarx at aol.com To: use-livecode at lists.runrev.com Sent: Thu, Mar 10, 2011 2:18 pm Subject: Re: Efficiency question for list modification I ran this with a field "rawData" containing 5000 lines: on mouseUp put the ticks into aa put fld "rawdata" into temp put 3 into div1 put 5 into div2 repeat with y = 1 to the number of lines of temp put item 1 of line y of temp / div1 & "," & item 2 of line y of temp / div2 into line y of temp end repeat put temp into fld "tresult" put the ticks - aa end mouseUp Took about 2.5 seconds. If that is too slow, what if you added a third item for each of the lines in your data field, such that the lines were numbered: If you had: 3,6 4,7 5,8 Make it into: 1,3,6 2,4,7 3,5,8 Now you can use an array, and the ordering can be recovered since the lines contain unique identifiers. Craig Newman -----Original Message----- From: FlexibleLearning To: use-livecode at lists.runrev.com Sent: Thu, Mar 10, 2011 1:51 pm Subject: Efficiency question for list modification Problem: I have a long list of several thousand lines. Each line contains two comma-separated numbers. I want to divide the first item of each line by one divisor, and divide the second item of each line by a different divisor. The list order must stay the same. Example: Using 2 and 5 as divisors... 10,10 12,15 8,12 would become 5,2 6,3 4,2.4 Options: Using "repeat with n=1 to num of lines" takes far too long. Using "repeat for each line L" either attempts to modify read-only data, or is only 25% faster using a dumping variable. Using split/combine will mess up the ordering (numeric array keys are not sorted numerically with combine). Any other ideas? Hugh Senior FLCo _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From scott at tactilemedia.com Thu Mar 10 15:02:38 2011 From: scott at tactilemedia.com (Scott Rossi) Date: Thu, 10 Mar 2011 12:02:38 -0800 Subject: Memory issue for iPad Livecode apps? In-Reply-To: <5a864.43703be5.3aaa83c3@aol.com> Message-ID: Recently, Stgoldberg at aol.com wrote: > In preparing an app for iPad using Livecode, is there any issue regarding > Livecode taking up significantly more disc space than a similar app > prepared with a different programming language? If so, would this > significantly > restrict how much one could put into the app in the way of sound, images, or > other aspects of an app? Thanks. The only restriction I've heard about is a 20MB limit for apps that can be downloaded via cell service. Apparently this is imposed by Apple, not the carrier. I can't find an "official" Apple mention of this, but here is a post from 2010 that explains: Regards, Scott Rossi Creative Director Tactile Media, UX Design From alex at tweedly.net Thu Mar 10 15:07:32 2011 From: alex at tweedly.net (Alex Tweedly) Date: Thu, 10 Mar 2011 20:07:32 +0000 Subject: Efficiency question for list modification In-Reply-To: References: Message-ID: <4D792F84.6000104@tweedly.net> use repeat for each line L ... and collect the modified lines in a separate variable, replace the original variable after the loop repeat fer each line L in tData put ... & CR after temp end repeat put temp into tData should be very quick. -- Alex. btw - not needed in this case, but you could use split/combine in it's "single separator" form split tData by CR repeat with i = 1 to the number of lines in the keys of tData put .... into tData[i] end repeat combine tData by CR On 10/03/2011 18:51, FlexibleLearning wrote: > Problem: > I have a long list of several thousand lines. > Each line contains two comma-separated numbers. > I want to divide the first item of each line by one divisor, and divide the > second item of each line by a different divisor. > The list order must stay the same. > > Example: > Using 2 and 5 as divisors... > 10,10 > 12,15 > 8,12 > would become > 5,2 > 6,3 > 4,2.4 > > Options: > Using "repeat with n=1 to num of lines" takes far too long. > Using "repeat for each line L" either attempts to modify read-only data, or > is only 25% faster using a dumping variable. > Using split/combine will mess up the ordering (numeric array keys are not > sorted numerically with combine). > > Any other ideas? > > Hugh Senior > FLCo > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bobs at twft.com Thu Mar 10 15:45:35 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 10 Mar 2011 12:45:35 -0800 Subject: Memory issue for iPad Livecode apps? In-Reply-To: <5a864.43703be5.3aaa83c3@aol.com> References: <5a864.43703be5.3aaa83c3@aol.com> Message-ID: <3BB985A2-38DD-4F41-9B58-47F7606215E8@twft.com> Someone mentioned earlier that images should not be embedded in the app itself. I think it was jacque. The idea is to create placeholder graphic objects, include the images in your associated files, then have your code set the image of the placeholders to whatever images you have. Did I get that right? Bob On Mar 10, 2011, at 11:42 AM, Stgoldberg at aol.com wrote: > In preparing an app for iPad using Livecode, is there any issue regarding > Livecode taking up significantly more disc space than a similar app > prepared with a different programming language? If so, would this significantly > restrict how much one could put into the app in the way of sound, images, or > other aspects of an app? Thanks. > Steve Goldberg > stgoldberg at aol.com > www.medmaster.net > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobs at twft.com Thu Mar 10 15:49:27 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 10 Mar 2011 12:49:27 -0800 Subject: Efficiency question for list modification In-Reply-To: References: Message-ID: You should also try using the form: repeat for each line theLineValue in theData Apparently this creates an internal array of theData and is much faster. The big caveat is that you do not alter what theData contains while in the repeat loop, as this will really screw things up. That is because this form accesses the memory of theData directly, and if you alter it, the system may do some house cleaning, and what once was there may be garbage or another bit of memory. It really gets ugly. Bob On Mar 10, 2011, at 11:42 AM, Nonsanity wrote: > I made a quick test stack to try out a few ides: > > http://dl.dropbox.com/u/144280/Divide%20List%20Tests.livecode > > It generates 100,000 random integer pairs into one field, then has four > buttons to do the sample division you gave to the two items in each line. > > The first is a straight-up "repeat with a = 1 to the number of lines" making > sure to copy the data from the field into a variable, and write the new data > into a variable before saving it to the output field. (Because working > directly with fields is slower than pure variables.) > > The second cuts the input list into ten 10,000 line chunks, and runs through > each of those in turn, tacking it all onto one output variable as it goes. > > The third does the same thing, but cuts the input into a hundred 1,000 line > chunks. > > And the fourth brings it down to a mere 100 lines per chunk. (But a thousand > chunks.) > > Times were as follows on my not-so-hot machine: > > Generate Randoms: 2 seconds > Divide all 100,000: 77 seconds > Divide in groups of 10,000: 10 seconds > Divide in groups of 1,000: 7 seconds > Divide in groups of 100: 7 seconds > > Those totals are for doing ALL 100,000 regardless of how they are broken > down. I get the same output for all of them. > > So you can see that the slowdown is probably in accessing "line 84,932" etc > of the input string. Whereas limiting the line numbers to less than 10,000 > makes a HUGE difference in speed. And even a bit better with a line limit of > 1,000. Any further savings of using tiny 100-line chunks is lost by having > to cut out 1,000 different chunks. > > But this should show where the slowdown is, and offer a way to work around > it. > > When the cookie is too big, break off what you can chew. > > > ~ Chris Innanen > ~ Nonsanity > > > On Thu, Mar 10, 2011 at 1:51 PM, FlexibleLearning < > admin at flexiblelearning.com> wrote: > >> Problem: >> I have a long list of several thousand lines. >> Each line contains two comma-separated numbers. >> I want to divide the first item of each line by one divisor, and divide the >> second item of each line by a different divisor. >> The list order must stay the same. >> >> Example: >> Using 2 and 5 as divisors... >> 10,10 >> 12,15 >> 8,12 >> would become >> 5,2 >> 6,3 >> 4,2.4 >> >> Options: >> Using "repeat with n=1 to num of lines" takes far too long. >> Using "repeat for each line L" either attempts to modify read-only data, or >> is only 25% faster using a dumping variable. >> Using split/combine will mess up the ordering (numeric array keys are not >> sorted numerically with combine). >> >> Any other ideas? >> >> Hugh Senior >> FLCo >> >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From coiin at verizon.net Thu Mar 10 16:06:04 2011 From: coiin at verizon.net (Colin Holgate) Date: Thu, 10 Mar 2011 16:06:04 -0500 Subject: Memory issue for iPad Livecode apps? In-Reply-To: <3BB985A2-38DD-4F41-9B58-47F7606215E8@twft.com> References: <5a864.43703be5.3aaa83c3@aol.com> <3BB985A2-38DD-4F41-9B58-47F7606215E8@twft.com> Message-ID: <8706E426-B767-442A-A80D-B3BA00B2E45F@verizon.net> On Mar 10, 2011, at 3:45 PM, Bob Sneidar wrote: > The idea is to create placeholder graphic objects, include the images in your associated files, then have your code set the image of the placeholders to whatever images you have. Did I get that right? That might have been more to do with having a faster startup time. From revolution at derbrill.de Thu Mar 10 16:07:35 2011 From: revolution at derbrill.de (Malte Brill) Date: Thu, 10 Mar 2011 22:07:35 +0100 Subject: Memory issue for iPad Livecode apps? In-Reply-To: References: Message-ID: <1DEC4399-B68C-421C-9E92-48072A1BDE23@derbrill.de> What you have to keep in mind (just ran into this myself) is that an app gets terminated by the OS if it takes up too much memory. Of course the simulator will not simulate the memory situation of the device (and this sucks big heap), as well as it does not reflect the processor speed (sucks again), which basically leaves you with the resources your dev computer has and not a relevant picture of the real device situation. :-( Now what does that mean? - Always test on a real device. Get a worst case device (first gen iPod touch in my case) Rgarding memory consumtion. If you work with images, keep in mind that you can not calculate with the filesize your images are using. Images will be decoded into the graphics buffer on the device, as soon as they are being displayed. This will use up 4 bytes per pixel. So if you are using a 100 by 100 image, it will end up claiming 40000 bytes in the graphics buffer, even though its filesize might be significantly smaller. Also, the decoding into the graphics buffer takes time (and this depends on processor speed of the device as far as I can see). So if you have many images on your first card, you will see the splash screen much longer then if there are no images. If you instead do an import paint from a resource folder, you can at least display a progress bar to your user. However you add quite some overhead to load time this way. What fits, depends on your app. All the best, Malte From form at nonsanity.com Thu Mar 10 16:25:23 2011 From: form at nonsanity.com (Nonsanity) Date: Thu, 10 Mar 2011 16:25:23 -0500 Subject: Efficiency question for list modification In-Reply-To: References: Message-ID: I didn't use that style because he mentioned he tried it without much success. I tried it down on the straight-up 100,000 pass and it finished in 4 seconds. Hands down the fastest. I should have tried that on my own just for completeness' sake. I guess I was too taken with the faster results I got from chunking the data. This happens to researchers that aren't careful about what they pay attention to. It can lead to all sorts of horrendous things... Like reporting positive results for psi experiments or homeopathy. :) Hidden assumptions taint research results. My bad here. The stack has been updated to include the fifth button that uses that style. Result: 1 seconds. :) ~ Chris Innanen On Thu, Mar 10, 2011 at 3:49 PM, Bob Sneidar wrote: > You should also try using the form: > > repeat for each line theLineValue in theData > > Apparently this creates an internal array of theData and is much faster. > The big caveat is that you do not alter what theData contains while in the > repeat loop, as this will really screw things up. That is because this form > accesses the memory of theData directly, and if you alter it, the system may > do some house cleaning, and what once was there may be garbage or another > bit of memory. It really gets ugly. > > Bob > > > On Mar 10, 2011, at 11:42 AM, Nonsanity wrote: > > > I made a quick test stack to try out a few ides: > > > > http://dl.dropbox.com/u/144280/Divide%20List%20Tests.livecode > > > > It generates 100,000 random integer pairs into one field, then has four > > buttons to do the sample division you gave to the two items in each line. > > > > The first is a straight-up "repeat with a = 1 to the number of lines" > making > > sure to copy the data from the field into a variable, and write the new > data > > into a variable before saving it to the output field. (Because working > > directly with fields is slower than pure variables.) > > > > The second cuts the input list into ten 10,000 line chunks, and runs > through > > each of those in turn, tacking it all onto one output variable as it > goes. > > > > The third does the same thing, but cuts the input into a hundred 1,000 > line > > chunks. > > > > And the fourth brings it down to a mere 100 lines per chunk. (But a > thousand > > chunks.) > > > > Times were as follows on my not-so-hot machine: > > > > Generate Randoms: 2 seconds > > Divide all 100,000: 77 seconds > > Divide in groups of 10,000: 10 seconds > > Divide in groups of 1,000: 7 seconds > > Divide in groups of 100: 7 seconds > > > > Those totals are for doing ALL 100,000 regardless of how they are broken > > down. I get the same output for all of them. > > > > So you can see that the slowdown is probably in accessing "line 84,932" > etc > > of the input string. Whereas limiting the line numbers to less than > 10,000 > > makes a HUGE difference in speed. And even a bit better with a line limit > of > > 1,000. Any further savings of using tiny 100-line chunks is lost by > having > > to cut out 1,000 different chunks. > > > > But this should show where the slowdown is, and offer a way to work > around > > it. > > > > When the cookie is too big, break off what you can chew. > > > > > > ~ Chris Innanen > > ~ Nonsanity > > > > > > On Thu, Mar 10, 2011 at 1:51 PM, FlexibleLearning < > > admin at flexiblelearning.com> wrote: > > > >> Problem: > >> I have a long list of several thousand lines. > >> Each line contains two comma-separated numbers. > >> I want to divide the first item of each line by one divisor, and divide > the > >> second item of each line by a different divisor. > >> The list order must stay the same. > >> > >> Example: > >> Using 2 and 5 as divisors... > >> 10,10 > >> 12,15 > >> 8,12 > >> would become > >> 5,2 > >> 6,3 > >> 4,2.4 > >> > >> Options: > >> Using "repeat with n=1 to num of lines" takes far too long. > >> Using "repeat for each line L" either attempts to modify read-only data, > or > >> is only 25% faster using a dumping variable. > >> Using split/combine will mess up the ordering (numeric array keys are > not > >> sorted numerically with combine). > >> > >> Any other ideas? > >> > >> Hugh Senior > >> FLCo > >> > >> > >> > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From francois.chaplais at mines-paristech.fr Thu Mar 10 16:38:05 2011 From: francois.chaplais at mines-paristech.fr (=?iso-8859-1?Q?Fran=E7ois_Chaplais?=) Date: Thu, 10 Mar 2011 22:38:05 +0100 Subject: Memory issue for iPad Livecode apps? In-Reply-To: <1DEC4399-B68C-421C-9E92-48072A1BDE23@derbrill.de> References: <1DEC4399-B68C-421C-9E92-48072A1BDE23@derbrill.de> Message-ID: <214B9B44-C925-40E6-A1F3-A22B9E645EDC@mines-paristech.fr> Doesn't the graphics part of the chip helps? A far as I know, there is hardware acceleration for H264 since the first iPhone, also for AAC audio... And the accelerate framework (at least for the mac) uses fast vectorization for image processing. Best Fran?ois Le 10 mars 2011 ? 22:07, Malte Brill a ?crit : > What you have to keep in mind (just ran into this myself) is that an app gets terminated by the OS if it takes up too much memory. Of course the simulator will not simulate the memory situation of the device (and this sucks big heap), as well as it does not reflect the processor speed (sucks again), which basically leaves you with the resources your dev computer has and not a relevant picture of the real device situation. :-( > > Now what does that mean? - Always test on a real device. Get a worst case device (first gen iPod touch in my case) > > Rgarding memory consumtion. If you work with images, keep in mind that you can not calculate with the filesize your images are using. Images will be decoded into the graphics buffer on the device, as soon as they are being displayed. This will use up 4 bytes per pixel. So if you are using a 100 by 100 image, it will end up claiming 40000 bytes in the graphics buffer, even though its filesize might be significantly smaller. > > Also, the decoding into the graphics buffer takes time (and this depends on processor speed of the device as far as I can see). So if you have many images on your first card, you will see the splash screen much longer then if there are no images. If you instead do an import paint from a resource folder, you can at least display a progress bar to your user. However you add quite some overhead to load time this way. What fits, depends on your app. > > All the best, > > Malte > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Thu Mar 10 16:38:09 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 10 Mar 2011 15:38:09 -0600 Subject: Memory issue for iPad Livecode apps? In-Reply-To: <8706E426-B767-442A-A80D-B3BA00B2E45F@verizon.net> References: <5a864.43703be5.3aaa83c3@aol.com> <3BB985A2-38DD-4F41-9B58-47F7606215E8@twft.com> <8706E426-B767-442A-A80D-B3BA00B2E45F@verizon.net> Message-ID: <4D7944C1.2080806@hyperactivesw.com> On 3/10/11 3:06 PM, Colin Holgate wrote: > > On Mar 10, 2011, at 3:45 PM, Bob Sneidar wrote: > >> The idea is to create placeholder graphic objects, include the >> images in your associated files, then have your code set the image >> of the placeholders to whatever images you have. Did I get that >> right? > > That might have been more to do with having a faster startup time. Could be. All I know about the image thing is that Mark Waddingham told me that iOS is optimized for disk access and that all resources should be loaded from disk whenever possible. In fact, he told me that twice, so I parroted it. :) We should bug him and find out why. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobs at twft.com Thu Mar 10 16:40:29 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 10 Mar 2011 13:40:29 -0800 Subject: Efficiency question for list modification In-Reply-To: References: Message-ID: How about chunking the data with the new method? I would put money on the notion that it won't matter much. Bob On Mar 10, 2011, at 1:25 PM, Nonsanity wrote: > I didn't use that style because he mentioned he tried it without much > success. I tried it down on the straight-up 100,000 pass and it finished in > 4 seconds. Hands down the fastest. I should have tried that on my own just > for completeness' sake. > > I guess I was too taken with the faster results I got from chunking the > data. This happens to researchers that aren't careful about what they pay > attention to. It can lead to all sorts of horrendous things... Like > reporting positive results for psi experiments or homeopathy. :) > > Hidden assumptions taint research results. My bad here. > > The stack has been updated to include the fifth button that uses that style. > Result: 1 seconds. :) > > ~ Chris Innanen From 3mcgrath at comcast.net Thu Mar 10 16:43:42 2011 From: 3mcgrath at comcast.net (Thomas McGrath III) Date: Thu, 10 Mar 2011 16:43:42 -0500 Subject: [ANN} iOS UINavigationBar Kit V 1.4.2 Released Message-ID: <7F09E191-4C53-4317-A6B1-08B9718A4560@comcast.net> Looking for a UINavigationBar that will resize for each Orientation of each Device including Android? Well iOS UINavigationBar Kit V1.4.2 is Available today. One UINavBar to rule them all. The Stack includes a LAB to experiment with the features of this Control. Just Launch this stack in your simulator and change from iPod to iPhone to iPad to Android and also rotate the orientation and watch how smooth and simple this grouped control is. Many undocumented features as well. You can download this fantastic stack from RevOnline: Lazy River Software Presents iOS UINavigationBar Kit iOS UINavigationBarKit V1.4.2 Thomas McGrath III This is just one part of the iOS Kit. This stack has a self contained UINavBar group that behaves the way a iOS UINavigationBar is supposed to behave. The Font, Sizes and Colors are from iOS. Just copy the group to a new stack and set some custom properties of that group and your on your way. One group for ALL orientations and ALL mobile devices. Included with this stack is a very useful Stack Script that will automatically change the UINavBar to which ever Device it is launched on and for which ever Orientation the Device rotates to. Features: Resizable Buttons based on the Button Text. Resizable Navigation Bar based on Device and Orientation that will reposition buttons as required. Customizable Text and Title Font, Size, Color, Shadow, Margin, Offset, Two rows of Individually customizable Buttons for Tall Style Bars. Bar Colors: Default Black Translucent White Bar Styles: Short Normal Tall Button Colors: Default Black Translucent Gray White Button Styles: Back Buttons Forward Buttons Default Buttons Done Button Remove Button Many more features are in the works for this little gem. Coming soon: Two line text. Multiple Segment Buttons Tool Bar Tool Bar Buttons Split View Bar Split View Buttons -- Tom McGrath III http://lazyriver.on-rev.com 3mcgrath at comcast.net From jacque at hyperactivesw.com Thu Mar 10 16:51:57 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 10 Mar 2011 15:51:57 -0600 Subject: [ANN} iOS UINavigationBar Kit V 1.4.2 Released In-Reply-To: <7F09E191-4C53-4317-A6B1-08B9718A4560@comcast.net> References: <7F09E191-4C53-4317-A6B1-08B9718A4560@comcast.net> Message-ID: <4D7947FD.1020302@hyperactivesw.com> On 3/10/11 3:43 PM, Thomas McGrath III wrote: > Looking for a UINavigationBar that will resize for each Orientation of each Device including Android? > Well iOS UINavigationBar Kit V1.4.2 is Available today. One UINavBar to rule them all. > > The Stack includes a LAB to experiment with the features of this Control. Just Launch this stack in your simulator and change from iPod to iPhone to iPad to Android and also rotate the orientation and watch how smooth and simple this grouped control is. Many undocumented features as well. > > You can download this fantastic stack from RevOnline: > Lazy River Software Presents iOS UINavigationBar Kit > iOS UINavigationBarKit V1.4.2 > Thomas McGrath III You should be nominated for sainthood. I'm off to download. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From form at nonsanity.com Thu Mar 10 17:00:11 2011 From: form at nonsanity.com (Nonsanity) Date: Thu, 10 Mar 2011 17:00:11 -0500 Subject: Efficiency question for list modification In-Reply-To: References: Message-ID: On Thu, Mar 10, 2011 at 4:40 PM, Bob Sneidar wrote: > How about chunking the data with the new method? I would put money on the > notion that it won't matter much. > > Bob > It didn't. :) ~ Chris Innanen ~ Nonsanity From mcgrath3 at mac.com Thu Mar 10 17:14:15 2011 From: mcgrath3 at mac.com (Thomas McGrath III) Date: Thu, 10 Mar 2011 17:14:15 -0500 Subject: [ANN} iOS UINavigationBar Kit V 1.4.2 Released In-Reply-To: <4D7947FD.1020302@hyperactivesw.com> References: <7F09E191-4C53-4317-A6B1-08B9718A4560@comcast.net> <4D7947FD.1020302@hyperactivesw.com> Message-ID: Thanks Jac, It just had to be done. We have many new opportunities as users of LC and we need to join together and share what we can. I would absolutely LOVE IT if someone could create a "working" scrollable datagrid object for iOS. The ones I've downloaded are either only good as a scrolling field and not a form or are completely too slow on the device. They work in the simulator but not the device. I have tested the UINavBarKit on iPod, iPad V1, and iPhone3GS and iPhoneRetina. I was only able to test Android in the simulator. Looking for a friend that has an Android to test live with. One note is that the iOSNavigationBar Kit V1.4.2 is powerful but heavy so a future upgrade is to decide on the Styles and Colors and button types before deploying and then provide a way to remove the un-needed or un-used items. Thanks again, I hope you enjoy it. NOTE: also the background has the Stripped background as an included freebie. -- Tom McGrath III http://lazyriver.on-rev.com 3mcgrath at comcast.net On Mar 10, 2011, at 4:51 PM, J. Landman Gay wrote: > On 3/10/11 3:43 PM, Thomas McGrath III wrote: >> Looking for a UINavigationBar that will resize for each Orientation of each Device including Android? >> Well iOS UINavigationBar Kit V1.4.2 is Available today. One UINavBar to rule them all. >> >> The Stack includes a LAB to experiment with the features of this Control. Just Launch this stack in your simulator and change from iPod to iPhone to iPad to Android and also rotate the orientation and watch how smooth and simple this grouped control is. Many undocumented features as well. >> >> You can download this fantastic stack from RevOnline: >> Lazy River Software Presents iOS UINavigationBar Kit >> iOS UINavigationBarKit V1.4.2 >> Thomas McGrath III > > You should be nominated for sainthood. I'm off to download. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From roger.e.eller at sealedair.com Thu Mar 10 17:27:21 2011 From: roger.e.eller at sealedair.com (Roger Eller) Date: Thu, 10 Mar 2011 17:27:21 -0500 Subject: [ANN} iOS UINavigationBar Kit V 1.4.2 Released In-Reply-To: References: <7F09E191-4C53-4317-A6B1-08B9718A4560@comcast.net> <4D7947FD.1020302@hyperactivesw.com> Message-ID: On Thu, Mar 10, 2011 at 5:14 PM, Thomas McGrath III wrote: > > Thanks Jac, > > I have tested the UINavBarKit on iPod, iPad V1, and iPhone3GS and iPhoneRetina. I was only able to test Android in the simulator. Looking for a friend that has an Android to test live with. > > One note is that the iOSNavigationBar Kit V1.4.2 is powerful but heavy so a future upgrade is to decide on the Styles and Colors ?and button types before deploying and then provide a way to remove the un-needed or un-used items. > > Thanks again, I hope you enjoy it. > > NOTE: also the background has the Stripped background as an included freebie. > > > -- Tom McGrath III > http://lazyriver.on-rev.com > 3mcgrath at comcast.net WANT!!!!!! Will download later. Sounds Awesome! ~Roger From mcgrath3 at mac.com Thu Mar 10 18:50:17 2011 From: mcgrath3 at mac.com (Thomas McGrath III) Date: Thu, 10 Mar 2011 18:50:17 -0500 Subject: [ANN} iOS UINavigationBar Kit V 1.4.2 Released In-Reply-To: References: <7F09E191-4C53-4317-A6B1-08B9718A4560@comcast.net> <4D7947FD.1020302@hyperactivesw.com> Message-ID: You're welcome Roger, Let me know what you think once you start using it. -- Tom McGrath III http://lazyriver.on-rev.com 3mcgrath at comcast.net On Mar 10, 2011, at 5:27 PM, Roger Eller wrote: > On Thu, Mar 10, 2011 at 5:14 PM, Thomas McGrath III wrote: >> >> Thanks Jac, >> >> I have tested the UINavBarKit on iPod, iPad V1, and iPhone3GS and iPhoneRetina. I was only able to test Android in the simulator. Looking for a friend that has an Android to test live with. >> >> One note is that the iOSNavigationBar Kit V1.4.2 is powerful but heavy so a future upgrade is to decide on the Styles and Colors and button types before deploying and then provide a way to remove the un-needed or un-used items. >> >> Thanks again, I hope you enjoy it. >> >> NOTE: also the background has the Stripped background as an included freebie. >> >> >> -- Tom McGrath III >> http://lazyriver.on-rev.com >> 3mcgrath at comcast.net > > WANT!!!!!! Will download later. Sounds Awesome! > > ~Roger > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mcgrath3 at mac.com Thu Mar 10 19:02:17 2011 From: mcgrath3 at mac.com (Thomas McGrath III) Date: Thu, 10 Mar 2011 19:02:17 -0500 Subject: [ANN} iOS UINavigationBar Kit V 1.4.2 Released In-Reply-To: References: <7F09E191-4C53-4317-A6B1-08B9718A4560@comcast.net> <4D7947FD.1020302@hyperactivesw.com> Message-ID: <5F5C1937-A9CA-41E6-B277-E32A7B21AEC2@mac.com> One note: The White Buttons are not directly from the iOS. I am still in the process of getting the exact button elements for those as well as the split view bar and a few other button elements. That said I am using the White Buttons with the Graphic effect Overlay Color to create quick and easy non-standard iOS buttons which are still acceptable in the HIG for iOS. All of the other Button Elements and Bar Elements are real genuine iOS button elements (Not web renditions). The funny thing is when I open this in the Android simulator I get this very weird feeling inside like I just did something wrong?!?!?! SO, in the next update I plan on making a unique to Android Navigation Bar. Not as many standards to go by though so the search for REAL (not web versions) Button Elements is taking a lot longer. Enjoy Tom -- Tom McGrath III http://lazyriver.on-rev.com 3mcgrath at comcast.net On Mar 10, 2011, at 6:50 PM, Thomas McGrath III wrote: > You're welcome Roger, > > Let me know what you think once you start using it. > > > -- Tom McGrath III > http://lazyriver.on-rev.com > 3mcgrath at comcast.net > > On Mar 10, 2011, at 5:27 PM, Roger Eller wrote: > >> On Thu, Mar 10, 2011 at 5:14 PM, Thomas McGrath III wrote: >>> >>> Thanks Jac, >>> >>> I have tested the UINavBarKit on iPod, iPad V1, and iPhone3GS and iPhoneRetina. I was only able to test Android in the simulator. Looking for a friend that has an Android to test live with. >>> >>> One note is that the iOSNavigationBar Kit V1.4.2 is powerful but heavy so a future upgrade is to decide on the Styles and Colors and button types before deploying and then provide a way to remove the un-needed or un-used items. >>> >>> Thanks again, I hope you enjoy it. >>> >>> NOTE: also the background has the Stripped background as an included freebie. >>> >>> >>> -- Tom McGrath III >>> http://lazyriver.on-rev.com >>> 3mcgrath at comcast.net >> >> WANT!!!!!! Will download later. Sounds Awesome! >> >> ~Roger >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From alex at tweedly.net Thu Mar 10 19:07:21 2011 From: alex at tweedly.net (Alex Tweedly) Date: Fri, 11 Mar 2011 00:07:21 +0000 Subject: Coding Challenge In-Reply-To: <2FE493E3-B55C-4B15-B95A-FA8E777EC71F@derbrill.de> References: <2FE493E3-B55C-4B15-B95A-FA8E777EC71F@derbrill.de> Message-ID: <4D7967B9.4060703@tweedly.net> Hi Malte. Hope I'm not too late to the party :-) Here's some sample code that appears to work on my small sample data. It's not easy to come up with good test data here - nothing obvious could generate realistic test data by program. Summary is 1. deal with all equality cases first. For every set of equal-age names, we use the same name (first one alphabetically) for the 'younger' relationship table. 2. normalize the realtionships (always younger, replace by same-age equivalent 3. for each name, keep two lists - those older and still to be handled, and those older but already dealt with 4. repeatedly, take a name from the first list and try to move it to the second. If this name itself has nothing left on its 'still-to-do' list then we have completely moved this name - remove it from the still-to-do list. This should be reasonably efficient, though there are possible optimizations by keeping back-pointers - so let me know if this is too slow when you start using thousands of names, -- Alex. > > global gSameAge -- array of those who are the same age > global gRelate -- array of direct (i.e. defined) relationships > global gOlder -- array containing (one per line) all those who are > known older than the key > global gOlderStillToDo > > on c > put URL "file:~/data.txt" into tData > > put empty into gSameAge > put empty into gOlder > put empty into gOlderStillToDo > -- deal with all the equal age info > -- for each group of same-age people, we will use the first > alphabetically > -- step 1. normalize each individual equality to be alphabetocal > -- step 2. sort the set of equality facts to be alphabetical > -- step 3. for each subsequent name, store the earliest equal one > repeat for each line L in tData > if word 2 of L = "=" then > if word 1 of L < word 3 of L then > put word 1 of L && word 3 of L & CR after tEqual > else > put word 3 of L && word 1 of L & CR after tEqual > end if > end if > end repeat > -- sort these to handle cases like a=b and b=d > sort lines of tEqual > repeat for each line L in tEqual > if gSameAge[word 1 of L] is not empty then > put gSameAge[word 1 of L] into gSameAge[word 2 of L] > else > put word 1 of L into gSameAge[word 2 of L] > end if > end repeat > > -- now normalize the direct relationships > put empty into gRelate > repeat for each line L in tData > if word 2 of L = "<" then > put sample(word 1 of L) into t1 > put sample(word 3 of L) into t2 > put t1 && t2 & CR after tUnequal > end if > end repeat > > -- first the direct relationships > repeat for each line L in tUnequal > put word 2 of L & CR after gOlderStillToDo[word 1 of L] > end repeat > > repeat 10000 timeS -- forever, but avoid infinite loops > put 0 into tNeedToDoAgain > put the keys of gOlderStillToDo into tKeys > -- for each one that still has something to do > repeat for each line K in tKeys > put empty into tNewlyFound > put empty into tStillToDo > repeat for each line L in gOlderStillToDo[K] > if L is not among the keys of gOlderStillToDo then > -- add this older one, *and* all names known to be > older than it > put L & CR after gOlder[K] > put gOlder[L] & CR after tNewlyFound > else -- this one hasn't yet been done, so we may need > another iteration > put L & CR after tStillToDo > add 1 to tNeedToDoAgain > end if > end repeat > if tStillToDo is empty then > delete variable gOlderStillToDo[K] > else > put tStillToDo into gOlderStillToDo[K] > end if > repeat for each line L in tNewlyFound > if L = K then -- there is a loop in age info - i.e. bad > input !! > ask "loop" && L && K > exit to top > end if > if L is not among the lines gOlder[K] and L is not among > the lines of gOlderStillToDo[K] then > put L & CR after gOlderStillToDo[K] > add 1 to tNeedToDoAgain > end if > end repeat > end repeat > if tNeedToDoAgain = 0 then exit repeat > end repeat > repeat for each key K in gOlder > put K & "--->" & CR after field "F" > put gOlder[K] after field "F" > > end repeat > end c > > function sample pA > if gSameAge[pA] is not empty then > return gSameAge[pA] > else > return pA > end if > end sample > On 08/03/2011 18:49, Malte Brill wrote: > Thanks for the head ups folks, > > Bj?rnke and Mark: I do not have the exact ages to sort by. All I do have is relations: > > Malte is older than Bj?rnke > Mark is older than Malte > > And now I need to compute if it is valid to say: > - Bj?rnke is older than Mark (obviously not) > - Bj?rnke is the same age as Mark (obviously not) > - Bj?rnke is younger than Mark. (That?s the one) > > What comes easy to the human brain in fact appears to be a lot more difficult when having to be tackled computationaly. > > Chris: Yes, I want such a list in the end. But in order to finally get this I will need to tell the machine which relations are legal first (the user tells which relations there are) and ideally filter out the data for relations that make no sense. Now I wish it was easy to tell the machine to just use logic and make sense itself :D This comparison has to be done for thousands of entities (children in this case). > > Cheers, > > Malte > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From runrevplanet at smpcs.server101.com Thu Mar 10 20:29:49 2011 From: runrevplanet at smpcs.server101.com (Scott McDonald) Date: Thu, 10 Mar 2011 17:29:49 -0800 (PST) Subject: Writing Externals in Pascal? In-Reply-To: <4CFE9095-138A-4EC5-A9AA-2AEABD4E2393@gmail.com> References: <4C319CAA.5050801@smpcs.server101.com> <1278349562223-2278631.post@n4.nabble.com> <4CFE9095-138A-4EC5-A9AA-2AEABD4E2393@gmail.com> Message-ID: <1299806989471-3347233.post@n4.nabble.com> In my original post I said, >Note, I have little free time for such a project, so even if there >is significant interest, I make no promises about whether it will >happen, or when. While I did not expect it to take this long, the free time did finally arrive and progress has been made. A Pascal SDK for writing Externals for LiveCode *can* be done, and I will be releasing the results of my investigation soon. It will support the full Externals V3 API (which appears to be the most recent API that RunRev have publicly released?) on Linux, OS X and Windows using the Free Pascal Compiler. ----- -- Scott McDonald "Components, Controls, Tools and Resources for LiveCode" www.runrevplanet.com -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Writing-Externals-in-Pascal-tp2278157p3347233.html Sent from the Revolution - User mailing list archive at Nabble.com. From jimaultwins at yahoo.com Thu Mar 10 20:34:38 2011 From: jimaultwins at yahoo.com (Jim Ault) Date: Thu, 10 Mar 2011 17:34:38 -0800 Subject: Efficiency question for list modification In-Reply-To: <4D792F84.6000104@tweedly.net> References: <4D792F84.6000104@tweedly.net> Message-ID: <2C6A64FF-3208-4BFE-BCFF-729ED8AC0BBD@yahoo.com> Of course, using a faster processor would give faster results. What would be the speed difference if the data block was sent to an irev script and run on a faster processor? Jim Ault Las Vegas On Mar 10, 2011, at 12:07 PM, Alex Tweedly wrote: > use repeat for each line L ... and collect the modified lines in a > separate variable, replace the original variable after the loop > > repeat fer each line L in tData > put ... & CR after temp > end repeat > put temp into tData > > should be very quick. > > -- Alex. > btw - not needed in this case, but you could use split/combine in > it's "single separator" form > split tData by CR > repeat with i = 1 to the number of lines in the keys of tData > put .... into tData[i] > end repeat > combine tData by CR From m.schonewille at economy-x-talk.com Thu Mar 10 20:40:19 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Fri, 11 Mar 2011 02:40:19 +0100 Subject: Live LiveCode Code Event #14 Message-ID: <5BC5E548-09C7-4162-B4FF-C4AA365DA2F0@economy-x-talk.com> Hi everybody, Before making the announcement, I have an urgent request. For next week, we have no presenters yet and if YOU don't speak up, Bj?rnke's wonderful initiative might die a silent death eventually. I'm sure YOU don't want that, so YOU are urgently requested to take the stand. Who, ME?! Yes, YOU! Don't think that someone else might do it instead of YOU, because that someone else already did one or two presentations during the past three months. Now it is YOUR turn. Send me an e-mail off-list NOW and tell me what YOU will talk about. If you can't think of a topic yet, what would you say about: - an introduction for newbies - showing off your own projects - discussing a neat little trick you discovered the other day - general introduction for basic and intermediate LiveCode programmers - introduction for Java or C++ programmers - porting HyperCard stacks to LiveCode - anything with regard to developing for iOS - deploying applications to the iTunes store - open process and related subjects - setting up a server with LiveCode (irev, cgi) - developing web applications - creating revlets - the intersect function (for objects) - arrays - behaviors - the merge function - script limits, maximum sizes etc. - any other LiveCode-related topic you like to talk about You can contact me off-list by replying to my e-mail address or use the web form at http://qery.us/du . This weekend's event is scheduled for Saturday, 12 March 2011 at 19:00h GMT (Sat. 22:00 in Moscow, Sat. 20:00 in Paris, Sat. 14:00 in New York, Sat. 11:00 in Los Angeles, Sun. 04:00 in Tokyo, Sun. 3:00 in Beijing). It will be the 14th edition of the Live LiveCode Event. Bj?rnke will start the event, telling us about custom properties. Judy will show us why LiveCode is the ideal tool to create much-needed educational solutions in very little time. Multiplication Bingo is one of those solutions and she will explain how mere mortals can achieve such things. David wraps it up with a treatise on building an IRC chat bot in LiveCode. Make sure to use ChatRev during the happening, otherwise you won't know where to watch the streams, which will be announced in ChatRev. Download ChatRev here: http://bjoernke.com?target=chatrev or enter in the message box: go stack URL "http://bjoernke.com/chatrev/chatrev1.3b3.rev" See also the following page for the same information (soon): Http://livecode.tv -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce From jhj at jhj.com Thu Mar 10 20:50:37 2011 From: jhj at jhj.com (Jerry J) Date: Thu, 10 Mar 2011 17:50:37 -0800 Subject: Live LiveCode Code Event #14 In-Reply-To: <5BC5E548-09C7-4162-B4FF-C4AA365DA2F0@economy-x-talk.com> References: <5BC5E548-09C7-4162-B4FF-C4AA365DA2F0@economy-x-talk.com> Message-ID: On Mar 10, 2011, at 5:40 PM, Mark Schonewille wrote: > Hi everybody, > > You can contact me off-list by replying to my e-mail address or use the web form at http://qery.us/du . And again, Safari thinks that link is dangerous. I ignored the warning and it did indeed lead to your page, but... Jerry Jensen From roger.e.eller at sealedair.com Thu Mar 10 21:39:00 2011 From: roger.e.eller at sealedair.com (Roger Eller) Date: Thu, 10 Mar 2011 21:39:00 -0500 Subject: [ANN} iOS UINavigationBar Kit V 1.4.2 Released In-Reply-To: <5F5C1937-A9CA-41E6-B277-E32A7B21AEC2@mac.com> References: <7F09E191-4C53-4317-A6B1-08B9718A4560@comcast.net> <4D7947FD.1020302@hyperactivesw.com> <5F5C1937-A9CA-41E6-B277-E32A7B21AEC2@mac.com> Message-ID: On Thu, Mar 10, 2011 at 7:02 PM, Thomas McGrath III wrote: > One note: > > The funny thing is when I open this in the Android simulator I get this very > weird feeling inside like I just did something wrong?!?!?! SO, in the next > update I plan on making a unique to Android Navigation Bar. Not as many > standards to go by though so the search for REAL (not web versions) Button > Elements is taking a lot longer. > > Enjoy > > Tom > > -- Tom McGrath III > http://lazyriver.on-rev.com > 3mcgrath at comcast.net Your rotation effect looks very nice in the iOS Simulator, but didn't rotate in the Android Simulator (for me at least). -Roger From sundown at pacifier.com Thu Mar 10 21:48:40 2011 From: sundown at pacifier.com (-=>JB<=-) Date: Thu, 10 Mar 2011 18:48:40 -0800 Subject: Writing Externals in Pascal? In-Reply-To: <1299806989471-3347233.post@n4.nabble.com> References: <4C319CAA.5050801@smpcs.server101.com> <1278349562223-2278631.post@n4.nabble.com> <4CFE9095-138A-4EC5-A9AA-2AEABD4E2393@gmail.com> <1299806989471-3347233.post@n4.nabble.com> Message-ID: Glad to hear the news! -=>JB<=- On Mar 10, 2011, at 5:29 PM, Scott McDonald wrote: > In my original post I said, > >> Note, I have little free time for such a project, so even if there >> is significant interest, I make no promises about whether it will >> happen, or when. > > While I did not expect it to take this long, the free time did finally > arrive and progress has been made. > > A Pascal SDK for writing Externals for LiveCode *can* be done, and I will be > releasing the results of my investigation soon. > > It will support the full Externals V3 API (which appears to be the most > recent API that RunRev have publicly released?) on Linux, OS X and Windows > using the Free Pascal Compiler. > > ----- > -- > Scott McDonald > "Components, Controls, Tools and Resources for LiveCode" > www.runrevplanet.com > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Writing-Externals-in-Pascal-tp2278157p3347233.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From mcgrath3 at mac.com Thu Mar 10 22:29:04 2011 From: mcgrath3 at mac.com (Thomas McGrath III) Date: Thu, 10 Mar 2011 22:29:04 -0500 Subject: [ANN} iOS UINavigationBar Kit V 1.4.2 Released In-Reply-To: References: <7F09E191-4C53-4317-A6B1-08B9718A4560@comcast.net> <4D7947FD.1020302@hyperactivesw.com> <5F5C1937-A9CA-41E6-B277-E32A7B21AEC2@mac.com> Message-ID: <4E97EFAA-EEBC-45F8-9335-3FADD947E0F6@mac.com> Roger, Rotation is not yet supported in the Android Plugin. Tom -- Tom McGrath III http://lazyriver.on-rev.com 3mcgrath at comcast.net On Mar 10, 2011, at 9:39 PM, Roger Eller wrote: > On Thu, Mar 10, 2011 at 7:02 PM, Thomas McGrath III wrote: >> One note: >> >> The funny thing is when I open this in the Android simulator I get this very >> weird feeling inside like I just did something wrong?!?!?! SO, in the next >> update I plan on making a unique to Android Navigation Bar. Not as many >> standards to go by though so the search for REAL (not web versions) Button >> Elements is taking a lot longer. >> >> Enjoy >> >> Tom >> >> -- Tom McGrath III >> http://lazyriver.on-rev.com >> 3mcgrath at comcast.net > > Your rotation effect looks very nice in the iOS Simulator, but didn't > rotate in the Android Simulator (for me at least). > > -Roger > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mcgrath3 at mac.com Thu Mar 10 23:08:39 2011 From: mcgrath3 at mac.com (Thomas McGrath III) Date: Thu, 10 Mar 2011 23:08:39 -0500 Subject: [ANN} iOS UINavigationBar Kit V 1.4.2 Released In-Reply-To: <4E97EFAA-EEBC-45F8-9335-3FADD947E0F6@mac.com> References: <7F09E191-4C53-4317-A6B1-08B9718A4560@comcast.net> <4D7947FD.1020302@hyperactivesw.com> <5F5C1937-A9CA-41E6-B277-E32A7B21AEC2@mac.com> <4E97EFAA-EEBC-45F8-9335-3FADD947E0F6@mac.com> Message-ID: <4818EBEC-2F79-474B-A975-3DFB86827EFF@mac.com> Minor upgrade to iOSUINavigationBar Kit V1.4.2 I uploaded a revision that includes the Android resizeStack dimensions although rotation is not yet supported with the plugin. -- Tom McGrath III http://lazyriver.on-rev.com 3mcgrath at comcast.net On Mar 10, 2011, at 10:29 PM, Thomas McGrath III wrote: > Roger, > > Rotation is not yet supported in the Android Plugin. > > Tom > > -- Tom McGrath III > http://lazyriver.on-rev.com > 3mcgrath at comcast.net > > On Mar 10, 2011, at 9:39 PM, Roger Eller wrote: > >> On Thu, Mar 10, 2011 at 7:02 PM, Thomas McGrath III wrote: >>> One note: >>> >>> The funny thing is when I open this in the Android simulator I get this very >>> weird feeling inside like I just did something wrong?!?!?! SO, in the next >>> update I plan on making a unique to Android Navigation Bar. Not as many >>> standards to go by though so the search for REAL (not web versions) Button >>> Elements is taking a lot longer. >>> >>> Enjoy >>> >>> Tom >>> >>> -- Tom McGrath III >>> http://lazyriver.on-rev.com >>> 3mcgrath at comcast.net >> >> Your rotation effect looks very nice in the iOS Simulator, but didn't >> rotate in the Android Simulator (for me at least). >> >> -Roger >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jperryl at ecs.fullerton.edu Thu Mar 10 23:28:03 2011 From: jperryl at ecs.fullerton.edu (Judy Perry) Date: Thu, 10 Mar 2011 20:28:03 -0800 (PST) Subject: Live LiveCode Code Event #14 In-Reply-To: References: <5BC5E548-09C7-4162-B4FF-C4AA365DA2F0@economy-x-talk.com> Message-ID: Yes, this is a sore spot. It's not Mark's fault. If you alter your security settings in Safari, I've found that solves the problem (thanks, Bjoernke!). Judy The LiveCode Village Idiot Who's Now Been Drafted TWICE To Do A Presentation On Thu, 10 Mar 2011, Jerry J wrote: > On Mar 10, 2011, at 5:40 PM, Mark Schonewille wrote: > >> You can contact me off-list by replying to my e-mail address or use the web form at http://qery.us/du . > > And again, Safari thinks that link is dangerous. I ignored the warning and it did indeed lead to your page, but... From jperryl at ecs.fullerton.edu Thu Mar 10 23:29:02 2011 From: jperryl at ecs.fullerton.edu (Judy Perry) Date: Thu, 10 Mar 2011 20:29:02 -0800 (PST) Subject: Live LiveCode Code Event #14 In-Reply-To: References: <5BC5E548-09C7-4162-B4FF-C4AA365DA2F0@economy-x-talk.com> Message-ID: Oh, and you're more lucky than me: Safari refused to load the page until I changed my security settings to ignore it. Judy On Thu, 10 Mar 2011, Jerry J wrote: > And again, Safari thinks that link is dangerous. I ignored the warning and it did indeed lead to your page, but... From jhj at jhj.com Thu Mar 10 23:44:47 2011 From: jhj at jhj.com (Jerry J) Date: Thu, 10 Mar 2011 20:44:47 -0800 Subject: Live LiveCode Code Event #14 In-Reply-To: References: <5BC5E548-09C7-4162-B4FF-C4AA365DA2F0@economy-x-talk.com> Message-ID: <3EB04AEC-ABC9-4238-88D2-43EC753B3EF3@jhj.com> Yabut, the entire qery.us domain is pegged as fraudulent on some blacklist that Safari uses. Its not Mark's fault, but it may be his problem to get un-blacklisted. Don't get me wrong - I hold Mark in high esteem. He has helped me selflessly in the past. I don't worry much, being only on macs, but I'd like to have that fraud check back. Thanks Judy, Jerry Jensen On Mar 10, 2011, at 8:28 PM, Judy Perry wrote: > Yes, this is a sore spot. It's not Mark's fault. If you alter your security settings in Safari, I've found that solves the problem (thanks, Bjoernke!). > > Judy > The LiveCode Village Idiot Who's Now Been Drafted TWICE To Do A Presentation > > On Thu, 10 Mar 2011, Jerry J wrote: > >> On Mar 10, 2011, at 5:40 PM, Mark Schonewille wrote: >> >>> You can contact me off-list by replying to my e-mail address or use the web form at http://qery.us/du . >> >> And again, Safari thinks that link is dangerous. I ignored the warning and it did indeed lead to your page, but... > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mwieder at ahsoftware.net Fri Mar 11 00:42:36 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 10 Mar 2011 21:42:36 -0800 Subject: Writing Externals in Pascal? In-Reply-To: <1299806989471-3347233.post@n4.nabble.com> References: <4C319CAA.5050801@smpcs.server101.com> <1278349562223-2278631.post@n4.nabble.com> <4CFE9095-138A-4EC5-A9AA-2AEABD4E2393@gmail.com> <1299806989471-3347233.post@n4.nabble.com> Message-ID: <12795017453.20110310214236@ahsoftware.net> Scott- Thursday, March 10, 2011, 5:29:49 PM, you wrote: > While I did not expect it to take this long, the free time did finally > arrive and progress has been made. > A Pascal SDK for writing Externals for LiveCode *can* be done, and I will be > releasing the results of my investigation soon. > It will support the full Externals V3 API (which appears to be the most > recent API that RunRev have publicly released?) on Linux, OS X and Windows > using the Free Pascal Compiler. Yay! Good news! -- -Mark Wieder mwieder at ahsoftware.net From liste.revo at medard.on-rev.com Fri Mar 11 01:46:01 2011 From: liste.revo at medard.on-rev.com (Medard) Date: Fri, 11 Mar 2011 07:46:01 +0100 Subject: On-Rev antispam (& reCAPTCHA) In-Reply-To: <4D79021F.9060601@tweedly.net> Message-ID: <1jxyfsy.1e8rwn1re760wM%liste.revo@medard.on-rev.com> Alex Tweedly wrote: > I took a similar approach, and didn't find the html + rev too akward ... OK, but it is enclosed in a rocket with several stories (?) ;-) How about comparing our scripts in the On-Rev forums? IMHO, it would be more appropriate to show large pieces of code! From liste.revo at medard.on-rev.com Fri Mar 11 01:53:05 2011 From: liste.revo at medard.on-rev.com (Medard) Date: Fri, 11 Mar 2011 07:53:05 +0100 Subject: On-Rev antispam In-Reply-To: <1jxyfsy.1e8rwn1re760wM%liste.revo@medard.on-rev.com> Message-ID: <1jxyggb.1lcoztt1m47xt6M%liste.revo@medard.on-rev.com> > How about comparing our scripts in the On-Rev forums? > > > > IMHO, it would be more appropriate to show large pieces of code! Ahem! I found in the forums an article about... captchas! it would be a good idea to take a look from time to time in the forums ;-) From liste.revo at medard.on-rev.com Fri Mar 11 03:44:17 2011 From: liste.revo at medard.on-rev.com (Medard) Date: Fri, 11 Mar 2011 09:44:17 +0100 Subject: On-Rev antispam In-Reply-To: <1jxyggb.1lcoztt1m47xt6M%liste.revo@medard.on-rev.com> Message-ID: <1jxylle.1d96a94tmswpmM%liste.revo@medard.on-rev.com> Medard wrote: > it would be a good idea to take a look from time to time in the forums I began to write an article in the forum, but "subito" it vanished in the air ;-> (bad maneuver?) I think that I will resume offline! From revolution at derbrill.de Fri Mar 11 04:31:24 2011 From: revolution at derbrill.de (Malte Brill) Date: Fri, 11 Mar 2011 10:31:24 +0100 Subject: Coding Challenge In-Reply-To: References: Message-ID: <09FA941D-6A9F-4657-BF21-0B5837BEFC44@derbrill.de> Hi Alex, thanks for taking the time to look into this. (and not late to the party at all) If I provide this data to your Script: Steffen > Malte Sascha < Malte Fritz = Sascha I get back Fritz-----> Malte in the field. Which is true, but it leaves steffen untouched in this case. I guess what I would be looking for is something like function testValidRelationships pPerson1,pPerson2 which returns a triplet like false,true,false -- can not be older,can be younger, can not be the same age. Do you think your script can be expanded to check this? Thanks a heap again for taking the time to look into this. Cheers, Malte From gerry.orkin at gmail.com Fri Mar 11 05:55:10 2011 From: gerry.orkin at gmail.com (Gerry) Date: Fri, 11 Mar 2011 21:55:10 +1100 Subject: Arggggh. put Google maps URL weirdness In-Reply-To: <09FA941D-6A9F-4657-BF21-0B5837BEFC44@derbrill.de> References: <09FA941D-6A9F-4657-BF21-0B5837BEFC44@derbrill.de> Message-ID: <9D80BC64B6D84C078539FC2092FF863E@gmail.com> This works: put url "http://maps.google.com/maps/api/staticmap?center=canberra&zoom=8&size=512x512&maptype=roadmap&sensor=false" into someimage put someimage into image 1 But when I use the text in a field in building the url it breaks - I get a "bad request 400 error" from the Google server: put url "http://maps.google.com/maps/api/staticmap?center=" & fld "place" & "&zoom=8&size=512x512&maptype=roadmap&sensor=false" into someimage put someimage into image 1 What am I missing? When I write the string out to the message box and then paste that into the url field in my browser, it works fine. Argggh. Gerry From alex at tweedly.net Fri Mar 11 06:02:57 2011 From: alex at tweedly.net (Alex Tweedly) Date: Fri, 11 Mar 2011 11:02:57 +0000 Subject: Coding Challenge In-Reply-To: <09FA941D-6A9F-4657-BF21-0B5837BEFC44@derbrill.de> References: <09FA941D-6A9F-4657-BF21-0B5837BEFC44@derbrill.de> Message-ID: <4D7A0161.8010200@tweedly.net> Sorry Malte - I didn't handle > relationships, only = and <. That part of the script should be changed to be > -- now normalize the direct relationships > put empty into gRelate > repeat for each line L in tData > if word 2 of L = "<" then > put sample(word 1 of L) into t1 > put sample(word 3 of L) into t2 > put t1 && t2 & CR after tUnequal > else if word 2 of L = "<" then > put sample(word 1 of L) into t1 > put sample(word 3 of L) into t2 > put t2 && t1 & CR after tUnequal > end if > end repeat You asked > function testValidRelationships pPerson1,pPerson2 > > > which returns a triplet like > > false,true,false > > -- can not be older,can be younger, can not be the same age. > > Do you think your script can be expanded to check this? Yes, though I would prefer a different function / result. You have "can not be older" - but that means either "is younger" or "is same" and you know which it is. How about function getRelationship p1, p2 -- returns one of -- older (p1 is older than p2) -- younger (p1 is younger) -- same -- unknown (not enough info to tell anything about their relationship) Here it is ... > function getRelationship p1, p2 > -- returns one of > -- older (p1 is older than p2) > -- younger (p1 is younger) > -- same > put sample(p1) into p1 > put sample(p2) into p2 > if p1 = p2 then return "same" > if p2 is among the lines of gOlder[p1] then return "younger" > if p1 is among the lines of gOlder[p2] then return "older" > return "unknown" > end getRelationship -- Alex. On 11/03/2011 09:31, Malte Brill wrote: > Hi Alex, > > thanks for taking the time to look into this. (and not late to the party at all) > > If I provide this data to your Script: > > Steffen> Malte > Sascha< Malte > Fritz = Sascha > > I get back > > Fritz-----> > Malte > > in the field. Which is true, but it leaves steffen untouched in this case. I guess what I would be looking for is something like > > function testValidRelationships pPerson1,pPerson2 > > > which returns a triplet like > > false,true,false > > -- can not be older,can be younger, can not be the same age. > > Do you think your script can be expanded to check this? > > Thanks a heap again for taking the time to look into this. > > Cheers, > > Malte > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From keith.clarke at clarkeandclarke.co.uk Fri Mar 11 06:04:50 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Fri, 11 Mar 2011 11:04:50 +0000 Subject: Arggggh. put Google maps URL weirdness In-Reply-To: <9D80BC64B6D84C078539FC2092FF863E@gmail.com> References: <09FA941D-6A9F-4657-BF21-0B5837BEFC44@derbrill.de> <9D80BC64B6D84C078539FC2092FF863E@gmail.com> Message-ID: <56870894-ED9B-46FA-863E-836FE199B752@clarkeandclarke.co.uk> ...try replacing the "place" with quote place quote ? On 11 Mar 2011, at 10:55, Gerry wrote: > This works: > > put url "http://maps.google.com/maps/api/staticmap?center=canberra&zoom=8&size=512x512&maptype=roadmap&sensor=false" into someimage > put someimage into image 1 > > > > But when I use the text in a field in building the url it breaks - I get a "bad request 400 error" from the Google server: > > put url "http://maps.google.com/maps/api/staticmap?center=" & fld "place" & "&zoom=8&size=512x512&maptype=roadmap&sensor=false" into someimage > put someimage into image 1 > > What am I missing? When I write the string out to the message box and then paste that into the url field in my browser, it works fine. > > Argggh. > > Gerry > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From alex at tweedly.net Fri Mar 11 06:05:05 2011 From: alex at tweedly.net (Alex Tweedly) Date: Fri, 11 Mar 2011 11:05:05 +0000 Subject: Arggggh. put Google maps URL weirdness In-Reply-To: <9D80BC64B6D84C078539FC2092FF863E@gmail.com> References: <09FA941D-6A9F-4657-BF21-0B5837BEFC44@derbrill.de> <9D80BC64B6D84C078539FC2092FF863E@gmail.com> Message-ID: <4D7A01E1.6070302@tweedly.net> Haven't tried, but I always use parentheses with URL, so try put url ("http://maps.google.com/maps/api/staticmap?center="& fld "place"& "&zoom=8&size=512x512&maptype=roadmap&sensor=false") into someimage -- Alex. On 11/03/2011 10:55, Gerry wrote: > This works: > > put url "http://maps.google.com/maps/api/staticmap?center=canberra&zoom=8&size=512x512&maptype=roadmap&sensor=false" into someimage > put someimage into image 1 > > > > But when I use the text in a field in building the url it breaks - I get a "bad request 400 error" from the Google server: > > put url "http://maps.google.com/maps/api/staticmap?center="& fld "place"& "&zoom=8&size=512x512&maptype=roadmap&sensor=false" into someimage > put someimage into image 1 > > What am I missing? When I write the string out to the message box and then paste that into the url field in my browser, it works fine. > > Argggh. > > Gerry > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From admin at FlexibleLearning.com Fri Mar 11 06:24:04 2011 From: admin at FlexibleLearning.com (FlexibleLearning) Date: Fri, 11 Mar 2011 11:24:04 -0000 Subject: Efficiency question for list modification In-Reply-To: Message-ID: Proof of how optimized syntax can make an enormous difference to speed (by orders of magnitude in this case). This is BAD... repeat for each line L in tData add 1 to n put (item 1 of L/div1) into item 1 of line n of stdout put (item 2 of L/div2) into item 2 of line n of stdout end repeat This is GOOD... repeat for each line L in tData put (item 1 of L/div1) &","& (item 2 of L/div2) &CR after stdout end repeat The Rule is: Less is More. Obvious with hindsight. Should have optimized before asking. Note to self: Do not expect to function on 4 hours of sleep. Thanks to all who investigated and contributed. Wrists considered slapped. Hugh Senior FLCo --- Original was: Problem: I have a long list of several thousand lines. Each line contains two comma-separated numbers. I want to divide the first item of each line by one divisor, and divide the second item of each line by a different divisor. The list order must stay the same. Example: Using 2 and 5 as divisors... 10,10 12,15 8,12 would become 5,2 6,3 4,2.4 Options: 1. Using "repeat with n=1 to num of lines" takes far too long. 2. Using "repeat for each line L" either attempts to modify read-only data, or is only 25% faster using a dumping variable. 3. Using split/combine will mess up the ordering (numeric array keys are not sorted numerically with combine). Any other ideas? Hugh Senior FLCo From revolution at derbrill.de Fri Mar 11 06:48:05 2011 From: revolution at derbrill.de (Malte Brill) Date: Fri, 11 Mar 2011 12:48:05 +0100 Subject: Coding Challenge In-Reply-To: References: Message-ID: Hi Alex, well what I need to do is to check if the relationship I am wanting to set is valid or not, before I write it to the database. I might not be clear enough. But my goal is not really to check for existing relations, but the validity of the data I am about to enter into the Database. So if there is no relation at all, any relation is valid. Direct relations are clear and indirect relations need to be checked for. Maybe I just dot understand how I would use your script in that case. Sorry for the confusion. Malte From gerry.orkin at gmail.com Fri Mar 11 07:06:33 2011 From: gerry.orkin at gmail.com (Gerry) Date: Fri, 11 Mar 2011 23:06:33 +1100 Subject: Arggggh. put Google maps URL weirdness In-Reply-To: <4D7A01E1.6070302@tweedly.net> References: <09FA941D-6A9F-4657-BF21-0B5837BEFC44@derbrill.de> <9D80BC64B6D84C078539FC2092FF863E@gmail.com> <4D7A01E1.6070302@tweedly.net> Message-ID: That's it! I actually jumped out of bed to try that, and found your message suggesting the same thing! Phew. Thanks for your response! Gerry -- photo site: http://gerryorkin.com On Friday, 11 March 2011 at 10:05 PM, Alex Tweedly wrote: > Haven't tried, but I always use parentheses with URL, so try > > put url ("http://maps.google.com/maps/api/staticmap?center="& fld "place"& "&zoom=8&size=512x512&maptype=roadmap&sensor=false") into someimage > > > -- Alex. > > On 11/03/2011 10:55, Gerry wrote: > > This works: > > > > put url "http://maps.google.com/maps/api/staticmap?center=canberra&zoom=8&size=512x512&maptype=roadmap&sensor=false" into someimage > > put someimage into image 1 > > > > > > > > But when I use the text in a field in building the url it breaks - I get a "bad request 400 error" from the Google server: > > > > put url "http://maps.google.com/maps/api/staticmap?center="& fld "place"& "&zoom=8&size=512x512&maptype=roadmap&sensor=false" into someimage > > put someimage into image 1 > > > > What am I missing? When I write the string out to the message box and then paste that into the url field in my browser, it works fine. > > > > Argggh. > > > > Gerry > > > > > > > > > > > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bonnmike at gmail.com Fri Mar 11 08:12:12 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Fri, 11 Mar 2011 06:12:12 -0700 Subject: Arggggh. put Google maps URL weirdness In-Reply-To: References: <09FA941D-6A9F-4657-BF21-0B5837BEFC44@derbrill.de> <9D80BC64B6D84C078539FC2092FF863E@gmail.com> <4D7A01E1.6070302@tweedly.net> Message-ID: Could also use merge for this Could have your default string stored in a property, load it into a global on startup then use merge. global gDefUrl put the defUrl of this stack into gDefUrl This would be in defUrl http://maps.google.com/maps/api/staticmap?center=[[fld "zoom"]]=8&size=512x512&maptype=roadmap&sensor=false at which point it becomes put url merge(gDefUrl) into someimage Plus, if you do it this way, you can replace size and maptype with placeholders too so they're all easily configurable on the fly. On Fri, Mar 11, 2011 at 5:06 AM, Gerry wrote: > That's it! I actually jumped out of bed to try that, and found your message > suggesting the same thing! > > Phew. Thanks for your response! > > Gerry > > -- photo site: http://gerryorkin.com > > On Friday, 11 March 2011 at 10:05 PM, Alex Tweedly wrote: > > Haven't tried, but I always use parentheses with URL, so try > > > > put url ("http://maps.google.com/maps/api/staticmap?center="& fld > "place"& "&zoom=8&size=512x512&maptype=roadmap&sensor=false") into someimage > > > > > > -- Alex. > > > > On 11/03/2011 10:55, Gerry wrote: > > > This works: > > > > > > put url " > http://maps.google.com/maps/api/staticmap?center=canberra&zoom=8&size=512x512&maptype=roadmap&sensor=false" > into someimage > > > put someimage into image 1 > > > > > > > > > > > > But when I use the text in a field in building the url it breaks - I > get a "bad request 400 error" from the Google server: > > > > > > put url "http://maps.google.com/maps/api/staticmap?center="& fld > "place"& "&zoom=8&size=512x512&maptype=roadmap&sensor=false" into someimage > > > put someimage into image 1 > > > > > > What am I missing? When I write the string out to the message box and > then paste that into the url field in my browser, it works fine. > > > > > > Argggh. > > > > > > Gerry > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at lists.runrev.com > > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From revolution at derbrill.de Fri Mar 11 08:26:31 2011 From: revolution at derbrill.de (Malte Brill) Date: Fri, 11 Mar 2011 14:26:31 +0100 Subject: Coding Challenge In-Reply-To: References: Message-ID: <2CA007CF-BBEA-4A42-9839-ED3F81A698FC@derbrill.de> Ok, I will not claim I understand how this works, but it appears to do. :-) Still needs more testing, but for now I think it works. Cheers, Malte I have been asking a colleague for help (Danke danke danke Steffen) and here is what he came up with: local sRelations, sOpList on mouseUp local tValid delete variable sRelations delete variable sOpList set the itemdel to TAB -- fld Data is TAb delimited. Person1 TAB Operator TAB Person2 repeat for each line theLine in fld "data" if item 2 of theLine = "=" then put "=" into sRelations[item 1 of theLine][item 3 of theLine] put "=" into sRelations[item 3 of theLine][item 1 of theLine] end if if item 2 of theLine = "<" then put "<" into sRelations[item 1 of theLine][item 3 of theLine] put ">" into sRelations[item 3 of theLine][item 1 of theLine] end if if item 2 of theLine = ">" then put ">" into sRelations[item 1 of theLine][item 3 of theLine] put "<" into sRelations[item 3 of theLine][item 1 of theLine] end if end repeat answer checkForValidRelation(the text of fld "pers1",the text of fld "pers2",the label of btn "relation") -- returns true or false for the validity of the relation you are about to set. end mouseUp private function checkForValidRelation pPers1,pPers2,pRelation local tResolved put resolveRelation(pPers1,pPers2,pRelation) into tResolved if not tResolved then return true return (checkOperator(pRelation) = pRelation) end checkForValidRelation private function resolveRelation pPers1,pPers2,pRelation if sRelations[pPers1][pPers2] is not empty then put sRelations[pPers1][pPers2] & cr after sOpList return true end if -- iterate through list return traverseList(pPers1,pPers2,pRelation) end resolveRelation private function traverseList pPers1,pPers2,pRelation local tOther put the keys of sRelations[pPers1] into tOther repeat for each line personB in tOther if personB = pPers2 then put sRelations[pPers1][personB] & cr after sOpList return true else if traverseList(pPers1,personB,pRelation) then return true end if end if end repeat return false end traverseList private function checkOperator pRelation local tSame, tLast put true into tSame put pRelation into tLast repeat for each line theLine in sOpList if theLine is not empty then if theLine <> pRelation then put false into tSame end if put theLine into tLast end if end repeat if not tSame then return tLast end if return pRelation end checkOperator From richmondmathewson at gmail.com Fri Mar 11 11:39:30 2011 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 11 Mar 2011 18:39:30 +0200 Subject: Importing big JPEGs goes wonky Message-ID: <4D7A5042.6000708@gmail.com> They become corrupted. Behaviour reported on MacPPC, MacINTEL and Windows, From dixonja at hotmail.co.uk Fri Mar 11 11:45:38 2011 From: dixonja at hotmail.co.uk (John Dixon) Date: Fri, 11 Mar 2011 16:45:38 +0000 Subject: Importing big JPEGs goes wonky In-Reply-To: <4D7A5042.6000708@gmail.com> References: <4D7A5042.6000708@gmail.com> Message-ID: How big is big ? > Date: Fri, 11 Mar 2011 18:39:30 +0200 > From: richmondmathewson at gmail.com > To: use-livecode at lists.runrev.com > Subject: Importing big JPEGs goes wonky > > They become corrupted. > > Behaviour reported on MacPPC, MacINTEL and Windows, > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Fri Mar 11 11:48:45 2011 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 11 Mar 2011 18:48:45 +0200 Subject: Importing big JPEGs goes wonky In-Reply-To: References: <4D7A5042.6000708@gmail.com> Message-ID: <4D7A526D.1060702@gmail.com> On 03/11/2011 06:45 PM, John Dixon wrote: > How big is big ? > 4150 x 1120 >> Date: Fri, 11 Mar 2011 18:39:30 +0200 >> From: richmondmathewson at gmail.com >> To: use-livecode at lists.runrev.com >> Subject: Importing big JPEGs goes wonky >> >> They become corrupted. >> >> Behaviour reported on MacPPC, MacINTEL and Windows, >> _______________________________________________ From jmyepes at mac.com Fri Mar 11 12:11:29 2011 From: jmyepes at mac.com (JosepM) Date: Fri, 11 Mar 2011 09:11:29 -0800 (PST) Subject: datagrid: force to send "on closeeditor" to one column In-Reply-To: References: <1299615877631-3342154.post@n4.nabble.com> <4B7870E6-5153-4C6B-9E28-AB4B82A541D6@twft.com> <1299618562477-3342231.post@n4.nabble.com> <1299624717290-3342398.post@n4.nabble.com> <1299633730121-3342588.post@n4.nabble.com> Message-ID: <1299863489816-3348633.post@n4.nabble.com> Seems that I prefer check before finish the drop operation... Thanks, Josep -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/datagrid-force-to-send-on-closeeditor-to-one-column-tp3342154p3348633.html Sent from the Revolution - User mailing list archive at Nabble.com. From ambassador at fourthworld.com Fri Mar 11 12:16:35 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 11 Mar 2011 09:16:35 -0800 Subject: > Importing big JPEGs goes wonky Message-ID: <4D7A58F3.7090500@fourthworld.com> Richmond wrote: > On 03/11/2011 06:45 PM, John Dixon wrote: >> How big is big ? > > 4150 x 1120 This is a known issue with images > 4096px, which I believe has been fixed for the forthcoming v4.6. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From jmyepes at mac.com Fri Mar 11 12:35:13 2011 From: jmyepes at mac.com (JosepM) Date: Fri, 11 Mar 2011 09:35:13 -0800 (PST) Subject: datagrid: when sort by text column datagrid add many empty rows Message-ID: <1299864913782-3348673.post@n4.nabble.com> Hi, I detected that when I order by a column that is defined as text and scroll down to the last row many many empty rows are added and cause that only the last row left visible on top of the datagrid and the rows scroll without moving it, if you scroll up again the rows after pass the empty ones appear again. If I order again with a number col the behaviour is normal again. Any idea why? a bug? Salut, Josep M -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/datagrid-when-sort-by-text-column-datagrid-add-many-empty-rows-tp3348673p3348673.html Sent from the Revolution - User mailing list archive at Nabble.com. From ambassador at fourthworld.com Fri Mar 11 12:36:02 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 11 Mar 2011 09:36:02 -0800 Subject: Efficiency question for list modification In-Reply-To: References: Message-ID: <4D7A5D82.5030100@fourthworld.com> FlexibleLearning wrote: > Proof of how optimized syntax can make an enormous difference to speed (by > orders of magnitude in this case). > > This is BAD... > repeat for each line L in tData > add 1 to n > put (item 1 of L/div1) into item 1 of line n of stdout > put (item 2 of L/div2) into item 2 of line n of stdout > end repeat > > This is GOOD... > repeat for each line L in tData > put (item 1 of L/div1) &","& (item 2 of L/div2) &CR after stdout > end repeat > > The Rule is: Less is More. Sometimes. Hard to generalize along those lines when you come to things like RegEx, which is very compact to write but so enormously generalized that it's often slower than brute-force parsing using simple chunks. One non-obvious detail worth noting in your second example is that some years ago Raney optimized the "after" form of "put" so some of the overhead you might normally expect under the hood with those sorts of wholesale block moves is somewhat alleviated, delivering a bit perkier performance. But the big tell-tale sign with the example above is the presence of the line number specifier inside the loop. I know you know this, but for the benefit of the many newcomers who've joined this list in recent months: Expressions relying on delimiters (token, word, item, line) are simple to write and often very efficient, but when using them on large amounts of data may be somewhat slow. esp. if used repeatedly within a loop. In the example above, "line n of stdout" requires that the engine walk through each character in stdout, counting the return chars as it goes, stopping only after it reaches n returns. Doing this once may not be so bad, but within a repeat loop it has to keep going over and over the same set of characters each time through the loop. Fortunately, as the second example takes advantage of, the "repeat for each" method only walks through the data once, keeping track of where it is in each iteration and conveniently parsing out the last chunk ready for use within the loop. This avoids the redundant traversal caused by specifying the line number within the loop, and often results in a performance boost of at least an order of magnitude, often a few orders. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From jacque at hyperactivesw.com Fri Mar 11 12:36:19 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 11 Mar 2011 11:36:19 -0600 Subject: Standalone problem In-Reply-To: References: Message-ID: <4D7A5D93.3010902@hyperactivesw.com> On 3/10/11 11:18 AM, edward cawley wrote: > Thank you much Jacque, I'm almost there. I made the changes you > suggested and I have one remaining problem. > > If I run it off the shared disk in VM Fusion it works fine, but if I > move the app and associated files to the C drive on the > students laptops, or on the C drive on the Windows OS on the VM > Fusion, the last 60 files in the folder do not > transfer. I have 300 small files on the folder, is there some limit > on how many files can be in a folder in Windows? If not any ideas why > they do not transfer? Is it a Window problem or a VM problem? As somebody mentioned, it could be a permissions problem. Can you copy the files manually? That would be a good test. Is there enough room on the drive? A virtual device may not have enough room. I don't think there's a folder limit. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jmyepes at mac.com Fri Mar 11 12:37:16 2011 From: jmyepes at mac.com (JosepM) Date: Fri, 11 Mar 2011 09:37:16 -0800 (PST) Subject: [ANN} iOS UINavigationBar Kit V 1.4.2 Released In-Reply-To: <7F09E191-4C53-4317-A6B1-08B9718A4560@comcast.net> References: <7F09E191-4C53-4317-A6B1-08B9718A4560@comcast.net> Message-ID: <1299865036808-3348685.post@n4.nabble.com> Thanks! :) -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-iOS-UINavigationBar-Kit-V-1-4-2-Released-tp3346875p3348685.html Sent from the Revolution - User mailing list archive at Nabble.com. From bobs at twft.com Fri Mar 11 12:47:56 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 11 Mar 2011 09:47:56 -0800 Subject: Arggggh. put Google maps URL weirdness In-Reply-To: <9D80BC64B6D84C078539FC2092FF863E@gmail.com> References: <09FA941D-6A9F-4657-BF21-0B5837BEFC44@derbrill.de> <9D80BC64B6D84C078539FC2092FF863E@gmail.com> Message-ID: <1E0F0AC5-F80B-4E56-A1CB-71CC0139079B@twft.com> When I do this, I am getting the HTML for the image, and not the image itself. Therefore the statement "put someImage into image 1" fails. Bob On Mar 11, 2011, at 2:55 AM, Gerry wrote: > This works: > > put url "http://maps.google.com/maps/api/staticmap?center=canberra&zoom=8&size=512x512&maptype=roadmap&sensor=false" into someimage > put someimage into image 1 > > > > But when I use the text in a field in building the url it breaks - I get a "bad request 400 error" from the Google server: > > put url "http://maps.google.com/maps/api/staticmap?center=" & fld "place" & "&zoom=8&size=512x512&maptype=roadmap&sensor=false" into someimage > put someimage into image 1 > > What am I missing? When I write the string out to the message box and then paste that into the url field in my browser, it works fine. > > Argggh. > > Gerry > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobs at twft.com Fri Mar 11 12:51:01 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 11 Mar 2011 09:51:01 -0800 Subject: Arggggh. put Google maps URL weirdness In-Reply-To: <9D80BC64B6D84C078539FC2092FF863E@gmail.com> References: <09FA941D-6A9F-4657-BF21-0B5837BEFC44@derbrill.de> <9D80BC64B6D84C078539FC2092FF863E@gmail.com> Message-ID: <69138609-34DB-4662-80DA-1BD6AD47E9D3@twft.com> I would imagine you have more than you think in the field. It probably contains a space, a tab or a carriage return, or some other invisible character. Try stepping through your code and looking at the contents of the variables. You will have to put the field contents into a variable to do this properly. Also, I would put the entire url into a variable first, then issue your put url statement with the variable. It's cleaner coding and easier to troubleshoot. Bob On Mar 11, 2011, at 2:55 AM, Gerry wrote: > This works: > > put url "http://maps.google.com/maps/api/staticmap?center=canberra&zoom=8&size=512x512&maptype=roadmap&sensor=false" into someimage > put someimage into image 1 > > > > But when I use the text in a field in building the url it breaks - I get a "bad request 400 error" from the Google server: > > put url "http://maps.google.com/maps/api/staticmap?center=" & fld "place" & "&zoom=8&size=512x512&maptype=roadmap&sensor=false" into someimage > put someimage into image 1 > > What am I missing? When I write the string out to the message box and then paste that into the url field in my browser, it works fine. > > Argggh. > > Gerry > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobs at twft.com Fri Mar 11 12:54:43 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 11 Mar 2011 09:54:43 -0800 Subject: Efficiency question for list modification In-Reply-To: References: Message-ID: hmmm interesting, concatenation is much better than enumeration. Whoda think it? I will keep that in mind for large data sets. Thanks for the info! Bob On Mar 11, 2011, at 3:24 AM, FlexibleLearning wrote: > Proof of how optimized syntax can make an enormous difference to speed (by > orders of magnitude in this case). > > This is BAD... > repeat for each line L in tData > add 1 to n > put (item 1 of L/div1) into item 1 of line n of stdout > put (item 2 of L/div2) into item 2 of line n of stdout > end repeat > > This is GOOD... > repeat for each line L in tData > put (item 1 of L/div1) &","& (item 2 of L/div2) &CR after stdout > end repeat From bobs at twft.com Fri Mar 11 13:06:40 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 11 Mar 2011 10:06:40 -0800 Subject: Arggggh. put Google maps URL weirdness In-Reply-To: References: <09FA941D-6A9F-4657-BF21-0B5837BEFC44@derbrill.de> <9D80BC64B6D84C078539FC2092FF863E@gmail.com> <4D7A01E1.6070302@tweedly.net> Message-ID: <118A9C3E-C3AD-4BE0-934E-C349DDC253CC@twft.com> I have this in a button on a card with a field named "Place". on mouseUp pMouseBtnNo breakpoint put url ("http://maps.google.com/maps/api/staticmap?center=" & fld "place" & "&zoom=8&size=512x512&maptype=roadmap&sensor=false") into someimage put someimage into image 1 end mouseUp someimage now contains graphic data alright, but the command "put someimage into image 1" returns this error Runtime error Friday, March 11, 2011 10:05:00 AM Error 89: Chunk: no such object Why? Error 95: Chunk: can't find object to store into Error 466: put: can't set destination Error 241: Handler: error in statement Error at char 30 of line 6 in handler mouseUp Code: "Image1" (=1) How I got here: put someimage into image 1 Bob On Mar 11, 2011, at 4:06 AM, Gerry wrote: > That's it! I actually jumped out of bed to try that, and found your message suggesting the same thing! > > Phew. Thanks for your response! > > Gerry > > -- photo site: http://gerryorkin.com > > On Friday, 11 March 2011 at 10:05 PM, Alex Tweedly wrote: >> Haven't tried, but I always use parentheses with URL, so try >> >> put url ("http://maps.google.com/maps/api/staticmap?center="& fld "place"& "&zoom=8&size=512x512&maptype=roadmap&sensor=false") into someimage >> >> >> -- Alex. >> >> On 11/03/2011 10:55, Gerry wrote: >>> This works: >>> >>> put url "http://maps.google.com/maps/api/staticmap?center=canberra&zoom=8&size=512x512&maptype=roadmap&sensor=false" into someimage >>> put someimage into image 1 >>> >>> >>> >>> But when I use the text in a field in building the url it breaks - I get a "bad request 400 error" from the Google server: >>> >>> put url "http://maps.google.com/maps/api/staticmap?center="& fld "place"& "&zoom=8&size=512x512&maptype=roadmap&sensor=false" into someimage >>> put someimage into image 1 >>> >>> What am I missing? When I write the string out to the message box and then paste that into the url field in my browser, it works fine. >>> >>> Argggh. >>> >>> Gerry >>> >>> >>> >>> >>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From form at nonsanity.com Fri Mar 11 13:37:12 2011 From: form at nonsanity.com (Nonsanity) Date: Fri, 11 Mar 2011 13:37:12 -0500 Subject: Coding Challenge In-Reply-To: <2CA007CF-BBEA-4A42-9839-ED3F81A698FC@derbrill.de> References: <2CA007CF-BBEA-4A42-9839-ED3F81A698FC@derbrill.de> Message-ID: I don't think this works... The Iterating function doesn't really iterate. It just does a bit of tire spinning without going anywhere. And gives a wrong result. Let say the array looked like this: [B][A] = > [B][C] = < [B][D] = < [C][E] = < [D][E] = < Which is enough information to determine this order using my algorithm (which isn't complete itself): A B (C D) E Where A is the youngest, E is the oldest, but we don't know the relationship between C and D. Now if we want to find out the relationship between B and E and call resolveRelation: 1) Is there an entry for [B][E]? No, so call traverseList. 2) Repeat for each element of [B] (which is A C and D). 3) Is it "E"? No, none of them (A C D) are E or ever will be, since we already tested for that pair. 4) Call traverseList with [B] and the element we are testing first, [A]. 5) Repeat for each element of [B] (which is still A C and D). 6) Is it "A"? Yes it is. It had to be. We just did this. 7) Put the relationship between A and B into the output global. 8) Exit this traverseList with true. 9) Exit the top traverseList with true. Query: What is the relationship between B and E? Result: The relationship between B and A is >. Exclamation: That wasn't what I asked for, stupid computer! Grumble: ...always doing what I TELL it to do instead of what I WANT it to do... (Real Answer: < ) ~ Chris Innanen ~ Nonsanity On Fri, Mar 11, 2011 at 8:26 AM, Malte Brill wrote: > Ok, > > I will not claim I understand how this works, but it appears to do. :-) > Still needs more testing, but for now I think it works. > > Cheers, > > Malte > > I have been asking a colleague for help (Danke danke danke Steffen) and > here is what he came up with: > > local sRelations, sOpList > > on mouseUp > local tValid > delete variable sRelations > delete variable sOpList > set the itemdel to TAB > -- fld Data is TAb delimited. Person1 TAB Operator TAB Person2 > repeat for each line theLine in fld "data" > if item 2 of theLine = "=" then > put "=" into sRelations[item 1 of theLine][item 3 of theLine] > put "=" into sRelations[item 3 of theLine][item 1 of theLine] > end if > if item 2 of theLine = "<" then > put "<" into sRelations[item 1 of theLine][item 3 of theLine] > put ">" into sRelations[item 3 of theLine][item 1 of theLine] > end if > if item 2 of theLine = ">" then > put ">" into sRelations[item 1 of theLine][item 3 of theLine] > put "<" into sRelations[item 3 of theLine][item 1 of theLine] > end if > end repeat > answer checkForValidRelation(the text of fld "pers1",the text of fld > "pers2",the label of btn "relation") > -- returns true or false for the validity of the relation you are about > to set. > end mouseUp > > private function checkForValidRelation pPers1,pPers2,pRelation > local tResolved > put resolveRelation(pPers1,pPers2,pRelation) into tResolved > if not tResolved then return true > return (checkOperator(pRelation) = pRelation) > end checkForValidRelation > > private function resolveRelation pPers1,pPers2,pRelation > if sRelations[pPers1][pPers2] is not empty then > put sRelations[pPers1][pPers2] & cr after sOpList > return true > end if > -- iterate through list > return traverseList(pPers1,pPers2,pRelation) > end resolveRelation > > private function traverseList pPers1,pPers2,pRelation > local tOther > put the keys of sRelations[pPers1] into tOther > repeat for each line personB in tOther > if personB = pPers2 then > put sRelations[pPers1][personB] & cr after sOpList > return true > else > if traverseList(pPers1,personB,pRelation) then > return true > end if > end if > end repeat > return false > end traverseList > > private function checkOperator pRelation > local tSame, tLast > put true into tSame > put pRelation into tLast > repeat for each line theLine in sOpList > if theLine is not empty then > if theLine <> pRelation then > put false into tSame > end if > put theLine into tLast > end if > end repeat > if not tSame then > return tLast > end if > return pRelation > end checkOperator > > From bobs at twft.com Fri Mar 11 13:46:16 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 11 Mar 2011 10:46:16 -0800 Subject: datagrid: when sort by text column datagrid add many empty rows In-Reply-To: <1299864913782-3348673.post@n4.nabble.com> References: <1299864913782-3348673.post@n4.nabble.com> Message-ID: Seems you have empty rows or rows with no data in the column you are sorting by. To determine if this is true, get the dgText of the datagrid, and examine it either in the debugger or else by putting it in a scrolling field. I made a custom sort function that sorts rows with a particular value to the top, another value second, empty third. Before I sort however, I remove rows that are all blank, that have nothing in any of the columns. -- find and remove blank lines put false into foundBlanks repeat forever dispatch findIndex to group "dgMerge" with \ "PriFields",empty,"SecFields",empty put the result into theResult if theResult is 0 then exit repeat put true into foundBlanks dispatch deleteIndex to group "dgMerge" with theResult end repeat Obviously you will have to modify this for your own columns, and with a little more work you can even make this generic for all datagrids. Bob On Mar 11, 2011, at 9:35 AM, JosepM wrote: > Hi, > > I detected that when I order by a column that is defined as text and scroll > down to the last row many many empty rows are added and cause that only the > last row left visible on top of the datagrid and the rows scroll without > moving it, if you scroll up again the rows after pass the empty ones appear > again. > If I order again with a number col the behaviour is normal again. > > Any idea why? a bug? > > > Salut, > Josep M > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/datagrid-when-sort-by-text-column-datagrid-add-many-empty-rows-tp3348673p3348673.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From form at nonsanity.com Fri Mar 11 13:54:08 2011 From: form at nonsanity.com (Nonsanity) Date: Fri, 11 Mar 2011 13:54:08 -0500 Subject: Coding Challenge In-Reply-To: <2CA007CF-BBEA-4A42-9839-ED3F81A698FC@derbrill.de> References: <2CA007CF-BBEA-4A42-9839-ED3F81A698FC@derbrill.de> Message-ID: Try this. I haven't tested, but the logic looks sound enough... private function resolveRelation pPers1,pPers2,pRelation put sRelations[pPers1][pPers2] into relationship -- if the two are equal but we're testing for > or < then return false if relationship is "=" and pRelation is not "=" then return false -- else if the relationship is a direct match, return true else relationship = pRelation then return true end if -- otherwise, interate to see if the relationship is true -- note that at this point, we know the two aren't directly equal -- this is important because the first interation HAS to be > or < and not >= or <= -- further interations can be >= and <=, but the first cannot get traverseList(pPers1,pPers2,pRelation) -- if the relationship is valid, then put it into the DB to save time later if it is true then set sRelations[pPers1][pPers2] to pRelation end if return it end resolveRelation private function traverseList pPers1,pPers2,pRelation -- are the two people of the correct relationship and/or equal? if sRelations[pPers2][pPers2] = pRelation or sRelations[pPers2][pPers2] = pRelation then return true end if local tOther put the keys of sRelations[pPers1] into tOther repeat for each line personB in tOther -- only follow branches leading to the same relationship we are testing (< or >) -- OR =, so long as the first iteration was < or > -- So if: A wrote: > Ok, > > I will not claim I understand how this works, but it appears to do. :-) > Still needs more testing, but for now I think it works. > > Cheers, > > Malte > > I have been asking a colleague for help (Danke danke danke Steffen) and > here is what he came up with: > > local sRelations, sOpList > > on mouseUp > local tValid > delete variable sRelations > delete variable sOpList > set the itemdel to TAB > -- fld Data is TAb delimited. Person1 TAB Operator TAB Person2 > repeat for each line theLine in fld "data" > if item 2 of theLine = "=" then > put "=" into sRelations[item 1 of theLine][item 3 of theLine] > put "=" into sRelations[item 3 of theLine][item 1 of theLine] > end if > if item 2 of theLine = "<" then > put "<" into sRelations[item 1 of theLine][item 3 of theLine] > put ">" into sRelations[item 3 of theLine][item 1 of theLine] > end if > if item 2 of theLine = ">" then > put ">" into sRelations[item 1 of theLine][item 3 of theLine] > put "<" into sRelations[item 3 of theLine][item 1 of theLine] > end if > end repeat > answer checkForValidRelation(the text of fld "pers1",the text of fld > "pers2",the label of btn "relation") > -- returns true or false for the validity of the relation you are about > to set. > end mouseUp > > private function checkForValidRelation pPers1,pPers2,pRelation > local tResolved > put resolveRelation(pPers1,pPers2,pRelation) into tResolved > if not tResolved then return true > return (checkOperator(pRelation) = pRelation) > end checkForValidRelation > > private function resolveRelation pPers1,pPers2,pRelation > if sRelations[pPers1][pPers2] is not empty then > put sRelations[pPers1][pPers2] & cr after sOpList > return true > end if > -- iterate through list > return traverseList(pPers1,pPers2,pRelation) > end resolveRelation > > private function traverseList pPers1,pPers2,pRelation > local tOther > put the keys of sRelations[pPers1] into tOther > repeat for each line personB in tOther > if personB = pPers2 then > put sRelations[pPers1][personB] & cr after sOpList > return true > else > if traverseList(pPers1,personB,pRelation) then > return true > end if > end if > end repeat > return false > end traverseList > > private function checkOperator pRelation > local tSame, tLast > put true into tSame > put pRelation into tLast > repeat for each line theLine in sOpList > if theLine is not empty then > if theLine <> pRelation then > put false into tSame > end if > put theLine into tLast > end if > end repeat > if not tSame then > return tLast > end if > return pRelation > end checkOperator > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From form at nonsanity.com Fri Mar 11 14:32:23 2011 From: form at nonsanity.com (Nonsanity) Date: Fri, 11 Mar 2011 14:32:23 -0500 Subject: Coding Challenge In-Reply-To: References: <2CA007CF-BBEA-4A42-9839-ED3F81A698FC@derbrill.de> Message-ID: On Fri, Mar 11, 2011 at 1:54 PM, Nonsanity wrote: > Try this. I haven't tested, but the logic looks sound enough... Actually, don't try that, try this. That one had flaws this one should fix. (But again, not tested at ALL.) private function resolveRelation pPers1,pPers2,pRelation put sRelations[pPers1][pPers2] into relationship -- if the relationship is a direct match, return true if relationship = pRelation then return true -- else if there is a direct relationship, but not the one we're testing for, then fail else if relationship is not empty and relationship is not pRelation then return false end if -- make a reversed copy of our target relationship put pRelation into Rel if pRelation is "<" then put ">" into Rel else if pRelation is ">" then put "<" into Rel -- otherwise, there is no direct relationship, so look for an indirect one -- to find one, we first find other items related to both inputs that have the same relationship exactly -- then iterate through the tree looking for further >= or <= relationships local tOther put the keys of sRelations[pPers1] into tOther repeat for each line personB in tOther if sRelations[pPers1][personB] = pRelation then get traverseList(pPers1,personB,pRelation,Rel) if it is true then set sRelations[pPers1][pPers2] to pRelation set sRelations[pPers2][pPers1] to Rel return true end if end if end repeat -- test for the other direction, reverse everything put the keys of sRelations[pPers2] into tOther repeat for each line personB in tOther if sRelations[pPers2] = Rel then get traverseList(pPers2,personB,Rel,Rel) if it is true then set sRelations[pPers1][pPers2] to pRelation set sRelations[pPers2][pPers1] to Rel return true end if end if end repeat return false end resolveRelation -- pPersV varies as we move through the tree -- pPersX is our target person private function traverseList pPersV,pPersX,pRelation,pRevRel -- are the two people of the correct relationship and/or equal? if sRelations[pPersV][pPersX] = pRelation or sRelations[pPersV][pPersX] = "=" then return true end if local tOther put the keys of sRelations[pPersV] into tOther repeat for each line personB in tOther -- only follow branches leading to the same relationship we are testing (<= or >=) -- So if: A References: <2CA007CF-BBEA-4A42-9839-ED3F81A698FC@derbrill.de> Message-ID: On Fri, Mar 11, 2011 at 2:32 PM, Nonsanity wrote: > On Fri, Mar 11, 2011 at 1:54 PM, Nonsanity wrote: > >> Try this. I haven't tested, but the logic looks sound enough... > > > Actually, don't try that, try this. That one had flaws this one should fix. > (But again, not tested at ALL.) > Typo. Replace "Rel,Rel" with "Rel,pRelation" in the previous code. ~ Chris Innanen ~ Nonsanity From richmondmathewson at gmail.com Fri Mar 11 14:49:11 2011 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 11 Mar 2011 21:49:11 +0200 Subject: > Importing big JPEGs goes wonky In-Reply-To: <4D7A58F3.7090500@fourthworld.com> References: <4D7A58F3.7090500@fourthworld.com> Message-ID: <4D7A7CB7.1000803@gmail.com> On 03/11/2011 07:16 PM, Richard Gaskin wrote: > Richmond wrote: > >> On 03/11/2011 06:45 PM, John Dixon wrote: >>> How big is big ? >> 4150 x 1120 > This is a known issue with images> 4096px, which I believe has been > fixed for the forthcoming v4.6. > Thanks for the help. However . . . until I've "made my pile" I'm stuck with 4.0. From richmondmathewson at gmail.com Fri Mar 11 15:47:14 2011 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 11 Mar 2011 22:47:14 +0200 Subject: [OT] Autocad clone for Linux Message-ID: <4D7A8A52.3060902@gmail.com> Mmmm . . . tasty: http://www.omgubuntu.co.uk/2011/03/autocad-clone-draftsight-hits-linux-beta/ From gerry.orkin at gmail.com Fri Mar 11 16:22:21 2011 From: gerry.orkin at gmail.com (Gerry Orkin) Date: Sat, 12 Mar 2011 08:22:21 +1100 Subject: Arggggh. put Google maps URL weirdness In-Reply-To: <118A9C3E-C3AD-4BE0-934E-C349DDC253CC@twft.com> References: <09FA941D-6A9F-4657-BF21-0B5837BEFC44@derbrill.de> <9D80BC64B6D84C078539FC2092FF863E@gmail.com> <4D7A01E1.6070302@tweedly.net> <118A9C3E-C3AD-4BE0-934E-C349DDC253CC@twft.com> Message-ID: <13475636-6196-4E2B-A327-A9A035AF17B9@gmail.com> Bob, it's working here :) Gerry -- http://gerryorkin.com On 12/03/2011, at 5:06 AM, Bob Sneidar wrote: > I have this in a button on a card with a field named "Place". > > on mouseUp pMouseBtnNo > breakpoint > put url ("http://maps.google.com/maps/api/staticmap?center=" & fld "place" & "&zoom=8&size=512x512&maptype=roadmap&sensor=false") into someimage > put someimage into image 1 > end mouseUp > > someimage now contains graphic data alright, but the command "put someimage into image 1" returns this error > > Runtime error Friday, March 11, 2011 10:05:00 AM > Error 89: Chunk: no such object > Why? > Error 95: Chunk: can't find object to store into > Error 466: put: can't set destination > Error 241: Handler: error in statement > Error at char 30 of line 6 in handler mouseUp > Code: "Image1" (=1) > How I got here: > put someimage into image 1 > > > Bob > > > On Mar 11, 2011, at 4:06 AM, Gerry wrote: > >> That's it! I actually jumped out of bed to try that, and found your message suggesting the same thing! >> >> Phew. Thanks for your response! >> >> Gerry >> >> -- photo site: http://gerryorkin.com >> >> On Friday, 11 March 2011 at 10:05 PM, Alex Tweedly wrote: >>> Haven't tried, but I always use parentheses with URL, so try >>> >>> put url ("http://maps.google.com/maps/api/staticmap?center="& fld "place"& "&zoom=8&size=512x512&maptype=roadmap&sensor=false") into someimage >>> >>> >>> -- Alex. >>> >>> On 11/03/2011 10:55, Gerry wrote: >>>> This works: >>>> >>>> put url "http://maps.google.com/maps/api/staticmap?center=canberra&zoom=8&size=512x512&maptype=roadmap&sensor=false" into someimage >>>> put someimage into image 1 >>>> >>>> >>>> >>>> But when I use the text in a field in building the url it breaks - I get a "bad request 400 error" from the Google server: >>>> >>>> put url "http://maps.google.com/maps/api/staticmap?center="& fld "place"& "&zoom=8&size=512x512&maptype=roadmap&sensor=false" into someimage >>>> put someimage into image 1 >>>> >>>> What am I missing? When I write the string out to the message box and then paste that into the url field in my browser, it works fine. >>>> >>>> Argggh. >>>> >>>> Gerry >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobs at twft.com Fri Mar 11 16:59:47 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 11 Mar 2011 13:59:47 -0800 Subject: Arggggh. put Google maps URL weirdness In-Reply-To: <13475636-6196-4E2B-A327-A9A035AF17B9@gmail.com> References: <09FA941D-6A9F-4657-BF21-0B5837BEFC44@derbrill.de> <9D80BC64B6D84C078539FC2092FF863E@gmail.com> <4D7A01E1.6070302@tweedly.net> <118A9C3E-C3AD-4BE0-934E-C349DDC253CC@twft.com> <13475636-6196-4E2B-A327-A9A035AF17B9@gmail.com> Message-ID: Are you creating image 1 first before you do this? Bob On Mar 11, 2011, at 1:22 PM, Gerry Orkin wrote: > Bob, it's working here :) > > Gerry From etcawley at fastmail.fm Fri Mar 11 17:22:49 2011 From: etcawley at fastmail.fm (edward cawley) Date: Fri, 11 Mar 2011 16:22:49 -0600 Subject: Standalone Problems In-Reply-To: References: Message-ID: Thanks Bob, The permissions were the problem, some of the files were read only, so it worked fine from my system but when I tried to load it into the C drive it wouldn't transfer. Made them all read&write and it worked like a charm. Ed > > Message: 17 > Date: Thu, 10 Mar 2011 09:51:58 -0800 > From: Bob Sneidar > To: How to use LiveCode > Subject: Re: Standalone problem > Message-ID: <619E641B-BFA4-4112-9417-E2087D5AD028 at twft.com> > Content-Type: text/plain; charset=us-ascii > > Sounds like a local system problem. Try refreshing the folder view. I have copied files before and the view for whatever reason did not refresh properly, even after I closed and reopened it. > > The only other thing that could affect it is special permissions on the files themselves. If you know how, check the effective permissions on one of the files that don't copy. > > Bob > > > On Mar 10, 2011, at 9:18 AM, edward cawley wrote: > >> Thank you much Jacque, I'm almost there. >> I made the changes you suggested and I have one remaining problem. >> >> If I run it off the shared disk in VM Fusion it works fine, but if I move the app and associated files to the C drive on the students laptops, or on the C drive on the Windows OS on the VM Fusion, the last 60 files in the folder do not transfer. I have 300 small files on the folder, is there some limit on how many files can be in a folder in Windows? If not any ideas why they do not transfer? Is it a Window problem or a VM problem? >> >> Thanks again. >> Ed > > > > > > ******************************************** From gerry.orkin at gmail.com Fri Mar 11 17:48:26 2011 From: gerry.orkin at gmail.com (Gerry) Date: Sat, 12 Mar 2011 09:48:26 +1100 Subject: Arggggh. put Google maps URL weirdness In-Reply-To: References: <09FA941D-6A9F-4657-BF21-0B5837BEFC44@derbrill.de> <9D80BC64B6D84C078539FC2092FF863E@gmail.com> <4D7A01E1.6070302@tweedly.net> <118A9C3E-C3AD-4BE0-934E-C349DDC253CC@twft.com> <13475636-6196-4E2B-A327-A9A035AF17B9@gmail.com> Message-ID: <7471DB8C46224103A7040DA80292C95A@gmail.com> Yes, it's a blank image already on the card. g -- photo site: http://gerryorkin.com On Saturday, 12 March 2011 at 8:59 AM, Bob Sneidar wrote: > Are you creating image 1 first before you do this? > > Bob > > > On Mar 11, 2011, at 1:22 PM, Gerry Orkin wrote: > > > Bob, it's working here :) > > > > Gerry > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From alex at tweedly.net Fri Mar 11 18:56:23 2011 From: alex at tweedly.net (Alex Tweedly) Date: Fri, 11 Mar 2011 23:56:23 +0000 Subject: Coding Challenge In-Reply-To: References: Message-ID: <4D7AB6A7.6010006@tweedly.net> You could use getRelationship() as I sent earlier, but it would be a bit clumsy. Easier to test for validity directly, something like (off the top of my head ...) function canItBeValid p1, p2, pRelationship put sample(p1) into p1 put sample(p2) into p2 switch pRelationship case "=" if p1 is among the lines of gOlder[p2] then return false if p2 is among the lines of gOlder[p1] then return false return true case "<" if p1 = p2 then return false if p1 is among the lines of gOlder[p2] then return false return true case "> if p1 = p2 then return false if p2 is among the lines of gOlder[p1] then return false return true default ask "bad relationship" && pRelationship return false end switch end canItBeValid but I see from a later email you have something already working, so go with that :-) -- Alex. On 11/03/2011 11:48, Malte Brill wrote: > Hi Alex, > > well what I need to do is to check if the relationship I am wanting to set is valid or not, before I write it to the database. I might not be clear enough. But my goal is not really to check for existing relations, but the validity of the data I am about to enter into the Database. So if there is no relation at all, any relation is valid. Direct relations are clear and indirect relations need to be checked for. > > Maybe I just dot understand how I would use your script in that case. > > Sorry for the confusion. > > Malte > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From alex at tweedly.net Fri Mar 11 19:42:31 2011 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 12 Mar 2011 00:42:31 +0000 Subject: Efficiency question for list modification In-Reply-To: <4D7A5D82.5030100@fourthworld.com> References: <4D7A5D82.5030100@fourthworld.com> Message-ID: <4D7AC177.60602@tweedly.net> > FlexibleLearning wrote: > >> This is BAD... >> repeat for each line L in tData >> add 1 to n >> put (item 1 of L/div1) into item 1 of line n of stdout >> put (item 2 of L/div2) into item 2 of line n of stdout >> end repeat >> The use of "put ... after ..." is so efficient this may be an interesting but insignificant aside. But ... it occurs to me there is another approach to this problem. Use "split by column" to separate the two columns Then use "split by row" to convert the columns into arrays Then use "divide by " to do the maths Then combine them back again. It's not (quite) as efficient for my simple test data as the other way, but I think it's an interesting way to use the newer form of the split command. > on newway @t, pCol1Divisor, pCol2Divisor > set the columnDelimiter to "," > set the rowDelimiter to CR > split t by column > split t[1] by row > divide t[1] by pCol1Divisor > combine t[1] by row > split t[2] by row > divide t[2] by pCol2Divisor > combine t[2] by row > combine t by column > end newway -- Alex. From bobs at twft.com Fri Mar 11 20:11:45 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 11 Mar 2011 17:11:45 -0800 Subject: Efficiency question for list modification In-Reply-To: <4D7AC177.60602@tweedly.net> References: <4D7A5D82.5030100@fourthworld.com> <4D7AC177.60602@tweedly.net> Message-ID: <91E05719-DCDD-4948-A788-15798239C5B3@twft.com> Wha?? There is a newer form of split and combine?? Bob On Mar 11, 2011, at 4:42 PM, Alex Tweedly wrote: > >> FlexibleLearning wrote: >> >>> This is BAD... >>> repeat for each line L in tData >>> add 1 to n >>> put (item 1 of L/div1) into item 1 of line n of stdout >>> put (item 2 of L/div2) into item 2 of line n of stdout >>> end repeat >>> > The use of "put ... after ..." is so efficient this may be an interesting but insignificant aside. > > But ... it occurs to me there is another approach to this problem. > > Use "split by column" to separate the two columns > Then use "split by row" to convert the columns into arrays > Then use "divide by " to do the maths > Then combine them back again. > > It's not (quite) as efficient for my simple test data as the other way, but I think it's an interesting way to use the newer form of the split command. > >> on newway @t, pCol1Divisor, pCol2Divisor >> set the columnDelimiter to "," >> set the rowDelimiter to CR >> split t by column >> split t[1] by row >> divide t[1] by pCol1Divisor >> combine t[1] by row >> split t[2] by row >> divide t[2] by pCol2Divisor >> combine t[2] by row >> combine t by column >> end newway > > -- Alex. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jhurley0305 at sbcglobal.net Fri Mar 11 20:13:59 2011 From: jhurley0305 at sbcglobal.net (James Hurley) Date: Fri, 11 Mar 2011 17:13:59 -0800 Subject: Having fits with the menu bar In-Reply-To: References: Message-ID: &&%R$$#^#*(( I'm trying to keep this clean. I'm getting nowhere with the menu bar. (Mac OS) I have two item in the menu bar, a "File" menu and a "Help" menu. They both work as expected in the IDE. But when I set the menubar property of the stack to the name of the menu bar group, the menu disappears. If I then check the "Preview in menu bar", I then see two items in the Menu bar. They are: Revolution and File instead of File and Help. The items under "Revolution" and "File" are not the item I put there in the IDE. I have set the style of each button to "menu" and the menuMode to "pulldown" From jacque at hyperactivesw.com Fri Mar 11 20:34:26 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 11 Mar 2011 19:34:26 -0600 Subject: Compare: Cheap at half the price Message-ID: <4D7ACDA2.8040901@hyperactivesw.com> Recently brought to my attention: An iApp builder. All it does is make ebooks and it costs three times more than LiveCode. Plus you have to buy InDesign, of course. They don't know what they're missing. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From mwieder at ahsoftware.net Fri Mar 11 21:06:47 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Fri, 11 Mar 2011 18:06:47 -0800 Subject: [OT] Autocad clone for Linux In-Reply-To: <4D7A8A52.3060902@gmail.com> References: <4D7A8A52.3060902@gmail.com> Message-ID: <159168467828.20110311180647@ahsoftware.net> Richmond- http://www.omgubuntu.co.uk/2011/03/the-end-of-ubuntu-netbook-edition-the-return-of-ubuntu/ The comments are hilarious. -- -Mark Wieder mwieder at ahsoftware.net From bobs at twft.com Fri Mar 11 23:24:38 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 11 Mar 2011 20:24:38 -0800 Subject: Scale Icon in a Button Message-ID: <6279D747-3CB2-4973-A3D1-B3A51AD6FB23@twft.com> Hi all. I have a button with an icon. The icon is too big and I don't have the image anymore so I cannot photoshop it. I want to make the button about half the size and have the icon scale with it. Is this possible? Changing th size of the button only clips the icon image. Bob From coiin at verizon.net Fri Mar 11 23:36:20 2011 From: coiin at verizon.net (Colin Holgate) Date: Fri, 11 Mar 2011 23:36:20 -0500 Subject: Scale Icon in a Button In-Reply-To: <6279D747-3CB2-4973-A3D1-B3A51AD6FB23@twft.com> References: <6279D747-3CB2-4973-A3D1-B3A51AD6FB23@twft.com> Message-ID: <5B80178F-9096-4940-8094-A9DA0BF61091@verizon.net> On Mar 11, 2011, at 11:24 PM, Bob Sneidar wrote: > I have a button with an icon. The icon is too big and I don't have the image anymore so I cannot photoshop it. I want to make the button about half the size and have the icon scale with it. Is this possible? Changing th size of the button only clips the icon image. I don't know for sure if you can't do what you want, but could you not make the button be a lot bigger, just long enough to get a screenshot of the whole icon, so that you can then resize it? From revdev at pdslabs.net Fri Mar 11 23:54:42 2011 From: revdev at pdslabs.net (Phil Davis) Date: Fri, 11 Mar 2011 20:54:42 -0800 Subject: Scale Icon in a Button In-Reply-To: <6279D747-3CB2-4973-A3D1-B3A51AD6FB23@twft.com> References: <6279D747-3CB2-4973-A3D1-B3A51AD6FB23@twft.com> Message-ID: <4D7AFC92.2060408@pdslabs.net> Hi Bob, If the icon still shows up as the icon of the button, you still have the image - at least the icon-size one. Try this script in a new button and see what you get: on mouseUp ask file "Save as PNG:" if it = empty then exit to top put the icon of btn "myButtonWithMissingIcon" into x export image ID x to file it as PNG end mouseUp Now you should have a PNG file you can edit. If you want to scale it, results will improve if you change its resolution to * 10, then scale it, then restore the original resolution. At least that's how I do it and I get better results than doing a straight 'scale'. (I use GraphicConverter for this) More than you wanted to know - Happy Weekend - Phil On 3/11/11 8:24 PM, Bob Sneidar wrote: > Hi all. > > I have a button with an icon. The icon is too big and I don't have the image anymore so I cannot photoshop it. I want to make the button about half the size and have the icon scale with it. Is this possible? Changing th size of the button only clips the icon image. > > Bob > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Phil Davis PDS Labs Professional Software Development http://pdslabs.net From bobs at twft.com Sat Mar 12 00:07:57 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 11 Mar 2011 21:07:57 -0800 Subject: Scale Icon in a Button In-Reply-To: <5B80178F-9096-4940-8094-A9DA0BF61091@verizon.net> References: <6279D747-3CB2-4973-A3D1-B3A51AD6FB23@twft.com> <5B80178F-9096-4940-8094-A9DA0BF61091@verizon.net> Message-ID: That would work I guess. Since it's true I have the image in my LiveCode stack, should I employ some of the methodology for scaling graphics in LiveCode on the original image itself? The Button icon should then follow suit eh? I will explore later. Now I have SQL problems. Bob On Mar 11, 2011, at 8:36 PM, Colin Holgate wrote: > > On Mar 11, 2011, at 11:24 PM, Bob Sneidar wrote: > >> I have a button with an icon. The icon is too big and I don't have the image anymore so I cannot photoshop it. I want to make the button about half the size and have the icon scale with it. Is this possible? Changing th size of the button only clips the icon image. > > I don't know for sure if you can't do what you want, but could you not make the button be a lot bigger, just long enough to get a screenshot of the whole icon, so that you can then resize it? > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobs at twft.com Sat Mar 12 00:06:00 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 11 Mar 2011 21:06:00 -0800 Subject: Scale Icon in a Button In-Reply-To: <4D7AFC92.2060408@pdslabs.net> References: <6279D747-3CB2-4973-A3D1-B3A51AD6FB23@twft.com> <4D7AFC92.2060408@pdslabs.net> Message-ID: <2A8EFDD9-49BD-421D-9416-04579F2CC9B9@twft.com> Thanks Phil! I'll give that a go. Bob On Mar 11, 2011, at 8:54 PM, Phil Davis wrote: > Hi Bob, > > If the icon still shows up as the icon of the button, you still have the image - at least the icon-size one. > > Try this script in a new button and see what you get: > on mouseUp > ask file "Save as PNG:" > if it = empty then exit to top > put the icon of btn "myButtonWithMissingIcon" into x > export image ID x to file it as PNG > end mouseUp > > Now you should have a PNG file you can edit. > > If you want to scale it, results will improve if you change its resolution to * 10, then scale it, then restore the original resolution. At least that's how I do it and I get better results than doing a straight 'scale'. (I use GraphicConverter for this) > > More than you wanted to know - Happy Weekend - > Phil > > > On 3/11/11 8:24 PM, Bob Sneidar wrote: >> Hi all. >> >> I have a button with an icon. The icon is too big and I don't have the image anymore so I cannot photoshop it. I want to make the button about half the size and have the icon scale with it. Is this possible? Changing th size of the button only clips the icon image. >> >> Bob >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > -- > Phil Davis > > PDS Labs > Professional Software Development > http://pdslabs.net > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobs at twft.com Sat Mar 12 00:33:14 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 11 Mar 2011 21:33:14 -0800 Subject: What's wrong with this picture? Message-ID: <575A4C97-1F5D-46FA-8E60-88862FE073C4@twft.com> Hi all. I am having a problem with this sql and I do not know why. I am using mySQL. The error I am generating is: error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(30), `sw_service_pack_major_version` integer(3), `sw_service_pack_minor_versi' at line 1 I cannot see what is wrong. I deleted every column beyond where the error says I am having a problem and it works! Is there a hard limit to how big a query can be? If not, then is there a limit to how big an ON-REV query can be?? As a side note, I take the SQL to create a table from sqLite, massage it to work in mySQL then execute it. Not sure if that gives you a vector on the issue but the more information the better I always say. Bob CREATE TABLE `slylabs_Helpdesk`.`sw_devices` ( `uniqueid` mediumint(3) unsigned zerofill NOT NULL auto_increment, `deleted` boolean DEFAULT FALSE, `updated` boolean DEFAULT FALSE, `sw_id` INTEGER NOT NULL, `sw_name` varchar(50) NOT NULL, `sw_type` varchar(50), `sw_description` varchar(80), `sw_server_name` varchar(50), `sw_domain` varchar(50), `sw_uuid` varchar(50), `sw_manufacturer` varchar(50), `sw_model` varchar(50), `sw_os_serial_number` varchar(70), `sw_windows_product_id` varchar(50), `sw_serial_number` varchar(75), `sw_ip_address` varchar(15), `sw_mac_address` varchar(50), `sw_operating_system` varchar(64), `sw_version` varchar(50), `sw_windows_user` varchar(50), `sw_primary_owner_name` varchar(50), `sw_memory` integer, `sw_management_oid` varchar(75), `sw_up_time` varchar(50), `sw_last_boot_up_time` datetime(30), `sw_service_pack_major_version` integer(3), `sw_service_pack_minor_version` integer(3), `sw_number_of_licensed_users` integer(3), `sw_number_of_processors` integer(3), `sw_processor_type` varchar(50), `sw_created_on` datetime, `sw_updated_on` datetime, `sw_kernel` varchar(255), `sw_page_count` integer, `sw_install_date` datetime, `sw_device_type` varchar(255), `sw_current_user` varchar(255), `sw_bios_version` varchar(255), `sw_location` varchar(255), `sw_online_at` datetime, `sw_offline_at` datetime, `sw_asset_tag` varchar(255), `sw_manually_added` boolean DEFAULT FALSE, `sw_bios_date` date, `sw_c_purchase_price` float, `sw_c_purchase_date` date, `sw_b_name` varchar(50), `sw_b_location` varchar(255), `sw_b_device_type` varchar(255), `sw_b_asset_tag` varchar(255), `sw_b_manufacturer` varchar(50), `sw_b_model` varchar(50), `sw_b_primary_owner_name` varchar(50), `sw_b_serial_number` varchar(75), `sw_warning_alert_count` integer DEFAULT 0, `sw_error_alert_count` integer DEFAULT 0, `sw_open_ticket_count` integer DEFAULT 0, `sw_auto_tag` varchar(255), `sw_dn` varchar(255), `sw_c_passwd_update` varchar(255) DEFAULT `Yes`, `sw_c_dept_device` varchar(255) DEFAULT `Not Assigned`, `sw_user_tag` varchar(255), `sw_exclude_tag` varchar(255), `sw_last_scan_time` datetime, `sw_site_name` varchar(255), `sw_spice_version` integer, `notes` blob NOT NULL, `signature` char(2) NOT NULL, PRIMARY KEY (`uniqueid`) ) From scott at tactilemedia.com Sat Mar 12 00:39:46 2011 From: scott at tactilemedia.com (Scott Rossi) Date: Fri, 11 Mar 2011 21:39:46 -0800 Subject: Scale Icon in a Button In-Reply-To: <6279D747-3CB2-4973-A3D1-B3A51AD6FB23@twft.com> Message-ID: Recently, Bob Sneidar wrote: > I have a button with an icon. The icon is too big and I don't have the image > anymore so I cannot photoshop it. I want to make the button about half the > size and have the icon scale with it. Is this possible? Changing th size of > the button only clips the icon image. If your icon shows up in your button, then you DO have the image. The image file must be somewhere in your stack. To get it out of the stack: put (specialFolderPath("desktop")&"/export.png") into tPath export img "myIcon" to file tPath as PNG You can also substitute "JPEG" or "GIF" as the file format. Regards, Scott Rossi Creative Director Tactile Media, UX Design From warren at warrensweb.us Sat Mar 12 01:01:07 2011 From: warren at warrensweb.us (Warren Samples) Date: Sat, 12 Mar 2011 00:01:07 -0600 Subject: What's wrong with this picture? In-Reply-To: <575A4C97-1F5D-46FA-8E60-88862FE073C4@twft.com> References: <575A4C97-1F5D-46FA-8E60-88862FE073C4@twft.com> Message-ID: <1299909667.2254.185.camel@mint-i7> On Fri, 2011-03-11 at 21:33 -0800, Bob Sneidar wrote: > error : You have an error in your SQL syntax; check the manual that > corresponds to your MySQL server version for the right syntax to use > near '(30), Bob, Isn't trying to tell you that "datetime(30)" is not a valid declaration? Should it just be "datetime"? (That's what it looks like from the docs.) Best, Warren From jacque at hyperactivesw.com Sat Mar 12 01:46:59 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 12 Mar 2011 00:46:59 -0600 Subject: Scale Icon in a Button In-Reply-To: References: <6279D747-3CB2-4973-A3D1-B3A51AD6FB23@twft.com> <5B80178F-9096-4940-8094-A9DA0BF61091@verizon.net> Message-ID: <4D7B16E3.9040702@hyperactivesw.com> On 3/11/11 11:07 PM, Bob Sneidar wrote: > That would work I guess. Since it's true I have the image in my > LiveCode stack, should I employ some of the methodology for scaling > graphics in LiveCode on the original image itself? The Button icon > should then follow suit eh? I will explore later. Right. The button icon will be whatever size its source image is, so if you want to use it with a smaller button, scale the image in your stack, not the button. You can set the lockloc of the image to true and set its size to something smaller without losing the original. You can always set it back to its original size later if you need to. You might get better clarity scaling it in a dedicated graphics program though, it depends on the image. LiveCode doesn't do a bad job with scaling. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Sat Mar 12 01:55:15 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 12 Mar 2011 00:55:15 -0600 Subject: [ANN} iOS UINavigationBar Kit V 1.4.2 Released In-Reply-To: <5F5C1937-A9CA-41E6-B277-E32A7B21AEC2@mac.com> References: <7F09E191-4C53-4317-A6B1-08B9718A4560@comcast.net> <4D7947FD.1020302@hyperactivesw.com> <5F5C1937-A9CA-41E6-B277-E32A7B21AEC2@mac.com> Message-ID: <4D7B18D3.6020903@hyperactivesw.com> On 3/10/11 6:02 PM, Thomas McGrath III wrote: > The funny thing is when I open this in the Android simulator I get > this very weird feeling inside like I just did something wrong?!?!?! > SO, in the next update I plan on making a unique to Android > Navigation Bar. Not as many standards to go by though so the search > for REAL (not web versions) Button Elements is taking a lot longer. I was just poking around in the Android SDK and I found some images in there that might work. I don't know if they'll meet your standards, but I think they are the ones the simulator uses. They're in the android-sdk-mac_x86/platforms/ folder. In there are all the platforms the simulator supports, and inside each of those is a data/res/drawable folder. In there are all the images the simulator uses. There's a different set for each version of the OS, but most are similar. They are provided in low, medium, and high res (different "drawable" folders) for different sized screens. In particular, there's a set of titlebar images in the Honeycomb platform folder. I spent some time the other day looking for Android icons, and now I see that most of what I need is in the SDK folders. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Sat Mar 12 02:02:46 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 12 Mar 2011 01:02:46 -0600 Subject: Having fits with the menu bar In-Reply-To: References: Message-ID: <4D7B1A96.6040902@hyperactivesw.com> On 3/11/11 7:13 PM, James Hurley wrote: > &&%R$$#^#*(( > > I'm trying to keep this clean. > > I'm getting nowhere with the menu bar. (Mac OS) > > I have two item in the menu bar, a "File" menu and a "Help" menu. > They both work as expected in the IDE. > > But when I set the menubar property of the stack to the name of the > menu bar group, the menu disappears. You mean, besides the expected roll-up? > If I then check the "Preview in > menu bar", I then see two items in the Menu bar. They are: > > Revolution and File > > instead of > > File and Help. What version are you using? It should say "LiveCode" now. I mean, it shouldn't say anything IDE-related, but if it was going to error, it should say LiveCode. > > The items under "Revolution" and "File" are not the item I put there > in the IDE. > > I have set the style of each button to "menu" and the menuMode to > "pulldown" I think you need to add an Edit menu. All operating systems pretty much require one, even if it's disabled. The engine assumes the last item in the Edit menu is "Preferences" and tries to move it to the Preferences location on OS X, and I'm betting it's getting confused because you don't have an Edit menu. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From revolution at derbrill.de Sat Mar 12 03:39:43 2011 From: revolution at derbrill.de (Malte Brill) Date: Sat, 12 Mar 2011 09:39:43 +0100 Subject: Coding Challenge In-Reply-To: References: Message-ID: Chris, thanks for looking into this again. After looking closer at Steffens version there indeed are some problems left. Using yours (and adapting it a bit) always returned true (but I think this is due to one or two typos I am looking at tonight) Alex: I think I was a bit overenthusiastic when I said I?d works. It works in 95% of all cases. Not all yet. :-D So, I will also test yours again later today. I need this to work on Monday morning, so long weekend will be looooooooong. Thanks again, Malte From admin at FlexibleLearning.com Sat Mar 12 04:17:08 2011 From: admin at FlexibleLearning.com (FlexibleLearning) Date: Sat, 12 Mar 2011 09:17:08 -0000 Subject: Efficiency question for list modification In-Reply-To: Message-ID: Summary: We are trying to divide pairs of comma-delimted items in a return-delimited list by two different numbers. >Use "split by column" to separate the two columns >Then use "split by row" to convert the columns into arrays >Then use "divide by " to do the maths >Then combine them back again. > >It's not (quite) as efficient for my simple test data as the other way, >but I think it's an interesting way to use the newer form of the split >command. > > on newway @t, pCol1Divisor, pCol2Divisor > set the columnDelimiter to "," > set the rowDelimiter to CR > split t by column > split t[1] by row > divide t[1] by pCol1Divisor > combine t[1] by row > split t[2] by row > divide t[2] by pCol2Divisor > combine t[2] by row > combine t by column > end newway > >-- Alex. Unfortunately 'combine' does not retain the original order. It should, but it doesn't. The sort order for array elements seems to be alpha and not numeric, even though the keys are numeric. This means that the output list is not in the same order as the input list. Hugh Senior FLCo From jimaultwins at yahoo.com Sat Mar 12 06:02:14 2011 From: jimaultwins at yahoo.com (Jim Ault) Date: Sat, 12 Mar 2011 03:02:14 -0800 Subject: Coding Challenge In-Reply-To: References: Message-ID: Oe dynamic you need ot include is the clue sequence. if 'chris' is ranked 5 in the final configuration, but is ranked 1st until much later, then you need to install the higher ranked names later. If you feed the tree from the top down, the rules won't be as complex, but how would you know the top names ? My thought would be to google 'genealogy algorithms' and use some of those subroutines and ranking. Perhaps a forum where the discussions go into the details you need. Parent>child>siblings>children On Mar 12, 2011, at 12:39 AM, Malte Brill wrote: > > After looking closer at Steffens version there indeed are some > problems left. Using yours (and adapting it a bit) always returned > true (but I think this is due to one or two typos I am looking at > tonight) > > Alex: I think I was a bit overenthusiastic when I said I?d works. It > works in 95% of all cases. Not all yet. :-D So, I will also test > yours again later today. I need this to work on Monday morning, so > long weekend will be looooooooong. > Jim Ault Las Vegas From alex at tweedly.net Sat Mar 12 07:42:43 2011 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 12 Mar 2011 12:42:43 +0000 Subject: Efficiency question for list modification In-Reply-To: <91E05719-DCDD-4948-A788-15798239C5B3@twft.com> References: <4D7A5D82.5030100@fourthworld.com> <4D7AC177.60602@tweedly.net> <91E05719-DCDD-4948-A788-15798239C5B3@twft.com> Message-ID: <4D7B6A43.8050809@tweedly.net> "newer", but not "new" :-) 'split by column' and 'split by row' appeared somewhere around 3.5 (I think) -- Alex. On 12/03/2011 01:11, Bob Sneidar wrote: > Wha?? There is a newer form of split and combine?? > > Bob > > > On Mar 11, 2011, at 4:42 PM, Alex Tweedly wrote: > >>> FlexibleLearning wrote: >>> >>>> This is BAD... >>>> repeat for each line L in tData >>>> add 1 to n >>>> put (item 1 of L/div1) into item 1 of line n of stdout >>>> put (item 2 of L/div2) into item 2 of line n of stdout >>>> end repeat >>>> >> The use of "put ... after ..." is so efficient this may be an interesting but insignificant aside. >> >> But ... it occurs to me there is another approach to this problem. >> >> Use "split by column" to separate the two columns >> Then use "split by row" to convert the columns into arrays >> Then use "divide by" to do the maths >> Then combine them back again. >> >> It's not (quite) as efficient for my simple test data as the other way, but I think it's an interesting way to use the newer form of the split command. >> >>> on newway @t, pCol1Divisor, pCol2Divisor >>> set the columnDelimiter to "," >>> set the rowDelimiter to CR >>> split t by column >>> split t[1] by row >>> divide t[1] by pCol1Divisor >>> combine t[1] by row >>> split t[2] by row >>> divide t[2] by pCol2Divisor >>> combine t[2] by row >>> combine t by column >>> end newway >> -- Alex. >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From mcgrath3 at mac.com Sat Mar 12 08:46:48 2011 From: mcgrath3 at mac.com (Thomas McGrath III) Date: Sat, 12 Mar 2011 08:46:48 -0500 Subject: [ANN} iOS UINavigationBar Kit V 1.4.2 Released In-Reply-To: <4D7B18D3.6020903@hyperactivesw.com> References: <7F09E191-4C53-4317-A6B1-08B9718A4560@comcast.net> <4D7947FD.1020302@hyperactivesw.com> <5F5C1937-A9CA-41E6-B277-E32A7B21AEC2@mac.com> <4D7B18D3.6020903@hyperactivesw.com> Message-ID: <468432B8-60C1-4CF8-B3D9-1CB523C201E0@mac.com> Jac, Those might be perfect for this. I will check them out today and start on the Android elements. Thanks... -- Tom McGrath III http://lazyriver.on-rev.com 3mcgrath at comcast.net On Mar 12, 2011, at 1:55 AM, J. Landman Gay wrote: > On 3/10/11 6:02 PM, Thomas McGrath III wrote: > >> The funny thing is when I open this in the Android simulator I get >> this very weird feeling inside like I just did something wrong?!?!?! >> SO, in the next update I plan on making a unique to Android >> Navigation Bar. Not as many standards to go by though so the search >> for REAL (not web versions) Button Elements is taking a lot longer. > > I was just poking around in the Android SDK and I found some images in there that might work. I don't know if they'll meet your standards, but I think they are the ones the simulator uses. They're in the android-sdk-mac_x86/platforms/ folder. In there are all the platforms the simulator supports, and inside each of those is a data/res/drawable folder. In there are all the images the simulator uses. > > There's a different set for each version of the OS, but most are similar. They are provided in low, medium, and high res (different "drawable" folders) for different sized screens. In particular, there's a set of titlebar images in the Honeycomb platform folder. > > I spent some time the other day looking for Android icons, and now I see that most of what I need is in the SDK folders. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From keith.clarke at clarkeandclarke.co.uk Sat Mar 12 10:38:42 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Sat, 12 Mar 2011 15:38:42 +0000 Subject: Tooltips not closing with change of app focus on OSX - bug? Message-ID: <854610A2-D622-4A2A-AB88-EAC313238B22@clarkeandclarke.co.uk> Hi folks, Does anyone else notice that open tooltips fail to close when the focus moves from LiveCode (IDE or a stand alone) to another app on OSX? Is this a new bug - I can't see anything obviously related on the QA forum? Best, Keith.. From ambassador at fourthworld.com Sat Mar 12 11:29:36 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 12 Mar 2011 08:29:36 -0800 Subject: Tooltips not closing with change of app focus on OSX - bug? In-Reply-To: <854610A2-D622-4A2A-AB88-EAC313238B22@clarkeandclarke.co.uk> References: <854610A2-D622-4A2A-AB88-EAC313238B22@clarkeandclarke.co.uk> Message-ID: <4D7B9F70.603@fourthworld.com> Keith Clarke wrote: > Does anyone else notice that open tooltips fail to close when the > focus moves from LiveCode (IDE or a stand alone) to another app > on OSX? > Is this a new bug - I can't see anything obviously related on the > QA forum? Confirmed: If I hover the mouse over the LC IDE's Tools palette and wait for the tooltip to appear, then Cmd+Tab to another app, the tooltip does indeed stay visible. However, as soon as I move the mouse the tooltip hides as expected; it may be that because the mouse must remain stationary to see this behavior that it hasn't been discussed much. If this isn't in the RQCC it might be good to add it, since I suspect it would be an easy fix to add suspend to the actions that dismiss a tooltip and would give the app a more polish feeling. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From pete at mollysrevenge.com Sat Mar 12 12:46:30 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Sat, 12 Mar 2011 09:46:30 -0800 Subject: What's wrong with this picture? In-Reply-To: <575A4C97-1F5D-46FA-8E60-88862FE073C4@twft.com> References: <575A4C97-1F5D-46FA-8E60-88862FE073C4@twft.com> Message-ID: <7F661527-F4D8-4CC3-BD3B-1DC8FDFFAE85@mollysrevenge.com> Hi Bob, I think the problem is the sw_last_bootup_time definition. I don;t think you can specify a display length for DATETIME data types. Pete Haworth On Mar 11, 2011, at 9:33 PM, Bob Sneidar wrote: > Hi all. I am having a problem with this sql and I do not know why. I am using mySQL. The error I am generating is: > > error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(30), > `sw_service_pack_major_version` integer(3), > `sw_service_pack_minor_versi' at line 1 > > I cannot see what is wrong. I deleted every column beyond where the error says I am having a problem and it works! Is there a hard limit to how big a query can be? If not, then is there a limit to how big an ON-REV query can be?? > > As a side note, I take the SQL to create a table from sqLite, massage it to work in mySQL then execute it. Not sure if that gives you a vector on the issue but the more information the better I always say. > > Bob > > > > CREATE TABLE `slylabs_Helpdesk`.`sw_devices` ( > `uniqueid` mediumint(3) unsigned zerofill NOT NULL auto_increment, > `deleted` boolean DEFAULT FALSE, > `updated` boolean DEFAULT FALSE, > `sw_id` INTEGER NOT NULL, > `sw_name` varchar(50) NOT NULL, > `sw_type` varchar(50), > `sw_description` varchar(80), > `sw_server_name` varchar(50), > `sw_domain` varchar(50), > `sw_uuid` varchar(50), > `sw_manufacturer` varchar(50), > `sw_model` varchar(50), > `sw_os_serial_number` varchar(70), > `sw_windows_product_id` varchar(50), > `sw_serial_number` varchar(75), > `sw_ip_address` varchar(15), > `sw_mac_address` varchar(50), > `sw_operating_system` varchar(64), > `sw_version` varchar(50), > `sw_windows_user` varchar(50), > `sw_primary_owner_name` varchar(50), > `sw_memory` integer, > `sw_management_oid` varchar(75), > `sw_up_time` varchar(50), > `sw_last_boot_up_time` datetime(30), > `sw_service_pack_major_version` integer(3), > `sw_service_pack_minor_version` integer(3), > `sw_number_of_licensed_users` integer(3), > `sw_number_of_processors` integer(3), > `sw_processor_type` varchar(50), > `sw_created_on` datetime, > `sw_updated_on` datetime, > `sw_kernel` varchar(255), > `sw_page_count` integer, > `sw_install_date` datetime, > `sw_device_type` varchar(255), > `sw_current_user` varchar(255), > `sw_bios_version` varchar(255), > `sw_location` varchar(255), > `sw_online_at` datetime, > `sw_offline_at` datetime, > `sw_asset_tag` varchar(255), > `sw_manually_added` boolean DEFAULT FALSE, > `sw_bios_date` date, > `sw_c_purchase_price` float, > `sw_c_purchase_date` date, > `sw_b_name` varchar(50), > `sw_b_location` varchar(255), > `sw_b_device_type` varchar(255), > `sw_b_asset_tag` varchar(255), > `sw_b_manufacturer` varchar(50), > `sw_b_model` varchar(50), > `sw_b_primary_owner_name` varchar(50), > `sw_b_serial_number` varchar(75), > `sw_warning_alert_count` integer DEFAULT 0, > `sw_error_alert_count` integer DEFAULT 0, > `sw_open_ticket_count` integer DEFAULT 0, > `sw_auto_tag` varchar(255), > `sw_dn` varchar(255), > `sw_c_passwd_update` varchar(255) DEFAULT `Yes`, > `sw_c_dept_device` varchar(255) DEFAULT `Not Assigned`, > `sw_user_tag` varchar(255), > `sw_exclude_tag` varchar(255), > `sw_last_scan_time` datetime, > `sw_site_name` varchar(255), > `sw_spice_version` integer, > `notes` blob NOT NULL, > `signature` char(2) NOT NULL, > PRIMARY KEY (`uniqueid`) > ) > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jhurley0305 at sbcglobal.net Sat Mar 12 13:25:39 2011 From: jhurley0305 at sbcglobal.net (James Hurley) Date: Sat, 12 Mar 2011 10:25:39 -0800 Subject: Having fits with the menu bar In-Reply-To: References: Message-ID: <91B52F52-6702-451D-927D-2DF5C6A12518@sbcglobal.net> Thanks Jacque. Now I'm marking some progress. > > Message: 2 > Date: Sat, 12 Mar 2011 01:02:46 -0600 > From: "J. Landman Gay" > To: How to use LiveCode > Subject: Re: Having fits with the menu bar > Message-ID: <4D7B1A96.6040902 at hyperactivesw.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > On 3/11/11 7:13 PM, James Hurley wrote: >> >> >> I'm getting nowhere with the menu bar. (Mac OS) >> >> I have two item in the menu bar, a "File" menu and a "Help" menu. >> They both work as expected in the IDE. >> >> But when I set the menubar property of the stack to the name of the >> menu bar group, the menu disappears. > > You mean, besides the expected roll-up? > >> If I then check the "Preview in >> menu bar", I then see two items in the Menu bar. They are: >> >> Revolution and File >> >> instead of >> >> File and Help. > > What version are you using? It should say "LiveCode" now. I mean, it > shouldn't say anything IDE-related, but if it was going to error, it > should say LiveCode. I may have been running 4.0 when I did this earlier, but am now working with 4.5.2 and it now reads "LiveCode" > >> >> The items under "Revolution" and "File" are not the item I put there >> in the IDE. >> >> I have set the style of each button to "menu" and the menuMode to >> "pulldown" > > I think you need to add an Edit menu. All operating systems pretty much > require one, even if it's disabled. The engine assumes the last item in > the Edit menu is "Preferences" and tries to move it to the Preferences > location on OS X, and I'm betting it's getting confused because you > don't have an Edit menu. The lack of an Edit menu indeed appears to have been the main problem. I am now up to 3 menus in my menu group, having added an "Edit" menu. But there are still some issues. In the OSX menu I now see 4 menus only 3 of which are of my doing. They are: LiveCode File Edit Help Under the LiveCode menu I now have Preferences and About, among other things. I had no Preferences item in my menu group. I did have an About item and it has been moved to this LiveCode menu. As has the Quit item that I had under the File menu. And I now find a "Search" window item under the "Help" menu. Where did that come from? So.... Is there a way to get rid of the "LiveCode" menu and put those items Quit and About) back where I had placed them? But I am grateful now just to be making progress. I assume that RunRev was trying to be helpful in creating the menu for the standalone, but their plans were not quite my plans. Thanks again, Jim > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > From form at nonsanity.com Sat Mar 12 13:27:14 2011 From: form at nonsanity.com (Nonsanity) Date: Sat, 12 Mar 2011 13:27:14 -0500 Subject: Coding Challenge In-Reply-To: References: Message-ID: I'll drop my code in LC and actually RUN it now. If you want to collaborate closer on it, I'd be happy to help. My AIM/iChat is FluffAndSuch. (Other LCers are welcome to use that too.) ~ Chris Innanen ~ Nonsnaity On Sat, Mar 12, 2011 at 3:39 AM, Malte Brill wrote: > Chris, > > thanks for looking into this again. > > After looking closer at Steffens version there indeed are some problems > left. Using yours (and adapting it a bit) always returned true (but I think > this is due to one or two typos I am looking at tonight) > > Alex: I think I was a bit overenthusiastic when I said I?d works. It works > in 95% of all cases. Not all yet. :-D So, I will also test yours again later > today. I need this to work on Monday morning, so long weekend will be > looooooooong. > > Thanks again, > > Malte > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From keith.clarke at clarkeandclarke.co.uk Sat Mar 12 13:39:31 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Sat, 12 Mar 2011 18:39:31 +0000 Subject: Tooltips not closing with change of app focus on OSX - bug? In-Reply-To: <4D7B9F70.603@fourthworld.com> References: <854610A2-D622-4A2A-AB88-EAC313238B22@clarkeandclarke.co.uk> <4D7B9F70.603@fourthworld.com> Message-ID: <85714A0F-1663-44DC-AAF1-615B958DDD22@clarkeandclarke.co.uk> ...thanks for the confirmation, Richard. Interesting, merely moving the mouse doesn't close it for me - I have to click in the tooltip. Still, the sparkling new QA bug report 9444 refers. Best, Keith.. On 12 Mar 2011, at 16:29, Richard Gaskin wrote: > Keith Clarke wrote: > > Does anyone else notice that open tooltips fail to close when the > > focus moves from LiveCode (IDE or a stand alone) to another app > > on OSX? > > Is this a new bug - I can't see anything obviously related on the > > QA forum? > > Confirmed: If I hover the mouse over the LC IDE's Tools palette and wait for the tooltip to appear, then Cmd+Tab to another app, the tooltip does indeed stay visible. However, as soon as I move the mouse the tooltip hides as expected; it may be that because the mouse must remain stationary to see this behavior that it hasn't been discussed much. > > If this isn't in the RQCC it might be good to add it, since I suspect it would be an easy fix to add suspend to the actions that dismiss a tooltip and would give the app a more polish feeling. > > -- > Richard Gaskin > Fourth World > LiveCode training and consulting: http://www.fourthworld.com > Webzine for LiveCode developers: http://www.LiveCodeJournal.com > LiveCode Journal blog: http://LiveCodejournal.com/blog.irv > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bvg at mac.com Sat Mar 12 13:59:56 2011 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Sat, 12 Mar 2011 19:59:56 +0100 Subject: Live LiveCode Code Event #14 In-Reply-To: <5BC5E548-09C7-4162-B4FF-C4AA365DA2F0@economy-x-talk.com> References: <5BC5E548-09C7-4162-B4FF-C4AA365DA2F0@economy-x-talk.com> Message-ID: Event starts now On 11 Mar 2011, at 02:40, Mark Schonewille wrote: > Hi everybody, > > Before making the announcement, I have an urgent request. For next week, we have no presenters yet and if YOU don't speak up, Bj?rnke's wonderful initiative might die a silent death eventually. I'm sure YOU don't want that, so YOU are urgently requested to take the stand. Who, ME?! Yes, YOU! Don't think that someone else might do it instead of YOU, because that someone else already did one or two presentations during the past three months. Now it is YOUR turn. Send me an e-mail off-list NOW and tell me what YOU will talk about. > > If you can't think of a topic yet, what would you say about: > - an introduction for newbies > - showing off your own projects > - discussing a neat little trick you discovered the other day > - general introduction for basic and intermediate LiveCode programmers > - introduction for Java or C++ programmers > - porting HyperCard stacks to LiveCode > - anything with regard to developing for iOS > - deploying applications to the iTunes store > - open process and related subjects > - setting up a server with LiveCode (irev, cgi) > - developing web applications > - creating revlets > - the intersect function (for objects) > - arrays > - behaviors > - the merge function > - script limits, maximum sizes etc. > - any other LiveCode-related topic you like to talk about > > You can contact me off-list by replying to my e-mail address or use the web form at http://qery.us/du . > > > This weekend's event is scheduled for Saturday, 12 March 2011 at 19:00h GMT (Sat. 22:00 in Moscow, Sat. 20:00 in Paris, Sat. 14:00 in New York, Sat. 11:00 in Los Angeles, Sun. 04:00 in Tokyo, Sun. 3:00 in Beijing). It will be the 14th edition of the Live LiveCode Event. > > Bj?rnke will start the event, telling us about custom properties. > > Judy will show us why LiveCode is the ideal tool to create much-needed educational solutions in very little time. Multiplication Bingo is one of those solutions and she will explain how mere mortals can achieve such things. > > David wraps it up with a treatise on building an IRC chat bot in LiveCode. > > > Make sure to use ChatRev during the happening, otherwise you won't know where to watch the streams, which will be announced in ChatRev. Download ChatRev here: > http://bjoernke.com?target=chatrev > or enter in the message box: > go stack URL "http://bjoernke.com/chatrev/chatrev1.3b3.rev" > > See also the following page for the same information (soon): > Http://livecode.tv > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From lvhdgc7 at gmail.com Sat Mar 12 14:06:46 2011 From: lvhdgc7 at gmail.com (tbodine) Date: Sat, 12 Mar 2011 11:06:46 -0800 (PST) Subject: Live LiveCode Code Event #14 In-Reply-To: References: <5BC5E548-09C7-4162-B4FF-C4AA365DA2F0@economy-x-talk.com> Message-ID: <1299956806462-3350710.post@n4.nabble.com> How does one find this event? I have Chatrev, but don't see where/how I connect to this event? -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Live-LiveCode-Code-Event-14-tp3347249p3350710.html Sent from the Revolution - User mailing list archive at Nabble.com. From richmondmathewson at gmail.com Sat Mar 12 14:15:31 2011 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 12 Mar 2011 21:15:31 +0200 Subject: Something wrong with "Livecode" Message-ID: <4D7BC653.1030306@gmail.com> Try typing 'livecode' into Wikipedia . . . From runrev260805 at m-r-d.de Sat Mar 12 14:23:45 2011 From: runrev260805 at m-r-d.de (Matthias Rebbe) Date: Sat, 12 Mar 2011 20:23:45 +0100 Subject: Live LiveCode Code Event #14 In-Reply-To: <1299956806462-3350710.post@n4.nabble.com> References: <5BC5E548-09C7-4162-B4FF-C4AA365DA2F0@economy-x-talk.com> <1299956806462-3350710.post@n4.nabble.com> Message-ID: http://www.livecode.tv Am 12.03.2011 um 20:06 schrieb tbodine: > How does one find this event? I have Chatrev, but don't see where/how I > connect to this event? > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Live-LiveCode-Code-Event-14-tp3347249p3350710.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From m.schonewille at economy-x-talk.com Sat Mar 12 14:35:06 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sat, 12 Mar 2011 20:35:06 +0100 Subject: Live LiveCode Code Event #14 In-Reply-To: <1299956806462-3350710.post@n4.nabble.com> References: <5BC5E548-09C7-4162-B4FF-C4AA365DA2F0@economy-x-talk.com> <1299956806462-3350710.post@n4.nabble.com> Message-ID: Hi, If you log in on ChatRev, the links are posted there. Logging in on ChatRev is inevitable. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce On 12 mrt 2011, at 20:06, tbodine wrote: > How does one find this event? I have Chatrev, but don't see where/how I > connect to this event? From jacque at hyperactivesw.com Sat Mar 12 14:43:56 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 12 Mar 2011 13:43:56 -0600 Subject: Having fits with the menu bar In-Reply-To: <91B52F52-6702-451D-927D-2DF5C6A12518@sbcglobal.net> References: <91B52F52-6702-451D-927D-2DF5C6A12518@sbcglobal.net> Message-ID: <4D7BCCFC.6000402@hyperactivesw.com> On 3/12/11 12:25 PM, James Hurley wrote: > > But there are still some issues. In the OSX menu I now see 4 menus > only 3 of which are of my doing. They are: > > LiveCode File Edit Help Those are standard OS X conventions. The first menu item is supplied by the OS and is always the name of the frontmost app. Even if you have no menubar at all, you will have that menu item, as the OS needs it to provide the Quit item -- which is always in the app menu. You don't need to do anything about it; when you build a standalone, "Livecode" will change to the name of your standalone. The menu is created by the OS, not by LiveCode, and can't be removed. > > Under the LiveCode menu I now have Preferences and About, among other > things. I had no Preferences item in my menu group. I did have an > About item and it has been moved to this LiveCode menu. As has the > Quit item that I had under the File menu. Standard behavior. A preferences item under the app menu is put there by the OS. There are funky ways to disable it, but its presence is standard and expected by all Mac users. Your Edit menu should always have Preferences as its last item entry, which LiveCode will move to the appropriate place on OS X, under the app menu. The About item also goes there, is always the first item under the app menu, and is standard layout for OS X. I don't think you can actually remove that one either. > > And I now find a "Search" window item under the "Help" menu. Where > did that come from? That is Spotlight, a system service, put there by the OS and not removable. It is under the Help menu in every app, system-wide. > > So.... Is there a way to get rid of the "LiveCode" menu and put those > items Quit and About) back where I had placed them? No, and you shouldn't, because they are in the places they are supposed to be for OS X. Moving them will confuse your Mac users, your app will be non-standard and (knowing most Mac people) distained for flying in the face of the HIG. The beauty of LiveCode is that it manages all this menu placement for you. Your items will be where you put them on Windows and Linux, which have different menu expectations, and transparently moved to the required locations on OS X. Since you're on a Mac, look at the menu bars in every app on the machine, including the Finder, and you will see that all menu items and placement always follow these conventions. On Mac, apps are required to have an application menu (placed there by the OS) which is always partially populated by OS services and features, and contains the Quit menu item. After that you must have a File menu, followed by an Edit menu, in that order. After that you can have any app-specific menus you need. The last menu item must be Help, which the system also partially populates. > > But I am grateful now just to be making progress. I assume that > RunRev was trying to be helpful in creating the menu for the > standalone, but their plans were not quite my plans. Mac users went to some lengths to get MetaCard to provide this default behavior way back when OS X first came out. The menus conventions are strictly enforced by the OS, and they behave correctly in LiveCode. Go with the flow, Mac users will appreciate it. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From rjb at robelko.com Sat Mar 12 14:45:34 2011 From: rjb at robelko.com (Robert Brenstein) Date: Sat, 12 Mar 2011 20:45:34 +0100 Subject: Something wrong with "Livecode" In-Reply-To: <4D7BC653.1030306@gmail.com> References: <4D7BC653.1030306@gmail.com> Message-ID: On 12.03.2011 at 21:15 Uhr +0200 Richmond apparently wrote: >Try typing 'livecode' into Wikipedia . . . You must type "LiveCode" -- Wikipedia is case sensitive (except for the first letter). Robert From richmondmathewson at gmail.com Sat Mar 12 15:13:37 2011 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 12 Mar 2011 22:13:37 +0200 Subject: Something wrong with "Livecode" In-Reply-To: References: <4D7BC653.1030306@gmail.com> Message-ID: <4D7BD3F1.2090503@gmail.com> On 03/12/2011 09:45 PM, Robert Brenstein wrote: > On 12.03.2011 at 21:15 Uhr +0200 Richmond apparently wrote: >> Try typing 'livecode' into Wikipedia . . . > > You must type "LiveCode" -- Wikipedia is case sensitive (except for > the first letter). So I see. But most "punters" will just type 'livecode' and because of a Capital letter the cause is lost. > > Robert > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bvg at mac.com Sat Mar 12 15:19:07 2011 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Sat, 12 Mar 2011 21:19:07 +0100 Subject: Something wrong with "Livecode" In-Reply-To: <4D7BD3F1.2090503@gmail.com> References: <4D7BC653.1030306@gmail.com> <4D7BD3F1.2090503@gmail.com> Message-ID: so fix wikipedia and add a disambiguity site... i don't know how to do that unfortunately. On 12 Mar 2011, at 21:13, Richmond wrote: > On 03/12/2011 09:45 PM, Robert Brenstein wrote: >> On 12.03.2011 at 21:15 Uhr +0200 Richmond apparently wrote: >>> Try typing 'livecode' into Wikipedia . . . >> >> You must type "LiveCode" -- Wikipedia is case sensitive (except for the first letter). > > So I see. But most "punters" will just type 'livecode' and because of a Capital letter the > cause is lost. > >> >> Robert >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From coiin at verizon.net Sat Mar 12 16:00:45 2011 From: coiin at verizon.net (Colin Holgate) Date: Sat, 12 Mar 2011 16:00:45 -0500 Subject: Something wrong with "Livecode" In-Reply-To: <4D7BC653.1030306@gmail.com> References: <4D7BC653.1030306@gmail.com> Message-ID: On Mar 12, 2011, at 2:15 PM, Richmond wrote: > Try typing 'livecode' into Wikipedia . . . I see that there is another product that has "livecode", but LiveCode does at least own "liveCode" too. From pete at mollysrevenge.com Sat Mar 12 16:17:39 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Sat, 12 Mar 2011 13:17:39 -0800 Subject: Having fits with the menu bar In-Reply-To: <4D7BCCFC.6000402@hyperactivesw.com> References: <91B52F52-6702-451D-927D-2DF5C6A12518@sbcglobal.net> <4D7BCCFC.6000402@hyperactivesw.com> Message-ID: I almost replied on this topic a couple of days ago when there was another user confused by this. I do agree that the way Livecode arranges menus for the Mac is standard behavior for OSX according to Apple's Human Interface Guidelines. My problem with what Livecode does is that "standard" and "guidelines" mean just that, by which I mean that Livecode should provide a way to do non-standard things that don't conform to the guidelines if that's what I want to do. It's fine to use the guidelines as a default but there should be a way to not take the default and I don't think LiveCode provides one. Yes, that will confuse Mac users and probably cause some disdain but it should be up to me to make that decision as to whether I'm prepared to deal with that, not Livecode. Maybe I'm writing a small app for my own use on my own Mac and I want the menus to behave as I want them to, not how Apple says they should; I should have that ability. No doubt the HIG police will jump all over me for this but it's not really about HIG, it's about Livecode providing ways for developers to do things the way they want to do things, not how LiveCode wants to. Discuss. Pete Haworth On Mar 12, 2011, at 11:43 AM, J. Landman Gay wrote: > No, and you shouldn't, because they are in the places they are supposed to be for OS X. Moving them will confuse your Mac users, your app will be non-standard and (knowing most Mac people) distained for flying in the face of the HIG. The beauty of LiveCode is that it manages all this menu placement for you. Your items will be where you put them on Windows and Linux, which have different menu expectations, and transparently moved to the required locations on OS X. From bobs at twft.com Sat Mar 12 17:03:43 2011 From: bobs at twft.com (Bob Sneidar) Date: Sat, 12 Mar 2011 14:03:43 -0800 Subject: Scale Icon in a Button In-Reply-To: <4D7B16E3.9040702@hyperactivesw.com> References: <6279D747-3CB2-4973-A3D1-B3A51AD6FB23@twft.com> <5B80178F-9096-4940-8094-A9DA0BF61091@verizon.net> <4D7B16E3.9040702@hyperactivesw.com> Message-ID: <588AC9EF-8266-483C-8CF9-022466FD367E@twft.com> There you go. I think that is the ticket. Bob On Mar 11, 2011, at 10:46 PM, J. Landman Gay wrote: > On 3/11/11 11:07 PM, Bob Sneidar wrote: >> That would work I guess. Since it's true I have the image in my >> LiveCode stack, should I employ some of the methodology for scaling >> graphics in LiveCode on the original image itself? The Button icon >> should then follow suit eh? I will explore later. > > Right. The button icon will be whatever size its source image is, so if you want to use it with a smaller button, scale the image in your stack, not the button. > > You can set the lockloc of the image to true and set its size to something smaller without losing the original. You can always set it back to its original size later if you need to. You might get better clarity scaling it in a dedicated graphics program though, it depends on the image. LiveCode doesn't do a bad job with scaling. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobs at twft.com Sat Mar 12 17:06:05 2011 From: bobs at twft.com (Bob Sneidar) Date: Sat, 12 Mar 2011 14:06:05 -0800 Subject: Efficiency question for list modification In-Reply-To: References: Message-ID: This has been a sore point for me concerning arrays. You should at least expect the array to be sorted by when the element was created. That way you could see the most recent items by looking at the last elements first, like Filemaker. Unsorted, you can always depend on seeing the last records at the bottom of the table. Bob On Mar 12, 2011, at 1:17 AM, FlexibleLearning wrote: > The sort order for array elements seems to be alpha and not > numeric, even though the keys are numeric. This means that the output list > is not in the same order as the input list. From bobs at twft.com Sat Mar 12 17:07:50 2011 From: bobs at twft.com (Bob Sneidar) Date: Sat, 12 Mar 2011 14:07:50 -0800 Subject: What's wrong with this picture? In-Reply-To: <1299909667.2254.185.camel@mint-i7> References: <575A4C97-1F5D-46FA-8E60-88862FE073C4@twft.com> <1299909667.2254.185.camel@mint-i7> Message-ID: <4DBBD989-704C-45C4-9E08-B37730442E95@twft.com> Ah! I think I tested for just about everything BUT that! :-) Bob On Mar 11, 2011, at 10:01 PM, Warren Samples wrote: > On Fri, 2011-03-11 at 21:33 -0800, Bob Sneidar wrote: >> error : You have an error in your SQL syntax; check the manual that >> corresponds to your MySQL server version for the right syntax to use >> near '(30), > > Bob, > > Isn't trying to tell you that "datetime(30)" is not a valid declaration? > Should it just be "datetime"? (That's what it looks like from the docs.) > > Best, > > Warren > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobs at twft.com Sat Mar 12 17:11:10 2011 From: bobs at twft.com (Bob Sneidar) Date: Sat, 12 Mar 2011 14:11:10 -0800 Subject: What's wrong with this picture? In-Reply-To: <1299909667.2254.185.camel@mint-i7> References: <575A4C97-1F5D-46FA-8E60-88862FE073C4@twft.com> <1299909667.2254.185.camel@mint-i7> Message-ID: I think to do a comprehensive conversion between sqLite syntax and mySQL syntax, I am going to have to do a lot more research. Sad that the differences between all the SQL engine syntaxes are that much. I have a saying that the trouble with standards is that everyone wants one... their OWN. Bob On Mar 11, 2011, at 10:01 PM, Warren Samples wrote: > On Fri, 2011-03-11 at 21:33 -0800, Bob Sneidar wrote: >> error : You have an error in your SQL syntax; check the manual that >> corresponds to your MySQL server version for the right syntax to use >> near '(30), > > Bob, > > Isn't trying to tell you that "datetime(30)" is not a valid declaration? > Should it just be "datetime"? (That's what it looks like from the docs.) > > Best, > > Warren > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobs at twft.com Sat Mar 12 17:16:27 2011 From: bobs at twft.com (Bob Sneidar) Date: Sat, 12 Mar 2011 14:16:27 -0800 Subject: Tooltips not closing with change of app focus on OSX - bug? In-Reply-To: <854610A2-D622-4A2A-AB88-EAC313238B22@clarkeandclarke.co.uk> References: <854610A2-D622-4A2A-AB88-EAC313238B22@clarkeandclarke.co.uk> Message-ID: Hmmm... Not a bug methinks. One of the "Features" with Tiger (I believe) and later, is that you can interact with windows that are not the frontmost window. I think this behavior is intentional. Bob On Mar 12, 2011, at 7:38 AM, Keith Clarke wrote: > Hi folks, > Does anyone else notice that open tooltips fail to close when the focus moves from LiveCode (IDE or a stand alone) to another app on OSX? > Is this a new bug - I can't see anything obviously related on the QA forum? > Best, > Keith.. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobs at twft.com Sat Mar 12 17:18:16 2011 From: bobs at twft.com (Bob Sneidar) Date: Sat, 12 Mar 2011 14:18:16 -0800 Subject: Something wrong with "Livecode" In-Reply-To: References: <4D7BC653.1030306@gmail.com> Message-ID: <05A40370-099F-47CC-8994-B001211C6A40@twft.com> We need a petition to make ALL web references case insensitive!!!! IT'S THE 21ST CENTURY! HELLO??!? ;-) Bob On Mar 12, 2011, at 11:45 AM, Robert Brenstein wrote: > On 12.03.2011 at 21:15 Uhr +0200 Richmond apparently wrote: >> Try typing 'livecode' into Wikipedia . . . > > You must type "LiveCode" -- Wikipedia is case sensitive (except for the first letter). > > Robert > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobs at twft.com Sat Mar 12 17:20:30 2011 From: bobs at twft.com (Bob Sneidar) Date: Sat, 12 Mar 2011 14:20:30 -0800 Subject: Having fits with the menu bar In-Reply-To: <4D7BCCFC.6000402@hyperactivesw.com> References: <91B52F52-6702-451D-927D-2DF5C6A12518@sbcglobal.net> <4D7BCCFC.6000402@hyperactivesw.com> Message-ID: <72147918-E06A-4974-99D8-0E5292A0BD71@twft.com> This calls for a Livecode Newsletter article! Bob On Mar 12, 2011, at 11:43 AM, J. Landman Gay wrote: > Standard behavior. A preferences item under the app menu is put there by the OS. There are funky ways to disable it, but its presence is standard and expected by all Mac users. Your Edit menu should always have Preferences as its last item entry, which LiveCode will move to the appropriate place on OS X, under the app menu. The About item also goes there, is always the first item under the app menu, and is standard layout for OS X. I don't think you can actually remove that one either. From bobs at twft.com Sat Mar 12 17:30:51 2011 From: bobs at twft.com (Bob Sneidar) Date: Sat, 12 Mar 2011 14:30:51 -0800 Subject: Having fits with the menu bar In-Reply-To: References: <91B52F52-6702-451D-927D-2DF5C6A12518@sbcglobal.net> <4D7BCCFC.6000402@hyperactivesw.com> Message-ID: I think the question is, would the OS actually allow it? It may not. I remember years ago, while working with FoxPro for the mac, that because Microsoft wanted to have compete control over their menu structure, their menus were not actually "menus" at all. Because of that, any utilities that did custom menu modifications would not work with FoxPro. QuicKeys comes to mind. I was not able to create an action involving menus, because there were no "Menu's" per se. Something to chew on I guess. Bob On Mar 12, 2011, at 1:17 PM, Peter Haworth wrote: > I almost replied on this topic a couple of days ago when there was another user confused by this. > > I do agree that the way Livecode arranges menus for the Mac is standard behavior for OSX according to Apple's Human Interface Guidelines. My problem with what Livecode does is that "standard" and "guidelines" mean just that, by which I mean that Livecode should provide a way to do non-standard things that don't conform to the guidelines if that's what I want to do. It's fine to use the guidelines as a default but there should be a way to not take the default and I don't think LiveCode provides one. From dixonja at hotmail.co.uk Sat Mar 12 17:47:29 2011 From: dixonja at hotmail.co.uk (John Dixon) Date: Sat, 12 Mar 2011 22:47:29 +0000 Subject: Having fits with the menu bar In-Reply-To: References: , <91B52F52-6702-451D-927D-2DF5C6A12518@sbcglobal.net>, <4D7BCCFC.6000402@hyperactivesw.com>, , Message-ID: How different do you want to change the menus ?... and really why ?... Apple's HIG have served dvelopers well over the years, users know just what to expect from an application and know where to go when they want to perform 'everyday' application functions like 'Open, New, Close' and 'Cut, Copy, Paste', for example. Microsoft on the other hand has let developers do what they want and look at the mess it sometimes causes... But on the other hand, if you insist on being a total non-conformist and confusing your user you can... I have just created a stack and using the menu builder made the menus .... "AppName', 'Wassock' and 'Pooh', instead of 'LiveCode', 'File' and 'Edit'... John Dixon > Subject: Re: Having fits with the menu bar > From: bobs at twft.com > Date: Sat, 12 Mar 2011 14:30:51 -0800 > To: use-livecode at lists.runrev.com > > I think the question is, would the OS actually allow it? It may not. I remember years ago, while working with FoxPro for the mac, that because Microsoft wanted to have compete control over their menu structure, their menus were not actually "menus" at all. Because of that, any utilities that did custom menu modifications would not work with FoxPro. QuicKeys comes to mind. I was not able to create an action involving menus, because there were no "Menu's" per se. > > Something to chew on I guess. > > Bob > > > On Mar 12, 2011, at 1:17 PM, Peter Haworth wrote: > > > I almost replied on this topic a couple of days ago when there was another user confused by this. > > > > I do agree that the way Livecode arranges menus for the Mac is standard behavior for OSX according to Apple's Human Interface Guidelines. My problem with what Livecode does is that "standard" and "guidelines" mean just that, by which I mean that Livecode should provide a way to do non-standard things that don't conform to the guidelines if that's what I want to do. It's fine to use the guidelines as a default but there should be a way to not take the default and I don't think LiveCode provides one. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at mollysrevenge.com Sat Mar 12 17:53:59 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Sat, 12 Mar 2011 14:53:59 -0800 Subject: Having fits with the menu bar In-Reply-To: References: <91B52F52-6702-451D-927D-2DF5C6A12518@sbcglobal.net> <4D7BCCFC.6000402@hyperactivesw.com> Message-ID: <69E69DDD-3EBE-419F-869C-613F6C6A89EF@mollysrevenge.com> You're right. If the OS doesn't allow it, then clearly Livecode has to enforce it. Pete Haworth On Mar 12, 2011, at 2:30 PM, Bob Sneidar wrote: > I think the question is, would the OS actually allow it? It may not. I remember years ago, while working with FoxPro for the mac, that because Microsoft wanted to have compete control over their menu structure, their menus were not actually "menus" at all. Because of that, any utilities that did custom menu modifications would not work with FoxPro. QuicKeys comes to mind. I was not able to create an action involving menus, because there were no "Menu's" per se. > > Something to chew on I guess. > > Bob > > > On Mar 12, 2011, at 1:17 PM, Peter Haworth wrote: > >> I almost replied on this topic a couple of days ago when there was another user confused by this. >> >> I do agree that the way Livecode arranges menus for the Mac is standard behavior for OSX according to Apple's Human Interface Guidelines. My problem with what Livecode does is that "standard" and "guidelines" mean just that, by which I mean that Livecode should provide a way to do non-standard things that don't conform to the guidelines if that's what I want to do. It's fine to use the guidelines as a default but there should be a way to not take the default and I don't think LiveCode provides one. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at mollysrevenge.com Sat Mar 12 18:05:12 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Sat, 12 Mar 2011 15:05:12 -0800 Subject: Having fits with the menu bar In-Reply-To: References: , <91B52F52-6702-451D-927D-2DF5C6A12518@sbcglobal.net>, <4D7BCCFC.6000402@hyperactivesw.com>, , Message-ID: My comment wasn't about the menu bar but where the items on the menus go. LC moves the last item in your Help menu and the last two items in the Edit menu to different menus to accommodate the "guideline" as to where the About and Preferences menu items should appear. As you've found, you can break the HIG as far as the menu bar is concerned, but not which menus some items are placed on. Pete Haworth On Mar 12, 2011, at 2:47 PM, John Dixon wrote: > But on the other hand, if you insist on being a total non-conformist and confusing your user you can... I have just created a stack and using the menu builder made the menus .... "AppName', 'Wassock' and 'Pooh', instead of 'LiveCode', 'File' and 'Edit'... From alex at tweedly.net Sat Mar 12 18:13:19 2011 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 12 Mar 2011 23:13:19 +0000 Subject: Efficiency question for list modification In-Reply-To: References: Message-ID: <4D7BFE0F.4040303@tweedly.net> You're right. Sorry - I was misled by the docs, which describe the order of the combine following the description of the 'first' form of the combine command, and then go on to describe the second form, including the fact that the keys of the array must be all numeric. I put 2 + 2 together and got a much too large answer :-( btw - I did also notice that the docs for 'combine' mention that 'combine by column' etc. was introduced in 2.8.1 -- Alex. On 12/03/2011 09:17, FlexibleLearning wrote: > Unfortunately 'combine' does not retain the original order. It should, but > it doesn't. The sort order for array elements seems to be alpha and not > numeric, even though the keys are numeric. This means that the output list > is not in the same order as the input list. > > Hugh Senior > FLCo From jacque at hyperactivesw.com Sat Mar 12 18:15:42 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 12 Mar 2011 17:15:42 -0600 Subject: Having fits with the menu bar In-Reply-To: References: <91B52F52-6702-451D-927D-2DF5C6A12518@sbcglobal.net> <4D7BCCFC.6000402@hyperactivesw.com> Message-ID: <4D7BFE9E.8010606@hyperactivesw.com> On 3/12/11 3:17 PM, Peter Haworth wrote: > No doubt the HIG police will jump all over me for this but it's not > really about HIG, it's about Livecode providing ways for developers > to do things the way they want to do things, not how LiveCode wants > to. You'll have to take it up with Apple. As soon as an app launches, including your standalone, the OS inserts an App menu that contains pre-determined items, and a Help menu that includes the Spotlight search bar. As John Dixon noted, you can create a different menu structure, but once you compile as a standalone, OS X takes over. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Sat Mar 12 18:20:36 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 12 Mar 2011 17:20:36 -0600 Subject: Having fits with the menu bar In-Reply-To: References: , <91B52F52-6702-451D-927D-2DF5C6A12518@sbcglobal.net>, <4D7BCCFC.6000402@hyperactivesw.com>, , Message-ID: <4D7BFFC4.3060206@hyperactivesw.com> On 3/12/11 5:05 PM, Peter Haworth wrote: > My comment wasn't about the menu bar but where the items on the menus > go. LC moves the last item in your Help menu and the last two items > in the Edit menu to different menus to accommodate the "guideline" as > to where the About and Preferences menu items should appear. As > you've found, you can break the HIG as far as the menu bar is > concerned, but not which menus some items are placed on. > There has to be some way for LiveCode to determine where those items are, so that it knows which ones to move to the correct locations in the menu bar. It's arbitrary, but useful, to have those specific items located in the same positions as they are on Linux and Windows. That way you can create only a single menu bar, and on OS X it will appear correctly. If you don't want to follow Apple's required menu structure, you can create any menus you like and just not set the stack menubar property. The menu group will remain in the stack window as it does on other systems, and the system menu bar will be empty except for the few things the OS puts there automatically. You will need to write commandkey handlers to catch menu keystrokes in this case, since keyboard shortcuts go to the system menu on Macs. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at mollysrevenge.com Sat Mar 12 18:27:08 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Sat, 12 Mar 2011 15:27:08 -0800 Subject: Having fits with the menu bar In-Reply-To: <4D7BFE9E.8010606@hyperactivesw.com> References: <91B52F52-6702-451D-927D-2DF5C6A12518@sbcglobal.net> <4D7BCCFC.6000402@hyperactivesw.com> <4D7BFE9E.8010606@hyperactivesw.com> Message-ID: <706FDA31-C34A-426C-867C-5BAC2A201033@mollysrevenge.com> As noted in my earlier post in rely to Bob, if the OS doesn't allow it so be it and Livecode has no choice. Pete Haworth -------------- next part -------------- http://www.mollysrevenge.com http://www.sonicbids.com/MollysRevenge http://www.myspace.com/mollysrevengeband On Mar 12, 2011, at 3:15 PM, J. Landman Gay wrote: > On 3/12/11 3:17 PM, Peter Haworth wrote: > >> No doubt the HIG police will jump all over me for this but it's not >> really about HIG, it's about Livecode providing ways for developers >> to do things the way they want to do things, not how LiveCode wants >> to. > > You'll have to take it up with Apple. As soon as an app launches, including your standalone, the OS inserts an App menu that contains pre-determined items, and a Help menu that includes the Spotlight search bar. > > As John Dixon noted, you can create a different menu structure, but once you compile as a standalone, OS X takes over. > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From mwieder at ahsoftware.net Sat Mar 12 18:43:54 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sat, 12 Mar 2011 15:43:54 -0800 Subject: Having fits with the menu bar In-Reply-To: <706FDA31-C34A-426C-867C-5BAC2A201033@mollysrevenge.com> References: <91B52F52-6702-451D-927D-2DF5C6A12518@sbcglobal.net> <4D7BCCFC.6000402@hyperactivesw.com> <4D7BFE9E.8010606@hyperactivesw.com> <706FDA31-C34A-426C-867C-5BAC2A201033@mollysrevenge.com> Message-ID: <152246294750.20110312154354@ahsoftware.net> Pete- Saturday, March 12, 2011, 3:27:08 PM, you wrote: > As noted in my earlier post in rely to Bob, if the OS doesn't > allow it so be it and Livecode has no choice. OTOH, you could request that Apple change its policy. I'm sure The Steve would recognize the wisdom of your arguments. -- -Mark Wieder mwieder at ahsoftware.net From capellan2000 at gmail.com Sat Mar 12 23:06:11 2011 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Sat, 12 Mar 2011 20:06:11 -0800 (PST) Subject: > Importing big JPEGs goes wonky In-Reply-To: <4D7A58F3.7090500@fourthworld.com> References: <4D7A58F3.7090500@fourthworld.com> Message-ID: <1299989171318-3351282.post@n4.nabble.com> In some strange way, this limitation is carried to command line image processing applications. Some time ago, when I was building an interface for the Tracing program named "Potrace", http://potrace.sourceforge.net/ the command-line image utility named "mkbitmap" produced distorted results when called from LiveCode processing images bigger than 4096 pixels. If I process the same image using System?s command prompt the results are correct. Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Re-Importing-big-JPEGs-goes-wonky-tp3348647p3351282.html Sent from the Revolution - User mailing list archive at Nabble.com. From bvg at mac.com Sat Mar 12 23:12:59 2011 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Sun, 13 Mar 2011 05:12:59 +0100 Subject: > Importing big JPEGs goes wonky In-Reply-To: <1299989171318-3351282.post@n4.nabble.com> References: <4D7A58F3.7090500@fourthworld.com> <1299989171318-3351282.post@n4.nabble.com> Message-ID: <82CFD655-A6BC-4202-A44D-7D3C5EDAA4C4@mac.com> Unless you somehow got the data into a livecode image obbject, it was a different problem. I'm sure the result was not garbled, but you showing the result in livecode was then breaking them, or something similar? On a totally, completely, super duper unrelated note, you probably will want to get the next version of LC... On 13 Mar 2011, at 05:06, Alejandro Tejada wrote: > In some strange way, this limitation is carried > to command line image processing applications. > > Some time ago, when I was building an interface > for the Tracing program named "Potrace", > http://potrace.sourceforge.net/ > the command-line image utility named "mkbitmap" > produced distorted results when called from > LiveCode processing images bigger than 4096 pixels. > > If I process the same image using System?s > command prompt the results are correct. > > Al > > > > > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Re-Importing-big-JPEGs-goes-wonky-tp3348647p3351282.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From liste.revo at medard.on-rev.com Sun Mar 13 06:54:16 2011 From: liste.revo at medard.on-rev.com (Medard) Date: Sun, 13 Mar 2011 11:54:16 +0100 Subject: Something wrong with "Livecode" In-Reply-To: Message-ID: <1jy2gu5.17py8y91ny5pevM%liste.revo@medard.on-rev.com> Colin Holgate wrote: > I see that there is another product that has "livecode", > but LiveCode does at least own "liveCode" too. Once I mentioned the fact "livecode" [all in lower case] was a Microsoft product name, and I was not well received ;-> From richmondmathewson at gmail.com Sun Mar 13 07:38:19 2011 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 13 Mar 2011 13:38:19 +0200 Subject: Something wrong with "Livecode" In-Reply-To: <1jy2gu5.17py8y91ny5pevM%liste.revo@medard.on-rev.com> References: <1jy2gu5.17py8y91ny5pevM%liste.revo@medard.on-rev.com> Message-ID: <4D7CACAB.6000808@gmail.com> On 03/13/2011 12:54 PM, Medard wrote: > Colin Holgate wrote: > >> I see that there is another product that has "livecode", >> but LiveCode does at least own "liveCode" too. > Once I mentioned the fact "livecode" [all in lower case] was a Microsoft > product name, and I was not well received ;-> > Some people may choose to interpret this thread as Richmond's subversive attempt to get RunRev to go back to calling their falgship product "Runtime Revolution". From keith.clarke at clarkeandclarke.co.uk Sun Mar 13 09:18:01 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Sun, 13 Mar 2011 13:18:01 +0000 Subject: How to configure RevServer support on Ubuntu Linux VPS under Plesk Message-ID: <07FA29F9-5E41-4FD8-AD15-DB992805F2E2@clarkeandclarke.co.uk> Hi folks, Buoyed by the success of getting revServer configured on my home OSX Server machine, I've now replaced my company's ageing VPS with a new Ubuntu/Plesk-10 environment and am writing-up my configuration travails by way of a how-to for others. As I expected, it hasn't worked first (or seventeenth!) time, as I've discovered new challenges, such as dealing with 64-bit Linux with no default 32-bit libraries and Plesk's Apache management idiosyncrasies. Still, I think I'm nearly there but just need some help from the Linux experts here to cross the finish line and finalise this how-to document for others to reference http://blog.clarityforsuccess.com/2011/03/configuring-revserver-on-parallels.html So, Linux cognoscenti, who can spot the mistake? ;-) Best, Keith.. From jhurley0305 at sbcglobal.net Sun Mar 13 11:06:59 2011 From: jhurley0305 at sbcglobal.net (James Hurley) Date: Sun, 13 Mar 2011 08:06:59 -0700 Subject: Having fits with the menu bar In-Reply-To: References: Message-ID: <03EE5D44-8380-42E5-ADB8-D85AC425B883@sbcglobal.net> Jacque, Of course you are right. I don't know what I was thinking. I just didn't realize what was going on. I'm so used to having my own way Run Rev code. I am a firm believer in the Mac UIG. And guidelines in general. I will be the first to admit that I support the guidelines about driving on the right side of the road. The only one I will have some difficulty with is the Preference item. In the app I am working on there is no clear need for user preferences. Maybe I will add something like this: A couple of radio buttons with the choice: O -- I would prefer to lose 5 pound. O -- I would prefer to lose 10 pounds. Or maybe something about "Less filling" "Better tasting" I suppose someone has written the script for the Edit menu (Cut, Copy, Paste), something beyond the Auto Script. (I'm too proud to come right out and ask for it.) Thanks again, Jim Hurley > > Message: 9 > Date: Sat, 12 Mar 2011 13:43:56 -0600 > From: "J. Landman Gay" > To: How to use LiveCode > Subject: Re: Having fits with the menu bar > Message-ID: <4D7BCCFC.6000402 at hyperactivesw.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > On 3/12/11 12:25 PM, James Hurley wrote: >> >> But there are still some issues. In the OSX menu I now see 4 menus >> only 3 of which are of my doing. They are: >> >> LiveCode File Edit Help > > Those are standard OS X conventions. The first menu item is supplied by > the OS and is always the name of the frontmost app. Even if you have no > menubar at all, you will have that menu item, as the OS needs it to > provide the Quit item -- which is always in the app menu. You don't need > to do anything about it; when you build a standalone, "Livecode" will > change to the name of your standalone. The menu is created by the OS, > not by LiveCode, and can't be removed. > >> >> Under the LiveCode menu I now have Preferences and About, among other >> things. I had no Preferences item in my menu group. I did have an >> About item and it has been moved to this LiveCode menu. As has the >> Quit item that I had under the File menu. > > Standard behavior. A preferences item under the app menu is put there by > the OS. There are funky ways to disable it, but its presence is standard > and expected by all Mac users. Your Edit menu should always have > Preferences as its last item entry, which LiveCode will move to the > appropriate place on OS X, under the app menu. The About item also goes > there, is always the first item under the app menu, and is standard > layout for OS X. I don't think you can actually remove that one either. > >> >> And I now find a "Search" window item under the "Help" menu. Where >> did that come from? > > That is Spotlight, a system service, put there by the OS and not > removable. It is under the Help menu in every app, system-wide. > >> >> So.... Is there a way to get rid of the "LiveCode" menu and put those >> items Quit and About) back where I had placed them? > > No, and you shouldn't, because they are in the places they are supposed > to be for OS X. Moving them will confuse your Mac users, your app will > be non-standard and (knowing most Mac people) distained for flying in > the face of the HIG. The beauty of LiveCode is that it manages all this > menu placement for you. Your items will be where you put them on Windows > and Linux, which have different menu expectations, and transparently > moved to the required locations on OS X. > > Since you're on a Mac, look at the menu bars in every app on the > machine, including the Finder, and you will see that all menu items and > placement always follow these conventions. On Mac, apps are required to > have an application menu (placed there by the OS) which is always > partially populated by OS services and features, and contains the Quit > menu item. After that you must have a File menu, followed by an Edit > menu, in that order. After that you can have any app-specific menus you > need. The last menu item must be Help, which the system also partially > populates. > >> >> But I am grateful now just to be making progress. I assume that >> RunRev was trying to be helpful in creating the menu for the >> standalone, but their plans were not quite my plans. > > Mac users went to some lengths to get MetaCard to provide this default > behavior way back when OS X first came out. The menus conventions are > strictly enforced by the OS, and they behave correctly in LiveCode. Go > with the flow, Mac users will appreciate it. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > From stephenREVOLUTION2 at barncard.com Sun Mar 13 13:17:23 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Sun, 13 Mar 2011 10:17:23 -0700 Subject: Having fits with the menu bar In-Reply-To: <03EE5D44-8380-42E5-ADB8-D85AC425B883@sbcglobal.net> References: <03EE5D44-8380-42E5-ADB8-D85AC425B883@sbcglobal.net> Message-ID: I don't know, James, it's pretty complex: switch pWhich case "Cut" cut break case "Copy" copy break case "Paste" paste break case "Clear" if the selectedField is not empty then put empty into the selectedField break case "Select All" select character 1 to -1 of the selectedField break end switch On 13 March 2011 08:06, James Hurley wrote: > Jacque, > > Of course you are right. I don't know what I was thinking. I just didn't > realize what was going on. I'm so used to having my own way Run Rev code. > > I am a firm believer in the Mac UIG. And guidelines in general. I will be > the first to admit that I support the guidelines about driving on the right > side of the road. > > The only one I will have some difficulty with is the Preference item. In > the app I am working on there is no clear need for user preferences. Maybe I > will add something like this: A couple of radio buttons with the choice: > > O -- I would prefer to lose 5 pound. > > O -- I would prefer to lose 10 pounds. > > Or maybe something about "Less filling" "Better tasting" > > I suppose someone has written the script for the Edit menu (Cut, Copy, > Paste), something beyond the Auto Script. (I'm too proud to come right out > and ask for it.) > > Thanks again, > > Jim Hurley > > > > Stephen Barncard San Francisco Ca. USA more about sqb From pete at mollysrevenge.com Sun Mar 13 14:13:00 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Sun, 13 Mar 2011 11:13:00 -0700 Subject: Having fits with the menu bar In-Reply-To: <152246294750.20110312154354@ahsoftware.net> References: <91B52F52-6702-451D-927D-2DF5C6A12518@sbcglobal.net> <4D7BCCFC.6000402@hyperactivesw.com> <4D7BFE9E.8010606@hyperactivesw.com> <706FDA31-C34A-426C-867C-5BAC2A201033@mollysrevenge.com> <152246294750.20110312154354@ahsoftware.net> Message-ID: <728672AC-7A61-452F-BFC6-A68551AF8AE9@mollysrevenge.com> Yes, he's such a reasonable and flexible guy. Pete Haworth On Mar 12, 2011, at 3:43 PM, Mark Wieder wrote: > Pete- > > Saturday, March 12, 2011, 3:27:08 PM, you wrote: > >> As noted in my earlier post in rely to Bob, if the OS doesn't >> allow it so be it and Livecode has no choice. > > OTOH, you could request that Apple change its policy. I'm sure The > Steve would recognize the wisdom of your arguments. > > -- > -Mark Wieder > mwieder at ahsoftware.net > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From david at vaudevillecourt.tv Sun Mar 13 15:36:07 2011 From: david at vaudevillecourt.tv (David Bovill) Date: Sun, 13 Mar 2011 19:36:07 +0000 Subject: Nested arrays are equal? Message-ID: I'm just testing this now - does anyone know if equality works with nested arrays / and / or if there are any issues? From mikekann at yahoo.com Sun Mar 13 15:50:03 2011 From: mikekann at yahoo.com (Michael Kann) Date: Sun, 13 Mar 2011 12:50:03 -0700 (PDT) Subject: [OT] Phoning Cheaply In-Reply-To: Message-ID: <753969.73407.qm@web161613.mail.bf1.yahoo.com> We've been using www.pingo.com to call China for years and have never had a problem. They are now advertizing low rates to the UK. Someone on the list might find a use for it. (Nothing in it for me) ? Michael From admin at FlexibleLearning.com Sun Mar 13 17:29:46 2011 From: admin at FlexibleLearning.com (FlexibleLearning) Date: Sun, 13 Mar 2011 21:29:46 -0000 Subject: LiveCode color map In-Reply-To: Message-ID: I have uploaded an experimental color map. Comments welcome. www.FlexibleLearning.com/colorMap/LiveCodeColorMap.rev Hugh Senior FLCo From richmondmathewson at gmail.com Sun Mar 13 17:48:08 2011 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 13 Mar 2011 23:48:08 +0200 Subject: LiveCode color map In-Reply-To: References: Message-ID: <4D7D3B98.4010609@gmail.com> On 03/13/2011 11:29 PM, FlexibleLearning wrote: > I have uploaded an experimental color map. > > Comments welcome. > > www.FlexibleLearning.com/colorMap/LiveCodeColorMap.rev > Funnily enough that looks extremely similar to the old Metacard Color Chooser without some of it useful features. From bobs at twft.com Sun Mar 13 19:00:29 2011 From: bobs at twft.com (Bob Sneidar) Date: Sun, 13 Mar 2011 16:00:29 -0700 Subject: LiveCode color map In-Reply-To: References: Message-ID: <61140D98-87B3-4B64-8397-1B6094FA9ECF@twft.com> Pretty cool. So now if I make this a library stack, could I assign colors by the names in this stack? That would be cool. Bob On Mar 13, 2011, at 2:29 PM, FlexibleLearning wrote: > I have uploaded an experimental color map. > > Comments welcome. > > www.FlexibleLearning.com/colorMap/LiveCodeColorMap.rev > > > Hugh Senior > FLCo > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at mollysrevenge.com Sun Mar 13 19:11:34 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Sun, 13 Mar 2011 16:11:34 -0700 Subject: Selecting an object Message-ID: I am trying to select a group on a card that is not currently open and getting an error that I can's select an object on a card that is not open. Tried setting the default stack to the name of the stack that the group is in but still get the same error. I'd like to do this without opening the stack or at least without the user knowing that I am opening it. Is there a way to achieve that? Thanks, Pete Haworth From bonnmike at gmail.com Sun Mar 13 19:17:10 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 13 Mar 2011 17:17:10 -0600 Subject: Selecting an object In-Reply-To: References: Message-ID: look at go invisible to card "card" of stack "stack" Some variation of that will probably be what you need. On Sun, Mar 13, 2011 at 5:11 PM, Peter Haworth wrote: > I am trying to select a group on a card that is not currently open and > getting an error that I can's select an object on a card that is not open. > Tried setting the default stack to the name of the stack that the group is > in but still get the same error. > > I'd like to do this without opening the stack or at least without the user > knowing that I am opening it. Is there a way to achieve that? > > Thanks, > > Pete Haworth > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at mollysrevenge.com Sun Mar 13 19:20:17 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Sun, 13 Mar 2011 16:20:17 -0700 Subject: Selecting an object In-Reply-To: References: Message-ID: <0BC83181-408B-4A28-AF67-B78FF78D8987@mollysrevenge.com> Cool, thanks. Pete Haworth On Mar 13, 2011, at 4:17 PM, Mike Bonner wrote: > look at > go invisible to card "card" of stack "stack" > Some variation of that will probably be what you need. > > On Sun, Mar 13, 2011 at 5:11 PM, Peter Haworth wrote: > >> I am trying to select a group on a card that is not currently open and >> getting an error that I can's select an object on a card that is not open. >> Tried setting the default stack to the name of the stack that the group is >> in but still get the same error. >> >> I'd like to do this without opening the stack or at least without the user >> knowing that I am opening it. Is there a way to achieve that? >> >> Thanks, >> >> Pete Haworth >> >> >> >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Sun Mar 13 19:59:52 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 13 Mar 2011 18:59:52 -0500 Subject: LiveCode color map In-Reply-To: <61140D98-87B3-4B64-8397-1B6094FA9ECF@twft.com> References: <61140D98-87B3-4B64-8397-1B6094FA9ECF@twft.com> Message-ID: <4D7D5A78.1030200@hyperactivesw.com> On 3/13/11 6:00 PM, Bob Sneidar wrote: > Pretty cool. So now if I make this a library stack, could I assign > colors by the names in this stack? That would be cool. Actually the "colornames" property has been there since day one, but RR has always hidden it. You can set colors by name via the message box or script though. I haven't looked at Hugh's stack yet, but it sounds like he's making use of that. Completely aside: I often use the colornames when I want to generate random input for testing, or assemble a random string. "get any of the colornames" is a quick way to do that when you just need a big list of text as a source. The colornames is really long, so there are lots of lines available. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Sun Mar 13 20:01:28 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 13 Mar 2011 19:01:28 -0500 Subject: Selecting an object In-Reply-To: References: Message-ID: <4D7D5AD8.3010203@hyperactivesw.com> On 3/13/11 6:11 PM, Peter Haworth wrote: > I am trying to select a group on a card that is not currently open > and getting an error that I can's select an object on a card that is > not open. Tried setting the default stack to the name of the stack > that the group is in but still get the same error. > > I'd like to do this without opening the stack or at least without the > user knowing that I am opening it. Is there a way to achieve that? Why do you want to select it? There's almost always a way to operate on an object remotely without selecting it. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at mollysrevenge.com Sun Mar 13 20:12:36 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Sun, 13 Mar 2011 17:12:36 -0700 Subject: Selecting an object In-Reply-To: <4D7D5AD8.3010203@hyperactivesw.com> References: <4D7D5AD8.3010203@hyperactivesw.com> Message-ID: <82CF878E-C0A0-4C96-81A2-46607139388F@mollysrevenge.com> I need to add a control into the group. After some help from people on the list a couple of weeks ago, I've been doing this by selecting the group, ungrouping it, making a group command from the selectedObjects property plus the id of the new control, then "do" the group command. Up to now, the group and the control have always been on the currently open card but now I need to do the same thing on a card that is not currently open and that's when I ran into this problem.. Pete Haworth On Mar 13, 2011, at 5:01 PM, J. Landman Gay wrote: > On 3/13/11 6:11 PM, Peter Haworth wrote: >> I am trying to select a group on a card that is not currently open >> and getting an error that I can's select an object on a card that is >> not open. Tried setting the default stack to the name of the stack >> that the group is in but still get the same error. >> >> I'd like to do this without opening the stack or at least without the >> user knowing that I am opening it. Is there a way to achieve that? > > Why do you want to select it? There's almost always a way to operate on an object remotely without selecting it. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Sun Mar 13 20:15:08 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 13 Mar 2011 19:15:08 -0500 Subject: Having fits with the menu bar In-Reply-To: <03EE5D44-8380-42E5-ADB8-D85AC425B883@sbcglobal.net> References: <03EE5D44-8380-42E5-ADB8-D85AC425B883@sbcglobal.net> Message-ID: <4D7D5E0C.4040709@hyperactivesw.com> On 3/13/11 10:06 AM, James Hurley wrote: > The only one I will have some difficulty with is the Preference item. > In the app I am working on there is no clear need for user > preferences. Maybe I will add something like this: A couple of radio > buttons with the choice: > > O -- I would prefer to lose 5 pound. > > O -- I would prefer to lose 10 pounds. > > Or maybe something about "Less filling" "Better tasting" I think that'd be great. :) I mentioned before, I think, that my favorite non-preference Preference dialog said something like "We are nonjudgemental, we have no preference." There's a way to disable the Preferences item in the system menu. I can't remember exactly how (it's in the list archives somewhere) but it may be as simple as just disabling the Preferences item in the menu before building the standalone. Re-reading my original response, I think I may have over-explained things, since I know you're on a Mac. Hopefully posterity will find it useful, I'm pretty sure you didn't need all that. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Sun Mar 13 20:32:04 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 13 Mar 2011 19:32:04 -0500 Subject: Selecting an object In-Reply-To: <82CF878E-C0A0-4C96-81A2-46607139388F@mollysrevenge.com> References: <4D7D5AD8.3010203@hyperactivesw.com> <82CF878E-C0A0-4C96-81A2-46607139388F@mollysrevenge.com> Message-ID: <4D7D6204.8030801@hyperactivesw.com> On 3/13/11 7:12 PM, Peter Haworth wrote: > I need to add a control into the group. > > After some help from people on the list a couple of weeks ago, I've > been doing this by selecting the group, ungrouping it, making a group > command from the selectedObjects property plus the id of the new > control, then "do" the group command. That's the long way around. Try this, assuming you want a button: create btn "new button" in grp "mygroup" of cd "thatCard" If you're on the same card, just: create btn "new button" in grp "mygroup" You can substitute any control for "button". No need to ungroup first, just plunk it in there. I vaguely remember a discussion about this but I can't remember why you weren't able to do it this way for some reason. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at mollysrevenge.com Sun Mar 13 20:45:00 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Sun, 13 Mar 2011 17:45:00 -0700 Subject: Selecting an object In-Reply-To: <4D7D6204.8030801@hyperactivesw.com> References: <4D7D5AD8.3010203@hyperactivesw.com> <82CF878E-C0A0-4C96-81A2-46607139388F@mollysrevenge.com> <4D7D6204.8030801@hyperactivesw.com> Message-ID: <8EBC28E0-93E8-437A-8DA3-8B5009BDF417@mollysrevenge.com> I know that was suggested and I can't remember why it didn't work for me - I think it may have been because the group may not exist. Or maybe it's because I'm copying the control into the group, not creating it? Pete Haworth On Mar 13, 2011, at 5:32 PM, J. Landman Gay wrote: > On 3/13/11 7:12 PM, Peter Haworth wrote: >> I need to add a control into the group. >> >> After some help from people on the list a couple of weeks ago, I've >> been doing this by selecting the group, ungrouping it, making a group >> command from the selectedObjects property plus the id of the new >> control, then "do" the group command. > > That's the long way around. Try this, assuming you want a button: > > create btn "new button" in grp "mygroup" of cd "thatCard" > > If you're on the same card, just: > > create btn "new button" in grp "mygroup" > > You can substitute any control for "button". No need to ungroup first, just plunk it in there. I vaguely remember a discussion about this but I can't remember why you weren't able to do it this way for some reason. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From runrevplanet at smpcs.server101.com Sun Mar 13 22:13:23 2011 From: runrevplanet at smpcs.server101.com (Scott McDonald) Date: Sun, 13 Mar 2011 19:13:23 -0700 (PDT) Subject: [ANN] RunRevPlanet Search Message-ID: <1300068803611-3353007.post@n4.nabble.com> There is a new search library for LiveCode. It is a commercial product, that can add fast search abilities to your help stacks, or any other application where you need to be able to search across the contents of the cards in a way much better than the LiveCode find command. There is a free demo stack that I tried to put on Rev Online, but it seemed too big. (I couldn't get it to successfully upload, but maybe there was another reason related to my Internet connection?) It is a searchable reference with over 16,000 posts from this list. I find it useful when I can't access Nabble, and maybe others will find it is handy too. You can get it from: http://www.runrevplanet.com/free-downloads.html ----- -- Scott McDonald "Components, Controls, Tools and Resources for LiveCode" www.runrevplanet.com -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-RunRevPlanet-Search-tp3353007p3353007.html Sent from the Revolution - User mailing list archive at Nabble.com. From etcawley at fastmail.fm Mon Mar 14 00:22:06 2011 From: etcawley at fastmail.fm (edward cawley) Date: Sun, 13 Mar 2011 23:22:06 -0500 Subject: Menu font sizes Message-ID: Still having a problem. How do I increase the font size on the Windows standalone. It's reduced to a very small font-6? on the menubar line on the windows standalone. I can't see anywhere to change it? Ed From jacque at hyperactivesw.com Mon Mar 14 00:43:12 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 13 Mar 2011 23:43:12 -0500 Subject: Selecting an object In-Reply-To: <8EBC28E0-93E8-437A-8DA3-8B5009BDF417@mollysrevenge.com> References: <4D7D5AD8.3010203@hyperactivesw.com> <82CF878E-C0A0-4C96-81A2-46607139388F@mollysrevenge.com> <4D7D6204.8030801@hyperactivesw.com> <8EBC28E0-93E8-437A-8DA3-8B5009BDF417@mollysrevenge.com> Message-ID: <4D7D9CE0.7060702@hyperactivesw.com> On 3/13/11 7:45 PM, Peter Haworth wrote: > I know that was suggested and I can't remember why it didn't work for > me - I think it may have been because the group may not exist. Or > maybe it's because I'm copying the control into the group, not > creating it? For copying, use this: copy button "myButton" to grp "mygroup" of cd "thatCard" If you no longer want the original, you'd need to delete it after that: delete button "myButton" of cd "thatCard" If the group doesn't exist then you'd need to create one first. You can do that remotely too: create grp "new group" place grp "new group" onto cd "thatCard" remove grp "new group" from this cd -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Mon Mar 14 00:47:19 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 13 Mar 2011 23:47:19 -0500 Subject: Menu font sizes In-Reply-To: References: Message-ID: <4D7D9DD7.6000107@hyperactivesw.com> On 3/13/11 11:22 PM, edward cawley wrote: > Still having a problem. How do I increase the font size on the > Windows standalone. It's reduced to a very small font-6? on the > menubar line on the windows standalone. I can't see anywhere to > change it? Set the font and size of the menu group in the IDE before you build. You can use the group's property inspector to do that. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Mon Mar 14 00:50:43 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 13 Mar 2011 23:50:43 -0500 Subject: Selecting an object In-Reply-To: <4D7D9CE0.7060702@hyperactivesw.com> References: <4D7D5AD8.3010203@hyperactivesw.com> <82CF878E-C0A0-4C96-81A2-46607139388F@mollysrevenge.com> <4D7D6204.8030801@hyperactivesw.com> <8EBC28E0-93E8-437A-8DA3-8B5009BDF417@mollysrevenge.com> <4D7D9CE0.7060702@hyperactivesw.com> Message-ID: <4D7D9EA3.2000703@hyperactivesw.com> On 3/13/11 11:43 PM, J. Landman Gay wrote: > On 3/13/11 7:45 PM, Peter Haworth wrote: >> I know that was suggested and I can't remember why it didn't work for >> me - I think it may have been because the group may not exist. Or >> maybe it's because I'm copying the control into the group, not >> creating it? > > For copying, use this: > > copy button "myButton" to grp "mygroup" of cd "thatCard" Oops, this will fail if you aren't on that card. I should have said: copy button "myButton" of cd "thatCard" to grp "mygroup" of cd "thatCard" But there's a shorter way using the "currentCard" syntax. That's sort of like defaultstack, only for cards. So you could set that first, do the work, then set it back: put the number of this cd into tOrigCard set the currentcard of this stack to "thatCard" copy btn "myButton" to grp "mygroup" ... anything else you need to do there set the currentcard of this stack to tOrigCard So all the work gets done without the user ever changing cards. > > If you no longer want the original, you'd need to delete it after that: > > delete button "myButton" of cd "thatCard" > > If the group doesn't exist then you'd need to create one first. You can > do that remotely too: > > create grp "new group" > place grp "new group" onto cd "thatCard" > remove grp "new group" from this cd > -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pderocco at ix.netcom.com Mon Mar 14 01:16:23 2011 From: pderocco at ix.netcom.com (Paul D. DeRocco) Date: Sun, 13 Mar 2011 22:16:23 -0700 Subject: Menu font sizes In-Reply-To: Message-ID: <40847FD2D2434146895E35141DB2AC52@PAULD> > From: edward cawley > > Still having a problem. How do I increase the font size on > the Windows standalone. It's reduced to a very small font-6? > on the menubar line on the windows standalone. I can't see > anywhere to change it? That cropped up for me, all of a sudden once. I never figured out what made it happen. It seems to me that it went from an unspecified state, in which it used the normal Windows default, to a specified state with the wrong value. But I never specified the menu font size. Rather than specify the "correct" font size, which may not agree with what the user set up in the desktop properties, I'd rather get back the original behavior of just letting Windows set the font size. Anyone have any ideas how to do that? -- Ciao, Paul D. DeRocco Paul mailto:pderocco at ix.netcom.com From liste.revo at medard.on-rev.com Mon Mar 14 04:09:25 2011 From: liste.revo at medard.on-rev.com (Medard) Date: Mon, 14 Mar 2011 09:09:25 +0100 Subject: Tooltips not closing with change of app focus on OSX - bug? In-Reply-To: <854610A2-D622-4A2A-AB88-EAC313238B22@clarkeandclarke.co.uk> Message-ID: <1jy43tb.gnzotyfgq9q2M%liste.revo@medard.on-rev.com> Keith Clarke wrote: > Does anyone else notice that open tooltips fail to close when the focus > moves from LiveCode (IDE or a stand alone) to another app on OSX? +1 no mean to get rid of that -- unless you put the stack in the dock (AKA "minimize") before you swap to another app... From keith.clarke at clarkeandclarke.co.uk Mon Mar 14 04:43:45 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Mon, 14 Mar 2011 08:43:45 +0000 Subject: Tooltips not closing with change of app focus on OSX - bug? In-Reply-To: <1jy43tb.gnzotyfgq9q2M%liste.revo@medard.on-rev.com> References: <1jy43tb.gnzotyfgq9q2M%liste.revo@medard.on-rev.com> Message-ID: ...interesting, Medard - you have to minimise the app, I find the tooltips close when clicked and Richard finds they close on mouse move - so there is obviously a problem here. I've only seen this issue on LiveCode and LiveCode-generated apps - but all seem to be affected. It's a relatively minor bug but it makes stand alone apps look a bit 'sloppy', which reflects badly on developers. It's clearly a LiveCode platform issue as it happens in the IDE on OSX. So, I hope the dev team agrees that it needs attention. If you have QA access, perhaps you could comment http://quality.runrev.com/qacenter/show_bug.cgi?id=9444 Best, Keith.. On 14 Mar 2011, at 08:09, Medard wrote: > > +1 > > no mean to get rid of that -- unless you put the stack in the dock (AKA > "minimize") before you swap to another app... From toolbook at kestner.de Mon Mar 14 07:19:56 2011 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Mon, 14 Mar 2011 12:19:56 +0100 Subject: OT: Japan Message-ID: <000001cbe239$c677e2f0$5367a8d0$@de> I think we have some LiveCode friends in Japan. The news are getting worse and hard to evaluate. Everything ok with you? Tiemo From dave.cragg at lacscentre.co.uk Mon Mar 14 09:36:03 2011 From: dave.cragg at lacscentre.co.uk (Dave Cragg) Date: Mon, 14 Mar 2011 13:36:03 +0000 Subject: OT: Japan In-Reply-To: <000001cbe239$c677e2f0$5367a8d0$@de> References: <000001cbe239$c677e2f0$5367a8d0$@de> Message-ID: <2FB8E670-D806-4567-AD50-EDD4F5D6584C@lacscentre.co.uk> I had word from Nicolas Cueto on Saturday. He lives in Tochigi prefecture (I think) north of Tokyo. He and his family were all right. In his words, "But, fortunately, our home, like most other homes in the town, just suffered from furniture falling over, shelves collapsing, and things falling off walls." Dave On 14 Mar 2011, at 11:19, Tiemo Hollmann TB wrote: > I think we have some LiveCode friends in Japan. > > The news are getting worse and hard to evaluate. Everything ok with you? > > Tiemo From keith.clarke at clarkeandclarke.co.uk Mon Mar 14 09:38:10 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Mon, 14 Mar 2011 13:38:10 +0000 Subject: revServer on Linux - was: How to configure RevServer support on Ubuntu Linux VPS under Plesk In-Reply-To: <07FA29F9-5E41-4FD8-AD15-DB992805F2E2@clarkeandclarke.co.uk> References: <07FA29F9-5E41-4FD8-AD15-DB992805F2E2@clarkeandclarke.co.uk> Message-ID: <25A972AA-1C15-417D-AF18-6F5FD67A1CF9@clarkeandclarke.co.uk> Hi folks, The following blog entry now contains a 'working' how-to guide for configuring revServer on a Linux Ubuntu server, whether or not the box is: ? 32 or 64-bit ? Using the Plesk control panel ? A VPS (running the Plesk Power Panel/Virtuozzo) or a simple server http://blog.clarityforsuccess.com/2011/03/livecode-revserver-on-linux-ubuntu.html Hopefully, this might help fill the revServer documentation gap and save folks from having to trawl through the (great) advice within RunRev lessons and the list archives. Best, Keith.. On 13 Mar 2011, at 13:18, Keith Clarke wrote: > Hi folks, > Buoyed by the success of getting revServer configured on my home OSX Server machine, I've now replaced my company's ageing VPS with a new Ubuntu/Plesk-10 environment and am writing-up my configuration travails by way of a how-to for others. > > As I expected, it hasn't worked first (or seventeenth!) time, as I've discovered new challenges, such as dealing with 64-bit Linux with no default 32-bit libraries and Plesk's Apache management idiosyncrasies. > > Still, I think I'm nearly there but just need some help from the Linux experts here to cross the finish line and finalise this how-to document for others to reference http://blog.clarityforsuccess.com/2011/03/configuring-revserver-on-parallels.html > > So, Linux cognoscenti, who can spot the mistake? ;-) > Best, > Keith.. > > > > > From lists at mangomultimedia.com Mon Mar 14 10:00:27 2011 From: lists at mangomultimedia.com (Trevor DeVore) Date: Mon, 14 Mar 2011 10:00:27 -0400 Subject: Problems with 'Revolution' BBEdit language module In-Reply-To: <4D778EA6.5050308@cogapp.com> References: <4D778EA6.5050308@cogapp.com> Message-ID: On Wed, Mar 9, 2011 at 9:28 AM, Ben Rubinstein wrote: > I'm a happy user of Blue Mango's language module for 'Revolution' (thanks, > Trevor!). > > Recently however I've found that BBEdit crashes as soon as I try to edit a > file with this language module active - viewing is fine, copy is fine, but > any attempt to change the text, by typing or paste, causes a bad access > crash. A colleague has reported what is probably the same thing. > > I assume that there's some conflict with BBEdit 9.6.3, which I probably > updated to a month or so ago. > > Has anyone else encountered this? Does anyone know if there's a more > recent language module available? (I'm using the 'Revolution' one of Dec 18 > 2008 (which replaced the 'Transcript' one of June 2 2004). > > I've taken a look on BareBones' site (and Blue Mango's) and there's nothing > obvious to suggest that BB has made a conscious change in the API. > Hi Ben, Unfortunately I don't have BBEdit 9.6 so I can't test this. Can you send the crash report to me directly? I can't promise anything but I can take a look to see if I can determine what is going on. -- Trevor DeVore Blue Mango Learning Systems ScreenSteps: http://www.screensteps.com LiveCode Resources for Developers: http://livecode.bluemangolearning.com From form at nonsanity.com Mon Mar 14 11:10:54 2011 From: form at nonsanity.com (Nonsanity) Date: Mon, 14 Mar 2011 11:10:54 -0400 Subject: LiveCode color map In-Reply-To: <4D7D5A78.1030200@hyperactivesw.com> References: <61140D98-87B3-4B64-8397-1B6094FA9ECF@twft.com> <4D7D5A78.1030200@hyperactivesw.com> Message-ID: A couple of things I found odd about colornames, last time I worked with them... You can't convert a colorname to it's RGB values without assigning the color to a color property of an object, then getting the color of that object. (At least as far as I could find.) And if you do that with a bad color name, the RGB values you get back will be something like "Aquamarine,65,128" which is quite odd. So it's a good idea to make sure the named color is in colornames before applying it. ~ Chris Innanen ~ Nonsanity On Sun, Mar 13, 2011 at 7:59 PM, J. Landman Gay wrote: > On 3/13/11 6:00 PM, Bob Sneidar wrote: > >> Pretty cool. So now if I make this a library stack, could I assign >> colors by the names in this stack? That would be cool. >> > > Actually the "colornames" property has been there since day one, but RR has > always hidden it. You can set colors by name via the message box or script > though. I haven't looked at Hugh's stack yet, but it sounds like he's making > use of that. > > Completely aside: I often use the colornames when I want to generate random > input for testing, or assemble a random string. "get any of > the colornames" is a quick way to do that when you just need a big list of > text as a source. The colornames is really long, so there are lots of lines > available. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From selander at tkf.att.ne.jp Mon Mar 14 11:46:29 2011 From: selander at tkf.att.ne.jp (Tim Selander) Date: Tue, 15 Mar 2011 00:46:29 +0900 Subject: OT: Japan In-Reply-To: <2FB8E670-D806-4567-AD50-EDD4F5D6584C@lacscentre.co.uk> References: <000001cbe239$c677e2f0$5367a8d0$@de> <2FB8E670-D806-4567-AD50-EDD4F5D6584C@lacscentre.co.uk> Message-ID: <4D7E3855.2090902@tkf.att.ne.jp> Ron Barber and I are in Japan, too, in Tokyo. While damage from the quake was not too severe, there were many deaths in the city. Now the markets are out of food and gasoline, trains are not running regularly, transportation's a mess, there are rolling blackouts due to the power plants, and they just had a news conference 12:30 am our time to say there is a big jump in leaked radioactivity, the water level is down too far, and the rods are exposed. This is Very Bad. The plant is 150 miles (km? can't recall) north of Ron and I. And of course it is much much much worse for those in the thick of it all up north. The tsunami hit miles and miles and miles of shoreline, running as much as 6km inland, wiping out town after town. Then, what they are not showing cuz there aren't pictures, are all the towns in the mountains that have had road and rail destroyed, so are completely cut off. No food, fuel. Man, it's grim. If you are of the "praying persuasion," this is your cue. I don't think they've scratched the surface in counting casualties... the numbers are going to be staggering. Tim Selander Tokyo, Japan On 3/14/11 10:36 PM, Dave Cragg wrote: > I had word from Nicolas Cueto on Saturday. He lives in Tochigi prefecture (I think) north of Tokyo. > > He and his family were all right. > > In his words, "But, fortunately, our home, like > most other homes in the town, just suffered from furniture falling > over, shelves collapsing, and things falling off walls." > > Dave > > > On 14 Mar 2011, at 11:19, Tiemo Hollmann TB wrote: > >> I think we have some LiveCode friends in Japan. >> >> The news are getting worse and hard to evaluate. Everything ok with you? >> >> Tiemo > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From eps11 at mac.com Mon Mar 14 12:34:34 2011 From: eps11 at mac.com (Eric Peyron) Date: Mon, 14 Mar 2011 17:34:34 +0100 Subject: Scroller Example bug? Message-ID: Hi all, The Scroller Example app bundled with Livecode looks very useful at first, but look at what happens when you add this: create a new card and make it the first card. Create a "go next" button on this new card, and a "go back" button on the scoller card. In the iPhone simulator, click the first button. The scroller card is displayed immediately. Then click the Back button. The card is not displayed immediately. If you want it to be displayed immediately, you have to first click the Back button, then click again anywhere on the screen. Does anyone know why this is happening? Thanks in advance, Eric From klaus at major.on-rev.com Mon Mar 14 12:35:51 2011 From: klaus at major.on-rev.com (Klaus on-rev) Date: Mon, 14 Mar 2011 17:35:51 +0100 Subject: french date Message-ID: <9ADDECBD-30B8-4DA8-BBDA-707A5546CD92@major.on-rev.com> Boujour mes amies, can some french user plaese post what "the system date" gives on a french system? Thanks in advance! Best Klaus -- Klaus Major http://www.major-k.de klaus at major.on-rev.com From rene.micout at numericable.com Mon Mar 14 12:57:59 2011 From: rene.micout at numericable.com (=?iso-8859-1?Q?Ren=E9_Micout?=) Date: Mon, 14 Mar 2011 17:57:59 +0100 Subject: french date In-Reply-To: <9ADDECBD-30B8-4DA8-BBDA-707A5546CD92@major.on-rev.com> References: <9ADDECBD-30B8-4DA8-BBDA-707A5546CD92@major.on-rev.com> Message-ID: Hello Klaus, What is exactly your question ? I can help you if I understand what you are searching for... Bon souvenir de Paris Ren? Le 14 mars 2011 ? 17:35, Klaus on-rev a ?crit : > Boujour mes amies, > > can some french user plaese post what "the system date" gives on a french system? > Thanks in advance! > > > Best > > Klaus > > -- > Klaus Major > http://www.major-k.de > klaus at major.on-rev.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ludovic.thebault at laposte.net Mon Mar 14 13:01:18 2011 From: ludovic.thebault at laposte.net (=?iso-8859-1?Q?Ludovic_Th=E9bault?=) Date: Mon, 14 Mar 2011 18:01:18 +0100 Subject: french date In-Reply-To: <9ADDECBD-30B8-4DA8-BBDA-707A5546CD92@major.on-rev.com> References: <9ADDECBD-30B8-4DA8-BBDA-707A5546CD92@major.on-rev.com> Message-ID: <6A819F4C-3974-4CCC-AB26-2F4013F51E8D@laposte.net> Le 14 mars 2011 ? 17:35, Klaus on-rev a ?crit : > > Boujour mes amies, > > can some french user plaese post what "the system date" gives on a french system? > Thanks in advance! > > Bonjour ! 'put the system date' give me : 14/03/11 From coiin at verizon.net Mon Mar 14 13:03:23 2011 From: coiin at verizon.net (Colin Holgate) Date: Mon, 14 Mar 2011 13:03:23 -0400 Subject: french date In-Reply-To: References: <9ADDECBD-30B8-4DA8-BBDA-707A5546CD92@major.on-rev.com> Message-ID: <3FD2C192-F862-4197-8BF7-B4409930B5C1@verizon.net> I believe that by saying: can some french user please post what "the system date" gives on a french system? he was just asking you to type "put the system date" in the message box, and let him know what it puts. I feel sure that it's going to be "14/3/11". From rene.micout at numericable.com Mon Mar 14 13:05:34 2011 From: rene.micout at numericable.com (=?iso-8859-1?Q?Ren=E9_Micout?=) Date: Mon, 14 Mar 2011 18:05:34 +0100 Subject: french date In-Reply-To: <3FD2C192-F862-4197-8BF7-B4409930B5C1@verizon.net> References: <9ADDECBD-30B8-4DA8-BBDA-707A5546CD92@major.on-rev.com> <3FD2C192-F862-4197-8BF7-B4409930B5C1@verizon.net> Message-ID: <70F32CC3-9059-4CD3-A7CA-D66EE7E0607F@numericable.com> Yes... I understand my "b?tise" after the post of Ludovic... :-( Le 14 mars 2011 ? 18:03, Colin Holgate a ?crit : > I believe that by saying: > > can some french user please post what "the system date" gives on a french system? > > he was just asking you to type "put the system date" in the message box, and let him know what it puts. I feel sure that it's going to be "14/3/11". > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major.on-rev.com Mon Mar 14 13:11:05 2011 From: klaus at major.on-rev.com (Klaus on-rev) Date: Mon, 14 Mar 2011 18:11:05 +0100 Subject: french date In-Reply-To: <9ADDECBD-30B8-4DA8-BBDA-707A5546CD92@major.on-rev.com> References: <9ADDECBD-30B8-4DA8-BBDA-707A5546CD92@major.on-rev.com> Message-ID: Hi all, > Boujour mes amies, > > can some french user plaese post what "the system date" gives on a french system? > Thanks in advance! thanks, my question is answered! Looks like this is the same format as the german short system date. That is what I wanted to know and was not sure. Merci beacoup, mes amies! :-) Best Klaus -- Klaus Major http://www.major-k.de klaus at major.on-rev.com From pete at mollysrevenge.com Mon Mar 14 13:15:58 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Mon, 14 Mar 2011 10:15:58 -0700 Subject: Selecting an object In-Reply-To: <4D7D9EA3.2000703@hyperactivesw.com> References: <4D7D5AD8.3010203@hyperactivesw.com> <82CF878E-C0A0-4C96-81A2-46607139388F@mollysrevenge.com> <4D7D6204.8030801@hyperactivesw.com> <8EBC28E0-93E8-437A-8DA3-8B5009BDF417@mollysrevenge.com> <4D7D9CE0.7060702@hyperactivesw.com> <4D7D9EA3.2000703@hyperactivesw.com> Message-ID: Thanks. I guess the way I was doing it was mimicking how I would do it manually in the IDE but your way sounds neater so I'll give it a whirl. Pete Haworth On Mar 13, 2011, at 9:50 PM, J. Landman Gay wrote: > On 3/13/11 11:43 PM, J. Landman Gay wrote: >> On 3/13/11 7:45 PM, Peter Haworth wrote: >>> I know that was suggested and I can't remember why it didn't work for >>> me - I think it may have been because the group may not exist. Or >>> maybe it's because I'm copying the control into the group, not >>> creating it? >> >> For copying, use this: >> >> copy button "myButton" to grp "mygroup" of cd "thatCard" > > Oops, this will fail if you aren't on that card. I should have said: > > copy button "myButton" of cd "thatCard" to grp "mygroup" of cd "thatCard" > > But there's a shorter way using the "currentCard" syntax. That's sort of like defaultstack, only for cards. So you could set that first, do the work, then set it back: > > put the number of this cd into tOrigCard > set the currentcard of this stack to "thatCard" > copy btn "myButton" to grp "mygroup" > ... anything else you need to do there > set the currentcard of this stack to tOrigCard > > So all the work gets done without the user ever changing cards. > >> >> If you no longer want the original, you'd need to delete it after that: >> >> delete button "myButton" of cd "thatCard" >> >> If the group doesn't exist then you'd need to create one first. You can >> do that remotely too: >> >> create grp "new group" >> place grp "new group" onto cd "thatCard" >> remove grp "new group" from this cd >> > > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From keith.clarke at clarkeandclarke.co.uk Mon Mar 14 13:36:02 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Mon, 14 Mar 2011 17:36:02 +0000 Subject: Removing ListMagic from a stack - completely Message-ID: <119199EE-4554-4938-AF1A-72FA8F1EF9C3@clarkeandclarke.co.uk> Hi folks, I've replaced all ListMagic controls in an app with data grids and removed any ListMagic script entries. However, when I start the application I still get loading alerts - to save/cancel/purge ListMagic. Searching in the Application browser and scripts reveals nothing. Am I missing some custom properties somewhere? Thanks, Keith.. From admin at FlexibleLearning.com Mon Mar 14 13:38:05 2011 From: admin at FlexibleLearning.com (FlexibleLearning) Date: Mon, 14 Mar 2011 17:38:05 -0000 Subject: LiveCode color map In-Reply-To: Message-ID: On 03/13/2011 11:29 PM, FlexibleLearning wrote: > I have uploaded an experimental color map. > > Comments welcome. > > www.FlexibleLearning.com/colorMap/LiveCodeColorMap.rev Richmod wrote: > Funnily enough that looks extremely similar to the old Metacard Color Chooser without some of it useful features. [1] It bears no resemblance whatsoever to the MetaCard color palette [2] It is a MAP not a UTILITY Apart from that, you are correct on both points. Bob Sneidar wrote: > Pretty cool. So now if I make this a library stack, could I assign colors by the names in this stack? That would be cool. Of course you can, Bob. You can set the color of any object by RGB, hex, LiveCode name or even by a number. The purpose of this map is as an investigation of layout and distribution only. Hugh Senior FLCo From admin at FlexibleLearning.com Mon Mar 14 13:51:09 2011 From: admin at FlexibleLearning.com (FlexibleLearning) Date: Mon, 14 Mar 2011 17:51:09 -0000 Subject: LiveCode color map In-Reply-To: Message-ID: If Richmond wants a free color picker and LCcolorName-WebColorName-RGB-Hex-ColorBlend translation utility, he may wish to look at http://www.flexiblelearning.com/xtalk/colorconverter/colorconverter2.htm which, although a little old now and could probably do with a face-lift, has a wealth of information and functionality. This includes the 256 MetaCard color palette and, as he would notice, it bears no resemblance at all to the names map under investigation at www.FlexibleLearning.com/colorMap/LiveCodeColorMap.rev. Hugh Senior FLCo From pete at mollysrevenge.com Mon Mar 14 13:54:56 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Mon, 14 Mar 2011 10:54:56 -0700 Subject: Selecting an object In-Reply-To: <4D7D9EA3.2000703@hyperactivesw.com> References: <4D7D5AD8.3010203@hyperactivesw.com> <82CF878E-C0A0-4C96-81A2-46607139388F@mollysrevenge.com> <4D7D6204.8030801@hyperactivesw.com> <8EBC28E0-93E8-437A-8DA3-8B5009BDF417@mollysrevenge.com> <4D7D9CE0.7060702@hyperactivesw.com> <4D7D9EA3.2000703@hyperactivesw.com> Message-ID: Hmm, well I started down this track but a search of the dictionary for "currentCard" turns up no results. It looks form your example that the format of currentCard is a card number - is that correct? Pete Haworth On Mar 13, 2011, at 9:50 PM, J. Landman Gay wrote: > But there's a shorter way using the "currentCard" syntax. That's sort of like defaultstack, only for cards. From mwieder at ahsoftware.net Mon Mar 14 13:59:53 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Mon, 14 Mar 2011 10:59:53 -0700 Subject: 3.14 Message-ID: <170398454046.20110314105953@ahsoftware.net> All- Happy Pi Day (@1:59 PM) -- -Mark Wieder mwieder at ahsoftware.net From richmondmathewson at gmail.com Mon Mar 14 14:02:27 2011 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 14 Mar 2011 20:02:27 +0200 Subject: 3.14 In-Reply-To: <170398454046.20110314105953@ahsoftware.net> References: <170398454046.20110314105953@ahsoftware.net> Message-ID: <4D7E5833.6080007@gmail.com> On 03/14/2011 07:59 PM, Mark Wieder wrote: > All- > > Happy Pi Day (@1:59 PM) > As an old pro, I'd rather stick to tarts . . . :) From coiin at verizon.net Mon Mar 14 14:08:48 2011 From: coiin at verizon.net (Colin Holgate) Date: Mon, 14 Mar 2011 14:08:48 -0400 Subject: french date In-Reply-To: <6A819F4C-3974-4CCC-AB26-2F4013F51E8D@laposte.net> References: <9ADDECBD-30B8-4DA8-BBDA-707A5546CD92@major.on-rev.com> <6A819F4C-3974-4CCC-AB26-2F4013F51E8D@laposte.net> Message-ID: <2A74FC92-024C-4605-8F87-A88B7A9ED9F4@verizon.net> On Mar 14, 2011, at 1:01 PM, Ludovic Th?bault wrote: > 'put the system date' give me : 14/03/11 > That's curious. For the US version it doesn't put a zero before the middle number. That is, if I set my date to March 3rd, it would say 3/3/11. Does it say 3/03/11 on a French system, or 03/03/11? From keith.clarke at clarkeandclarke.co.uk Mon Mar 14 14:11:14 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Mon, 14 Mar 2011 18:11:14 +0000 Subject: 3.14 In-Reply-To: <4D7E5833.6080007@gmail.com> References: <170398454046.20110314105953@ahsoftware.net> <4D7E5833.6080007@gmail.com> Message-ID: ...adherence or adhesion? ;-) On 14 Mar 2011, at 18:02, Richmond wrote: > On 03/14/2011 07:59 PM, Mark Wieder wrote: >> All- >> >> Happy Pi Day (@1:59 PM) >> > As an old pro, I'd rather stick to tarts . . . :) > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major.on-rev.com Mon Mar 14 14:17:03 2011 From: klaus at major.on-rev.com (Klaus on-rev) Date: Mon, 14 Mar 2011 19:17:03 +0100 Subject: french date In-Reply-To: <2A74FC92-024C-4605-8F87-A88B7A9ED9F4@verizon.net> References: <9ADDECBD-30B8-4DA8-BBDA-707A5546CD92@major.on-rev.com> <6A819F4C-3974-4CCC-AB26-2F4013F51E8D@laposte.net> <2A74FC92-024C-4605-8F87-A88B7A9ED9F4@verizon.net> Message-ID: Hi Colin, > On Mar 14, 2011, at 1:01 PM, Ludovic Th?bault wrote: >> 'put the system date' give me : 14/03/11 > That's curious. For the US version it doesn't put a zero before the middle number. That is, if I set my date to March 3rd, it would say 3/3/11. Does it say 3/03/11 on a French system, or 03/03/11? 03/03/11 on a german system, and probably the same on a french one. Best Klaus -- Klaus Major http://www.major-k.de klaus at major.on-rev.com From jacque at hyperactivesw.com Mon Mar 14 14:24:50 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 14 Mar 2011 13:24:50 -0500 Subject: Selecting an object In-Reply-To: References: <4D7D5AD8.3010203@hyperactivesw.com> <82CF878E-C0A0-4C96-81A2-46607139388F@mollysrevenge.com> <4D7D6204.8030801@hyperactivesw.com> <8EBC28E0-93E8-437A-8DA3-8B5009BDF417@mollysrevenge.com> <4D7D9CE0.7060702@hyperactivesw.com> <4D7D9EA3.2000703@hyperactivesw.com> Message-ID: <4D7E5D72.40906@hyperactivesw.com> On 3/14/11 12:54 PM, Peter Haworth wrote: > Hmm, well I started down this track but a search of the dictionary > for "currentCard" turns up no results. It looks form your example > that the format of currentCard is a card number - is that correct? No, I screwed up again. I should stop writing off the top of my head. The currentCard is mentioned in the release notes but hasn't made it to the dictionary yet (it should be in there by next release.) And it takes a card name instead of a number. You can test it by putting this into the message box: put the currentcard of this stack That returns the short name of the card. Sorry about the mixup, I'll try to mend my ways. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at mollysrevenge.com Mon Mar 14 14:25:47 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Mon, 14 Mar 2011 11:25:47 -0700 Subject: french date In-Reply-To: <2A74FC92-024C-4605-8F87-A88B7A9ED9F4@verizon.net> References: <9ADDECBD-30B8-4DA8-BBDA-707A5546CD92@major.on-rev.com> <6A819F4C-3974-4CCC-AB26-2F4013F51E8D@laposte.net> <2A74FC92-024C-4605-8F87-A88B7A9ED9F4@verizon.net> Message-ID: The date format can be customised by the user using the Language and Text Formats tab on a Mac. LC's system date is what the Mac refers to as the short date, so maybe whoever got that result had customised if to display that way. Actually, that's probably relevant to the person who asked the question initially. What the system date returns is dependant on any customisation the user has done to the format of the Mac's short date. If you do customise the dates on a Mac while LC is running, the changes won;t show up until you restart LC. Pete Haworth On Mar 14, 2011, at 11:08 AM, Colin Holgate wrote: > > On Mar 14, 2011, at 1:01 PM, Ludovic Th?bault wrote: > >> 'put the system date' give me : 14/03/11 >> > > That's curious. For the US version it doesn't put a zero before the middle number. That is, if I set my date to March 3rd, it would say 3/3/11. Does it say 3/03/11 on a French system, or 03/03/11? > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bobs at twft.com Mon Mar 14 14:26:36 2011 From: bobs at twft.com (Bob Sneidar) Date: Mon, 14 Mar 2011 11:26:36 -0700 Subject: Removing ListMagic from a stack - completely In-Reply-To: <119199EE-4554-4938-AF1A-72FA8F1EF9C3@clarkeandclarke.co.uk> References: <119199EE-4554-4938-AF1A-72FA8F1EF9C3@clarkeandclarke.co.uk> Message-ID: You may want to check the stacks in use. If I am not mistaken, ListMagic inserts itself as a library stack, probably in the backScript. You will need to remove that. It may even be a substack in your main stack, I dunno. Also check if it's in your plug-ins. I still had ListMagic inserted as a substack of my main stack, but was not getting any alerts. I had done something in the past to remove it from the message hierarchy, but don't remember what it was. I deleted the substack in the application browser and it no longer appears as a substack of my project. Not sure if any of that helps you, but there you go. Bob On Mar 14, 2011, at 10:36 AM, Keith Clarke wrote: > Hi folks, > I've replaced all ListMagic controls in an app with data grids and removed any ListMagic script entries. However, when I start the application I still get loading alerts - to save/cancel/purge ListMagic. > Searching in the Application browser and scripts reveals nothing. Am I missing some custom properties somewhere? > Thanks, > Keith.. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Mon Mar 14 14:27:23 2011 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 14 Mar 2011 20:27:23 +0200 Subject: 3.14 In-Reply-To: References: <170398454046.20110314105953@ahsoftware.net> <4D7E5833.6080007@gmail.com> Message-ID: <4D7E5E0B.7060708@gmail.com> On 03/14/2011 08:11 PM, Keith Clarke wrote: > ...adherence or adhesion? ;-) > > On 14 Mar 2011, at 18:02, Richmond wrote: > >> On 03/14/2011 07:59 PM, Mark Wieder wrote: >>> All- >>> >>> Happy Pi Day (@1:59 PM) >>> >> As an old pro, I'd rather stick to tarts . . . :) >> _______________________________________________ In British slang 'tart' does NOT mean a pie without a lid . . . :) Probably adhesion or adherence to tarts would be fatal either way. From bobs at twft.com Mon Mar 14 14:31:12 2011 From: bobs at twft.com (Bob Sneidar) Date: Mon, 14 Mar 2011 11:31:12 -0700 Subject: 3.14 In-Reply-To: <170398454046.20110314105953@ahsoftware.net> References: <170398454046.20110314105953@ahsoftware.net> Message-ID: <4AF2AE25-B922-49CD-B5DA-21589FA46B88@twft.com> There's pie?? And ice cream too??? (Icecream over Pie divided by Knife equals yum if I am not mistaken.) Bob On Mar 14, 2011, at 10:59 AM, Mark Wieder wrote: > All- > > Happy Pi Day (@1:59 PM) > > -- > -Mark Wieder > mwieder at ahsoftware.net > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at mollysrevenge.com Mon Mar 14 14:32:13 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Mon, 14 Mar 2011 11:32:13 -0700 Subject: Selecting an object In-Reply-To: <4D7E5D72.40906@hyperactivesw.com> References: <4D7D5AD8.3010203@hyperactivesw.com> <82CF878E-C0A0-4C96-81A2-46607139388F@mollysrevenge.com> <4D7D6204.8030801@hyperactivesw.com> <8EBC28E0-93E8-437A-8DA3-8B5009BDF417@mollysrevenge.com> <4D7D9CE0.7060702@hyperactivesw.com> <4D7D9EA3.2000703@hyperactivesw.com> <4D7E5D72.40906@hyperactivesw.com> Message-ID: <52A27B27-18CE-407E-9A3C-1689BACAE5F6@mollysrevenge.com> No problem. Just want to make sure I get as much info as possible before changing my code. Pete Haworth On Mar 14, 2011, at 11:24 AM, J. Landman Gay wrote: > On 3/14/11 12:54 PM, Peter Haworth wrote: >> Hmm, well I started down this track but a search of the dictionary >> for "currentCard" turns up no results. It looks form your example >> that the format of currentCard is a card number - is that correct? > > No, I screwed up again. I should stop writing off the top of my head. The currentCard is mentioned in the release notes but hasn't made it to the dictionary yet (it should be in there by next release.) And it takes a card name instead of a number. > > You can test it by putting this into the message box: > > put the currentcard of this stack > > That returns the short name of the card. Sorry about the mixup, I'll try to mend my ways. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bvg at mac.com Mon Mar 14 14:41:01 2011 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Mon, 14 Mar 2011 19:41:01 +0100 Subject: Live LiveCode Code event invitation In-Reply-To: <1299083762322-3331808.post@n4.nabble.com> References: <4BF53F5E-F701-4D9F-BBFF-C0578866D033@telenet.be> <1298948257017-3329158.post@n4.nabble.com> <1298988146612-3329891.post@n4.nabble.com> <1299050916972-3331110.post@n4.nabble.com> <144240BA-A7D1-4AE7-B65C-B18A6B842EC4@mac.com> <1299083762322-3331808.post@n4.nabble.com> Message-ID: Hi Andrew I hope you're still available for the week after this one (Sat, 26th March)? please make sure to set up and test everything before the show, there's always some technical problems. I have made a tutorial ( http://livecode.tv/participate/ ) and you can always (when we're available) ask me or mark on chatrev about details. Cheers Bj?rnke On 2 Mar 2011, at 17:36, Andrew Kluthe wrote: > Hmmm. Perhaps towards the end of the month, I could do a two parter for > livecode.tv. An intro to revIgniter and a talk on building web services with > it. > Yeah, id be happy to do it towards the end of march. Perhaps the Live > LiveCode event on the 26th? From keith.clarke at clarkeandclarke.co.uk Mon Mar 14 14:42:15 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Mon, 14 Mar 2011 18:42:15 +0000 Subject: 3.14 In-Reply-To: <4D7E5E0B.7060708@gmail.com> References: <170398454046.20110314105953@ahsoftware.net> <4D7E5833.6080007@gmail.com> <4D7E5E0B.7060708@gmail.com> Message-ID: <2B37E93F-EC32-40E7-8B61-65D23B6425AF@clarkeandclarke.co.uk> ...I'm a Brit, too, Richmond - and wish I had been envisioning tart adhesion as merely a custard pie in the face! On 14 Mar 2011, at 18:27, Richmond wrote: > On 03/14/2011 08:11 PM, Keith Clarke wrote: >> ...adherence or adhesion? ;-) >> >> On 14 Mar 2011, at 18:02, Richmond wrote: >> >>> On 03/14/2011 07:59 PM, Mark Wieder wrote: >>>> All- >>>> >>>> Happy Pi Day (@1:59 PM) >>>> >>> As an old pro, I'd rather stick to tarts . . . :) >>> _______________________________________________ > > In British slang 'tart' does NOT mean a pie without a lid . . . :) > > Probably adhesion or adherence to tarts would be fatal either way. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From keith.clarke at clarkeandclarke.co.uk Mon Mar 14 14:44:21 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Mon, 14 Mar 2011 18:44:21 +0000 Subject: Live LiveCode Code event invitation In-Reply-To: References: <4BF53F5E-F701-4D9F-BBFF-C0578866D033@telenet.be> <1298948257017-3329158.post@n4.nabble.com> <1298988146612-3329891.post@n4.nabble.com> <1299050916972-3331110.post@n4.nabble.com> <144240BA-A7D1-4AE7-B65C-B18A6B842EC4@mac.com> <1299083762322-3331808.post@n4.nabble.com> Message-ID: Bj?rnke - wrong recipient, methinks. Best, Keith.. On 14 Mar 2011, at 18:41, Bj?rnke von Gierke wrote: > Hi Andrew > > I hope you're still available for the week after this one (Sat, 26th March)? > > please make sure to set up and test everything before the show, there's always some technical problems. > > I have made a tutorial ( http://livecode.tv/participate/ ) and you can always (when we're available) ask me or mark on chatrev about details. > > Cheers > Bj?rnke > > > On 2 Mar 2011, at 17:36, Andrew Kluthe wrote: > >> Hmmm. Perhaps towards the end of the month, I could do a two parter for >> livecode.tv. An intro to revIgniter and a talk on building web services with >> it. > > >> Yeah, id be happy to do it towards the end of march. Perhaps the Live >> LiveCode event on the 26th? > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jmyepes at mac.com Mon Mar 14 15:24:47 2011 From: jmyepes at mac.com (JosepM) Date: Mon, 14 Mar 2011 12:24:47 -0700 (PDT) Subject: datagrid: when sort by text column datagrid add many empty rows In-Reply-To: References: <1299864913782-3348673.post@n4.nabble.com> Message-ID: <1300130687460-3354774.post@n4.nabble.com> Thanks for reply... I will try and report it... -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/datagrid-when-sort-by-text-column-datagrid-add-many-empty-rows-tp3348673p3354774.html Sent from the Revolution - User mailing list archive at Nabble.com. From bvg at mac.com Mon Mar 14 16:18:46 2011 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Mon, 14 Mar 2011 21:18:46 +0100 Subject: french date In-Reply-To: References: <9ADDECBD-30B8-4DA8-BBDA-707A5546CD92@major.on-rev.com> <6A819F4C-3974-4CCC-AB26-2F4013F51E8D@laposte.net> <2A74FC92-024C-4605-8F87-A88B7A9ED9F4@verizon.net> Message-ID: <7E4B3DA5-62B6-42AF-83CB-F04EF49CEBE6@mac.com> Klaus, I think you might have messed up your system settings somehow. The system date should be "14.03.2011" or similar for german systems, no? At least that's what i get both on my mac and my windows machine... On 14 Mar 2011, at 19:17, Klaus on-rev wrote: > Hi Colin, > >> On Mar 14, 2011, at 1:01 PM, Ludovic Th?bault wrote: >>> 'put the system date' give me : 14/03/11 >> That's curious. For the US version it doesn't put a zero before the middle number. That is, if I set my date to March 3rd, it would say 3/3/11. Does it say 3/03/11 on a French system, or 03/03/11? > > 03/03/11 on a german system, and probably the same on a french one. > > > Best > > Klaus From bvg at mac.com Mon Mar 14 16:20:00 2011 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Mon, 14 Mar 2011 21:20:00 +0100 Subject: Live LiveCode Code event invitation In-Reply-To: References: <4BF53F5E-F701-4D9F-BBFF-C0578866D033@telenet.be> <1298948257017-3329158.post@n4.nabble.com> <1298988146612-3329891.post@n4.nabble.com> <1299050916972-3331110.post@n4.nabble.com> <144240BA-A7D1-4AE7-B65C-B18A6B842EC4@mac.com> <1299083762322-3331808.post@n4.nabble.com> Message-ID: <2E3A66BF-0F0C-43D6-B690-9138DFC4606D@mac.com> ah crap why did this go to the use list? because i'm retarted, that's why! sorry for that. On 14 Mar 2011, at 19:41, Bj?rnke von Gierke wrote: > Hi Andrew > > I hope you're still available for the week after this one (Sat, 26th March)? > > please make sure to set up and test everything before the show, there's always some technical problems. > > I have made a tutorial ( http://livecode.tv/participate/ ) and you can always (when we're available) ask me or mark on chatrev about details. > > Cheers > Bj?rnke > > > On 2 Mar 2011, at 17:36, Andrew Kluthe wrote: > >> Hmmm. Perhaps towards the end of the month, I could do a two parter for >> livecode.tv. An intro to revIgniter and a talk on building web services with >> it. > > >> Yeah, id be happy to do it towards the end of march. Perhaps the Live >> LiveCode event on the 26th? > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From effendi at wanadoo.fr Mon Mar 14 16:24:14 2011 From: effendi at wanadoo.fr (Francis Nugent Dixon) Date: Mon, 14 Mar 2011 21:24:14 +0100 Subject: LiveCode color map Message-ID: <4F35A02A-CD20-4B9A-92ED-C1DCDABDFCB6@wanadoo.fr> Hi from Beautiful Brittany, Hugh wrote : > I have uploaded an experimental color map. VERY nice - Very Useful ! Thanks -Francis From coiin at verizon.net Mon Mar 14 16:27:57 2011 From: coiin at verizon.net (Colin Holgate) Date: Mon, 14 Mar 2011 16:27:57 -0400 Subject: Live LiveCode Code event invitation In-Reply-To: <2E3A66BF-0F0C-43D6-B690-9138DFC4606D@mac.com> References: <4BF53F5E-F701-4D9F-BBFF-C0578866D033@telenet.be> <1298948257017-3329158.post@n4.nabble.com> <1298988146612-3329891.post@n4.nabble.com> <1299050916972-3331110.post@n4.nabble.com> <144240BA-A7D1-4AE7-B65C-B18A6B842EC4@mac.com> <1299083762322-3331808.post@n4.nabble.com> <2E3A66BF-0F0C-43D6-B690-9138DFC4606D@mac.com> Message-ID: <97F6F858-375F-41A5-8096-8D3D22FAEF81@verizon.net> On Mar 14, 2011, at 4:20 PM, Bj?rnke von Gierke wrote: > ah crap why did this go to the use list? because i'm retarted, that's why! sorry for that. You can't really mean to say that about yourself. I mean, you probably meant "retarded". Unless Richmond re-tarted you. From jperryl at ecs.fullerton.edu Mon Mar 14 16:32:51 2011 From: jperryl at ecs.fullerton.edu (Judy Perry) Date: Mon, 14 Mar 2011 13:32:51 -0700 (PDT) Subject: 3.14 In-Reply-To: <2B37E93F-EC32-40E7-8B61-65D23B6425AF@clarkeandclarke.co.uk> References: <170398454046.20110314105953@ahsoftware.net> <4D7E5833.6080007@gmail.com> <4D7E5E0B.7060708@gmail.com> <2B37E93F-EC32-40E7-8B61-65D23B6425AF@clarkeandclarke.co.uk> Message-ID: I'm in the US, but isn't there also the allusion to a slutty female? Judy On Mon, 14 Mar 2011, Keith Clarke wrote: > ...I'm a Brit, too, Richmond - and wish I had been envisioning tart adhesion as merely a custard pie in the face! From jhj at jhj.com Mon Mar 14 16:35:22 2011 From: jhj at jhj.com (Jerry J) Date: Mon, 14 Mar 2011 13:35:22 -0700 Subject: Live LiveCode Code event invitation In-Reply-To: <97F6F858-375F-41A5-8096-8D3D22FAEF81@verizon.net> References: <4BF53F5E-F701-4D9F-BBFF-C0578866D033@telenet.be> <1298948257017-3329158.post@n4.nabble.com> <1298988146612-3329891.post@n4.nabble.com> <1299050916972-3331110.post@n4.nabble.com> <144240BA-A7D1-4AE7-B65C-B18A6B842EC4@mac.com> <1299083762322-3331808.post@n4.nabble.com> <2E3A66BF-0F0C-43D6-B690-9138DFC4606D@mac.com> <97F6F858-375F-41A5-8096-8D3D22FAEF81@verizon.net> Message-ID: <39737A9F-9D03-4E00-BB77-D1F023EBDC29@jhj.com> On Mar 14, 2011, at 1:27 PM, Colin Holgate wrote: > > On Mar 14, 2011, at 4:20 PM, Bj?rnke von Gierke wrote: > >> ah crap why did this go to the use list? because i'm retarted, that's why! sorry for that. > > You can't really mean to say that about yourself. I mean, you probably meant "retarded". Unless Richmond re-tarted you. I think he meant restarted. 8D From richmondmathewson at gmail.com Mon Mar 14 16:39:57 2011 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 14 Mar 2011 22:39:57 +0200 Subject: 3.14 In-Reply-To: References: <170398454046.20110314105953@ahsoftware.net> <4D7E5833.6080007@gmail.com> <4D7E5E0B.7060708@gmail.com> <2B37E93F-EC32-40E7-8B61-65D23B6425AF@clarkeandclarke.co.uk> Message-ID: <4D7E7D1D.2020701@gmail.com> On 03/14/2011 10:32 PM, Judy Perry wrote: > I'm in the US, but isn't there also the allusion to a slutty female? Yes. And by the way; when I was at school (1970's) in England, the fashionable (and, as is usually the case with these, meaningless) saying was "real men don't eat quiche". Of course (or, probably we had better spell that 'coarse') we could wander off onto tangential topics such as what the word "couscous" means to a Saudi Arabian male; but then the list-Mum would probably feel an urge to say something fairly coarse herself . . . :) So, let's leave sleeping tarts lie . . . ouch, ouch, naughty Richmond. > > Judy > > On Mon, 14 Mar 2011, Keith Clarke wrote: > >> ...I'm a Brit, too, Richmond - and wish I had been envisioning tart >> adhesion as merely a custard pie in the face! > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jperryl at ecs.fullerton.edu Mon Mar 14 16:42:11 2011 From: jperryl at ecs.fullerton.edu (Judy Perry) Date: Mon, 14 Mar 2011 13:42:11 -0700 (PDT) Subject: 3.14 In-Reply-To: <4D7E7D1D.2020701@gmail.com> References: <170398454046.20110314105953@ahsoftware.net> <4D7E5833.6080007@gmail.com> <4D7E5E0B.7060708@gmail.com> <2B37E93F-EC32-40E7-8B61-65D23B6425AF@clarkeandclarke.co.uk> <4D7E7D1D.2020701@gmail.com> Message-ID: Doesn't quiche contain that forbidden substance of which we must not speak? Judy On Mon, 14 Mar 2011, Richmond wrote: > And by the way; when I was at school (1970's) in England, the fashionable > (and, as is usually the case with these, meaningless) saying was "real men > don't eat quiche". From lfredricks at proactive-intl.com Mon Mar 14 16:47:10 2011 From: lfredricks at proactive-intl.com (Lynn Fredricks) Date: Mon, 14 Mar 2011 13:47:10 -0700 Subject: OT: Japan In-Reply-To: <2FB8E670-D806-4567-AD50-EDD4F5D6584C@lacscentre.co.uk> References: <000001cbe239$c677e2f0$5367a8d0$@de> <2FB8E670-D806-4567-AD50-EDD4F5D6584C@lacscentre.co.uk> Message-ID: <6095A7D7E3CF44B7AD9B2593006FA3CF@GATEWAY> > On 14 Mar 2011, at 11:19, Tiemo Hollmann TB wrote: > > > I think we have some LiveCode friends in Japan. > > > > The news are getting worse and hard to evaluate. Everything > ok with you? I do a lot of business in Japan, and my in-laws are in Tokyo. This quake hit during spring break, so most kids were at home. Fortunately, everyone in my extended family has checked in. We've been watching a bit of Japanese TV, and some of the personal stories coming out are nightmarish. There is also some prediction of another quake in the next day or two. Best regards, Lynn Fredricks President Proactive International, LLC - Because it is about who you know.(tm) http://www.proactive-intl.com From m.schonewille at economy-x-talk.com Mon Mar 14 16:49:29 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Mon, 14 Mar 2011 21:49:29 +0100 Subject: Ann: Installer Maker 1.6.1 Message-ID: <10BA7E99-53C2-4C52-AD3A-AC623652E25D@economy-x-talk.com> Dear folks, About a year and a half ago, Economy-x-Talk released the Installer Maker as a plugin for LiveCode (still Revolution at the time). One of the limitations of the plug-in is that other stacks should be closed before building an installer in the IDE. We have received many requests to get around this limitation. As a solution, a standalone version of the Installer Maker is now offered. This means that you can experiment in the IDE, save your stacks to your standalone folder, and immediately re-build your installer, without having to set up everything again (as long as you keep Installer Maker running). Moreover, from now on the Installer Maker allows you to build a test installer without buying a license first. You can run the test installer on the computer on which it is built. Installer Maker 1.6.2 is the first version that is also available as a standalone. There might be a few small glitches, which will naturally get fixed in due time. Please, show me that our efforts to meet your requirements are not in vain ;-) You can download Installer Maker at http://installermaker.economy-x-talk.com/ and the Installer Maker Plugin for LiveCode at http://rrinstallermaker.economy-x-talk.com/ Thanks, Mark -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce From coiin at verizon.net Mon Mar 14 16:58:07 2011 From: coiin at verizon.net (Colin Holgate) Date: Mon, 14 Mar 2011 16:58:07 -0400 Subject: 3.14 In-Reply-To: References: <170398454046.20110314105953@ahsoftware.net> <4D7E5833.6080007@gmail.com> <4D7E5E0B.7060708@gmail.com> <2B37E93F-EC32-40E7-8B61-65D23B6425AF@clarkeandclarke.co.uk> <4D7E7D1D.2020701@gmail.com> Message-ID: On Mar 14, 2011, at 4:42 PM, Judy Perry wrote: > Doesn't quiche contain that forbidden substance of which we must not speak? He must have meant this kind: http://www.simplyforties.com/2010/02/no-cheese-vegetable-quiche.html From richmondmathewson at gmail.com Mon Mar 14 17:03:29 2011 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 14 Mar 2011 23:03:29 +0200 Subject: 3.14 In-Reply-To: References: <170398454046.20110314105953@ahsoftware.net> <4D7E5833.6080007@gmail.com> <4D7E5E0B.7060708@gmail.com> <2B37E93F-EC32-40E7-8B61-65D23B6425AF@clarkeandclarke.co.uk> <4D7E7D1D.2020701@gmail.com> Message-ID: <4D7E82A1.5000000@gmail.com> On 03/14/2011 10:58 PM, Colin Holgate wrote: > On Mar 14, 2011, at 4:42 PM, Judy Perry wrote: > >> Doesn't quiche contain that forbidden substance of which we must not speak? > > He must have meant this kind: > > http://www.simplyforties.com/2010/02/no-cheese-vegetable-quiche.html > > I didn't mean anything, as, in 1976 I was 14, and an extremely long way from anything even closely resembling a "real man"; whatever they are supposed to be . . . ) > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major.on-rev.com Mon Mar 14 17:13:02 2011 From: klaus at major.on-rev.com (Klaus on-rev) Date: Mon, 14 Mar 2011 22:13:02 +0100 Subject: french date In-Reply-To: <7E4B3DA5-62B6-42AF-83CB-F04EF49CEBE6@mac.com> References: <9ADDECBD-30B8-4DA8-BBDA-707A5546CD92@major.on-rev.com> <6A819F4C-3974-4CCC-AB26-2F4013F51E8D@laposte.net> <2A74FC92-024C-4605-8F87-A88B7A9ED9F4@verizon.net> <7E4B3DA5-62B6-42AF-83CB-F04EF49CEBE6@mac.com> Message-ID: <776F9D86-8943-40C9-B1EE-66E7DC257AA1@major.on-rev.com> Hi Bj?rnke, > Klaus, I think you might have messed up your system settings somehow. > The system date should be "14.03.2011" or similar for german systems, no? > At least that's what i get both on my mac and my windows machine... ah, yes, I remember that I changed something in my sys prefs a long time ago. Thanks for the reminder! :-) > On 14 Mar 2011, at 19:17, Klaus on-rev wrote: > >> Hi Colin, >> >>> On Mar 14, 2011, at 1:01 PM, Ludovic Th?bault wrote: >>>> 'put the system date' give me : 14/03/11 >>> That's curious. For the US version it doesn't put a zero before the middle number. That is, if I set my date to March 3rd, it would say 3/3/11. Does it say 3/03/11 on a French system, or 03/03/11? >> >> 03/03/11 on a german system, and probably the same on a french one. Best Klaus -- Klaus Major http://www.major-k.de klaus at major.on-rev.com From form at nonsanity.com Mon Mar 14 18:03:51 2011 From: form at nonsanity.com (Nonsanity) Date: Mon, 14 Mar 2011 18:03:51 -0400 Subject: Live LiveCode Code event invitation In-Reply-To: <39737A9F-9D03-4E00-BB77-D1F023EBDC29@jhj.com> References: <4BF53F5E-F701-4D9F-BBFF-C0578866D033@telenet.be> <1298948257017-3329158.post@n4.nabble.com> <1298988146612-3329891.post@n4.nabble.com> <1299050916972-3331110.post@n4.nabble.com> <144240BA-A7D1-4AE7-B65C-B18A6B842EC4@mac.com> <1299083762322-3331808.post@n4.nabble.com> <2E3A66BF-0F0C-43D6-B690-9138DFC4606D@mac.com> <97F6F858-375F-41A5-8096-8D3D22FAEF81@verizon.net> <39737A9F-9D03-4E00-BB77-D1F023EBDC29@jhj.com> Message-ID: ### DIVIDE BY CHEESE ERROR ### Restart Universe? (y/n) >_ ~ Chris Innanen ~ Nonsanity On Mon, Mar 14, 2011 at 4:35 PM, Jerry J wrote: > On Mar 14, 2011, at 1:27 PM, Colin Holgate wrote: > > > > > On Mar 14, 2011, at 4:20 PM, Bj?rnke von Gierke wrote: > > > >> ah crap why did this go to the use list? because i'm retarted, that's > why! sorry for that. > > > > You can't really mean to say that about yourself. I mean, you probably > meant "retarded". Unless Richmond re-tarted you. > > I think he meant restarted. 8D > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From richmondmathewson at gmail.com Mon Mar 14 18:07:47 2011 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 15 Mar 2011 00:07:47 +0200 Subject: Live LiveCode Code event invitation In-Reply-To: References: <4BF53F5E-F701-4D9F-BBFF-C0578866D033@telenet.be> <1298948257017-3329158.post@n4.nabble.com> <1298988146612-3329891.post@n4.nabble.com> <1299050916972-3331110.post@n4.nabble.com> <144240BA-A7D1-4AE7-B65C-B18A6B842EC4@mac.com> <1299083762322-3331808.post@n4.nabble.com> <2E3A66BF-0F0C-43D6-B690-9138DFC4606D@mac.com> <97F6F858-375F-41A5-8096-8D3D22FAEF81@verizon.net> <39737A9F-9D03-4E00-BB77-D1F023EBDC29@jhj.com> Message-ID: <4D7E91B3.2010308@gmail.com> On 03/15/2011 12:03 AM, Nonsanity wrote: > ### DIVIDE BY CHEESE ERROR ### > Restart Universe? (y/n) >> _ > > ~ Chris Innanen > ~ Nonsanity > > > On Mon, Mar 14, 2011 at 4:35 PM, Jerry J wrote: > >> On Mar 14, 2011, at 1:27 PM, Colin Holgate wrote: >> >>> On Mar 14, 2011, at 4:20 PM, Bj?rnke von Gierke wrote: >>> >>>> ah crap why did this go to the use list? because i'm retarted, that's >> why! sorry for that. >>> You can't really mean to say that about yourself. I mean, you probably >> meant "retarded". Unless Richmond re-tarted you. >> >> I think he meant restarted. 8D >> It is time this tarty topic was flanned; or, in other words, given the rough, tough, bluff, puff pastry treatment with the rolling-pin. Chili-cobblers!!!! From pete at mollysrevenge.com Mon Mar 14 18:18:58 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Mon, 14 Mar 2011 15:18:58 -0700 Subject: Ann: Installer Maker 1.6.1 In-Reply-To: <10BA7E99-53C2-4C52-AD3A-AC623652E25D@economy-x-talk.com> References: <10BA7E99-53C2-4C52-AD3A-AC623652E25D@economy-x-talk.com> Message-ID: <5C578E93-A144-4212-AC68-374C43C33144@mollysrevenge.com> Hi Mark, I'd like to look at this but I'm getting flashing warning lights about malware when I go to your site. Not because of your URL but because of content that's on there from qery.us. I'm sure your site is clean but qery.us is probably on one of the site blacklists that exist out there. Pete Haworth On Mar 14, 2011, at 1:49 PM, Mark Schonewille wrote: > Dear folks, > > About a year and a half ago, Economy-x-Talk released the Installer Maker as a plugin for LiveCode (still Revolution at the time). One of the limitations of the plug-in is that other stacks should be closed before building an installer in the IDE. > > We have received many requests to get around this limitation. As a solution, a standalone version of the Installer Maker is now offered. This means that you can experiment in the IDE, save your stacks to your standalone folder, and immediately re-build your installer, without having to set up everything again (as long as you keep Installer Maker running). > > Moreover, from now on the Installer Maker allows you to build a test installer without buying a license first. You can run the test installer on the computer on which it is built. > > Installer Maker 1.6.2 is the first version that is also available as a standalone. There might be a few small glitches, which will naturally get fixed in due time. > > Please, show me that our efforts to meet your requirements are not in vain ;-) > > You can download Installer Maker at > http://installermaker.economy-x-talk.com/ > > and the Installer Maker Plugin for LiveCode at > http://rrinstallermaker.economy-x-talk.com/ > > Thanks, > > Mark > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From m.schonewille at economy-x-talk.com Mon Mar 14 18:24:37 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Mon, 14 Mar 2011 23:24:37 +0100 Subject: Ann: Installer Maker 1.6.1 In-Reply-To: <5C578E93-A144-4212-AC68-374C43C33144@mollysrevenge.com> References: <10BA7E99-53C2-4C52-AD3A-AC623652E25D@economy-x-talk.com> <5C578E93-A144-4212-AC68-374C43C33144@mollysrevenge.com> Message-ID: <91A14A8F-B1EC-46CF-A03A-1F8678EACC5E@economy-x-talk.com> Yes, I know, that's not my fault. Some thought it was fun to report my site and that works like a virus now. Turn off those secutiry warnings in your browser settings and just make sure you have the usual antivirus software installed to protect your computer against really malicious sites. Even qery.us is not malicious, even though Google says so. I'll be in touch with Google about this. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce On 14 mrt 2011, at 23:18, Peter Haworth wrote: > Hi Mark, > I'd like to look at this but I'm getting flashing warning lights about malware when I go to your site. Not because of your URL but because of content that's on there from qery.us. I'm sure your site is clean but qery.us is probably on one of the site blacklists that exist out there. > > Pete Haworth From stephenREVOLUTION2 at barncard.com Mon Mar 14 18:47:17 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Mon, 14 Mar 2011 15:47:17 -0700 Subject: Audioclips: can't get at the data? In-Reply-To: References: <7C79C759-264A-4406-B176-6AADE131E6E3@major.on-rev.com> <1294633048500-3206597.post@n4.nabble.com> Message-ID: Just a short report to those following this thread : today I've been successful in - Recovering the audio data and playback metadata from a livecode stack - separating the components and metadata into arrays - Using the metadata to export to a standard AIFF file from the audioclip to MacOSX. This is a 100% LiveCode scripted solution. My project was a personal 'black box' investigation with no info from the mother ship outside of the usual docs. I built a hex-dump display so I could read all the headers and data in the captured data and typical audio files, and dug up some ancient AIFF spec sheets going back to the Apple ][ era. Some parameters remain in the REV2700 data dump that I haven't connected with function yet. Limitations - At this moment I can't recover files with lower sample rates of 11k and 8k, but that's probably due to scripting errors (gasp), my test files or methodology - there are still a few things about the audioclip data structure I haven't yet discovered. But an exported 22k 8 bit file worked fine, as did the 16 bit 44.1 and 48k samples, stereo and mono. Also not supported is audio with 24 bits or wider width and/or sample rates higher than 48,000. Those are Livecode limitations anyway. Not tested on Intel or Windows yet. There might be some endian issues. This has not tested with audio files greater than a second or two. Not sure what to do with the project other than use my own libraries, perhaps I'll offer a free 'rescue' app that will allow the recovery of the audioclips in any stack to files in a designated folder, a very simple app. I started originally to create WAV files and could parse files and read the headers of my templates and comparison test files, but my Template creator code for WAVs just didn't produce a playable file, so I started completely over with an AIFF template. Making this project deliver wav files will be an option in the future. I may check out some other Livecode objects in their own 'binary space'. This is an interesting area for spelunking. For instance, the first 8 bytes of the captured Livecode audioclip object in memory is 52 45 56 4F 32 37 30 30 which reads back in ascii as REVO2700 but the rest is audio data and metadata that relates to the audio. A couple more things - I've discovered that it's possible to create custom properties within a soundclip, but one won't want to do that - it TROUNCES the audio data inside! (although it seems to play in Livecode anyway, it might mess up future export) And Livecode itself trounces the last 9 bytes of imported audio data in the original file in adding its own metadata using the import command. Obviously, 9 sample among millions won't be missed, but something to note. I'm sure the multimedia improvements in Livecode with upcoming versions will someday make this hack unnecessary. But for applications that need this now, it seems to work. Livecode made this investigation and execution possible, allowing me to create interactive information gathering displays to then empower me to write data conversion handlers with results confirmed by the displays I created before! I'll report back. Thanks to David Bovill for opening the door back in January: *copy audioclip 1* *put clipboarddata ["objects"] into tVariable* * * * * sqb On 10 January 2011 21:11, stephen barncard wrote: > I don't know about merging yet. I'll be happy to export individual files > right now. Stephen Barncard San Francisco Ca. USA more about sqb From pete at mollysrevenge.com Mon Mar 14 19:27:38 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Mon, 14 Mar 2011 16:27:38 -0700 Subject: Ann: Installer Maker 1.6.1 In-Reply-To: <91A14A8F-B1EC-46CF-A03A-1F8678EACC5E@economy-x-talk.com> References: <10BA7E99-53C2-4C52-AD3A-AC623652E25D@economy-x-talk.com> <5C578E93-A144-4212-AC68-374C43C33144@mollysrevenge.com> <91A14A8F-B1EC-46CF-A03A-1F8678EACC5E@economy-x-talk.com> Message-ID: <5B1E90D5-8113-4C3C-BFF6-BEA720A1E508@mollysrevenge.com> I sympathise Mark. I got caught once in one of these black hole blacklists that had it completely wrong and it's hard to persuade them to take you off their lists. I shouldn;t complain too much though because that's how I found out about Revolution indirectly. A couple of months later, one of their servers got put on the same blacklist and, though the blacklist mailing list, I saw an email from Heather Nagey about it, looked up the compnay/product and been hooked ever since! Pete Haworth On Mar 14, 2011, at 3:24 PM, Mark Schonewille wrote: > Yes, I know, that's not my fault. Some thought it was fun to report my site and that works like a virus now. Turn off those secutiry warnings in your browser settings and just make sure you have the usual antivirus software installed to protect your computer against really malicious sites. Even qery.us is not malicious, even though Google says so. I'll be in touch with Google about this. > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce > > On 14 mrt 2011, at 23:18, Peter Haworth wrote: > >> Hi Mark, >> I'd like to look at this but I'm getting flashing warning lights about malware when I go to your site. Not because of your URL but because of content that's on there from qery.us. I'm sure your site is clean but qery.us is probably on one of the site blacklists that exist out there. >> >> Pete Haworth > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From david at vaudevillecourt.tv Mon Mar 14 19:46:54 2011 From: david at vaudevillecourt.tv (David Bovill) Date: Mon, 14 Mar 2011 23:46:54 +0000 Subject: Opening package with LiveCode on OSX Message-ID: Before I delve in and fiddle around - does anyone know the ins and outs of opening OSX packages with an app. AFAIK an apple event is sent when you open a file, and you can trap for that. Also you register somehow the package file extension with an app - so that double clicking on it would open it. Putting the two together you should be able to get LiveCode to process the contents of the package when you double click on it? Any pointers? From jhj at jhj.com Mon Mar 14 20:12:54 2011 From: jhj at jhj.com (Jerry J) Date: Mon, 14 Mar 2011 17:12:54 -0700 Subject: Audioclips: can't get at the data? In-Reply-To: References: <7C79C759-264A-4406-B176-6AADE131E6E3@major.on-rev.com> <1294633048500-3206597.post@n4.nabble.com> Message-ID: On Mar 14, 2011, at 3:47 PM, stephen barncard wrote: > Just a short report to those following this thread : > today I've been successful in > > - Recovering the audio data and playback metadata from a livecode stack > - separating the components and metadata into arrays > - Using the metadata to export to a standard AIFF file from the audioclip > to MacOSX. WOW! Nice going, Stephen! --Jerry J From tsj at unimelb.edu.au Mon Mar 14 20:33:46 2011 From: tsj at unimelb.edu.au (Terry Judd) Date: Tue, 15 Mar 2011 11:33:46 +1100 Subject: Opening package with LiveCode on OSX In-Reply-To: Message-ID: On 15/03/11 10:46 AM, "David Bovill" wrote: > Before I delve in and fiddle around - does anyone know the ins and outs of > opening OSX packages with an app. AFAIK an apple event is sent when you open > a file, and you can trap for that. Also you register somehow the package > file extension with an app - so that double clicking on it would open it. > Putting the two together you should be able to get LiveCode to process the > contents of the package when you double click on it? > > Any pointers? If you turn record in the Applescript editor and then double-click a package file then it seems as if Applescript treats packages just the same as ordinary files. However, packages (.pkg) are automatically opened in the Installer app so if you want to deal with them from LiveCode I think you'd need to change the file extension and change LiveCode's (or your app's) plist settings so that you and not the Installer own it. The other option is to simply 'launch' the package from within Livecode rather than having the user double-click the package in the Finder. HTH, Terry... > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Dr Terry Judd | Senior Lecturer in Medical Education Medical Education Unit Melbourne Medical School The University of Melbourne From monte at sweattechnologies.com Mon Mar 14 20:34:58 2011 From: monte at sweattechnologies.com (Monte Goulding) Date: Tue, 15 Mar 2011 11:34:58 +1100 Subject: datagrid column resizing Message-ID: Hi I have a two column datagrid and I would like to always use the full width of the datagrid - scrollbar width to display them no matter the width of the data grid or if the user has resized a column. So if column A is resized I need to resize column B to = column A with - datagrid width-scrollbar width. I'd also probably like to limit both columns to have a max and min width of say 30% and 70% of the width of the datagrid. I use the same template in multiple places and at different sizes. Ideally I might handle a resizeColumn message in a whole column or even a datagrid background script. What are my options? Cheers Monte From devin_asay at byu.edu Mon Mar 14 21:02:29 2011 From: devin_asay at byu.edu (Devin Asay) Date: Mon, 14 Mar 2011 19:02:29 -0600 Subject: Text as dragImage Message-ID: <58B42628-F53E-40B1-B1CA-35BDF7DB19B4@byu.edu> Hi all, I'm creating a utility in which I want the user to be able to drag text from one field to another. I've worked out the details of dragging and dropping the text, but I also want to have the dragImage be a translucent copy of the text being dragged. I thought I remembered a discussion here about how to do that, but I haven't been able to find it. Has anyone done this? The effect should be similar to what you get in iTunes when you drag song title to a playlist. TIA, Devin Devin Asay Humanities Technology and Research Support Center Brigham Young University From monte at sweattechnologies.com Mon Mar 14 21:17:04 2011 From: monte at sweattechnologies.com (Monte Goulding) Date: Tue, 15 Mar 2011 12:17:04 +1100 Subject: Text as dragImage In-Reply-To: <58B42628-F53E-40B1-B1CA-35BDF7DB19B4@byu.edu> References: <58B42628-F53E-40B1-B1CA-35BDF7DB19B4@byu.edu> Message-ID: <350C62D7-FA79-4F2E-AC35-146B7F24F3C2@sweattechnologies.com> Hi Devin Put your text into an invisible field with it's opaque and showborder false, set the size of it according to the formattedWidth/height to suit. Then import snapshot from control and use that image as the dragImage. Cheers Monte On 15/03/2011, at 12:02 PM, Devin Asay wrote: > Hi all, > > I'm creating a utility in which I want the user to be able to drag text from one field to another. I've worked out the details of dragging and dropping the text, but I also want to have the dragImage be a translucent copy of the text being dragged. I thought I remembered a discussion here about how to do that, but I haven't been able to find it. Has anyone done this? The effect should be similar to what you get in iTunes when you drag song title to a playlist. > > TIA, > > Devin > > Devin Asay > Humanities Technology and Research Support Center > Brigham Young University > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From martyknapp at comcast.net Mon Mar 14 21:17:13 2011 From: martyknapp at comcast.net (Marty Knapp) Date: Mon, 14 Mar 2011 18:17:13 -0700 Subject: Text as dragImage In-Reply-To: <58B42628-F53E-40B1-B1CA-35BDF7DB19B4@byu.edu> References: <58B42628-F53E-40B1-B1CA-35BDF7DB19B4@byu.edu> Message-ID: <4D7EBE19.3020700@comcast.net> Hey Devin, You might check out Scott Rossi's "Get In Line" stack at tactilemedia.com Marty Knapp > Hi all, > > I'm creating a utility in which I want the user to be able to drag text from one field to another. I've worked out the details of dragging and dropping the text, but I also want to have the dragImage be a translucent copy of the text being dragged. I thought I remembered a discussion here about how to do that, but I haven't been able to find it. Has anyone done this? The effect should be similar to what you get in iTunes when you drag song title to a playlist. > > TIA, > > Devin > > Devin Asay > Humanities Technology and Research Support Center > Brigham Young University > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From coiin at verizon.net Mon Mar 14 21:22:07 2011 From: coiin at verizon.net (Colin Holgate) Date: Mon, 14 Mar 2011 21:22:07 -0400 Subject: Text as dragImage In-Reply-To: <58B42628-F53E-40B1-B1CA-35BDF7DB19B4@byu.edu> References: <58B42628-F53E-40B1-B1CA-35BDF7DB19B4@byu.edu> Message-ID: Can you get close by having a 50% blend level opaque borderless button? From devin_asay at byu.edu Mon Mar 14 22:47:06 2011 From: devin_asay at byu.edu (Devin Asay) Date: Mon, 14 Mar 2011 20:47:06 -0600 Subject: Text as dragImage In-Reply-To: <350C62D7-FA79-4F2E-AC35-146B7F24F3C2@sweattechnologies.com> References: <58B42628-F53E-40B1-B1CA-35BDF7DB19B4@byu.edu> <350C62D7-FA79-4F2E-AC35-146B7F24F3C2@sweattechnologies.com> Message-ID: <51468027-240B-45AD-B257-71287CCBD9EC@byu.edu> Thanks, Monte, Marty and Colin for your suggestions. I had mistakenly assumed that if a field was hidden a snapshot of the field would not show that field, but what was behind it. The dictionary entry for import snapshot is not as clear as is could be, but with a little trial and error I came up with this: on dragStart set the allowableDragActions to "copy" set the dragAction to "copy" set the dragData["private"] to word 2 of the clickLIne put the clicktext into tText put tText into fld "dragFld" set the width of fld "dragFld" to the formattedWidth of fld "dragFld" lock screen import snapshot from (the long id of fld "dragFld" of this cd) set the name of last image of this card to "dragImg" hide img "dragImg" unlock screen set the dragImage to the id of img "dragImg" end dragStart on dragEnd delete img "dragImg" put the dragDestination into tDest if tDest is empty then beep exit to top end if if the short name of tDest is "assignedStudents" then put dragData["private"] into tLineToAdd addNameToAssignedFld tLineToAdd end if end dragEnd This works, but is there any way to prevent the standard "+" symbol icon from appearing during a drag drop operation? \ Regard, Devin On Mar 14, 2011, at 7:17 PM, Monte Goulding wrote: > Hi Devin > > Put your text into an invisible field with it's opaque and showborder false, set the size of it according to the formattedWidth/height to suit. Then import snapshot from control and use that image as the dragImage. > > Cheers > > Monte > > On 15/03/2011, at 12:02 PM, Devin Asay wrote: > >> Hi all, >> >> I'm creating a utility in which I want the user to be able to drag text from one field to another. I've worked out the details of dragging and dropping the text, but I also want to have the dragImage be a translucent copy of the text being dragged. I thought I remembered a discussion here about how to do that, but I haven't been able to find it. Has anyone done this? The effect should be similar to what you get in iTunes when you drag song title to a playlist. >> >> TIA, >> >> Devin >> >> Devin Asay >> Humanities Technology and Research Support Center >> Brigham Young University >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode Devin Asay Humanities Technology and Research Support Center Brigham Young University From monte at sweattechnologies.com Mon Mar 14 22:54:30 2011 From: monte at sweattechnologies.com (Monte Goulding) Date: Tue, 15 Mar 2011 13:54:30 +1100 Subject: Text as dragImage In-Reply-To: <51468027-240B-45AD-B257-71287CCBD9EC@byu.edu> References: <58B42628-F53E-40B1-B1CA-35BDF7DB19B4@byu.edu> <350C62D7-FA79-4F2E-AC35-146B7F24F3C2@sweattechnologies.com> <51468027-240B-45AD-B257-71287CCBD9EC@byu.edu> Message-ID: > This works, but is there any way to prevent the standard "+" symbol icon from appearing during a drag drop operation? Hmm... have you tried locking the cursor and setting the cursor to none? Cheers Monte From johnpatten at mac.com Mon Mar 14 22:54:48 2011 From: johnpatten at mac.com (John Patten) Date: Mon, 14 Mar 2011 19:54:48 -0700 Subject: on-rev and mysql_connect and php Message-ID: <28EA4AE2-F22B-4808-A5FD-4AD4E6F768E4@mac.com> Hi All... I have a very basic mysql/php tutorial I'm attempting to make work on on-rev. The php/mysql tutorial is available here: http://www.freewebmasterhelp.com/tutorials/phpmysql/1 My question is related to the insert.php code. It shows: mysql_connect(localhost, $username, $password); in line 4 of the insert.php file. However, I only get warnings such as: Warning: include(dbinfo.inc.php) [function.include]: failed to open stream: No such file or directory in /home/..../insert.php on line 2 What should the server host name be for the mysql database, localhost or something else? I'd also be open to another mysql/php example if anybody has one handy... Thank you! John Patten SUSD From mcgrath3 at mac.com Mon Mar 14 22:58:13 2011 From: mcgrath3 at mac.com (Thomas McGrath III) Date: Mon, 14 Mar 2011 22:58:13 -0400 Subject: Scroller Example bug? In-Reply-To: References: Message-ID: I haven't seen this. Have you tried using my iOS UINavigationBar for navigating? It works pretty smoothly. -- Tom McGrath III http://lazyriver.on-rev.com 3mcgrath at comcast.net On Mar 14, 2011, at 12:34 PM, Eric Peyron wrote: > Hi all, > > The Scroller Example app bundled with Livecode looks very useful at first, but look at what happens when you add this: create a new card and make it the first card. Create a "go next" button on this new card, and a "go back" button on the scoller card. In the iPhone simulator, click the first button. The scroller card is displayed immediately. Then click the Back button. The card is not displayed immediately. If you want it to be displayed immediately, you have to first click the Back button, then click again anywhere on the screen. Does anyone know why this is happening? > > Thanks in advance, > Eric > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bonnmike at gmail.com Mon Mar 14 23:26:58 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 14 Mar 2011 21:26:58 -0600 Subject: on-rev and mysql_connect and php In-Reply-To: <28EA4AE2-F22B-4808-A5FD-4AD4E6F768E4@mac.com> References: <28EA4AE2-F22B-4808-A5FD-4AD4E6F768E4@mac.com> Message-ID: Make sure dbinfo.inc.php exists, and is in the same directory as insert.php Alternatively put the full path to dbinfo.inc.php into your include statement. To break down the error, first part is the error. Warning: include(dbinfo.inc.php) [function.include]: failed to open stream: No such file or directory tells you the command that failed (include(dbinfo.inc.php)) and more specific function.include. Then it tells you why it failed. Couldn't open the stream, no such file or directory, indicating a problem with dbinfo.inc.php Next part just gives you the location of the line, and the file that that caused it so you can locate and fix it. in /home/..../insert.php on line 2 On Mon, Mar 14, 2011 at 8:54 PM, John Patten wrote: > Hi All... > > I have a very basic mysql/php tutorial I'm attempting to make work on > on-rev. > > The php/mysql tutorial is available here: > http://www.freewebmasterhelp.com/tutorials/phpmysql/1 > > My question is related to the insert.php code. It shows: > > mysql_connect(localhost, $username, $password); > > in line 4 of the insert.php file. However, I only get warnings such as: > > Warning: include(dbinfo.inc.php) [function.include]: failed to open stream: > No such file or directory in /home/..../insert.php on line 2 > > What should the server host name be for the mysql database, localhost or > something else? > > I'd also be open to another mysql/php example if anybody has one handy... > > Thank you! > > John Patten > SUSD > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jhurley0305 at sbcglobal.net Tue Mar 15 00:07:47 2011 From: jhurley0305 at sbcglobal.net (James Hurley) Date: Mon, 14 Mar 2011 21:07:47 -0700 Subject: Having fits with the menu bar In-Reply-To: References: Message-ID: Stephen, Well, that was easy. I was expecting some "selectedText" code. Thanks, Jim > Date: Sun, 13 Mar 2011 10:17:23 -0700 > From: stephen barncard > To: How to use LiveCode > Subject: Re: Having fits with the menu bar > Message-ID: > > Content-Type: text/plain; charset=UTF-8 > > I don't know, James, it's pretty complex: > > > > switch pWhich > > case "Cut" > > cut > > break > > case "Copy" > > copy > > break > > case "Paste" > > paste > > break > > case "Clear" > > if the selectedField is not empty then put > empty into the selectedField > > break > > case "Select All" > > select character 1 to -1 of the selectedField > > break > > end switch > > On 13 March 2011 08:06, James Hurley wrote: From mwieder at ahsoftware.net Tue Mar 15 01:48:25 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Mon, 14 Mar 2011 22:48:25 -0700 Subject: LiveCode color map In-Reply-To: References: Message-ID: <79440966281.20110314224825@ahsoftware.net> Hugh- Sunday, March 13, 2011, 2:29:46 PM, you wrote: > I have uploaded an experimental color map. > Comments welcome. Quite nice. Completely unusable on linux, of course, but that's not your fault. Other than that, it's useful to be able to put a visual aspect to those color names. -- -Mark Wieder mwieder at ahsoftware.net From mwieder at ahsoftware.net Tue Mar 15 01:54:52 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Mon, 14 Mar 2011 22:54:52 -0700 Subject: Audioclips: can't get at the data? In-Reply-To: References: <7C79C759-264A-4406-B176-6AADE131E6E3@major.on-rev.com> <1294633048500-3206597.post@n4.nabble.com> Message-ID: <191441353593.20110314225452@ahsoftware.net> stephen- Monday, March 14, 2011, 3:47:17 PM, you wrote: > Just a short report to those following this thread : !!! Now I know where all your spare time has been going !!! -- -Mark Wieder mwieder at ahsoftware.net From liste.revo at medard.on-rev.com Tue Mar 15 02:20:48 2011 From: liste.revo at medard.on-rev.com (Medard) Date: Tue, 15 Mar 2011 07:20:48 +0100 Subject: french date In-Reply-To: <9ADDECBD-30B8-4DA8-BBDA-707A5546CD92@major.on-rev.com> Message-ID: <1jy5tli.1qfmdb01gxu4doM%liste.revo@medard.on-rev.com> Klaus on-rev wrote: > can some french user plaese post what "the system date" gives > on a french system? put the system date 2011-03-15 depends on custom date format! I prefer this one, so there is no problem in sorting files... From toolbook at kestner.de Tue Mar 15 03:42:36 2011 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Tue, 15 Mar 2011 08:42:36 +0100 Subject: AW: OT: Japan In-Reply-To: <4D7E3855.2090902@tkf.att.ne.jp> References: <000001cbe239$c677e2f0$5367a8d0$@de> <2FB8E670-D806-4567-AD50-EDD4F5D6584C@lacscentre.co.uk> <4D7E3855.2090902@tkf.att.ne.jp> Message-ID: <003a01cbe2e4$91cfd9d0$b56f8d70$@de> Hoping you - and Nicolas as well - can leave Tokio by time. The radioactive release is getting worse, even down to Tokio. Don't take the smallest risk! Tiemo > -----Urspr?ngliche Nachricht----- > Von: use-livecode-bounces at lists.runrev.com [mailto:use-livecode- > bounces at lists.runrev.com] Im Auftrag von Tim Selander > Gesendet: Montag, 14. M?rz 2011 16:46 > An: How to use LiveCode > Betreff: Re: OT: Japan > > Ron Barber and I are in Japan, too, in Tokyo. From michael-kristensen at dsa-net.dk Tue Mar 15 04:42:08 2011 From: michael-kristensen at dsa-net.dk (Michael Kristensen) Date: Tue, 15 Mar 2011 09:42:08 +0100 Subject: PDF with Bezier curve(s)? Message-ID: Hi there Would it be possible to get the bezier control points data from a pdf that only contains bezier curves (one or more)? Thanks Mic From monte at sweattechnologies.com Tue Mar 15 05:48:15 2011 From: monte at sweattechnologies.com (Monte Goulding) Date: Tue, 15 Mar 2011 20:48:15 +1100 Subject: PDF with Bezier curve(s)? In-Reply-To: References: Message-ID: I have an app (created 10 years ago so way before there were easier options) that generates PDF reports including bezier curves in charts. If I can generate them you'll be able to read them. The PDF spec wasn't all that much fun from memory. Cheers Monte On 15/03/2011, at 7:42 PM, Michael Kristensen wrote: > Hi there > > Would it be possible to get the bezier control points data from a pdf that only contains bezier curves (one or more)? > > Thanks Mic > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From david at vaudevillecourt.tv Tue Mar 15 06:40:09 2011 From: david at vaudevillecourt.tv (David Bovill) Date: Tue, 15 Mar 2011 10:40:09 +0000 Subject: Opening package with LiveCode on OSX In-Reply-To: References: Message-ID: Thanks Terry. Doing some research: - Document Packages - All about Bundles It seems that all that is needed is, as you say, to add some entries to the plist of the app: > To register a document as a package, you must modify the document type > information in your application?s information property list (Info.plist) > file. The *CFBundleDocumentTypes*key stores information about the document types your application supports. > For each document package type, include the *LSTypeIsPackage* key with an > appropriate value. The presence of this key tells the Finder and Launch > Services to treat directories with the given file extension as a package. > For more information about Info.plist keys, see *Information Property List > Key Reference > *. > > Document packages should always have an extension to identify them?even > though that extension may be hidden by the user. The extension allows the > Finder to identify your document directory and treat it as a package. You > should never associate a document package with a MIME type or 4-byte OS > type. > Now finding out exactly what you need to do to the plist is a bit more tricky: *LSTypeIsPackage* "Document is a package or bundle? Boolean Specifies whether the document is distributed as a bundle. If set to true, the bundle directory is treated as a file. (In Mac OS X v10.4 and later, this key is ignored if the LSItemContentTypes key is present.) And then you need to do stuff with the more complicated * CFBundleDocumentTypes * - Information Property List Key Reference To edit a plist in LiveCode, you can use plistbuddyon OSX recent OSX systems (post 10.5). It seems for OSX systems earlier than 10.5, you need to use the command line utility plutilto convert from binary to XML and back again. Then you can use LiveCodes XML function to edit the XML. - plutil - plistbuddy So all we now need is a little recipe to script plistbuddy to add the right keys. From david at vaudevillecourt.tv Tue Mar 15 06:45:30 2011 From: david at vaudevillecourt.tv (David Bovill) Date: Tue, 15 Mar 2011 10:45:30 +0000 Subject: Debugging popup Message-ID: I have a script that used to work fine, which pops up a menu in a field - however now it is causing the selected text in the field to loose it's selection. I've been here before and debugging popup menus is confusing because I think a number of messages are sent as part of the process - "mouseUp" even perhaps? Has anyone dug into the bottom of this before? From katir at hindu.org Tue Mar 15 07:03:37 2011 From: katir at hindu.org (Sivakatirswami) Date: Tue, 15 Mar 2011 01:03:37 -1000 Subject: Remote stack thinks it is corrupt Message-ID: <4D7F4789.5040801@hindu.org> In house I serve a lot of stacks from our big XServer on the LAN. I issue small players to desktops and then call the actual apps for production with I recently updated a stack with Livecode 4.6 dp7; put it back on the server and then call it as usual: on mouseUp go stack url "http://varuna.hindu.org/rev_stacks/KA Media Player/KA-Media-Player.livecode" put the result end mouseUp I'm getting: stack is corrupted, check for ~ backup file OK so I wondered if it was 4.6 dp7 and so I made back ups of some other stacks, very old (circa 2005-6) opened them in 4.6 dp7 and "messed around" with a lot of new features, graphic effects, added a few behaviors etc. saved and put one of these back on the server. stack is corrupted, check for ~ backup file on mouseUp go stack url "http://varuna.hindu.org/rev_stacks/KA-Stack-Index.livecode" put the result end mouseUp well, result is empty, stack opens up just fine. So this means that this one stack: KA-Media-Player.livecode is registering as corrupt if I try to load it with go stack url "http://varuna.hindu.org/rev_stacks/KA Media Player/KA-Media-Player.livecode" but I have for years opened and worked on stacks across the network and in this case if asking go to the server in the finder and double click on the copy on the server: KA-Media-Player.livecode it opens in 4.6 dp7 just fine. There is no indication at all that it is corrupt. So, I'm stuck.. I can't deploy this stack with standalone player. Since the stack seems fine, I don't know what to fix. The only clue could be possibly that there are a lot of open card and open stack handlers in KA-Media-Player.livecode stack and a standalone made with 4.6 dp7 (i updated the player) may not like these for some reason, where as simple stacks that do not have a lot of initial activity on open stack/card, open just fine when called by the same player. Any insights on how to de-bug this? Otherwise I don't know what to do other than send the stack to Mark and ask him why 4.6 dp7 thinks it is corrupt if called remotely. Sivakatirswami From keith.clarke at clarkeandclarke.co.uk Tue Mar 15 09:31:16 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Tue, 15 Mar 2011 13:31:16 +0000 Subject: Removing ListMagic from a stack - completely In-Reply-To: References: <119199EE-4554-4938-AF1A-72FA8F1EF9C3@clarkeandclarke.co.uk> Message-ID: <9BC0501F-2D10-473A-BEDA-175521CD4621@clarkeandclarke.co.uk> Thanks Bob. I removed ListMagic as per its documentation - it's not opening as a sub-stack and I've cleared-out the script entries that were calling it. Maybe there's some detritus in a front or back script, but I can't find any documentation on how to view or edit these. Any clues? Best, Keith.. On 14 Mar 2011, at 18:26, Bob Sneidar wrote: > You may want to check the stacks in use. If I am not mistaken, ListMagic inserts itself as a library stack, probably in the backScript. You will need to remove that. It may even be a substack in your main stack, I dunno. Also check if it's in your plug-ins. > > I still had ListMagic inserted as a substack of my main stack, but was not getting any alerts. I had done something in the past to remove it from the message hierarchy, but don't remember what it was. I deleted the substack in the application browser and it no longer appears as a substack of my project. > > Not sure if any of that helps you, but there you go. > > Bob > > > On Mar 14, 2011, at 10:36 AM, Keith Clarke wrote: > >> Hi folks, >> I've replaced all ListMagic controls in an app with data grids and removed any ListMagic script entries. However, when I start the application I still get loading alerts - to save/cancel/purge ListMagic. >> Searching in the Application browser and scripts reveals nothing. Am I missing some custom properties somewhere? >> Thanks, >> Keith.. >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From keith.clarke at clarkeandclarke.co.uk Tue Mar 15 09:48:40 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Tue, 15 Mar 2011 13:48:40 +0000 Subject: Removing ListMagic from a stack - completely In-Reply-To: <9BC0501F-2D10-473A-BEDA-175521CD4621@clarkeandclarke.co.uk> References: <119199EE-4554-4938-AF1A-72FA8F1EF9C3@clarkeandclarke.co.uk> <9BC0501F-2D10-473A-BEDA-175521CD4621@clarkeandclarke.co.uk> Message-ID: Whoops, never mind - sorry. ListMagic was removed cleanly, I simply forgot to remove the ListMagic stack from the GLX application framework! Funny how one can struggle with such things for hours and then realise the solution within 5 minutes of making a public ar$3 of oneself! ;-) Best, Keith.. On 15 Mar 2011, at 13:31, Keith Clarke wrote: > Thanks Bob. I removed ListMagic as per its documentation - it's not opening as a sub-stack and I've cleared-out the script entries that were calling it. > Maybe there's some detritus in a front or back script, but I can't find any documentation on how to view or edit these. Any clues? > Best, > Keith.. > > On 14 Mar 2011, at 18:26, Bob Sneidar wrote: > >> You may want to check the stacks in use. If I am not mistaken, ListMagic inserts itself as a library stack, probably in the backScript. You will need to remove that. It may even be a substack in your main stack, I dunno. Also check if it's in your plug-ins. >> >> I still had ListMagic inserted as a substack of my main stack, but was not getting any alerts. I had done something in the past to remove it from the message hierarchy, but don't remember what it was. I deleted the substack in the application browser and it no longer appears as a substack of my project. >> >> Not sure if any of that helps you, but there you go. >> >> Bob From ambassador at fourthworld.com Tue Mar 15 10:43:24 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 15 Mar 2011 07:43:24 -0700 Subject: Text as dragImage In-Reply-To: <51468027-240B-45AD-B257-71287CCBD9EC@byu.edu> References: <51468027-240B-45AD-B257-71287CCBD9EC@byu.edu> Message-ID: <4D7F7B0C.2080202@fourthworld.com> Devin Asay wrote: > I had mistakenly assumed that if a field was hidden a snapshot of > the field would not show that field, but what was behind it. The > dictionary entry for import snapshot is not as clear as is could > be, but with a little trial and error I came up with this: > > on dragStart > set the allowableDragActions to "copy" > set the dragAction to "copy" > set the dragData["private"] to word 2 of the clickLIne > put the clicktext into tText > put tText into fld "dragFld" > set the width of fld "dragFld" to the formattedWidth of fld > "dragFld" > lock screen > import snapshot from (the long id of fld "dragFld" of this cd) > set the name of last image of this card to "dragImg" > hide img "dragImg" > unlock screen > set the dragImage to the id of img "dragImg" > end dragStart With the rendering enhancements in v2.7 the engine now supports exporting any object to a snapshop - even ones that aren't on the current card, things that are offscreen, hidden objects, etc. With the "from " form as you're using the engine renders the object into the buffer from scratch rather than grab its rect from the current window buffer, which makes your use and a great many others possible (even easy ). BUT - Unfortunately the dragImage property is not yet supported on Linux: So if you need a truly cross-platform solution you'll have to do what RunRev did when they first wrote their IDE (which predates the dragImage property): put your image into a new temporary translucent stack, tracking the mouse to move it and doing your own hit-testing to monitor when you should show your drop hilite. Ugly, but until we get dragImage for Linux I know of no other way.... -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From ambassador at fourthworld.com Tue Mar 15 10:51:29 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 15 Mar 2011 07:51:29 -0700 Subject: Debugging popup In-Reply-To: References: Message-ID: <4D7F7CF1.4070605@fourthworld.com> David Bovill wrote: > I have a script that used to work fine, which pops up a menu in a field - > however now it is causing the selected text in the field to loose it's > selection. I've been here before and debugging popup menus is confusing > because I think a number of messages are sent as part of the process - > "mouseUp" even perhaps? Has anyone dug into the bottom of this before? If you set the traversalOn of the popup button to false the selection should be retained. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From devin_asay at byu.edu Tue Mar 15 10:57:46 2011 From: devin_asay at byu.edu (Devin Asay) Date: Tue, 15 Mar 2011 08:57:46 -0600 Subject: Text as dragImage In-Reply-To: References: <58B42628-F53E-40B1-B1CA-35BDF7DB19B4@byu.edu> <350C62D7-FA79-4F2E-AC35-146B7F24F3C2@sweattechnologies.com> <51468027-240B-45AD-B257-71287CCBD9EC@byu.edu> Message-ID: On Mar 14, 2011, at 8:54 PM, Monte Goulding wrote: >> This works, but is there any way to prevent the standard "+" symbol icon from appearing during a drag drop operation? > > Hmm... have you tried locking the cursor and setting the cursor to none? Nope, no go. The drag cursor seems to be outside of the regular cursor paradigm. Devin Devin Asay Humanities Technology and Research Support Center Brigham Young University From michael-kristensen at dsa-net.dk Tue Mar 15 11:05:14 2011 From: michael-kristensen at dsa-net.dk (Michael Kristensen) Date: Tue, 15 Mar 2011 16:05:14 +0100 Subject: PDF with Bezier curve(s)? Message-ID: <5F2526F3-3B5C-495F-B9E9-BB144A591EBC@dsa-net.dk> Thanks Monte You have put me on the right track by mentioning "PDF Spec". I have solved my problem now. Thanks Mic > > I have an app (created 10 years ago so way before there were easier options) that generates PDF reports including bezier curves in charts. If I can generate them you'll be able to read them. The PDF spec wasn't all that much fun from memory. > > Cheers > > Monte From ambassador at fourthworld.com Tue Mar 15 12:00:14 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 15 Mar 2011 09:00:14 -0700 Subject: Text as dragImage In-Reply-To: <51468027-240B-45AD-B257-71287CCBD9EC@byu.edu> References: <51468027-240B-45AD-B257-71287CCBD9EC@byu.edu> Message-ID: <4D7F8D0E.5040809@fourthworld.com> Devin Asay wrote: > ...is there any way to prevent the standard "+" symbol icon > from appearing during a drag drop operation? I believe the cursor type is determined by the dragAction. If you're not doing a copy action maybe "move" will do what you want? -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From stephenREVOLUTION2 at barncard.com Tue Mar 15 12:51:28 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Tue, 15 Mar 2011 09:51:28 -0700 Subject: Remote stack thinks it is corrupt In-Reply-To: <4D7F4789.5040801@hindu.org> References: <4D7F4789.5040801@hindu.org> Message-ID: Looks like the previously announced file format change has failed it's backward-compatibility test. Something about this was in the latest beta notes. This appears to be an item that should be discussed on the Improve list and the team should know about this asap. This is why "they" tell us that betas are 'not for production', but yet how can we move up to the new features (and bugs) without some risk at some point? On 15 March 2011 04:03, Sivakatirswami wrote: > In house I serve a lot of stacks from our big XServer on the LAN. > > I issue small players to desktops and then call the actual apps for > production with > > I recently updated a stack with Livecode 4.6 dp7; put it back on the > server and then call it as usual: > > on mouseUp > go stack url "http://varuna.hindu.org/rev_stacks/KA Media > Player/KA-Media-Player.livecode" > put the result > end mouseUp > > I'm getting: stack is corrupted, check for ~ backup file > > > OK so I wondered if it was 4.6 dp7 and so I made back ups of some other > stacks, very old (circa 2005-6) > > opened them in 4.6 dp7 and "messed around" with a lot of new features, > graphic effects, added a few behaviors etc. > > saved and put one of these back on the server. > > stack is corrupted, check for ~ backup file > > > on mouseUp > go stack url "http://varuna.hindu.org/rev_stacks/KA-Stack-Index.livecode > " > put the result > end mouseUp > > well, result is empty, stack opens up just fine. > > So this means that this one stack: > > KA-Media-Player.livecode > > is registering as corrupt if I try to load it with > go stack url "http://varuna.hindu.org/rev_stacks/KA Media > Player/KA-Media-Player.livecode" > > > but I have for years opened and worked on stacks across the network and in > this case if asking go to the server in the finder and double click on the > copy on the server: > > KA-Media-Player.livecode > > it opens in 4.6 dp7 just fine. There is no indication at all that it is > corrupt. > > So, I'm stuck.. I can't deploy this stack with standalone player. Since > the stack seems fine, I don't know what to fix. > > The only clue could be possibly that there are a lot of open card and open > stack handlers in KA-Media-Player.livecode stack and a standalone made with > 4.6 dp7 (i updated the player) may not like these for some reason, where > as simple stacks that do not have a lot of initial activity on open > stack/card, open just fine when called by the same player. > > Any insights on how to de-bug this? > > Otherwise I don't know what to do other than send the stack to Mark and ask > him why 4.6 dp7 thinks it is corrupt if called remotely. > > Sivakatirswami > > Stephen Barncard San Francisco Ca. USA more about sqb From bobs at twft.com Tue Mar 15 12:51:26 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 15 Mar 2011 09:51:26 -0700 Subject: on-rev and mysql_connect and php In-Reply-To: <28EA4AE2-F22B-4808-A5FD-4AD4E6F768E4@mac.com> References: <28EA4AE2-F22B-4808-A5FD-4AD4E6F768E4@mac.com> Message-ID: <12B25837-1CB4-4D4A-92CF-767AB128FCBF@twft.com> If it's on-rev, it should be your user name, a period and the server. as in myloninname.on-rev.com. Your database name is myloginname_databasename. You user is myloginname_username. So if my login name was slydawg, and my database was dogsofwar, and my user name was baddawg, it would be slydawg.on-rev.com, slydawg_dogsofwar, slydawg_baddawg. Is that confusing enough? Bob On Mar 14, 2011, at 7:54 PM, John Patten wrote: > Hi All... > > I have a very basic mysql/php tutorial I'm attempting to make work on on-rev. > > The php/mysql tutorial is available here: http://www.freewebmasterhelp.com/tutorials/phpmysql/1 > > My question is related to the insert.php code. It shows: > > mysql_connect(localhost, $username, $password); > > in line 4 of the insert.php file. However, I only get warnings such as: > > Warning: include(dbinfo.inc.php) [function.include]: failed to open stream: No such file or directory in /home/..../insert.php on line 2 > > What should the server host name be for the mysql database, localhost or something else? > > I'd also be open to another mysql/php example if anybody has one handy... > > Thank you! > > John Patten > SUSD > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobs at twft.com Tue Mar 15 12:52:23 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 15 Mar 2011 09:52:23 -0700 Subject: on-rev and mysql_connect and php In-Reply-To: <28EA4AE2-F22B-4808-A5FD-4AD4E6F768E4@mac.com> References: <28EA4AE2-F22B-4808-A5FD-4AD4E6F768E4@mac.com> Message-ID: Whoops maybe I misunderstood you. I saw on-rev in the subject. Bob On Mar 14, 2011, at 7:54 PM, John Patten wrote: > Hi All... > > I have a very basic mysql/php tutorial I'm attempting to make work on on-rev. > > The php/mysql tutorial is available here: http://www.freewebmasterhelp.com/tutorials/phpmysql/1 > > My question is related to the insert.php code. It shows: > > mysql_connect(localhost, $username, $password); > > in line 4 of the insert.php file. However, I only get warnings such as: > > Warning: include(dbinfo.inc.php) [function.include]: failed to open stream: No such file or directory in /home/..../insert.php on line 2 > > What should the server host name be for the mysql database, localhost or something else? > > I'd also be open to another mysql/php example if anybody has one handy... > > Thank you! > > John Patten > SUSD > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From andre at andregarzia.com Tue Mar 15 13:05:33 2011 From: andre at andregarzia.com (Andre Garzia) Date: Tue, 15 Mar 2011 14:05:33 -0300 Subject: Remote stack thinks it is corrupt In-Reply-To: <4D7F4789.5040801@hindu.org> References: <4D7F4789.5040801@hindu.org> Message-ID: Swami, Are they saved in legacy format? What is the version of the engine that is trying to open them? Om andre On Tue, Mar 15, 2011 at 8:03 AM, Sivakatirswami wrote: > In house I serve a lot of stacks from our big XServer on the LAN. > > I issue small players to desktops and then call the actual apps for > production with > > I recently updated a stack with Livecode 4.6 dp7; put it back on the > server and then call it as usual: > > on mouseUp > go stack url "http://varuna.hindu.org/rev_stacks/KA Media > Player/KA-Media-Player.livecode" > put the result > end mouseUp > > I'm getting: stack is corrupted, check for ~ backup file > > > OK so I wondered if it was 4.6 dp7 and so I made back ups of some other > stacks, very old (circa 2005-6) > > opened them in 4.6 dp7 and "messed around" with a lot of new features, > graphic effects, added a few behaviors etc. > > saved and put one of these back on the server. > > stack is corrupted, check for ~ backup file > > > on mouseUp > go stack url "http://varuna.hindu.org/rev_stacks/KA-Stack-Index.livecode > " > put the result > end mouseUp > > well, result is empty, stack opens up just fine. > > So this means that this one stack: > > KA-Media-Player.livecode > > is registering as corrupt if I try to load it with > go stack url "http://varuna.hindu.org/rev_stacks/KA Media > Player/KA-Media-Player.livecode" > > > but I have for years opened and worked on stacks across the network and in > this case if asking go to the server in the finder and double click on the > copy on the server: > > KA-Media-Player.livecode > > it opens in 4.6 dp7 just fine. There is no indication at all that it is > corrupt. > > So, I'm stuck.. I can't deploy this stack with standalone player. Since > the stack seems fine, I don't know what to fix. > > The only clue could be possibly that there are a lot of open card and open > stack handlers in KA-Media-Player.livecode stack and a standalone made with > 4.6 dp7 (i updated the player) may not like these for some reason, where > as simple stacks that do not have a lot of initial activity on open > stack/card, open just fine when called by the same player. > > Any insights on how to de-bug this? > > Otherwise I don't know what to do other than send the stack to Mark and ask > him why 4.6 dp7 thinks it is corrupt if called remotely. > > Sivakatirswami > > > > > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- http://www.andregarzia.com All We Do Is Code. From keith.clarke at clarkeandclarke.co.uk Tue Mar 15 13:06:36 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Tue, 15 Mar 2011 17:06:36 +0000 Subject: Best practice for creating a resizable HUD-style widget stack background? Message-ID: <65725FE7-131C-442C-B308-1AD0DD6FF429@clarkeandclarke.co.uk> Hi folks, What is the best way to go about creating a resizable HUD-style widget stack - like in this lesson on skinning but with a resizable rounded-corner rectangular background http://www.runrev.com/developers/lessons-and-tutorials/tutorials/intermediate-skinning/ ? Thanks, Keith.. From etcawley at fastmail.fm Tue Mar 15 14:03:15 2011 From: etcawley at fastmail.fm (edward cawley) Date: Tue, 15 Mar 2011 13:03:15 -0500 Subject: Menu font sizes In-Reply-To: References: Message-ID: On Mar 14, 2011, at 12:00 PM, use-livecode-request at lists.runrev.com wrote: > > > Message: 20 > Date: Sun, 13 Mar 2011 23:47:19 -0500 > From: "J. Landman Gay" > To: How to use LiveCode > Subject: Re: Menu font sizes > Message-ID: <4D7D9DD7.6000107 at hyperactivesw.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > On 3/13/11 11:22 PM, edward cawley wrote: >> Still having a problem. How do I increase the font size on the >> Windows standalone. It's reduced to a very small font-6? on the >> menubar line on the windows standalone. I can't see anywhere to >> change it? > > Set the font and size of the menu group in the IDE before you build. You > can use the group's property inspector to do that. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > Where do I find the menu group in the IDE? I have two substacks with text fields with the menu information. When I use the menu setup it sets up the menu which works fine in MacOS X but it is in small (6 or 8) in the Windows. I went into the control panel of Windows an increase the font size of the menu and it increased the Windows bar but the app menu below is still the same. So my problem is finding the menu group in the IDE which effects the Windows/App menu. I may not be setting the app menu properly, I let LiveCode do it I I don't see a menu in the application browser.?? > > Message: 22 > Date: Sun, 13 Mar 2011 22:16:23 -0700 > From: "Paul D. DeRocco" > To: "'How to use LiveCode'" > Subject: RE: Menu font sizes > Message-ID: <40847FD2D2434146895E35141DB2AC52 at PAULD> > Content-Type: text/plain; charset="us-ascii" > >> From: edward cawley >> >> Still having a problem. How do I increase the font size on >> the Windows standalone. It's reduced to a very small font-6? >> on the menubar line on the windows standalone. I can't see >> anywhere to change it? > > That cropped up for me, all of a sudden once. I never figured out what made > it happen. It seems to me that it went from an unspecified state, in which > it used the normal Windows default, to a specified state with the wrong > value. But I never specified the menu font size. > > Rather than specify the "correct" font size, which may not agree with what > the user set up in the desktop properties, I'd rather get back the original > behavior of just letting Windows set the font size. Anyone have any ideas > how to do that? > As I said above setting the font size of the Windows menu doesn't see to effect the Apps menu. The items are there but the font size is too small. > -- > > Ciao, Paul D. DeRocco > Paul mailto:pderocco at ix.netcom.com > From selander at tkf.att.ne.jp Tue Mar 15 14:04:41 2011 From: selander at tkf.att.ne.jp (Tim Selander) Date: Wed, 16 Mar 2011 03:04:41 +0900 Subject: AW: OT: Japan In-Reply-To: <003a01cbe2e4$91cfd9d0$b56f8d70$@de> References: <000001cbe239$c677e2f0$5367a8d0$@de> <2FB8E670-D806-4567-AD50-EDD4F5D6584C@lacscentre.co.uk> <4D7E3855.2090902@tkf.att.ne.jp> <003a01cbe2e4$91cfd9d0$b56f8d70$@de> Message-ID: <4D7FAA39.9020001@tkf.att.ne.jp> Thank you for your concern, Tiemo. It seems all the world is looking at Japan! Yes, I suppose the radioactivity is getting worse. But I have lived and worked here for 30 years. It is my home. Where am I supposed to go? Anyway, (I know religion is verboten on this list, but perhaps you will forgive me this once?), I am in God's hands; in His care I do not feel I am in any risk. Anyway, I am a TV cameraman. If I become radio active and glow in the dark, I will no longer need a lighting assistant -- very convenient!! :-) Tim Selander Tokyo, Japan On 3/15/11 4:42 PM, Tiemo Hollmann TB wrote: > Hoping you - and Nicolas as well - can leave Tokio by time. The radioactive > release is getting worse, even down to Tokio. Don't take the smallest risk! > Tiemo > >> -----Urspr?ngliche Nachricht----- >> Von: use-livecode-bounces at lists.runrev.com [mailto:use-livecode- >> bounces at lists.runrev.com] Im Auftrag von Tim Selander >> Gesendet: Montag, 14. M?rz 2011 16:46 >> An: How to use LiveCode >> Betreff: Re: OT: Japan >> >> Ron Barber and I are in Japan, too, in Tokyo. > From bobs at twft.com Tue Mar 15 14:04:58 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 15 Mar 2011 11:04:58 -0700 Subject: [ANN] RunRevPlanet Search In-Reply-To: <1300068803611-3353007.post@n4.nabble.com> References: <1300068803611-3353007.post@n4.nabble.com> Message-ID: Hi Scott. Just wanted to point out that your web site has the same copy for RRP-Gradient Explorer.rev as it does for RRP-Grid-Share-Price-Demo.rev. Bob On Mar 13, 2011, at 7:13 PM, Scott McDonald wrote: > There is a new search library for LiveCode. It is a commercial product, that > can add fast search abilities to your help stacks, or any other application > where you need to be able to search across the contents of the cards in a > way much better than the LiveCode find command. > > There is a free demo stack that I tried to put on Rev Online, but it seemed > too big. (I couldn't get it to successfully upload, but maybe there was > another reason related to my Internet connection?) > > It is a searchable reference with over 16,000 posts from this list. I find > it useful when I can't access Nabble, and maybe others will find it is handy > too. > > You can get it from: http://www.runrevplanet.com/free-downloads.html > > ----- > -- > Scott McDonald > "Components, Controls, Tools and Resources for LiveCode" > www.runrevplanet.com > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-RunRevPlanet-Search-tp3353007p3353007.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From david at vaudevillecourt.tv Tue Mar 15 14:08:26 2011 From: david at vaudevillecourt.tv (David Bovill) Date: Tue, 15 Mar 2011 18:08:26 +0000 Subject: Debugging popup In-Reply-To: <4D7F7CF1.4070605@fourthworld.com> References: <4D7F7CF1.4070605@fourthworld.com> Message-ID: Thanks Richard - that was it! On 15 March 2011 14:51, Richard Gaskin wrote: > David Bovill wrote: > >> I have a script that used to work fine, which pops up a menu in a field - >> however now it is causing the selected text in the field to loose it's >> selection. I've been here before and debugging popup menus is confusing >> because I think a number of messages are sent as part of the process - >> "mouseUp" even perhaps? Has anyone dug into the bottom of this before? >> > > If you set the traversalOn of the popup button to false the selection > should be retained. > From rene.micout at numericable.com Tue Mar 15 14:11:22 2011 From: rene.micout at numericable.com (=?iso-8859-1?Q?Ren=E9_Micout?=) Date: Tue, 15 Mar 2011 19:11:22 +0100 Subject: AW: OT: Japan In-Reply-To: <4D7FAA39.9020001@tkf.att.ne.jp> References: <000001cbe239$c677e2f0$5367a8d0$@de> <2FB8E670-D806-4567-AD50-EDD4F5D6584C@lacscentre.co.uk> <4D7E3855.2090902@tkf.att.ne.jp> <003a01cbe2e4$91cfd9d0$b56f8d70$@de> <4D7FAA39.9020001@tkf.att.ne.jp> Message-ID: Good luck Tim !! Le 15 mars 2011 ? 19:04, Tim Selander a ?crit : > Thank you for your concern, Tiemo. It seems all the world is looking at Japan! > > Yes, I suppose the radioactivity is getting worse. But I have lived and worked here for 30 years. It is my home. Where am I supposed to go? Anyway, (I know religion is verboten on this list, but perhaps you will forgive me this once?), I am in God's hands; in His care I do not feel I am in any risk. Anyway, I am a TV cameraman. If I become radio active and glow in the dark, I will no longer need a lighting assistant -- very convenient!! :-) > > Tim Selander > Tokyo, Japan > > On 3/15/11 4:42 PM, Tiemo Hollmann TB wrote: >> Hoping you - and Nicolas as well - can leave Tokio by time. The radioactive >> release is getting worse, even down to Tokio. Don't take the smallest risk! >> Tiemo >> >>> -----Urspr?ngliche Nachricht----- >>> Von: use-livecode-bounces at lists.runrev.com [mailto:use-livecode- >>> bounces at lists.runrev.com] Im Auftrag von Tim Selander >>> Gesendet: Montag, 14. M?rz 2011 16:46 >>> An: How to use LiveCode >>> Betreff: Re: OT: Japan >>> >>> Ron Barber and I are in Japan, too, in Tokyo. >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobs at twft.com Tue Mar 15 14:18:06 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 15 Mar 2011 11:18:06 -0700 Subject: AW: OT: Japan In-Reply-To: <4D7FAA39.9020001@tkf.att.ne.jp> References: <000001cbe239$c677e2f0$5367a8d0$@de> <2FB8E670-D806-4567-AD50-EDD4F5D6584C@lacscentre.co.uk> <4D7E3855.2090902@tkf.att.ne.jp> <003a01cbe2e4$91cfd9d0$b56f8d70$@de> <4D7FAA39.9020001@tkf.att.ne.jp> Message-ID: At the risk of getting drubbed out myself, my prayers are with you. Bob On Mar 15, 2011, at 11:04 AM, Tim Selander wrote: > Thank you for your concern, Tiemo. It seems all the world is looking at Japan! > > Yes, I suppose the radioactivity is getting worse. But I have lived and worked here for 30 years. It is my home. Where am I supposed to go? Anyway, (I know religion is verboten on this list, but perhaps you will forgive me this once?), I am in God's hands; in His care I do not feel I am in any risk. Anyway, I am a TV cameraman. If I become radio active and glow in the dark, I will no longer need a lighting assistant -- very convenient!! :-) > > Tim Selander > Tokyo, Japan From devin_asay at byu.edu Tue Mar 15 14:37:55 2011 From: devin_asay at byu.edu (Devin Asay) Date: Tue, 15 Mar 2011 12:37:55 -0600 Subject: Text as dragImage In-Reply-To: <4D7F8D0E.5040809@fourthworld.com> References: <51468027-240B-45AD-B257-71287CCBD9EC@byu.edu> <4D7F8D0E.5040809@fourthworld.com> Message-ID: On Mar 15, 2011, at 10:00 AM, Richard Gaskin wrote: > Devin Asay wrote: > >> ...is there any way to prevent the standard "+" symbol icon >> from appearing during a drag drop operation? > > I believe the cursor type is determined by the dragAction. If you're > not doing a copy action maybe "move" will do what you want? Brilliant, Richard! That did the trick. Devin Devin Asay Humanities Technology and Research Support Center Brigham Young University From jacque at hyperactivesw.com Tue Mar 15 14:56:27 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 15 Mar 2011 13:56:27 -0500 Subject: Menu font sizes In-Reply-To: References: Message-ID: <4D7FB65B.9060000@hyperactivesw.com> On 3/15/11 1:03 PM, edward cawley wrote: >> Where do I find the menu group in the IDE? I have two substacks >> with text fields with the menu information. When I use the menu >> setup it sets up the menu which works fine in MacOS X but it is in >> small (6 or 8) in the Windows. I went into the control panel of >> Windows an increase the font size of the menu and it increased the >> Windows bar but the app menu below is still the same. So my problem >> is finding the menu group in the IDE which effects the Windows/App >> menu. I may not be setting the app menu properly, I let LiveCode do >> it I I don't see a menu in the application browser.?? >> Two ways. It's in the application browser. Click on any card that contains your menu. It should be one of the groups on the card. On Windows, you can also see it at the top of the card. On Mac, you can see it if you do this in the message box: set the editmenus of this stack to true That will unscroll the window so the menu group shows. But I agree that my first advice wasn't the best, the menu should really adjust according to the user's preference setting in Windows. Because it's just a regular LiveCode group, it won't respond to the system settings, as you found out. Right now adjusting for system settings isn't as easy to do as it could be; you need to read the registry. There are also different default font and size settings for different versions of Windows. For now, you could check to see what the LiveCode menu uses and just use that (I'd look it up for you but I haven't got Windows running right now. Maybe someone else remembers.) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From scott at tactilemedia.com Tue Mar 15 17:51:38 2011 From: scott at tactilemedia.com (Scott Rossi) Date: Tue, 15 Mar 2011 13:51:38 -0800 Subject: Best practice for creating a resizable HUD-style widget stack background? In-Reply-To: <65725FE7-131C-442C-B308-1AD0DD6FF429@clarkeandclarke.co.uk> Message-ID: Recently, Keith Clarke wrote: > What is the best way to go about creating a resizable HUD-style widget stack - > like in this lesson on skinning but with a resizable rounded-corner > rectangular background > http://www.runrev.com/developers/lessons-and-tutorials/tutorials/intermediate- > skinning/ ? For a resizable custom window, you must create a mask image for every size/orientation of window that you'll need. But a window that a user can drag-to-resize is out of the question because you'd have to generate a mask image each step of the way during the drag and redraw the window repeatedly. That said, if your window can "jump" to the required sizes (ie pressing the maximize or minimize control of a standard window) or if you have a limited range of preconfigured size options, you can store a range of mask images in your app, or generate them on the fly as needed. The former is easier, but the latter can be done by storing a representation of your windowshape as a set of graphic objects in a group, resize/reposition the objects as required, create a snapshot image of the group to serve as a mask for the window. For round-rect windows, you need create the mask as nine separate objects, scaling top/sides appropriately, and generating the mask from that. I've done it, and as I mentioned, it works best when you have fixed sizes you expand or collapse to, not with a drag-to-resize behavior. Regards, Scott Rossi Creative Director Tactile Media, UX Design From scott at tactilemedia.com Tue Mar 15 18:10:26 2011 From: scott at tactilemedia.com (Scott Rossi) Date: Tue, 15 Mar 2011 14:10:26 -0800 Subject: Best practice for creating a resizable HUD-style widget stack background? In-Reply-To: <65725FE7-131C-442C-B308-1AD0DD6FF429@clarkeandclarke.co.uk> Message-ID: Recently, Keith Clarke wrote: > What is the best way to go about creating a resizable HUD-style widget stack This might be of use: Regards, Scott Rossi Creative Director Tactile Media, UX Design From monte at sweattechnologies.com Tue Mar 15 17:35:25 2011 From: monte at sweattechnologies.com (Monte Goulding) Date: Wed, 16 Mar 2011 08:35:25 +1100 Subject: Text as dragImage In-Reply-To: References: <58B42628-F53E-40B1-B1CA-35BDF7DB19B4@byu.edu> <350C62D7-FA79-4F2E-AC35-146B7F24F3C2@sweattechnologies.com> <51468027-240B-45AD-B257-71287CCBD9EC@byu.edu> Message-ID: <0C5DB5B8-4136-4FFC-ACEE-9EF2AFC69272@sweattechnologies.com> >>> This works, but is there any way to prevent the standard "+" symbol icon from appearing during a drag drop operation? >> >> Hmm... have you tried locking the cursor and setting the cursor to none? > > Nope, no go. The drag cursor seems to be outside of the regular cursor paradigm. Yeah I tried too, it would have made sense if it worked though ;-) It would be nice if we had a global property for dragCursor which might default to the appropriate os cursors for the drag action. Cheers Monte From bobs at twft.com Tue Mar 15 18:25:06 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 15 Mar 2011 15:25:06 -0700 Subject: Text as dragImage In-Reply-To: <0C5DB5B8-4136-4FFC-ACEE-9EF2AFC69272@sweattechnologies.com> References: <58B42628-F53E-40B1-B1CA-35BDF7DB19B4@byu.edu> <350C62D7-FA79-4F2E-AC35-146B7F24F3C2@sweattechnologies.com> <51468027-240B-45AD-B257-71287CCBD9EC@byu.edu> <0C5DB5B8-4136-4FFC-ACEE-9EF2AFC69272@sweattechnologies.com> Message-ID: I thought that was precisely what setting the dragAction did! Bob On Mar 15, 2011, at 2:35 PM, Monte Goulding wrote: >>>> This works, but is there any way to prevent the standard "+" symbol icon from appearing during a drag drop operation? >>> >>> Hmm... have you tried locking the cursor and setting the cursor to none? >> >> Nope, no go. The drag cursor seems to be outside of the regular cursor paradigm. > > Yeah I tried too, it would have made sense if it worked though ;-) > > It would be nice if we had a global property for dragCursor which might default to the appropriate os cursors for the drag action. > > Cheers > > Monte > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From monte at sweattechnologies.com Tue Mar 15 18:34:53 2011 From: monte at sweattechnologies.com (Monte Goulding) Date: Wed, 16 Mar 2011 09:34:53 +1100 Subject: Text as dragImage In-Reply-To: References: <58B42628-F53E-40B1-B1CA-35BDF7DB19B4@byu.edu> <350C62D7-FA79-4F2E-AC35-146B7F24F3C2@sweattechnologies.com> <51468027-240B-45AD-B257-71287CCBD9EC@byu.edu> <0C5DB5B8-4136-4FFC-ACEE-9EF2AFC69272@sweattechnologies.com> Message-ID: <25B61131-B7E9-4532-BDFB-8200DD82DB14@sweattechnologies.com> > I thought that was precisely what setting the dragAction did! You can't set the dragAction to 12837 like you can with a cursor. There's also more to dragAction than just a cursor. You might want a dragAction of copy but a custom cursor or no cursor at all if you are using a dragImage and some other indicator of precise placement. Cheers Monte From devin_asay at byu.edu Tue Mar 15 18:43:43 2011 From: devin_asay at byu.edu (Devin Asay) Date: Tue, 15 Mar 2011 16:43:43 -0600 Subject: Text as dragImage In-Reply-To: <25B61131-B7E9-4532-BDFB-8200DD82DB14@sweattechnologies.com> References: <58B42628-F53E-40B1-B1CA-35BDF7DB19B4@byu.edu> <350C62D7-FA79-4F2E-AC35-146B7F24F3C2@sweattechnologies.com> <51468027-240B-45AD-B257-71287CCBD9EC@byu.edu> <0C5DB5B8-4136-4FFC-ACEE-9EF2AFC69272@sweattechnologies.com> <25B61131-B7E9-4532-BDFB-8200DD82DB14@sweattechnologies.com> Message-ID: On Mar 15, 2011, at 4:34 PM, Monte Goulding wrote: >> I thought that was precisely what setting the dragAction did! > > You can't set the dragAction to 12837 like you can with a cursor. There's also more to dragAction than just a cursor. You might want a dragAction of copy but a custom cursor or no cursor at all if you are using a dragImage and some other indicator of precise placement. Right, that's what I discovered. For all drag actions the cursor starts out as the 'prohibited' symbol and an arrowhead, plus a dragImage if you have set one. If you use "copy" as the dragAction the cursor changes to the 'plus' cursor and the dragImage when it enters a legal drop control; for "move" it changes to a plain arrow cursor and the dragImage upon entering the drop control; and for "link" it changes to a curved arrow cursor and the dragImage when entering the drop control. This happened to work fine for my current project, but I agree with Monte--I'd like the option of no cursor at all or a custom cursor during drag operations. Devin Devin Asay Humanities Technology and Research Support Center Brigham Young University From m.schonewille at economy-x-talk.com Tue Mar 15 19:13:29 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 16 Mar 2011 00:13:29 +0100 Subject: Live LiveCode Code Event #14 Summary Message-ID: <735B26FE-764D-44D0-BBBB-8B31F85B1500@economy-x-talk.com> Dear LiveCoders, Last Saturday, 12 March, we had another nice on-line gathering of LiveCode fans. This time we had 3 completely different presentations. This time, nobody forgot to record his/her presentation this time and thus you can watch them all again if you like. Bj?rnke started the event with an introduction on custom properties. Bj?rnke's presentation can be found at http://www.ustream.tv/recorded/13277421 and the stack he created during the presentation can be downloaded here http://qery.us/ok Judy showed why LiveCode is the ideal tool to create much-needed educational solutions in very little time. Multiplication Bingo is one of those solutions and she explained how mere mortals can achieve such things. Judy's presentation can be found at http://www.ustream.tv/recorded/13278620 David finished the evening with a presentation of why and how to build an IRC client in LiveCode. If you are interested in checking out the code, then head over to the projects wiki for the LiveCode "Chat" project, which can be found here http://code.livecode.tv/Chat . David's presentation can be found at http://blip.tv/file/4876908 We are still looking for people who are willing to do a presentation. Please look at http://qery.us/oj for ideas and contact me through this web form http://qery.us/du to tell me when you're available. I hope to see you all at the event next time. We will be making announcements on this mailing list and at http://livecode.tv where you can also find a copy of this text. I will be contacting everyone who hast sent me a message about the LLCCE during the next 24 hours. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 New: Download the Installer Maker Plugin 1.6.2 for LiveCode here http://qery.us/ce From runrev260805 at m-r-d.de Tue Mar 15 19:33:00 2011 From: runrev260805 at m-r-d.de (Matthias Rebbe) Date: Wed, 16 Mar 2011 00:33:00 +0100 Subject: show mysql table with livecode command? Message-ID: Hi, i need to get a list of all tables of a MySQL database. I know i can do this with php. But in my case the MySQL server and all clients are in the same lan, so i want to do that completely with Livecode I thought i could use revexecutesql, but i do not get the list of the tables back. Can this be done with LiveCode commands or do i need php for that? Regards, Matthias From dixonja at hotmail.co.uk Tue Mar 15 19:38:41 2011 From: dixonja at hotmail.co.uk (John Dixon) Date: Tue, 15 Mar 2011 23:38:41 +0000 Subject: show mysql table with livecode command? In-Reply-To: References: Message-ID: Have a look at revDatabaseTable names in the dictionary... > From: runrev260805 at m-r-d.de > Subject: show mysql table with livecode command? > Date: Wed, 16 Mar 2011 00:33:00 +0100 > To: use-livecode at lists.runrev.com > > Hi, > > i need to get a list of all tables of a MySQL database. I know i can do this with php. But in my case the MySQL server and all clients are in the same lan, so i want to do that completely with Livecode > I thought i could use revexecutesql, but i do not get the list of the tables back. > Can this be done with LiveCode commands or do i need php for that? > > Regards, > > Matthias > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobs at twft.com Tue Mar 15 19:39:20 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 15 Mar 2011 16:39:20 -0700 Subject: show mysql table with livecode command? In-Reply-To: References: Message-ID: <38279AB6-52F7-4BD6-9C91-46037C486163@twft.com> SHOW TABLES does not work for you? Bob On Mar 15, 2011, at 4:33 PM, Matthias Rebbe wrote: > Hi, > > i need to get a list of all tables of a MySQL database. I know i can do this with php. But in my case the MySQL server and all clients are in the same lan, so i want to do that completely with Livecode > I thought i could use revexecutesql, but i do not get the list of the tables back. > Can this be done with LiveCode commands or do i need php for that? > > Regards, > > Matthias > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From runrev260805 at m-r-d.de Tue Mar 15 20:21:05 2011 From: runrev260805 at m-r-d.de (Matthias Rebbe) Date: Wed, 16 Mar 2011 01:21:05 +0100 Subject: show mysql table with livecode command? In-Reply-To: References: Message-ID: Hi, thanks for that. I was looking for sql in the dictionary. Regards, Matthias Am 16.03.2011 um 00:38 schrieb John Dixon: > > Have a look at revDatabaseTable names in the dictionary... > > > >> From: runrev260805 at m-r-d.de >> Subject: show mysql table with livecode command? >> Date: Wed, 16 Mar 2011 00:33:00 +0100 >> To: use-livecode at lists.runrev.com >> >> Hi, >> >> i need to get a list of all tables of a MySQL database. I know i can do this with php. But in my case the MySQL server and all clients are in the same lan, so i want to do that completely with Livecode >> I thought i could use revexecutesql, but i do not get the list of the tables back. >> Can this be done with LiveCode commands or do i need php for that? >> >> Regards, >> >> Matthias >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From capellan2000 at gmail.com Wed Mar 16 01:29:46 2011 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Tue, 15 Mar 2011 22:29:46 -0700 (PDT) Subject: PDF with Bezier curve(s)? In-Reply-To: <5F2526F3-3B5C-495F-B9E9-BB144A591EBC@dsa-net.dk> References: <5F2526F3-3B5C-495F-B9E9-BB144A591EBC@dsa-net.dk> Message-ID: <1300253386510-3380872.post@n4.nabble.com> Hi Michael, Michael Kristensen wrote: > > Thanks Monte > You have put me on the right track by mentioning "PDF Spec". > I have solved my problem now. > Thanks > It would be useful to download the stack: http://andregarzia.on-rev.com/alejandro/stacks/export_vector_graphics_v04.zip This stack have experimental scripts to export vector graphics to Adobe Ilustrator 7, PDF and SVG format. Just notice that to read compressed PDF streams with vector data, you should decompress the stream first. One of the many Deflate filters used by PDF to compress streams is identical to the deflate compressed data produced in LiveCode by the function named "compress". Read this: http://docs.runrev.com/Function/compress If your Bezier data is uncompressed, then it?s relatively straightforward to import them into LiveCode. My advice is to use this extraordinary stack as an example of importing vector data into LiveCode: http://revonline2.runrev.com/stack/112/SVGL In fact, you could save a lot of time if you write code to convert this Bezier data to the format used by Ian Macphail in this stack. Just print the handlers and study them in detail. You will learn a lot from this simple exercise. Good luck! Alejandro -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/PDF-with-Bezier-curve-s-tp3356015p3380872.html Sent from the Revolution - User mailing list archive at Nabble.com. From keith.clarke at clarkeandclarke.co.uk Wed Mar 16 04:14:35 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Wed, 16 Mar 2011 08:14:35 +0000 Subject: Best practice for creating a resizable HUD-style widget stack background? In-Reply-To: References: Message-ID: <36FE981C-D38F-4291-9C65-79CD58508A18@clarkeandclarke.co.uk> Hi Scott, Thanks for the response, comprehensive clarification and the link to the newsletter and hence, your demo stacks - all really useful stuff. I see now that managing these custom stack window shapes is (without wishing to sound critical of LiveCode) very similar to managing rounded rectangles in web pages for IE compatibility - i.e. the nine-image trick. As I don't need drag-to-resize, I reckon I can create a script-driven, rounded rectangle window shape that grows to fit its contents. If I keep the background colouring simple I reckon I can adapt a trick I've used on web pages into a script: 1. Import the 4 corner images but use LiveCode rectangles for the 5 rectangles that form the central cross; 2. Setting the HUD contents to a group and use the group's dimensions (plus margins) to set the size of the cross' component rectangles; Thanks again - oh, and item 8 in the newsletter http://runrev.com/newsletter/may/issue70/newsletter3.php has inspired me to have a go with adding a resizing preferences drawer, too! Best, Keith.. On 15 Mar 2011, at 21:51, Scott Rossi wrote: > > For a resizable custom window, you must create a mask image for every > size/orientation of window that you'll need. But a window that a user can > drag-to-resize is out of the question because you'd have to generate a mask > image each step of the way during the drag and redraw the window repeatedly. From keith.clarke at clarkeandclarke.co.uk Wed Mar 16 06:08:32 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Wed, 16 Mar 2011 10:08:32 +0000 Subject: MySQL vs Postgres for revignitor Message-ID: <729B696C-7502-45E4-A221-161A4DBA3898@clarkeandclarke.co.uk> Hi folks, I'm just about to install a database behind revServer to start building out a web app and experimenting with revIgnitor. Are there any major LiveCode, revIgnitor or other usability or toolset issues I should be aware of before selecting Postgres over MySQL? Best, Keith.. From keith.clarke at clarkeandclarke.co.uk Wed Mar 16 06:24:29 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Wed, 16 Mar 2011 10:24:29 +0000 Subject: Is it possible to adjust the border corner radius of a native rounded rectangle graphic? Message-ID: <5A7E0FF6-F2B8-4148-9343-0FF0A8716F0C@clarkeandclarke.co.uk> Hi folks, The title says it all really. I can't find anything in the dictionary or via Google - can we break into this object's attributes somehow? Best, Keith.. From niggemann at uni-wh.de Wed Mar 16 07:00:35 2011 From: niggemann at uni-wh.de (BNig) Date: Wed, 16 Mar 2011 04:00:35 -0700 (PDT) Subject: Is it possible to adjust the border corner radius of a native rounded rectangle graphic? In-Reply-To: <5A7E0FF6-F2B8-4148-9343-0FF0A8716F0C@clarkeandclarke.co.uk> References: <5A7E0FF6-F2B8-4148-9343-0FF0A8716F0C@clarkeandclarke.co.uk> Message-ID: <1300273235097-3381383.post@n4.nabble.com> Hi Keith, ---------- on mouseUp set the roundradius of grc 1 to 20 end mouseUp --------------- Look in the property inspector way down for the roundRadius or Corner Radius. Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Is-it-possible-to-adjust-the-border-corner-radius-of-a-native-rounded-rectangle-graphic-tp3381324p3381383.html Sent from the Revolution - User mailing list archive at Nabble.com. From keith.clarke at clarkeandclarke.co.uk Wed Mar 16 07:28:45 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Wed, 16 Mar 2011 11:28:45 +0000 Subject: Is it possible to adjust the border corner radius of a native rounded rectangle graphic? In-Reply-To: <1300273235097-3381383.post@n4.nabble.com> References: <5A7E0FF6-F2B8-4148-9343-0FF0A8716F0C@clarkeandclarke.co.uk> <1300273235097-3381383.post@n4.nabble.com> Message-ID: <1653E11B-5717-4BF4-A1FB-8144C48181B2@clarkeandclarke.co.uk> Hi Bernd, Brilliant, thanks. Wow - I've never even noticed the border section on the basic properties tab before! I guess that's the problem of setting the preference for LiveTalk property names to force some learning - not all the property descriptions (such as 'corner') are in the Dictionary yet! ;-) Note to self: I need to work out why I can't log-in to add Dictionary notes myself (it may be a developer release thing - I'll wait for 4.6 GA) Best, Keith.. On 16 Mar 2011, at 11:00, BNig wrote: > Hi Keith, > > ---------- > on mouseUp > set the roundradius of grc 1 to 20 > end mouseUp > --------------- > > Look in the property inspector way down for the roundRadius or Corner > Radius. > > Kind regards > > Bernd > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Is-it-possible-to-adjust-the-border-corner-radius-of-a-native-rounded-rectangle-graphic-tp3381324p3381383.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pmbrig at gmail.com Wed Mar 16 10:44:55 2011 From: pmbrig at gmail.com (Peter Brigham MD) Date: Wed, 16 Mar 2011 10:44:55 -0400 Subject: Efficiency question for list modification In-Reply-To: <4D7BFE0F.4040303@tweedly.net> References: <4D7BFE0F.4040303@tweedly.net> Message-ID: On Mar 12, 2011, at 6:13 PM, Alex Tweedly wrote: > You're right. Sorry - I was misled by the docs, which describe the > order of the combine following the description of the 'first' form > of the combine command, and then go on to describe the second form, > including the fact that the keys of the array must be all numeric. > I put 2 + 2 together and got a much too large answer :-( "2 + 2 = 5, for sufficiently large values of 2." -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From pepetoo at cox.net Wed Mar 16 11:29:11 2011 From: pepetoo at cox.net (Joe Lewis Wilkins) Date: Wed, 16 Mar 2011 08:29:11 -0700 Subject: OT OS9 as a Virtual OS on a MacPro using OSX Message-ID: <5D155926-B12B-46BC-9B82-DF8779A43CD4@cox.net> Has anyone successfully installed a MacOS9 on an OSX machine as a virtual OS? I'm trying to resurrect some Classic documents and if that can be done it would make my job much easier. Or can I install Rosetta on my MacPro? Sure would be nice. Joe Lewis Wilkins Architect & Director of Product Development for GSI From m.schonewille at economy-x-talk.com Wed Mar 16 11:46:49 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 16 Mar 2011 16:46:49 +0100 Subject: OT OS9 as a Virtual OS on a MacPro using OSX In-Reply-To: <5D155926-B12B-46BC-9B82-DF8779A43CD4@cox.net> References: <5D155926-B12B-46BC-9B82-DF8779A43CD4@cox.net> Message-ID: <2F113760-58B8-4818-9884-6A081C7D3050@economy-x-talk.com> Classic on Mac OS X 10.4 and earlier, SheepShaver on Mac OS X 10.5 and later. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce On 16 mrt 2011, at 16:29, Joe Lewis Wilkins wrote: > Has anyone successfully installed a MacOS9 on an OSX machine as a virtual OS? I'm trying to resurrect some Classic documents and if that can be done it would make my job much easier. Or can I install Rosetta on my MacPro? Sure would be nice. > > Joe Lewis Wilkins > Architect & Director of Product Development for GSI > > > From pepetoo at cox.net Wed Mar 16 12:17:06 2011 From: pepetoo at cox.net (Joe Lewis Wilkins) Date: Wed, 16 Mar 2011 09:17:06 -0700 Subject: OT OS9 as a Virtual OS on a MacPro using OSX In-Reply-To: <2F113760-58B8-4818-9884-6A081C7D3050@economy-x-talk.com> References: <5D155926-B12B-46BC-9B82-DF8779A43CD4@cox.net> <2F113760-58B8-4818-9884-6A081C7D3050@economy-x-talk.com> Message-ID: <1D6F8334-F042-4911-8C36-65D47BFDEC19@cox.net> Hi Mark, I don't understand what you are saying and maybe I wasn't very clear with what I would like to do. I want to be able to run some Classic Mac programs on an OS X 10.6+ MacPro. I think you're saying that I can install SheepShaver and will be able to do that then? TIA, Joe Lewis Wilkins Architect & Director of Product Development for GSI On Mar 16, 2011, at 8:46 AM, Mark Schonewille wrote: > Classic on Mac OS X 10.4 and earlier, SheepShaver on Mac OS X 10.5 and later. > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce > > On 16 mrt 2011, at 16:29, Joe Lewis Wilkins wrote: > >> Has anyone successfully installed a MacOS9 on an OSX machine as a virtual OS? I'm trying to resurrect some Classic documents and if that can be done it would make my job much easier. Or can I install Rosetta on my MacPro? Sure would be nice. >> >> Joe Lewis Wilkins >> Architect & Director of Product Development for GSI >> From m.schonewille at economy-x-talk.com Wed Mar 16 12:27:47 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 16 Mar 2011 17:27:47 +0100 Subject: OT OS9 as a Virtual OS on a MacPro using OSX In-Reply-To: <1D6F8334-F042-4911-8C36-65D47BFDEC19@cox.net> References: <5D155926-B12B-46BC-9B82-DF8779A43CD4@cox.net> <2F113760-58B8-4818-9884-6A081C7D3050@economy-x-talk.com> <1D6F8334-F042-4911-8C36-65D47BFDEC19@cox.net> Message-ID: Joe, Yes, exactly. SheepShaver is a Mac PPC emulator. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce On 16 mrt 2011, at 17:17, Joe Lewis Wilkins wrote: > Hi Mark, > I don't understand what you are saying and maybe I wasn't very clear with what I would like to do. > > I want to be able to run some Classic Mac programs on an OS X 10.6+ MacPro. I think you're saying that I can install SheepShaver and will be able to do that then? > > TIA, > Joe Lewis Wilkins > Architect & Director of Product Development for GSI > From form at nonsanity.com Wed Mar 16 12:29:26 2011 From: form at nonsanity.com (Nonsanity) Date: Wed, 16 Mar 2011 12:29:26 -0400 Subject: Best practice for creating a resizable HUD-style widget stack background? In-Reply-To: <36FE981C-D38F-4291-9C65-79CD58508A18@clarkeandclarke.co.uk> References: <36FE981C-D38F-4291-9C65-79CD58508A18@clarkeandclarke.co.uk> Message-ID: You can probably get away with drag-to-resize a round-cornered window by changing to a square-cornered window when they start to drag, perhaps a transparent one. The round-cornered graphics can still be visible and expanding live. When they let go of the drag, re-calculate the round-cornered mask from the now-resized graphics and re-apply. (Hmmm, there sure were a lot of dashed-words in there...) ~ Chris Innanen ~ Nonsanity On Wed, Mar 16, 2011 at 4:14 AM, Keith Clarke < keith.clarke at clarkeandclarke.co.uk> wrote: > Hi Scott, > Thanks for the response, comprehensive clarification and the link to the > newsletter and hence, your demo stacks - all really useful stuff. > > I see now that managing these custom stack window shapes is (without > wishing to sound critical of LiveCode) very similar to managing rounded > rectangles in web pages for IE compatibility - i.e. the nine-image trick. > > As I don't need drag-to-resize, I reckon I can create a script-driven, > rounded rectangle window shape that grows to fit its contents. If I keep the > background colouring simple I reckon I can adapt a trick I've used on web > pages into a script: > 1. Import the 4 corner images but use LiveCode rectangles for the 5 > rectangles that form the central cross; > 2. Setting the HUD contents to a group and use the group's dimensions (plus > margins) to set the size of the cross' component rectangles; > > Thanks again - oh, and item 8 in the newsletter > http://runrev.com/newsletter/may/issue70/newsletter3.php has inspired me > to have a go with adding a resizing preferences drawer, too! > Best, > Keith.. > > On 15 Mar 2011, at 21:51, Scott Rossi wrote: > > > > > For a resizable custom window, you must create a mask image for every > > size/orientation of window that you'll need. But a window that a user > can > > drag-to-resize is out of the question because you'd have to generate a > mask > > image each step of the way during the drag and redraw the window > repeatedly. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pepetoo at cox.net Wed Mar 16 12:46:04 2011 From: pepetoo at cox.net (Joe Lewis Wilkins) Date: Wed, 16 Mar 2011 09:46:04 -0700 Subject: OT OS9 as a Virtual OS on a MacPro using OSX In-Reply-To: References: <5D155926-B12B-46BC-9B82-DF8779A43CD4@cox.net> <2F113760-58B8-4818-9884-6A081C7D3050@economy-x-talk.com> <1D6F8334-F042-4911-8C36-65D47BFDEC19@cox.net> Message-ID: <5B6F05DC-36FB-437E-A07D-6D4F7608340A@cox.net> Thanks Mark. Joe Lewis Wilkins Architect & Director of Product Development for GSI On Mar 16, 2011, at 9:27 AM, Mark Schonewille wrote: > Joe, > > Yes, exactly. SheepShaver is a Mac PPC emulator. > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce > > On 16 mrt 2011, at 17:17, Joe Lewis Wilkins wrote: > >> Hi Mark, >> I don't understand what you are saying and maybe I wasn't very clear with what I would like to do. >> >> I want to be able to run some Classic Mac programs on an OS X 10.6+ MacPro. I think you're saying that I can install SheepShaver and will be able to do that then? From bobs at twft.com Wed Mar 16 13:13:17 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 16 Mar 2011 10:13:17 -0700 Subject: SHOW TABLES Message-ID: <28911953-08AD-4227-9AB4-06383F1F91F5@twft.com> Someone was asking about the Show Tables command and not getting anything back from the query. I got this out of the mySQL manual: If you have no privileges for a base table or view, it does not show up in the output from SHOW TABLES or mysqlshow db_name. I cannot imagine that you don't have privileges to any of the tables, but it's something to check first. Bob From keith.clarke at clarkeandclarke.co.uk Wed Mar 16 13:17:44 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Wed, 16 Mar 2011 17:17:44 +0000 Subject: Best practice for creating a resizable HUD-style widget stack background? In-Reply-To: References: <36FE981C-D38F-4291-9C65-79CD58508A18@clarkeandclarke.co.uk> Message-ID: <2F30E8F6-0A8E-49AE-A70A-591F72B4DB52@clarkeandclarke.co.uk> Thanks for the ideas Chris. I'm now convinced that for this particular HUD, the window shape size should not be too flexible but resize automatically, based on its contents. The user shouldn't have to worry about resizing the HUD - and this approach will also mitigate any risk of problems caused by users with 'fiddling fingers'! Best, Keith.. On 16 Mar 2011, at 16:29, Nonsanity wrote: > You can probably get away with drag-to-resize a round-cornered window by > changing to a square-cornered window when they start to drag, perhaps a > transparent one. The round-cornered graphics can still be visible and > expanding live. When they let go of the drag, re-calculate the > round-cornered mask from the now-resized graphics and re-apply. > > (Hmmm, there sure were a lot of dashed-words in there...) > > ~ Chris Innanen > ~ Nonsanity From johnpatten at mac.com Wed Mar 16 15:15:47 2011 From: johnpatten at mac.com (John Patten) Date: Wed, 16 Mar 2011 12:15:47 -0700 Subject: Sort of OT: mysql and select from two tables...? In-Reply-To: <729B696C-7502-45E4-A221-161A4DBA3898@clarkeandclarke.co.uk> References: <729B696C-7502-45E4-A221-161A4DBA3898@clarkeandclarke.co.uk> Message-ID: <6DE981FE-9529-4416-8736-EDEB832B1E23@mac.com> Hi All... Thanks for the previous help on the on-rev php/mysql question. I have a question about the mysql select command, session_register, and selecting from two tables. I have one database with two tables. The tables are teacher_user and student_user. Each table has a unique teacher-id stored in a fields. So students with the teacher_id value of 0001 stored in their student_user record all belong to the same teacher. Teacher_table Student_table id - 0001 teacher_id = 0001 first first last last title grade I also have the teacher login with their username and password comparing what is stored in their db record for username and password. If they match, then their username and password is then session_register("username"); & session_register("password"); . What i would like to be able to do is query the database and return a list of students to the individual teacher based on some unique information about the teacher's record, say their username. is there some way I can get at the session_register("username") and use it in my select query? Something like: select "username" from teacher_table and put "id" of table teacher_table into tTeacher_id then select tTeacher_id from student_table and loop through the student printing each record I suppose if the teacher new their id value I could just have them type that into a form and do a simple query the student_table and teacher_id field by that id value. But I was trying to make it a little more automatic and did not want teachers trying to guess other teachers' ids. Thanks in advance! John Patten SUSD From bobs at twft.com Wed Mar 16 16:24:48 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 16 Mar 2011 13:24:48 -0700 Subject: Sort of OT: mysql and select from two tables...? In-Reply-To: <6DE981FE-9529-4416-8736-EDEB832B1E23@mac.com> References: <729B696C-7502-45E4-A221-161A4DBA3898@clarkeandclarke.co.uk> <6DE981FE-9529-4416-8736-EDEB832B1E23@mac.com> Message-ID: You can use "SELECT session_user()" to get the currently logged in user. It's a synonym for "USER()". That help? Bob On Mar 16, 2011, at 12:15 PM, John Patten wrote: > Hi All... > > Thanks for the previous help on the on-rev php/mysql question. I have a question about the mysql select command, session_register, and selecting from two tables. > > I have one database with two tables. The tables are teacher_user and student_user. > > Each table has a unique teacher-id stored in a fields. So students with the teacher_id value of 0001 stored in their student_user record all belong to the same teacher. > > > Teacher_table Student_table > > id - 0001 teacher_id = 0001 > first first > last last > title grade > > > I also have the teacher login with their username and password comparing what is stored in their db record for username and password. If they match, then their username and password is then session_register("username"); & session_register("password"); . > > What i would like to be able to do is query the database and return a list of students to the individual teacher based on some unique information about the teacher's record, say their username. > > is there some way I can get at the session_register("username") and use it in my select query? > > Something like: > > select "username" from teacher_table and put "id" of table teacher_table into tTeacher_id then > select tTeacher_id from student_table and loop through the student printing each record > > I suppose if the teacher new their id value I could just have them type that into a form and do a simple query the student_table and teacher_id field by that id value. But I was trying to make it a little more automatic and did not want teachers trying to guess other teachers' ids. > > Thanks in advance! > > John Patten > SUSD > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobs at twft.com Wed Mar 16 16:25:45 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 16 Mar 2011 13:25:45 -0700 Subject: Sort of OT: mysql and select from two tables...? In-Reply-To: <6DE981FE-9529-4416-8736-EDEB832B1E23@mac.com> References: <729B696C-7502-45E4-A221-161A4DBA3898@clarkeandclarke.co.uk> <6DE981FE-9529-4416-8736-EDEB832B1E23@mac.com> Message-ID: hmmm... maybe "SELECT current_user()" Bob On Mar 16, 2011, at 12:15 PM, John Patten wrote: > Hi All... > > Thanks for the previous help on the on-rev php/mysql question. I have a question about the mysql select command, session_register, and selecting from two tables. > > I have one database with two tables. The tables are teacher_user and student_user. > > Each table has a unique teacher-id stored in a fields. So students with the teacher_id value of 0001 stored in their student_user record all belong to the same teacher. > > > Teacher_table Student_table > > id - 0001 teacher_id = 0001 > first first > last last > title grade > > > I also have the teacher login with their username and password comparing what is stored in their db record for username and password. If they match, then their username and password is then session_register("username"); & session_register("password"); . > > What i would like to be able to do is query the database and return a list of students to the individual teacher based on some unique information about the teacher's record, say their username. > > is there some way I can get at the session_register("username") and use it in my select query? > > Something like: > > select "username" from teacher_table and put "id" of table teacher_table into tTeacher_id then > select tTeacher_id from student_table and loop through the student printing each record > > I suppose if the teacher new their id value I could just have them type that into a form and do a simple query the student_table and teacher_id field by that id value. But I was trying to make it a little more automatic and did not want teachers trying to guess other teachers' ids. > > Thanks in advance! > > John Patten > SUSD > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From runrevplanet at smpcs.server101.com Wed Mar 16 18:29:40 2011 From: runrevplanet at smpcs.server101.com (Scott McDonald) Date: Wed, 16 Mar 2011 15:29:40 -0700 (PDT) Subject: [ANN] RunRevPlanet Search In-Reply-To: References: <1300068803611-3353007.post@n4.nabble.com> Message-ID: <1300314580503-3383217.post@n4.nabble.com> Hi Bob, >Just wanted to point out that your web site has the same copy for RRP-Gradient Explorer.rev >as it does for RRP-Grid-Share-Price-Demo.rev. Do you mean you found the links on the download page were to the same file? I checked and they appear correct, but perhaps I have misunderstood your comment. Thanks, Scott. ----- -- Scott McDonald "Components, Controls, Tools and Resources for LiveCode" www.runrevplanet.com -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-RunRevPlanet-Search-tp3353007p3383217.html Sent from the Revolution - User mailing list archive at Nabble.com. From johnpatten at mac.com Wed Mar 16 19:10:46 2011 From: johnpatten at mac.com (John Patten) Date: Wed, 16 Mar 2011 16:10:46 -0700 Subject: Sort of OT: mysql and select from two tables...? In-Reply-To: References: <729B696C-7502-45E4-A221-161A4DBA3898@clarkeandclarke.co.uk> <6DE981FE-9529-4416-8736-EDEB832B1E23@mac.com> Message-ID: Hi Bob... session_user() appears to give me something other than the current logged in user. It returns: myaccount_nameofdatabase This is what I did to test it out: $result = mysql_query( "SELECT session_user() FROM teacher_user" ) or die("SELECT Error: ".mysql_error()); $num_rows = mysql_num_rows($result); print "There are $num_rows records.

"; print "\n"; while ($get_info = mysql_fetch_row($result)){ print "\n"; foreach ($get_info as $field) print "\t\n"; print "\n"; } print "
$field
\n"; I think even if I could return just the current user's profile (fields in their record) using the session_register command in mySQL I'd be making progress :-) Any other ideas? Thank you! John Patten SUSD On Mar 16, 2011, at 1:24 PM, Bob Sneidar wrote: > You can use "SELECT session_user()" to get the currently logged in > user. It's a synonym for "USER()". That help? > > Bob > > > On Mar 16, 2011, at 12:15 PM, John Patten wrote: > >> Hi All... >> >> Thanks for the previous help on the on-rev php/mysql question. I >> have a question about the mysql select command, session_register, >> and selecting from two tables. >> >> I have one database with two tables. The tables are teacher_user >> and student_user. >> >> Each table has a unique teacher-id stored in a fields. So students >> with the teacher_id value of 0001 stored in their student_user >> record all belong to the same teacher. >> >> >> Teacher_table Student_table >> >> id - 0001 teacher_id = 0001 >> first first >> last last >> title grade >> >> >> I also have the teacher login with their username and password >> comparing what is stored in their db record for username and >> password. If they match, then their username and password is then >> session_register("username"); & session_register("password"); . >> >> What i would like to be able to do is query the database and return >> a list of students to the individual teacher based on some unique >> information about the teacher's record, say their username. >> >> is there some way I can get at the session_register("username") and >> use it in my select query? >> >> Something like: >> >> select "username" from teacher_table and put "id" of table >> teacher_table into tTeacher_id then >> select tTeacher_id from student_table and loop through the student >> printing each record >> >> I suppose if the teacher new their id value I could just have them >> type that into a form and do a simple query the student_table and >> teacher_id field by that id value. But I was trying to make it a >> little more automatic and did not want teachers trying to guess >> other teachers' ids. >> >> Thanks in advance! >> >> John Patten >> SUSD >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobs at twft.com Wed Mar 16 19:28:01 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 16 Mar 2011 16:28:01 -0700 Subject: SQL Gotchas Message-ID: Hi kids. Just a little info. Seems that DEFAULT can be used with text types in sqLite, but NOT mySQL! . Also sqLite allows a data length to be defined for DATETIME but mySQL does NOT! I am beginning to understand why a lot of software vendors will only support one engine. Because the SQL between different engines is neither STANDARD nor is it SIMPLE. Just saying. Does anyone know of any reference work done on the differences between engine syntaxes? I am trying to take the SQL for a table in sqLite and massage it to create the exact same table in mySQL. This is proving to be a snake pit, and I'd like to know what kind of snakes are in the pit before I jump in feet first. Bob From bobs at twft.com Wed Mar 16 19:36:52 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 16 Mar 2011 16:36:52 -0700 Subject: Sort of OT: mysql and select from two tables...? In-Reply-To: References: <729B696C-7502-45E4-A221-161A4DBA3898@clarkeandclarke.co.uk> <6DE981FE-9529-4416-8736-EDEB832B1E23@mac.com> Message-ID: <95FE9870-183C-43F8-83DF-CB31DB975F58@twft.com> session_register is not a mySQL function, it is php. It is also deprecated, so it may or may not work depending on the version of php being used. I thought you were trying to get Livecode to tell you who the current logged in user was? current_user() or just user() works for me. Bob on mouseUp pMouseBtnNo put "select current_user()" into theSQL put dbconn_get("connection id", "priconn", "primary") into thePriID -- sqlYoga function try put revDataFromQuery(comma, return, thePriID, theSQL) into theSQLData -- RevDB function catch theError answer theError exit to top end try put theSQLData end mouseUp This returns my on-rev user login at the ip I am connecting from as in mydatabase_mylogin at 69.227.63.5 (I made that up). Wouldn't that do it for you? Or are you using some kind of internal authentication and you are trying to get what the user typed into a form? Bob On Mar 16, 2011, at 4:10 PM, John Patten wrote: > Hi Bob... > > session_user() appears to give me something other than the current logged in user. It returns: myaccount_nameofdatabase > > This is what I did to test it out: > > $result = mysql_query( "SELECT session_user() FROM teacher_user" ) > or die("SELECT Error: ".mysql_error()); > > $num_rows = mysql_num_rows($result); > > print "There are $num_rows records.

"; > > print "\n"; > while ($get_info = mysql_fetch_row($result)){ > print "\n"; > foreach ($get_info as $field) > print "\t\n"; > print "\n"; > } > print "
$field
\n"; > > > I think even if I could return just the current user's profile (fields in their record) using the session_register command in mySQL I'd be making progress :-) > > Any other ideas? > > Thank you! > > John Patten > SUSD > > On Mar 16, 2011, at 1:24 PM, Bob Sneidar wrote: > >> You can use "SELECT session_user()" to get the currently logged in user. It's a synonym for "USER()". That help? >> >> Bob >> >> >> On Mar 16, 2011, at 12:15 PM, John Patten wrote: >> >>> Hi All... >>> >>> Thanks for the previous help on the on-rev php/mysql question. I have a question about the mysql select command, session_register, and selecting from two tables. >>> >>> I have one database with two tables. The tables are teacher_user and student_user. >>> >>> Each table has a unique teacher-id stored in a fields. So students with the teacher_id value of 0001 stored in their student_user record all belong to the same teacher. >>> >>> >>> Teacher_table Student_table >>> >>> id - 0001 teacher_id = 0001 >>> first first >>> last last >>> title grade >>> >>> >>> I also have the teacher login with their username and password comparing what is stored in their db record for username and password. If they match, then their username and password is then session_register("username"); & session_register("password"); . >>> >>> What i would like to be able to do is query the database and return a list of students to the individual teacher based on some unique information about the teacher's record, say their username. >>> >>> is there some way I can get at the session_register("username") and use it in my select query? >>> >>> Something like: >>> >>> select "username" from teacher_table and put "id" of table teacher_table into tTeacher_id then >>> select tTeacher_id from student_table and loop through the student printing each record >>> >>> I suppose if the teacher new their id value I could just have them type that into a form and do a simple query the student_table and teacher_id field by that id value. But I was trying to make it a little more automatic and did not want teachers trying to guess other teachers' ids. >>> >>> Thanks in advance! >>> >>> John Patten >>> SUSD >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jiml at netrin.com Wed Mar 16 19:40:22 2011 From: jiml at netrin.com (Jim Lambert) Date: Wed, 16 Mar 2011 16:40:22 -0700 Subject: Best practice for creating a resizable HUD-style widget stack background? In-Reply-To: References: Message-ID: <75EE909F-6438-48B8-B584-3ACA638CE917@netrin.com> List, Sorry if this comes thru twice. JimL ScottR wrote: > For round-rect windows, you need create the mask as nine separate objects, > scaling top/sides appropriately, and generating the mask from that. I've > done it, and as I mentioned, it works best when you have fixed sizes you > expand or collapse to, not with a drag-to-resize behavior You can also generate a rounded appearance with just one object. 1 - create a rounded rectangle graphic with the corner radii you want, say 30. 2 - name it "myMask" 3 - make it opaque & invisible 4 - set its rect to the card's rect 5 - set its geometry to scale with the window 6 - put this script in the card: command maskMe import snapshot from grc "myMask" set the windowshape of this stack to the id of last image delete last image end maskMe > a window that a user can > drag-to-resize is out of the question because you'd have to generate a mask > image each step of the way during the drag and redraw the window repeatedly. True. If you are willing to subject your users to some non-standard funkiness you can set the windowshape to 0 while they liveresize then use the above to make a rounded windowshape at whatever rect they end up with. Jim Lambert From bobs at twft.com Wed Mar 16 19:40:30 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 16 Mar 2011 16:40:30 -0700 Subject: [ANN] RunRevPlanet Search In-Reply-To: <1300314580503-3383217.post@n4.nabble.com> References: <1300068803611-3353007.post@n4.nabble.com> <1300314580503-3383217.post@n4.nabble.com> Message-ID: <8541812E-0A4C-4B2A-A3B9-81653AA5D282@twft.com> I will email you a private message with a screen shot. Bob On Mar 16, 2011, at 3:29 PM, Scott McDonald wrote: > Hi Bob, > >> Just wanted to point out that your web site has the same copy for > RRP-Gradient Explorer.rev >> as it does for RRP-Grid-Share-Price-Demo.rev. > > Do you mean you found the links on the download page were to the same file? > I checked and they appear correct, but perhaps I have misunderstood your > comment. > > Thanks, Scott. > > ----- > -- > Scott McDonald > "Components, Controls, Tools and Resources for LiveCode" > www.runrevplanet.com > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-RunRevPlanet-Search-tp3353007p3383217.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobs at twft.com Wed Mar 16 19:45:21 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 16 Mar 2011 16:45:21 -0700 Subject: Best practice for creating a resizable HUD-style widget stack background? In-Reply-To: <75EE909F-6438-48B8-B584-3ACA638CE917@netrin.com> References: <75EE909F-6438-48B8-B584-3ACA638CE917@netrin.com> Message-ID: <8C42BB27-52FE-489C-BE59-B43EA4B5E4EB@twft.com> Is that exercise for the liver? Bob On Mar 16, 2011, at 4:40 PM, Jim Lambert wrote: > you can set the windowshape to 0 while they liveresize From jperryl at ecs.fullerton.edu Wed Mar 16 19:54:20 2011 From: jperryl at ecs.fullerton.edu (Judy Perry) Date: Wed, 16 Mar 2011 16:54:20 -0700 (PDT) Subject: LC-using Educators Message-ID: I'm in a bit of a pickle... can LC-using educators please contact me off-list? TIA, Judy From niconiko at gmail.com Wed Mar 16 20:02:48 2011 From: niconiko at gmail.com (Nicolas Cueto) Date: Thu, 17 Mar 2011 09:02:48 +0900 Subject: LC-using Educators In-Reply-To: References: Message-ID: > I'm in a bit of a pickle... can LC-using educators please contact me > off-list? Yes? -- Nicolas Cueto From bobs at twft.com Wed Mar 16 20:20:40 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 16 Mar 2011 17:20:40 -0700 Subject: More regex madness Message-ID: <1590F215-69D6-4F68-AD9B-142D8FA21B4B@twft.com> Hi all. I read over the regex specifications, and I am more confused than ever. I want to find, say any text and "varchar" and any text and "default" and any text. I would think that: matchText("varchar(255) default `Yes`", "*varchar*default*") would return true, but no. I get: Message execution error: Error description: matchChunk: error in pattern expression Hint: bad escape sequence However: put matchText("varchar(255) default `Yes`", "varchar") returns true. How do I use wild cards?? I really thought I understood at least the basics of regex, but I see I do not. Bob From scott at tactilemedia.com Wed Mar 16 21:57:29 2011 From: scott at tactilemedia.com (Scott Rossi) Date: Wed, 16 Mar 2011 17:57:29 -0800 Subject: Best practice for creating a resizable HUD-style widget stack background? In-Reply-To: <75EE909F-6438-48B8-B584-3ACA638CE917@netrin.com> Message-ID: Recently, Jim Lambert wrote: > You can also generate a rounded appearance with just one object. > > 1 - create a rounded rectangle graphic with the corner radii you want, say 30. > 2 - name it "myMask" > 3 - make it opaque & invisible > 4 - set its rect to the card's rect > 5 - set its geometry to scale with the window > 6 - put this script in the card: > > command maskMe > import snapshot from grc "myMask" > set the windowshape of this stack to the id of last image > delete last image > end maskMe [forehead smack] Jim's right, I should have mentioned this is the easy way to do a round rect window. I'm used to the pre-graphic effects days of LC (Rev) where the only way to create a shadow for a custom window was to create a mask shape in an image-editing app along with its dropshadow and slice that into 9 tiles. Now one can simply add a dropshadow to a round rect graphic, place the graphic in a group with a suitably large margin, and import the windowshape mask image as a snapshot of the group. Good call Jim. Regards, Scott Rossi Creative Director Tactile Media, UX Design From sundown at pacifier.com Wed Mar 16 21:16:28 2011 From: sundown at pacifier.com (-=>JB<=-) Date: Wed, 16 Mar 2011 18:16:28 -0700 Subject: On-Rev mySQL-PHP Message-ID: I am trying to install a web development program named ExpressionEngine on my on-rev account and am having problems with mySQL and PHP. The software has a compatibility tester and it returns a problem with PHP. It needs MySQL (Version 4.1+) support in PHP They told me it might need an PHP extension for mySQL in my PHP folder. I have used the contact form on cPanel and they have not answered my question so I am trying to get answer here. If PHP is not the right version or I need an PHP extension added to my PHP folder is it possible for me to add it or does it need to be the cPanel webmaster? If there are other problems who is responsible for contacting me and explaining why ExpressionEngine cannot be installed to on-rev. Who should be contacted to resolve this problem? -=>JB<=- From runrevplanet at smpcs.server101.com Wed Mar 16 21:52:21 2011 From: runrevplanet at smpcs.server101.com (Scott McDonald) Date: Wed, 16 Mar 2011 18:52:21 -0700 (PDT) Subject: [ANN] RunRevPlanet Search In-Reply-To: <8541812E-0A4C-4B2A-A3B9-81653AA5D282@twft.com> References: <1300068803611-3353007.post@n4.nabble.com> <1300314580503-3383217.post@n4.nabble.com> <8541812E-0A4C-4B2A-A3B9-81653AA5D282@twft.com> Message-ID: <1300326741854-3383550.post@n4.nabble.com> Thanks very much. ----- -- Scott McDonald "Components, Controls, Tools and Resources for LiveCode" www.runrevplanet.com -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-RunRevPlanet-Search-tp3353007p3383550.html Sent from the Revolution - User mailing list archive at Nabble.com. From bonnmike at gmail.com Wed Mar 16 22:09:45 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 16 Mar 2011 20:09:45 -0600 Subject: More regex madness In-Reply-To: <1590F215-69D6-4F68-AD9B-142D8FA21B4B@twft.com> References: <1590F215-69D6-4F68-AD9B-142D8FA21B4B@twft.com> Message-ID: the * matches any number of chars matching the preceeding char. so *varchar*will try to match varcharrrrrrr To do what you want, use the period which stand for any char. So.. ".*varchar.*default.*" might be closer to what you want. Can be some weird results depending on whats in the string that is being regexed, but should get you a start. On Wed, Mar 16, 2011 at 6:20 PM, Bob Sneidar wrote: > Hi all. > > I read over the regex specifications, and I am more confused than ever. I > want to find, say any text and "varchar" and any text and "default" and any > text. I would think that: > > matchText("varchar(255) default `Yes`", "*varchar*default*") would return > true, but no. I get: > > Message execution error: > Error description: matchChunk: error in pattern expression > Hint: bad escape sequence > > However: > > put matchText("varchar(255) default `Yes`", "varchar") > > returns true. > > How do I use wild cards?? I really thought I understood at least the basics > of regex, but I see I do not. > > Bob > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bonnmike at gmail.com Wed Mar 16 22:11:18 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 16 Mar 2011 20:11:18 -0600 Subject: More regex madness In-Reply-To: References: <1590F215-69D6-4F68-AD9B-142D8FA21B4B@twft.com> Message-ID: Oh, also, there is a regex builder plugin thingy that is pretty useful, and should be installed in the ide by default. On Wed, Mar 16, 2011 at 8:09 PM, Mike Bonner wrote: > the * matches any number of chars matching the preceeding char. > so *varchar*will try to match varcharrrrrrr > To do what you want, use the period which stand for any char. > > So.. ".*varchar.*default.*" might be closer to what you want. Can be some > weird results depending on whats in the string that is being regexed, but > should get you a start. > > > On Wed, Mar 16, 2011 at 6:20 PM, Bob Sneidar wrote: > >> Hi all. >> >> I read over the regex specifications, and I am more confused than ever. I >> want to find, say any text and "varchar" and any text and "default" and any >> text. I would think that: >> >> matchText("varchar(255) default `Yes`", "*varchar*default*") would return >> true, but no. I get: >> >> Message execution error: >> Error description: matchChunk: error in pattern expression >> Hint: bad escape sequence >> >> However: >> >> put matchText("varchar(255) default `Yes`", "varchar") >> >> returns true. >> >> How do I use wild cards?? I really thought I understood at least the >> basics of regex, but I see I do not. >> >> Bob >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From jiml at netrin.com Wed Mar 16 22:16:53 2011 From: jiml at netrin.com (Jim Lambert) Date: Wed, 16 Mar 2011 19:16:53 -0700 Subject: est practice for creating a resizable HUD-style widget stack background? In-Reply-To: References: Message-ID: <1302BCD9-4DBC-45E3-9729-5F385592BD05@netrin.com> BobS wrote: > Is that exercise for the liver? I'll drink to that! Jim Lambert From johnpatten at mac.com Wed Mar 16 22:59:34 2011 From: johnpatten at mac.com (John Patten) Date: Wed, 16 Mar 2011 19:59:34 -0700 Subject: Sort of OT: mysql and select from two tables...? In-Reply-To: <95FE9870-183C-43F8-83DF-CB31DB975F58@twft.com> References: <729B696C-7502-45E4-A221-161A4DBA3898@clarkeandclarke.co.uk> <6DE981FE-9529-4416-8736-EDEB832B1E23@mac.com> <95FE9870-183C-43F8-83DF-CB31DB975F58@twft.com> Message-ID: <0AB9E995-634D-4B79-8FD6-400D95CD18C2@mac.com> I was just trying to get this to work straight with php and mysql, at least first off. I remember hearing others say the revmobile does not allow for LiveCode 's mySQL commands to work from within a mobile app. I thought I had heard, if you can just call "post" commands from within your revmobile app, you could still access mysql from your revmobile app. I keep trying to think of php and mysql commands the same way i think of LiveCode. That's my problem :-) The user log in I was referring to in the earlier post was just a mysql query that compares what the user types in on the form for username and password. If they match they move on, if they don't match, they get to try again. A username and password match instigates a "session_start() and that code is placed at the top of each html page. I think this was a pretty typically way to create a basic form based login using php and mysql. My attempt to query the student_user table for all students associated to that teacher via an entry in the teacher_user table, the teacher's unique id, was what i was after. It would be much easier to do this in a rev app. I could just store all the teacher data from the table teacher_user, and pull it out when querying tables other than teacher_user, such as the student_user table. Thanks! John Patten SUSD On Mar 16, 2011, at 4:36 PM, Bob Sneidar wrote: > session_register is not a mySQL function, it is php. It is also deprecated, so it may or may not work depending on the version of php being used. > > I thought you were trying to get Livecode to tell you who the current logged in user was? current_user() or just user() works for me. > > Bob > > on mouseUp pMouseBtnNo > put "select current_user()" into theSQL > put dbconn_get("connection id", "priconn", "primary") into thePriID -- sqlYoga function > > try > put revDataFromQuery(comma, return, thePriID, theSQL) into theSQLData -- RevDB function > catch theError > answer theError > exit to top > end try > > put theSQLData > end mouseUp > > This returns my on-rev user login at the ip I am connecting from as in mydatabase_mylogin at 69.227.63.5 (I made that up). Wouldn't that do it for you? Or are you using some kind of internal authentication and you are trying to get what the user typed into a form? > > > Bob > > > On Mar 16, 2011, at 4:10 PM, John Patten wrote: > >> Hi Bob... >> >> session_user() appears to give me something other than the current logged in user. It returns: myaccount_nameofdatabase >> >> This is what I did to test it out: >> >> $result = mysql_query( "SELECT session_user() FROM teacher_user" ) >> or die("SELECT Error: ".mysql_error()); >> >> $num_rows = mysql_num_rows($result); >> >> print "There are $num_rows records.

"; >> >> print "\n"; >> while ($get_info = mysql_fetch_row($result)){ >> print "\n"; >> foreach ($get_info as $field) >> print "\t\n"; >> print "\n"; >> } >> print "
$field
\n"; >> >> >> I think even if I could return just the current user's profile (fields in their record) using the session_register command in mySQL I'd be making progress :-) >> >> Any other ideas? >> >> Thank you! >> >> John Patten >> SUSD >> >> On Mar 16, 2011, at 1:24 PM, Bob Sneidar wrote: >> >>> You can use "SELECT session_user()" to get the currently logged in user. It's a synonym for "USER()". That help? >>> >>> Bob >>> >>> >>> On Mar 16, 2011, at 12:15 PM, John Patten wrote: >>> >>>> Hi All... >>>> >>>> Thanks for the previous help on the on-rev php/mysql question. I have a question about the mysql select command, session_register, and selecting from two tables. >>>> >>>> I have one database with two tables. The tables are teacher_user and student_user. >>>> >>>> Each table has a unique teacher-id stored in a fields. So students with the teacher_id value of 0001 stored in their student_user record all belong to the same teacher. >>>> >>>> >>>> Teacher_table Student_table >>>> >>>> id - 0001 teacher_id = 0001 >>>> first first >>>> last last >>>> title grade >>>> >>>> >>>> I also have the teacher login with their username and password comparing what is stored in their db record for username and password. If they match, then their username and password is then session_register("username"); & session_register("password"); . >>>> >>>> What i would like to be able to do is query the database and return a list of students to the individual teacher based on some unique information about the teacher's record, say their username. >>>> >>>> is there some way I can get at the session_register("username") and use it in my select query? >>>> >>>> Something like: >>>> >>>> select "username" from teacher_table and put "id" of table teacher_table into tTeacher_id then >>>> select tTeacher_id from student_table and loop through the student printing each record >>>> >>>> I suppose if the teacher new their id value I could just have them type that into a form and do a simple query the student_table and teacher_id field by that id value. But I was trying to make it a little more automatic and did not want teachers trying to guess other teachers' ids. >>>> >>>> Thanks in advance! >>>> >>>> John Patten >>>> SUSD >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From peterwawood at gmail.com Wed Mar 16 23:03:13 2011 From: peterwawood at gmail.com (Peter W A Wood) Date: Thu, 17 Mar 2011 11:03:13 +0800 Subject: On-Rev mySQL-PHP In-Reply-To: References: Message-ID: <229BE729-4E06-44B5-8D29-CAB4023D700F@gmail.com> JB > Who should be contacted to resolve this problem? I have used http://on-rev.com/support/contact-us/ or email to on-rev at runrev.com to get assistance with on-rev. Peter From 3mcgrath at comcast.net Wed Mar 16 23:51:30 2011 From: 3mcgrath at comcast.net (Thomas McGrath III) Date: Wed, 16 Mar 2011 23:51:30 -0400 Subject: Share this Stack Message-ID: I seem to remember a way to 'remove' some special setting or tag from a stack that was shared on RevOnline. Does anyone remember how to remove that? -- Tom McGrath III http://lazyriver.on-rev.com 3mcgrath at comcast.net From sundown at pacifier.com Thu Mar 17 00:42:40 2011 From: sundown at pacifier.com (-=>JB<=-) Date: Wed, 16 Mar 2011 21:42:40 -0700 Subject: On-Rev mySQL-PHP In-Reply-To: <229BE729-4E06-44B5-8D29-CAB4023D700F@gmail.com> References: <229BE729-4E06-44B5-8D29-CAB4023D700F@gmail.com> Message-ID: Thank you for the info. I will give it a try. -=>JB<=- On Mar 16, 2011, at 8:03 PM, Peter W A Wood wrote: > JB > >> Who should be contacted to resolve this problem? > > I have used http://on-rev.com/support/contact-us/ or email to on-rev at runrev.com to get assistance with on-rev. > > Peter > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From revdev at pdslabs.net Thu Mar 17 00:51:44 2011 From: revdev at pdslabs.net (Phil Davis) Date: Wed, 16 Mar 2011 21:51:44 -0700 Subject: secure comm between app and server Message-ID: <4D819360.5010800@pdslabs.net> I want to make the communication secure between my desktop app (and later a mobile app) and a LC CGI script on my server. I have HTTPS turned on and certificate in place, but don't know how much of that is needed. How do I do it? I have no clue. If it's easier to do it with revServer (aka "irev") code, I'm open. I just want to keep it in LC if possible. Many thanks - -- Phil Davis PDS Labs Professional Software Development http://pdslabs.net From support at ahsomme.com Thu Mar 17 00:59:42 2011 From: support at ahsomme.com (Paul Looney) Date: Wed, 16 Mar 2011 21:59:42 -0700 Subject: secure comm between app and server In-Reply-To: <4D819360.5010800@pdslabs.net> References: <4D819360.5010800@pdslabs.net> Message-ID: Phil, Would it suffice to encrypt the data? Paul Looney On Mar 16, 2011, at 9:51 PM, Phil Davis wrote: > I want to make the communication secure between my desktop app (and > later a mobile app) and a LC CGI script on my server. I have HTTPS > turned on and certificate in place, but don't know how much of that > is needed. How do I do it? I have no clue. > > If it's easier to do it with revServer (aka "irev") code, I'm open. > I just want to keep it in LC if possible. > > Many thanks - > -- > Phil Davis > > PDS Labs > Professional Software Development > http://pdslabs.net > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From revdev at pdslabs.net Thu Mar 17 01:29:22 2011 From: revdev at pdslabs.net (Phil Davis) Date: Wed, 16 Mar 2011 22:29:22 -0700 Subject: secure comm between app and server In-Reply-To: References: <4D819360.5010800@pdslabs.net> Message-ID: <4D819C32.7050906@pdslabs.net> I dunno. I think I would still want to send the data through the SSL tunnel that HTTPS uses, or something like it. The data will contain commands that make things happen from remote locations. I'm just now reading a Wikipedia article about HTTPS - good stuff! http://en.wikipedia.org/wiki/Https Phil On 3/16/11 9:59 PM, Paul Looney wrote: > Phil, > Would it suffice to encrypt the data? > Paul Looney > > On Mar 16, 2011, at 9:51 PM, Phil Davis wrote: > >> I want to make the communication secure between my desktop app (and later a >> mobile app) and a LC CGI script on my server. I have HTTPS turned on and >> certificate in place, but don't know how much of that is needed. How do I do >> it? I have no clue. >> >> If it's easier to do it with revServer (aka "irev") code, I'm open. I just >> want to keep it in LC if possible. >> >> Many thanks - >> -- >> Phil Davis >> >> PDS Labs >> Professional Software Development >> http://pdslabs.net >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Phil Davis PDS Labs Professional Software Development http://pdslabs.net From keith.clarke at clarkeandclarke.co.uk Thu Mar 17 03:46:11 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Thu, 17 Mar 2011 07:46:11 +0000 Subject: Best practice for creating a resizable HUD-style widget stack background? In-Reply-To: References: Message-ID: <0BB337CF-7564-46FB-8800-6694AC828FA3@clarkeandclarke.co.uk> ...thanks Jim & Scott - it's good to know that LiveCode has an integrated way of managing rounded rectangle window shapes. Bizarrely, it now looks like I may have to implement this HUD outside of a revlet, so I'll have to use the nine-images trick for Internet Explorer compatibility anyway! ;-) On 17 Mar 2011, at 01:57, Scott Rossi wrote: > Recently, Jim Lambert wrote: > >> You can also generate a rounded appearance with just one object. >> >> 1 - create a rounded rectangle graphic with the corner radii you want, say 30. >> 2 - name it "myMask" >> 3 - make it opaque & invisible >> 4 - set its rect to the card's rect >> 5 - set its geometry to scale with the window >> 6 - put this script in the card: >> >> command maskMe >> import snapshot from grc "myMask" >> set the windowshape of this stack to the id of last image >> delete last image >> end maskMe > > [forehead smack] > > Jim's right, I should have mentioned this is the easy way to do a round rect > window. I'm used to the pre-graphic effects days of LC (Rev) where the only > way to create a shadow for a custom window was to create a mask shape in an > image-editing app along with its dropshadow and slice that into 9 tiles. > > Now one can simply add a dropshadow to a round rect graphic, place the > graphic in a group with a suitably large margin, and import the windowshape > mask image as a snapshot of the group. > > Good call Jim. > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX Design > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From smudge.andy at googlemail.com Thu Mar 17 07:45:19 2011 From: smudge.andy at googlemail.com (AndyP) Date: Thu, 17 Mar 2011 04:45:19 -0700 (PDT) Subject: SQL Gotchas In-Reply-To: References: Message-ID: <1300362319571-3384266.post@n4.nabble.com> Hi Bob, This article may be of use. http://www.maxkpage.com/blog/free-sqlite-to-mysql-converter-super-easy/ http://www.maxkpage.com/blog/free-sqlite-to-mysql-converter-super-easy/ ----- Andy Piddock My software never has bugs. It just develops random features. PointandSee is a FREE simple but full featured under cursor colour picker / finder. http://www.pointandsee.co.uk - made with LiveCode (v1.3 released 20/02/2011) -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/SQL-Gotchas-tp3383330p3384266.html Sent from the Revolution - User mailing list archive at Nabble.com. From niggemann at uni-wh.de Thu Mar 17 08:53:13 2011 From: niggemann at uni-wh.de (BNig) Date: Thu, 17 Mar 2011 05:53:13 -0700 (PDT) Subject: Share this Stack In-Reply-To: References: Message-ID: <1300366393395-3384407.post@n4.nabble.com> Hi Thomas, turn 'livecode elements appear in list of stacks' in preferences on and look in the property inspector under custom properties -> revOnline Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Share-this-Stack-tp3383677p3384407.html Sent from the Revolution - User mailing list archive at Nabble.com. From mcgrath3 at mac.com Thu Mar 17 09:22:03 2011 From: mcgrath3 at mac.com (Thomas McGrath III) Date: Thu, 17 Mar 2011 09:22:03 -0400 Subject: Share this Stack In-Reply-To: <1300366393395-3384407.post@n4.nabble.com> References: <1300366393395-3384407.post@n4.nabble.com> Message-ID: <1A1E5D0E-C945-4A08-9991-38AD7BD48725@mac.com> That was it Bernd! Thanks again, -- Tom McGrath III http://lazyriver.on-rev.com 3mcgrath at comcast.net On Mar 17, 2011, at 8:53 AM, BNig wrote: > Hi Thomas, > > turn 'livecode elements appear in list of stacks' in preferences on and look > in the property inspector under custom properties -> revOnline > > Kind regards > > Bernd > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Share-this-Stack-tp3383677p3384407.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mcgrath3 at mac.com Thu Mar 17 10:27:41 2011 From: mcgrath3 at mac.com (Thomas McGrath III) Date: Thu, 17 Mar 2011 10:27:41 -0400 Subject: [TEASER] LiveCode <3 Facebook In-Reply-To: References: <8DB26B94-10EA-4AA8-8050-8B7295B09833@mac.com> Message-ID: Andre, Any word on the OAuth2 Library progress? I have a need. -- Tom McGrath III http://lazyriver.on-rev.com 3mcgrath at comcast.net >> On Feb 21, 2011, at 10:15 AM, Andre Garzia wrote: >> >>> Folks, >>> >>> Thanks for the kind words, I just wanted to stir things a little. This >> new >>> OAuth2 library will be available for Mac, Windows, RevServer and iOS. >> There >>> will be no linux version for now due to lack of RevBrowser on that >> platform. >>> OAuth 2.0 is easier to implement than OAuth 1.0, thats why I am moving >> along >>> with that one first. >>> >>> Right now the library is too unstable. While the test on the video went >> ok, >>> that was the fourth time I tried to record the movie. I hope to fix the >> bugs >>> on the library shortly. >>> >>> My plan is to make both OAuth 1.0 and OAuth 2.0 libraries free and create >> a >>> commercial offering in the form of little libraries on top of OAuth >>> libraries such as Facebook libraries. Right now, even though I have a raw >>> OAuth implementation, it is not a pure facebook library. I think such >> little >>> libraries would be worth 25 USD or something. >>> >>> Anyone will be able to download the OAuth stuff and use it to build their >>> own Facebook or Twitter stuff, but sometimes, having does things ready is >>> worth some bucks. >>> >>> Code for that example is this: >>> >>> Authorization: >>> >>> put empty into gA >>> put OAuth2NewWebService("facebook") into gA >>> OAuth2SetClientID gA, "blablabla" >>> OAuth2SetApplicationSecret gA, "blablabla" >>> OAuth2SetAPIKey gA, "blablabla" >>> OAuth2SetRedirectURI gA, " >>> http://www.facebook.com/connect/login_success.html" >>> OAuth2SetAccessTokenURL gA, " >>> https://graph.facebook.com/oauth/access_token" >>> OAuth2SetAuthorizationCallback gA, "authorizeCallback" >>> get OAuth2RequestAuthorization(gA, >>> "https://www.facebook.com/dialog/oauth >> ",,,"read_stream,publish_stream,offline_access") >>> >>> >>> Posting to wall: >>> >>> ask "What to post?" >>> put the urlencode of it into tMsg >>> put ("access_token=" & urlencode(gA["access_token"]) & "&message=" & >>> tMsg) into tData >>> >>> post tData to URL "https://graph.facebook.com/me/feed" >>> >>> >>> :-D >>> >>> PS: OAuth 1.0 is ugly... HMAC-SHA1 encoding is wrong in here. >>> >>> On Mon, Feb 21, 2011 at 5:52 AM, paolo mazza >> wrote: >>> >>>> Thank you Andre. >>>> This is very interesting. Can you tell us more about this new OAuth2 >>>> library for LiveCode? It looks like it works pretty well . Is it gonna >>>> be available soon? >>>> All the best >>>> Paolo Mazza >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> >>> >>> >>> -- >>> http://www.andregarzia.com All We Do Is Code. >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > > -- > http://www.andregarzia.com All We Do Is Code. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From m.schonewille at economy-x-talk.com Thu Mar 17 10:39:41 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Thu, 17 Mar 2011 15:39:41 +0100 Subject: [TEASER] LiveCode <3 Facebook In-Reply-To: References: <8DB26B94-10EA-4AA8-8050-8B7295B09833@mac.com> Message-ID: <2D586F33-0A19-4E6B-9A4D-1A358B2470F5@economy-x-talk.com> Hi Tom, If you have a real need for this, I do have a commercial solution for Facebook, which I can customise to meet your requirements. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce On 17 mrt 2011, at 15:27, Thomas McGrath III wrote: > Andre, > > Any word on the OAuth2 Library progress? > > I have a need. > > > -- Tom McGrath III > http://lazyriver.on-rev.com > 3mcgrath at comcast.net From bobs at twft.com Thu Mar 17 11:42:30 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 17 Mar 2011 08:42:30 -0700 Subject: [ANN] RunRevPlanet Search In-Reply-To: <1300326741854-3383550.post@n4.nabble.com> References: <1300068803611-3353007.post@n4.nabble.com> <1300314580503-3383217.post@n4.nabble.com> <8541812E-0A4C-4B2A-A3B9-81653AA5D282@twft.com> <1300326741854-3383550.post@n4.nabble.com> Message-ID: <90F3351F-8297-45C8-A9EA-F426D1C2A9E2@twft.com> No problemo. Bob On Mar 16, 2011, at 6:52 PM, Scott McDonald wrote: > Thanks very much. > > ----- > -- > Scott McDonald > "Components, Controls, Tools and Resources for LiveCode" > www.runrevplanet.com > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-RunRevPlanet-Search-tp3353007p3383550.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobs at twft.com Thu Mar 17 11:59:11 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 17 Mar 2011 08:59:11 -0700 Subject: SQL Gotchas In-Reply-To: <1300362319571-3384266.post@n4.nabble.com> References: <1300362319571-3384266.post@n4.nabble.com> Message-ID: <1D0AC10E-9F2A-465E-8EA0-2C9829EB1B93@twft.com> It may be useful in the future, but not for my project. I am making an interface whereby you can take a column or entire table from an sqLite database and migrate it to a mySQL database. There is a form whereby the user can define what columns and tables they want to "link" and a feature is to be able to copy entire columns of data from one side to the other. Bob On Mar 17, 2011, at 4:45 AM, AndyP wrote: > Hi Bob, > > This article may be of use. > > http://www.maxkpage.com/blog/free-sqlite-to-mysql-converter-super-easy/ > http://www.maxkpage.com/blog/free-sqlite-to-mysql-converter-super-easy/ > > ----- > Andy Piddock > > > My software never has bugs. It just develops random features. > PointandSee is a FREE simple but full featured under cursor colour picker / finder. > http://www.pointandsee.co.uk - made with LiveCode (v1.3 released 20/02/2011) > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/SQL-Gotchas-tp3383330p3384266.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobs at twft.com Thu Mar 17 12:10:32 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 17 Mar 2011 09:10:32 -0700 Subject: More regex madness In-Reply-To: References: <1590F215-69D6-4F68-AD9B-142D8FA21B4B@twft.com> Message-ID: Hey! Right you are! The error was caused by a beginning asterisk and there was no preceding character. Ya know, what these so called regex primers need more than anything else is some good examples. Almost none of them have examples. Once I saw your example, it was clear as glass. Maybe you need to write up a regex primer! ;-) Bob On Mar 16, 2011, at 7:09 PM, Mike Bonner wrote: > the * matches any number of chars matching the preceeding char. > so *varchar*will try to match varcharrrrrrr > To do what you want, use the period which stand for any char. > > So.. ".*varchar.*default.*" might be closer to what you want. Can be some > weird results depending on whats in the string that is being regexed, but > should get you a start. > > On Wed, Mar 16, 2011 at 6:20 PM, Bob Sneidar wrote: > >> Hi all. >> >> I read over the regex specifications, and I am more confused than ever. I >> want to find, say any text and "varchar" and any text and "default" and any >> text. I would think that: >> >> matchText("varchar(255) default `Yes`", "*varchar*default*") would return >> true, but no. I get: >> >> Message execution error: >> Error description: matchChunk: error in pattern expression >> Hint: bad escape sequence >> >> However: >> >> put matchText("varchar(255) default `Yes`", "varchar") >> >> returns true. >> >> How do I use wild cards?? I really thought I understood at least the basics >> of regex, but I see I do not. >> >> Bob >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From etcawley at fastmail.fm Thu Mar 17 12:25:52 2011 From: etcawley at fastmail.fm (edward cawley) Date: Thu, 17 Mar 2011 11:25:52 -0500 Subject: Menu font sizes In-Reply-To: References: Message-ID: <507F2F4D-C991-4EBE-86C6-F22404A2962F@fastmail.fm> > > > On 3/15/11 1:03 PM, edward cawley wrote: > >>> Where do I find the menu group in the IDE? I have two substacks >>> with text fields with the menu information. When I use the menu >>> setup it sets up the menu which works fine in MacOS X but it is in >>> small (6 or 8) in the Windows. I went into the control panel of >>> Windows an increase the font size of the menu and it increased the >>> Windows bar but the app menu below is still the same. So my problem >>> is finding the menu group in the IDE which effects the Windows/App >>> menu. I may not be setting the app menu properly, I let LiveCode do >>> it I I don't see a menu in the application browser.?? >>> > > Two ways. It's in the application browser. Click on any card that > contains your menu. It should be one of the groups on the card. On > Windows, you can also see it at the top of the card. On Mac, you can see > it if you do this in the message box: > > set the editmenus of this stack to true > > That will unscroll the window so the menu group shows. Thanks Jacque, That worked! I looked every where but there, I was looking at the substacks instead of the mainstack and I didn't recognize the menu name. It's easy once you know what to look for! I need to get a better handle on Windows, never thought I'd say that. Ed > > But I agree that my first advice wasn't the best, the menu should really > adjust according to the user's preference setting in Windows. Because > it's just a regular LiveCode group, it won't respond to the system > settings, as you found out. Right now adjusting for system settings > isn't as easy to do as it could be; you need to read the registry. There > are also different default font and size settings for different versions > of Windows. > > For now, you could check to see what the LiveCode menu uses and just use > that (I'd look it up for you but I haven't got Windows running right > now. Maybe someone else remembers.) > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > From bobs at twft.com Thu Mar 17 13:18:19 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 17 Mar 2011 10:18:19 -0700 Subject: mySQL and defaults Message-ID: From the MySQL reference manual on TEXT types: In most respects, you can regard a BLOB column as a VARBINARY column that can be as large as you like. Similarly, you can regard a TEXT column as a VARCHAR column. BLOB and TEXT differ from VARBINARY and VARCHAR in the following ways: ? BLOB and TEXT columns cannot have DEFAULT values. The last line would lead you to believe that CHAR and VARCHAR types CAN have default values, but nay. This produces a syntax error. Any way around this? Bob From jperryl at ecs.fullerton.edu Thu Mar 17 13:44:51 2011 From: jperryl at ecs.fullerton.edu (Judy Perry) Date: Thu, 17 Mar 2011 10:44:51 -0700 (PDT) Subject: LC-using educators Message-ID: Many kind thanks to all of you who have responded. Today's one of my long teaching days and thus I won't be able to get back with you until either late tonight or tomorrow sometime. Thanks again! Judy From warren at warrensweb.us Thu Mar 17 13:51:41 2011 From: warren at warrensweb.us (Warren Samples) Date: Thu, 17 Mar 2011 12:51:41 -0500 Subject: mySQL and defaults In-Reply-To: References: Message-ID: <201103171251.42006.warren@warrensweb.us> On Thursday, March 17, 2011 12:18:19 PM Bob Sneidar wrote: > From the MySQL reference manual on TEXT types: > > > In most respects, you can regard a BLOB column as a VARBINARY > column that can be as large as you like. Similarly, you can regard a TEXT > column as a VARCHAR column. BLOB and TEXT differ from VARBINARY and > VARCHAR in the following ways: > > > > ? BLOB and TEXT columns cannot have DEFAULT values. > > > The last line would lead you to believe that CHAR and VARCHAR types CAN > have default values, but nay. This produces a syntax error. Any way around > this? > > Bob Bob, Did you try setting 'NOT NULL' before "DEFAULT' ? Here's an example found on the internet: mysql> CREATE TABLE myTable -> ( -> ID SMALLINT UNSIGNED NOT NULL, -> City VARCHAR(40) NOT NULL DEFAULT 'Unknown' -> ); Query OK, 0 rows affected (0.05 sec) mysql> mysql> desc myTable; +-------+----------------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-------+----------------------+------+-----+---------+-------+ | ID | smallint(5) unsigned | NO | | | | | City | varchar(40) | NO | | Unknown | | +-------+----------------------+------+-----+---------+-------+ 2 rows in set (0.01 sec) mysql> mysql> drop table myTable; Query OK, 0 rows affected (0.00 sec) mysql> Does it work for you? Good Luck! Warren From andre at andregarzia.com Thu Mar 17 13:54:16 2011 From: andre at andregarzia.com (Andre Garzia) Date: Thu, 17 Mar 2011 14:54:16 -0300 Subject: [TEASER] LiveCode <3 Facebook In-Reply-To: References: <8DB26B94-10EA-4AA8-8050-8B7295B09833@mac.com> Message-ID: On Thu, Mar 17, 2011 at 11:27 AM, Thomas McGrath III wrote: > Andre, > > Any word on the OAuth2 Library progress? > > I have a need. > > Tom, Haven't touched the library because I was on my honeymoon and my wife made me promise not take a computer there. Now that I am back, I plan to develop it further and release soon. Mark has a commercial offering, might solve your needs faster since I still need to iron out some bugs. Andre > > -- Tom McGrath III > http://lazyriver.on-rev.com > 3mcgrath at comcast.net > > >> On Feb 21, 2011, at 10:15 AM, Andre Garzia wrote: > >> > >>> Folks, > >>> > >>> Thanks for the kind words, I just wanted to stir things a little. This > >> new > >>> OAuth2 library will be available for Mac, Windows, RevServer and iOS. > >> There > >>> will be no linux version for now due to lack of RevBrowser on that > >> platform. > >>> OAuth 2.0 is easier to implement than OAuth 1.0, thats why I am moving > >> along > >>> with that one first. > >>> > >>> Right now the library is too unstable. While the test on the video went > >> ok, > >>> that was the fourth time I tried to record the movie. I hope to fix the > >> bugs > >>> on the library shortly. > >>> > >>> My plan is to make both OAuth 1.0 and OAuth 2.0 libraries free and > create > >> a > >>> commercial offering in the form of little libraries on top of OAuth > >>> libraries such as Facebook libraries. Right now, even though I have a > raw > >>> OAuth implementation, it is not a pure facebook library. I think such > >> little > >>> libraries would be worth 25 USD or something. > >>> > >>> Anyone will be able to download the OAuth stuff and use it to build > their > >>> own Facebook or Twitter stuff, but sometimes, having does things ready > is > >>> worth some bucks. > >>> > >>> Code for that example is this: > >>> > >>> Authorization: > >>> > >>> put empty into gA > >>> put OAuth2NewWebService("facebook") into gA > >>> OAuth2SetClientID gA, "blablabla" > >>> OAuth2SetApplicationSecret gA, "blablabla" > >>> OAuth2SetAPIKey gA, "blablabla" > >>> OAuth2SetRedirectURI gA, " > >>> http://www.facebook.com/connect/login_success.html" > >>> OAuth2SetAccessTokenURL gA, " > >>> https://graph.facebook.com/oauth/access_token" > >>> OAuth2SetAuthorizationCallback gA, "authorizeCallback" > >>> get OAuth2RequestAuthorization(gA, > >>> "https://www.facebook.com/dialog/oauth > >> ",,,"read_stream,publish_stream,offline_access") > >>> > >>> > >>> Posting to wall: > >>> > >>> ask "What to post?" > >>> put the urlencode of it into tMsg > >>> put ("access_token=" & urlencode(gA["access_token"]) & "&message=" & > >>> tMsg) into tData > >>> > >>> post tData to URL "https://graph.facebook.com/me/feed" > >>> > >>> > >>> :-D > >>> > >>> PS: OAuth 1.0 is ugly... HMAC-SHA1 encoding is wrong in here. > >>> > >>> On Mon, Feb 21, 2011 at 5:52 AM, paolo mazza < > mazzapaoloitaly at gmail.com > >>> wrote: > >>> > >>>> Thank you Andre. > >>>> This is very interesting. Can you tell us more about this new OAuth2 > >>>> library for LiveCode? It looks like it works pretty well . Is it gonna > >>>> be available soon? > >>>> All the best > >>>> Paolo Mazza > >>>> > >>>> _______________________________________________ > >>>> use-livecode mailing list > >>>> use-livecode at lists.runrev.com > >>>> Please visit this url to subscribe, unsubscribe and manage your > >>>> subscription preferences: > >>>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>>> > >>> > >>> > >>> > >>> -- > >>> http://www.andregarzia.com All We Do Is Code. > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > > > > > > > -- > > http://www.andregarzia.com All We Do Is Code. > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- http://www.andregarzia.com All We Do Is Code. From bonnmike at gmail.com Thu Mar 17 14:20:10 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 17 Mar 2011 12:20:10 -0600 Subject: More regex madness In-Reply-To: References: <1590F215-69D6-4F68-AD9B-142D8FA21B4B@twft.com> Message-ID: I have to look everything up every time I use regex stuff myself, so not sure I'd be the best choice for such a thing. In addition to which, my communication skeelz lack, however this http://www.regular-expressions.info/reference.html is a pretty good reference sans many examples, but there are 1 or 2 small examples for each item in the reference table, so is pretty darn helpful. On Thu, Mar 17, 2011 at 10:10 AM, Bob Sneidar wrote: > Hey! Right you are! The error was caused by a beginning asterisk and there > was no preceding character. Ya know, what these so called regex primers need > more than anything else is some good examples. Almost none of them have > examples. Once I saw your example, it was clear as glass. Maybe you need to > write up a regex primer! ;-) > > Bob > > > On Mar 16, 2011, at 7:09 PM, Mike Bonner wrote: > > > the * matches any number of chars matching the preceeding char. > > so *varchar*will try to match varcharrrrrrr > > To do what you want, use the period which stand for any char. > > > > So.. ".*varchar.*default.*" might be closer to what you want. Can be some > > weird results depending on whats in the string that is being regexed, but > > should get you a start. > > > > On Wed, Mar 16, 2011 at 6:20 PM, Bob Sneidar wrote: > > > >> Hi all. > >> > >> I read over the regex specifications, and I am more confused than ever. > I > >> want to find, say any text and "varchar" and any text and "default" and > any > >> text. I would think that: > >> > >> matchText("varchar(255) default `Yes`", "*varchar*default*") would > return > >> true, but no. I get: > >> > >> Message execution error: > >> Error description: matchChunk: error in pattern expression > >> Hint: bad escape sequence > >> > >> However: > >> > >> put matchText("varchar(255) default `Yes`", "varchar") > >> > >> returns true. > >> > >> How do I use wild cards?? I really thought I understood at least the > basics > >> of regex, but I see I do not. > >> > >> Bob > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From revdev at pdslabs.net Thu Mar 17 14:53:15 2011 From: revdev at pdslabs.net (Phil Davis) Date: Thu, 17 Mar 2011 11:53:15 -0700 Subject: secure comm between app and server In-Reply-To: <4D819C32.7050906@pdslabs.net> References: <4D819360.5010800@pdslabs.net> <4D819C32.7050906@pdslabs.net> Message-ID: <4D82589B.2010201@pdslabs.net> Hi Paul, I'm changing my tune - I think encryption will be enough after all. Plus, I already know how to do it. Thanks for the idea. Phil On 3/16/11 10:29 PM, Phil Davis wrote: > I dunno. I think I would still want to send the data through the SSL tunnel > that HTTPS uses, or something like it. The data will contain commands that > make things happen from remote locations. > > I'm just now reading a Wikipedia article about HTTPS - good stuff! > http://en.wikipedia.org/wiki/Https > > Phil > > > On 3/16/11 9:59 PM, Paul Looney wrote: >> Phil, >> Would it suffice to encrypt the data? >> Paul Looney >> >> On Mar 16, 2011, at 9:51 PM, Phil Davis wrote: >> >>> I want to make the communication secure between my desktop app (and later a >>> mobile app) and a LC CGI script on my server. I have HTTPS turned on and >>> certificate in place, but don't know how much of that is needed. How do I do >>> it? I have no clue. >>> >>> If it's easier to do it with revServer (aka "irev") code, I'm open. I just >>> want to keep it in LC if possible. >>> >>> Many thanks - >>> -- >>> Phil Davis >>> >>> PDS Labs >>> Professional Software Development >>> http://pdslabs.net >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription >>> preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > -- Phil Davis PDS Labs Professional Software Development http://pdslabs.net From stephenREVOLUTION2 at barncard.com Thu Mar 17 15:00:28 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Thu, 17 Mar 2011 12:00:28 -0700 Subject: signed 8 bit to "sign and magnitude" handler needed [PART ONE] Message-ID: This isn't that long a message but it appears I've pushed the limit. THis is part one. Hi gang, Continuing on the "exporting aiff files from audioclips" quest, I discovered that 'some' (about 10%) of the exported files data would not play correctly. They sounded distorted and loud at full scale. Digging in further, I discovered that 8 bit AIFF files are not signed (due to their history), but instead are ( I think ) "sign and magnitude" 8 bit. So I need to convert the data for just the 8 bit files. I know this is dumb ass simple, but I've been staring at these numbers for too ling and need some fresh eyes. I am *seeking a handler in Livecode* to convert numbers between 0-255 (what I think is) two's compliment 8 bit to (what I think is) "sign and magnitude" numbers between 0-255. that is, I need to convert a number series that looks like below (word wrap is inevitable.) 00000000 80 7F 7F 7F 7E 7E 7E 7D 7D 7C 7C 7B 7B 7B 7A 7A 00000010 79 79 78 78 78 78 78 77 77 77 77 77 77 77 77 77 00000020 77 78 78 78 78 79 7A 7A 7B 7B 7C 7D 7D 7E 7F 80 00000030 81 81 83 83 84 85 86 87 88 89 8A 8B 8C 8C 8C 8E 00000040 8E 8F 90 90 90 91 91 91 92 91 91 91 92 91 91 90 00000050 90 90 8E 8E 8D 8C 8B 8A 89 88 87 85 84 83 81 80 00000060 7F 7D 7B 7A 79 77 76 75 73 72 71 6F 6F 6D 6C 6B (this is the same sine wave going above and below center in both lists) to be converted to numbers that look like this: 00000000 00 FF FF FF FE FE FE FD FD FC FC FB FB FB FA FA 00000010 F9 F9 F8 F8 F8 F8 F8 F7 F7 F7 F7 F7 F7 F7 F7 F7 00000020 F7 F8 F8 F8 F8 F9 FA FA FB FB FC FD FD FE FF 00 00000030 01 01 03 03 04 05 06 07 08 09 0A 0B 0C 0C 0C 0E 00000040 0E 0F 10 10 10 11 11 11 12 11 11 11 12 11 11 10 00000050 10 10 0E 0E 0D 0C 0B 0A 09 08 07 05 04 03 01 00 00000060 FF FD FB FA F9 F7 F6 F5 F3 F2 F1 EF EF ED EC EB (this is a SSND chunk dump from an audio file that plays correctly.) (part two will show the PHP code I tried to convert but failed) -- Stephen Barncard San Francisco Ca. USA more about sqb From bobs at twft.com Thu Mar 17 15:00:41 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 17 Mar 2011 12:00:41 -0700 Subject: mySQL and defaults In-Reply-To: <201103171251.42006.warren@warrensweb.us> References: <201103171251.42006.warren@warrensweb.us> Message-ID: <7B3BF7B9-455A-4A94-9A57-011080E5DACE@twft.com> Oh thanks Warren! That will work famously! Unfortunately I just finished the code that strips all the DEFAULT parameters from all text column definitions LOL! I guess it's back to work undoing my last undo. Still, nice to know it can be done. Bob On Mar 17, 2011, at 10:51 AM, Warren Samples wrote: > On Thursday, March 17, 2011 12:18:19 PM Bob Sneidar wrote: >> From the MySQL reference manual on TEXT types: >> >> >> In most respects, you can regard a BLOB column as a VARBINARY >> column that can be as large as you like. Similarly, you can regard a TEXT >> column as a VARCHAR column. BLOB and TEXT differ from VARBINARY and >> VARCHAR in the following ways: >> >> >> >> ? BLOB and TEXT columns cannot have DEFAULT values. >> >> >> The last line would lead you to believe that CHAR and VARCHAR types CAN >> have default values, but nay. This produces a syntax error. Any way around >> this? >> >> Bob > > > Bob, > > Did you try setting 'NOT NULL' before "DEFAULT' ? > > Here's an example found on the internet: > > mysql> CREATE TABLE myTable > -> ( > -> ID SMALLINT UNSIGNED NOT NULL, > -> City VARCHAR(40) NOT NULL DEFAULT 'Unknown' > -> ); > Query OK, 0 rows affected (0.05 sec) > > mysql> > mysql> desc myTable; > +-------+----------------------+------+-----+---------+-------+ > | Field | Type | Null | Key | Default | Extra | > +-------+----------------------+------+-----+---------+-------+ > | ID | smallint(5) unsigned | NO | | | | > | City | varchar(40) | NO | | Unknown | | > +-------+----------------------+------+-----+---------+-------+ > 2 rows in set (0.01 sec) > > mysql> > mysql> drop table myTable; > Query OK, 0 rows affected (0.00 sec) > > mysql> > > Does it work for you? > > Good Luck! > > Warren > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From stephenREVOLUTION2 at barncard.com Thu Mar 17 15:02:27 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Thu, 17 Mar 2011 12:02:27 -0700 Subject: signed 8 bit to "sign and magnitude" handler needed [PART ONE] In-Reply-To: References: Message-ID: I found the below PHP code online that seemed appropriate and tried to convert it to Livecode but it didn't return useful values. (not sure if I needed [$num = bindec($bin);] - turns number into string?) /* -- original PHP version found online and not tested in PHP function _bin8dec($bin) { // function to convert 8bit binary numbers to integers using two's complement $num = bindec($bin); if($num > 0xFF) { return false; } if($num >= 0x80) { return -(($num ^ 0xFF)+1); } else { return $num; } } ?> */ function bin8dec pBinary // does not crash, but returns useless values // function to convert 8bit binary numbers to integers using two's complement -- [ $num = bindec($bin); ] not needed - php for convert to string ? if pBinary > 0xFF then return false if pBinary >= 0x80 then return -(( pBinary ^ 0xFF)+1); else return pBinary end if end bin8dec thanks in advance for any help.. sqb On 17 March 2011 12:00, stephen barncard wrote: > This isn't that long a message but it appears I've pushed the limit. > THis is part one. > > Stephen Barncard San Francisco Ca. USA more about sqb From pderocco at ix.netcom.com Thu Mar 17 15:15:44 2011 From: pderocco at ix.netcom.com (Paul D. DeRocco) Date: Thu, 17 Mar 2011 12:15:44 -0700 Subject: signed 8 bit to "sign and magnitude" handler needed [PART ONE] In-Reply-To: Message-ID: <91EB985B58044563BF195614A551F652@PAULD> > From: stephen barncard > > Continuing on the "exporting aiff files from audioclips" > quest, I discovered that 'some' (about 10%) of the exported > files data would not play correctly. They sounded distorted > and loud at full scale. Digging in further, I discovered that > 8 bit AIFF files are not signed (due to their history), but > instead are ( I think ) "sign and magnitude" 8 bit. > > So I need to convert the data for just the 8 bit files. > > I know this is dumb ass simple, but I've been staring at > these numbers for too ling and need some fresh eyes. I am > *seeking a handler in Livecode* to convert numbers between > 0-255 (what I think is) two's compliment 8 bit to (what I > think is) "sign and magnitude" numbers between 0-255. > > that is, I need to convert a number series that looks like > below (word wrap is inevitable.) > > 00000000 80 7F 7F 7F 7E 7E 7E 7D 7D 7C 7C 7B 7B 7B 7A 7A > 00000010 79 79 78 78 78 78 78 77 77 77 77 77 77 77 77 77 > 00000020 77 78 78 78 78 79 7A 7A 7B 7B 7C 7D 7D 7E 7F 80 > 00000030 81 81 83 83 84 85 86 87 88 89 8A 8B 8C 8C 8C 8E > 00000040 8E 8F 90 90 90 91 91 91 92 91 91 91 92 91 91 90 > 00000050 90 90 8E 8E 8D 8C 8B 8A 89 88 87 85 84 83 81 80 > 00000060 7F 7D 7B 7A 79 77 76 75 73 72 71 6F 6F 6D 6C 6B > > (this is the same sine wave going above and below center in > both lists) > > to be converted to numbers that look like this: > > 00000000 00 FF FF FF FE FE FE FD FD FC FC FB FB FB FA FA > 00000010 F9 F9 F8 F8 F8 F8 F8 F7 F7 F7 F7 F7 F7 F7 F7 F7 > 00000020 F7 F8 F8 F8 F8 F9 FA FA FB FB FC FD FD FE FF 00 > 00000030 01 01 03 03 04 05 06 07 08 09 0A 0B 0C 0C 0C 0E > 00000040 0E 0F 10 10 10 11 11 11 12 11 11 11 12 11 11 10 > 00000050 10 10 0E 0E 0D 0C 0B 0A 09 08 07 05 04 03 01 00 > 00000060 FF FD FB FA F9 F7 F6 F5 F3 F2 F1 EF EF ED EC EB > > (this is a SSND chunk dump from an audio file that plays correctly.) > > (part two will show the PHP code I tried to convert but failed) Looks like offset binary to me, so x - 128 is the two's complement version. If you need to represent the latter as unsigned bytes, the easiest way is probably (x + 128) bitAnd 255. -- Ciao, Paul D. DeRocco Paul mailto:pderocco at ix.netcom.com From revmaillist at positivme.com Thu Mar 17 15:23:58 2011 From: revmaillist at positivme.com (Thunder) Date: Thu, 17 Mar 2011 12:23:58 -0700 (PDT) Subject: More regex madness In-Reply-To: <1590F215-69D6-4F68-AD9B-142D8FA21B4B@twft.com> References: <1590F215-69D6-4F68-AD9B-142D8FA21B4B@twft.com> Message-ID: <1300389838372-3385437.post@n4.nabble.com> Maybe this can be useful http://www.regular-expressions.info/regexmagic.html http://www.regular-expressions.info/regexmagic.html -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/More-regex-madness-tp3383412p3385437.html Sent from the Revolution - User mailing list archive at Nabble.com. From stephenREVOLUTION2 at barncard.com Thu Mar 17 15:41:08 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Thu, 17 Mar 2011 12:41:08 -0700 Subject: signed 8 bit to "sign and magnitude" handler needed [PART ONE] In-Reply-To: <91EB985B58044563BF195614A551F652@PAULD> References: <91EB985B58044563BF195614A551F652@PAULD> Message-ID: That's the magic formula. Looks like it could be fast too. Thanks, Paul... function bin8decU pBinary return (pBinary+ 0x80) bitAnd 0xFF end bin8decU function convertBlock pBlock repeat for each character tCH in pBlock put bin8decU(tCH) after tOut end repeat return tOut end convertBlock sqb On 17 March 2011 12:15, Paul D. DeRocco wrote: > > From: stephen barncard > > > > Continuing on the "exporting aiff files from audioclips" > > quest, I discovered that 'some' (about 10%) of the exported > > files data would not play correctly. They sounded distorted > > and loud at full scale. Digging in further, I discovered that > > 8 bit AIFF files are not signed (due to their history), but > > instead are ( I think ) "sign and magnitude" 8 bit. > > > > So I need to convert the data for just the 8 bit files. > > > > I know this is dumb ass simple, but I've been staring at > > these numbers for too ling and need some fresh eyes. I am > > *seeking a handler in Livecode* to convert numbers between > > 0-255 (what I think is) two's compliment 8 bit to (what I > > think is) "sign and magnitude" numbers between 0-255. > > > > that is, I need to convert a number series that looks like > > below (word wrap is inevitable.) > > > > 00000000 80 7F 7F 7F 7E 7E 7E 7D 7D 7C 7C 7B 7B 7B 7A 7A > > 00000010 79 79 78 78 78 78 78 77 77 77 77 77 77 77 77 77 > > 00000020 77 78 78 78 78 79 7A 7A 7B 7B 7C 7D 7D 7E 7F 80 > > 00000030 81 81 83 83 84 85 86 87 88 89 8A 8B 8C 8C 8C 8E > > 00000040 8E 8F 90 90 90 91 91 91 92 91 91 91 92 91 91 90 > > 00000050 90 90 8E 8E 8D 8C 8B 8A 89 88 87 85 84 83 81 80 > > 00000060 7F 7D 7B 7A 79 77 76 75 73 72 71 6F 6F 6D 6C 6B > > > > (this is the same sine wave going above and below center in > > both lists) > > > > to be converted to numbers that look like this: > > > > 00000000 00 FF FF FF FE FE FE FD FD FC FC FB FB FB FA FA > > 00000010 F9 F9 F8 F8 F8 F8 F8 F7 F7 F7 F7 F7 F7 F7 F7 F7 > > 00000020 F7 F8 F8 F8 F8 F9 FA FA FB FB FC FD FD FE FF 00 > > 00000030 01 01 03 03 04 05 06 07 08 09 0A 0B 0C 0C 0C 0E > > 00000040 0E 0F 10 10 10 11 11 11 12 11 11 11 12 11 11 10 > > 00000050 10 10 0E 0E 0D 0C 0B 0A 09 08 07 05 04 03 01 00 > > 00000060 FF FD FB FA F9 F7 F6 F5 F3 F2 F1 EF EF ED EC EB > > > > (this is a SSND chunk dump from an audio file that plays correctly.) > > > > (part two will show the PHP code I tried to convert but failed) > > Looks like offset binary to me, so x - 128 is the two's complement version. > If you need to represent the latter as unsigned bytes, the easiest way is > probably (x + 128) bitAnd 255. > > -- > > Ciao, Paul D. DeRocco > Paul mailto:pderocco at ix.netcom.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Stephen Barncard San Francisco Ca. USA more about sqb From revolution at derbrill.de Thu Mar 17 16:00:49 2011 From: revolution at derbrill.de (Malte Brill) Date: Thu, 17 Mar 2011 21:00:49 +0100 Subject: [TEASER] LiveCode <3 Facebook In-Reply-To: References: Message-ID: Andre!!!! You must really love her. Congrats man. > I was on my honeymoon and my wife mademe promise not take a computer there From jacque at hyperactivesw.com Thu Mar 17 16:01:43 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 17 Mar 2011 15:01:43 -0500 Subject: Android devices Message-ID: <4D8268A7.4090607@hyperactivesw.com> Is anyone else developing for Android yet? Does your device mount in debugging mode? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From mcgrath3 at mac.com Thu Mar 17 16:03:31 2011 From: mcgrath3 at mac.com (Thomas McGrath III) Date: Thu, 17 Mar 2011 16:03:31 -0400 Subject: [TEASER] LiveCode <3 Facebook In-Reply-To: <2D586F33-0A19-4E6B-9A4D-1A358B2470F5@economy-x-talk.com> References: <8DB26B94-10EA-4AA8-8050-8B7295B09833@mac.com> <2D586F33-0A19-4E6B-9A4D-1A358B2470F5@economy-x-talk.com> Message-ID: <4EF4366E-576E-4732-8738-E6CA3BAC0115@mac.com> Mark, I have a need for a few free apps to be able to access the FB. Do you have a canned solution? One that I can use in multiple apps? If so I can contact you off list. -- Tom McGrath III http://lazyriver.on-rev.com 3mcgrath at comcast.net On Mar 17, 2011, at 10:39 AM, Mark Schonewille wrote: > Hi Tom, > > If you have a real need for this, I do have a commercial solution for Facebook, which I can customise to meet your requirements. > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce > > On 17 mrt 2011, at 15:27, Thomas McGrath III wrote: > >> Andre, >> >> Any word on the OAuth2 Library progress? >> >> I have a need. >> >> >> -- Tom McGrath III >> http://lazyriver.on-rev.com >> 3mcgrath at comcast.net > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mcgrath3 at mac.com Thu Mar 17 16:18:19 2011 From: mcgrath3 at mac.com (Thomas McGrath III) Date: Thu, 17 Mar 2011 16:18:19 -0400 Subject: [TEASER] LiveCode <3 Facebook In-Reply-To: References: <8DB26B94-10EA-4AA8-8050-8B7295B09833@mac.com> Message-ID: Well, that's no excuse!!! What are we coming to when we can't bring our computers on our honeymoons??? That's it. I'm not getting married again. Once this one is done I'm not upgrading. -- Tom McGrath III http://lazyriver.on-rev.com 3mcgrath at comcast.net On Mar 17, 2011, at 1:54 PM, Andre Garzia wrote: >> >> > Tom, > > Haven't touched the library because I was on my honeymoon and my wife made > me promise not take a computer there. Now that I am back, I plan to develop > it further and release soon. Mark has a commercial offering, might solve > your needs faster since I still need to iron out some bugs. > > Andre > From runrevplanet at smpcs.server101.com Thu Mar 17 17:21:47 2011 From: runrevplanet at smpcs.server101.com (Scott McDonald) Date: Thu, 17 Mar 2011 14:21:47 -0700 (PDT) Subject: Writing Externals in Pascal? In-Reply-To: <12795017453.20110310214236@ahsoftware.net> References: <4C319CAA.5050801@smpcs.server101.com> <1278349562223-2278631.post@n4.nabble.com> <4CFE9095-138A-4EC5-A9AA-2AEABD4E2393@gmail.com> <1299806989471-3347233.post@n4.nabble.com> <12795017453.20110310214236@ahsoftware.net> Message-ID: <1300396907702-3385678.post@n4.nabble.com> Hi, For anyone who filters out the announcements on this list, you may like to know that the Pascal SDK for making LiveCode Externals is now available. ----- -- Scott McDonald "Components, Controls, Tools and Resources for LiveCode" www.runrevplanet.com -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Writing-Externals-in-Pascal-tp2278157p3385678.html Sent from the Revolution - User mailing list archive at Nabble.com. From mcgrath3 at mac.com Thu Mar 17 18:19:03 2011 From: mcgrath3 at mac.com (Thomas McGrath III) Date: Thu, 17 Mar 2011 18:19:03 -0400 Subject: [ANN] Update to UINavigationBar Kit Message-ID: <488777B0-318C-4F56-9ED2-B1E1EFC856F5@mac.com> Just a minor update to the Android resizeStack scripts and new customProps for the UINavBarTitle drop shadow properties: UINavBarTextShadowColor tColor UINavBarTextShadowOpacity tOpacity UINavBarTextShadowDistance tDistance UINavBarTextShadowAngle tAngle This will make it easier to match the different drop shadows on the iPad and Retina devices. User: Thomas McGrath III Stack: iOS UINavigationBar Kit V1.4.4 Enjoy, -- Tom McGrath III http://lazyriver.on-rev.com 3mcgrath at comcast.net From mwieder at ahsoftware.net Thu Mar 17 21:15:13 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 17 Mar 2011 18:15:13 -0700 Subject: Writing Externals in Pascal? In-Reply-To: <1300396907702-3385678.post@n4.nabble.com> References: <4C319CAA.5050801@smpcs.server101.com> <1278349562223-2278631.post@n4.nabble.com> <4CFE9095-138A-4EC5-A9AA-2AEABD4E2393@gmail.com> <1299806989471-3347233.post@n4.nabble.com> <12795017453.20110310214236@ahsoftware.net> <1300396907702-3385678.post@n4.nabble.com> Message-ID: <174683774468.20110317181513@ahsoftware.net> Scott- Thursday, March 17, 2011, 2:21:47 PM, you wrote: > For anyone who filters out the announcements on this list, you may like to > know that the Pascal SDK for making LiveCode Externals is now available. ! Downloaded. Haven't had a chance to look at it yet, but thanks in advance. -- -Mark Wieder mwieder at ahsoftware.net From bonnmike at gmail.com Thu Mar 17 21:50:04 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 17 Mar 2011 19:50:04 -0600 Subject: Writing Externals in Pascal? In-Reply-To: <174683774468.20110317181513@ahsoftware.net> References: <4C319CAA.5050801@smpcs.server101.com> <1278349562223-2278631.post@n4.nabble.com> <4CFE9095-138A-4EC5-A9AA-2AEABD4E2393@gmail.com> <1299806989471-3347233.post@n4.nabble.com> <12795017453.20110310214236@ahsoftware.net> <1300396907702-3385678.post@n4.nabble.com> <174683774468.20110317181513@ahsoftware.net> Message-ID: Ok, thats cool. Modified the template very slightly, compiled, and it works! Now I have to learn pascal! Thx much, will have fun messing around with this. On Thu, Mar 17, 2011 at 7:15 PM, Mark Wieder wrote: > Scott- > > Thursday, March 17, 2011, 2:21:47 PM, you wrote: > > > For anyone who filters out the announcements on this list, you may like > to > > know that the Pascal SDK for making LiveCode Externals is now available. > > ! Downloaded. Haven't had a chance to look at it yet, but thanks in > advance. > > -- > -Mark Wieder > mwieder at ahsoftware.net > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From warren at warrensweb.us Thu Mar 17 21:57:15 2011 From: warren at warrensweb.us (Warren Samples) Date: Thu, 17 Mar 2011 20:57:15 -0500 Subject: mySQL and defaults In-Reply-To: <7B3BF7B9-455A-4A94-9A57-011080E5DACE@twft.com> References: <201103171251.42006.warren@warrensweb.us> <7B3BF7B9-455A-4A94-9A57-011080E5DACE@twft.com> Message-ID: <201103172057.15640.warren@warrensweb.us> On Thursday, March 17, 2011 02:00:41 PM Bob Sneidar wrote: > Oh thanks Warren! That will work famously! Unfortunately I just finished > the code that strips all the DEFAULT parameters from all text column > definitions LOL! I guess it's back to work undoing my last undo. Still, > nice to know it can be done. > > Bob Hi Bob, I just tried this myself and find that the NOT NULL doesn't seem to have been the key since this works, too: mysql> CREATE TABLE myTable(ID SMALLINT UNSIGNED NOT NULL,City VARCHAR(40) DEFAULT 'Unknown'); Query OK, 0 rows affected (0.04 sec) So, perhaps there was some other error in your query? Punctuation and spelling are the usual suspects ;) Best, Warren From stephenREVOLUTION2 at barncard.com Thu Mar 17 23:09:14 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Thu, 17 Mar 2011 20:09:14 -0700 Subject: mySQL and defaults In-Reply-To: <201103172057.15640.warren@warrensweb.us> References: <201103171251.42006.warren@warrensweb.us> <7B3BF7B9-455A-4A94-9A57-011080E5DACE@twft.com> <201103172057.15640.warren@warrensweb.us> Message-ID: Sometimes invisible characters can creep in when cutting and pasting from scripts. BBEdit's 'Zap Gremlins' or Tex-Edit 'Clean Up Document' commands can fix. just a thought. it's happened to me. On 17 March 2011 18:57, Warren Samples wrote: > > Hi Bob, > > I just tried this myself and find that the NOT NULL doesn't seem to have > been > the key since this works, too: > > mysql> CREATE TABLE myTable(ID SMALLINT UNSIGNED NOT NULL,City VARCHAR(40) > DEFAULT 'Unknown'); > > Query OK, 0 rows affected (0.04 sec) > > So, perhaps there was some other error in your query? Punctuation and > spelling > are the usual suspects ;) > > Best, > > Warren > Stephen Barncard San Francisco Ca. USA more about sqb From chipp at chipp.com Thu Mar 17 23:50:24 2011 From: chipp at chipp.com (Chipp Walters) Date: Thu, 17 Mar 2011 22:50:24 -0500 Subject: URLencode bug? Message-ID: I am trying to URLencode some data and for some reason it won't encode. Can anyone else get this to encode? It's a simple text field with no funny chars. Here's a test: (put in msg box and hit return) go URL "http://www.widgetgadget.com/stuff/URLencodeBug.livecode" For some reason it CAN URLencode the first 3111 chars, but barfs on any past there. Is there a char limit to what URLencode works on? TIA, C -- Chipp Walters CEO, Shafer Walters Group, Inc. From bonnmike at gmail.com Fri Mar 18 00:44:55 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 17 Mar 2011 22:44:55 -0600 Subject: URLencode bug? In-Reply-To: References: Message-ID: I ran into this earlier and tried to ask about it, but wasn't very clear. When you urlEncode the field it turns it into one huge unbroken line, and certain lengths of unbroken lines cause fields some problems it seems. The line length you get from the urlEncode is within the accepted limits according to docs, but something seems broken in fields. To see this in action, try this stack.. Click add data several times till the line length gets to 14700 and poof. Only the overflow shows. I didn't bother to find the exact breakover point, but there it is. Also, behavior varies with line wrap on and off. With line wrap off, things poof when you get to to 8400 line length, but the overflow never shows. So my feeling is its a field problem, not an encode problem. go URL "http://guidezone.info/FieldBug.livecode" On Thu, Mar 17, 2011 at 9:50 PM, Chipp Walters wrote: > I am trying to URLencode some data and for some reason it won't encode. > > Can anyone else get this to encode? It's a simple text field with no funny > chars. > > Here's a test: (put in msg box and hit return) > go URL "http://www.widgetgadget.com/stuff/URLencodeBug.livecode" > > For some reason it CAN URLencode the first 3111 chars, but barfs on any > past > there. Is there a char limit to what URLencode works on? > > TIA, > C > > -- > Chipp Walters > CEO, Shafer Walters Group, Inc. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bonnmike at gmail.com Fri Mar 18 00:48:18 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 17 Mar 2011 22:48:18 -0600 Subject: URLencode bug? In-Reply-To: References: Message-ID: Oh, and if you just keep adding data up to the max limit on like length, every breakover point the field resets and shows only the new stuff after the break. (or if wrap is off, it just never shows anything again) I forget where the limit is on wrapped lines, things might be behaving correctly, but the complete disappearance when wrap is off is surely not correct. On Thu, Mar 17, 2011 at 10:44 PM, Mike Bonner wrote: > I ran into this earlier and tried to ask about it, but wasn't very clear. > When you urlEncode the field it turns it into one huge unbroken line, and > certain lengths of unbroken lines cause fields some problems it seems. The > line length you get from the urlEncode is within the accepted limits > according to docs, but something seems broken in fields. To see this in > action, try this stack.. Click add data several times till the line length > gets to 14700 and poof. Only the overflow shows. I didn't bother to find > the exact breakover point, but there it is. Also, behavior varies with line > wrap on and off. With line wrap off, things poof when you get to to 8400 > line length, but the overflow never shows. So my feeling is its a field > problem, not an encode problem. > > go URL "http://guidezone.info/FieldBug.livecode" > > > > On Thu, Mar 17, 2011 at 9:50 PM, Chipp Walters wrote: > >> I am trying to URLencode some data and for some reason it won't encode. >> >> Can anyone else get this to encode? It's a simple text field with no funny >> chars. >> >> Here's a test: (put in msg box and hit return) >> go URL "http://www.widgetgadget.com/stuff/URLencodeBug.livecode" >> >> For some reason it CAN URLencode the first 3111 chars, but barfs on any >> past >> there. Is there a char limit to what URLencode works on? >> >> TIA, >> C >> >> -- >> Chipp Walters >> CEO, Shafer Walters Group, Inc. >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From stephenREVOLUTION2 at barncard.com Fri Mar 18 00:50:23 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Thu, 17 Mar 2011 21:50:23 -0700 Subject: URLencode bug? In-Reply-To: References: Message-ID: I think URL Encode seems to ignore linefeeds and/or returns in its midst, so an occasional line break or cr should break up the line limit problems. On 17 March 2011 21:44, Mike Bonner wrote: > I ran into this earlier and tried to ask about it, but wasn't very clear. > When you urlEncode the field it turns it into one huge unbroken line, and > certain lengths of unbroken lines cause fields some problems it seems. The > line length you get from the urlEncode is within the accepted limits > according to docs, but something seems broken in fields. To see this in > action, try this stack.. Click add data several times till the line length > gets to 14700 and poof. Only the overflow shows. I didn't bother to find > the exact breakover point, but there it is. Also, behavior varies with line > wrap on and off. With line wrap off, things poof when you get to to 8400 > line length, but the overflow never shows. So my feeling is its a field > problem, not an encode problem. > > go URL "http://guidezone.info/FieldBug.livecode" > > > > On Thu, Mar 17, 2011 at 9:50 PM, Chipp Walters wrote: > > > I am trying to URLencode some data and for some reason it won't encode. > > > > Can anyone else get this to encode? It's a simple text field with no > funny > > chars. > > > > Here's a test: (put in msg box and hit return) > > go URL "http://www.widgetgadget.com/stuff/URLencodeBug.livecode" > > > > For some reason it CAN URLencode the first 3111 chars, but barfs on any > > past > > there. Is there a char limit to what URLencode works on? > > > > TIA, > > C > > > > -- > > Chipp Walters > > CEO, Shafer Walters Group, Inc. > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Stephen Barncard San Francisco Ca. USA more about sqb From chipp at chipp.com Fri Mar 18 02:18:47 2011 From: chipp at chipp.com (Chipp Walters) Date: Fri, 18 Mar 2011 01:18:47 -0500 Subject: URLencode bug? In-Reply-To: References: Message-ID: That makes sense. Thanks! On Thu, Mar 17, 2011 at 11:44 PM, Mike Bonner wrote: > I ran into this earlier and tried to ask about it, but wasn't very clear. > When you urlEncode the field it turns it into one huge unbroken line, and > certain lengths of unbroken lines cause fields some problems it seems. The > line length you get from the urlEncode is within the accepted limits > according to docs, but something seems broken in fields. To see this in > action, try this stack.. Click add data several times till the line length > gets to 14700 and poof. Only the overflow shows. I didn't bother to find > the exact breakover point, but there it is. Also, behavior varies with line > wrap on and off. With line wrap off, things poof when you get to to 8400 > line length, but the overflow never shows. So my feeling is its a field > problem, not an encode problem. > > go URL "http://guidezone.info/FieldBug.livecode" > > > > On Thu, Mar 17, 2011 at 9:50 PM, Chipp Walters wrote: > > > I am trying to URLencode some data and for some reason it won't encode. > > > > Can anyone else get this to encode? It's a simple text field with no > funny > > chars. > > > > Here's a test: (put in msg box and hit return) > > go URL "http://www.widgetgadget.com/stuff/URLencodeBug.livecode" > > > > For some reason it CAN URLencode the first 3111 chars, but barfs on any > > past > > there. Is there a char limit to what URLencode works on? > > > > TIA, > > C > > > > -- > > Chipp Walters > > CEO, Shafer Walters Group, Inc. > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Chipp Walters CEO, Shafer Walters Group, Inc. From chipp at chipp.com Fri Mar 18 02:19:09 2011 From: chipp at chipp.com (Chipp Walters) Date: Fri, 18 Mar 2011 01:19:09 -0500 Subject: URLencode bug? In-Reply-To: References: Message-ID: For my app, the cr's screw it up. Thanks anyway. On Thu, Mar 17, 2011 at 11:50 PM, stephen barncard < stephenREVOLUTION2 at barncard.com> wrote: > I think URL Encode seems to ignore linefeeds and/or returns in its midst, > so > an occasional line break or cr should break up the line limit problems. > > On 17 March 2011 21:44, Mike Bonner wrote: > > > I ran into this earlier and tried to ask about it, but wasn't very clear. > > When you urlEncode the field it turns it into one huge unbroken line, > and > > certain lengths of unbroken lines cause fields some problems it seems. > The > > line length you get from the urlEncode is within the accepted limits > > according to docs, but something seems broken in fields. To see this in > > action, try this stack.. Click add data several times till the line > length > > gets to 14700 and poof. Only the overflow shows. I didn't bother to > find > > the exact breakover point, but there it is. Also, behavior varies with > line > > wrap on and off. With line wrap off, things poof when you get to to 8400 > > line length, but the overflow never shows. So my feeling is its a field > > problem, not an encode problem. > > > > go URL "http://guidezone.info/FieldBug.livecode" > > > > > > > > On Thu, Mar 17, 2011 at 9:50 PM, Chipp Walters wrote: > > > > > I am trying to URLencode some data and for some reason it won't encode. > > > > > > Can anyone else get this to encode? It's a simple text field with no > > funny > > > chars. > > > > > > Here's a test: (put in msg box and hit return) > > > go URL "http://www.widgetgadget.com/stuff/URLencodeBug.livecode" > > > > > > For some reason it CAN URLencode the first 3111 chars, but barfs on any > > > past > > > there. Is there a char limit to what URLencode works on? > > > > > > TIA, > > > C > > > > > > -- > > > Chipp Walters > > > CEO, Shafer Walters Group, Inc. > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at lists.runrev.com > > > Please visit this url to subscribe, unsubscribe and manage your > > > subscription preferences: > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > -- > > > > Stephen Barncard > San Francisco Ca. USA > > more about sqb > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Chipp Walters CEO, Shafer Walters Group, Inc. From runrevplanet at smpcs.server101.com Fri Mar 18 02:44:26 2011 From: runrevplanet at smpcs.server101.com (Scott McDonald) Date: Thu, 17 Mar 2011 23:44:26 -0700 (PDT) Subject: Writing Externals in Pascal? In-Reply-To: References: <4C319CAA.5050801@smpcs.server101.com> <1278349562223-2278631.post@n4.nabble.com> <4CFE9095-138A-4EC5-A9AA-2AEABD4E2393@gmail.com> <1299806989471-3347233.post@n4.nabble.com> <12795017453.20110310214236@ahsoftware.net> <1300396907702-3385678.post@n4.nabble.com> <174683774468.20110317181513@ahsoftware.net> Message-ID: <1300430666738-3386394.post@n4.nabble.com> Mike, Pleased to hear that it compiled for you. (Hope the modification wasn't one necessary to get it to compile?) One of my goals, is to make sure it compiles and works for anyone straight "out of the box". (Assuming FPC is installed and works.) Learning Pascal isn't too hard. As a relatively old and unfashionable language means it is often easy to pick up good texts for not much money from second-hand book sellers. Mark, Look forward to any feedback, when you get the time. ----- -- Scott McDonald "Components, Controls, Tools and Resources for LiveCode" www.runrevplanet.com -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Writing-Externals-in-Pascal-tp2278157p3386394.html Sent from the Revolution - User mailing list archive at Nabble.com. From stephenREVOLUTION2 at barncard.com Fri Mar 18 03:05:24 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Fri, 18 Mar 2011 00:05:24 -0700 Subject: URLencode bug? In-Reply-To: References: Message-ID: Ah, but you can use them for storage Great way to preserve small blocks of data. FUNCTION libFile_HXEncode pData put base64encode(pData) into tData replace return with linefeed in tData return tData END libFile_HXEncode FUNCTION libFile_HXDecode pData replace linefeed with return with tData put base64decode(pData) into tData return tData END libFile_HXDecode Base64Encode after using URLEncode can be an almost bulletproof way to store data in situ. one can create medium sized, neat readable blocks of data in your script that look like formatted object code blocks. The data could be exact htmlText that you want with placeholders encoded in. Or "perfect" MySQL calls with the 'right' punctuation. /* BASE64Encoded: SELECT dm.Device_Number, dm.id FROM ( DEVICES_Main_R AS dm INNER JOIN Devices_Types AS devABBRV ON dm.Device_Abbrev=devABBRV.id ) WHERE devABBRV.Device_Abbrev LIKE '' ; */ get \ "U0VMRUNUCiAgZG0uRGV2aWNlX051bWJlciwKICBkbS5pZAogIEZST00gKCAgREVWSUNFU19N" &\ "YWluX1IgQVMgZG0KICAgICAgSU5ORVIgSk9JTiAgRGV2aWNlc19UeXBlcyBBUyBkZXZBQkJS" &\ "ViBPTiBkbS5EZXZpY2VfQWJicmV2PWRldkFCQlJWLmlkICkKV0hFUkUgZGV2QUJCUlYuRGV2" &\ "aWNlX0FiYnJldiBMSUtFICc8ZGV2aWNlQWJicmV2PicgOw==" put base64decode(it) into tSQL Nicer for some things over custom properties because you can keep all the data and code in the same place. Not easy to hand code this but easy to make a code builder in rev. I will include some comment english text explaining what it is. On 17 March 2011 23:19, Chipp Walters wrote: > For my app, the cr's screw it up. Thanks anyway. > Stephen Barncard San Francisco Ca. USA more about sqb From chipp at altuit.com Fri Mar 18 04:20:29 2011 From: chipp at altuit.com (Chipp Walters) Date: Fri, 18 Mar 2011 03:20:29 -0500 Subject: URLencode bug? In-Reply-To: References: Message-ID: I wrote out the URLencoded text to a txt file and was able to open it in Notepad and see it was all there. The Google API I was using kept throwing errors, which led me down some path confusing me whether or not the data was really URLencoded. After a bit of needed error checking, and changing to posting vs getting, things are working fine. Yep, years ago I wrote a stack sharing library for Rev which passed back and forth via a server any changes made to stacks, thus allowing multiple people in remote locations to work on the same stack at the same time, and used the base64encode trick you mention to encode all meta data for all controls and their properties. Worked well. Chipp Walters CEO, Shafer Walters Group, Inc On Mar 18, 2011, at 2:05 AM, stephen barncard wrote: > Ah, but you can use them for storage Great way to preserve small blocks of > data. > FUNCTION libFile_HXEncode pData > put base64encode(pData) into tData > replace return with linefeed in tData > return tData > END libFile_HXEncode > > FUNCTION libFile_HXDecode pData > replace linefeed with return with tData > put base64decode(pData) into tData > return tData > END libFile_HXDecode > > Base64Encode after using URLEncode can be an almost bulletproof way to > store data in situ. > one can create medium sized, neat readable blocks of data in your script > that look like formatted object code blocks. > The data could be exact htmlText that you want with placeholders encoded in. > Or "perfect" MySQL calls with the 'right' punctuation. > > /* > > BASE64Encoded: > > SELECT > > dm.Device_Number, > > dm.id > > FROM ( DEVICES_Main_R AS dm > > INNER JOIN Devices_Types AS devABBRV ON dm.Device_Abbrev=devABBRV.id ) > > WHERE devABBRV.Device_Abbrev LIKE '' ; > > */ > > > get \ > > > "U0VMRUNUCiAgZG0uRGV2aWNlX051bWJlciwKICBkbS5pZAogIEZST00gKCAgREVWSUNFU19N" > &\ > > > "YWluX1IgQVMgZG0KICAgICAgSU5ORVIgSk9JTiAgRGV2aWNlc19UeXBlcyBBUyBkZXZBQkJS" > &\ > > > "ViBPTiBkbS5EZXZpY2VfQWJicmV2PWRldkFCQlJWLmlkICkKV0hFUkUgZGV2QUJCUlYuRGV2" > &\ > > "aWNlX0FiYnJldiBMSUtFICc8ZGV2aWNlQWJicmV2PicgOw==" > > put base64decode(it) into tSQL > > > > Nicer for some things over custom properties because you can keep all the > data and code in the same place. Not easy to hand code this but easy to > make a code builder in rev. I will include some comment english text > explaining what it is. > > On 17 March 2011 23:19, Chipp Walters wrote: > >> For my app, the cr's screw it up. Thanks anyway. >> > > Stephen Barncard > San Francisco Ca. USA > > more about sqb > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From keith.clarke at clarkeandclarke.co.uk Fri Mar 18 08:38:36 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Fri, 18 Mar 2011 12:38:36 +0000 Subject: Presenting with LiveCode instead of PowerPoint/Keynote Message-ID: Hi folks, Given LiveCode's multimedia power, I want to move from presenting purely conceptual ideas in PowerPoint/Keynote to using LiveCode as - a container for concepts together with real moving parts from my evolving application as development progresses. I'm thinking more along the lines of some of the RunRev Live 09 session than a full-blown, full self-running 'kiosk' experience. Are there any tutorials, example stacks or resources to help get started in the right way - or is this an area where everyone tends to create their own personal tool-belt from scratch? Best, Keith.. From m.schonewille at economy-x-talk.com Fri Mar 18 08:56:55 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Fri, 18 Mar 2011 13:56:55 +0100 Subject: Live LiveCode Event #15 Message-ID: Dear folks, I'm happy to announce another Live LiveCode Code Event with two interesting presentations tomorrow. This weekend's event is scheduled for Saturday, 19 March 2011 at 19:00h GMT (Sat. 22:00 in Moscow, Sat. 20:00 in Paris, Sat. 14:00 in New York, Sat. 11:00 in Los Angeles, Sun. 04:00 in Tokyo, Sun. 3:00 in Beijing). It will be the 14th edition of the Live LiveCode Event. Jim will demonstrate some methods of rapidly converting images to create many kinds of moods and styles, how to view and learn from the many scripts in Seamless Tiles for image handling techniques and how to create and document a library of unique images that can make your stacks and web sites beautiful. Tom will be demonstrating his iOS UINavigationBar in both LiveCode and the simulator. He will also demonstrate a couple of ways to handle device resolution, orientation and how to do a one-app many-device deployment. eHUG will be raffling off the e-book "Take Control of Working with Your iPad" courtesy of TidBITS, http://www.tidbits.com/ . During the event, Economy-x-Talk offers a 25% discount on their Installer Maker, which can be found at http://installermaker.economy-x-talk.com . A license at 25% discount can be obtained at http://livetalk.us/im . Make sure to use ChatRev during the happening, otherwise you won't know where to watch the streams, which will be announced in ChatRev. Download ChatRev here: http://bjoernke.com?target=chatrev or enter in the message box: go stack URL "http://bjoernke.com/chatrev/chatrev1.3b3.rev" See also the following page for the same information (soon): Http://livecode.tv Kind regards, Mark -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce From baccheschi at tin.it Fri Mar 18 10:12:03 2011 From: baccheschi at tin.it (baccheschi at tin.it) Date: Fri, 18 Mar 2011 15:12:03 +0100 (CET) Subject: R: LC-using Educators Message-ID: <12ec94f0864.baccheschi@tin.it> ----Messaggio originale---- Da: jperryl at ecs.fullerton.edu Data: 17- mar-2011 0.54 A: Ogg: LC-using Educators I'm in a bit of a pickle... can LC-using educators please contact me off-list? TIA, Judy _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode Hi Judy may i help You ? mario From bobs at twft.com Fri Mar 18 12:02:15 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 18 Mar 2011 09:02:15 -0700 Subject: mySQL and defaults In-Reply-To: <201103172057.15640.warren@warrensweb.us> References: <201103171251.42006.warren@warrensweb.us> <7B3BF7B9-455A-4A94-9A57-011080E5DACE@twft.com> <201103172057.15640.warren@warrensweb.us> Message-ID: <6998F6EF-4F61-40B8-9919-AB7F713B908E@twft.com> Right sorry I discovered this last night too. I think the problem was the Sequel Quotes. For some reason I was replacing not only double quotes with ` but single ones too. Trouble is, you cannot wrap default values in `. Also, the reference manual says that text types did not support DEFAULT. I assumed (much to my chagrin) that varchar was a text type. I found that a quick way to tell if my sequel is good is to step through the code until I have my statement, then copy the sequel fom the variable browser into the query editor in MySQLWorkbench. It will put a red X at the first line that has bad syntax. Very handy for troubleshooting Sequel, especially since when I build my Sequel, I try to isolate each statement on it's own line. Bob On Mar 17, 2011, at 6:57 PM, Warren Samples wrote: > On Thursday, March 17, 2011 02:00:41 PM Bob Sneidar wrote: >> Oh thanks Warren! That will work famously! Unfortunately I just finished >> the code that strips all the DEFAULT parameters from all text column >> definitions LOL! I guess it's back to work undoing my last undo. Still, >> nice to know it can be done. >> >> Bob > > > Hi Bob, > > I just tried this myself and find that the NOT NULL doesn't seem to have been > the key since this works, too: > > mysql> CREATE TABLE myTable(ID SMALLINT UNSIGNED NOT NULL,City VARCHAR(40) > DEFAULT 'Unknown'); > > Query OK, 0 rows affected (0.04 sec) > > So, perhaps there was some other error in your query? Punctuation and spelling > are the usual suspects ;) > > Best, > > Warren > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Fri Mar 18 12:05:10 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 18 Mar 2011 11:05:10 -0500 Subject: Presenting with LiveCode instead of PowerPoint/Keynote In-Reply-To: References: Message-ID: <4D8382B6.3000802@hyperactivesw.com> On 3/18/11 7:38 AM, Keith Clarke wrote: > Hi folks, Given LiveCode's multimedia power, I want to move from > presenting purely conceptual ideas in PowerPoint/Keynote to using > LiveCode as - a container for concepts together with real moving > parts from my evolving application as development progresses. > > I'm thinking more along the lines of some of the RunRev Live 09 > session than a full-blown, full self-running 'kiosk' experience. > > Are there any tutorials, example stacks or resources to help get > started in the right way - or is this an area where everyone tends to > create their own personal tool-belt from scratch? It's so dead-simple that I don't think it needs a tutorial. You just create one card per "slide" and then add a "go next" button or a handler to catch a keystroke that goes to the next card. That's about it. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobs at twft.com Fri Mar 18 12:06:09 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 18 Mar 2011 09:06:09 -0700 Subject: URLencode bug? In-Reply-To: References: Message-ID: <96BD8AF5-405B-4DCC-81AF-8BF9F86BA2AC@twft.com> Hi Chipp. Any chance that stack still works? That is a great idea. Bob On Mar 18, 2011, at 1:20 AM, Chipp Walters wrote: > Yep, years ago I wrote a stack sharing library for Rev which passed back and forth via a server any changes made to stacks, thus allowing multiple people in remote locations to work on the same stack at the same time, and used the base64encode trick you mention to encode all meta data for all controls and their properties. Worked well. > > Chipp Walters > CEO, Shafer Walters Group, Inc From bvg at mac.com Fri Mar 18 12:21:13 2011 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Fri, 18 Mar 2011 17:21:13 +0100 Subject: Presenting with LiveCode instead of PowerPoint/Keynote In-Reply-To: <4D8382B6.3000802@hyperactivesw.com> References: <4D8382B6.3000802@hyperactivesw.com> Message-ID: <7BFB1319-D757-45B0-97BB-FE84DC62336D@mac.com> It's even easier then that: set the navigationArrows to true Note that the documentation says it's true by default. that is wrong for the ide where they're disabled by default (but it is true in standalones). On 18 Mar 2011, at 17:05, J. Landman Gay wrote: > On 3/18/11 7:38 AM, Keith Clarke wrote: >> Hi folks, Given LiveCode's multimedia power, I want to move from >> presenting purely conceptual ideas in PowerPoint/Keynote to using >> LiveCode as - a container for concepts together with real moving >> parts from my evolving application as development progresses. >> >> I'm thinking more along the lines of some of the RunRev Live 09 >> session than a full-blown, full self-running 'kiosk' experience. >> >> Are there any tutorials, example stacks or resources to help get >> started in the right way - or is this an area where everyone tends to >> create their own personal tool-belt from scratch? > > > It's so dead-simple that I don't think it needs a tutorial. You just create one card per "slide" and then add a "go next" button or a handler to catch a keystroke that goes to the next card. That's about it. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From m.schonewille at economy-x-talk.com Fri Mar 18 12:43:30 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Fri, 18 Mar 2011 17:43:30 +0100 Subject: Live LiveCode Event #15 - corrected times! Message-ID: <5D82EED9-43E8-44C7-8472-F3D7B9EBCDEC@economy-x-talk.com> Dear folks, I'm happy to announce another Live LiveCode Code Event with two interesting presentations tomorrow. This weekend's event is scheduled for Saturday, 19 March 2011 at 19:00h GMT (Sat. 22:00 in Moscow, Sat. 20:00 in Paris, Sat. 15:00 in New York, Sat. 12:00 in Los Angeles, Sun. 04:00 in Tokyo, Sun. 3:00 in Beijing). It will be the 14th edition of the Live LiveCode Event. Jim will demonstrate some methods of rapidly converting images to create many kinds of moods and styles, how to view and learn from the many scripts in Seamless Tiles for image handling techniques and how to create and document a library of unique images that can make your stacks and web sites beautiful. Tom will be demonstrating his iOS UINavigationBar in both LiveCode and the simulator. He will also demonstrate a couple of ways to handle device resolution, orientation and how to do a one-app many-device deployment. eHUG will be raffling off the e-book "Take Control of Working with Your iPad" courtesy of TidBITS, http://www.tidbits.com/ . During the event, Economy-x-Talk offers a 25% discount on their Installer Maker, which can be found at http://installermaker.economy-x-talk.com . A license at 25% discount can be obtained at http://livetalk.us/im . Make sure to use ChatRev during the happening, otherwise you won't know where to watch the streams, which will be announced in ChatRev. Download ChatRev here: http://bjoernke.com?target=chatrev or enter in the message box: go stack URL "http://bjoernke.com/chatrev/chatrev1.3b3.rev" See also the following page for the same information (soon): Http://livecode.tv Kind regards, Mark -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce From keith.clarke at clarkeandclarke.co.uk Fri Mar 18 14:17:54 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Fri, 18 Mar 2011 18:17:54 +0000 Subject: Presenting with LiveCode instead of PowerPoint/Keynote In-Reply-To: <7BFB1319-D757-45B0-97BB-FE84DC62336D@mac.com> References: <4D8382B6.3000802@hyperactivesw.com> <7BFB1319-D757-45B0-97BB-FE84DC62336D@mac.com> Message-ID: <1832A88C-085D-4B4F-AED3-7512C52E5526@clarkeandclarke.co.uk> OK, thanks. I suspected the approach would be DIY (do it yourself) - I don't need to waste any time looking for pre-cooked answers and can just dive in ;-) Bjoernke - thanks for the arrow key navigation tip. On 18 Mar 2011, at 16:21, Bj?rnke von Gierke wrote: > It's even easier then that: > > set the navigationArrows to true > > Note that the documentation says it's true by default. that is wrong for the ide where they're disabled by default (but it is true in standalones). > > On 18 Mar 2011, at 17:05, J. Landman Gay wrote: > >> On 3/18/11 7:38 AM, Keith Clarke wrote: >>> Hi folks, Given LiveCode's multimedia power, I want to move from >>> presenting purely conceptual ideas in PowerPoint/Keynote to using >>> LiveCode as - a container for concepts together with real moving >>> parts from my evolving application as development progresses. >>> >>> I'm thinking more along the lines of some of the RunRev Live 09 >>> session than a full-blown, full self-running 'kiosk' experience. >>> >>> Are there any tutorials, example stacks or resources to help get >>> started in the right way - or is this an area where everyone tends to >>> create their own personal tool-belt from scratch? >> >> >> It's so dead-simple that I don't think it needs a tutorial. You just create one card per "slide" and then add a "go next" button or a handler to catch a keystroke that goes to the next card. That's about it. >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From stephenREVOLUTION2 at barncard.com Fri Mar 18 15:06:25 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Fri, 18 Mar 2011 12:06:25 -0700 Subject: Presenting with LiveCode instead of PowerPoint/Keynote In-Reply-To: References: Message-ID: Kevin Miller, the ceo, was spotted at a Revcon a couple of years ago using his own home-made presentation stack. Perfect for Livecode presentations about Livecode, as the engine is always there to demonstrate within. On 18 March 2011 05:38, Keith Clarke wrote: > Hi folks, > Given LiveCode's multimedia power, I want to move from presenting purely > conceptual ideas in PowerPoint/Keynote to using LiveCode as - a container > for concepts together with real moving parts from my evolving application as > development progresses. > > I'm thinking more along the lines of some of the RunRev Live 09 session > than a full-blown, full self-running 'kiosk' experience. > > Are there any tutorials, example stacks or resources to help get started in > the right way - or is this an area where everyone tends to create their own > personal tool-belt from scratch? > Best, > Keith.. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Stephen Barncard San Francisco Ca. USA more about sqb From richmondmathewson at gmail.com Fri Mar 18 15:15:33 2011 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 18 Mar 2011 21:15:33 +0200 Subject: Presenting with LiveCode instead of PowerPoint/Keynote In-Reply-To: References: Message-ID: <4D83AF55.2060407@gmail.com> Every time my wife goes off on one of her Linguistics conferences I cobble together her a presentation in Livecode; the best way seems to be to "steal" the navigator from Metacard. Richmond. From jacque at hyperactivesw.com Fri Mar 18 15:18:09 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 18 Mar 2011 14:18:09 -0500 Subject: Presenting with LiveCode instead of PowerPoint/Keynote In-Reply-To: References: Message-ID: <4D83AFF1.4000504@hyperactivesw.com> On 3/18/11 2:06 PM, stephen barncard wrote: > Kevin Miller, the ceo, was spotted at a Revcon a couple of years ago using > his own home-made presentation stack. Yup. And in fact, almost all the conference presentations have been home-made stacks, and for more recent conferences RR has been sending out template stacks so everyone's presentations will be more consistent. It's still just basically "go next" or arrow keys though. And I suspect if any presenter showed up with a Powerpoint presentation at a RevLive conference, they'd be ridiculed. :) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From form at nonsanity.com Fri Mar 18 15:19:11 2011 From: form at nonsanity.com (Nonsanity) Date: Fri, 18 Mar 2011 15:19:11 -0400 Subject: Presenting with LiveCode instead of PowerPoint/Keynote In-Reply-To: <1832A88C-085D-4B4F-AED3-7512C52E5526@clarkeandclarke.co.uk> References: <4D8382B6.3000802@hyperactivesw.com> <7BFB1319-D757-45B0-97BB-FE84DC62336D@mac.com> <1832A88C-085D-4B4F-AED3-7512C52E5526@clarkeandclarke.co.uk> Message-ID: I've not done a business-style presentation from LiveCode before, but I've been running the jumbotron display at a convention that holds a tongue-in-cheek game show each year. I connect the AV gear to my laptop as a second monitor, and use two stacks to run the show. One is the visible one that lives on the second screen, and the other stays on my laptop and lets me control the scores and game elements in real time. It's worked great for many years now. I even completely re-wrote it in a single evening for last year's show. Just to remind everyone how fast it is to develop in LiveCode... :) ~ Chris Innanen ~ Nonsanity On Fri, Mar 18, 2011 at 2:17 PM, Keith Clarke < keith.clarke at clarkeandclarke.co.uk> wrote: > OK, thanks. I suspected the approach would be DIY (do it yourself) - I > don't need to waste any time looking for pre-cooked answers and can just > dive in ;-) > Bjoernke - thanks for the arrow key navigation tip. > > From ambassador at fourthworld.com Fri Mar 18 15:27:05 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 18 Mar 2011 12:27:05 -0700 Subject: Presenting with LiveCode instead of PowerPoint/Keynote In-Reply-To: <4D83AFF1.4000504@hyperactivesw.com> References: <4D83AFF1.4000504@hyperactivesw.com> Message-ID: <4D83B209.5080201@fourthworld.com> J. Landman Gay wrote: > On 3/18/11 2:06 PM, stephen barncard wrote: >> Kevin Miller, the ceo, was spotted at a Revcon a couple of years ago using >> his own home-made presentation stack. > > Yup. And in fact, almost all the conference presentations have been > home-made stacks, and for more recent conferences RR has been sending > out template stacks so everyone's presentations will be more consistent. Same here. When I presented at SCaLE last month, the MacTech conference in November, an archaeology symposium the year before, and every Rev conference I've attended, I always made my slide shows in Rev. I find most presentation tools too cumbersome to work with, but with Rev I not only get them exactly how I want them but I can also automate some of their construction from my outlines in ways that would be way too complicated to attempt in PowerPoint of OpenOffice. At SCaLE someone asked me what I made my presentation in, and I told him I was able to make the presentation and the authoring system to build it all within three hours using a tool called LiveCode. :) -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From benr_mc at cogapp.com Fri Mar 18 16:11:17 2011 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Fri, 18 Mar 2011 20:11:17 +0000 Subject: Presenting with LiveCode instead of PowerPoint/Keynote In-Reply-To: References: <4D8382B6.3000802@hyperactivesw.com> <7BFB1319-D757-45B0-97BB-FE84DC62336D@mac.com> <1832A88C-085D-4B4F-AED3-7512C52E5526@clarkeandclarke.co.uk> Message-ID: <4D83BC65.5020403@cogapp.com> I moderate occasional 'Pecha Kucha'-style sessions at our company, where a number of people present using a strict format of 20 slides, 20 seconds/slide. Theoretically you can set this up using PowerPoint or Keynote, but in practise amalgamating everyone's deck is a pain, and they always send them only just before the start. So I use a similar set up to Chris, with a controller stack on my laptop, and a display stack on the second display/project. It's set up to simply work from folders of images, and takes care of timing, centering people's odd-sized images, etc. As I naturally hacked it up half-an-hour before the first session, the first presenters suffered a few glitches.... and some in the second session... but it works pretty well now, and they've mostly forgiven me. Ben On 18/03/2011 19:19, Nonsanity wrote: > I've not done a business-style presentation from LiveCode before, but I've > been running the jumbotron display at a convention that holds a > tongue-in-cheek game show each year. I connect the AV gear to my laptop as a > second monitor, and use two stacks to run the show. One is the visible one > that lives on the second screen, and the other stays on my laptop and lets > me control the scores and game elements in real time. > > It's worked great for many years now. I even completely re-wrote it in a > single evening for last year's show. Just to remind everyone how fast it is > to develop in LiveCode... :) > > ~ Chris Innanen > ~ Nonsanity > > > On Fri, Mar 18, 2011 at 2:17 PM, Keith Clarke< > keith.clarke at clarkeandclarke.co.uk> wrote: > >> OK, thanks. I suspected the approach would be DIY (do it yourself) - I >> don't need to waste any time looking for pre-cooked answers and can just >> dive in ;-) >> Bjoernke - thanks for the arrow key navigation tip. From richmondmathewson at gmail.com Fri Mar 18 16:20:38 2011 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 18 Mar 2011 22:20:38 +0200 Subject: Presenting with LiveCode instead of PowerPoint/Keynote In-Reply-To: <4D83BC65.5020403@cogapp.com> References: <4D8382B6.3000802@hyperactivesw.com> <7BFB1319-D757-45B0-97BB-FE84DC62336D@mac.com> <1832A88C-085D-4B4F-AED3-7512C52E5526@clarkeandclarke.co.uk> <4D83BC65.5020403@cogapp.com> Message-ID: <4D83BE96.5070701@gmail.com> On 03/18/2011 10:11 PM, Ben Rubinstein wrote: > I moderate occasional 'Pecha Kucha'-style Umm; what are 'Pecha Kucha' sesions ? sincerely, Richmond. From form at nonsanity.com Fri Mar 18 16:34:46 2011 From: form at nonsanity.com (Nonsanity) Date: Fri, 18 Mar 2011 16:34:46 -0400 Subject: Presenting with LiveCode instead of PowerPoint/Keynote In-Reply-To: <4D83BE96.5070701@gmail.com> References: <4D8382B6.3000802@hyperactivesw.com> <7BFB1319-D757-45B0-97BB-FE84DC62336D@mac.com> <1832A88C-085D-4B4F-AED3-7512C52E5526@clarkeandclarke.co.uk> <4D83BC65.5020403@cogapp.com> <4D83BE96.5070701@gmail.com> Message-ID: Google Says: http://www.pecha-kucha.org/ ~ Chris Innanen ~ Nonsanity On Fri, Mar 18, 2011 at 4:20 PM, Richmond wrote: > On 03/18/2011 10:11 PM, Ben Rubinstein wrote: > >> I moderate occasional 'Pecha Kucha'-style >> > > Umm; what are 'Pecha Kucha' sesions ? > > sincerely, Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jperryl at ecs.fullerton.edu Fri Mar 18 17:24:05 2011 From: jperryl at ecs.fullerton.edu (Judy Perry) Date: Fri, 18 Mar 2011 14:24:05 -0700 (PDT) Subject: Presenting with LiveCode instead of PowerPoint/Keynote In-Reply-To: References: Message-ID: This is the way I have always done it back when I taught an intro class (which was more than 5 years ago methinks). Having said that, however, I'm still chewing on my pickle. Judy On Fri, 18 Mar 2011, stephen barncard wrote: > Kevin Miller, the ceo, was spotted at a Revcon a couple of years ago using > his own home-made presentation stack. > > Perfect for Livecode presentations about Livecode, as the engine is always > there to demonstrate within. From jperryl at ecs.fullerton.edu Fri Mar 18 17:31:36 2011 From: jperryl at ecs.fullerton.edu (Judy Perry) Date: Fri, 18 Mar 2011 14:31:36 -0700 (PDT) Subject: Presenting with LiveCode instead of PowerPoint/Keynote In-Reply-To: <4D83B209.5080201@fourthworld.com> References: <4D83AFF1.4000504@hyperactivesw.com> <4D83B209.5080201@fourthworld.com> Message-ID: When I did my presentation a few years ago at either SITE or AACE, I did it in either Keynote or the OpenOffice PPT version because, well, this was a bunch of educators and that's pretty much all they're taught. I actually had one or two people ask me why I didn't do it in Rev ;-) Needless to say, I nearly fell over. Judy On Fri, 18 Mar 2011, Richard Gaskin wrote: > Same here. When I presented at SCaLE last month, the MacTech conference in > November, an archaeology symposium the year before, and every Rev conference > I've attended, I always made my slide shows in Rev. > > I find most presentation tools too cumbersome to work with, but with Rev I > not only get them exactly how I want them but I can also automate some of > their construction from my outlines in ways that would be way too complicated > to attempt in PowerPoint of OpenOffice. > > At SCaLE someone asked me what I made my presentation in, and I told him I > was able to make the presentation and the authoring system to build it all > within three hours using a tool called LiveCode. :) From jperryl at ecs.fullerton.edu Fri Mar 18 17:46:51 2011 From: jperryl at ecs.fullerton.edu (Judy Perry) Date: Fri, 18 Mar 2011 14:46:51 -0700 (PDT) Subject: OT: George Beekman & Amazon Romance Suggestions Message-ID: Some of you might remember that George Beekmann wrote the book titled "Hypercard in a Hurry" and a few related books. Today I just received the following suggestion from Amazon.com: "Customers who have purchased or rated books by George Beekman might like to know that The End of Faking It. Natalie Anderson (Mills & Boon Hardback Romance) will be released on April 1, 2011. You can pre-order yours by following the link below." O_o Judy From mwieder at ahsoftware.net Fri Mar 18 19:39:49 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Fri, 18 Mar 2011 16:39:49 -0700 Subject: OT: George Beekman & Amazon Romance Suggestions In-Reply-To: References: Message-ID: <38764450859.20110318163949@ahsoftware.net> Judy- Friday, March 18, 2011, 2:46:51 PM, you wrote: > Some of you might remember that George Beekmann wrote the book titled > "Hypercard in a Hurry" and a few related books. > Today I just received the following suggestion from Amazon.com: > "Customers who have purchased or rated books by George Beekman might > like to know that The End of Faking It. Natalie Anderson (Mills & > Boon Hardback Romance) will be released on April 1, 2011. You can > pre-order yours by following the link below." I hate faking Hypercard, don't you? Even when I'm in a hurry... -- -Mark Wieder mwieder at ahsoftware.net From jperryl at ecs.fullerton.edu Fri Mar 18 19:56:04 2011 From: jperryl at ecs.fullerton.edu (Judy Perry) Date: Fri, 18 Mar 2011 16:56:04 -0700 (PDT) Subject: OT: George Beekman & Amazon Romance Suggestions In-Reply-To: <38764450859.20110318163949@ahsoftware.net> References: <38764450859.20110318163949@ahsoftware.net> Message-ID: Mark, On Fri, 18 Mar 2011, Mark Wieder wrote: > I hate faking Hypercard, don't you? Even when I'm in a hurry... --Hahaha! Especially when it's hardcore, er, hardcover :-p Judy From scott at tactilemedia.com Fri Mar 18 20:58:19 2011 From: scott at tactilemedia.com (Scott Rossi) Date: Fri, 18 Mar 2011 16:58:19 -0800 Subject: OT: George Beekman & Amazon Romance Suggestions In-Reply-To: <38764450859.20110318163949@ahsoftware.net> Message-ID: Recently, Mark Wieder wrote: > I hate faking Hypercard, don't you? Even when I'm in a hurry... Anyone using Hypercard is faking it. They should be using LiveCode... ;-P Regards, Scott Rossi Creative Director Tactile Media, UX Design From walter.h.brown at gmail.com Sat Mar 19 01:21:39 2011 From: walter.h.brown at gmail.com (Walt Brown) Date: Sat, 19 Mar 2011 01:21:39 -0400 Subject: [TEASER] LiveCode <3 Facebook In-Reply-To: References: <8DB26B94-10EA-4AA8-8050-8B7295B09833@mac.com> Message-ID: <4d843d64.687ddc0a.7d8f.0e1b@mx.google.com> Unless the computer made you the upgradee... -----Original Message----- From: use-livecode-bounces at lists.runrev.com [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Thomas McGrath III Sent: Thursday, March 17, 2011 4:18 PM To: How to use LiveCode Subject: Re: [TEASER] LiveCode <3 Facebook Well, that's no excuse!!! What are we coming to when we can't bring our computers on our honeymoons??? That's it. I'm not getting married again. Once this one is done I'm not upgrading. -- Tom McGrath III http://lazyriver.on-rev.com 3mcgrath at comcast.net On Mar 17, 2011, at 1:54 PM, Andre Garzia wrote: >> >> > Tom, > > Haven't touched the library because I was on my honeymoon and my wife > made me promise not take a computer there. Now that I am back, I plan > to develop it further and release soon. Mark has a commercial > offering, might solve your needs faster since I still need to iron out some bugs. > > Andre > _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From bmmeili at swissonline.ch Sat Mar 19 09:47:05 2011 From: bmmeili at swissonline.ch (Martin Meili) Date: Sat, 19 Mar 2011 14:47:05 +0100 Subject: record sound problem on windows Message-ID: <51098212-42E7-4B3F-9D8D-A33609C476DA@swissonline.ch> Hi, I've got a soud recording problem on Windows XP with LiveCode 4.5.3. The command works fine on Mac OSX, both in the stackfile mode and the standalone mode. On Windows it doesn't work neither in the stackfile mode nor the standalone mode. I doesn't matter whether I work on my Mac or my Dell windows computer - I've got on both platforms the same problem: "record sound" doesn't work on Windows. If I open the stack with Revolution 4.0 and do the stadalone-build, I get a working Standalone for Windows which does the "record sound" command correctly. Anybody there who knows about the problem (bug??)? Cheers Martin From richmondmathewson at gmail.com Sat Mar 19 10:11:32 2011 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 19 Mar 2011 16:11:32 +0200 Subject: [OT] chopping up PDFs into image files Message-ID: <4D84B994.90402@gmail.com> Unlike Mac's PREVIEW (where pages have to be saved one by one), GraphicConverter will chop a PDF up and export it as a set of numbered images. From etcawley at fastmail.fm Sat Mar 19 14:07:12 2011 From: etcawley at fastmail.fm (edward cawley) Date: Sat, 19 Mar 2011 13:07:12 -0500 Subject: use-livecode Digest, Vol 90, Issue 35 In-Reply-To: References: Message-ID: Presentation? Back in 1992 when I was still teaching I did all my presentations in Hypercard, the only problem was talking the administration into buying a projector to show them. I even taught biology students how to use Hypercard stacks for their presentations. I retired in 97. When HyperCard died I switched over to MetaCard when it came out and then to Runrev then LiveCode. I thought what's the big deal when people start to get excited over PowerPoint? I still do an occasional LiveCode stack if I'm giving a talk. It's the only way to go. ETC On Mar 19, 2011, at 12:00 PM, use-livecode-request at lists.runrev.com wrote: > > Message: 10 > Date: Fri, 18 Mar 2011 14:24:05 -0700 (PDT) > From: Judy Perry > To: How to use LiveCode > Subject: Re: Presenting with LiveCode instead of PowerPoint/Keynote > Message-ID: > Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed > > This is the way I have always done it back when I taught an intro class > (which was more than 5 years ago methinks). > > Having said that, however, I'm still chewing on my pickle. > > Judy > > On Fri, 18 Mar 2011, stephen barncard wrote: > >> Kevin Miller, the ceo, was spotted at a Revcon a couple of years ago using >> his own home-made presentation stack. >> >> Perfect for Livecode presentations about Livecode, as the engine is always >> there to demonstrate within. > > > > End of use-livecode Digest, Vol 90, Issue 35 > ******************************************** From m.schonewille at economy-x-talk.com Sat Mar 19 14:10:09 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sat, 19 Mar 2011 19:10:09 +0100 Subject: Live LiveCode Code Event #15 starts in 1 hour Message-ID: Hi everybody, Here's a quick note to remind you that you are invited to join the Live LiveCode Code Event in approximately 1 hour (20:00h GMT). You need ChatRev to chat with other participants and to ask questions during the presentation. Please, go to http://bjoernke.com?target=chatrev to download ChatRev or execute the following line from the message box: go stack URL "http://bjoernke.com/chatrev/chatrev1.3b3.rev" The location of the streams will be posted on ChatRev. More information is available at http://livecode.tv . See you in an hour. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce From etcawley at fastmail.fm Sat Mar 19 14:29:52 2011 From: etcawley at fastmail.fm (edward cawley) Date: Sat, 19 Mar 2011 13:29:52 -0500 Subject: Debug problem with relative paths Message-ID: <25D72639-99AE-44C5-97E0-532FA761C734@fastmail.fm> I have a problem that has cropped up. I can work around it but it has me puzzled. I am modifying a stack from a functioning desktop stack to an iPad stack. I made a few minor changes -to ios landscape and a few scale modifications- and suddenly a global path reference changed. The open stack script is > put "MisippFiles/" into GVStackPath < the GVStackPath is a global, but the variable shows it as > /System/ MisippFiles/< and I can't get it to change back to just "MisippFiles/". And when I try to set a breakpoint to debug it I get a message that the script debug mode is currently off and it won't let me turn it on? What's happening?? Ed From richmondmathewson at gmail.com Sat Mar 19 14:38:58 2011 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 19 Mar 2011 20:38:58 +0200 Subject: PlonkerPoint In-Reply-To: References: Message-ID: <4D84F842.7020307@gmail.com> Unfortunately, in this Windows-centric world [ and here, parenthetically, as it IS Saturday night, I shall have one of my 'pomposities'; so, if you cannot take either my 'heat' or my bullshit, skip this bit . . . :) What annoys me most about Windows is that it has become so all pervasive that GNOME, KDE and Mac are playing catchup to their rather inferior way of doing things. and . . . RISC OS has almost gone down the toilet of bad history, when it really was, for quite a time, better than anything else. end of pompous rant.] Powerpoint does command . . . My 2 boys have to 'do' presentations for school, and, as we run a 100% Microsoft-clean environment at home (well, except for the box that Daddy hides under the bed with Windows XP for Beta testing his "Sanskrit nonsense" - see what I mean about 'all-pervasive) they are forced, to use either OOO Present or LibreOffice to produce Powerpoint compatible slide-shows to run on the crappy machines at school. The "IT" teacher at their school (who rang me up once because he didn't know how to install an Encyclopedia Britannica DVD on their machines) won't let the boys run a Livecode standalone for Windows from a CD or a USB stick. And, bye-the-bye; in the English-speaking section of Plovdiv English Language School (my boys are in the German section) "IT" stands for "It's Turd". My 2 boys are perfectly happy with Livecode/RR on their Ubuntu box, and get fairly cheesed-off with having to do substandard stuff all the time. From palcibiades-first at yahoo.co.uk Sat Mar 19 15:41:00 2011 From: palcibiades-first at yahoo.co.uk (Peter Alcibiades) Date: Sat, 19 Mar 2011 12:41:00 -0700 (PDT) Subject: PlonkerPoint In-Reply-To: <4D84F842.7020307@gmail.com> References: <4D84F842.7020307@gmail.com> Message-ID: <1300563660822-3390175.post@n4.nabble.com> I do presentations occasionally for someone who has to give them in a variety of windows centric venues. We do them in OpenOffice, and then export them as PDFs for the venues. Never had a problem. He typically just takes along a little usb stick with them on, or sometimes emails them to the venue, and they work perfectly. Of course, you don't get a lot of the effects, but neither he nor his audiences seem to mind, and his presentations seem to be very well received. At least with PDFs its pretty much guaranteed to play anywhere, in the exact form in which you exported it. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Re-use-livecode-Digest-Vol-90-Issue-35-tp3390057p3390175.html Sent from the Revolution - User mailing list archive at Nabble.com. From kee at kagi.com Sat Mar 19 19:46:06 2011 From: kee at kagi.com (Kee Nethery) Date: Sat, 19 Mar 2011 16:46:06 -0700 Subject: PlonkerPoint In-Reply-To: <4D84F842.7020307@gmail.com> References: <4D84F842.7020307@gmail.com> Message-ID: <2F9B0147-BA0A-4D0A-863E-946ECD7E3139@kagi.com> As much as I love Livecode, I use Keynote on the Mac to make my presentations and it is really easy compared to powerpoint. Once I'm done I can export as PowerPoint or PDF and find that works quite well. It's a really nice easy to use tool for presentations. Kee Nethery From gerry.orkin at gmail.com Sun Mar 20 05:28:50 2011 From: gerry.orkin at gmail.com (Gerry) Date: Sun, 20 Mar 2011 20:28:50 +1100 Subject: iOS iPhone Retina splash image In-Reply-To: <2F9B0147-BA0A-4D0A-863E-946ECD7E3139@kagi.com> References: <4D84F842.7020307@gmail.com> <2F9B0147-BA0A-4D0A-863E-946ECD7E3139@kagi.com> Message-ID: <4AEDDE03EE53420C883A2D168969E180@gmail.com> Hi folks My iPhone app uses a 960x640 .png as the splash screen image. In the standalone settings, I have the status bar set to visible, and the status bar style to default. The image appears but after a second or two it suddenly stretches vertically. What am I doing wrong? Cheers Gerry -- photo site: http://gerryorkin.com From richmondmathewson at gmail.com Sun Mar 20 07:00:44 2011 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 20 Mar 2011 13:00:44 +0200 Subject: PlonkerPoint In-Reply-To: <2F9B0147-BA0A-4D0A-863E-946ECD7E3139@kagi.com> References: <4D84F842.7020307@gmail.com> <2F9B0147-BA0A-4D0A-863E-946ECD7E3139@kagi.com> Message-ID: <4D85DE5C.6040802@gmail.com> On 3/20/11 1:46 AM, Kee Nethery wrote: > As much as I love Livecode, I use Keynote on the Mac to make my presentations and it is really easy compared to powerpoint. Once I'm done I can export as PowerPoint or PDF and find that works quite well. It's a really nice easy to use tool for presentations. > Kee Nethery > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode I don't really have a "beef" with Keynote; what I do have a "beef" with is Microsoft, their inferior products, and the way that because Microsoft have market dominance everybody else has to play "slowDown" (the opposite of 'catchup') with their stuff. From keith.clarke at clarkeandclarke.co.uk Sun Mar 20 07:51:53 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Sun, 20 Mar 2011 11:51:53 +0000 Subject: Acorn Image editor - launch error Message-ID: <76A860E7-40B5-4C38-8CD3-360E415E24C4@clarkeandclarke.co.uk> Hi folks, I have set Acorn as my image editor in LiveCode preferences but when attempting to use Launch Editor from an image's contextual menu get an error dialogue, with the message "There was a problem launching the editor. No such document." Any clues? Is anyone using Acorn successfully with LiveCode? Best, Keith.. From mcgrath3 at mac.com Sun Mar 20 12:21:46 2011 From: mcgrath3 at mac.com (Thomas McGrath III) Date: Sun, 20 Mar 2011 12:21:46 -0400 Subject: iOS iPhone Retina splash image In-Reply-To: <4AEDDE03EE53420C883A2D168969E180@gmail.com> References: <4D84F842.7020307@gmail.com> <2F9B0147-BA0A-4D0A-863E-946ECD7E3139@kagi.com> <4AEDDE03EE53420C883A2D168969E180@gmail.com> Message-ID: <68FA3718-DB82-4105-A9F7-57485EC373D0@mac.com> When you run it in the emulator is the Status Bar visible? Not the setting in the Standalone Settings but the actual Status Bar? I code the status bar myself after one time setting it in the Standalone settings and then it not working. After that I always code it myself. If this is the problem then the screen should only stretch by 40 pixels. The 960x640 is the right size for a horizontal view. With the Status Bar it would be 960x600 since the the iPhoneRetina is 2x the size. Dd you want the app to launch horizontal? If not then the size would be 640x960. Or is this the Apple start up splash image that gets bundled with the app? Or if this is in your app then do you/ are you using a resizeStack handler? Two resize stack handlers? More info would help. -- Tom McGrath III http://lazyriver.on-rev.com 3mcgrath at comcast.net On Mar 20, 2011, at 5:28 AM, Gerry wrote: > Hi folks > > My iPhone app uses a 960x640 .png as the splash screen image. In the standalone settings, I have the status bar set to visible, and the status bar style to default. The image appears but after a second or two it suddenly stretches vertically. > > What am I doing wrong? > > Cheers > > Gerry > > > > -- photo site: http://gerryorkin.com > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From etcawley at fastmail.fm Sun Mar 20 15:23:41 2011 From: etcawley at fastmail.fm (edward cawley) Date: Sun, 20 Mar 2011 14:23:41 -0500 Subject: Debug problem In-Reply-To: References: Message-ID: Solved part of my problem, I had left a little bit of code from setting up a Windows standalone which put /system/ into the global, deleted the code and it OK now but I still can't set the breakpoint to debug the stack. I think this happened once before and I found a execution error with a handler on another card. Is there an easy way to check where? Any other ideas? Ed On Mar 20, 2011, at 12:00 PM, use-livecode-request at lists.runrev.com wrote: > > Message: 3 > Date: Sat, 19 Mar 2011 13:29:52 -0500 > From: edward cawley > To: use-livecode at lists.runrev.com > Subject: Debug problem with relative paths > Message-ID: <25D72639-99AE-44C5-97E0-532FA761C734 at fastmail.fm> > Content-Type: text/plain; charset=us-ascii > > I have a problem that has cropped up. I can work around it but it has me puzzled. I am modifying a stack from a functioning desktop stack to an iPad stack. I made a few minor changes -to ios landscape and a few scale modifications- and suddenly a global path reference changed. > The open stack script is > put "MisippFiles/" into GVStackPath < the GVStackPath is a global, but the variable shows it as > /System/ MisippFiles/< and I can't get it to change back to just "MisippFiles/". And when I try to set a breakpoint to debug it I get a message that the script debug mode is currently off and it won't let me turn it on? What's happening?? > Ed From pete at mollysrevenge.com Sun Mar 20 15:47:27 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Sun, 20 Mar 2011 12:47:27 -0700 Subject: Sort of OT: mysql and select from two tables...? In-Reply-To: <6DE981FE-9529-4416-8736-EDEB832B1E23@mac.com> References: <729B696C-7502-45E4-A221-161A4DBA3898@clarkeandclarke.co.uk> <6DE981FE-9529-4416-8736-EDEB832B1E23@mac.com> Message-ID: Bit late to the game on this but it sounds like you need an option menu populated with the teacher names to allow the teachers to select themselves or another teacher. You'd need to keep track of the teacher_id for each option menu entry so you could grab it in a menuPick handler and use it in a SELECT statement to find all the students with the teacher's ID. Pete Haworth On Mar 16, 2011, at 12:15 PM, John Patten wrote: > Hi All... > > Thanks for the previous help on the on-rev php/mysql question. I have a question about the mysql select command, session_register, and selecting from two tables. > > I have one database with two tables. The tables are teacher_user and student_user. > > Each table has a unique teacher-id stored in a fields. So students with the teacher_id value of 0001 stored in their student_user record all belong to the same teacher. > > > Teacher_table Student_table > > id - 0001 teacher_id = 0001 > first first > last last > title grade > > > I also have the teacher login with their username and password comparing what is stored in their db record for username and password. If they match, then their username and password is then session_register("username"); & session_register("password"); . > > What i would like to be able to do is query the database and return a list of students to the individual teacher based on some unique information about the teacher's record, say their username. > > is there some way I can get at the session_register("username") and use it in my select query? > > Something like: > > select "username" from teacher_table and put "id" of table teacher_table into tTeacher_id then > select tTeacher_id from student_table and loop through the student printing each record > > I suppose if the teacher new their id value I could just have them type that into a form and do a simple query the student_table and teacher_id field by that id value. But I was trying to make it a little more automatic and did not want teachers trying to guess other teachers' ids. > > Thanks in advance! > > John Patten > SUSD > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From richmondmathewson at gmail.com Sun Mar 20 15:57:35 2011 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 20 Mar 2011 21:57:35 +0200 Subject: SQL and other databases Message-ID: <4D865C2F.6000400@gmail.com> Maybe I'm a bit naive when it comes to databases, but I have all the children and their parents and so on, in a database that consists of a Livecode stack and nothing else. But then, in 1989 I had all the kids at Madrasa Emirat al-Khasa school, Al Ain, UAE in a database written and run on my BBC Master and stored on a single 800 kb floppy disc; so anything after that has got to seem better. So, I am really interested to know why so many folk seem interested in using Livecode to write database front-ends rather than using Livecode for the database as such. One of Bill Atkinson's initial premises was to make Hypercard non-linear, so setting up a relational database should be 'pips'. sincerely, Richmond. From kee at kagi.com Sun Mar 20 16:57:14 2011 From: kee at kagi.com (Kee Nethery) Date: Sun, 20 Mar 2011 13:57:14 -0700 Subject: SQL and other databases In-Reply-To: <4D865C2F.6000400@gmail.com> References: <4D865C2F.6000400@gmail.com> Message-ID: > So, I am really interested to know why so many folk seem interested in using > Livecode to write database front-ends rather than using Livecode for the > database as such. 1. We already have a multiuser database and several other light client systems that access it via web browsers. I have a heavy client in Livecode that we use internally to access and manipulate the data in ways that would be difficult in a browser. 2. If I anticipated 100000 records, a real SQL database is probably going to be faster as the database grows. 3. If I anticipated the need to do joins between multiple tables, a real SQL query mechanism is probably going to be faster than Livecode. For example: imagine four stacks; one with product records, one with customer records, one with transaction records, one that ties countries to areas. Now envision selecting all transactions by customers who live in europe that contain products that are blue. In Livecode you could grab a list of all products that are blue, then see what transactions contain those products. Grab a list of countries that are in europe. For that list of transactions, look up every customer to see what country they live in. Toss out transactions from countries that are not in Europe. A SQL database does this very quickly. Livecode could do this but wow it would probably take a long time. Those are three reasons I would not use Livecode as the database. Kee Nethery From pete at mollysrevenge.com Sun Mar 20 17:17:29 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Sun, 20 Mar 2011 14:17:29 -0700 Subject: SQL and other databases In-Reply-To: References: <4D865C2F.6000400@gmail.com> Message-ID: <88F5D74A-1525-458C-A363-5AC7E00C0742@mollysrevenge.com> Ditto to all that. The Rev manual section 2.2.8 talks about when to use a database. Their rule of thumb is to go database when you have more than 2000 records or need to allow multiple users to access/update information at the same time. Pete Haworth On Mar 20, 2011, at 1:57 PM, Kee Nethery wrote: >> So, I am really interested to know why so many folk seem interested in using >> Livecode to write database front-ends rather than using Livecode for the >> database as such. > > > 1. We already have a multiuser database and several other light client systems that access it via web browsers. > > I have a heavy client in Livecode that we use internally to access and manipulate the data in ways that would be difficult in a browser. > > 2. If I anticipated 100000 records, a real SQL database is probably going to be faster as the database grows. > > 3. If I anticipated the need to do joins between multiple tables, a real SQL query mechanism is probably going to be faster than Livecode. For example: imagine four stacks; one with product records, one with customer records, one with transaction records, one that ties countries to areas. Now envision selecting all transactions by customers who live in europe that contain products that are blue. > > In Livecode you could grab a list of all products that are blue, then see what transactions contain those products. Grab a list of countries that are in europe. For that list of transactions, look up every customer to see what country they live in. Toss out transactions from countries that are not in Europe. A SQL database does this very quickly. Livecode could do this but wow it would probably take a long time. > > Those are three reasons I would not use Livecode as the database. > > Kee Nethery > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From chipp at chipp.com Sun Mar 20 17:17:42 2011 From: chipp at chipp.com (Chipp Walters) Date: Sun, 20 Mar 2011 16:17:42 -0500 Subject: URLencode bug? In-Reply-To: <96BD8AF5-405B-4DCC-81AF-8BF9F86BA2AC@twft.com> References: <96BD8AF5-405B-4DCC-81AF-8BF9F86BA2AC@twft.com> Message-ID: The project, called revShare, was commissioned by David Johnson, and as such, is his property. You may try and contact him directly to find out more. At the time it was created, things worked by updating changes via FTP to a server and reading them via HTTP. The idea was it should be able to accomodate synchronous and asynchronous communications. So, if someone made a change to a stack they were sharing with you, yours would update as soon as you came online, no matter if they were online or not. Sort of a cloud based stack sharing system. On Fri, Mar 18, 2011 at 11:06 AM, Bob Sneidar wrote: > Hi Chipp. Any chance that stack still works? That is a great idea. > > Bob > > > On Mar 18, 2011, at 1:20 AM, Chipp Walters wrote: > > > Yep, years ago I wrote a stack sharing library for Rev which passed back > and forth via a server any changes made to stacks, thus allowing multiple > people in remote locations to work on the same stack at the same time, and > used the base64encode trick you mention to encode all meta data for all > controls and their properties. Worked well. > > > > Chipp Walters > > CEO, Shafer Walters Group, Inc > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Chipp Walters CEO, Shafer Walters Group, Inc. From gerry.orkin at gmail.com Sun Mar 20 18:33:41 2011 From: gerry.orkin at gmail.com (Gerry) Date: Mon, 21 Mar 2011 09:33:41 +1100 Subject: iOS iPhone Retina splash image In-Reply-To: <68FA3718-DB82-4105-A9F7-57485EC373D0@mac.com> References: <4D84F842.7020307@gmail.com> <2F9B0147-BA0A-4D0A-863E-946ECD7E3139@kagi.com> <4AEDDE03EE53420C883A2D168969E180@gmail.com> <68FA3718-DB82-4105-A9F7-57485EC373D0@mac.com> Message-ID: <5B2576A630DE4DD6BDE20F69AFDD854F@gmail.com> Tom Or is this the Apple start up splash image that gets bundled with the app? It's the Apple startup splash, as specified in the app settings window. > When you run it in the emulator is the Status Bar visible? Not the setting in the Standalone Settings but the actual Status Bar? The status bar cuts in after the splash image shows, and just after the image stretches. This app is only for use in portrait orientation. Gerry > I code the status bar myself after one time setting it in the Standalone settings and then it not working. After that I always code it myself. If this is the problem then the screen should only stretch by 40 pixels. > > The 960x640 is the right size for a horizontal view. With the Status Bar it would be 960x600 since the the iPhoneRetina is 2x the size. > > Dd you want the app to launch horizontal? If not then the size would be 640x960. > > Or is this the Apple start up splash image that gets bundled with the app? > > Or if this is in your app then do you/ are you using a resizeStack handler? Two resize stack handlers? > > More info would help. > > > -- Tom McGrath III > http://lazyriver.on-rev.com > 3mcgrath at comcast.net > > On Mar 20, 2011, at 5:28 AM, Gerry wrote: > > > Hi folks > > > > My iPhone app uses a 960x640 .png as the splash screen image. In the standalone settings, I have the status bar set to visible, and the status bar style to default. The image appears but after a second or two it suddenly stretches vertically. > > > > What am I doing wrong? > > > > Cheers > > > > Gerry > > > > > > > > -- photo site: http://gerryorkin.com > > > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From kee at kagi.com Sun Mar 20 18:47:59 2011 From: kee at kagi.com (Kee Nethery) Date: Sun, 20 Mar 2011 15:47:59 -0700 Subject: combobox In-Reply-To: <15C68EE9-BAFC-49DE-AE95-1391DFE0861C@mac.com> References: <1A45BA5D-B90D-413F-B44D-60847D242A85@mac.com> <15C68EE9-BAFC-49DE-AE95-1391DFE0861C@mac.com> Message-ID: OK, comboboxes appear to be rather complicated and I'm stumped. As a user types into a combobox I use on rawKeyUp keyCode to notice that a new character has been added to the combobox. I then do a database search to see all the data that matches the characters currently in the combobox. I then replace all the data in the combobox with the data returned from the database. This puts the first alphabetical value as the combobox label (or whatever that is referred to). This all works fine. The thing I want to do next is to select the characters after what the user actually typed in the ?label? of the combobox so that the next character they type replaces all those. For example: user types: joe script returns joebill joebob joemammy joemomma The value displayed in the combobox is now joebill and what I want "selected" in the combobox is "bill" (if capital letters signify a selection ...) joeBILL so that if the user types "m" the combobox the script is now going to display joemAMMY and the selections presented will just be joemammy joemomma what script would select some of the characters within "joemammy" like for example characters "ammy" (aka characters 5 to 8)? Thanks, Kee Nethery From ambassador at fourthworld.com Sun Mar 20 18:50:11 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 20 Mar 2011 15:50:11 -0700 Subject: bullet chars in Linux? Message-ID: <4D8684A3.3000903@fourthworld.com> On Mac and Win, using $#149; in htmlText produces a bullet char. In Linux, however, that gets rendered as a non-renderable character (the rectangle with numbers in it in Ubuntu). When I paste a block of text that has a bullet in it into a field and get the htmlText, the bullet is shown to be "•" - BUT - When I set the htmlText of a field to a string which contains "•" it gets rendered as a double-quote char. Whiskey tango? How do I get bullet chars in Linux, and why would reading htmlText behave so differently from setting it? -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From palcibiades-first at yahoo.co.uk Sun Mar 20 19:41:56 2011 From: palcibiades-first at yahoo.co.uk (Peter Alcibiades) Date: Sun, 20 Mar 2011 16:41:56 -0700 (PDT) Subject: bullet chars in Linux? In-Reply-To: <4D8684A3.3000903@fourthworld.com> References: <4D8684A3.3000903@fourthworld.com> Message-ID: <1300664516285-3392208.post@n4.nabble.com> I do bullets in openoffice by insert special character, it seems to vary with the font where they are. In wordpress these all seem to work: &bull • • not sure if they need a semi colon after them, it seems to work with or without. Peter -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/bullet-chars-in-Linux-tp3392149p3392208.html Sent from the Revolution - User mailing list archive at Nabble.com. From roger.e.eller at sealedair.com Sun Mar 20 20:01:02 2011 From: roger.e.eller at sealedair.com (Roger Eller) Date: Sun, 20 Mar 2011 20:01:02 -0400 Subject: bullet chars in Linux? In-Reply-To: <1300664516285-3392208.post@n4.nabble.com> References: <4D8684A3.3000903@fourthworld.com> <1300664516285-3392208.post@n4.nabble.com> Message-ID: On Sun, Mar 20, 2011 at 7:41 PM, Peter Alcibiades wrote: > I do bullets in openoffice by insert special character, it seems to vary with > the font where they are. ?In wordpress these all seem to work: > > &bull > • > • > > not sure if they need a semi colon after them, it seems to work with or > without. > > Peter > I am in Windows 7 in WordPad, and pressing and holding the ALT (Option) key while typing 8226 on the keypad does prodice a bullet character. Your other examples do not. I tried the same in OpenOffice and it created a curly-quote character. ~Roger From tsj at unimelb.edu.au Sun Mar 20 20:01:10 2011 From: tsj at unimelb.edu.au (Terry Judd) Date: Mon, 21 Mar 2011 11:01:10 +1100 Subject: combobox In-Reply-To: Message-ID: On 21/03/11 9:47 AM, "Kee Nethery" wrote: > OK, comboboxes appear to be rather complicated and I'm stumped. > > As a user types into a combobox I use > on rawKeyUp keyCode > to notice that a new character has been added to the combobox. > > I then do a database search to see all the data that matches the characters > currently in the combobox. > > I then replace all the data in the combobox with the data returned from the > database. This puts the first alphabetical value as the combobox label (or > whatever that is referred to). > > This all works fine. > > The thing I want to do next is to select the characters after what the user > actually typed in the ?label? of the combobox so that the next character they > type replaces all those. For example: > > user types: > > joe > > script returns > > joebill > joebob > joemammy > joemomma > > The value displayed in the combobox is now > > joebill > > and what I want "selected" in the combobox is "bill" (if capital letters > signify a selection ...) > > joeBILL > > so that if the user types "m" the combobox the script is now going to display > > joemAMMY > > and the selections presented will just be > > joemammy > joemomma > > what script would select some of the characters within "joemammy" like for > example characters "ammy" (aka characters 5 to 8)? Hi Kee, It seems like you need to target field 0 of the control so I'd... 1. get the length of line 1 of the text of the control (tLength) 2. update the control's text as you are already doing 3. do something like "select char tLength+1 to -1 of fld 0 of me" Hopefully that will work Terry... > Thanks, > Kee Nethery > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Dr Terry Judd | Senior Lecturer in Medical Education Medical Education Unit Melbourne Medical School The University of Melbourne From scott at tactilemedia.com Sun Mar 20 21:24:45 2011 From: scott at tactilemedia.com (Scott Rossi) Date: Sun, 20 Mar 2011 17:24:45 -0800 Subject: [OT] Post Conference Fun Stuff Message-ID: For anyone attending the LiveCode dev conference in April, if you're not from the area, I'd strongly suggest allowing a couple of hours one day to visit the Computer History Museum, located in Mountain View, about a 1/2 hour away from the conference venue. Housed in a refurbished building that was once part of the Silicon Graphics campus, the exhibits start with historical devices, through mechanical and early electrical machines for business, consumer, and military use, up through the common digital computers and devices of today. The route through the exhibits is a bit maze-like, but the whole experience is beautifully designed, with several short video installations, and includes a bunch of interesting side-note pop culture computing info, in addition to the rich history. All the big names and companies (and those not so big) are represented, and for those of you still clinging to the bygone days of programming, you'll be happy to know one of your favorites is displayed, still in its shrinkwrapped glory: Note the museum is only open Wed - Sun, so plan your visit accordingly. Regards, Scott Rossi Creative Director Tactile Media, UX Design From bvg at mac.com Sun Mar 20 20:47:52 2011 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Mon, 21 Mar 2011 01:47:52 +0100 Subject: [OT] Post Conference Fun Stuff In-Reply-To: References: Message-ID: Oh yeah i wanted to go after vegas, but never managed to haul my lazy ass there... maybe we can do a group visit? On 21 Mar 2011, at 02:24, Scott Rossi wrote: > For anyone attending the LiveCode dev conference in April, if you're not > from the area, I'd strongly suggest allowing a couple of hours one day to > visit the Computer History Museum, located in Mountain View, about a 1/2 > hour away from the conference venue. > > > Housed in a refurbished building that was once part of the Silicon Graphics > campus, the exhibits start with historical devices, through mechanical and > early electrical machines for business, consumer, and military use, up > through the common digital computers and devices of today. The route > through the exhibits is a bit maze-like, but the whole experience is > beautifully designed, with several short video installations, and includes a > bunch of interesting side-note pop culture computing info, in addition to > the rich history. All the big names and companies (and those not so big) > are represented, and for those of you still clinging to the bygone days of > programming, you'll be happy to know one of your favorites is displayed, > still in its shrinkwrapped glory: > > > Note the museum is only open Wed - Sun, so plan your visit accordingly. > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX Design > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From andre at andregarzia.com Sun Mar 20 20:48:30 2011 From: andre at andregarzia.com (Andre Garzia) Date: Sun, 20 Mar 2011 21:48:30 -0300 Subject: [OT] Post Conference Fun Stuff In-Reply-To: References: Message-ID: I want it!!!! On Sun, Mar 20, 2011 at 10:24 PM, Scott Rossi wrote: > For anyone attending the LiveCode dev conference in April, if you're not > from the area, I'd strongly suggest allowing a couple of hours one day to > visit the Computer History Museum, located in Mountain View, about a 1/2 > hour away from the conference venue. > > > Housed in a refurbished building that was once part of the Silicon Graphics > campus, the exhibits start with historical devices, through mechanical and > early electrical machines for business, consumer, and military use, up > through the common digital computers and devices of today. The route > through the exhibits is a bit maze-like, but the whole experience is > beautifully designed, with several short video installations, and includes > a > bunch of interesting side-note pop culture computing info, in addition to > the rich history. All the big names and companies (and those not so big) > are represented, and for those of you still clinging to the bygone days of > programming, you'll be happy to know one of your favorites is displayed, > still in its shrinkwrapped glory: > > > Note the museum is only open Wed - Sun, so plan your visit accordingly. > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX Design > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- http://www.andregarzia.com All We Do Is Code. From palcibiades-first at yahoo.co.uk Sun Mar 20 20:49:18 2011 From: palcibiades-first at yahoo.co.uk (Peter Alcibiades) Date: Sun, 20 Mar 2011 17:49:18 -0700 (PDT) Subject: bullet chars in Linux? In-Reply-To: References: <4D8684A3.3000903@fourthworld.com> <1300664516285-3392208.post@n4.nabble.com> Message-ID: <1300668558266-3392287.post@n4.nabble.com> Yes. When I do this in OO under Linux, nothing happens. But if you make an html file in linux with the entries shown and then display it in a browser, you do get bullets. Dunno. There is something about unicode in wikipedia, and it also claims you can press control + shift in Gtk+ apps. Doesn't seem to work for me. Or maybe my apps are not Gtk+. As usual there seem to be at least three ways of doing anything in Linux, and some of them work some of the time. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/bullet-chars-in-Linux-tp3392149p3392287.html Sent from the Revolution - User mailing list archive at Nabble.com. From jacque at hyperactivesw.com Sun Mar 20 21:20:17 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 20 Mar 2011 20:20:17 -0500 Subject: Debug problem In-Reply-To: References: Message-ID: <4D86A7D1.3080607@hyperactivesw.com> On 3/20/11 2:23 PM, edward cawley wrote: > Solved part of my problem, I had left a little bit of code from > setting up a Windows standalone which put /system/ into the global, > deleted the code and it OK now but I still can't set the breakpoint > to debug the stack. I think this happened once before and I found a > execution error with a handler on another card. Is there an easy way > to check where? Any other ideas? Put the breakpoint on the line before or the line after the one that doesn't work. There are a few IDE-related calls that ignore breakpoints. The only workaround is to break on a different line. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From kee at kagi.com Sun Mar 20 21:38:16 2011 From: kee at kagi.com (Kee Nethery) Date: Sun, 20 Mar 2011 18:38:16 -0700 Subject: combobox In-Reply-To: References: Message-ID: <6F5B85CC-F8A8-42A8-A89E-7100C12C715B@kagi.com> Thanks Terry, Actually I'm at the point of one step forward two steps back. I appear to be unable to put the return delimited list into the combobox more than a couple of times. I've tried all of these variations of the script to alter the combobox text: put theList into me put theList into button "myComboBox" put theList into field "myComboBox" of button "myComboBox" put theList into field "myComboBox" I can get one or two inserts (I type different things into the combobox) before the whole stack crashes and the apple "Problem Report for LiveCode" appears. ---- When I can get the combobox data to get updated, the following scripts don't leave the text selected (the data in the combobox is for these examples always more than 5 characters in length): select char 2 to 5 of me select char 2 to 5 of button "myComboBox" select char 2 to 5 of field "myComboBox" select char 2 to 5 of field "myComboBox" of button "myComboBox" select char 2 to 5 of the label of me select char 2 to 5 of fld 0 of me <-- not sure what "fld 0" is in a button but tried it anyway Thank you for your suggestions. The only example I'd seen of changing a combobox contents is in the font portion of the inspector but I'm not sure how to access that code to see what they are doing, how exactly they are referring to that content. The documentation has almost nothing about combo boxes. There is something different about them. Kee From pete at mollysrevenge.com Sun Mar 20 22:04:03 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Sun, 20 Mar 2011 19:04:03 -0700 Subject: combobox In-Reply-To: <6F5B85CC-F8A8-42A8-A89E-7100C12C715B@kagi.com> References: <6F5B85CC-F8A8-42A8-A89E-7100C12C715B@kagi.com> Message-ID: <8ADCD9A6-36E2-4852-A5CE-D70B457C401E@mollysrevenge.com> My experience with combo boxes is that they are weird beasts and the documentation is, as you say, sadly lacking. In scripts they sometimes report themselves as fields and sometimes as buttons and of course they are both but I had a hell of a time figuring out when they reported themselves as one or the other. I ended up rolling my own - at least that way I knew how it worked! Pete Haworth On Mar 20, 2011, at 6:38 PM, Kee Nethery wrote: > Thanks Terry, > > Actually I'm at the point of one step forward two steps back. > > I appear to be unable to put the return delimited list into the combobox more than a couple of times. I've tried all of these variations of the script to alter the combobox text: > > put theList into me > put theList into button "myComboBox" > put theList into field "myComboBox" of button "myComboBox" > put theList into field "myComboBox" > > I can get one or two inserts (I type different things into the combobox) before the whole stack crashes and the apple "Problem Report for LiveCode" appears. > > ---- > > When I can get the combobox data to get updated, the following scripts don't leave the text selected (the data in the combobox is for these examples always more than 5 characters in length): > > select char 2 to 5 of me > select char 2 to 5 of button "myComboBox" > select char 2 to 5 of field "myComboBox" > select char 2 to 5 of field "myComboBox" of button "myComboBox" > select char 2 to 5 of the label of me > select char 2 to 5 of fld 0 of me <-- not sure what "fld 0" is in a button but tried it anyway > > Thank you for your suggestions. > > The only example I'd seen of changing a combobox contents is in the font portion of the inspector but I'm not sure how to access that code to see what they are doing, how exactly they are referring to that content. > > The documentation has almost nothing about combo boxes. There is something different about them. > > Kee > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From mwieder at ahsoftware.net Sun Mar 20 22:26:58 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sun, 20 Mar 2011 19:26:58 -0700 Subject: [OT] Post Conference Fun Stuff In-Reply-To: References: Message-ID: <173947284546.20110320192658@ahsoftware.net> Also... As if you didn't already have enough to do, 30 April 2011 is the 24th annual Tech Challenge day at The Tech Museum in San Jose. Even if there weren't a special event happening it's an easy place to spend a whole day wandering around getting lost among all the exhibits. http://www.thetech.org/ -- -Mark Wieder mwieder at ahsoftware.net From tsj at unimelb.edu.au Sun Mar 20 22:46:40 2011 From: tsj at unimelb.edu.au (Terry Judd) Date: Mon, 21 Mar 2011 13:46:40 +1100 Subject: combobox In-Reply-To: <6F5B85CC-F8A8-42A8-A89E-7100C12C715B@kagi.com> Message-ID: On 21/03/11 12:38 PM, "Kee Nethery" wrote: > Thanks Terry, > > Actually I'm at the point of one step forward two steps back. > > I appear to be unable to put the return delimited list into the combobox more > than a couple of times. I've tried all of these variations of the script to > alter the combobox text: > > put theList into me > put theList into button "myComboBox" > put theList into field "myComboBox" of button "myComboBox" > put theList into field "myComboBox" I think you should be setting the text of the button. > > I can get one or two inserts (I type different things into the combobox) > before the whole stack crashes and the apple "Problem Report for LiveCode" > appears. > > ---- > > When I can get the combobox data to get updated, the following scripts don't > leave the text selected (the data in the combobox is for these examples always > more than 5 characters in length): > > select char 2 to 5 of me > select char 2 to 5 of button "myComboBox" > select char 2 to 5 of field "myComboBox" > select char 2 to 5 of field "myComboBox" of button "myComboBox" > select char 2 to 5 of the label of me > select char 2 to 5 of fld 0 of me <-- not sure what "fld 0" is in a button > but tried it anyway So in a keyUp handler you get line 1 of the text of the control (or the label of the control) and based on it you create your list of options. You then set the text of the control to this list and then select the characters as suggested. As in... Select char length()+1 to -1 of fld 0 of me Based on my limited testing this works as advertised (it didn't fail on repeated testing) on Mac OSX but I can't vouch for it on Windows. HTH, Terry... > > Thank you for your suggestions. > > The only example I'd seen of changing a combobox contents is in the font > portion of the inspector but I'm not sure how to access that code to see what > they are doing, how exactly they are referring to that content. > > The documentation has almost nothing about combo boxes. There is something > different about them. > > Kee > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Dr Terry Judd | Senior Lecturer in Medical Education Medical Education Unit Melbourne Medical School The University of Melbourne From kee at kagi.com Mon Mar 21 00:04:04 2011 From: kee at kagi.com (Kee Nethery) Date: Sun, 20 Mar 2011 21:04:04 -0700 Subject: combobox In-Reply-To: References: Message-ID: <66E2C082-7027-4AF2-B79D-9B9E5BF9CC9D@kagi.com> On Mar 20, 2011, at 7:46 PM, Terry Judd wrote: > > > > On 21/03/11 12:38 PM, "Kee Nethery" wrote: > >> Thanks Terry, >> >> Actually I'm at the point of one step forward two steps back. >> >> I appear to be unable to put the return delimited list into the combobox more >> than a couple of times. I've tried all of these variations of the script to >> alter the combobox text: >> >> put theList into me >> put theList into button "myComboBox" >> put theList into field "myComboBox" of button "myComboBox" >> put theList into field "myComboBox" > > I think you should be setting the text of the button. set the text of button "myComboBox" to theList Good suggestion, but it crashed. >> >> I can get one or two inserts (I type different things into the combobox) >> before the whole stack crashes and the apple "Problem Report for LiveCode" >> appears. >> >> ---- >> >> When I can get the combobox data to get updated, the following scripts don't >> leave the text selected (the data in the combobox is for these examples always >> more than 5 characters in length): >> >> select char 2 to 5 of me >> select char 2 to 5 of button "myComboBox" >> select char 2 to 5 of field "myComboBox" >> select char 2 to 5 of field "myComboBox" of button "myComboBox" >> select char 2 to 5 of the label of me >> select char 2 to 5 of fld 0 of me <-- not sure what "fld 0" is in a button >> but tried it anyway > > So in a keyUp handler you get line 1 of the text of the control (or the > label of the control) and based on it you create your list of options. You > then set the text of the control to this list and then select the characters > as suggested. As in... To get the data that has been typed the code I use is: put word 1 of the label of me into theSearchText No problems with that. > > Select char length()+1 to -1 of fld 0 of me That's one of the variations I've been trying and it causes a crash. > > Based on my limited testing this works as advertised (it didn't fail on > repeated testing) on Mac OSX but I can't vouch for it on Windows. I'm running LiveCode 4.5.1 perhaps this got fixed in one of the later versions? I'll submit a question to Runrev. If I ever get comboboxes to work, I'll post the magic here. Thanks everyone, Kee > > HTH, > > Terry... > >> >> Thank you for your suggestions. >> >> The only example I'd seen of changing a combobox contents is in the font >> portion of the inspector but I'm not sure how to access that code to see what >> they are doing, how exactly they are referring to that content. >> >> The documentation has almost nothing about combo boxes. There is something >> different about them. >> >> Kee >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > -- > Dr Terry Judd | Senior Lecturer in Medical Education > Medical Education Unit > Melbourne Medical School > The University of Melbourne > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ------------------------------------------------- I check email roughly 2 to 3 times per day. Kagi main office: +1 (510) 550-1336 From philipusher at aim.com Mon Mar 21 00:24:22 2011 From: philipusher at aim.com (Philip Usher) Date: Sun, 20 Mar 2011 23:24:22 -0500 Subject: Dial with USB modem Message-ID: <8988486A-7030-4AA2-A89C-71BA758D0C0B@aim.com> Back in the days when I was using a serial modem, I developed several stacks which included dialing phone numbers using write to file modem. How might Revolution write to a built in USB modem on a Mac G4 to dial phone numbers as is done in apps such as ABDialer and Dialetic? thanks, Philip Usher From etcawley at fastmail.fm Mon Mar 21 00:28:04 2011 From: etcawley at fastmail.fm (edward cawley) Date: Sun, 20 Mar 2011 23:28:04 -0500 Subject: Loading files in iPad Message-ID: I'm trying to get my app into iPad using revMobil. I load the plugin, put the folder of files into the directory but when the app comes up in the simulator none of the files are accessed. The buttons all work and the text not accessed by files show, but none of the images,audio or text files are found. It acts like they are not loaded in the IOS. The app loads successfully in the standalone. The documents mention using the specialFolderPath but I'm not sure how to use it to get the files loaded. Ed From warren at warrensweb.us Mon Mar 21 02:16:59 2011 From: warren at warrensweb.us (Warren Samples) Date: Mon, 21 Mar 2011 01:16:59 -0500 Subject: bullet chars in Linux? In-Reply-To: <4D8684A3.3000903@fourthworld.com> References: <4D8684A3.3000903@fourthworld.com> Message-ID: <201103210116.59804.warren@warrensweb.us> On Sunday, March 20, 2011 05:50:11 PM Richard Gaskin wrote: > Whiskey tango? > > How do I get bullet chars in Linux, and why would reading htmlText > behave so differently from setting it? Hi Richard, The decimal entity 8226 also inserts the double quote character in Windows in Livecode. It is, according to the character info supplied by KCharSelect, the correct number for the bullet character, but it seems that decimal entities are goofy above a certain range in Livecode. Your illustration demonstrates what could be a problem if one is retrieving and storing or manipulating the htmlText and then hoping to redisplay it, in Linux. If what you want is a way to insert these characters as you type, you can use the clipboard, although it isn't as simple as it should be. My searching doesn't turn up anything hopeful along the lines of snippet managers in Gnome. I'm now working in openSuse (tentatively!) and there are several useful clipboard and snippet tools available for the panel which Linux Mint, and I would guess Ubuntu also, does not offer. The character pallet in Mint is practically unusable. Ubuntu's? You could easily build one that includes only the special chars you want and have them sent to the clipboard as you need them. If you're not using Parcellite now, you could install that and fill it with the chars you need and deselect "Use Copy" in its preferences so it won't add anything else. You can then call it from its panel icon and set whatever char you need as the current clipboard selection. You could also look into your keyboard layout. Some of them offer very interesting shortcuts, although not all of them are convenient for all users. You can also create one or customize a standard one to add the chars you need. There's a reasonable amount of information about this available on the net if you feel so inclined. Good Luck! Warren From gerry.orkin at gmail.com Mon Mar 21 03:59:03 2011 From: gerry.orkin at gmail.com (Gerry) Date: Mon, 21 Mar 2011 18:59:03 +1100 Subject: Monitoring sound In-Reply-To: <201103210116.59804.warren@warrensweb.us> References: <4D8684A3.3000903@fourthworld.com> <201103210116.59804.warren@warrensweb.us> Message-ID: <72A008F92EC14A8482DBC88DFB93A8E4@gmail.com> Hi again In iOS I have to monitor the playing of a sound while the user browses the app, going from one screen/card to the next. If a sound is playing, I show a button, but if the sound ends, I want the button to be hidden. In Hypercard I would have used idle. Is that still a good way to implement this in LiveCode? Cheers Gerry From tsj at unimelb.edu.au Mon Mar 21 04:28:16 2011 From: tsj at unimelb.edu.au (Terry Judd) Date: Mon, 21 Mar 2011 19:28:16 +1100 Subject: combobox In-Reply-To: <66E2C082-7027-4AF2-B79D-9B9E5BF9CC9D@kagi.com> Message-ID: On 21/03/11 3:04 PM, "Kee Nethery" wrote: > > On Mar 20, 2011, at 7:46 PM, Terry Judd wrote: >> >> On 21/03/11 12:38 PM, "Kee Nethery" wrote: >> >>> Thanks Terry, >>> >>> Actually I'm at the point of one step forward two steps back. >>> >>> I appear to be unable to put the return delimited list into the combobox >>> more >>> than a couple of times. I've tried all of these variations of the script to >>> alter the combobox text: >>> >>> put theList into me >>> put theList into button "myComboBox" >>> put theList into field "myComboBox" of button "myComboBox" >>> put theList into field "myComboBox" >> >> I think you should be setting the text of the button. > > set the text of button "myComboBox" to theList > > Good suggestion, but it crashed. Well, that's a real problem. FWIW I can't reproduce a crash here in 4.5.3 (Mac) or 4.5.1 (Win). I've just tried a slightly more sophisticated version of my test routine (that is more like the situation you originally outlined) and it all works fine. I'm using a list of words in a field as a starting point rather than a database, so is there any chance you have some dodgy or unexpected characters/linebreaks/encoding that might be throwing a spanner in the works? Terry... -- Dr Terry Judd | Senior Lecturer in Medical Education Medical Education Unit Melbourne Medical School The University of Melbourne From scott at elementarysoftware.com Mon Mar 21 04:29:38 2011 From: scott at elementarysoftware.com (Scott Morrow) Date: Mon, 21 Mar 2011 01:29:38 -0700 Subject: Monitoring sound In-Reply-To: <72A008F92EC14A8482DBC88DFB93A8E4@gmail.com> References: <4D8684A3.3000903@fourthworld.com> <201103210116.59804.warren@warrensweb.us> <72A008F92EC14A8482DBC88DFB93A8E4@gmail.com> Message-ID: <90E61AF5-D3FE-499B-8B7A-F58B458024E7@elementarysoftware.com> Hello Gerry, From the docs: "If no audio clip is playing, the sound function returns done" If you don't have any other sounds playing you could set up a "send in time" loop to check if the sound was done which would be more efficient than using idle. For example: local lPendingMessageQueue --> your code here -- begin playing your sound here send IsSoundDone to me in 200 millisec -- or whatever time span works best -- capture the "send" message ID here if you want to cancel it later put CR & the result after lPendingMessageQueue --> more of your code here command IsSoundDone if the sound is done then -- hide the button -- possibly cancel any pending message IDs if this command is sent from multiple sources -- put empty into lPendingMessageQueue else -- check again in a little bit send IsSoundDone to me in 200 millisec -- or whatever time span works best end if end IsSoundDone Note: this is untested pseudo code off the cuff... Scott Morrow Elementary Software (Now with 20% less chalk dust!) web http://elementarysoftware.com/ email scott at elementarysoftware.com ------------------------------------------------------ On Mar 21, 2011, at 12:59 AM, Gerry wrote: > Hi again > > In iOS I have to monitor the playing of a sound while the user browses the app, going from one screen/card to the next. If a sound is playing, I show a button, but if the sound ends, I want the button to be hidden. > > In Hypercard I would have used idle. Is that still a good way to implement this in LiveCode? > > Cheers > > Gerry > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gerry.orkin at gmail.com Mon Mar 21 05:18:27 2011 From: gerry.orkin at gmail.com (Gerry) Date: Mon, 21 Mar 2011 20:18:27 +1100 Subject: Monitoring sound In-Reply-To: <90E61AF5-D3FE-499B-8B7A-F58B458024E7@elementarysoftware.com> References: <4D8684A3.3000903@fourthworld.com> <201103210116.59804.warren@warrensweb.us> <72A008F92EC14A8482DBC88DFB93A8E4@gmail.com> <90E61AF5-D3FE-499B-8B7A-F58B458024E7@elementarysoftware.com> Message-ID: <3F5D2AC19B104453BEB772BF8BA7675E@gmail.com> Scott, many thanks! I'm still dusting off the cobwebs, and trawling through the user guide. g -- photo site: http://gerryorkin.com On Monday, 21 March 2011 at 7:29 PM, Scott Morrow wrote: > Hello Gerry, > > From the docs: > "If no audio clip is playing, the sound function returns done" > > If you don't have any other sounds playing you could set up a "send in time" loop to check if the sound was done which would be more efficient than using idle. > > For example: > > local lPendingMessageQueue > > --> your code here > -- begin playing your sound here > send IsSoundDone to me in 200 millisec -- or whatever time span works best > -- capture the "send" message ID here if you want to cancel it later > put CR & the result after lPendingMessageQueue > --> more of your code here > > > command IsSoundDone > if the sound is done then > -- hide the button > -- possibly cancel any pending message IDs if this command is sent from multiple sources > -- put empty into lPendingMessageQueue > else > -- check again in a little bit > send IsSoundDone to me in 200 millisec -- or whatever time span works best > end if > end IsSoundDone > > Note: this is untested pseudo code off the cuff... > > > Scott Morrow > > Elementary Software > (Now with 20% less chalk dust!) > web http://elementarysoftware.com/ > email scott at elementarysoftware.com > ------------------------------------------------------ > > > > On Mar 21, 2011, at 12:59 AM, Gerry wrote: > > > Hi again > > > > In iOS I have to monitor the playing of a sound while the user browses the app, going from one screen/card to the next. If a sound is playing, I show a button, but if the sound ends, I want the button to be hidden. > > > > In Hypercard I would have used idle. Is that still a good way to implement this in LiveCode? > > > > Cheers > > > > Gerry > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From richmondmathewson at gmail.com Mon Mar 21 06:35:11 2011 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 21 Mar 2011 12:35:11 +0200 Subject: Unicode and Mac keyboard layouts. Message-ID: <4D8729DF.3010604@gmail.com> Hey-Ho; there I am, merrily typing a letter to Mother in Sanskrit in my (endless system development lifecycle) Devawriter and the Mac merrily trips over into a Devanagari keyboard entry method that starts interfering with the method in my stack . . . . . . big, BIG, bummer! 1. Has anybody (err . . . Devin ?) had this sort of problem? 2. Has anybody any bright ideas how to overcome this? sincerely, Richmond. From kevin at runrev.com Mon Mar 21 08:09:33 2011 From: kevin at runrev.com (Kevin Miller) Date: Mon, 21 Mar 2011 12:09:33 +0000 Subject: [OT] Post Conference Fun Stuff In-Reply-To: Message-ID: On 21/03/2011 01:24, "Scott Rossi" wrote: > For anyone attending the LiveCode dev conference in April, if you're not > from the area, I'd strongly suggest allowing a couple of hours one day to > visit the Computer History Museum, located in Mountain View, about a 1/2 > hour away from the conference venue. > > > Housed in a refurbished building that was once part of the Silicon Graphics > campus, the exhibits start with historical devices, through mechanical and > early electrical machines for business, consumer, and military use, up > through the common digital computers and devices of today. The route > through the exhibits is a bit maze-like, but the whole experience is > beautifully designed, with several short video installations, and includes a > bunch of interesting side-note pop culture computing info, in addition to > the rich history. All the big names and companies (and those not so big) > are represented, and for those of you still clinging to the bygone days of > programming, you'll be happy to know one of your favorites is displayed, > still in its shrinkwrapped glory: > > > Note the museum is only open Wed - Sun, so plan your visit accordingly. I'm not ready to announce anything yet but just so you know... We are looking at whether we can organize a group trip to this museum in an evening as part of the conference. Please stay tuned. Kind regards, Kevin Kevin Miller ~ kevin at runrev.com ~ http://www.runrev.com/ LiveCode: Compile-free coding, the faster path to better apps From peterwawood at gmail.com Mon Mar 21 08:28:29 2011 From: peterwawood at gmail.com (Peter W A Wood) Date: Mon, 21 Mar 2011 20:28:29 +0800 Subject: Unicode and Mac keyboard layouts. In-Reply-To: <4D8729DF.3010604@gmail.com> References: <4D8729DF.3010604@gmail.com> Message-ID: <458728A7-86BB-405B-AA6F-1B050B96C8DA@gmail.com> Richmond On 21 Mar 2011, at 18:35, Richmond wrote: > Hey-Ho; there I am, merrily typing a letter to Mother in Sanskrit in > my (endless system development lifecycle) Devawriter and the Mac > merrily trips over into a Devanagari keyboard entry method that starts > interfering with the method in my stack . . . You wouldn't happen to have Devanagari or Devanagari - QWERTY selected under System Preferences>Language & Test>Input Sources by any chance would you? A shot in the dark. Peter From bvg at mac.com Mon Mar 21 08:44:09 2011 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Mon, 21 Mar 2011 13:44:09 +0100 Subject: Dial with USB modem In-Reply-To: <8988486A-7030-4AA2-A89C-71BA758D0C0B@aim.com> References: <8988486A-7030-4AA2-A89C-71BA758D0C0B@aim.com> Message-ID: <2D6F8A13-7824-441E-9080-987BECCFBD71@mac.com> Unless there's some command line app that you can use, you would need an external that hooks into the driver :( On 21 Mar 2011, at 05:24, Philip Usher wrote: > Back in the days when I was using a serial modem, I developed several stacks which included dialing phone numbers using write to file modem. How might Revolution write to a built in USB modem on a Mac G4 to dial phone numbers as is done in apps such as ABDialer and Dialetic? > > thanks, Philip Usher > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From peterwawood at gmail.com Mon Mar 21 09:04:55 2011 From: peterwawood at gmail.com (Peter W A Wood) Date: Mon, 21 Mar 2011 21:04:55 +0800 Subject: Unicode and Mac keyboard layouts. In-Reply-To: <4D8729DF.3010604@gmail.com> References: <4D8729DF.3010604@gmail.com> Message-ID: <771B077E-81D4-41C1-8E5E-B5DFDE1FDFC2@gmail.com> Richmond > Hey-Ho; there I am, merrily typing a letter to Mother in Sanskrit in > my (endless system development lifecycle) Devawriter and the Mac > merrily trips over into a Devanagari keyboard entry method that starts > interfering with the method in my stack . . . Another thought is that you may have accidentally entered the keyboard shortcuts to change the input keyboard type: Cmd-Space (toggle between latest pair of keyboards) or Option-Cmd-Space (next keyboard in the list of those selected). Regards Peter From scott at tactilemedia.com Mon Mar 21 12:21:57 2011 From: scott at tactilemedia.com (Scott Rossi) Date: Mon, 21 Mar 2011 08:21:57 -0800 Subject: [OT] Post Conference Fun Stuff In-Reply-To: Message-ID: Recently, Kevin Miller wrote: > I'm not ready to announce anything yet but just so you know... We are > looking at whether we can organize a group trip to this museum in an evening > as part of the conference. Please stay tuned. Well, as Mark W suggested, there's also The Tech, which is a lot closer, and has more hands-on exhibits. (They also have the Body Worlds exhibit going on currently.) The best by far though, is the Exploratorium, but this is up in San Francisco, a good hour away. More science than technology, but the exhibits are quite engaging. ----- If you haven't been before, the SF Bay Area has a lot to offer, too much in fact: For those into history mixed with a bit of mystery, there's the Rosicrucian Egyptian Museum in San Jose. The local San Jose art museum: There's NASA Ames Exploration Center: If you're into flying and aviation, there's the phenomenal Hiller Museum of Aviation farther north: A bit pricey, and not that mysterious: (better to do the flashlight tour at night but this only happens around Halloween) There's the tiny but cute pop culture PEZ museum, about 45 min away. (Ignore the pic on the site -- the place is the size of a broom closet) If you pay the owner $2, he'll grant entrance to the memorabilia room and personally give you a 5 minute monologue on the history of PEZ. There's a Cartoon Art museum in San Francisco, again a bit far, but for folks who have the time and are interested in the medium... San Francisco has all the big art museums: MOMA de Yung Adademy of Sciences So many others... Regards, Scott Rossi Creative Director Tactile Media, UX Design From kee at kagi.com Mon Mar 21 11:51:35 2011 From: kee at kagi.com (Kee Nethery) Date: Mon, 21 Mar 2011 08:51:35 -0700 Subject: combobox In-Reply-To: References: Message-ID: On Mar 21, 2011, at 1:28 AM, Terry Judd wrote: > Well, that's a real problem. FWIW I can't reproduce a crash here in 4.5.3 > (Mac) or 4.5.1 (Win). > > I've just tried a slightly more sophisticated version of my test routine > (that is more like the situation you originally outlined) and it all works > fine. I'm using a list of words in a field as a starting point rather than a > database, so is there any chance you have some dodgy or unexpected > characters/linebreaks/encoding that might be throwing a spanner in the > works? The list is all lower case ascii characters. I double checked and yep, all lower case ASCII. I'm beginning to wonder if the IDE is corrupted somehow? Or maybe this is a bug that got fixed in 4.5.2 or 4.5.3? Thank you so much for all the suggestions. Will see if the Livecode team can provide one example of how to use a combobox. Thanks, Kee From bobs at twft.com Mon Mar 21 12:19:20 2011 From: bobs at twft.com (Bob Sneidar) Date: Mon, 21 Mar 2011 09:19:20 -0700 Subject: SQL and other databases In-Reply-To: <4D865C2F.6000400@gmail.com> References: <4D865C2F.6000400@gmail.com> Message-ID: Hypercard began to slow down tremendously once you got past 1000 cards. People began to experience index corruption not long after that. Stacks could become unreadable and unrepairable. The promise of SQL as I recall was to be able to have a standard query language that worked with foreign databases. You didn't have to know or care about the engine on the other side. As long as it as SQL, you could query it. Real life is as always a bit different. Everyone loves standards, so long as they can dictate what the standards are. I have encountered a number of differences in different engines relating to syntax, when to use regular quotes, when to use sequel quotes, what column types can or cannot be enumerated, etc. Also, SQL was supposed to be able to host huge, almost unlimited databases, and have the capability of handling a vast number of connections. This was seen as an essential step in the *evolution* of databases, because people envisioned the whole world being tied together and people being able to find out just about anything about anything by sitting down at their computer and searching for it. Laughable huh? ;-) Bob On Mar 20, 2011, at 12:57 PM, Richmond wrote: > Maybe I'm a bit naive when it comes to databases, > but I have all the children and their parents and so on, in > a database that consists of a Livecode stack and nothing > else. > > But then, in 1989 I had all the kids at Madrasa Emirat al-Khasa > school, Al Ain, UAE in a database written and run on my BBC Master > and stored on a single 800 kb floppy disc; so anything after that > has got to seem better. > > So, I am really interested to know why so many folk seem interested in using > Livecode to write database front-ends rather than using Livecode for the > database as such. > > One of Bill Atkinson's initial premises was to make Hypercard non-linear, so > setting up a relational database should be 'pips'. > > sincerely, Richmond. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at mollysrevenge.com Mon Mar 21 12:34:34 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Mon, 21 Mar 2011 09:34:34 -0700 Subject: SQL and other databases In-Reply-To: References: <4D865C2F.6000400@gmail.com> Message-ID: Bob, I'm about to make the leap from sqlite to mySQL so I'm very interested in the differences you mentioned. I think I've seen some of them in posts on the list here but any chance you could summarise them? I guess I am expecting some functional improvements in mySQL over sqlite since sqlite advertises itself as a subset of the sql standards but it sounds like you've found some syntactical differences as well. Pete Haworth On Mar 21, 2011, at 9:19 AM, Bob Sneidar wrote: > I have encountered a number of differences in different engines relating to syntax, when to use regular quotes, when to use sequel quotes, what column types can or cannot be enumerated, etc. From stephenREVOLUTION2 at barncard.com Mon Mar 21 13:07:52 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Mon, 21 Mar 2011 10:07:52 -0700 Subject: Dial with USB modem In-Reply-To: <2D6F8A13-7824-441E-9080-987BECCFBD71@mac.com> References: <8988486A-7030-4AA2-A89C-71BA758D0C0B@aim.com> <2D6F8A13-7824-441E-9080-987BECCFBD71@mac.com> Message-ID: If this is a one-shot project, you could use an old-fashioned external serial-connected modem and a Keyspan USB-serial adaptor. 2011/3/21 Bj?rnke von Gierke > Unless there's some command line app that you can use, you would need an > external that hooks into the driver :( > > On 21 Mar 2011, at 05:24, Philip Usher wrote: > > > Back in the days when I was using a serial modem, I developed several > stacks which included dialing phone numbers using write to file modem. How > might Revolution write to a built in USB modem on a Mac G4 to dial phone > numbers as is done in apps such as ABDialer and Dialetic? > > > > thanks, Philip Usher > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Stephen Barncard San Francisco Ca. USA more about sqb From bobs at twft.com Mon Mar 21 13:08:58 2011 From: bobs at twft.com (Bob Sneidar) Date: Mon, 21 Mar 2011 10:08:58 -0700 Subject: SQL and other databases In-Reply-To: References: <4D865C2F.6000400@gmail.com> Message-ID: Hi Peter. Well I don't have a complete listing because I am finding them out as I go. My current project gets the SQL to create a table from the sqlite_master table, then massages it to create the same table in mySQL. MySQL uses SELECT CREATE TABLE to get this information. One gotcha is that sqLite allows enumeration (is that the right word??) in their datetime column (although why I cannot tell). That is you can declare datetime(30) but you cannot do this in mySQL. I have also discovered that sqLite allows you to declare a default value for a char type column without using NOT NULL. mySQL requires NOT NULL if you declare a default. You cannot have a default for a TEXT type in mySQL (if the manual is correct). I am not sure but I don't think sqLite uses what I call sequel quotes the ` character (shift-tilde). Someone a while back posted a link to a web page that described a number of things you could NOT do in adding columns to an existing sqLite table. The consensus was that it was better to simply dump the data and create the new table, and then re-import the data. For instance you can insert a column between existing columns in mySQL. You cannot in sqLite. sqLite is NOT multiuser, in the sense that you cannot have 2 read/write connections at one time. Although you CAN have many read only connections, only one can be read/write. In your case, going from sqLite to mySQL, I don't think you will have any problems with your actual data queries. Select statements are pretty standard (although I have been told by my web dev friend that MS SQL differs significantly in their query standards. What a surprise!) Bob On Mar 21, 2011, at 9:34 AM, Peter Haworth wrote: > Bob, > I'm about to make the leap from sqlite to mySQL so I'm very interested in the differences you mentioned. I think I've seen some of them in posts on the list here but any chance you could summarise them? I guess I am expecting some functional improvements in mySQL over sqlite since sqlite advertises itself as a subset of the sql standards but it sounds like you've found some syntactical differences as well. > > Pete Haworth > > On Mar 21, 2011, at 9:19 AM, Bob Sneidar wrote: > >> I have encountered a number of differences in different engines relating to syntax, when to use regular quotes, when to use sequel quotes, what column types can or cannot be enumerated, etc. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jhj at jhj.com Mon Mar 21 13:14:39 2011 From: jhj at jhj.com (Jerry J) Date: Mon, 21 Mar 2011 10:14:39 -0700 Subject: Dial with USB modem In-Reply-To: <8988486A-7030-4AA2-A89C-71BA758D0C0B@aim.com> References: <8988486A-7030-4AA2-A89C-71BA758D0C0B@aim.com> Message-ID: <7ABEE8AF-9163-4105-9C1A-4E80A40AE029@jhj.com> Does it not show up in the driverNames? --Jerry J On Mar 20, 2011, at 9:24 PM, Philip Usher wrote: > Back in the days when I was using a serial modem, I developed several stacks which included dialing phone numbers using write to file modem. How might Revolution write to a built in USB modem on a Mac G4 to dial phone numbers as is done in apps such as ABDialer and Dialetic? > > thanks, Philip Usher > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Mon Mar 21 13:19:25 2011 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 21 Mar 2011 19:19:25 +0200 Subject: Unicode and Mac keyboard layouts. In-Reply-To: <458728A7-86BB-405B-AA6F-1B050B96C8DA@gmail.com> References: <4D8729DF.3010604@gmail.com> <458728A7-86BB-405B-AA6F-1B050B96C8DA@gmail.com> Message-ID: <4D87889D.8010005@gmail.com> On 03/21/2011 02:28 PM, Peter W A Wood wrote: > Richmond > > On 21 Mar 2011, at 18:35, Richmond wrote: > >> Hey-Ho; there I am, merrily typing a letter to Mother in Sanskrit in >> my (endless system development lifecycle) Devawriter and the Mac >> merrily trips over into a Devanagari keyboard entry method that starts >> interfering with the method in my stack . . . > You wouldn't happen to have Devanagari or Devanagari - QWERTY selected under > System Preferences>Language& Test>Input Sources by any chance would you? That is EXACTLY the problem; if those Input Sources are selected everything goes wrong. What worries me is that I have no way of ensuring that end-users, who, after all, work with Devanagari, won't have those Input Sources selected. So my question is whether there is anyway to set Livecode to over-ride those Input Sources. > A shot in the dark. > > Peter > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at mollysrevenge.com Mon Mar 21 13:21:59 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Mon, 21 Mar 2011 10:21:59 -0700 Subject: SQL and other databases In-Reply-To: References: <4D865C2F.6000400@gmail.com> Message-ID: <59B80C23-8FB0-44FC-859E-8F43292BF5B2@mollysrevenge.com> Thanks Bob, that's a good start. I'll search for the post with the link to differences. I hope you're right that my queries will all still work fine. tRight now, I'm struggling to get the database created. I was hoping I could export the db structure using the Firefox SQLite manager and then import the resulting file with the SequelPro Import feature but I get a host of syntax error messages when I do the import. The error messages are pretty useless because they are just generalised messages like"Syntax error near xyz, refer to your mySQL manual". I think almost all of them are something to with either PRIMARY KEY or foreign key definitions specified with the REFERENCES keyword but haven't tracked down just what the problem is yet. Pete Haworth On Mar 21, 2011, at 10:08 AM, Bob Sneidar wrote: > Hi Peter. > > Well I don't have a complete listing because I am finding them out as I go. My current project gets the SQL to create a table from the sqlite_master table, then massages it to create the same table in mySQL. MySQL uses SELECT CREATE TABLE to get this information. > > One gotcha is that sqLite allows enumeration (is that the right word??) in their datetime column (although why I cannot tell). That is you can declare datetime(30) but you cannot do this in mySQL. > > I have also discovered that sqLite allows you to declare a default value for a char type column without using NOT NULL. mySQL requires NOT NULL if you declare a default. You cannot have a default for a TEXT type in mySQL (if the manual is correct). > > I am not sure but I don't think sqLite uses what I call sequel quotes the ` character (shift-tilde). > > Someone a while back posted a link to a web page that described a number of things you could NOT do in adding columns to an existing sqLite table. The consensus was that it was better to simply dump the data and create the new table, and then re-import the data. For instance you can insert a column between existing columns in mySQL. You cannot in sqLite. > > sqLite is NOT multiuser, in the sense that you cannot have 2 read/write connections at one time. Although you CAN have many read only connections, only one can be read/write. > > In your case, going from sqLite to mySQL, I don't think you will have any problems with your actual data queries. Select statements are pretty standard (although I have been told by my web dev friend that MS SQL differs significantly in their query standards. What a surprise!) > > Bob > > > On Mar 21, 2011, at 9:34 AM, Peter Haworth wrote: > >> Bob, >> I'm about to make the leap from sqlite to mySQL so I'm very interested in the differences you mentioned. I think I've seen some of them in posts on the list here but any chance you could summarise them? I guess I am expecting some functional improvements in mySQL over sqlite since sqlite advertises itself as a subset of the sql standards but it sounds like you've found some syntactical differences as well. >> >> Pete Haworth >> >> On Mar 21, 2011, at 9:19 AM, Bob Sneidar wrote: >> >>> I have encountered a number of differences in different engines relating to syntax, when to use regular quotes, when to use sequel quotes, what column types can or cannot be enumerated, etc. >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bobs at twft.com Mon Mar 21 13:43:28 2011 From: bobs at twft.com (Bob Sneidar) Date: Mon, 21 Mar 2011 10:43:28 -0700 Subject: SQL and other databases In-Reply-To: <59B80C23-8FB0-44FC-859E-8F43292BF5B2@mollysrevenge.com> References: <4D865C2F.6000400@gmail.com> <59B80C23-8FB0-44FC-859E-8F43292BF5B2@mollysrevenge.com> Message-ID: I may have mentioned in passing in another post, I use MySQLWorkbench. If you copy/paste the sequel to create the table into the query browser, you will get a red X to the left of the offending line, and the part that is wrong will be in another color than the "good" sql. It's pretty easy to see or determine at that point what the problem is. I would think just about any SQL tool would have some kind of feature like this. Bob On Mar 21, 2011, at 10:21 AM, Peter Haworth wrote: > Thanks Bob, that's a good start. I'll search for the post with the link to differences. > > I hope you're right that my queries will all still work fine. tRight now, I'm struggling to get the database created. I was hoping I could export the db structure using the Firefox SQLite manager and then import the resulting file with the SequelPro Import feature but I get a host of syntax error messages when I do the import. The error messages are pretty useless because they are just generalised messages like"Syntax error near xyz, refer to your mySQL manual". I think almost all of them are something to with either PRIMARY KEY or foreign key definitions specified with the REFERENCES keyword but haven't tracked down just what the problem is yet. > > Pete Haworth > From pete at mollysrevenge.com Mon Mar 21 14:13:55 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Mon, 21 Mar 2011 11:13:55 -0700 Subject: SQL and other databases In-Reply-To: References: <4D865C2F.6000400@gmail.com> <59B80C23-8FB0-44FC-859E-8F43292BF5B2@mollysrevenge.com> Message-ID: Right, I'm slowly getting to grips with this. So far, I've discovered that table names/column names should be enclosed in back ticks not double quote characters and that SQLite AUTOINCREMENT = mySQL AUTO_INCREMENT. Weems like all my tables are being created once I make those changes. Next step will be try INSERTing data. Pete Haworth -------------- next part -------------- http://www.mollysrevenge.com http://www.sonicbids.com/MollysRevenge http://www.myspace.com/mollysrevengeband On Mar 21, 2011, at 10:43 AM, Bob Sneidar wrote: > I may have mentioned in passing in another post, I use MySQLWorkbench. If you copy/paste the sequel to create the table into the query browser, you will get a red X to the left of the offending line, and the part that is wrong will be in another color than the "good" sql. It's pretty easy to see or determine at that point what the problem is. I would think just about any SQL tool would have some kind of feature like this. > > Bob > > > On Mar 21, 2011, at 10:21 AM, Peter Haworth wrote: > >> Thanks Bob, that's a good start. I'll search for the post with the link to differences. >> >> I hope you're right that my queries will all still work fine. tRight now, I'm struggling to get the database created. I was hoping I could export the db structure using the Firefox SQLite manager and then import the resulting file with the SequelPro Import feature but I get a host of syntax error messages when I do the import. The error messages are pretty useless because they are just generalised messages like"Syntax error near xyz, refer to your mySQL manual". I think almost all of them are something to with either PRIMARY KEY or foreign key definitions specified with the REFERENCES keyword but haven't tracked down just what the problem is yet. >> >> Pete Haworth >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From keith.clarke at clarkeandclarke.co.uk Mon Mar 21 15:14:37 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Mon, 21 Mar 2011 19:14:37 +0000 Subject: Formatting individual words in a text field manually Message-ID: <2E995BB5-C620-4E6E-8459-AE61D2794DA6@clarkeandclarke.co.uk> Hi folks, I realise it may be anathema to ask a development community how to do things manually but I'm creating a concept prototype and want to show example results from scripts, without having to write them all yet (before I get the budget!). So, what is the easiest way to manually format an individual word in a text field - to embolden, colour or add a hyperlink? Is there maybe a development plug-in that works as a rich text editor? Best, Keith.. From dunbarx at aol.com Mon Mar 21 15:19:30 2011 From: dunbarx at aol.com (dunbarx at aol.com) Date: Mon, 21 Mar 2011 15:19:30 -0400 Subject: Formatting individual words in a text field manually In-Reply-To: <2E995BB5-C620-4E6E-8459-AE61D2794DA6@clarkeandclarke.co.uk> References: <2E995BB5-C620-4E6E-8459-AE61D2794DA6@clarkeandclarke.co.uk> Message-ID: <8CDB61403819BEF-B50-22EE@webmail-m021.sysops.aol.com> Keith. There is the "text" menu. It doesn't have everything, though. Craig Newman -----Original Message----- From: Keith Clarke To: How to use LiveCode Sent: Mon, Mar 21, 2011 3:14 pm Subject: Formatting individual words in a text field manually Hi folks, I realise it may be anathema to ask a development community how to do things manually but I'm creating a concept prototype and want to show example results from scripts, without having to write them all yet (before I get the budget!). So, what is the easiest way to manually format an individual word in a text field - to embolden, colour or add a hyperlink? Is there maybe a development plug-in that works as a rich text editor? Best, Keith.. _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode = From stephenREVOLUTION2 at barncard.com Mon Mar 21 15:31:55 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Mon, 21 Mar 2011 12:31:55 -0700 Subject: Formatting individual words in a text field manually In-Reply-To: <2E995BB5-C620-4E6E-8459-AE61D2794DA6@clarkeandclarke.co.uk> References: <2E995BB5-C620-4E6E-8459-AE61D2794DA6@clarkeandclarke.co.uk> Message-ID: You could write a quick html text creator from scratch almost faster that it would take me to find a demo stack online somewhere. We've all rolled a few of our own tools while coding, it's so easy. Having said that, if you contact me off-list I will forward a stack that converts text in a Livecode field to html and back again and includes a set of cleverly-implemented formatting buttons that you could adopt. Off list because I found the stack online via this list a long time ago and have not been able to contact the author (and I modified it)- so I'm not comfortable posting it online. On 21 March 2011 12:14, Keith Clarke wrote: > Hi folks, > I realise it may be anathema to ask a development community how to do > things manually but I'm creating a concept prototype and want to show > example results from scripts, without having to write them all yet (before I > get the budget!). > So, what is the easiest way to manually format an individual word in a text > field - to embolden, colour or add a hyperlink? Is there maybe a development > plug-in that works as a rich text editor? > Best, > Keith.. > _______________________________________________ > Stephen Barncard San Francisco Ca. USA more about sqb From keith.clarke at clarkeandclarke.co.uk Mon Mar 21 15:40:20 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Mon, 21 Mar 2011 19:40:20 +0000 Subject: Formatting individual words in a text field manually In-Reply-To: <8CDB61403819BEF-B50-22EE@webmail-m021.sysops.aol.com> References: <2E995BB5-C620-4E6E-8459-AE61D2794DA6@clarkeandclarke.co.uk> <8CDB61403819BEF-B50-22EE@webmail-m021.sysops.aol.com> Message-ID: <5495537D-4D6D-4CCD-9ED6-8B3096F25A6D@clarkeandclarke.co.uk> ...ah, great - thanks Craig. That'll do just nicely for what I'm cobbling together. Not quite a native version of CKEditor but I don't need much for this concept demonstrator. On 21 Mar 2011, at 19:19, dunbarx at aol.com wrote: > Keith. > > > There is the "text" menu. It doesn't have everything, though. > > > Craig Newman > > > > > > -----Original Message----- > From: Keith Clarke > To: How to use LiveCode > Sent: Mon, Mar 21, 2011 3:14 pm > Subject: Formatting individual words in a text field manually > > > Hi folks, > I realise it may be anathema to ask a development community how to do things > manually but I'm creating a concept prototype and want to show example results > from scripts, without having to write them all yet (before I get the budget!). > So, what is the easiest way to manually format an individual word in a text > field - to embolden, colour or add a hyperlink? Is there maybe a development > plug-in that works as a rich text editor? > Best, > Keith.. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > = > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From keith.clarke at clarkeandclarke.co.uk Mon Mar 21 15:46:24 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Mon, 21 Mar 2011 19:46:24 +0000 Subject: Formatting individual words in a text field manually In-Reply-To: References: <2E995BB5-C620-4E6E-8459-AE61D2794DA6@clarkeandclarke.co.uk> Message-ID: Thanks, Stephen, I'm still very much a LiveCode beginner and need to learn more about the ins and outs of text manipulation over the next few weeks, so I'd like to see that example stack. Meanwhile, as I have to deliver this demonstrator quickly (and as things like links have nowhere to go yet) the text menu works just fine. Best, Keith.. On 21 Mar 2011, at 19:31, stephen barncard wrote: > You could write a quick html text creator from scratch almost faster that it > would take me to find a demo stack online somewhere. We've all rolled a few > of our own tools while coding, it's so easy. > > Having said that, if you contact me off-list I will forward a stack that > converts text in a Livecode field to html and back again and includes a set > of cleverly-implemented formatting buttons that you could adopt. Off list > because I found the stack online via this list a long time ago and have not > been able to contact the author (and I modified it)- so I'm not comfortable > posting it online. > > On 21 March 2011 12:14, Keith Clarke wrote: > >> Hi folks, >> I realise it may be anathema to ask a development community how to do >> things manually but I'm creating a concept prototype and want to show >> example results from scripts, without having to write them all yet (before I >> get the budget!). >> So, what is the easiest way to manually format an individual word in a text >> field - to embolden, colour or add a hyperlink? Is there maybe a development >> plug-in that works as a rich text editor? >> Best, >> Keith.. >> _______________________________________________ >> > > Stephen Barncard > San Francisco Ca. USA > > more about sqb > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From devin_asay at byu.edu Mon Mar 21 15:57:00 2011 From: devin_asay at byu.edu (Devin Asay) Date: Mon, 21 Mar 2011 13:57:00 -0600 Subject: Unicode and Mac keyboard layouts. In-Reply-To: <4D87889D.8010005@gmail.com> References: <4D8729DF.3010604@gmail.com> <458728A7-86BB-405B-AA6F-1B050B96C8DA@gmail.com> <4D87889D.8010005@gmail.com> Message-ID: On Mar 21, 2011, at 11:19 AM, Richmond wrote: > On 03/21/2011 02:28 PM, Peter W A Wood wrote: >> Richmond >> >> On 21 Mar 2011, at 18:35, Richmond wrote: >> >>> Hey-Ho; there I am, merrily typing a letter to Mother in Sanskrit in >>> my (endless system development lifecycle) Devawriter and the Mac >>> merrily trips over into a Devanagari keyboard entry method that starts >>> interfering with the method in my stack . . . >> You wouldn't happen to have Devanagari or Devanagari - QWERTY selected under >> System Preferences>Language& Test>Input Sources by any chance would you? > That is EXACTLY the problem; if those Input Sources are selected > everything goes wrong. > > What worries me is that I have no way of ensuring that end-users, who, > after all, work with > Devanagari, won't have those Input Sources selected. > > So my question is whether there is anyway to set Livecode to over-ride > those Input Sources. Richmond, I had precisely this problem with an Arabic project one of my students produced several years back. Unfortunately my research did not turn up a solution at that time, other than to make a note to that effect in your help documents. Not that helpful, I know. If you're on Mac OS it might be possible to use an AppleScript to change to the desired input method. Devin Devin Asay Humanities Technology and Research Support Center Brigham Young University From andre at andregarzia.com Mon Mar 21 16:16:48 2011 From: andre at andregarzia.com (Andre Garzia) Date: Mon, 21 Mar 2011 17:16:48 -0300 Subject: [RevServer] LiveCode playing well with PHP Message-ID: Folks, Today I faced a little problem that appeared quite hard first. I use a commercial captcha library that was built in PHP. The problem was that the captcha library wrote to the PHP Session and the captcha verification tried to read from that session. My confirmation page is an old-style Revolution CGI, so the captcha verification was failing because of the silly PHP Session. After reading and some reverse engineering, I was able to read from the files that PHP uses to store its session data. Now I am able to read and write to disk-based session data used by PHP and the captcha is working. If anyone here is trying to read from php session from inside livecode come in contact and I will explain, I don't have generalized routines. cheers andre -- http://www.andregarzia.com All We Do Is Code. From keith.clarke at clarkeandclarke.co.uk Mon Mar 21 19:10:20 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Mon, 21 Mar 2011 23:10:20 +0000 Subject: Stand-alone issues: lost images and go to (sub) stack scripts fail Message-ID: <141513E6-3B9F-4FB5-82EF-B942F57F1851@clarkeandclarke.co.uk> Hi folks, I need some help struggling with deploying my first multi-stack stand-alone. Images in the main stack and sub-stack (within the same folder as the .rev file) are greyed-out on both Mac and web deployments. On the web deployment none of the button or link scripts that use 'go to stack' to access sub-stacks work. Any advice on where to start trouble-shooting greatly appreciated. Best, Keith.. From bobs at twft.com Mon Mar 21 20:18:04 2011 From: bobs at twft.com (Bob Sneidar) Date: Mon, 21 Mar 2011 17:18:04 -0700 Subject: Getting a single column of a datagrid Message-ID: <2AB92A5A-51FE-46D8-B3D7-772783C74A27@twft.com> You may remember a while back my wanting a quick way to extract a single column of data from a datagrid without having to go through a repeat loop? Well if you use Trevor's sqlYoga, it comes with a neat little function called printkeys(). If you have it, try this trick: Let's say you have a datagrid called "myDatagrid" with 3 columns, columna, columnb, columnc. You just want columnc. -- get text of the array data put the dgData of group "myDatagrid" into aArray put printKeys(aArray) into theData -- now we have text -- at this point you need to know the name of your column filter theData with "*columnc: *" -- now just the columnc lines -- isolate everything before the first value which is leading spaces, -- the column name, a colon and a trailing space, the same for all lines put word 2 of theData into theWord put offset(theWord, theData) into firstChar -- now let's delete everything before the values on each line replace char 1 to firstChar - 1 of theData with empty in theData put theData -- this is now just the data in columnc It would be nice if printkeys() was public domain but I don't think it is. Still, sqlYoga is a good investment anyways. Heck I might have paid what he charges for sqlYoga just for that function! ;-) Bob From m.schonewille at economy-x-talk.com Mon Mar 21 21:47:47 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Tue, 22 Mar 2011 02:47:47 +0100 Subject: Live LiveCode Code Event #15 - wrap-up Message-ID: Dear LiveCoders, Last Saturday, 19 March, we had another nice on-line gathering of LiveCode fans. This time we had 2 interesting presentations, both of which you can watch again, if you missed the event. Jim demonstrated some methods of rapidly converting images to create kinds of moods and styles. He also showed how to view and learn from the many scripts in Seamless Tiles for image handling techniques and how to create and document a library of unique images that can make your stacks and web sites beautiful. Links and downloads mentioned in Jim's presentation: Wilhelm Sanke web page: http://www.sanke.org/MetaMedia/index.html Seamless Tiles Generator: http://blog.livecode.tv/wp-content/uploads/2011/03/SeamlessTiles2.zip More work by Wilhelm Sanke: http://www.sanke.org/MetaMedia/Samples.htm Gallery of 22 Web Site Headers: https://skitch.com/jimthewebmaster/sets/nfi/sankedemo031911 You can watch Jim's presentation here: http://www.ustream.tv/recorded/13430477 Tom demoed his iOS UINavigationBar in LiveCode and the iOS simulator. He also demonstrated a couple of ways to handle device resolution, orientation and how to do a one-app many-device deployment. Tom has provided the following stacks: http://blog.livecode.tv/wp-content/uploads/2011/03/iOS.rev_.zip http://blog.livecode.tv/wp-content/uploads/2011/03/iOSUINavBarKit.rev_1.zip http://blog.livecode.tv/wp-content/uploads/2011/03/Presentation14.livecode.zip You can watch Tom's presentation here: http://www.ustream.tv/recorded/13431387 eHUG, http://www.ehug.info , raffled off the e-book "Take Control of Working with Your iPad" courtesy of TidBITS, http://www.tidbits.com/ , which was won by Wouter. We are still looking for people who are willing to do a presentation. Please look at http://qery.us/oj for ideas and contact me through this web form http://qery.us/du to tell me when you're available. I hope to see you all at the event next time. We will be making announcements on this mailing list and at http://livecode.tv where you can also find a copy of this text. If the download links are garbled, please have a look at http://livecode.tv . -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce From pete at mollysrevenge.com Mon Mar 21 22:09:22 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Mon, 21 Mar 2011 19:09:22 -0700 Subject: Getting a single column of a datagrid In-Reply-To: <2AB92A5A-51FE-46D8-B3D7-772783C74A27@twft.com> References: <2AB92A5A-51FE-46D8-B3D7-772783C74A27@twft.com> Message-ID: There's a printkeys function in the datagrid library: send "printkeys" to group "Datagrid1", same format as I think you referred to for the SQLYoga printkeys. There is a caveat that it only prints the first line of each key but that might be OK for you. Pete Haworth On Mar 21, 2011, at 5:18 PM, Bob Sneidar wrote: > You may remember a while back my wanting a quick way to extract a single column of data from a datagrid without having to go through a repeat loop? Well if you use Trevor's sqlYoga, it comes with a neat little function called printkeys(). If you have it, try this trick: > > Let's say you have a datagrid called "myDatagrid" with 3 columns, columna, columnb, columnc. You just want columnc. > > -- get text of the array data > put the dgData of group "myDatagrid" into aArray > put printKeys(aArray) into theData -- now we have text > > -- at this point you need to know the name of your column > filter theData with "*columnc: *" -- now just the columnc lines > > -- isolate everything before the first value which is leading spaces, > -- the column name, a colon and a trailing space, the same for all lines > put word 2 of theData into theWord > put offset(theWord, theData) into firstChar > > -- now let's delete everything before the values on each line > replace char 1 to firstChar - 1 of theData with empty in theData > put theData -- this is now just the data in columnc > > It would be nice if printkeys() was public domain but I don't think it is. Still, sqlYoga is a good investment anyways. Heck I might have paid what he charges for sqlYoga just for that function! ;-) > > Bob > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From lists at mangomultimedia.com Mon Mar 21 23:56:06 2011 From: lists at mangomultimedia.com (Trevor DeVore) Date: Mon, 21 Mar 2011 23:56:06 -0400 Subject: Getting a single column of a datagrid In-Reply-To: <2AB92A5A-51FE-46D8-B3D7-772783C74A27@twft.com> References: <2AB92A5A-51FE-46D8-B3D7-772783C74A27@twft.com> Message-ID: On Mon, Mar 21, 2011 at 8:18 PM, Bob Sneidar wrote: > > It would be nice if printkeys() was public domain but I don't think it is. > Still, sqlYoga is a good investment anyways. Heck I might have paid what he > charges for sqlYoga just for that function! ;-) > Here you go :-) /** * \brief Returns all dimensions of an array in a text format. * * \param @pArray The array to print. * \param pDimension The dimensions of the array to start printing. Pass in empty in most cases. * \param pFullData Pass in true if you want to print off entire value of each key. By default only one lines is printed. * * \return Text */ *function* PrintArray @pArray, pDimension, pFullData *if* pDimension is empty *then* *put* 0 into pDimension *put* the keys of pArray into theKeys *sort* theKeys numeric *repeat* for each line theKey in theKeys *if* pArray[theKey] is an array *then* *put* _printCharXTimes(space, pDimension * 5) & theKey & cr aftertheText *put* pArray[theKey] into theTempArray *put* PrintArray(theTempArray, pDimension + 1, pFullData) aftertheText *else* *if* pFullData *then* *put* _printCharXTimes(space, pDimension * 5) & theKey & ":" && pArray[theKey] & cr after theText *else* *put* _printCharXTimes(space, pDimension * 5) & theKey & ":" && line 1 of pArray[theKey] & cr after theText *end* *if* *end* *if* *end* *repeat* *return* theText *end* PrintArray *private* *function* _printCharXTimes pChar, pTimes *local* theStr *repeat* with i = 1 to pTimes *put* pChar after theStr *end* *repeat* *return* theStr *end* _printCharXTimes -- Trevor DeVore Blue Mango Learning Systems ScreenSteps: http://www.screensteps.com LiveCode Resources for Developers: http://livecode.bluemangolearning.com From gerry.orkin at gmail.com Tue Mar 22 00:29:28 2011 From: gerry.orkin at gmail.com (Gerry) Date: Tue, 22 Mar 2011 15:29:28 +1100 Subject: libUrlDownloadToFile & urlProgress Message-ID: I'm using libUrlDownloadToFile to download some mp3s. As you might know libUrlDownloadToFile periodically sends the message "urlProgress" to the originating object so you can monitor the progress of downloads. It's working well, but I'm confused about when libUrlDownloadToFile stops sending the urlProgress message. Does it stop once the download is complete? Or do I have to explicitly kill it? I ask because I'm getting some weird behaviour that is very hard to explain...but knowing how and when the urlProgress message stops being sent will assist me in troubleshooting :) Oh, and I'm working off page 14 of the iOS release notes. The user guide entries for libUrlDownloadToFile just confuse me, as it appears to be documentation for a slightly different version of the libUrlDownloadToFile command. Cheers Gerry From gerry.orkin at gmail.com Tue Mar 22 02:10:42 2011 From: gerry.orkin at gmail.com (Gerry) Date: Tue, 22 Mar 2011 17:10:42 +1100 Subject: Weird script behaviour (was libUrlDownloadToFile & urlProgress) Message-ID: So more messing about reveals that my problem wasn't with libUrlDownloadToFile at all - but it's still weird. I have a button that calls a command - upDateSongs - from its script. If upDateSongs is in the stack script everything works fine. However if it's in the card script the app goes mad - it starts processing the card script from the top, running any code it encounters (my urlProgress code was at the top of the card script, so it was triggered by the sending of upDateSongs from the button - hence my suspicions about libUrlDownloadToFile and urlProgress). Crazy. And it makes me wonder if my stack is somehow corrupt. Anyone seen that before? Cheers Gerry On Tuesday, 22 March 2011 at 3:29 PM, Gerry wrote: > I'm using libUrlDownloadToFile to download some mp3s. As you might know libUrlDownloadToFile periodically sends the message "urlProgress" to the originating object so you can monitor the progress of downloads. > > It's working well, but I'm confused about when libUrlDownloadToFile stops sending the urlProgress message. Does it stop once the download is complete? Or do I have to explicitly kill it? > > I ask because I'm getting some weird behaviour that is very hard to explain...but knowing how and when the urlProgress message stops being sent will assist me in troubleshooting :) > > Oh, and I'm working off page 14 of the iOS release notes. The user guide entries for libUrlDownloadToFile just confuse me, as it appears to be documentation for a slightly different version of the libUrlDownloadToFile command. > > Cheers > > Gerry > From alptex2 at orwell.net Tue Mar 22 11:36:54 2011 From: alptex2 at orwell.net (Tim Ponn) Date: Tue, 22 Mar 2011 11:36:54 -0400 Subject: Table field names Message-ID: <801F5A2B-1B0E-4F6D-BCAD-3B5487849DF5@orwell.net> Hello all! Though not a newbie to LiveCode, I'm rusty and trying to catch up on some features....so...my apologies. I've got a few table fields in my app. I need to know in which table the user is entering data. Even though each of my table fields has a unique name, all I get as a "target" from any of them is: field "revCell-1,1" ... or ... field "revCell-2,1", ... etc Non table fields respond as expected. What am I doing wrong? Thanks in advance for your response! Best Regards, Timothy R. Ponn From bobs at twft.com Tue Mar 22 12:12:23 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 22 Mar 2011 09:12:23 -0700 Subject: Getting a single column of a datagrid In-Reply-To: References: <2AB92A5A-51FE-46D8-B3D7-772783C74A27@twft.com> Message-ID: Hey, thanks Trevor! Nice use of recursion. Who was it that said, "In order to understand recursion, you must first understand recursion"? Bob On Mar 21, 2011, at 8:56 PM, Trevor DeVore wrote: > On Mon, Mar 21, 2011 at 8:18 PM, Bob Sneidar wrote: > >> >> It would be nice if printkeys() was public domain but I don't think it is. >> Still, sqlYoga is a good investment anyways. Heck I might have paid what he >> charges for sqlYoga just for that function! ;-) >> > > Here you go :-) > > From bobs at twft.com Tue Mar 22 12:16:31 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 22 Mar 2011 09:16:31 -0700 Subject: Table field names In-Reply-To: <801F5A2B-1B0E-4F6D-BCAD-3B5487849DF5@orwell.net> References: <801F5A2B-1B0E-4F6D-BCAD-3B5487849DF5@orwell.net> Message-ID: <61B7B158-5955-417F-884D-42129A077FDF@twft.com> Did you try the selectedObject? Are you talking about a Datagrid? Bob On Mar 22, 2011, at 8:36 AM, Tim Ponn wrote: > Hello all! > > Though not a newbie to LiveCode, I'm rusty and trying to catch up on some features....so...my apologies. > > I've got a few table fields in my app. I need to know in which table the user is entering data. Even though each of my table fields has a unique name, all I get as a "target" from any of them is: > > field "revCell-1,1" ... or ... field "revCell-2,1", ... etc > > Non table fields respond as expected. What am I doing wrong? > > Thanks in advance for your response! > > > Best Regards, > > Timothy R. Ponn > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pmbrig at gmail.com Tue Mar 22 12:27:49 2011 From: pmbrig at gmail.com (Peter Brigham MD) Date: Tue, 22 Mar 2011 12:27:49 -0400 Subject: Getting a single column of a datagrid In-Reply-To: References: <2AB92A5A-51FE-46D8-B3D7-772783C74A27@twft.com> Message-ID: <5C0CE14B-FAC3-4F04-977A-8B7D1075CD70@gmail.com> On Mar 21, 2011, at 11:56 PM, Trevor DeVore wrote: > *private* *function* _printCharXTimes pChar, pTimes > > *local* theStr > > > > *repeat* with i = 1 to pTimes > > *put* pChar after theStr > > *end* *repeat* > > *return* theStr > *end* _printCharXTimes A way to do this without a loop (don't know if it's faster): private function printCharXtimes pChar, pTimes set the linedelimiter to pChar put pChar into line pTimes of tVar return tVar end printCharXtimes -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From bobs at twft.com Tue Mar 22 12:48:51 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 22 Mar 2011 09:48:51 -0700 Subject: Getting a single column of a datagrid In-Reply-To: <5C0CE14B-FAC3-4F04-977A-8B7D1075CD70@gmail.com> References: <2AB92A5A-51FE-46D8-B3D7-772783C74A27@twft.com> <5C0CE14B-FAC3-4F04-977A-8B7D1075CD70@gmail.com> Message-ID: Oh hey that's clever! Bob On Mar 22, 2011, at 9:27 AM, Peter Brigham MD wrote: > > On Mar 21, 2011, at 11:56 PM, Trevor DeVore wrote: > > > >> *private* *function* _printCharXTimes pChar, pTimes >> >> *local* theStr >> >> >> >> *repeat* with i = 1 to pTimes >> >> *put* pChar after theStr >> >> *end* *repeat* >> >> *return* theStr >> *end* _printCharXTimes > > A way to do this without a loop (don't know if it's faster): > > private function printCharXtimes pChar, pTimes > set the linedelimiter to pChar > put pChar into line pTimes of tVar > return tVar > end printCharXtimes > > -- Peter > > Peter M. Brigham > pmbrig at gmail.com > http://home.comcast.net/~pmbrig > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mwieder at ahsoftware.net Tue Mar 22 12:52:47 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Tue, 22 Mar 2011 09:52:47 -0700 Subject: O'Reilly steps up to the plate Message-ID: <1951085633265.20110322095247@ahsoftware.net> If you've been thinking of buying some O'Reilly books (or even if you haven't), here's a deal too good to pass up: today books are 50% off with *all revenues* less author royalties going to the Japanese Red Cross Soceity for disaster relief. http://oreilly.com/store/dd-jpn.html -- -Mark Wieder mwieder at ahsoftware.net From mwieder at ahsoftware.net Tue Mar 22 12:57:02 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Tue, 22 Mar 2011 09:57:02 -0700 Subject: new license model Message-ID: <1781085888609.20110322095702@ahsoftware.net> +Like http://learnat.sait.ab.ca/ict/txt_information/Intro2dcRev2/pagecopyright.html -- -Mark Wieder mwieder at ahsoftware.net From bonnmike at gmail.com Tue Mar 22 12:58:18 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 22 Mar 2011 10:58:18 -0600 Subject: Table field names In-Reply-To: <61B7B158-5955-417F-884D-42129A077FDF@twft.com> References: <801F5A2B-1B0E-4F6D-BCAD-3B5487849DF5@orwell.net> <61B7B158-5955-417F-884D-42129A077FDF@twft.com> Message-ID: You can use focusIn and focusOut to keep track of which field is currently selected, then you can do as you were to know which specific cell of the current field is being modified. If I understand how the table field works, when you select a cell to type in, it pops up an overlay field named for line number and location so that on completion of the edit it knows what position to poke the new data into. This is why if you modified your code to look for "the owner of the target" it will point to the card because the edit box is a separate temporary field not owned by the table field itself. Hopefully focusIn and focusOut will help you out. On Tue, Mar 22, 2011 at 10:16 AM, Bob Sneidar wrote: > Did you try the selectedObject? Are you talking about a Datagrid? > > Bob > > > On Mar 22, 2011, at 8:36 AM, Tim Ponn wrote: > > > Hello all! > > > > Though not a newbie to LiveCode, I'm rusty and trying to catch up on some > features....so...my apologies. > > > > I've got a few table fields in my app. I need to know in which table the > user is entering data. Even though each of my table fields has a unique > name, all I get as a "target" from any of them is: > > > > field "revCell-1,1" ... or ... field "revCell-2,1", ... etc > > > > Non table fields respond as expected. What am I doing wrong? > > > > Thanks in advance for your response! > > > > > > Best Regards, > > > > Timothy R. Ponn > > > > > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From alptex2 at orwell.net Tue Mar 22 13:06:13 2011 From: alptex2 at orwell.net (Tim Ponn) Date: Tue, 22 Mar 2011 13:06:13 -0400 Subject: Table field names In-Reply-To: <61B7B158-5955-417F-884D-42129A077FDF@twft.com> References: <801F5A2B-1B0E-4F6D-BCAD-3B5487849DF5@orwell.net> <61B7B158-5955-417F-884D-42129A077FDF@twft.com> Message-ID: <0AD2C64E-995C-4225-9333-4DE48FFBB3C1@orwell.net> Bob, I'm using the "Basic Table Field". I tried the selectedObject, but I get nothing. Here.. 1...create 3 fields, one a regular Text Entry Field and two Basic Table Fields. 2...give each field a name 3...put this in the card script: on rawKeyUp keyCode put the target end rawKeyUp 4...click in each field, in turn, and type a character. Typing in the text entry field will result in it's name showing in msg...typing in either of the basic table field results in "revCell-1,1" appearing in msg. This is not very helpful when trying to identify WHICH table field the entry was made in. MacBook Pro Mac OS10.6.6 Rev Enterprise 4.5.0-dp-3 On Mar 22, 2011, at 12:16 PM, Bob Sneidar wrote: > Did you try the selectedObject? Are you talking about a Datagrid? > > Bob > > > On Mar 22, 2011, at 8:36 AM, Tim Ponn wrote: > >> Hello all! >> >> Though not a newbie to LiveCode, I'm rusty and trying to catch up on some features....so...my apologies. >> >> I've got a few table fields in my app. I need to know in which table the user is entering data. Even though each of my table fields has a unique name, all I get as a "target" from any of them is: >> >> field "revCell-1,1" ... or ... field "revCell-2,1", ... etc >> >> Non table fields respond as expected. What am I doing wrong? >> >> Thanks in advance for your response! >> >> >> Best Regards, >> >> Timothy R. Ponn >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode Best Regards, Timothy R. Ponn From kevin at runrev.com Tue Mar 22 13:10:24 2011 From: kevin at runrev.com (Kevin Miller) Date: Tue, 22 Mar 2011 17:10:24 +0000 Subject: 4.6 released Message-ID: Hi there, I?m delighted to advise that less than 4 months after entering the mobile market with LiveCode for iOS we are already bringing out the improvements that you have all been asking for. LiveCode 4.6, released today, has 130 new features, refinements and bug fixes, including: * 20 new iOS features * 13 desktop refinements * 50 core bug fixes and 50 document refinements. As always we?re delighted to be able to bring you the refinements and new features that you need to bring your use of LiveCode to the next level. The dev team have worked really hard on this release and listened carefully to your feedback: the improvements in 4.6 have grown directly from the needs and feedback expressed by members of the LiveCode Developer Program and by our community in general. If you would like a full list of the new features please click here: http://runrev.com/products/livecode/new-in-46/ You can download the release notes for LiveCode 4.6 here: http://www.runrev.com/downloads/livecode/4_6_0/LiveCodeNotes-4_6_0.pdf Here?s some of the best new iOS features, and the ones I know you?ve all been watching out for eagerly: * Support for SQLite: Manipulate data using industry standard data storage within your app. * Native Video support and multi channel sounds: Full screen or region specific video playback, intersperse your video with commentary, full control over in app audio. * Native text control: Standard iOS text functionality including auto-correct, magnifier, copy and paste and more. * Custom Fonts: Include whatever custom fonts you need to suit different projects, from a manga comic to a child?s alphabet game. * Support for iOS 4.3 simulator: keep up to date with Apple?s latest releases with full support for iOS 4.3 simulator. The Top Most Requested Desktop Refinements brought to you in LiveCode 4.6 include: * Large Image Support for OS X: You asked, we delivered. Now you can manipulate any image that will fit in memory. * Improved encryption support: Cryptographic random data generation, sha-1 digest support and public key encryption support combine to give Standards' compliant data security for those sensitive projects. * Snapshot objects with and without graphic effects and blending: just snapshot the image you want and add effects and blending without leaving LiveCode. For a full list of features and refinements take a look at our LiveCode 4.6 page here: http://runrev.com/products/livecode/new-in-46/ I do hope you enjoy 4.6! Kind regards, Kevin Kevin Miller ~ kevin at runrev.com ~ http://www.runrev.com/ LiveCode: Compile-free coding, the faster path to better apps From pete at mollysrevenge.com Tue Mar 22 13:29:20 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 22 Mar 2011 10:29:20 -0700 Subject: SQL and other databases In-Reply-To: References: <4D865C2F.6000400@gmail.com> Message-ID: <2573CF4D-1611-461F-A3B0-701D242EF710@mollysrevenge.com> Hi Bob, I'm slowly putting together a list of differences between SQLite and MySQL. I'm concentrating on things that SQLite allows and MySQL does not. I haven't looked at extra functionality provided by MySQL over and above what SQLite provides since right now I just want to get to the point that my SQLite schema definitions and data manipulation statements work in MySQL Before getting to the list, a couple of observations on the issues you've come across. I'm not seeing the requirement to have NOT NULL in conjunction with DEFAULT. Here's a snippet which was accepted just fine by mySQL: `BandTrakSalesID` int(11) DEFAULT '0', `Selected` tinyint(1) DEFAULT '1', I seem to remember another email from you regrading the various types of quote characters. MySQL's default is that identifiers (dabatabase names, table names, etc) are enclosed in the back tick character and strings can be enclosed in either single or double quotes. Single or double quotes within a string that uses the same delimiter can be escaped by doubling them up or preceding them with a backslash. However by setting the SQL_MODE ANSI_QUOTES variable, you can make mySQL behave like SQLite - identifiers are enclosed in double quotes and strings are enclosed in single quotes. I believe that parameter can be set at the server level and for individual sessions using the SET command. I found this very useful when executing the CREATE statements generated by a Firefox SQLIte Manager Export command since it encloses identifiers in double quotes. Now on to the list. SQLite allows the use of TEXT columns as primary keys, allows you to build Indexes on them and have them as Foreign Keys. MySQL does not allow any of those things for TEXT fields. I had a problem with BEGIN/END in CREATE TRIGGER statements that only had one action between them (got syntax errors). Removing the BEGIN/END pair fixed the problem. I'm still investigating the various ways in which MySQL stores and handles dates but there are some major differences. However, the standard text representation of dates in SQLite looks like it will be recognised by MySQL (YYYY-MM-DD HH:MM:SS). MySQL does not have a built in Julian day function whereas SQLite does. SQLIte has date, time, datetime, julianday, and strftime functions which don't exist in MySQL although it provides the same functionality, just not with the same names. So if you have any data manipulation statements that use those SQLite functions, they'll have to be changed to use the MySQL equivalents. SQLite recognises foreign key definitions within column definitions. MySQL ignores Foreign Key definitions embedded in column definitions, eg "col1 REFERENCES TableA(col1)". What I mean by that is that they are not enforced, neither are they recorded in the information_schema database. In order to have a foreign key enforced and recorded in information_schema, you have to use the CONSTRAINT clause of the CREATE TABLE statement, eg CONSTRAINT FOREIGN KEY (col1) REFERENCES TableA(col1). SQLite allows the optional use of the keyword TRANSACTION in BEGIN, COMMIT, and ROLLBACK statements, MySQL does not. SQLite has DEFERRED, IMMEDIATE and EXCLUSIVE as keywords to the BEGIN statement which affect the way locks are placed. MySQL does not have an equivalent in its BEGIN statement although I suspect there are other ways to get the same behavior, just haven't had time to investigate yet. SQLite has a set of PRAGMA statements that set/return information about the structure of the database and the settings of various parameters that affect its operation. mySQL doesn't have PRAGMA statements. There are SHOW and SET statements that fulfil the same function, eg SHOW COLUMNS FROM tablename returns a list of column information for a table. In some cases, you need to access the information_schema database to do the equivalent of a PRAGMA statement, eg, there is a PRAGMA that returns information about foreign keys but in MySQL you have to access the information_schema table KEY_COLUMN_USAGE to get hold of that information. That's what I've found so far, maybe there'll be more as I get deeper into using MySQL. Pete Haworth On Mar 21, 2011, at 10:08 AM, Bob Sneidar wrote: > Hi Peter. > > Well I don't have a complete listing because I am finding them out as I go. My current project gets the SQL to create a table from the sqlite_master table, then massages it to create the same table in mySQL. MySQL uses SELECT CREATE TABLE to get this information. > > One gotcha is that sqLite allows enumeration (is that the right word??) in their datetime column (although why I cannot tell). That is you can declare datetime(30) but you cannot do this in mySQL. > > I have also discovered that sqLite allows you to declare a default value for a char type column without using NOT NULL. mySQL requires NOT NULL if you declare a default. You cannot have a default for a TEXT type in mySQL (if the manual is correct). > > I am not sure but I don't think sqLite uses what I call sequel quotes the ` character (shift-tilde). > > Someone a while back posted a link to a web page that described a number of things you could NOT do in adding columns to an existing sqLite table. The consensus was that it was better to simply dump the data and create the new table, and then re-import the data. For instance you can insert a column between existing columns in mySQL. You cannot in sqLite. > > sqLite is NOT multiuser, in the sense that you cannot have 2 read/write connections at one time. Although you CAN have many read only connections, only one can be read/write. > > In your case, going from sqLite to mySQL, I don't think you will have any problems with your actual data queries. Select statements are pretty standard (although I have been told by my web dev friend that MS SQL differs significantly in their query standards. What a surprise!) > > Bob > > > On Mar 21, 2011, at 9:34 AM, Peter Haworth wrote: > >> Bob, >> I'm about to make the leap from sqlite to mySQL so I'm very interested in the differences you mentioned. I think I've seen some of them in posts on the list here but any chance you could summarise them? I guess I am expecting some functional improvements in mySQL over sqlite since sqlite advertises itself as a subset of the sql standards but it sounds like you've found some syntactical differences as well. >> >> Pete Haworth >> >> On Mar 21, 2011, at 9:19 AM, Bob Sneidar wrote: >> >>> I have encountered a number of differences in different engines relating to syntax, when to use regular quotes, when to use sequel quotes, what column types can or cannot be enumerated, etc. >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ray at linkit.com Tue Mar 22 13:38:04 2011 From: ray at linkit.com (Ray Horsley) Date: Tue, 22 Mar 2011 13:38:04 -0400 Subject: Datagrid Column Highlighting Message-ID: <001d01cbe8b7$e75b7160$b6125420$@LinkIt.Com> I can't seem to figure out how to stop a datagrid's behavior from sorting the entire grid each time a user clicks a column heading. I would much rather have the column highlighted after the user clicks it instead of sorting. Anybody know how to set this? Thanks, Ray From bobs at twft.com Tue Mar 22 13:41:20 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 22 Mar 2011 10:41:20 -0700 Subject: 4.6 released In-Reply-To: References: Message-ID: <28A3706B-FD18-421D-9FD4-E7A2CF977A01@twft.com> Thanks and gratz! Bob On Mar 22, 2011, at 10:10 AM, Kevin Miller wrote: > Hi there, > > I?m delighted to advise that less than 4 months after entering the mobile > market with LiveCode for iOS we are already bringing out the improvements > that you have all been asking for. LiveCode 4.6, released today, has 130 new > features, refinements and bug fixes, including: > > * 20 new iOS features > * 13 desktop refinements > * 50 core bug fixes and 50 document refinements. From richmondmathewson at gmail.com Tue Mar 22 13:50:02 2011 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 22 Mar 2011 19:50:02 +0200 Subject: [OT] Worth a look: Message-ID: <4D88E14A.4000309@gmail.com> http://www.hypernextandroid.com/index.html more interesting than Danton's head . . . :) (probably less blood spilt too). From richmondmathewson at gmail.com Tue Mar 22 13:54:34 2011 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 22 Mar 2011 19:54:34 +0200 Subject: the standard dirty document mark Message-ID: <4D88E25A.4000203@gmail.com> That is a quote from the RunRev site; and the funny thibg is that I can only find references to "the standard dirty document mark" on the RunRev site, so have no idea of what it really means. ?? . . . mind you, now one can have a porn domain . . . From stephenREVOLUTION2 at barncard.com Tue Mar 22 14:13:11 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Tue, 22 Mar 2011 11:13:11 -0700 Subject: SQL and other databases In-Reply-To: <2573CF4D-1611-461F-A3B0-701D242EF710@mollysrevenge.com> References: <4D865C2F.6000400@gmail.com> <2573CF4D-1611-461F-A3B0-701D242EF710@mollysrevenge.com> Message-ID: Having delved into LITE for about 5 minutes and only using MY the last few years I had the impression that LITE was a feature-deprived version of MYSQL. Thanks for reporting. On 22 March 2011 10:29, Peter Haworth wrote: > Hi Bob, > Stephen Barncard San Francisco Ca. USA more about sqb From jiml at netrin.com Tue Mar 22 14:14:02 2011 From: jiml at netrin.com (Jim Lambert) Date: Tue, 22 Mar 2011 11:14:02 -0700 Subject: Getting a single column of a datagrid In-Reply-To: References: Message-ID: <165870EF-4139-43D5-A539-8E27ACC94DEE@netrin.com> Or, function printCharXtimes pChar, pTimes put "%" & pTimes & "s" into pTimes put format(pTimes,) into tVar replace space with pChar in tVar return tVar end printCharXtimes Jim Lambert From pete at mollysrevenge.com Tue Mar 22 14:30:51 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 22 Mar 2011 11:30:51 -0700 Subject: O'Reilly steps up to the plate In-Reply-To: <1951085633265.20110322095247@ahsoftware.net> References: <1951085633265.20110322095247@ahsoftware.net> Message-ID: <97E1F16D-4A59-4071-BCF0-29F0FB27783B@mollysrevenge.com> Thanks Mark - just purchased three books Pete Haworth On Mar 22, 2011, at 9:52 AM, Mark Wieder wrote: > If you've been thinking of buying some O'Reilly books (or even if you > haven't), here's a deal too good to pass up: today books are 50% off > with *all revenues* less author royalties going to the Japanese Red > Cross Soceity for disaster relief. > > http://oreilly.com/store/dd-jpn.html > > -- > -Mark Wieder > mwieder at ahsoftware.net > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From stephenREVOLUTION2 at barncard.com Tue Mar 22 14:49:18 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Tue, 22 Mar 2011 11:49:18 -0700 Subject: the standard dirty document mark In-Reply-To: <4D88E25A.4000203@gmail.com> References: <4D88E25A.4000203@gmail.com> Message-ID: On HUG-aware apps the space inside the window-close "bubble" on OSX is supposed to go slightly dark to indicate to the user that something on the document has changed. The detection of what will 'dirty' is up to the programmer. It was added to the new version after it turned out to be a blocker in getting apps into the Apple store if it wasn't there. On the developers' list, it was asked for and we got to see the team add many improvements and fixes practically before our eyes. The feedback loop is quite tight these days IMHO. On 22 March 2011 10:54, Richmond wrote: > That is a quote from the RunRev site; and the funny thibg > is that I can only find references to "the standard dirty document mark" > on the RunRev site, so have no idea of what it really means. > > ?? > > . . . mind you, now one can have a porn domain . . . > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Stephen Barncard San Francisco Ca. USA more about sqb From bobs at twft.com Tue Mar 22 14:51:51 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 22 Mar 2011 11:51:51 -0700 Subject: Datagrid Column Highlighting In-Reply-To: <001d01cbe8b7$e75b7160$b6125420$@LinkIt.Com> References: <001d01cbe8b7$e75b7160$b6125420$@LinkIt.Com> Message-ID: <7445F9A8-5F0C-4AEF-AD09-967B1D18E7BB@twft.com> I don't think you can select an entire column. What you can do is fake it. The Data Grid Helper by Zryip allows you to set a script that disables sorting, but you need to make the user think a column is selected. Data Grid Helper also has a way of manually setting alternating column colors like you can with rows. You should see if he will include a new script to "hilite" a single column (if that is even possible). Bob On Mar 22, 2011, at 10:38 AM, Ray Horsley wrote: > I can't seem to figure out how to stop a datagrid's behavior from sorting > the entire grid each time a user clicks a column heading. I would much > rather have the column highlighted after the user clicks it instead of > sorting. Anybody know how to set this? > > > > Thanks, > > > > Ray > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobs at twft.com Tue Mar 22 14:54:07 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 22 Mar 2011 11:54:07 -0700 Subject: SQL and other databases In-Reply-To: <2573CF4D-1611-461F-A3B0-701D242EF710@mollysrevenge.com> References: <4D865C2F.6000400@gmail.com> <2573CF4D-1611-461F-A3B0-701D242EF710@mollysrevenge.com> Message-ID: <832084BE-89EF-404F-B375-B0172497FA43@twft.com> Yes but those are numeric data types. The restriction was on the char types char() and varchar() (if I am not mistaken). TEXT types do not allow defaults at all according to the manual. Bob On Mar 22, 2011, at 10:29 AM, Peter Haworth wrote: > Hi Bob, > I'm slowly putting together a list of differences between SQLite and MySQL. I'm concentrating on things that SQLite allows and MySQL does not. I haven't looked at extra functionality provided by MySQL over and above what SQLite provides since right now I just want to get to the point that my SQLite schema definitions and data manipulation statements work in MySQL > > Before getting to the list, a couple of observations on the issues you've come across. > > I'm not seeing the requirement to have NOT NULL in conjunction with DEFAULT. Here's a snippet which was accepted just fine by mySQL: > > `BandTrakSalesID` int(11) DEFAULT '0', > `Selected` tinyint(1) DEFAULT '1', From pete at mollysrevenge.com Tue Mar 22 15:21:55 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 22 Mar 2011 12:21:55 -0700 Subject: SQL and other databases In-Reply-To: <832084BE-89EF-404F-B375-B0172497FA43@twft.com> References: <4D865C2F.6000400@gmail.com> <2573CF4D-1611-461F-A3B0-701D242EF710@mollysrevenge.com> <832084BE-89EF-404F-B375-B0172497FA43@twft.com> Message-ID: <5BD12BE5-D7EF-4DE2-9010-D115C7671BDB@mollysrevenge.com> Not seeing it on those types either: `testdefault` char(10) DEFAULT 'XYZ', `testdefault2` varchar(10) DEFAULT 'ABC', Worked fine for me (through Sequel Pro). I wonder if this is a difference between versions of MySQL. I'm using the Community version which is the free one. You're right on the TEXT types not allowing defaults although why that should be is a mystery. Pete Haworth On Mar 22, 2011, at 11:54 AM, Bob Sneidar wrote: > Yes but those are numeric data types. The restriction was on the char types char() and varchar() (if I am not mistaken). TEXT types do not allow defaults at all according to the manual. > > Bob > > > On Mar 22, 2011, at 10:29 AM, Peter Haworth wrote: > >> Hi Bob, >> I'm slowly putting together a list of differences between SQLite and MySQL. I'm concentrating on things that SQLite allows and MySQL does not. I haven't looked at extra functionality provided by MySQL over and above what SQLite provides since right now I just want to get to the point that my SQLite schema definitions and data manipulation statements work in MySQL >> >> Before getting to the list, a couple of observations on the issues you've come across. >> >> I'm not seeing the requirement to have NOT NULL in conjunction with DEFAULT. Here's a snippet which was accepted just fine by mySQL: >> >> `BandTrakSalesID` int(11) DEFAULT '0', >> `Selected` tinyint(1) DEFAULT '1', > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at mollysrevenge.com Tue Mar 22 15:26:16 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 22 Mar 2011 12:26:16 -0700 Subject: SQL and other databases In-Reply-To: References: <4D865C2F.6000400@gmail.com> <2573CF4D-1611-461F-A3B0-701D242EF710@mollysrevenge.com> Message-ID: Definitely feature-deprived in some areas for sure but still very capable DBMS, depending on what your needs are. I haven't got round to benchmarks yet (and probably won't), but I've read several things on the web that suggest SQLite is much faster than mySQL. Of course if SQLite is missing a feature you need, doesn't matter how much faster it is! Pete Haworth On Mar 22, 2011, at 11:13 AM, stephen barncard wrote: > Having delved into LITE for about 5 minutes and only using MY the last few > years I had the impression that LITE was a feature-deprived version of > MYSQL. Thanks for reporting. > > On 22 March 2011 10:29, Peter Haworth wrote: > >> Hi Bob, >> > > Stephen Barncard > San Francisco Ca. USA > > more about sqb > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bobs at twft.com Tue Mar 22 16:27:48 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 22 Mar 2011 13:27:48 -0700 Subject: SQL and other databases In-Reply-To: <5BD12BE5-D7EF-4DE2-9010-D115C7671BDB@mollysrevenge.com> References: <4D865C2F.6000400@gmail.com> <2573CF4D-1611-461F-A3B0-701D242EF710@mollysrevenge.com> <832084BE-89EF-404F-B375-B0172497FA43@twft.com> <5BD12BE5-D7EF-4DE2-9010-D115C7671BDB@mollysrevenge.com> Message-ID: Then it may be engine specific. My query produced an error when trying to create a table in my On-Rev database if I specified a default for varchar columns without using NOT NULL. After adding NOT NULL it worked fine. Bob On Mar 22, 2011, at 12:21 PM, Peter Haworth wrote: > Not seeing it on those types either: > > `testdefault` char(10) DEFAULT 'XYZ', > `testdefault2` varchar(10) DEFAULT 'ABC', > > Worked fine for me (through Sequel Pro). I wonder if this is a difference between versions of MySQL. I'm using the Community version which is the free one. > > You're right on the TEXT types not allowing defaults although why that should be is a mystery. > > Pete Haworth > > On Mar 22, 2011, at 11:54 AM, Bob Sneidar wrote: > >> Yes but those are numeric data types. The restriction was on the char types char() and varchar() (if I am not mistaken). TEXT types do not allow defaults at all according to the manual. >> >> Bob >> >> >> On Mar 22, 2011, at 10:29 AM, Peter Haworth wrote: >> >>> Hi Bob, >>> I'm slowly putting together a list of differences between SQLite and MySQL. I'm concentrating on things that SQLite allows and MySQL does not. I haven't looked at extra functionality provided by MySQL over and above what SQLite provides since right now I just want to get to the point that my SQLite schema definitions and data manipulation statements work in MySQL >>> >>> Before getting to the list, a couple of observations on the issues you've come across. >>> >>> I'm not seeing the requirement to have NOT NULL in conjunction with DEFAULT. Here's a snippet which was accepted just fine by mySQL: >>> >>> `BandTrakSalesID` int(11) DEFAULT '0', >>> `Selected` tinyint(1) DEFAULT '1', >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobs at twft.com Tue Mar 22 16:28:55 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 22 Mar 2011 13:28:55 -0700 Subject: SQL and other databases In-Reply-To: References: <4D865C2F.6000400@gmail.com> <2573CF4D-1611-461F-A3B0-701D242EF710@mollysrevenge.com> Message-ID: I don't think this is a fair comparison. sqLite is file based, and is likely going to be a local file at that. Of course that would be faster. Bob On Mar 22, 2011, at 12:26 PM, Peter Haworth wrote: > Definitely feature-deprived in some areas for sure but still very capable DBMS, depending on what your needs are. I haven't got round to benchmarks yet (and probably won't), but I've read several things on the web that suggest SQLite is much faster than mySQL. Of course if SQLite is missing a feature you need, doesn't matter how much faster it is! > > Pete Haworth > > On Mar 22, 2011, at 11:13 AM, stephen barncard wrote: > >> Having delved into LITE for about 5 minutes and only using MY the last few >> years I had the impression that LITE was a feature-deprived version of >> MYSQL. Thanks for reporting. >> >> On 22 March 2011 10:29, Peter Haworth wrote: >> >>> Hi Bob, >>> >> >> Stephen Barncard >> San Francisco Ca. USA >> >> more about sqb >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at mollysrevenge.com Tue Mar 22 16:53:08 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 22 Mar 2011 13:53:08 -0700 Subject: SQL and other databases In-Reply-To: References: <4D865C2F.6000400@gmail.com> <2573CF4D-1611-461F-A3B0-701D242EF710@mollysrevenge.com> Message-ID: Not sure what you mean by "file based". Seems perfectly fair to me if I'm comparing using SQLite and MySQL on my local computer. I'm not recommending one above the other, just pointing out what I've read. As with any software, you should use what works best for your application. Pete Haworth On Mar 22, 2011, at 1:28 PM, Bob Sneidar wrote: > I don't think this is a fair comparison. sqLite is file based, and is likely going to be a local file at that. Of course that would be faster. > > Bob > > > On Mar 22, 2011, at 12:26 PM, Peter Haworth wrote: > >> Definitely feature-deprived in some areas for sure but still very capable DBMS, depending on what your needs are. I haven't got round to benchmarks yet (and probably won't), but I've read several things on the web that suggest SQLite is much faster than mySQL. Of course if SQLite is missing a feature you need, doesn't matter how much faster it is! >> >> Pete Haworth >> >> On Mar 22, 2011, at 11:13 AM, stephen barncard wrote: >> >>> Having delved into LITE for about 5 minutes and only using MY the last few >>> years I had the impression that LITE was a feature-deprived version of >>> MYSQL. Thanks for reporting. >>> >>> On 22 March 2011 10:29, Peter Haworth wrote: >>> >>>> Hi Bob, >>>> >>> >>> Stephen Barncard >>> San Francisco Ca. USA >>> >>> more about sqb >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Tue Mar 22 17:02:42 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 22 Mar 2011 16:02:42 -0500 Subject: Weird script behaviour (was libUrlDownloadToFile & urlProgress) In-Reply-To: References: Message-ID: <4D890E72.8020603@hyperactivesw.com> On 3/22/11 1:10 AM, Gerry wrote: > So more messing about reveals that my problem wasn't with > libUrlDownloadToFile at all - but it's still weird. > > I have a button that calls a command - upDateSongs - from its script. > > If upDateSongs is in the stack script everything works fine. However > if it's in the card script the app goes mad - it starts processing the > card script from the top, running any code it encounters (my > urlProgress code was at the top of the card script, so it was > triggered by the sending of upDateSongs from the button - hence my > suspicions about libUrlDownloadToFile and urlProgress). > > Crazy. And it makes me wonder if my stack is somehow corrupt. Anyone > seen that before? Never. You may have some duplicate handlers somewhere, or handlers that call others you aren't expecting. The best thing would be to set a breakpoint near the beginning of the code sequence and step into every line until you see what's calling the wayward code. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Tue Mar 22 17:09:03 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 22 Mar 2011 16:09:03 -0500 Subject: Stand-alone issues: lost images and go to (sub) stack scripts fail In-Reply-To: <141513E6-3B9F-4FB5-82EF-B942F57F1851@clarkeandclarke.co.uk> References: <141513E6-3B9F-4FB5-82EF-B942F57F1851@clarkeandclarke.co.uk> Message-ID: <4D890FEF.3020006@hyperactivesw.com> On 3/21/11 6:10 PM, Keith Clarke wrote: > Hi folks, I need some help struggling with deploying my first > multi-stack stand-alone. Images in the main stack and sub-stack > (within the same folder as the .rev file) are greyed-out on both Mac > and web deployments. On the web deployment none of the button or link > scripts that use 'go to stack' to access sub-stacks work. Any advice > on where to start trouble-shooting greatly appreciated. It's a path problem. If your stacks are separate files on disk, they aren't "substacks", they are just document stacks like any other app's documents. You'll need to provide a full file path to open them. Another way to do it is to set the stackfiles property of your mainstack. Use relative paths when you set that up. If your stackfiles point to the proper locations relative to the main stack then you can use short stack names to refer to the document stacks. If during development you really are using substacks (stacks embedded in the same file on disk) then just leave them that way when you build. Don't set the option that moves substacks into separate files. That will solve the problem with referencing stacks. If your images are being loaded from disk, try setting the "Copy Referenced Files" checkbox in the "Copy Files" pane of the standalone builder. That should set up the file references for your images. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From gandalf at doctorTimothyMiller.com Tue Mar 22 17:31:21 2011 From: gandalf at doctorTimothyMiller.com (Timothy Miller) Date: Tue, 22 Mar 2011 14:31:21 -0700 Subject: newbie script question re Find command Message-ID: <1530C128-2D2F-47A1-8F24-24222CADA084@doctorTimothyMiller.com> Hiya, I guess I never tried to write a script like this before. Thought it would be simple... Well, it is simple, probably, just not simple in a way that I actually understand. How do I find multiple instances of a string in a given field of a given card and record each foundchunk in a variable, and then stop repeating the find command when the last instance is found? I want to do this in the context of a repeat loop that goes to all the cards in the stack in sequence. Sooo, I also need to know... How do I tell the repeat loop to move on to the next card: - if no instance of the string is found on the card - and - after the last instance of the string is found on the card Hope that's clear. I understand I'll probably want to nest a repeat loop using the find command on each card, with exits when certain conditions are met. I'm choking on the details. I don't need a complete and accurate script. Just the general idea. Thanks in advance. Tim (the world's oldest newbie) From pepetoo at cox.net Tue Mar 22 17:57:31 2011 From: pepetoo at cox.net (Joe Lewis Wilkins) Date: Tue, 22 Mar 2011 14:57:31 -0700 Subject: newbie script question re Find command In-Reply-To: <1530C128-2D2F-47A1-8F24-24222CADA084@doctorTimothyMiller.com> References: <1530C128-2D2F-47A1-8F24-24222CADA084@doctorTimothyMiller.com> Message-ID: Hi Tim, I would start with a repeat that would go through all of your cards; When you are on a card put the field in question into a cdVar; parse the cdVar, finding the first instance of the string; put that instance into a var; delete the part of the cdVar through that point; find another, etc., etc. once the cdVar is empty go to the next card and repeat the whole thing over again. Just start writing, you'll get the idea as you complete the script Hope this helps. I don't believe in writing the script for you. That's how you'll learn. Joe Lewis Wilkins Architect & Director of Product Development for GSI On Mar 22, 2011, at 2:31 PM, Timothy Miller wrote: > Hiya, > > I guess I never tried to write a script like this before. Thought it would be simple... Well, it is simple, probably, just not simple in a way that I actually understand. > > How do I find multiple instances of a string in a given field of a given card and record each foundchunk in a variable, and then stop repeating the find command when the last instance is found? > > I want to do this in the context of a repeat loop that goes to all the cards in the stack in sequence. > > Sooo, I also need to know... How do I tell the repeat loop to move on to the next card: > > - if no instance of the string is found on the card > > - and > > - after the last instance of the string is found on the card > > Hope that's clear. > > I understand I'll probably want to nest a repeat loop using the find command on each card, with exits when certain conditions are met. I'm choking on the details. > > I don't need a complete and accurate script. Just the general idea. > > Thanks in advance. > > Tim (the world's oldest newbie) > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobs at twft.com Tue Mar 22 18:19:08 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 22 Mar 2011 15:19:08 -0700 Subject: SQL and other databases In-Reply-To: References: <4D865C2F.6000400@gmail.com> <2573CF4D-1611-461F-A3B0-701D242EF710@mollysrevenge.com> Message-ID: <090940E4-AB36-4019-B898-B5F66D1CA746@twft.com> I mean that sqLite is just a file on the local hard drive. If they were benchmarking mySQL running locally, I guess it's sort of the same thing, but mySQL still uses the networking protocols right? I mean you have to connect via localhost or the IP of the local machine, so it's still using networking protocols, and that may account for any perceived delay. Bob On Mar 22, 2011, at 1:53 PM, Peter Haworth wrote: > Not sure what you mean by "file based". Seems perfectly fair to me if I'm comparing using SQLite and MySQL on my local computer. I'm not recommending one above the other, just pointing out what I've read. As with any software, you should use what works best for your application. > > Pete Haworth From dunbarx at aol.com Tue Mar 22 18:20:02 2011 From: dunbarx at aol.com (dunbarx at aol.com) Date: Tue, 22 Mar 2011 18:20:02 -0400 Subject: newbie script question re Find command In-Reply-To: <1530C128-2D2F-47A1-8F24-24222CADA084@doctorTimothyMiller.com> References: <1530C128-2D2F-47A1-8F24-24222CADA084@doctorTimothyMiller.com> Message-ID: <8CDB6F66C3638CE-1A50-17E3@webmail-d035.sysops.aol.com> Joe is giving you tough love. Check out the "offset" command as well as the "find" command. Note the "chars to skip" parameter. Read about the "foundChunk". If you are really into it, and you should be, try to find several different ways to accomplish your task. Craig Newman -----Original Message----- From: Timothy Miller To: How to use LiveCode Sent: Tue, Mar 22, 2011 5:31 pm Subject: newbie script question re Find command Hiya, I guess I never tried to write a script like this before. Thought it would be simple... Well, it is simple, probably, just not simple in a way that I actually understand. How do I find multiple instances of a string in a given field of a given card and record each foundchunk in a variable, and then stop repeating the find command when the last instance is found? I want to do this in the context of a repeat loop that goes to all the cards in the stack in sequence. Sooo, I also need to know... How do I tell the repeat loop to move on to the next card: - if no instance of the string is found on the card - and - after the last instance of the string is found on the card Hope that's clear. I understand I'll probably want to nest a repeat loop using the find command on each card, with exits when certain conditions are met. I'm choking on the details. I don't need a complete and accurate script. Just the general idea. Thanks in advance. Tim (the world's oldest newbie) _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Tue Mar 22 18:30:55 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 22 Mar 2011 17:30:55 -0500 Subject: newbie script question re Find command In-Reply-To: <1530C128-2D2F-47A1-8F24-24222CADA084@doctorTimothyMiller.com> References: <1530C128-2D2F-47A1-8F24-24222CADA084@doctorTimothyMiller.com> Message-ID: <4D89231F.4080101@hyperactivesw.com> On 3/22/11 4:31 PM, Timothy Miller wrote: > How do I find multiple instances of a string in a given field of a > given card and record each foundchunk in a variable, and then stop > repeating the find command when the last instance is found? It's simpler than you'd think. Unlike HyperCard, LiveCode reports "not found" as soon as the last instance has been located. So all you have to do is repeat the find command until the result is "not found". You don't have to manage any card or field loops, the engine does it all. Off the top of my head: put "thing to find" into tVar repeat find tVar [in field "thisField"] if the result = "not found" then exit repeat put the foundchunk & cr after tFoundList end repeat This will go through all the cards and fields by itself. I didn't test it, so you do that. ;) I probably forgot something. Note that if you interrupt the find command it will lose its place, so let the repeat loop continue until it's done. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pmbrig at gmail.com Tue Mar 22 18:37:08 2011 From: pmbrig at gmail.com (Peter Brigham MD) Date: Tue, 22 Mar 2011 18:37:08 -0400 Subject: newbie script question re Find command In-Reply-To: <1530C128-2D2F-47A1-8F24-24222CADA084@doctorTimothyMiller.com> References: <1530C128-2D2F-47A1-8F24-24222CADA084@doctorTimothyMiller.com> Message-ID: On Mar 22, 2011, at 5:31 PM, Timothy Miller wrote: > Hiya, > > I guess I never tried to write a script like this before. Thought it > would be simple... Well, it is simple, probably, just not simple in > a way that I actually understand. > > How do I find multiple instances of a string in a given field of a > given card and record each foundchunk in a variable, and then stop > repeating the find command when the last instance is found? > > I want to do this in the context of a repeat loop that goes to all > the cards in the stack in sequence. > > Sooo, I also need to know... How do I tell the repeat loop to move > on to the next card: > > - if no instance of the string is found on the card > > - and > > - after the last instance of the string is found on the card > > Hope that's clear. > > I understand I'll probably want to nest a repeat loop using the find > command on each card, with exits when certain conditions are met. > I'm choking on the details. > > I don't need a complete and accurate script. Just the general idea. > > Thanks in advance. > > Tim (the world's oldest newbie) It's never too late to be a newbie! :-) Here is a function that returns the all the offsets of a string in a container: function offsets tStr,tCntr -- returns a comma-delimited list of all the offsets of tStr in tCntr put "" into mosList put 0 into startPoint repeat put offset(tStr, tCntr,startPoint) into os if os = 0 then exit repeat add os to startPoint put startPoint & "," after mosList end repeat if char -1 of mosList = "," then delete last char of mosList if mosList = "" then return "0" return mosList end offsets Using that, you could first mark cards where fld contains then loop through the marked cards and find the full list of foundchunks: put empty into foundList put length(tStr) into strLength repeat with c = 1 to the number of marked cards put the name of marked cd c into cdName put fld of marked cd c into fldContents put offsets(tStr, fldContents) into offsetList replace comma with cr in offsetList repeat for each line f in offsetList put f & "|" & f+strLength-1 & "|" & cdName & cr after foundList -- use pipe char as delimiter, -- or any other char not found in data end repeat end repeat if char -1 of foundList = cr then delete char -1 of foundList this will give you the full list of foundchunks in the form: 78|85|card id 1016 266|273|card id 1016 13|20|card id 1018 ... etc. and you can parse this by setting the itemdelim to "|" and referring to char (item 1 of line n of foundList) to (item 2 of line n of foundList) of of (item 3 of foundList) to get the chunks. Not tested, and can probably be streamlined, but you get the idea.... -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From tsj at unimelb.edu.au Tue Mar 22 18:38:02 2011 From: tsj at unimelb.edu.au (Terry Judd) Date: Wed, 23 Mar 2011 09:38:02 +1100 Subject: newbie script question re Find command In-Reply-To: <1530C128-2D2F-47A1-8F24-24222CADA084@doctorTimothyMiller.com> Message-ID: Here are some things to start working with... 1. the cardNames function - gives you a list of cards for the specified stack. You can then loop through each card in turn using a repeat loop of the form... repeat for each line tCd in (the cardNames of this stack) ...alternatively you can just repeat with I = 1 to the number of cds in this stack 2. the offset function - which is what you'll use inside another repeat loop (inside the first repeat structure) to find all the instances of your string in a field. For example you could use the 'repeat forever' form to continue searching a field until the offset function returns 0. Your offSet routine includes a charsToSkip parameter (check out the dictionary entry). In the first pass of a field this is set to 0, then if you get a match, you record the value and pass it in the charsToSkip parameter in the next iteration of the repeat loop. As far as recording all the chunks goes, you probably only need to store the offset values (along with the field and card names), as given you already know the length of the original search string you can easily create chunk statements from these when required. HTH, Terry... On 23/03/11 8:31 AM, "Timothy Miller" wrote: > Hiya, > > I guess I never tried to write a script like this before. Thought it would be > simple... Well, it is simple, probably, just not simple in a way that I > actually understand. > > How do I find multiple instances of a string in a given field of a given card > and record each foundchunk in a variable, and then stop repeating the find > command when the last instance is found? > > I want to do this in the context of a repeat loop that goes to all the cards > in the stack in sequence. > > Sooo, I also need to know... How do I tell the repeat loop to move on to the > next card: > > - if no instance of the string is found on the card > > - and > > - after the last instance of the string is found on the card > > Hope that's clear. > > I understand I'll probably want to nest a repeat loop using the find command > on each card, with exits when certain conditions are met. I'm choking on the > details. > > I don't need a complete and accurate script. Just the general idea. > > Thanks in advance. > > Tim (the world's oldest newbie) > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Dr Terry Judd | Senior Lecturer in Medical Education Medical Education Unit Melbourne Medical School The University of Melbourne From tsj at unimelb.edu.au Tue Mar 22 18:47:45 2011 From: tsj at unimelb.edu.au (Terry Judd) Date: Wed, 23 Mar 2011 09:47:45 +1100 Subject: newbie script question re Find command In-Reply-To: Message-ID: Actually 2 is slightly more complicated in that you have to sum your offset values as you go in order to determine the correct number of characters to skip. I'd also forgotten about the find function mentioned by Jacque - probably a much simpler way to go. Terry... On 23/03/11 9:38 AM, "Terry Judd" wrote: > Here are some things to start working with... > > 1. the cardNames function - gives you a list of cards for the specified > stack. You can then loop through each card in turn using a repeat loop of > the form... > > repeat for each line tCd in (the cardNames of this stack) > > ...alternatively you can just > > repeat with I = 1 to the number of cds in this stack > > 2. the offset function - which is what you'll use inside another repeat loop > (inside the first repeat structure) to find all the instances of your string > in a field. For example you could use the 'repeat forever' form to continue > searching a field until the offset function returns 0. Your offSet routine > includes a charsToSkip parameter (check out the dictionary entry). In the > first pass of a field this is set to 0, then if you get a match, you record > the value and pass it in the charsToSkip parameter in the next iteration of > the repeat loop. > > As far as recording all the chunks goes, you probably only need to store the > offset values (along with the field and card names), as given you already > know the length of the original search string you can easily create chunk > statements from these when required. > > HTH, > > Terry... > > > On 23/03/11 8:31 AM, "Timothy Miller" > wrote: > >> Hiya, >> >> I guess I never tried to write a script like this before. Thought it would be >> simple... Well, it is simple, probably, just not simple in a way that I >> actually understand. >> >> How do I find multiple instances of a string in a given field of a given card >> and record each foundchunk in a variable, and then stop repeating the find >> command when the last instance is found? >> >> I want to do this in the context of a repeat loop that goes to all the cards >> in the stack in sequence. >> >> Sooo, I also need to know... How do I tell the repeat loop to move on to the >> next card: >> >> - if no instance of the string is found on the card >> >> - and >> >> - after the last instance of the string is found on the card >> >> Hope that's clear. >> >> I understand I'll probably want to nest a repeat loop using the find command >> on each card, with exits when certain conditions are met. I'm choking on the >> details. >> >> I don't need a complete and accurate script. Just the general idea. >> >> Thanks in advance. >> >> Tim (the world's oldest newbie) >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > -- > Dr Terry Judd | Senior Lecturer in Medical Education > Medical Education Unit > Melbourne Medical School > The University of Melbourne > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Dr Terry Judd | Senior Lecturer in Medical Education Medical Education Unit Melbourne Medical School The University of Melbourne From gandalf at doctorTimothyMiller.com Tue Mar 22 19:26:42 2011 From: gandalf at doctorTimothyMiller.com (Timothy Miller) Date: Tue, 22 Mar 2011 16:26:42 -0700 Subject: newbie script question re Find command In-Reply-To: References: Message-ID: Very kind of you all. Thanks to Joe, Craig, Jacque, Peter and Terry. I can do this now. Best regards, Tim From etcawley at fastmail.fm Tue Mar 22 21:36:10 2011 From: etcawley at fastmail.fm (edward cawley) Date: Tue, 22 Mar 2011 20:36:10 -0500 Subject: Ipod IOS problem Message-ID: Still a problem: I load the mobile plugin, put the folder of files into the directory but when the app comes up in the simulator none of the files are accessed. The buttons all work and the text not accessed by files show, but none of the images,audio or text files are found. It acts like they are not loaded in the IOS. The app loads successfully in the standalone. This result act like the first time I tried to set up a standalone. The handbook states that the files are loaded when the folders are listed as a directory. I tried to list some of the files independently but they still don't show up. Is there any way to see what is loaded in the Ipad sinulation app? Ed From gerry.orkin at gmail.com Tue Mar 22 21:38:59 2011 From: gerry.orkin at gmail.com (Gerry Orkin) Date: Wed, 23 Mar 2011 12:38:59 +1100 Subject: Weird script behaviour (was libUrlDownloadToFile & urlProgress) In-Reply-To: <4D890E72.8020603@hyperactivesw.com> References: <4D890E72.8020603@hyperactivesw.com> Message-ID: <903E8E94-9B30-4F0D-A0EC-C99554B1E307@gmail.com> Jacqueline, As I mentioned, it goes crazy. Setting a breakpoint in the referring button script jumps me to the top line of the card script, but not to the handler being called. The trace shows that LiveCode is attempting to evaluate every line of code in the card script, starting from the top, and including blank lines. Gerry -- http://gerryorkin.com On 23/03/2011, at 8:02 AM, "J. Landman Gay" wrote: > On 3/22/11 1:10 AM, Gerry wrote: >> So more messing about reveals that my problem wasn't with >> libUrlDownloadToFile at all - but it's still weird. >> >> I have a button that calls a command - upDateSongs - from its script. >> >> If upDateSongs is in the stack script everything works fine. However >> if it's in the card script the app goes mad - it starts processing the >> card script from the top, running any code it encounters (my >> urlProgress code was at the top of the card script, so it was >> triggered by the sending of upDateSongs from the button - hence my >> suspicions about libUrlDownloadToFile and urlProgress). >> >> Crazy. And it makes me wonder if my stack is somehow corrupt. Anyone >> seen that before? > > Never. You may have some duplicate handlers somewhere, or handlers that call others you aren't expecting. The best thing would be to set a breakpoint near the beginning of the code sequence and step into every line until you see what's calling the wayward code. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pmbrig at gmail.com Tue Mar 22 22:45:14 2011 From: pmbrig at gmail.com (Peter Brigham MD) Date: Tue, 22 Mar 2011 22:45:14 -0400 Subject: Weird script behaviour (was libUrlDownloadToFile & urlProgress) In-Reply-To: <903E8E94-9B30-4F0D-A0EC-C99554B1E307@gmail.com> References: <4D890E72.8020603@hyperactivesw.com> <903E8E94-9B30-4F0D-A0EC-C99554B1E307@gmail.com> Message-ID: <013DA4AF-638B-4A30-9471-A99987166E89@gmail.com> You don't have a "do" statement in there somewhere, do you? The only way I could imagine that kind of behavior happening would be with something like "do script of this card." -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Mar 22, 2011, at 9:38 PM, Gerry Orkin wrote: > Jacqueline, > > As I mentioned, it goes crazy. Setting a breakpoint in the referring > button script jumps me to the top line of the card script, but not > to the handler being called. The trace shows that LiveCode is > attempting to evaluate every line of code in the card script, > starting from the top, and including blank lines. > > Gerry > > -- http://gerryorkin.com > > On 23/03/2011, at 8:02 AM, "J. Landman Gay" > wrote: > >> On 3/22/11 1:10 AM, Gerry wrote: >>> So more messing about reveals that my problem wasn't with >>> libUrlDownloadToFile at all - but it's still weird. >>> >>> I have a button that calls a command - upDateSongs - from its >>> script. >>> >>> If upDateSongs is in the stack script everything works fine. However >>> if it's in the card script the app goes mad - it starts processing >>> the >>> card script from the top, running any code it encounters (my >>> urlProgress code was at the top of the card script, so it was >>> triggered by the sending of upDateSongs from the button - hence my >>> suspicions about libUrlDownloadToFile and urlProgress). >>> >>> Crazy. And it makes me wonder if my stack is somehow corrupt. Anyone >>> seen that before? >> >> Never. You may have some duplicate handlers somewhere, or handlers >> that call others you aren't expecting. The best thing would be to >> set a breakpoint near the beginning of the code sequence and step >> into every line until you see what's calling the wayward code. >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From -= Tue Mar 22 22:57:39 2011 From: -= (-=) Date: Tue, 22 Mar 2011 19:57:39 -0700 Subject: On-Rev file path Message-ID: <6BFC606A-8B73-4026-82A7-C89FDEA5F466@pacifier.com> I would like to know how to get the path of a file that is located above the public_html which I think is called above webroot. Let's say I have a file named Hello_World.php and it is above the public_html. What is it's path and can I run the file by pointing my browser to it's path like I can when it is in my domain folder. -=>JB<=- From bonnmike at gmail.com Tue Mar 22 23:15:40 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 22 Mar 2011 21:15:40 -0600 Subject: On-Rev file path In-Reply-To: <6BFC606A-8B73-4026-82A7-C89FDEA5F466@pacifier.com> References: <6BFC606A-8B73-4026-82A7-C89FDEA5F466@pacifier.com> Message-ID: You shouldn't be able to call it directly if its outside of your public_html folder. I think you can 'include' a php file that is outside the boundaries from another php page, and if I recall correctly there are ways to force php pages to load from within an irev, but I can't remember whats required for that. As for finding the file structure, using an irev script, something as simple as a one liner like will tell you your current path which should be something like: /home/youraccountname/public_html On Tue, Mar 22, 2011 at 8:57 PM, -=>JB <=- wrote: > I would like to know how to get the path of a file that is > located above the public_html which I think is called > above webroot. > > Let's say I have a file named Hello_World.php and > it is above the public_html. What is it's path and can > I run the file by pointing my browser to it's path like I > can when it is in my domain folder. > > -=>JB<=- > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bvg at mac.com Tue Mar 22 23:33:50 2011 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Wed, 23 Mar 2011 04:33:50 +0100 Subject: SQL and other databases In-Reply-To: <090940E4-AB36-4019-B898-B5F66D1CA746@twft.com> References: <4D865C2F.6000400@gmail.com> <2573CF4D-1611-461F-A3B0-701D242EF710@mollysrevenge.com> <090940E4-AB36-4019-B898-B5F66D1CA746@twft.com> Message-ID: A main difference (especially coming from LiveCode) is that you do not need to type the columns in SQLite. this means you can just dump anything anywhere, similar to how you can put any kind of data into any container in LiveCode. For mySQL, one would always need to do a lot more of sanitising, like making sure a number is an integer and so on. -- official ChatRev page: http://bjoernke.com/chatrev Chat with other RunRev developers: go stack URL "http://bjoernke.com/chatrev/chatrev1.3b3.rev" From jimaultwins at yahoo.com Tue Mar 22 23:41:31 2011 From: jimaultwins at yahoo.com (Jim Ault) Date: Tue, 22 Mar 2011 20:41:31 -0700 Subject: On-Rev file path In-Reply-To: <6BFC606A-8B73-4026-82A7-C89FDEA5F466@pacifier.com> References: <6BFC606A-8B73-4026-82A7-C89FDEA5F466@pacifier.com> Message-ID: <7E16682E-CD6E-4F4D-9FF1-9E763EFCC945@yahoo.com> On Mar 22, 2011, at 7:57 PM, -=>JB wrote: > I would like to know how to get the path of a file that is > located above the public_html which I think is called > above webroot. > > Let's say I have a file named Hello_World.php and > it is above the public_html. What is it's path and can > I run the file by pointing my browser to it's path like I > can when it is in my domain folder. > > -=>JB<=- You did not specify which protocol you wanted to use, but I am assuming 'http' rather than 'ftp' Part of the definition of a web site that a web server uses is that files located above the public_html directory are not to be served to browsers. This is a part of the security system and a browser should not be able to view or run files outside the normal folder tree. ( just imagine if everyone could look at all the files on your web server! ) There are exceptions to this but you have to so some advanced web server techniques to get this to happen. This is not the ordinary web server setup. You should use your file manager access or ftp:login:password access to move or copy the file to a working location. Hope this helps. Jim Ault Las Vegas From sundown at pacifier.com Wed Mar 23 00:17:28 2011 From: sundown at pacifier.com (-=>JB<=-) Date: Tue, 22 Mar 2011 21:17:28 -0700 Subject: On-Rev file path In-Reply-To: References: <6BFC606A-8B73-4026-82A7-C89FDEA5F466@pacifier.com> Message-ID: <9D386A35-BDEE-45E0-BC39-D49E1086DC32@pacifier.com> Thanks for the info. So if my account name is jayb and I wanted to access the file by pointing my browser to it while it is located in the publc_html folder but not in my domain folder I would use the path /home/jayb/public_html/Hello_World.php and then the file should run? I do not need to use on-rev.com in the path at all? How does it know home is connected to on-rev.com? -=>JB<=- On Mar 22, 2011, at 8:15 PM, Mike Bonner wrote: > You shouldn't be able to call it directly if its outside of your public_html > folder. I think you can 'include' a php file that is outside the boundaries > from another php page, and if I recall correctly there are ways to force php > pages to load from within an irev, but I can't remember whats required for > that. > > As for finding the file structure, using an irev script, something as simple > as a one liner like will tell you your > current path which should be something like: > > /home/youraccountname/public_html > > On Tue, Mar 22, 2011 at 8:57 PM, -=>JB <=- wrote: > >> I would like to know how to get the path of a file that is >> located above the public_html which I think is called >> above webroot. >> >> Let's say I have a file named Hello_World.php and >> it is above the public_html. What is it's path and can >> I run the file by pointing my browser to it's path like I >> can when it is in my domain folder. >> >> -=>JB<=- >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From sundown at pacifier.com Wed Mar 23 00:26:44 2011 From: sundown at pacifier.com (-=>JB<=-) Date: Tue, 22 Mar 2011 21:26:44 -0700 Subject: On-Rev file path In-Reply-To: <7E16682E-CD6E-4F4D-9FF1-9E763EFCC945@yahoo.com> References: <6BFC606A-8B73-4026-82A7-C89FDEA5F466@pacifier.com> <7E16682E-CD6E-4F4D-9FF1-9E763EFCC945@yahoo.com> Message-ID: Thanks for the reply and info. Yes I was referring to 'http'. Actually I was thinking you could not access the file if it was above the public_html and wanted to make sure. I am not actually trying to access a file above public_html even though it looks that way by the question. What I am trying to do is move a folder connected of some web programming software I have installed on my domain. They suggest this be done for more security which I knew having it above public_html was safer. But I need to give it the proper path so the software installed can find it to access it and wanted to have a way to test the path so I asked if the file could be accessed with the browser if it is above public_html. -=>JB<=- On Mar 22, 2011, at 8:41 PM, Jim Ault wrote: > > On Mar 22, 2011, at 7:57 PM, -=>JB wrote: > >> I would like to know how to get the path of a file that is >> located above the public_html which I think is called >> above webroot. >> >> Let's say I have a file named Hello_World.php and >> it is above the public_html. What is it's path and can >> I run the file by pointing my browser to it's path like I >> can when it is in my domain folder. >> >> -=>JB<=- > > You did not specify which protocol you wanted to use, but I am assuming 'http' rather than 'ftp' > > Part of the definition of a web site that a web server uses is that files located above the public_html directory are not to be served to browsers. This is a part of the security system and a browser should not be able to view or run files outside the normal folder tree. > ( just imagine if everyone could look at all the files on your web server! ) > > There are exceptions to this but you have to so some advanced web server techniques to get this to happen. This is not the ordinary web server setup. > > You should use your file manager access or ftp:login:password access to move or copy the file to a working location. > > Hope this helps. > > Jim Ault > Las Vegas > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at mollysrevenge.com Wed Mar 23 01:04:13 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 22 Mar 2011 22:04:13 -0700 Subject: SQL and other databases In-Reply-To: References: <4D865C2F.6000400@gmail.com> <2573CF4D-1611-461F-A3B0-701D242EF710@mollysrevenge.com> <090940E4-AB36-4019-B898-B5F66D1CA746@twft.com> Message-ID: That's an excellent point. I'm so used to SQLite's type tolerance that I will have to be sure to validate data more carefully for MySQL usage. Pete Haworth On Mar 22, 2011, at 8:33 PM, Bj?rnke von Gierke wrote: > A main difference (especially coming from LiveCode) is that you do not need to type the columns in SQLite. this means you can just dump anything anywhere, similar to how you can put any kind of data into any container in LiveCode. For mySQL, one would always need to do a lot more of sanitising, like making sure a number is an integer and so on. > > > > > > -- > > official ChatRev page: > http://bjoernke.com/chatrev > > > Chat with other RunRev developers: > go stack URL "http://bjoernke.com/chatrev/chatrev1.3b3.rev" > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Wed Mar 23 01:40:08 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 23 Mar 2011 00:40:08 -0500 Subject: Weird script behaviour (was libUrlDownloadToFile & urlProgress) In-Reply-To: <903E8E94-9B30-4F0D-A0EC-C99554B1E307@gmail.com> References: <4D890E72.8020603@hyperactivesw.com> <903E8E94-9B30-4F0D-A0EC-C99554B1E307@gmail.com> Message-ID: <4D8987B8.9030509@hyperactivesw.com> On 3/22/11 8:38 PM, Gerry Orkin wrote: > Jacqueline, > > As I mentioned, it goes crazy. Setting a breakpoint in the referring > button script jumps me to the top line of the card script, but not to > the handler being called. The trace shows that LiveCode is attempting > to evaluate every line of code in the card script, starting from the > top, and including blank lines. Are you using the "send" command instead of just calling handlers directly? Those won't break unless you put a breakpoint into the handler you're sending to. But in general you shouldn't need to use "send" for most things. Too many "send" commands in a row can set up a chain reaction and pending messages will run out of control. I've never heard of a problem like this, so it's hard to diagnose. If you post the part of your script where it goes off track maybe we'll see something. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From gandalf at doctorTimothyMiller.com Wed Mar 23 01:58:01 2011 From: gandalf at doctorTimothyMiller.com (Timothy Miller) Date: Tue, 22 Mar 2011 22:58:01 -0700 Subject: newbie script question re Find command In-Reply-To: <4D89231F.4080101@hyperactivesw.com> References: <1530C128-2D2F-47A1-8F24-24222CADA084@doctorTimothyMiller.com> <4D89231F.4080101@hyperactivesw.com> Message-ID: <9C24A108-C3E0-47B1-A641-59734AC6047A@doctorTimothyMiller.com> On Mar 22, 2011, at 3:30 PM, J. Landman Gay wrote: > Off the top of my head: > > put "thing to find" into tVar > repeat > find tVar [in field "thisField"] > if the result = "not found" then exit repeat > put the foundchunk & cr after tFoundList > end repeat > > This will go through all the cards and fields by itself. I didn't test it, so you do that. ;) I probably forgot something. > > Note that if you interrupt the find command it will lose its place, so let the repeat loop continue until it's done. Thanks again Jacque. As usual, I kludged my way through. I'm not sure why, but in your suggested script, the result never = "not found" so it repeats forever. So, I added three lines: repeat put the number of this card into firstNum -- first added line find tVar in field "thisField" put the number of this card into secNum -- second added line if the result = "not found" then exit repeat if firstnum > secnum then exit repeat -- third added line put the foundchunk & cr after tFoundList end repeat That works. There's probably a better way. I've got another question, sort of related, but I'll start a new thread for that. Best regards, Tim From jperryl at ecs.fullerton.edu Wed Mar 23 02:08:29 2011 From: jperryl at ecs.fullerton.edu (Judy Perry) Date: Tue, 22 Mar 2011 23:08:29 -0700 (PDT) Subject: PlonkerPoint In-Reply-To: <4D84F842.7020307@gmail.com> References: <4D84F842.7020307@gmail.com> Message-ID: Richmond, I'm catching up on emails and I was reading this email while allowing my students to work in small groups on their final project, and when I read your definition of IT I literally laughed out loud. The week before I did a lecture on computerized voting machines, known as DREs, and as I was looking at the "slides" in thumbnail view, I couldn't see that I'd actually spelled it out. Not knowing that, I googled DRE to make certain. Top result? Dr. Dre. Next different result? Digital Rectal Examination. Its been a humorous 7 days at work. I positively loathe it whenever I hear of K-12, especially K-6, students being forced to use PPT. Fortunately, that hasn't happened yet with my kids as the billions of US dollars spent to put 3 to 5 crappy semi-functional Dells into every classroom don't really ever get used. Larry Cuban's book "Oversold and Underused: Computers in the Classroom" (http://www.hull.ac.uk/php/edskas/Cuban%20article%20-%20oversold.pdf) is unfortunately a pretty damning indictment. Oh, and be happy that your IT moron wasn't asking you how to install Microsoft Encarta. Now, THAT's a real turd. Judy On Sat, 19 Mar 2011, Richmond wrote: > Powerpoint does command . . . > > My 2 boys have to 'do' presentations for school, and, as we run a 100% > Microsoft-clean > environment at home (well, except for the box that Daddy hides under the bed > with Windows > XP for Beta testing his "Sanskrit nonsense" - see what I mean about > 'all-pervasive) they are forced, > to use either OOO Present or LibreOffice to produce Powerpoint compatible > slide-shows to > run on the crappy machines at school. > > The "IT" teacher at their school (who rang me up once because he didn't know > how to install > an Encyclopedia Britannica DVD on their machines) won't let the boys run a > Livecode standalone > for Windows from a CD or a USB stick. And, bye-the-bye; in the > English-speaking section of > Plovdiv English Language School (my boys are in the German section) "IT" > stands for "It's Turd". From jperryl at ecs.fullerton.edu Wed Mar 23 02:18:21 2011 From: jperryl at ecs.fullerton.edu (Judy Perry) Date: Tue, 22 Mar 2011 23:18:21 -0700 (PDT) Subject: PlonkerPoint In-Reply-To: <2F9B0147-BA0A-4D0A-863E-946ECD7E3139@kagi.com> References: <4D84F842.7020307@gmail.com> <2F9B0147-BA0A-4D0A-863E-946ECD7E3139@kagi.com> Message-ID: NeoOffice too. I really don't need twirly nauseating text. I once had a student group do their report on the eBay phenomenon. Yup, you guessed it. EVERY SINGLE LETTER in the presentation was in a different color. Every line twirled into focus. It was downright nauseating. Oh, and here's a PPT presentation I make my students view every semester; it's Peter Norvig's inspired setting of the Gettysburg Address in PPT: http://www.norvig.com/Gettysburg/index.htm Judy On Sat, 19 Mar 2011, Kee Nethery wrote: > As much as I love Livecode, I use Keynote on the Mac to make my presentations and it is really easy compared to powerpoint. Once I'm done I can export as PowerPoint or PDF and find that works quite well. It's a really nice easy to use tool for presentations. From jperryl at ecs.fullerton.edu Wed Mar 23 02:20:51 2011 From: jperryl at ecs.fullerton.edu (Judy Perry) Date: Tue, 22 Mar 2011 23:20:51 -0700 (PDT) Subject: [OT] Post Conference Fun Stuff In-Reply-To: References: Message-ID: Can you get there via mass transit? Judy From gandalf at doctorTimothyMiller.com Wed Mar 23 02:25:32 2011 From: gandalf at doctorTimothyMiller.com (Timothy Miller) Date: Tue, 22 Mar 2011 23:25:32 -0700 Subject: nother newbie question this time re foundChunk Message-ID: Hi again. I'm working on an indexing script. The relevant portion of my script so far: (it works thanks to you guys) repeat until the shiftKey is down set cursor to busy put the number of this card into firstNum find tTempSearch in field "narrative" put the foundChunk into tFound put the result into tResult put the number of this card into secNum if word 2 of tFound > 30 then subtract 30 from word 2 of tFound add 30 to word 4 of tFound put value(tFound) && "Card ID" & the short ID of this card & cr & cr after tFoundList if tresult = "not found" then exit repeat if firstnum > secnum then exit repeat end repeat At the climax of the script, variable tFoundList gets put into a (cleverly clickable) field on the index card. I can see thirty characters before and after the word or string I searched for, so I can see the searched-for word in context. This will be a more useful index, for my purpose. The trouble is, I end up with fragmentary words in my index field. They look crappy and they're distracting. I'm trying to figure out a way to end up with a consecutive sequence of whole words in each line of the index field. I'm hoping there's a function that works with the "find" command to return something like "word 88 of field 1" As far as I can tell, nothing like that exists. If it did, I could put it into a variable, manipulate it until it looks like "word 78 to 98 of field 1" and then get its value. If that isn't possible, I guess I will have to get the foundChunk and mess with it, to count backward and forward until I encounter " " or cr characters. This will be slow, and it will take me forever to script, though I am capable of getting it right in the end, howsoever kludgily. I tried "the foundText" but as far as I can tell, it returns value(the foundChunk). Not what I need. I tried "find word" but the foundChunk still returns characters, not words. Am I missing anything? Thanks again, Tim (the perpetual newbie) From runrevron at gmail.com Wed Mar 23 04:35:52 2011 From: runrevron at gmail.com (ron barber) Date: Wed, 23 Mar 2011 17:35:52 +0900 Subject: file names in 'do as applescript' Message-ID: Greetings from Japan I am using the following to save files from my application: put "untitled.txt" into fname get "choose file name with prompt ""e& " ""e&" default name"&"e&fname"e do it as applescript When the save file dialog is presented some users are, naturally, using Japanese characters to name the files but when the file is saved the name is always ????. Can I modify my applescript to take the Japanese or is this a limitation with LIvecode? Thanks Ron From bonnmike at gmail.com Wed Mar 23 05:09:40 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 23 Mar 2011 03:09:40 -0600 Subject: On-Rev file path In-Reply-To: References: <6BFC606A-8B73-4026-82A7-C89FDEA5F466@pacifier.com> <7E16682E-CD6E-4F4D-9FF1-9E763EFCC945@yahoo.com> Message-ID: as jim said, anything in public_html and down is accessible from your browser, with public_html being the root. So say you had a file fred.html there, it would be http://yourdomain.wheveritsat.com/fred.html In the case of on-rev, your addon domains are mapped to a folder when you set them up so their root may not be in public_html specifically, they could be public_html/otherdomainname, but this too is handled by the server so still. If you have a domain setup called otherdomain.com that is mapped to the folder /home/jayb/public_html/otherdomainname.com/ And you had your fred.html file in there, you still don't need to use the full path, and in fact it wouldn't work. it would still be http://otherdomain.com/fred.htmlbecause the server knows the root for that domain. The reason to use an outside location for a file would be specifically so that people can't just point a browser at it and access the file, which as jim said is not allowed by the browser. You can however, put libraries there and include them. So, if you had a library for connecting to a database, and it contained information regarding your setup that you didn't want people to poke around in, you could create it above public_html and 'include' it from another page within your regular pages. So if you had an irev file dbdisplay.irev that returns data from your database and a folder named indrectlyaccessiblelibraries folder located in /home/jayb then if you have a line like the following in dbdisplay.irev: include "/home/jayb/indirectlyaccessiblelibraries/mydblibrary.irev" any functions and commands that are in your library would be available to be used in dbdisplay.irev. Or more simply, it could just be a file that displays content itself but that you don't want snooped, so same deal, just include it,and whatever output it has will appear wherever you 'include' it in the main file. If you are using an .irev as a library for commands and functions, it will need to be included at the top of the main file since things are loaded linearly. If you put your include at the bottom, and its used to something that appears earlier in the file it will fail because the functions and commands that it provides won't be loaded yet. As an aside, any subfolders within the main folder for a domain DO need to be specified directly, so if you have your domain mydomain.com whose root is in /home/jayb/public_html/mydomain.com, and you have a folder in there named subfolder then to access pages from within that folder would be http://mydomain.com/subfolder/mypage.irev From keith.clarke at clarkeandclarke.co.uk Wed Mar 23 05:30:43 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Wed, 23 Mar 2011 09:30:43 +0000 Subject: Stand-alone issues: lost images and go to (sub) stack scripts fail In-Reply-To: <4D890FEF.3020006@hyperactivesw.com> References: <141513E6-3B9F-4FB5-82EF-B942F57F1851@clarkeandclarke.co.uk> <4D890FEF.3020006@hyperactivesw.com> Message-ID: <14356911-9C39-4930-9CD0-37327330DEED@clarkeandclarke.co.uk> Hi Jaque, Thanks for response. I'm not sure that paths were the problem, though using your suggestions I did discover that the LiveCode standalone builder doesn't like files on DropBox! Anyway, the image problem is now solved but I'm not being so lucky with moving between substacks in the revlet... > If your images are being loaded from disk, try setting the "Copy Referenced Files" checkbox in the "Copy Files" pane of the standalone builder. That should set up the file references for your images. Unfortunately, copying reference files didn't work nor did adding the specific image file. So, I imported the image as a control into the .livecode file - that worked OK. > If during development you really are using substacks (stacks embedded in the same file on disk) then just leave them that way when you build. Don't set the option that moves substacks into separate files. That will solve the problem with referencing stacks. All the substacks are in the one, single .livecode file on disk. They all appear in the 'Stacks in the referenced stack file:' dialogue in the Stacks pane of the standalone settings utility and the 'Move substacks into individual stackfiles' option is set to false. I can't tell whether the standalone builder has generated the substacks and the scripts are failing or vice versa. The substacks are currently single card stacks and the scripts are very simple, for example: on mouseUp go to stack "Editor" end mouseUp Do I have to be careful with the syntax for moving between stacks - or the mode of the target stack - when deploying into a revlet? Best, Keith.. From gerry.orkin at gmail.com Wed Mar 23 05:41:48 2011 From: gerry.orkin at gmail.com (Gerry) Date: Wed, 23 Mar 2011 20:41:48 +1100 Subject: Weird script behaviour (was libUrlDownloadToFile & urlProgress) In-Reply-To: <4D8987B8.9030509@hyperactivesw.com> References: <4D890E72.8020603@hyperactivesw.com> <903E8E94-9B30-4F0D-A0EC-C99554B1E307@gmail.com> <4D8987B8.9030509@hyperactivesw.com> Message-ID: This is the script that calls the handler: on mouseup set the blendLevel of me to "10" updateSongsList end mouseup This is the handler that it calls (I've xxxx'd out some domain details): on updateSongsList local songsOnDevice, songListOnServer play empty hide button "stopButton" put "Checking for updates..." into field "messages" put url "https://xxxxxxxxxxxx.com/hrabisms/songsupdate.txt" into songListOnServer put the dgText of group "Songs" into songsOnDevice if the number of lines in songListOnServer > the number of lines in songsOnDevice then put "Update received!" into field "messages" wait 120 set the dgText of group "Songs" to songListOnServer set the defaultFolder to specialFolderPath("Documents") put songsOnServer into URL ("file:songs.txt") else put "No update received. Rats." into field "messages" wait 120 end if put "" into field "messages" end updateSongsList As I said previously, this script is not executed if it's in the card script, but does when it's in the stack script. That's weird enough, but if I place it in the card script and I use "Send updateSongsList to this card" in the button script it starts executing the card script from the top, and I can track that by setting a breakpoint against the send command - it jumps from the button script into the card script, and I can step through all the lines in that card script, executing them as I go. Like I said, totally crazy! Gerry -- photo site: http://gerryorkin.com On Wednesday, 23 March 2011 at 4:40 PM, J. Landman Gay wrote: > On 3/22/11 8:38 PM, Gerry Orkin wrote: > > Jacqueline, > > > > As I mentioned, it goes crazy. Setting a breakpoint in the referring > > button script jumps me to the top line of the card script, but not to > > the handler being called. The trace shows that LiveCode is attempting > > to evaluate every line of code in the card script, starting from the > > top, and including blank lines. > > Are you using the "send" command instead of just calling handlers > directly? Those won't break unless you put a breakpoint into the handler > you're sending to. But in general you shouldn't need to use "send" for > most things. Too many "send" commands in a row can set up a chain > reaction and pending messages will run out of control. > > I've never heard of a problem like this, so it's hard to diagnose. If > you post the part of your script where it goes off track maybe we'll see > something. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bonnmike at gmail.com Wed Mar 23 05:51:49 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 23 Mar 2011 03:51:49 -0600 Subject: nother newbie question this time re foundChunk In-Reply-To: References: Message-ID: If you know the number of words in the field: put the number of words in field "narrative" into tWords and you know the location of the found word: put the number of words in (char 1 to (word 4 of tfound)) in field "narrative" into tFoundWord -- didn't try it, check syntax then you should be able to grab the number of words you want directly. Will still need to make sure the word location isn't too close to the beginning or end of the text, but if you wanted 5 words on either side of the found word you could do: put word (tFoundWord - 5) to (tFoundWord + 5) of field "narrative" & the short ID of this card & cr &cr after tFoundList There is probably a better way, but this should work. Again, untested but I think other than lacking the checks for too close to the start or end to get 5 words on either side, it should be close to what you want. Oh, and if there is a lot in your narrative field, it might not hurt to do the word counting stuff against a variable instead for speed purposes: put field "narrative" into tNarrative do your find as normal, but change to: put the number of words in tNarrative into tWords as well as: put the number of words in (char 1 to (word 4 of tfound)) in tNarrative into tFoundWord and: put word (tFoundWord - 5) to (tFoundWord + 5) of tNarrative & the short ID of this card & cr &cr after tFoundList On Wed, Mar 23, 2011 at 12:25 AM, Timothy Miller < gandalf at doctortimothymiller.com> wrote: > Hi again. > > I'm working on an indexing script. > The relevant portion of my script so far: (it works thanks to you guys) > > repeat until the shiftKey is down > set cursor to busy > put the number of this card into firstNum > find tTempSearch in field "narrative" > put the foundChunk into tFound > put the result into tResult > put the number of this card into secNum > if word 2 of tFound > 30 then subtract 30 from word 2 of tFound > add 30 to word 4 of tFound > put value(tFound) && "Card ID" & the short ID of this card & cr & cr > after tFoundList > if tresult = "not found" then exit repeat > if firstnum > secnum then exit repeat > end repeat > > At the climax of the script, variable tFoundList gets put into a (cleverly > clickable) field on the index card. I can see thirty characters before and > after the word or string I searched for, so I can see the searched-for word > in context. This will be a more useful index, for my purpose. > > The trouble is, I end up with fragmentary words in my index field. They > look crappy and they're distracting. > > I'm trying to figure out a way to end up with a consecutive sequence of > whole words in each line of the index field. > > I'm hoping there's a function that works with the "find" command to return > something like "word 88 of field 1" As far as I can tell, nothing like that > exists. If it did, I could put it into a variable, manipulate it until it > looks like "word 78 to 98 of field 1" and then get its value. > > If that isn't possible, I guess I will have to get the foundChunk and mess > with it, to count backward and forward until I encounter " " or cr > characters. This will be slow, and it will take me forever to script, though > I am capable of getting it right in the end, howsoever kludgily. > > I tried "the foundText" but as far as I can tell, it returns value(the > foundChunk). Not what I need. I tried "find word" but the foundChunk still > returns characters, not words. > > Am I missing anything? > > Thanks again, > > Tim (the perpetual newbie) > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From scott at tactilemedia.com Wed Mar 23 06:25:14 2011 From: scott at tactilemedia.com (Scott Rossi) Date: Wed, 23 Mar 2011 03:25:14 -0700 Subject: [OT] Post Conference Fun Stuff In-Reply-To: Message-ID: Recently, Judy Perry wrote: > Can you get there via mass transit? FYI: public transit in the SF Bay Area sucks. I can say that because I've lived here all my life. That said, if it comes down to it, getting to the Computer History Museum (and almost anywhere else) via public transit is possible, it's just not convenient. The conference hotel appears to be between two train stops, which might be a bit farther than walking distance, but somewhat close. Google's trip planner gets you almost door to door via buses, trains, and walking, at a time of just over 2 hours. That's a bit long. Perhaps the RunRev folks will be able to work something out. Regards, Scott Rossi Creative Director Tactile Media, UX Design From sundown at pacifier.com Wed Mar 23 06:35:28 2011 From: sundown at pacifier.com (-=>JB<=-) Date: Wed, 23 Mar 2011 03:35:28 -0700 Subject: On-Rev file path In-Reply-To: References: <6BFC606A-8B73-4026-82A7-C89FDEA5F466@pacifier.com> <7E16682E-CD6E-4F4D-9FF1-9E763EFCC945@yahoo.com> Message-ID: Thank you for explaining it in detail for me. In your reply the directory path that is closest to my situation you provided is include "/home/jayb/indirectlyaccessiblelibraries/mydblibrary.irev" What I am trying to do is move a folder out of public_html and then provide the proper path to it so it can be accessed by software that I have installed that is designed to allow you to move the folder for greater security of files if you provide the proper path. This is web development software but in this case I am not using irev to access the files it will be done by the software using .htaccess or whatever they have programmed. In this situation would the folder I moved above public_html that is named myfiles have the path /home/jayb/myfiles That is all I need to enter when I am asked to change the path of the folder after I have moved it above public_html? I understand how /home/jayb does not need a www address since software in my domain folder knows where it is but what if I want to give it a full path with www would it include on-rev in the path? The cPanel would show my account as main domain jayb.on-rev.com Home Directory /home/jayb The software is located in a domain that has been added which is located in the public_html folder and I have no problems with accessing any files or folders in the domain that has been added. Is there a path that is valid which uses the main domain in the path and www to access files in the domain which is located in public_html or there are absolutely no situations where you can access files with www and the main domain path on down to the files in public_html. -=>JB<=- On Mar 23, 2011, at 2:09 AM, Mike Bonner wrote: > as jim said, anything in public_html and down is accessible from your > browser, with public_html being the root. So say you had a file fred.html > there, it would be http://yourdomain.wheveritsat.com/fred.html In the case > of on-rev, your addon domains are mapped to a folder when you set them up so > their root may not be in public_html specifically, they could be > public_html/otherdomainname, but this too is handled by the server so still. > If you have a domain setup called otherdomain.com that is mapped to the > folder /home/jayb/public_html/otherdomainname.com/ And you had your > fred.html file in there, you still don't need to use the full path, and in > fact it wouldn't work. it would still be > http://otherdomain.com/fred.htmlbecause the server knows the root for > that domain. > > The reason to use an outside location for a file would be specifically so > that people can't just point a browser at it and access the file, which as > jim said is not allowed by the browser. You can however, put libraries > there and include them. So, if you had a library for connecting to a > database, and it contained information regarding your setup that you didn't > want people to poke around in, you could create it above public_html and > 'include' it from another page within your regular pages. So if you had an > irev file dbdisplay.irev that returns data from your database and a folder > named indrectlyaccessiblelibraries folder located in /home/jayb then if you > have a line like the following in dbdisplay.irev: > > include "/home/jayb/indirectlyaccessiblelibraries/mydblibrary.irev" > > any functions and commands that are in your library would be available to be > used in dbdisplay.irev. Or more simply, it could just be a file that > displays content itself but that you don't want snooped, so same deal, just > include it,and whatever output it has will appear wherever you 'include' it > in the main file. > > If you are using an .irev as a library for commands and functions, it will > need to be included at the top of the main file since things are loaded > linearly. If you put your include at the bottom, and its used to something > that appears earlier in the file it will fail because the functions and > commands that it provides won't be loaded yet. > > As an aside, any subfolders within the main folder for a domain DO need to > be specified directly, so if you have your domain mydomain.com whose root is > in /home/jayb/public_html/mydomain.com, and you have a folder in there named > subfolder then to access pages from within that folder would be > http://mydomain.com/subfolder/mypage.irev > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From keith.clarke at clarkeandclarke.co.uk Wed Mar 23 06:42:19 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Wed, 23 Mar 2011 10:42:19 +0000 Subject: Stand-alone issues: lost images and go to (sub) stack scripts fail In-Reply-To: <14356911-9C39-4930-9CD0-37327330DEED@clarkeandclarke.co.uk> References: <141513E6-3B9F-4FB5-82EF-B942F57F1851@clarkeandclarke.co.uk> <4D890FEF.3020006@hyperactivesw.com> <14356911-9C39-4930-9CD0-37327330DEED@clarkeandclarke.co.uk> Message-ID: <5F494A9D-4367-4A5D-84FD-ECE47A8E4D41@clarkeandclarke.co.uk> Solved! After a bit of digging I discovered this forum topic http://forums.runrev.com/viewtopic.php?f=18&t=4580 which discusses the revlet limitation on opening substacks. Changing my script to include the suffix 'in the window of this stack' solved the problem. So, my navigation scripts now look like this... on mouseUp go to stack "" in window of this stack end mouseUp Best, Keith.. On 23 Mar 2011, at 09:30, Keith Clarke wrote: > Do I have to be careful with the syntax for moving between stacks - or the mode of the target stack - when deploying into a revlet? > Best, > Keith.. From sundown at pacifier.com Wed Mar 23 07:00:13 2011 From: sundown at pacifier.com (-=>JB<=-) Date: Wed, 23 Mar 2011 04:00:13 -0700 Subject: On-Rev file path In-Reply-To: References: <6BFC606A-8B73-4026-82A7-C89FDEA5F466@pacifier.com> <7E16682E-CD6E-4F4D-9FF1-9E763EFCC945@yahoo.com> Message-ID: <084219C9-86F9-4DD7-A5DD-C130884C1065@pacifier.com> I tested this and it works using my actual account name. http://www.jayb.on-rev.com/mydomain.net/wheramifile.php thank you very much for the detailed info. -=>JB<=- On Mar 23, 2011, at 3:35 AM, -=>JB wrote: > Thank you for explaining it in detail for me. In your reply the directory path > that is closest to my situation you provided is > > include "/home/jayb/indirectlyaccessiblelibraries/mydblibrary.irev" > > What I am trying to do is move a folder out of public_html and then > provide the proper path to it so it can be accessed by software that > I have installed that is designed to allow you to move the folder for > greater security of files if you provide the proper path. This is web > development software but in this case I am not using irev to access > the files it will be done by the software using .htaccess or whatever > they have programmed. > > In this situation would the folder I moved above public_html that is > named myfiles have the path > > /home/jayb/myfiles > > That is all I need to enter when I am asked to change the path of > the folder after I have moved it above public_html? I understand > how /home/jayb does not need a www address since software > in my domain folder knows where it is but what if I want to give > it a full path with www would it include on-rev in the path? The > cPanel would show my account as > > main domain jayb.on-rev.com > Home Directory /home/jayb > > The software is located in a domain that has been added which > is located in the public_html folder and I have no problems with > accessing any files or folders in the domain that has been added. > > Is there a path that is valid which uses the main domain in the path > and www to access files in the domain which is located in public_html > or there are absolutely no situations where you can access files with > www and the main domain path on down to the files in public_html. > > -=>JB<=- > > > > > On Mar 23, 2011, at 2:09 AM, Mike Bonner wrote: > >> as jim said, anything in public_html and down is accessible from your >> browser, with public_html being the root. So say you had a file fred.html >> there, it would be http://yourdomain.wheveritsat.com/fred.html In the case >> of on-rev, your addon domains are mapped to a folder when you set them up so >> their root may not be in public_html specifically, they could be >> public_html/otherdomainname, but this too is handled by the server so still. >> If you have a domain setup called otherdomain.com that is mapped to the >> folder /home/jayb/public_html/otherdomainname.com/ And you had your >> fred.html file in there, you still don't need to use the full path, and in >> fact it wouldn't work. it would still be >> http://otherdomain.com/fred.htmlbecause the server knows the root for >> that domain. >> >> The reason to use an outside location for a file would be specifically so >> that people can't just point a browser at it and access the file, which as >> jim said is not allowed by the browser. You can however, put libraries >> there and include them. So, if you had a library for connecting to a >> database, and it contained information regarding your setup that you didn't >> want people to poke around in, you could create it above public_html and >> 'include' it from another page within your regular pages. So if you had an >> irev file dbdisplay.irev that returns data from your database and a folder >> named indrectlyaccessiblelibraries folder located in /home/jayb then if you >> have a line like the following in dbdisplay.irev: >> >> include "/home/jayb/indirectlyaccessiblelibraries/mydblibrary.irev" >> >> any functions and commands that are in your library would be available to be >> used in dbdisplay.irev. Or more simply, it could just be a file that >> displays content itself but that you don't want snooped, so same deal, just >> include it,and whatever output it has will appear wherever you 'include' it >> in the main file. >> >> If you are using an .irev as a library for commands and functions, it will >> need to be included at the top of the main file since things are loaded >> linearly. If you put your include at the bottom, and its used to something >> that appears earlier in the file it will fail because the functions and >> commands that it provides won't be loaded yet. >> >> As an aside, any subfolders within the main folder for a domain DO need to >> be specified directly, so if you have your domain mydomain.com whose root is >> in /home/jayb/public_html/mydomain.com, and you have a folder in there named >> subfolder then to access pages from within that folder would be >> http://mydomain.com/subfolder/mypage.irev >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From keith.clarke at clarkeandclarke.co.uk Wed Mar 23 07:34:02 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Wed, 23 Mar 2011 11:34:02 +0000 Subject: Revlet - how to get back to the main stack from a substack? Message-ID: Hi Folks, I'm using 'go to stack "substack" in the window of me' to navigate to substacks in a revlet but can't seem to find a suitable script for a 'close' button on the substack to return to the main stack. The following lines are ignored: 'go to stack "" in the window of me' 'go to stack ""' 'go back' So, what's the secret formula? ;-) Best, Keith.. From keith.clarke at clarkeandclarke.co.uk Wed Mar 23 08:47:08 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Wed, 23 Mar 2011 12:47:08 +0000 Subject: Revlet - how to get back to the main stack from a substack? In-Reply-To: References: Message-ID: <784C44A2-7325-4A27-B405-967E71C231A0@clarkeandclarke.co.uk> OK, it seems that within a revlet, navigation from main stack to substack and between substacks works fine using... on mouseUp go to stack "" in the window of this stack end mouseUp Getting back to the main stack as the revlet's 'home page' seems more difficult (at least, I can't solve it). So, it looks like the work-around is to make the main stack an introductory splash screen with a 'click-to-enter' control and have the 'home' page as just another substack. Best, Keith.. On 23 Mar 2011, at 11:34, Keith Clarke wrote: > Hi Folks, > I'm using 'go to stack "substack" in the window of me' to navigate to substacks in a revlet but can't seem to find a suitable script for a 'close' button on the substack to return to the main stack. The following lines are ignored: > > 'go to stack "" in the window of me' > 'go to stack ""' > 'go back' > > So, what's the secret formula? ;-) > Best, > Keith.. From m.schonewille at economy-x-talk.com Wed Mar 23 08:52:35 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 23 Mar 2011 13:52:35 +0100 Subject: Revlet - how to get back to the main stack from a substack? In-Reply-To: References: Message-ID: <910E3880-5DEB-4076-BDC7-B3F967B65345@economy-x-talk.com> Hi Keith, I don't know whether the ownership of the window actually changes, when you go to the substack. What happens if you try go stack "Name of mainstack" in the window of stack "Name of mainstack" (This might be completely wrong, but if everything else fails, just give it a try). You'd have to read the docs for this, but perhaps it is also possible to store the window ID in a variable and use that to refer to the window, instead of "the window of me". -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce On 23 mrt 2011, at 12:34, Keith Clarke wrote: > Hi Folks, > I'm using 'go to stack "substack" in the window of me' to navigate to substacks in a revlet but can't seem to find a suitable script for a 'close' button on the substack to return to the main stack. The following lines are ignored: > > 'go to stack "" in the window of me' > 'go to stack ""' > 'go back' > > So, what's the secret formula? ;-) > Best, > Keith From ray at linkit.com Wed Mar 23 10:12:10 2011 From: ray at linkit.com (Ray Horsley) Date: Wed, 23 Mar 2011 10:12:10 -0400 Subject: Datagrid Column Highlighting In-Reply-To: <7445F9A8-5F0C-4AEF-AD09-967B1D18E7BB@twft.com> References: <001d01cbe8b7$e75b7160$b6125420$@LinkIt.Com> <7445F9A8-5F0C-4AEF-AD09-967B1D18E7BB@twft.com> Message-ID: <005001cbe964$4e10b3f0$ea321bd0$@LinkIt.Com> Bob, Much thanks for making me aware of this supplement! Ray -----Original Message----- From: use-livecode-bounces at lists.runrev.com [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Bob Sneidar Sent: Tuesday, March 22, 2011 2:52 PM To: How to use LiveCode Subject: Re: Datagrid Column Highlighting I don't think you can select an entire column. What you can do is fake it. The Data Grid Helper by Zryip allows you to set a script that disables sorting, but you need to make the user think a column is selected. Data Grid Helper also has a way of manually setting alternating column colors like you can with rows. You should see if he will include a new script to "hilite" a single column (if that is even possible). Bob On Mar 22, 2011, at 10:38 AM, Ray Horsley wrote: > I can't seem to figure out how to stop a datagrid's behavior from > sorting the entire grid each time a user clicks a column heading. I > would much rather have the column highlighted after the user clicks it > instead of sorting. Anybody know how to set this? > > > > Thanks, > > > > Ray > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From keith.clarke at clarkeandclarke.co.uk Wed Mar 23 10:14:13 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Wed, 23 Mar 2011 14:14:13 +0000 Subject: Revlet - how to get back to the main stack from a substack? In-Reply-To: <910E3880-5DEB-4076-BDC7-B3F967B65345@economy-x-talk.com> References: <910E3880-5DEB-4076-BDC7-B3F967B65345@economy-x-talk.com> Message-ID: <15123BE1-86CC-4A97-AEF1-4C4D16B5AB15@clarkeandclarke.co.uk> Hi Mark, Thanks for the response and suggestions. According to the documentation, windowID generated by the underlying OS, applied to each new application window opened. So, opening a substack using 'go stack "" in the window of this stack' is the equivalent of opening a new web page in the same browser window - the windowID should stay the same. To prove this logic, in the IDE on OSX, if I type 'answer the windowid of current stack' into the message box whilst focused on the main stack, I get a 9-digit number returned. If I then navigate to the substack using the '...in this window' statement and repeat the message box command, I get the same number. So, OSX has retained the windowID for the substack. Once deployed to the revlet, the underlying OS sees only a single window, so outside the rev browser plugin, nothing changes. Meanwhile, within the revlet, I can move from main-stack to substacks and between substacks using this same command. So it should be possible to navigate back to the main stack in the same (or a similar) way. So unless there is some undocumented secret syntax somewhere, this looks like a bug with the LiveCode browser plugin. Best, Keith.. On 23 Mar 2011, at 12:52, Mark Schonewille wrote: > Hi Keith, > > I don't know whether the ownership of the window actually changes, when you go to the substack. What happens if you try > > go stack "Name of mainstack" in the window of stack "Name of mainstack" > > (This might be completely wrong, but if everything else fails, just give it a try). > > You'd have to read the docs for this, but perhaps it is also possible to store the window ID in a variable and use that to refer to the window, instead of "the window of me". From pepetoo at cox.net Wed Mar 23 10:25:10 2011 From: pepetoo at cox.net (Joe Lewis Wilkins) Date: Wed, 23 Mar 2011 07:25:10 -0700 Subject: Revlet - how to get back to the main stack from a substack? In-Reply-To: <15123BE1-86CC-4A97-AEF1-4C4D16B5AB15@clarkeandclarke.co.uk> References: <910E3880-5DEB-4076-BDC7-B3F967B65345@economy-x-talk.com> <15123BE1-86CC-4A97-AEF1-4C4D16B5AB15@clarkeandclarke.co.uk> Message-ID: I've had success moving between several stacks, main and sub just using the "push card" and "pop card" commands at appropriate times. Doesn't matter what the IDs or names are. Try it; you'll like it. Joe Lewis Wilkins Architect & Director of Product Development for GSI On Mar 23, 2011, at 7:14 AM, Keith Clarke wrote: > Hi Mark, > Thanks for the response and suggestions. > > According to the documentation, windowID generated by the underlying OS, applied to each new application window opened. So, opening a substack using 'go stack "" in the window of this stack' is the equivalent of opening a new web page in the same browser window - the windowID should stay the same. > > To prove this logic, in the IDE on OSX, if I type 'answer the windowid of current stack' into the message box whilst focused on the main stack, I get a 9-digit number returned. If I then navigate to the substack using the '...in this window' statement and repeat the message box command, I get the same number. So, OSX has retained the windowID for the substack. > > Once deployed to the revlet, the underlying OS sees only a single window, so outside the rev browser plugin, nothing changes. Meanwhile, within the revlet, I can move from main-stack to substacks and between substacks using this same command. So it should be possible to navigate back to the main stack in the same (or a similar) way. > > So unless there is some undocumented secret syntax somewhere, this looks like a bug with the LiveCode browser plugin. > Best, > Keith.. > > On 23 Mar 2011, at 12:52, Mark Schonewille wrote: > >> Hi Keith, >> >> I don't know whether the ownership of the window actually changes, when you go to the substack. What happens if you try >> >> go stack "Name of mainstack" in the window of stack "Name of mainstack" >> >> (This might be completely wrong, but if everything else fails, just give it a try). >> >> You'd have to read the docs for this, but perhaps it is also possible to store the window ID in a variable and use that to refer to the window, instead of "the window of me". From williamdesmet at gmail.com Wed Mar 23 10:38:59 2011 From: williamdesmet at gmail.com (William de Smet) Date: Wed, 23 Mar 2011 15:38:59 +0100 Subject: Question about char and typing excercise Message-ID: Hi there, I am making a little two letter word - typing excercise and that works fine. ?if vArr = 97 then if char 1 of fld "Word" is "a" then delete the first char of fld "Word" end if end if etc, etc ... For a variation of this excercise I want NOT to delete the letter but turn the letter green or red and then check for the next char of the word. I use: if vArr = 98 and char 1 of fld "Word" is "b" then set the foregroundcolor of char 1 of fld "Word" to green if vArr = 98 and char 1 of fld "Word" is not "b" then set the foregroundcolor of char 1 of fld "Word" to red This is where I am stuck now. How do I make the script work so that depending on the color of the previous char the next char of the Word will be checked? if vArr = 112 and the foregroundcolor of char 1 of fld "Word" = green and char 2 of fld "Word" is "p" then set the foregroundcolor of char 2 of fld "voorbeeld" to green end if This doesn't work Any idea's are welcome! greetings, William From keith.clarke at clarkeandclarke.co.uk Wed Mar 23 10:51:53 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Wed, 23 Mar 2011 14:51:53 +0000 Subject: Revlet - how to get back to the main stack from a substack? In-Reply-To: References: <910E3880-5DEB-4076-BDC7-B3F967B65345@economy-x-talk.com> <15123BE1-86CC-4A97-AEF1-4C4D16B5AB15@clarkeandclarke.co.uk> Message-ID: <847BE202-3054-4B7B-8077-97C761550D14@clarkeandclarke.co.uk> Hi Joe, Thanks for the suggestion, but I don't seem to be able to pop a card that's in a different stack - but maybe I just have my syntax wrong. Any chance you could provide an example line of code that you know successfully pops a revlet's main-stack card from a script on a substack object? Thanks, Keith.. On 23 Mar 2011, at 14:25, Joe Lewis Wilkins wrote: > I've had success moving between several stacks, main and sub just using the "push card" and "pop card" commands at appropriate times. Doesn't matter what the IDs or names are. Try it; you'll like it. > > Joe Lewis Wilkins > Architect & Director of Product Development for GSI > From pepetoo at cox.net Wed Mar 23 11:18:19 2011 From: pepetoo at cox.net (Joe Lewis Wilkins) Date: Wed, 23 Mar 2011 08:18:19 -0700 Subject: Revlet - how to get back to the main stack from a substack? In-Reply-To: <847BE202-3054-4B7B-8077-97C761550D14@clarkeandclarke.co.uk> References: <910E3880-5DEB-4076-BDC7-B3F967B65345@economy-x-talk.com> <15123BE1-86CC-4A97-AEF1-4C4D16B5AB15@clarkeandclarke.co.uk> <847BE202-3054-4B7B-8077-97C761550D14@clarkeandclarke.co.uk> Message-ID: <199F0BE8-D84D-4479-9D4F-52078F4A2063@cox.net> Ooops! I didn't pick up that you're working with revlets. Sorry, mine are just ordinary LiveCode stacks. The syntax for mine is so very simple: recognize the stack to which you wish to return and "push this cd"; when you're ready to return to that stack, regardless of where you may have gone in the interim just "pop cd" and you'll be back to the cd of the stack in which you "pushed". Obviously, not rocket science. You may have gone to a lot of different cards in different stacks between the push and the pop. However, I've never used it in a revlet. Joe Lewis Wilkins Architect & Director of Product Development for GSI On Mar 23, 2011, at 7:51 AM, Keith Clarke wrote: > Hi Joe, > Thanks for the suggestion, but I don't seem to be able to pop a card that's in a different stack - but maybe I just have my syntax wrong. > Any chance you could provide an example line of code that you know successfully pops a revlet's main-stack card from a script on a substack object? > Thanks, > Keith.. > On 23 Mar 2011, at 14:25, Joe Lewis Wilkins wrote: > >> I've had success moving between several stacks, main and sub just using the "push card" and "pop card" commands at appropriate times. Doesn't matter what the IDs or names are. Try it; you'll like it. >> From keith.clarke at clarkeandclarke.co.uk Wed Mar 23 11:44:40 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Wed, 23 Mar 2011 15:44:40 +0000 Subject: Revlet - how to get back to the main stack from a substack? In-Reply-To: <199F0BE8-D84D-4479-9D4F-52078F4A2063@cox.net> References: <910E3880-5DEB-4076-BDC7-B3F967B65345@economy-x-talk.com> <15123BE1-86CC-4A97-AEF1-4C4D16B5AB15@clarkeandclarke.co.uk> <847BE202-3054-4B7B-8077-97C761550D14@clarkeandclarke.co.uk> <199F0BE8-D84D-4479-9D4F-52078F4A2063@cox.net> Message-ID: <712F7315-9B87-454E-8592-600B96A26225@clarkeandclarke.co.uk> ...oh, you had me hoping for a quick fix then - never mind ;-) On 23 Mar 2011, at 15:18, Joe Lewis Wilkins wrote: > Ooops! I didn't pick up that you're working with revlets. Sorry, mine are just ordinary LiveCode stacks. The syntax for mine is so very simple: recognize the stack to which you wish to return and "push this cd"; when you're ready to return to that stack, regardless of where you may have gone in the interim just "pop cd" and you'll be back to the cd of the stack in which you "pushed". Obviously, not rocket science. You may have gone to a lot of different cards in different stacks between the push and the pop. However, I've never used it in a revlet. > > Joe Lewis Wilkins > Architect & Director of Product Development for GSI > > > > On Mar 23, 2011, at 7:51 AM, Keith Clarke wrote: > >> Hi Joe, >> Thanks for the suggestion, but I don't seem to be able to pop a card that's in a different stack - but maybe I just have my syntax wrong. >> Any chance you could provide an example line of code that you know successfully pops a revlet's main-stack card from a script on a substack object? >> Thanks, >> Keith.. >> On 23 Mar 2011, at 14:25, Joe Lewis Wilkins wrote: >> >>> I've had success moving between several stacks, main and sub just using the "push card" and "pop card" commands at appropriate times. Doesn't matter what the IDs or names are. Try it; you'll like it. >>> > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From stephenREVOLUTION2 at barncard.com Wed Mar 23 11:56:41 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Wed, 23 Mar 2011 08:56:41 -0700 Subject: [OT] Post Conference Fun Stuff In-Reply-To: References: Message-ID: Compared to what? France? Correction: The public transit in OTHER Bay area places than San Francisco proper. suck. They really try here in the city with 5 means of public transit and pretty good coverage, but such a thing is tough with tough unions on one side and dwindling money to pay for it. But for the rest of the peninsula and the east bay, it , as you say pretty sucky. On 23 March 2011 03:25, Scott Rossi wrote: > Recently, Judy Perry wrote: > > > Can you get there via mass transit? > > FYI: public transit in the SF Bay Area sucks. I can say that because I've > lived here all my life. > > That said, if it comes down to it, getting to the Computer History Museum > (and almost anywhere else) via public transit is possible, it's just not > convenient. The conference hotel appears to be between two train stops, > which might be a bit farther than walking distance, but somewhat close. > Google's trip planner gets you almost door to door via buses, trains, and > walking, at a time of just over 2 hours. That's a bit long. > > Perhaps the RunRev folks will be able to work something out. > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX Design > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Stephen Barncard San Francisco Ca. USA more about sqb From keith.clarke at clarkeandclarke.co.uk Wed Mar 23 12:24:22 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Wed, 23 Mar 2011 16:24:22 +0000 Subject: Revlet - how to get back to the main stack from a substack? In-Reply-To: <15123BE1-86CC-4A97-AEF1-4C4D16B5AB15@clarkeandclarke.co.uk> References: <910E3880-5DEB-4076-BDC7-B3F967B65345@economy-x-talk.com> <15123BE1-86CC-4A97-AEF1-4C4D16B5AB15@clarkeandclarke.co.uk> Message-ID: <13CA7431-C0C2-4470-B1CD-E11B1479CE8F@clarkeandclarke.co.uk> After further research, I discover that the current browser plugin requires revlet stacks to be the same size. So, there is no way to mock-up web page pop-up dialogue boxes or lightbox effects other than to create full-size pages with dark backgrounds - much as when using PowerPoint/Keynote, etc. Consequently, there is little benefit in using sub-stacks to manage the sizes and backgrounds of various different dialogue windows in the early stages of prototyping. Rather, groups (that may become discrete stack backgrounds in due course) can be copied across cards within a single revlet stack. So, after copying my various substack pages into the main stack (which now becomes the only stack) navigation is purely between cards, which seems to be much easier. So much for the LiveCode philosophy of developing once and then simply deploying to the appropriate platform! Maybe this will change if a new browser plugin is released(?) Best, Keith.. > Hi Mark, > Thanks for the response and suggestions. > > According to the documentation, windowID generated by the underlying OS, applied to each new application window opened. So, opening a substack using 'go stack "" in the window of this stack' is the equivalent of opening a new web page in the same browser window - the windowID should stay the same. > > To prove this logic, in the IDE on OSX, if I type 'answer the windowid of current stack' into the message box whilst focused on the main stack, I get a 9-digit number returned. If I then navigate to the substack using the '...in this window' statement and repeat the message box command, I get the same number. So, OSX has retained the windowID for the substack. > > Once deployed to the revlet, the underlying OS sees only a single window, so outside the rev browser plugin, nothing changes. Meanwhile, within the revlet, I can move from main-stack to substacks and between substacks using this same command. So it should be possible to navigate back to the main stack in the same (or a similar) way. > > So unless there is some undocumented secret syntax somewhere, this looks like a bug with the LiveCode browser plugin. From andrew at rjdfarm.com Wed Mar 23 12:25:09 2011 From: andrew at rjdfarm.com (Andrew Kluthe) Date: Wed, 23 Mar 2011 09:25:09 -0700 (PDT) Subject: 4.6 released In-Reply-To: <28A3706B-FD18-421D-9FD4-E7A2CF977A01@twft.com> References: <28A3706B-FD18-421D-9FD4-E7A2CF977A01@twft.com> Message-ID: <1300897509920-3399912.post@n4.nabble.com> After reading the email I got from runrev, I went to go download and they asked for some upgrade fees. Pfft. I just bought 4.5 in Jan. Try soliciting me again when 5.0 comes out with something fresh. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/4-6-released-tp3397103p3399912.html Sent from the Revolution - User mailing list archive at Nabble.com. From bobs at twft.com Wed Mar 23 12:31:55 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 23 Mar 2011 09:31:55 -0700 Subject: 4.6 released In-Reply-To: <1300897509920-3399912.post@n4.nabble.com> References: <28A3706B-FD18-421D-9FD4-E7A2CF977A01@twft.com> <1300897509920-3399912.post@n4.nabble.com> Message-ID: That's odd. You should have a 1 year upgrade at least. Better contact support. BTW did you log in with your runrev account credentials before trying to download it? Bob On Mar 23, 2011, at 9:25 AM, Andrew Kluthe wrote: > After reading the email I got from runrev, I went to go download and they > asked for some upgrade fees. Pfft. I just bought 4.5 in Jan. Try soliciting > me again when 5.0 comes out with something fresh. > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/4-6-released-tp3397103p3399912.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dixonja at hotmail.co.uk Wed Mar 23 12:32:43 2011 From: dixonja at hotmail.co.uk (John Dixon) Date: Wed, 23 Mar 2011 16:32:43 +0000 Subject: Revlet - how to get back to the main stack from a substack? In-Reply-To: <784C44A2-7325-4A27-B405-967E71C231A0@clarkeandclarke.co.uk> References: , <784C44A2-7325-4A27-B405-967E71C231A0@clarkeandclarke.co.uk> Message-ID: Keith... I made a stack 'main' with sub-stack 'sub' placed a button on each stack... In the button on stack 'main'... on mouseUp go stack "sub" in the window of stack "main" end mouseUp In the button on stack 'sub' on mouseUp go stack "main" in the window of stack "sub" end mouseUp Then made the stack into a revlet... it will then allow you to navigate between the stacks. John Dixon > OK, it seems that within a revlet, navigation from main stack to substack and between substacks works fine using... > > on mouseUp > go to stack "" in the window of this stack > end mouseUp > > Getting back to the main stack as the revlet's 'home page' seems more difficult (at least, I can't solve it). > > So, it looks like the work-around is to make the main stack an introductory splash screen with a 'click-to-enter' control and have the 'home' page as just another substack. > > I'm using 'go to stack "substack" in the window of me' to navigate to substacks in a revlet but can't seem to find a suitable script for a 'close' button on the substack to return to the main stack. The following lines are ignored: > > > > 'go to stack "" in the window of me' > > 'go to stack ""' > > 'go back' > > > > So, what's the secret formula? ;-) > > Best, > > Keith.. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dunbarx at aol.com Wed Mar 23 12:46:32 2011 From: dunbarx at aol.com (dunbarx at aol.com) Date: Wed, 23 Mar 2011 12:46:32 -0400 Subject: Question about char and typing excercise In-Reply-To: References: Message-ID: <8CDB790FFC32112-1288-17E2@webmail-stg-d15.sysops.aol.com> Hi. Do you get a compile error or does the script just not work? The code snippet is not enough for me to figure out what might not be compiling if that is the issue. You might have a missing line break character (\) after the "if" line. You can condense your code quite a bit, but don't worry about that until you have it functioning. Craig Newman -----Original Message----- From: William de Smet To: How to use LiveCode Sent: Wed, Mar 23, 2011 10:38 am Subject: Question about char and typing excercise Hi there, I am making a little two letter word - typing excercise and that works fine. if vArr = 97 then if char 1 of fld "Word" is "a" then delete the first char of fld "Word" end if end if etc, etc ... For a variation of this excercise I want NOT to delete the letter but turn the letter green or red and then check for the next char of the word. I use: if vArr = 98 and char 1 of fld "Word" is "b" then set the foregroundcolor of char 1 of fld "Word" to green if vArr = 98 and char 1 of fld "Word" is not "b" then set the foregroundcolor of char 1 of fld "Word" to red This is where I am stuck now. How do I make the script work so that depending on the color of the previous char the next char of the Word will be checked? if vArr = 112 and the foregroundcolor of char 1 of fld "Word" = green and char 2 of fld "Word" is "p" then set the foregroundcolor of char 2 of fld "voorbeeld" to green end if This doesn't work Any idea's are welcome! greetings, William _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From john.allijn at alice.nl Wed Mar 23 13:12:53 2011 From: john.allijn at alice.nl (John Allijn) Date: Wed, 23 Mar 2011 18:12:53 +0100 Subject: 4.6 released In-Reply-To: References: <28A3706B-FD18-421D-9FD4-E7A2CF977A01@twft.com> <1300897509920-3399912.post@n4.nabble.com> Message-ID: Hi Bob, I have the same that Andrew mentiones: bought livecode in december and I am now confronted with three updates (livecode, mac deployment, iOS deployment) I did login to my useraccount, but the update is indeed a paid one. Best regards, John Send from my iPhone On Mar 23, 2011, at 17:31, Bob Sneidar wrote: > That's odd. You should have a 1 year upgrade at least. Better contact support. BTW did you log in with your runrev account credentials before trying to download it? > > Bob > > > On Mar 23, 2011, at 9:25 AM, Andrew Kluthe wrote: > >> After reading the email I got from runrev, I went to go download and they >> asked for some upgrade fees. Pfft. I just bought 4.5 in Jan. Try soliciting >> me again when 5.0 comes out with something fresh. >> >> -- >> View this message in context: http://runtime-revolution.278305.n4.nabble.com/4-6-released-tp3397103p3399912.html >> Sent from the Revolution - User mailing list archive at Nabble.com. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From kevin at runrev.com Wed Mar 23 13:25:13 2011 From: kevin at runrev.com (Kevin Miller) Date: Wed, 23 Mar 2011 17:25:13 +0000 Subject: 4.6 released In-Reply-To: Message-ID: On 23/03/2011 17:12, "John Allijn" wrote: > I have the same that Andrew mentiones: bought livecode in december and I am > now confronted with three updates (livecode, mac deployment, iOS deployment) > I did login to my useraccount, but the update is indeed a paid one. It is a paid upgrade, the first such paid upgrade in the last 6 months, having followed 3 free upgrades we made in that period. Some people will be entitled to it free depending on the license they hold and date of last purchase. If you need help with any aspect of this please contact support at runrev.com directly. Kind regards, Kevin Kevin Miller ~ kevin at runrev.com ~ http://www.runrev.com/ LiveCode: Compile-free coding, the faster path to better apps From bobs at twft.com Wed Mar 23 13:27:49 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 23 Mar 2011 10:27:49 -0700 Subject: 4.6 released In-Reply-To: References: <28A3706B-FD18-421D-9FD4-E7A2CF977A01@twft.com> <1300897509920-3399912.post@n4.nabble.com> Message-ID: <51F97D3F-2CF4-497D-A1A9-473984DDB090@twft.com> Yeah sounds like a support issue to me. I wonder if there was a purchase option that did NOT include the year of free updates? If so then it would be like any other software upgrade, where you pay some fraction of the new price for a major release update. I was one of the people who signed up for the extended upgrade deal partly because I love this software, and it was like an investment in my mind. Bob On Mar 23, 2011, at 10:12 AM, John Allijn wrote: > Hi Bob, > > I have the same that Andrew mentiones: bought livecode in december and I am now confronted with three updates (livecode, mac deployment, iOS deployment) > I did login to my useraccount, but the update is indeed a paid one. > Best regards, > John > > Send from my iPhone > > On Mar 23, 2011, at 17:31, Bob Sneidar wrote: > >> That's odd. You should have a 1 year upgrade at least. Better contact support. BTW did you log in with your runrev account credentials before trying to download it? >> >> Bob >> >> >> On Mar 23, 2011, at 9:25 AM, Andrew Kluthe wrote: >> >>> After reading the email I got from runrev, I went to go download and they >>> asked for some upgrade fees. Pfft. I just bought 4.5 in Jan. Try soliciting >>> me again when 5.0 comes out with something fresh. From keith.clarke at clarkeandclarke.co.uk Wed Mar 23 14:07:37 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Wed, 23 Mar 2011 18:07:37 +0000 Subject: Revlet - how to get back to the main stack from a substack? In-Reply-To: References: , <784C44A2-7325-4A27-B405-967E71C231A0@clarkeandclarke.co.uk> Message-ID: Hi John, Thanks for the response and proof of concept that defining the target stack and current stack's window explicitly seems to allow navigation from a revlet substack to the main stack. Unfortunately, I can't repeat your success in my particular stack - so perhaps I just have a corruption somewhere. Still, I've simplified down to multiple cards in a single stack and it's working for the current purpose. Thanks again to all who responded, Keith.. On 23 Mar 2011, at 16:32, John Dixon wrote: > > Keith... > > I made a stack 'main' with sub-stack 'sub' > placed a button on each stack... > > In the button on stack 'main'... > > on mouseUp > go stack "sub" in the window of stack "main" > end mouseUp > > In the button on stack 'sub' > > on mouseUp > go stack "main" in the window of stack "sub" > end mouseUp > > Then made the stack into a revlet... it will then allow you to navigate between the stacks. > > John Dixon From scott at tactilemedia.com Wed Mar 23 14:14:08 2011 From: scott at tactilemedia.com (Scott Rossi) Date: Wed, 23 Mar 2011 11:14:08 -0700 Subject: [OT] Forget iOS and Android Message-ID: IMO, we need to stop all this iOS and Android nonsense, and start developing apps where the REAL money is: the Brother IntelliFax 2800. RunRev guys, when can we expect a LiveCode release for Brother IntelliFax 2800??? Regards, Scott Rossi Creative Director Tactile Media, UX Design From gandalf at doctorTimothyMiller.com Wed Mar 23 14:21:31 2011 From: gandalf at doctorTimothyMiller.com (Timothy Miller) Date: Wed, 23 Mar 2011 11:21:31 -0700 Subject: nother newbie question this time re foundChunk In-Reply-To: References: Message-ID: <994D2609-7049-44E0-B05C-17B47FAE090E@doctorTimothyMiller.com> Tricky! I never would have thought of that. Thanks a bunch. Tim On Mar 23, 2011, at 2:51 AM, Mike Bonner wrote: > If you know the number of words in the field: > put the number of words in field "narrative" into tWords > > and you know the location of the found word: > put the number of words in (char 1 to (word 4 of tfound)) in field > "narrative" into tFoundWord > -- didn't try it, check syntax > > then you should be able to grab the number of words you want directly. Will > still need to make sure the word location isn't too close to the beginning > or end of the text, but if you wanted 5 words on either side of the found > word you could do: > put word (tFoundWord - 5) to (tFoundWord + 5) of field "narrative" & > the short ID of this card & cr &cr after tFoundList > From richmondmathewson at gmail.com Wed Mar 23 14:46:04 2011 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 23 Mar 2011 20:46:04 +0200 Subject: [OT] Forget iOS and Android In-Reply-To: References: Message-ID: <4D8A3FEC.9080509@gmail.com> On 03/23/2011 08:14 PM, Scott Rossi wrote: > IMO, we need to stop all this iOS and Android nonsense, and start developing > apps where the REAL money is: the Brother IntelliFax 2800. > > > RunRev guys, when can we expect a LiveCode release for Brother IntelliFax > 2800??? > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX Design > > > Tactile Media obviously are using a calendar that runs 9 days ahead of everybody else . . . :) From m181544 at gmail.com Wed Mar 23 14:58:41 2011 From: m181544 at gmail.com (Metro) Date: Wed, 23 Mar 2011 11:58:41 -0700 Subject: CR vs LF in files - how to keep original chars when importing Message-ID: Hi: What is the recommended way of importing text files in which CRs are used as record delimiters and LFs are used as cell delimiters within each paragraph? I'm using Mac 10.5 and LiveCode 4.5 (upgrading to 4.6 later today)? Both of these, CR and LF, are getting turned into LFs when I bring them in. I want to bring this type of file into LiveCode, process it using the chunk functions, and then write it back out to file. Thanks, m From etcawley at fastmail.fm Wed Mar 23 15:13:05 2011 From: etcawley at fastmail.fm (edward cawley) Date: Wed, 23 Mar 2011 14:13:05 -0500 Subject: use-livecode Digest, Vol 90, Issue 41 In-Reply-To: References: Message-ID: <20185D51-9502-42AC-BAF7-9283FBDF2186@fastmail.fm> Ask and you will receive! I sent this on the 22, Loaded 4.6 today and my problems are solved. When I indicate the folder of my text,image,audio file in the standalone setup all the files are loaded directly. In the Mac OS, Windows and the iPad IOS. Not only that but all of them are accessed from the Standalone setup. The iPad runs fine, with a only a little few tweaks still needed. Thanks to the whole team!!! Ed On Mar 23, 2011, at 5:56 AM, use-livecode-request at lists.runrev.com wrote: > > Message: 3 > Date: Tue, 22 Mar 2011 20:36:10 -0500 > From: edward cawley > To: use-livecode at lists.runrev.com > Subject: Ipod IOS problem > Message-ID: > Content-Type: text/plain; charset=us-ascii > > Still a problem: > I load the mobile plugin, put the folder of files into the directory but when the app comes up in the simulator none of the files are accessed. The buttons all work and the text not accessed by files show, but none of the images,audio or text files are found. It acts like they are not loaded in the IOS. The app loads successfully in the standalone. This result act like the first time I tried to set up a standalone. The handbook states that the files are loaded when the folders are listed as a directory. I tried to list some of the files independently but they still don't show up. Is there any way to see what is loaded in the Ipad sinulation app? > Ed > > From m.schonewille at economy-x-talk.com Wed Mar 23 15:23:45 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 23 Mar 2011 20:23:45 +0100 Subject: CR vs LF in files - how to keep original chars when importing In-Reply-To: References: Message-ID: <67F47E56-E8D4-414E-8115-C1927AEB4DF8@economy-x-talk.com> Metro, function readFile theFile open file theFile for binary read read from file theFile until EOF close file theFile return it end readFile function readFile2 theFile return url ("binfile:" & theFile) end readFile2 Mind the parentheses in the second example. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce On 23 mrt 2011, at 19:58, Metro wrote: > Hi: > > What is the recommended way of importing text files in which CRs are > used as record delimiters and LFs are used as cell delimiters within > each paragraph? I'm using Mac 10.5 and LiveCode 4.5 (upgrading to 4.6 > later today)? Both of these, CR and LF, are getting turned into LFs > when I bring them in. > > I want to bring this type of file into LiveCode, process it using the > chunk functions, and then write it back out to file. > > Thanks, > > m > From m181544 at gmail.com Wed Mar 23 15:29:02 2011 From: m181544 at gmail.com (Metro) Date: Wed, 23 Mar 2011 12:29:02 -0700 Subject: CR vs LF in files - how to keep original chars when importing In-Reply-To: <67F47E56-E8D4-414E-8115-C1927AEB4DF8@economy-x-talk.com> References: <67F47E56-E8D4-414E-8115-C1927AEB4DF8@economy-x-talk.com> Message-ID: Thanks Mark, I will give that a try! m On Wed, Mar 23, 2011 at 12:23 PM, Mark Schonewille wrote: > Metro, > > function readFile theFile > ?open file theFile for binary read > ?read from file theFile until EOF > ?close file theFile > ?return it > end readFile > > function readFile2 theFile > ?return url ("binfile:" & theFile) > end readFile2 > > Mind the parentheses in the second example. > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce > > On 23 mrt 2011, at 19:58, Metro wrote: > >> Hi: >> >> What is the recommended way of importing text files in which CRs are >> used as record delimiters and LFs are used as cell delimiters within >> each paragraph? I'm using Mac 10.5 and LiveCode 4.5 (upgrading to 4.6 >> later today)? Both of these, CR and LF, are getting turned into LFs >> when I bring them in. >> >> I want to bring this type of file into LiveCode, process it using the >> chunk functions, and then write it back out to file. >> >> Thanks, >> >> m >> > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From stephenREVOLUTION2 at barncard.com Wed Mar 23 15:43:31 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Wed, 23 Mar 2011 12:43:31 -0700 Subject: CR vs LF in files - how to keep original chars when importing In-Reply-To: <67F47E56-E8D4-414E-8115-C1927AEB4DF8@economy-x-talk.com> References: <67F47E56-E8D4-414E-8115-C1927AEB4DF8@economy-x-talk.com> Message-ID: the salient point being that when you open a file for read BINARY, you get exactly what's in the file, and Livecode does not interpret your line endings. Otherwise line endings in text reads get changed to whatever platform the user is using. On 23 March 2011 12:23, Mark Schonewille wrote: > Metro, > > function readFile theFile > open file theFile for binary read > read from file theFile until EOF > close file theFile > return it > end readFile > > function readFile2 theFile > return url ("binfile:" & theFile) > end readFile2 > > Mind the parentheses in the second example. > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > New: Download the Installer Maker Plugin 1.6 for LiveCode here > http://qery.us/ce > > On 23 mrt 2011, at 19:58, Metro wrote: > > > Hi: > > > > What is the recommended way of importing text files in which CRs are > > used as record delimiters and LFs are used as cell delimiters within > > each paragraph? I'm using Mac 10.5 and LiveCode 4.5 (upgrading to 4.6 > > later today)? Both of these, CR and LF, are getting turned into LFs > > when I bring them in. > > > > I want to bring this type of file into LiveCode, process it using the > > chunk functions, and then write it back out to file. > > > > Thanks, > > > > m > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Stephen Barncard San Francisco Ca. USA more about sqb From klaus at major.on-rev.com Wed Mar 23 15:58:18 2011 From: klaus at major.on-rev.com (Klaus on-rev) Date: Wed, 23 Mar 2011 20:58:18 +0100 Subject: Datagrid question Message-ID: Hi friends, is it possible to create a datagrid FORM that can act like 2 or more independant "clickable" "Cells?" (separate row "wannabees") in one row? Know what I mean? Something like this mockup: Any hints, tricks, hacks welcome :-) Best Klaus -- Klaus Major http://www.major-k.de klaus at major.on-rev.com From gerry.orkin at gmail.com Wed Mar 23 17:32:04 2011 From: gerry.orkin at gmail.com (Gerry) Date: Thu, 24 Mar 2011 08:32:04 +1100 Subject: Building for the iPhone 3G Message-ID: <76D45DD4B2C24D9E884CE9938F99CC88@gmail.com> I'm using the wonderful service at testflightapp.com to distribute iOS builds to a few testers. One has an iPhone 3g, and when trying to register his device he gets the message "Give your developers some time to create a build for this iPhone 3g. Testflight will e-mail you when they have." Can we not build for the 3g? Or is there a setting I'm missing? Cheers Gerry -- photo site: http://gerryorkin.com From jacque at hyperactivesw.com Wed Mar 23 17:32:31 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 23 Mar 2011 16:32:31 -0500 Subject: Weird script behaviour (was libUrlDownloadToFile & urlProgress) In-Reply-To: References: <4D890E72.8020603@hyperactivesw.com> <903E8E94-9B30-4F0D-A0EC-C99554B1E307@gmail.com> <4D8987B8.9030509@hyperactivesw.com> Message-ID: <4D8A66EF.3010801@hyperactivesw.com> On 3/23/11 4:41 AM, Gerry wrote: > This is the script that calls the handler: > > on mouseup > set the blendLevel of me to "10" > updateSongsList > end mouseup Where is the button located? On the card? In a group? > > This is the handler that it calls (I've xxxx'd out some domain details): > > on updateSongsList > local songsOnDevice, songListOnServer > play empty > hide button "stopButton" > put "Checking for updates..." into field "messages" > put url "https://xxxxxxxxxxxx.com/hrabisms/songsupdate.txt" into > songListOnServer > put the dgText of group "Songs" into songsOnDevice > if the number of lines in songListOnServer> the number of lines in > songsOnDevice then > put "Update received!" into field "messages" > wait 120 > set the dgText of group "Songs" to songListOnServer > set the defaultFolder to specialFolderPath("Documents") > put songsOnServer into URL ("file:songs.txt") > else > put "No update received. Rats." into field "messages" > wait 120 > end if > put "" into field "messages" > end updateSongsList I don't see anything untoward there. Something else is going on. > As I said previously, this script is not executed if it's in the card > script, but does when it's in the stack script. That's weird enough, It's explainable if the button is farther back in the message hierarchy than the card. The message path gets a little convoluted in background groups. > but if I place it in the card script and I use "Send updateSongsList > to this card" in the button script it starts executing the card script > from the top, and I can track that by setting a breakpoint against the > send command - it jumps from the button script into the card script, > and I can step through all the lines in that card script, executing > them as I go. > > Like I said, totally crazy! Did you happen to insert the card script into the message path? If it isn't already, try moving your button so that it sits directly on the card itself, not in any group. Keep its mouseup handler the way you have it above. That will put the card into the message path. Put your updateSongsList handler in the card. I'm not sure what's going on, but it sounds like some kind of message path conflict coupled with some kind of recursion. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From coiin at verizon.net Wed Mar 23 17:51:57 2011 From: coiin at verizon.net (Colin Holgate) Date: Wed, 23 Mar 2011 17:51:57 -0400 Subject: Building for the iPhone 3G In-Reply-To: <76D45DD4B2C24D9E884CE9938F99CC88@gmail.com> References: <76D45DD4B2C24D9E884CE9938F99CC88@gmail.com> Message-ID: <0A8FCA45-5ACE-46E2-A947-A4BB38C355DF@verizon.net> On Mar 23, 2011, at 5:32 PM, Gerry wrote: > >Can we not build for the 3g? Or is there a setting I'm missing? There is a good chance that LC is just building for ARM7 and not ARM6, but also, what OS did you select? If it was 4.3 then that would rule out 3G too. From gerry.orkin at gmail.com Wed Mar 23 17:57:02 2011 From: gerry.orkin at gmail.com (Gerry) Date: Thu, 24 Mar 2011 08:57:02 +1100 Subject: Weird script behaviour (was libUrlDownloadToFile & urlProgress) In-Reply-To: <4D8A66EF.3010801@hyperactivesw.com> References: <4D890E72.8020603@hyperactivesw.com> <903E8E94-9B30-4F0D-A0EC-C99554B1E307@gmail.com> <4D8987B8.9030509@hyperactivesw.com> <4D8A66EF.3010801@hyperactivesw.com> Message-ID: <8E28DCE0E4E64E1DBC1DE46DB86F2889@gmail.com> Jacq, the button is on the card, and isn't in a group. g -- photo site: http://gerryorkin.com On Thursday, 24 March 2011 at 8:32 AM, J. Landman Gay wrote: > On 3/23/11 4:41 AM, Gerry wrote: > > This is the script that calls the handler: > > > > on mouseup > > set the blendLevel of me to "10" > > updateSongsList > > end mouseup > > Where is the button located? On the card? In a group? > > > > > This is the handler that it calls (I've xxxx'd out some domain details): > > > > on updateSongsList > > local songsOnDevice, songListOnServer > > play empty > > hide button "stopButton" > > put "Checking for updates..." into field "messages" > > put url "https://xxxxxxxxxxxx.com/hrabisms/songsupdate.txt" into > > songListOnServer > > put the dgText of group "Songs" into songsOnDevice > > if the number of lines in songListOnServer> the number of lines in > > songsOnDevice then > > put "Update received!" into field "messages" > > wait 120 > > set the dgText of group "Songs" to songListOnServer > > set the defaultFolder to specialFolderPath("Documents") > > put songsOnServer into URL ("file:songs.txt") > > else > > put "No update received. Rats." into field "messages" > > wait 120 > > end if > > put "" into field "messages" > > end updateSongsList > > I don't see anything untoward there. Something else is going on. > > > As I said previously, this script is not executed if it's in the card > > script, but does when it's in the stack script. That's weird enough, > > It's explainable if the button is farther back in the message hierarchy > than the card. The message path gets a little convoluted in background > groups. > > > but if I place it in the card script and I use "Send updateSongsList > > to this card" in the button script it starts executing the card script > > from the top, and I can track that by setting a breakpoint against the > > send command - it jumps from the button script into the card script, > > and I can step through all the lines in that card script, executing > > them as I go. > > > > Like I said, totally crazy! > > Did you happen to insert the card script into the message path? > > If it isn't already, try moving your button so that it sits directly on > the card itself, not in any group. Keep its mouseup handler the way you > have it above. That will put the card into the message path. Put your > updateSongsList handler in the card. > > I'm not sure what's going on, but it sounds like some kind of message > path conflict coupled with some kind of recursion. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From gerry.orkin at gmail.com Wed Mar 23 18:00:37 2011 From: gerry.orkin at gmail.com (Gerry) Date: Thu, 24 Mar 2011 09:00:37 +1100 Subject: Building for the iPhone 3G In-Reply-To: <0A8FCA45-5ACE-46E2-A947-A4BB38C355DF@verizon.net> References: <76D45DD4B2C24D9E884CE9938F99CC88@gmail.com> <0A8FCA45-5ACE-46E2-A947-A4BB38C355DF@verizon.net> Message-ID: <28B1F2657D784191B908C47FCCC2CD94@gmail.com> I selected 3.1.3. This tester is on iOS 4.2.1 (8C148). g -- photo site: http://gerryorkin.com On Thursday, 24 March 2011 at 8:51 AM, Colin Holgate wrote: > > On Mar 23, 2011, at 5:32 PM, Gerry wrote: > > > > Can we not build for the 3g? Or is there a setting I'm missing? > > There is a good chance that LC is just building for ARM7 and not ARM6, but also, what OS did you select? If it was 4.3 then that would rule out 3G too. > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bobs at twft.com Wed Mar 23 18:15:24 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 23 Mar 2011 15:15:24 -0700 Subject: Nuther sqLite gotcha Message-ID: Hi all. If anyone ever wants to get the SQL for creating an existing table in sqLite by querying the sqLite_master table for table entries, be aware that whoever created the table may or may not have enclosed the table name in quotes! So if you are doing a line offset to find let's say "CREATE TABLE devices" and the person who created the table used quotes you will not find that line! Apparently, sqLite records the exact sequel used to create the table, not the sanitized SQL that would be used to do it, like in mySQL. (but I could be wrong about mySQL being sanitized). You may say, "Why not just search for the table name and be done with it?" Because there may be a column definition in there with all or part of the column name being the table name you are looking for. I'm sure this is quite obscure, but it just bit me in the buttocks so I thought I'd put that out there. Bob From jperryl at ecs.fullerton.edu Wed Mar 23 18:28:34 2011 From: jperryl at ecs.fullerton.edu (Judy Perry) Date: Wed, 23 Mar 2011 15:28:34 -0700 (PDT) Subject: [OT] Post Conference Fun Stuff In-Reply-To: References: Message-ID: Sounds like San Diego's mass transit :-( Judy On Wed, 23 Mar 2011, Scott Rossi wrote: > Recently, Judy Perry wrote: > >> Can you get there via mass transit? > > FYI: public transit in the SF Bay Area sucks. I can say that because I've > lived here all my life. From pete at mollysrevenge.com Wed Mar 23 18:39:09 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Wed, 23 Mar 2011 15:39:09 -0700 Subject: Nuther sqLite gotcha In-Reply-To: References: Message-ID: <1CB4C8E0-0EDD-453B-A7D8-7676F40CCA01@mollysrevenge.com> Hadn't noticed that. I'm pretty sure I've created all my SQLite tables through the FireFox SQLite Manager and it looks like it puts quotes around all the table names (and column names). Out of interest, where does mySQL store the SQL statements to create tables? (still finding my way around mySQL!) Pete Haworth On Mar 23, 2011, at 3:15 PM, Bob Sneidar wrote: > Hi all. > > If anyone ever wants to get the SQL for creating an existing table in sqLite by querying the sqLite_master table for table entries, be aware that whoever created the table may or may not have enclosed the table name in quotes! So if you are doing a line offset to find let's say "CREATE TABLE devices" and the person who created the table used quotes you will not find that line! Apparently, sqLite records the exact sequel used to create the table, not the sanitized SQL that would be used to do it, like in mySQL. (but I could be wrong about mySQL being sanitized). > > You may say, "Why not just search for the table name and be done with it?" Because there may be a column definition in there with all or part of the column name being the table name you are looking for. > > I'm sure this is quite obscure, but it just bit me in the buttocks so I thought I'd put that out there. > > Bob > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at mollysrevenge.com Wed Mar 23 18:44:11 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Wed, 23 Mar 2011 15:44:11 -0700 Subject: Nuther sqLite gotcha In-Reply-To: References: Message-ID: <857A6243-5442-450D-BCFD-EBE3E90869E6@mollysrevenge.com> Another thought on this that might help. The sqlite_master table has a column that holds the table name so you should be able to find the entry you need with a SELECT on column type='table' and column tbl_name=. No need to search the sql column that way. Pete Haworth On Mar 23, 2011, at 3:15 PM, Bob Sneidar wrote: > Hi all. > > If anyone ever wants to get the SQL for creating an existing table in sqLite by querying the sqLite_master table for table entries, be aware that whoever created the table may or may not have enclosed the table name in quotes! So if you are doing a line offset to find let's say "CREATE TABLE devices" and the person who created the table used quotes you will not find that line! Apparently, sqLite records the exact sequel used to create the table, not the sanitized SQL that would be used to do it, like in mySQL. (but I could be wrong about mySQL being sanitized). > > You may say, "Why not just search for the table name and be done with it?" Because there may be a column definition in there with all or part of the column name being the table name you are looking for. > > I'm sure this is quite obscure, but it just bit me in the buttocks so I thought I'd put that out there. > > Bob > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From rjb at robelko.com Wed Mar 23 18:37:21 2011 From: rjb at robelko.com (Robert Brenstein) Date: Wed, 23 Mar 2011 23:37:21 +0100 Subject: 4.6 released In-Reply-To: <51F97D3F-2CF4-497D-A1A9-473984DDB090@twft.com> References: <28A3706B-FD18-421D-9FD4-E7A2CF977A01@twft.com> <1300897509920-3399912.post@n4.nabble.com> <51F97D3F-2CF4-497D-A1A9-473984DDB090@twft.com> Message-ID: On 23.03.11 at 10:27 -0700 Bob Sneidar apparently wrote: >Yeah sounds like a support issue to me. I wonder if there was a >purchase option that did NOT include the year of free updates? If so >then it would be like any other software upgrade, where you pay some >fraction of the new price for a major release update. > Sounds like you missed that the last major upgrade brought also change in the licencing model. It is no longer subscription based, so no free upgrades aside from the clemency period. Robert From bobs at twft.com Wed Mar 23 18:59:35 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 23 Mar 2011 15:59:35 -0700 Subject: Nuther sqLite gotcha In-Reply-To: <1CB4C8E0-0EDD-453B-A7D8-7676F40CCA01@mollysrevenge.com> References: <1CB4C8E0-0EDD-453B-A7D8-7676F40CCA01@mollysrevenge.com> Message-ID: You would use SHOW CREATE TABLE devices (assuming your table was called "devices"). For sqLite I use: put "SELECT name,sql FROM sqlite_master WHERE type='table' " into theSQL then I execute that. It's the only way I know of as sqLite does not have a SHOW CREATE TABLE context. Bob On Mar 23, 2011, at 3:39 PM, Peter Haworth wrote: > Hadn't noticed that. I'm pretty sure I've created all my SQLite tables through the FireFox SQLite Manager and it looks like it puts quotes around all the table names (and column names). Out of interest, where does mySQL store the SQL statements to create tables? (still finding my way around mySQL!) > > Pete Haworth > > > On Mar 23, 2011, at 3:15 PM, Bob Sneidar wrote: > >> Hi all. >> >> If anyone ever wants to get the SQL for creating an existing table in sqLite by querying the sqLite_master table for table entries, be aware that whoever created the table may or may not have enclosed the table name in quotes! So if you are doing a line offset to find let's say "CREATE TABLE devices" and the person who created the table used quotes you will not find that line! Apparently, sqLite records the exact sequel used to create the table, not the sanitized SQL that would be used to do it, like in mySQL. (but I could be wrong about mySQL being sanitized). >> >> You may say, "Why not just search for the table name and be done with it?" Because there may be a column definition in there with all or part of the column name being the table name you are looking for. >> >> I'm sure this is quite obscure, but it just bit me in the buttocks so I thought I'd put that out there. >> >> Bob >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobs at twft.com Wed Mar 23 19:01:09 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 23 Mar 2011 16:01:09 -0700 Subject: Nuther sqLite gotcha In-Reply-To: <857A6243-5442-450D-BCFD-EBE3E90869E6@mollysrevenge.com> References: <857A6243-5442-450D-BCFD-EBE3E90869E6@mollysrevenge.com> Message-ID: <71172D9D-4C73-4230-91B7-3EDF8C8AE201@twft.com> Well the issue comes into play because I am not the creator of the sqLite database, a company called Spiceworks is. I am reading their schema in order to import columns and even whole tables into my database. Bob On Mar 23, 2011, at 3:44 PM, Peter Haworth wrote: > Another thought on this that might help. The sqlite_master table has a column that holds the table name so you should be able to find the entry you need with a SELECT on column type='table' and column tbl_name=. No need to search the sql column that way. > > Pete Haworth > > On Mar 23, 2011, at 3:15 PM, Bob Sneidar wrote: > >> Hi all. >> >> If anyone ever wants to get the SQL for creating an existing table in sqLite by querying the sqLite_master table for table entries, be aware that whoever created the table may or may not have enclosed the table name in quotes! So if you are doing a line offset to find let's say "CREATE TABLE devices" and the person who created the table used quotes you will not find that line! Apparently, sqLite records the exact sequel used to create the table, not the sanitized SQL that would be used to do it, like in mySQL. (but I could be wrong about mySQL being sanitized). >> >> You may say, "Why not just search for the table name and be done with it?" Because there may be a column definition in there with all or part of the column name being the table name you are looking for. >> >> I'm sure this is quite obscure, but it just bit me in the buttocks so I thought I'd put that out there. >> >> Bob >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobs at twft.com Wed Mar 23 19:02:53 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 23 Mar 2011 16:02:53 -0700 Subject: 4.6 released In-Reply-To: References: <28A3706B-FD18-421D-9FD4-E7A2CF977A01@twft.com> <1300897509920-3399912.post@n4.nabble.com> <51F97D3F-2CF4-497D-A1A9-473984DDB090@twft.com> Message-ID: <408AF93E-24DB-42B7-AD46-09DD8A56343B@twft.com> That would not apply to me as I paid ahead for the subscription something like 3 years. If that's what you mean by clemency, then yes I am on that program. Bob On Mar 23, 2011, at 3:37 PM, Robert Brenstein wrote: > On 23.03.11 at 10:27 -0700 Bob Sneidar apparently wrote: >> Yeah sounds like a support issue to me. I wonder if there was a purchase option that did NOT include the year of free updates? If so then it would be like any other software upgrade, where you pay some fraction of the new price for a major release update. >> > > Sounds like you missed that the last major upgrade brought also change in the licencing model. It is no longer subscription based, so no free upgrades aside from the clemency period. > > Robert > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Wed Mar 23 19:13:10 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 23 Mar 2011 18:13:10 -0500 Subject: Weird script behaviour (was libUrlDownloadToFile & urlProgress) In-Reply-To: <8E28DCE0E4E64E1DBC1DE46DB86F2889@gmail.com> References: <4D890E72.8020603@hyperactivesw.com> <903E8E94-9B30-4F0D-A0EC-C99554B1E307@gmail.com> <4D8987B8.9030509@hyperactivesw.com> <4D8A66EF.3010801@hyperactivesw.com> <8E28DCE0E4E64E1DBC1DE46DB86F2889@gmail.com> Message-ID: <4D8A7E86.9050105@hyperactivesw.com> On 3/23/11 4:57 PM, Gerry wrote: > Jacq, the button is on the card, and isn't in a group. It's bizarre, I've never heard of anything like this. If you like, send me a copy of the stack and I'll take a look. You've got me curious. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From MacBox at earthlink.net Wed Mar 23 19:33:21 2011 From: MacBox at earthlink.net (MacBox at earthlink.net) Date: Wed, 23 Mar 2011 19:33:21 -0400 Subject: Determining which UITextField sent a message In-Reply-To: References: Message-ID: <350427A4-F28E-4EF8-92E8-62C61D96BF47@earthlink.net> Is it possible, to find out which UITextField sent a message? It doesn't seem that the objects include their name, or ID, as a parameter with the messages they send, so if I have 2 or more UITextFields on a card, when I trap an "inputReturnKey" message, is there any way to tell which field sent it? From rjb at robelko.com Wed Mar 23 19:35:15 2011 From: rjb at robelko.com (Robert Brenstein) Date: Thu, 24 Mar 2011 00:35:15 +0100 Subject: 4.6 released In-Reply-To: <408AF93E-24DB-42B7-AD46-09DD8A56343B@twft.com> References: <28A3706B-FD18-421D-9FD4-E7A2CF977A01@twft.com> <1300897509920-3399912.post@n4.nabble.com> <51F97D3F-2CF4-497D-A1A9-473984DDB090@twft.com> <408AF93E-24DB-42B7-AD46-09DD8A56343B@twft.com> Message-ID: On 23.03.11 at 16:02 -0700 Bob Sneidar apparently wrote: >That would not apply to me as I paid ahead for the subscription >something like 3 years. If that's what you mean by clemency, then >yes I am on that program. > >Bob > Of course, the new licensing model affects only new users and users whose licence expired. People like yourself who renewed years ahead are safe ;-) By clemency, I meant the common practice of giving a new release for free to those who bought previous version within past few months. It is unfortunate that the announcement of 4.6 did not include any financial information, and the clemency period in particular. Robert From pete at mollysrevenge.com Wed Mar 23 19:37:57 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Wed, 23 Mar 2011 16:37:57 -0700 Subject: Nuther sqLite gotcha In-Reply-To: References: <1CB4C8E0-0EDD-453B-A7D8-7676F40CCA01@mollysrevenge.com> Message-ID: <665B0A97-30C5-4434-B638-33E25B61539D@mollysrevenge.com> OK, I knew about the SHOW CREATE TABLE command, but thought perhaps MySQL had the equivalent of the SQLite sqlite_master table 'table' entries. Pete Haworth On Mar 23, 2011, at 3:59 PM, Bob Sneidar wrote: > You would use SHOW CREATE TABLE devices (assuming your table was called "devices"). > > For sqLite I use: > > put "SELECT name,sql FROM sqlite_master WHERE type='table' " into theSQL > > then I execute that. It's the only way I know of as sqLite does not have a SHOW CREATE TABLE context. > > Bob > > > On Mar 23, 2011, at 3:39 PM, Peter Haworth wrote: > >> Hadn't noticed that. I'm pretty sure I've created all my SQLite tables through the FireFox SQLite Manager and it looks like it puts quotes around all the table names (and column names). Out of interest, where does mySQL store the SQL statements to create tables? (still finding my way around mySQL!) >> >> Pete Haworth >> >> >> On Mar 23, 2011, at 3:15 PM, Bob Sneidar wrote: >> >>> Hi all. >>> >>> If anyone ever wants to get the SQL for creating an existing table in sqLite by querying the sqLite_master table for table entries, be aware that whoever created the table may or may not have enclosed the table name in quotes! So if you are doing a line offset to find let's say "CREATE TABLE devices" and the person who created the table used quotes you will not find that line! Apparently, sqLite records the exact sequel used to create the table, not the sanitized SQL that would be used to do it, like in mySQL. (but I could be wrong about mySQL being sanitized). >>> >>> You may say, "Why not just search for the table name and be done with it?" Because there may be a column definition in there with all or part of the column name being the table name you are looking for. >>> >>> I'm sure this is quite obscure, but it just bit me in the buttocks so I thought I'd put that out there. >>> >>> Bob >>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From devin_asay at byu.edu Wed Mar 23 19:43:39 2011 From: devin_asay at byu.edu (Devin Asay) Date: Wed, 23 Mar 2011 17:43:39 -0600 Subject: Determining which UITextField sent a message In-Reply-To: <350427A4-F28E-4EF8-92E8-62C61D96BF47@earthlink.net> References: <350427A4-F28E-4EF8-92E8-62C61D96BF47@earthlink.net> Message-ID: <0C069E09-77D9-40FB-84CF-440BAD934313@byu.edu> On Mar 23, 2011, at 5:33 PM, MacBox at earthlink.net wrote: > Is it possible, to find out which UITextField sent a message? > > It doesn't seem that the objects include their name, or ID, as a parameter with the messages they send, so if I have 2 or more UITextFields on a card, when I trap an "inputReturnKey" message, is there any way to tell which field sent it? Try 'the target'. Devin Devin Asay Humanities Technology and Research Support Center Brigham Young University From bobs at twft.com Wed Mar 23 19:43:42 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 23 Mar 2011 16:43:42 -0700 Subject: Nuther sqLite gotcha In-Reply-To: <665B0A97-30C5-4434-B638-33E25B61539D@mollysrevenge.com> References: <1CB4C8E0-0EDD-453B-A7D8-7676F40CCA01@mollysrevenge.com> <665B0A97-30C5-4434-B638-33E25B61539D@mollysrevenge.com> Message-ID: <38938013-82B1-4653-A48E-06A1F77AC208@twft.com> I suppose if you had access to the master schema there might be something in there. I cannot tell because I am using On-Rev at the moment and don't have that kind of access. Bob On Mar 23, 2011, at 4:37 PM, Peter Haworth wrote: > OK, I knew about the SHOW CREATE TABLE command, but thought perhaps MySQL had the equivalent of the SQLite sqlite_master table 'table' entries. > > Pete Haworth From zryip.theslug at gmail.com Wed Mar 23 19:57:39 2011 From: zryip.theslug at gmail.com (zryip theSlug) Date: Thu, 24 Mar 2011 00:57:39 +0100 Subject: Datagrid question In-Reply-To: References: Message-ID: On Wed, Mar 23, 2011 at 8:58 PM, Klaus on-rev wrote: > Hi friends, Hi Klaus, > is it possible to create a datagrid FORM that can act like 2 or more > independant "clickable" "Cells?" (separate row "wannabees") in one row? Yes > Know what I mean? Something like this mockup: > > > Any hints, tricks, hacks welcome :-) A possible way is to edit the template of the dg form for adding severals buttons or images controls, acting as "cells". In the row behavior you should have 2 main handlers: 1. Fillindata for displaying the corresponding data for the cell Example using images in files on FillInData pDataArray local tImagePath1, tImagePath2 put pDataArray["file path 1"] into tImagePath1 put pDataArray["file path 2"] into tImagePath2 if (tImagePath1 is not empty) then put URL "binfile:" & tImagePath1 into tImageData put tImageData into image "New image1" of me end if if (tImagePath2 is not empty) then put URL "binfile:" & tImagePath2 into tImageData put tImageData into image "New image2" of me end if set the text of field "Label1" of me to pDataArray["Image label 1"] set the text of field "Label2" of me to pDataArray["Image label 2"] end FillInData 2. MouseUp on mouseUp pTheButton if (pTheButton is 1) then switch the short name of the target case "New image1" answer "Add your action here" break case "New image2" answer "Add your action here" break case "New image3" answer "Add your action here" break end switch end if end mouseUp Note DGH could be on some help with that. You are welcome to download it, the DGH trial version is free to use for 30 days and could give you some help in your journey. http://www.aslugontheroad.co.cc/index.php?option=com_phocadownload&view=category&download=17:data-grid-helper-plugin&id=12:trial&Itemid=63 Best, -- -Zryip TheSlug- wish you the best! 8) http://www.aslugontheroad.co.cc From MacBox at earthlink.net Wed Mar 23 20:05:49 2011 From: MacBox at earthlink.net (MacBox at earthlink.net) Date: Wed, 23 Mar 2011 20:05:49 -0400 Subject: Determining which UITextField sent a message In-Reply-To: References: Message-ID: The Target was the first thing I tried :) I may have found that the answer is "you can't." I see that in the Lesson for using the UITextField the first thing they do is check that there is only one UITextField on the card, with the comment "# ensure that only one native text input is open" Bummer, I hope they change this! Thanks anyway, Devin! >> Is it possible, to find out which UITextField sent a message? >> >> It doesn't seem that the objects include their name, or ID, as a parameter with the messages they send, so if I have 2 or more UITextFields on a card, when I trap an "inputReturnKey" message, is there any way to tell which field sent it? > > Try 'the target'. > > Devin From zryip.theslug at gmail.com Wed Mar 23 20:08:53 2011 From: zryip.theslug at gmail.com (zryip theSlug) Date: Thu, 24 Mar 2011 01:08:53 +0100 Subject: Datagrid Column Highlighting In-Reply-To: <7445F9A8-5F0C-4AEF-AD09-967B1D18E7BB@twft.com> References: <001d01cbe8b7$e75b7160$b6125420$@LinkIt.Com> <7445F9A8-5F0C-4AEF-AD09-967B1D18E7BB@twft.com> Message-ID: On Tue, Mar 22, 2011 at 7:51 PM, Bob Sneidar wrote: Ray, Bob > I don't think you can select an entire column. What you can do is fake it. The Data Grid Helper by Zryip allows you to set a script that disables sorting, but you need to make the user think a column is selected. > > Data Grid Helper also has a way of manually setting alternating column colors like you can with rows. You should see if he will include a new script to "hilite" a single column (if that is even possible). On Tue, Mar 22, 2011 at 6:38 PM, Ray Horsley wrote: > I can't seem to figure out how to stop a datagrid's behavior from sorting > the entire grid each time a user clicks a column heading. ?I would much > rather have the column highlighted after the user clicks it instead of > sorting. ?Anybody know how to set this? We could work on that, for the next version of DGH we have to release. In DGH we have a datagrid preview acting like a part of your need: by clicking on a column header, we are able to "select" the column (the header is "hilited" without sorting the content of the column). Best regards, -- -Zryip TheSlug- wish you the best! 8) http://www.aslugontheroad.co.cc From andre at andregarzia.com Wed Mar 23 20:17:37 2011 From: andre at andregarzia.com (Andre Garzia) Date: Wed, 23 Mar 2011 21:17:37 -0300 Subject: [OT] Post Conference Fun Stuff In-Reply-To: References: Message-ID: don't even get me started on Rio de Janeiro Mass Transit... really.... On Wed, Mar 23, 2011 at 7:28 PM, Judy Perry wrote: > Sounds like San Diego's mass transit :-( > > Judy > > > On Wed, 23 Mar 2011, Scott Rossi wrote: > > Recently, Judy Perry wrote: >> >> Can you get there via mass transit? >>> >> >> FYI: public transit in the SF Bay Area sucks. I can say that because I've >> lived here all my life. >> > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- http://www.andregarzia.com All We Do Is Code. From andrew at rjdfarm.com Wed Mar 23 20:25:53 2011 From: andrew at rjdfarm.com (Andrew Kluthe) Date: Wed, 23 Mar 2011 17:25:53 -0700 (PDT) Subject: 4.6 released In-Reply-To: References: <28A3706B-FD18-421D-9FD4-E7A2CF977A01@twft.com> <1300897509920-3399912.post@n4.nabble.com> <51F97D3F-2CF4-497D-A1A9-473984DDB090@twft.com> <408AF93E-24DB-42B7-AD46-09DD8A56343B@twft.com> Message-ID: <1300926353641-3401231.post@n4.nabble.com> Yeah, I am just frustrated that I upgraded at 4.5 instead of waiting till 5.0 (or some version with some stunning new desktop feature) to upgrade from 4.0. I was under the impression that after purchasing 4.5 I wouldn't have to pay again for bugfixes/features in my deployments until 5. I suppose it is my mistake for trusting and not closely examining the new flexible yet incredibly complex license model that runrev has rolled out. C.R.E.A.M. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/4-6-released-tp3397103p3401231.html Sent from the Revolution - User mailing list archive at Nabble.com. From gerry.orkin at gmail.com Wed Mar 23 21:46:03 2011 From: gerry.orkin at gmail.com (Gerry) Date: Thu, 24 Mar 2011 12:46:03 +1100 Subject: Weird script behaviour (was libUrlDownloadToFile & urlProgress) In-Reply-To: <4D8A7E86.9050105@hyperactivesw.com> References: <4D890E72.8020603@hyperactivesw.com> <903E8E94-9B30-4F0D-A0EC-C99554B1E307@gmail.com> <4D8987B8.9030509@hyperactivesw.com> <4D8A66EF.3010801@hyperactivesw.com> <8E28DCE0E4E64E1DBC1DE46DB86F2889@gmail.com> <4D8A7E86.9050105@hyperactivesw.com> Message-ID: <776477F9D736442D806B0983F534DC7D@gmail.com> Jacq Figured it out. Later in the card script I set up a scroll control, and include this line in that setup script: iphoneControlSet sScrollerId, "declerationRate", fast The compiler doesn't like that line. If I comment it out or put "fast" in quotes, everything works fine. My scroll control setup is taken from a demo stack I found on the runrev forums, and it works in that demo stack, and in mine. In my naivety and cluelessness (hell, I've been at this for 2-3 weeks in total, after many many years away from any form of programming or scripting) I assumed that the compile error I was getting against that line had something to do with the fact that I was running on a Mac - after all, on the iPhone the scroll control works fine with it included and I've seen other examples of scroll control scripts that include that line, apparently without problems. So, sorry for bothering the list with my human error :) And thanks again for your interest. Gerry -- photo site: http://gerryorkin.com On Thursday, 24 March 2011 at 10:13 AM, J. Landman Gay wrote: > On 3/23/11 4:57 PM, Gerry wrote: > > Jacq, the button is on the card, and isn't in a group. > > It's bizarre, I've never heard of anything like this. If you like, send > me a copy of the stack and I'll take a look. You've got me curious. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From davidocoker at gmail.com Wed Mar 23 23:11:16 2011 From: davidocoker at gmail.com (David C.) Date: Wed, 23 Mar 2011 22:11:16 -0500 Subject: [OT] Post Conference Fun Stuff In-Reply-To: References: Message-ID: Mass Transit? Here in rural Oklahoma, the closest thing I can think of that could be called mass transit, is when Bubba and his fifty closest relatives all get their 4WD pickup trucks fired up and pointed in the same direction.... going to the lake for a fish fry. ...nothing slow about it at least. ;-) Best regards, DavidC. From jacque at hyperactivesw.com Thu Mar 24 00:27:24 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 23 Mar 2011 23:27:24 -0500 Subject: Weird script behaviour (was libUrlDownloadToFile & urlProgress) In-Reply-To: <776477F9D736442D806B0983F534DC7D@gmail.com> References: <4D890E72.8020603@hyperactivesw.com> <903E8E94-9B30-4F0D-A0EC-C99554B1E307@gmail.com> <4D8987B8.9030509@hyperactivesw.com> <4D8A66EF.3010801@hyperactivesw.com> <8E28DCE0E4E64E1DBC1DE46DB86F2889@gmail.com> <4D8A7E86.9050105@hyperactivesw.com> <776477F9D736442D806B0983F534DC7D@gmail.com> Message-ID: <4D8AC82C.6040308@hyperactivesw.com> On 3/23/11 8:46 PM, Gerry wrote: > Jacq > > Figured it out. Later in the card script I set up a scroll control, > and include this line in that setup script: > > iphoneControlSet sScrollerId, "declerationRate", fast > > The compiler doesn't like that line. If I comment it out or put > "fast" in quotes, everything works fine. Interesting. I'm not sure why you didn't get an error instead, but those commands are fairly new, and wired into the engine a little differently. Rule of thumb in LiveCode though is to always quote literals. Some people don't, but while the engine can be somewhat forgiving about that, eventually it will bite you. It also speeds up your code, because the engine doesn't have to figure out if the term is a literal or a variable. > So, sorry for bothering the list with my human error :) Not at all, that's why we're here. And I, at least, learned something. Go ahead and make some more mistakes. :) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From gerry.orkin at gmail.com Thu Mar 24 00:48:30 2011 From: gerry.orkin at gmail.com (Gerry) Date: Thu, 24 Mar 2011 15:48:30 +1100 Subject: Weird script behaviour (was libUrlDownloadToFile & urlProgress) In-Reply-To: <4D8AC82C.6040308@hyperactivesw.com> References: <4D890E72.8020603@hyperactivesw.com> <903E8E94-9B30-4F0D-A0EC-C99554B1E307@gmail.com> <4D8987B8.9030509@hyperactivesw.com> <4D8A66EF.3010801@hyperactivesw.com> <8E28DCE0E4E64E1DBC1DE46DB86F2889@gmail.com> <4D8A7E86.9050105@hyperactivesw.com> <776477F9D736442D806B0983F534DC7D@gmail.com> <4D8AC82C.6040308@hyperactivesw.com> Message-ID: <97A976431F014C6192B6DFEC09A51D61@gmail.com> Thanks Jacq :) Back to libUrlDownloadToFile & urlProgress, I'm still interested to know how we stop the urlProgress being sent after we finish a download, as I think I'm still seeing something weird in relation to that. urlProgress returns "downloaded" when the download is done, but seems to continue processing. Or something. Cheers Gerry -- photo site: http://gerryorkin.com On Thursday, 24 March 2011 at 3:27 PM, J. Landman Gay wrote: > On 3/23/11 8:46 PM, Gerry wrote: > > Jacq > > > > Figured it out. Later in the card script I set up a scroll control, > > and include this line in that setup script: > > > > iphoneControlSet sScrollerId, "declerationRate", fast > > > > The compiler doesn't like that line. If I comment it out or put > > "fast" in quotes, everything works fine. > > Interesting. I'm not sure why you didn't get an error instead, but those > commands are fairly new, and wired into the engine a little differently. > Rule of thumb in LiveCode though is to always quote literals. Some > people don't, but while the engine can be somewhat forgiving about that, > eventually it will bite you. It also speeds up your code, because the > engine doesn't have to figure out if the term is a literal or a variable. > > > So, sorry for bothering the list with my human error :) > > Not at all, that's why we're here. And I, at least, learned something. > Go ahead and make some more mistakes. :) > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From katir at hindu.org Thu Mar 24 00:53:20 2011 From: katir at hindu.org (Sivakatirswami) Date: Wed, 23 Mar 2011 18:53:20 -1000 Subject: RevIgniter is Fabulous! Message-ID: <4D8ACE40.8030904@hindu.org> We are redoing our www.himalayanacademy.com web site, very slowly, it will take many moons... and we are not rushing. I decided we should give RevIgniter a try. There was a little anxiety in the air about using something new and different that was not PHP. And since LiveCode has proven itself over and over again in-house for production apps, I went out on a limb and convinced everyone here that LiveCode Server and RevIgniter were going to provide us with a) "radical flexibility" and b) fabulous performance We have had enough experience with XOOPS and Drupal to know that it can only get better, so no objections were raised. So for the past month I've been hitting hard on the RevIgniter User guide and plaguing Ralf with all kinds of questions. Now as I finally got thru the learning curve and am actually putting together pages, I can't say how utterly fantastic this is. It's like a dream come true, like I've been hobbling around in web dev space since 1995 with both arms tied behind my back and one leg broken and suddenly I can fly. This is our sand box... and we are just getting started. Not only is it fast and efficient but it is also just way too much fun. http://dev.himalayanacademy.com/books/ (click the design one and design two links) Obviously this is just a skeleton right now, but, with setting far future headers on our server and using the revIgniter assets helper cache busting feature, we are getting jaw dropping speed. Of course there are only two images on the page, but even so the "in the blink of an eye" has already impressed a number of people. Thank you, RunRev and Ralf Bitter! Sivakatirswami From sundown at pacifier.com Thu Mar 24 01:05:56 2011 From: sundown at pacifier.com (-=>JB<=-) Date: Wed, 23 Mar 2011 22:05:56 -0700 Subject: RevIgniter is Fabulous! In-Reply-To: <4D8ACE40.8030904@hindu.org> References: <4D8ACE40.8030904@hindu.org> Message-ID: <773D2475-8E89-466C-99D0-934F91411D1C@pacifier.com> That looks very nice. Was everything made with Revigniter? -=>JB>= On Mar 23, 2011, at 9:53 PM, Sivakatirswami wrote: > We are redoing our www.himalayanacademy.com web site, very slowly, it will take many moons... > and we are not rushing. > > I decided we should give RevIgniter a try. There was a little anxiety in the air about using something new and different that was not PHP. And since LiveCode has proven itself over and over again in-house for production apps, I went out on a limb and convinced everyone here that LiveCode Server and RevIgniter were going to provide us with > > a) "radical flexibility" and > b) fabulous performance > > We have had enough experience with XOOPS and Drupal to know that it can only get better, so no objections were raised. So for the past month I've been hitting hard on the RevIgniter User guide and plaguing Ralf with all kinds of questions. > > Now as I finally got thru the learning curve and am actually putting together pages, I can't say how utterly fantastic this is. It's like a dream come true, like I've been hobbling around in web dev space since 1995 with both arms tied behind my back and one leg broken and suddenly I can fly. > > This is our sand box... and we are just getting started. Not only is it fast and efficient but it is also just way too much fun. > > http://dev.himalayanacademy.com/books/ (click the design one and design two links) > > Obviously this is just a skeleton right now, but, with setting far future headers on our server and using the revIgniter assets helper cache busting feature, we are getting jaw dropping speed. > > Of course there are only two images on the page, but even so the "in the blink of an eye" has already impressed a number of people. > > Thank you, RunRev and Ralf Bitter! > > Sivakatirswami > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at mollysrevenge.com Thu Mar 24 01:35:04 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Wed, 23 Mar 2011 22:35:04 -0700 Subject: Datagrid Column Customisation Message-ID: <841EE3E4-4AC3-40A2-B91F-3AEEB35AD06E@mollysrevenge.com> I've customised a datagrid column by placing a checkbox button in it but it always appears left justified no matter what justification setting I choose for the column. How can I either center or right justify it within the column? While on the subject of datagrids, does anyone know if 4.6 incorporated any changes to the datagrid functionality? Pete Haworth From rman at free.fr Thu Mar 24 05:19:15 2011 From: rman at free.fr (Robert Mann) Date: Thu, 24 Mar 2011 02:19:15 -0700 (PDT) Subject: RevIgniter is Fabulous! In-Reply-To: <4D8ACE40.8030904@hindu.org> References: <4D8ACE40.8030904@hindu.org> Message-ID: <1300958355297-3401962.post@n4.nabble.com> I too found revIGniter a fantastic working work! and pointed that out several time. My first site using that though has to be reworked from a speed point of view because I chose to view pictures with a javascript gallery module that loads every files at start up... and that also made the cache function of revIgniter out in the limbs, (does not work in that case). So I'll drop that. www.le-saint-claire.com -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/RevIgniter-is-Fabulous-tp3401600p3401962.html Sent from the Revolution - User mailing list archive at Nabble.com. From klaus at major.on-rev.com Thu Mar 24 07:08:38 2011 From: klaus at major.on-rev.com (Klaus on-rev) Date: Thu, 24 Mar 2011 12:08:38 +0100 Subject: Datagrid question In-Reply-To: References: Message-ID: Hi Zryip, > On Wed, Mar 23, 2011 at 8:58 PM, Klaus on-rev wrote: >> Hi friends, > Hi Klaus, >> is it possible to create a datagrid FORM that can act like 2 or more >> independant "clickable" "Cells?" (separate row "wannabees") in one row? > Yes >> Know what I mean? Something like this mockup: >> >> Any hints, tricks, hacks welcome :-) > A possible way is to edit the template of the dg form for adding > severals buttons or images controls, acting as "cells". > In the row behavior you should have 2 main handlers: > ... > Note DGH could be on some help with that. You are welcome to download > it, the DGH trial version is free to use for 30 days and could give > you some help in your journey. > http://www.aslugontheroad.co.cc/index.php?option=com_phocadownload&view=category&download=17:data-grid-helper-plugin&id=12:trial&Itemid=63 thanks a lot, will try later today! > Best, > -- > -Zryip TheSlug- wish you the best! 8) > http://www.aslugontheroad.co.cc Best Klaus -- Klaus Major http://www.major-k.de klaus at major.on-rev.com From bvg at mac.com Thu Mar 24 07:13:07 2011 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Thu, 24 Mar 2011 12:13:07 +0100 Subject: Determining which UITextField sent a message In-Reply-To: References: Message-ID: Obviously, asking for the name of an object, when you know that the name is not different between the actual objects, will not give you anything meaningful. But you are wrong in assuming the target can only ever give you the name of an object. So the target works just fine, for example: on mouseUp put the id of the target end mouseUp On 24 Mar 2011, at 01:05, MacBox at earthlink.net wrote: > The Target was the first thing I tried :) > > I may have found that the answer is "you can't." I see that in the Lesson for using the UITextField the first thing they do is check that there is only one UITextField on the card, with the comment "# ensure that only one native text input is open" > > Bummer, I hope they change this! > > Thanks anyway, Devin! > > >>> Is it possible, to find out which UITextField sent a message? >>> >>> It doesn't seem that the objects include their name, or ID, as a parameter with the messages they send, so if I have 2 or more UITextFields on a card, when I trap an "inputReturnKey" message, is there any way to tell which field sent it? >> >> Try 'the target'. >> >> Devin > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From modelmasters1 at cox.net Thu Mar 24 10:58:11 2011 From: modelmasters1 at cox.net (William Moseid) Date: Thu, 24 Mar 2011 07:58:11 -0700 Subject: About That revBrowser Message-ID: Hi All, Has anyone, requested a native object revBrowser or heard of a revBrowser "in work", which can exist as multiple objects on a card or more than one card? Whereby each would and could run independantly of other revBrowsers. Currently am having to undergo tremendous "pushups" in creating a LiveCode solution which generates 8 and 7 reports. The 8 reports use a paid resource to generate 20 different charts. The 7 use a free resource to generate 12 different charts. Best, William William Roger Moseid Model Masters modelmasters1 at cox.net __________ Information from ESET Smart Security, version of virus signature database 5982 (20110324) __________ The message was checked by ESET Smart Security. http://www.eset.com From klaus at major.on-rev.com Thu Mar 24 11:10:58 2011 From: klaus at major.on-rev.com (Klaus on-rev) Date: Thu, 24 Mar 2011 16:10:58 +0100 Subject: About That revBrowser In-Reply-To: References: Message-ID: Hi William, > Hi All, > Has anyone, requested a native object revBrowser > or heard of a revBrowser "in work", which can exist as multiple objects > on a card or more than one card? > Whereby each would and could run independantly of other > revBrowsers. > Currently am having to undergo tremendous "pushups" in creating > a LiveCode solution which generates 8 and 7 reports. The 8 reports use > a paid resource to generate 20 different charts. The 7 use a free resource > to generate 12 different charts. hm, as far as I know you can have as many instances of the "browser" object as you can manage!? Not? > Best, > > William > > William Roger Moseid > Model Masters > modelmasters1 at cox.net Best Klaus -- Klaus Major http://www.major-k.de klaus at major.on-rev.com From klaus at major.on-rev.com Thu Mar 24 11:52:08 2011 From: klaus at major.on-rev.com (Klaus on-rev) Date: Thu, 24 Mar 2011 16:52:08 +0100 Subject: Datagrid question In-Reply-To: References: Message-ID: <57790E9F-2C39-48A7-8546-7733C798DC00@major.on-rev.com> Hi Zryip, > On Wed, Mar 23, 2011 at 8:58 PM, Klaus on-rev wrote: >> Hi friends, > Hi Klaus, >> is it possible to create a datagrid FORM that can act like 2 or more >> independant "clickable" "Cells?" (separate row "wannabees") in one row? > Yes >> Know what I mean? Something like this mockup: >> >> Any hints, tricks, hacks welcome :-) > A possible way is to edit the template of the dg form for adding > severals buttons or images controls, acting as "cells". > In the row behavior you should have 2 main handlers: > 1. Fillindata for displaying the corresponding data for the cell > ... I finally got it so far, thankls a lot! And I fake the "hiliting" of a "cell" by setting the opaque of an underlying button to true. This works fine in every row. But I have ni idea how to "unhilite" the last "cell" when the user click into another row!? Know what I mean? I am sure I can do this with "on selectionchanged tNewRow,tOldRow" in the datagrid script somehow, but I have no idea of the snytax to address objects in the "tOldRow" row. Any hints very welcome! > Best, > -- > -Zryip TheSlug- wish you the best! 8) Best Klaus -- Klaus Major http://www.major-k.de klaus at major.on-rev.com From bobs at twft.com Thu Mar 24 11:58:52 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 24 Mar 2011 08:58:52 -0700 Subject: Datagrid question In-Reply-To: <57790E9F-2C39-48A7-8546-7733C798DC00@major.on-rev.com> References: <57790E9F-2C39-48A7-8546-7733C798DC00@major.on-rev.com> Message-ID: Store the currently "selected" object in a property of the datagrid, and every time the selection changes, set the property. Bob On Mar 24, 2011, at 8:52 AM, Klaus on-rev wrote: > But I have ni idea how to "unhilite" the last "cell" when the user click into another row!? > Know what I mean? > > I am sure I can do this with "on selectionchanged tNewRow,tOldRow" in the datagrid > script somehow, but I have no idea of the snytax to address objects in the "tOldRow" row. > > Any hints very welcome! From klaus at major.on-rev.com Thu Mar 24 12:09:40 2011 From: klaus at major.on-rev.com (Klaus on-rev) Date: Thu, 24 Mar 2011 17:09:40 +0100 Subject: Datagrid question In-Reply-To: References: <57790E9F-2C39-48A7-8546-7733C798DC00@major.on-rev.com> Message-ID: Hi Bob, > Store the currently "selected" object in a property of the datagrid, and every time the selection changes, set the property. wonderful, works great! Thanks a lot! > Bob Best Klaus -- Klaus Major http://www.major-k.de klaus at major.on-rev.com From bobs at twft.com Thu Mar 24 12:35:50 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 24 Mar 2011 09:35:50 -0700 Subject: Progress Indicator Revisited Message-ID: <01B35299-09BE-42C4-878D-9B91419B75D9@twft.com> I know this has been hashed out before, but what did we decide? I am going through 3 nested loops, each of which puts some text into a field to indicate how far along in the process I am. Trouble is, nothing shows up in the field until everything is done. Is there a way to force the screen to refresh in a loop so I can see a progress indicator? I tried to send idle in 0 seconds each time I went through the loop, but no joy. Bob From pete at mollysrevenge.com Thu Mar 24 12:41:58 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Thu, 24 Mar 2011 09:41:58 -0700 Subject: MySQL error on startup Message-ID: I've been playing around with mySQL for a couple of weeks now and generally getting to grips with it. All seems to be working well but every time I start up my Mac, I get this error: Insecure Startup Item Disabled. /Library/StartupItems/mySQLCOM has not been started because it does not have the proper security settings No clue, of course, what the "proper security settings" might be. The Get Info window for that file tells me I have read access only. My OSX login had administrator privileges. I can't connect to the mySQL server until I start it manually from the MySQL System Preferences plugin. SOmehow, the permissions don;t seem to be a problem that way. Anyone know what the permissions should be? Pete Haworth From scott at tactilemedia.com Thu Mar 24 12:47:08 2011 From: scott at tactilemedia.com (Scott Rossi) Date: Thu, 24 Mar 2011 09:47:08 -0700 Subject: Progress Indicator Revisited In-Reply-To: <01B35299-09BE-42C4-878D-9B91419B75D9@twft.com> Message-ID: Recently, Bob Sneidar wrote: > I know this has been hashed out before, but what did we decide? I am going > through 3 nested loops, each of which puts some text into a field to indicate > how far along in the process I am. Trouble is, nothing shows up in the field > until everything is done. > > Is there a way to force the screen to refresh in a loop so I can see a > progress indicator? I tried to send idle in 0 seconds each time I went through > the loop, but no joy. If I understand what you're asking, this can only work if your "process" can accommodate a wait or pause while it's operating. Some folks use a "wait x millisecs with messages" in a repeat loop (even a value of zero will work in some cases). Another way is to use "send in" instead of a repeat loop which inherently has "breaks" built in between cycles. But each of these depend a bit on what your process is doing and how it's doing it. Regards, Scott Rossi Creative Director Tactile Media, UX Design From bobs at twft.com Thu Mar 24 13:04:54 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 24 Mar 2011 10:04:54 -0700 Subject: MySQL error on startup In-Reply-To: References: Message-ID: Googled it. First hit was this: I experienced the same minutes ago and this is what I found in Console All Messages: /System/Library/CoreServices/SecurityFixer.app/Contents/MacOS/SecurityFixer617 "/Library/StartupItems/MySQLCOM" failed security check: not owned by GID 0 So what I did was: sudo chown -R root:wheel /Library/StartupItems/MySQLCOM After that I logged out and found this message in Console All Messages: SecurityFixer912 No insecure startup items found! So I guess problem is solved. Hope it helps. Good luck! Bob On Mar 24, 2011, at 9:41 AM, Peter Haworth wrote: > Insecure Startup Item Disabled. > /Library/StartupItems/mySQLCOM has not been started because it does not have the proper security settings From bobs at twft.com Thu Mar 24 13:35:10 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 24 Mar 2011 10:35:10 -0700 Subject: Progress Indicator Revisited In-Reply-To: References: Message-ID: <619F1BB5-9E15-41E2-A409-45E5C2D6124F@twft.com> That worked a peach. Thanks. Since I am only updating my SQL tables when something has changed I can optimize my speed by putting the wait command right after the code that actually writes to the SQL database. Bob On Mar 24, 2011, at 9:47 AM, Scott Rossi wrote: > Recently, Bob Sneidar wrote: > >> I know this has been hashed out before, but what did we decide? I am going >> through 3 nested loops, each of which puts some text into a field to indicate >> how far along in the process I am. Trouble is, nothing shows up in the field >> until everything is done. >> >> Is there a way to force the screen to refresh in a loop so I can see a >> progress indicator? I tried to send idle in 0 seconds each time I went through >> the loop, but no joy. > > If I understand what you're asking, this can only work if your "process" can > accommodate a wait or pause while it's operating. Some folks use a "wait x > millisecs with messages" in a repeat loop (even a value of zero will work in > some cases). Another way is to use "send in" instead of a repeat loop which > inherently has "breaks" built in between cycles. But each of these depend a > bit on what your process is doing and how it's doing it. > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX Design > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobs at twft.com Thu Mar 24 14:24:36 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 24 Mar 2011 11:24:36 -0700 Subject: Delete element of an array Message-ID: I hope I am not having another brain fart. I cannot find ANYWHERE how to delete an element of an array. I cannot just put empty into it, and delete element isn't valid. I thought there was a Livecode lesson on Working with Arrays, but I cannot find it. Bob From bobs at twft.com Thu Mar 24 14:27:26 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 24 Mar 2011 11:27:26 -0700 Subject: Delete element of an array Message-ID: <44E56879-B60E-4E48-8E67-B2D6B8AAC271@twft.com> DOH! Belay my last it was indeed a brain fart. Delete variable aMyArray[3] Bob > I hope I am not having another brain fart. I cannot find ANYWHERE how to delete an element of an array. I cannot just put empty into it, and delete element isn't valid. I thought there was a Livecode lesson on Working with Arrays, but I cannot find it. > > Bob > > From david at vaudevillecourt.tv Thu Mar 24 14:27:52 2011 From: david at vaudevillecourt.tv (David Bovill) Date: Thu, 24 Mar 2011 18:27:52 +0000 Subject: Delete element of an array In-Reply-To: References: Message-ID: - delete variable array [someKey] - delete local array [someKey] - delete global array [someKey] On 24 March 2011 18:24, Bob Sneidar wrote: > I hope I am not having another brain fart. I cannot find ANYWHERE how to > delete an element of an array. I cannot just put empty into it, and delete > element isn't valid. I thought there was a Livecode lesson on Working with > Arrays, but I cannot find it. > > Bob > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From katir at hindu.org Thu Mar 24 15:20:06 2011 From: katir at hindu.org (Sivakatirswami) Date: Thu, 24 Mar 2011 09:20:06 -1000 Subject: RevIgniter is Fabulous! In-Reply-To: <773D2475-8E89-466C-99D0-934F91411D1C@pacifier.com> References: <4D8ACE40.8030904@hindu.org> <773D2475-8E89-466C-99D0-934F91411D1C@pacifier.com> Message-ID: <4D8B9966.4060208@hindu.org> On 3/23/11 7:05 PM, -=>JB<=- wrote: > That looks very nice. Was everything made with Revigniter? > > -=>JB>= http://dev.himalayanacademy.com/books When you say "everything made with" depends what you mean. The navigation menus at the top are pure simple CSS. I use John Alsop's Style Master for CSS. Are you using RevIgniter? But the entire page assembly is revIgniter. The rotating selection of the head image (changes on page load) is driven by a simple 4 line function .. actually it could have been two lines. No JS or Ajax there. The data for the book on the page is all drawn from an external source piped in through a "model" HTML is assembled from six "views" -html "chunks" and most of the content of these is made up of variables that are poked in the controller. That's what is impressive, the number of operations and "gets" that are being performed by LiveCode Server before the page is sent out (I count at least 30 operations done to put this one page together) is significant enough that you would think you might start to feel some processing sluggishness: but no -- it feels almost instantaneous. take a look at the time to render at the bottom of the page. Part of this is because there is no html in a data base (ala other PHP CMS frameworks... "irritating"... you log in, choose a module, click on a list and "hello" there you are face-to-face with HTML in a "record.") instead we will just use the database for media assets metadata storage. So even when we get to using queries to generate some parts of the page content, it will be very fast, because we will still get the html direct from disk. Of course this is just a design decision as revIgniter would certainly support html code chunks being stored in dbase if you wanted to go that route, (I never will!) and I guess the CodeIgniter PHP framework is also very fast. i.e. you will have to cook your own CMS...and that's a different discussion. If you want to see any of the code, happy to share. From katir at hindu.org Thu Mar 24 16:14:20 2011 From: katir at hindu.org (Sivakatirswami) Date: Thu, 24 Mar 2011 10:14:20 -1000 Subject: RevIgniter - Loading Images In-Reply-To: <1300958355297-3401962.post@n4.nabble.com> References: <4D8ACE40.8030904@hindu.org> <1300958355297-3401962.post@n4.nabble.com> Message-ID: <4D8BA61C.1010005@hindu.org> Robert I changed the thread title since we are on now from kudos to implementation On 3/23/11 11:19 PM, Robert Mann wrote: > I too found revIGniter a fantastic working work! and pointed that out several > time. > > My first site using that though has to be reworked from a speed point of > view because I chose to view pictures with a javascript gallery module that > loads every files at start up... and that also made the cache function of > revIgniter out in the limbs, (does not work in that case). So I'll drop > that. > > www.le-saint-claire.com Robert, here is my simple function to drive a random selection from a folder of images, the image is loaded once on page load and does not change until next page load. this may not be what you want... I so very rarely share anything because I don't trust that anything I do is professional enough to share...but in case it helps: I use the assets helper and cache busting and have far future headers set to 1 year on your server. regular viewers will gradually cache the images and there will be zero download.. (unless they empty their cache of course) Also because the rigImageAsset delivers a fully qualified "img src=*" string we have to strip it back to a plain URL for use inside a CSS background. As always (I keep forgetting) all functions called have to be on top. Once I figure out how to do it, I'll probably make my own rigImageAssetURL helper and load these in base config and get them out of my controllers. function getImageURLString pTaggedImage set the itemdel to quote return item 2 of pTaggedImage end getImageURLString function rotateMastheadBackground set the defaultFolder to "/home/devhap/public_html/assets/img/masthead/rotation/" put the files into tBackgrounds put line (random (the number of lines of tBackgrounds)) of tBackgrounds into tBackground put ("masthead/rotation/" & tBackground) into tBackGroundPath put (rigImageAsset(tBackGroundPath,,,TRUE)) into pTaggedImage return getImageURLString (pTaggedImage) end rotateMastheadBackground Then in the controller call the image into the variable command index # like this: put rotateMastheadBackground() into gData["mastheadBackground"] put rigImageAsset("masthead/KHM-logo.png",,,TRUE) into gData["khmLogo"] put rigCssAsset("books.css",,,TRUE) into gData["booksCSS"] # SET PAGE TITLE put "Books by Himalayan Academy" into gData["pageTitle"] # LOAD THE VIEW FILE get rigLoadView("sitewide/head") get rigLoadView("books/books-masthead") get rigLoadView("sitewide/main-nav") get rigLoadView("books/books-main-content") get rigLoadView("books/books-bottom-content") #get rigLoadView("sitewide/bottom-nav") get rigLoadView("sitewide/footer") end index the only caveat of this is that rigImageAsset can only poke variables in views, but not in CSS files. So you have to do a little hokey bit by putting this in the top of your view: [[gData["booksCSS"] ]]

# Use this to poke a top div if you want to run a big announcement # across the top of the page; where you push a view as data in your controller: [[gData["siteWideBanner"] ]]
This actually turned out to be a serendipity advantage because it forced me to close the head of the document in the masthead view. I normally don't like to break the DOM like this, ( opens in one view and closes in another) but in the end I realized it didn't matter since by design the masthead div will always lead the page. This sudden lead me to realize I could separate the core CSS for the site and the dynamically load an override CSS for a particular area that used a particular masthead view. So, one masthead view could call a different CSS: magically, then the head of the web pages for /books can be different from /children etc. and you just keep your logo the same throughout. I plan move away from the random selection and set up different folders with series of like images e.g. all flowers, in one, all people in another, all "kids cool images" in another and order them by file name, then the function will write a "session" var to a file indicating what header image is currently loading. All viewers will then see the same image at the same time, and the function will steps thru, e.g. a whole series of rainbow pix. And if I want to insert things on top of the masthead you can just put vars in the mast head and fill them with views. fantastic! I'm blabbering on and on here. POINT: this is just way too much fun, way too easy with LiveCode.. imagine doing this in PHP. Well I can't, because I don't know PHP... 10 minutes of cut and paste lines and controller handlers and magically now we get: http://dev.himalayanacademy.com/books http://dev.himalayanacademy.com/books/two http://dev.himalayanacademy.com/books/three # design 1 with top video (HTML5) banner http://dev.himalayanacademy.com/books/four # design 2 with top video banner and I did not have to touch html even once to get #3 and #4. skts > From gerry.orkin at gmail.com Thu Mar 24 17:29:51 2011 From: gerry.orkin at gmail.com (Gerry) Date: Fri, 25 Mar 2011 08:29:51 +1100 Subject: iOS quit app message? Message-ID: Hi all Is there any way to detect the closing of an iOS app? As far as I can tell closestack and suspendstack don't work. Cheers Gerry -- photo site: http://gerryorkin.com From bvg at mac.com Thu Mar 24 18:38:45 2011 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Thu, 24 Mar 2011 23:38:45 +0100 Subject: Live LiveCode event #16 Message-ID: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> Hi from the sun The sun compels you to watch the following presentations: Keith Clarke is a system admin and will show how to set up revServer, a few pitfalls regarding server LiveCoding, Mac OS X server and Linux VPS. http://livecode.tv/keith/ After that, Colin Holgate, who is a mentor of a robotics team, will show collision detection techniques using bitmaps and imagedata. http://blog.livecode.tv/colin/ The sun also likes to remind you that you please should join ChatRev on Saturday at the correct times: http://bjoernke.com/chatrev/ Rome 20:00 Johannesburg 21:00 New York 15:00 Los Angeles 12:00 Seoul 04:00 (Sun) Melbourne 06:00 (Sun) Please the sun, and watch in on the live event. Pleasure it, by contacting me for making your own presentation! Also, do read the blog for past events: http://livecode.tv Cheers Bjoernke (not the Sun) From sundown at pacifier.com Thu Mar 24 21:19:21 2011 From: sundown at pacifier.com (-=>JB<=-) Date: Thu, 24 Mar 2011 18:19:21 -0700 Subject: RevIgniter is Fabulous! In-Reply-To: <4D8B9966.4060208@hindu.org> References: <4D8ACE40.8030904@hindu.org> <773D2475-8E89-466C-99D0-934F91411D1C@pacifier.com> <4D8B9966.4060208@hindu.org> Message-ID: <8307B0E9-5A27-4E3B-AD02-097E91A572BB@pacifier.com> I am not using revigniter yet but I downloaded it and have been reading since your post. I am really new to web programming and irev has very little info unless they wrote documentation I don't know about so I have been learning web basics from other sources. Thanks for the reply and the offer to see your code. I will probably take you up on that offer when I learn more. -=>JB<=- On Mar 24, 2011, at 12:20 PM, Sivakatirswami wrote: > On 3/23/11 7:05 PM, -=>JB<=- wrote: >> That looks very nice. Was everything made with Revigniter? >> >> -=>JB>= > http://dev.himalayanacademy.com/books > > When you say "everything made with" depends what you mean. The navigation menus at the top are pure simple CSS. I use John Alsop's Style Master for CSS. Are you using RevIgniter? > > But the entire page assembly is revIgniter. > > The rotating selection of the head image (changes on page load) is driven by a simple 4 line function .. actually it could have been two lines. No JS or Ajax there. The data for the book on the page is all drawn from an external source piped in through a "model" HTML is assembled from six "views" -html "chunks" and most of the content of these is made up of variables that are poked in the controller. That's what is impressive, the number of operations and "gets" that are being performed by LiveCode Server before the page is sent out (I count at least 30 operations done to put this one page together) is significant enough that you would think you might start to feel some processing sluggishness: but no -- it feels almost instantaneous. take a look at the time to render at the bottom of the page. > > Part of this is because there is no html in a data base (ala other PHP CMS frameworks... "irritating"... you log in, choose a module, click on a list and "hello" there you are face-to-face with HTML in a "record.") instead we will just use the database for media assets metadata storage. So even when we get to using queries to generate some parts of the page content, it will be very fast, because we will still get the html direct from disk. > > Of course this is just a design decision as revIgniter would certainly support html code chunks being stored in dbase if you wanted to go that route, (I never will!) and I guess the CodeIgniter PHP framework is also very fast. i.e. you will have to cook your own CMS...and that's a different discussion. > > If you want to see any of the code, happy to share. > > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From rman at free.fr Thu Mar 24 22:51:39 2011 From: rman at free.fr (Robert Mann) Date: Thu, 24 Mar 2011 19:51:39 -0700 (PDT) Subject: RevIgniter - Loading Images In-Reply-To: <4D8BA61C.1010005@hindu.org> References: <4D8ACE40.8030904@hindu.org> <1300958355297-3401962.post@n4.nabble.com> <4D8BA61C.1010005@hindu.org> Message-ID: <1301021499177-3404321.post@n4.nabble.com> "Robert, here is my simple function to drive a random selection from a folder of images, the image is loaded once on page load and does not change until next page load. this may not be what you want... " Many thanks its exactly what I was going to program : a random selection of an image for each page call! I did not grasp the way it you did that in 5 seconds but will dig it next week, and let know and share handlers to do that! It would be nice to have a respository of revIgniter compatible handlers somewhere. Maybe the best place is on rev lessons!? Because it needs a little explanation also! -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/RevIgniter-is-Fabulous-tp3401600p3404321.html Sent from the Revolution - User mailing list archive at Nabble.com. From mcgrath3 at mac.com Thu Mar 24 23:17:12 2011 From: mcgrath3 at mac.com (Thomas McGrath III) Date: Thu, 24 Mar 2011 23:17:12 -0400 Subject: Urban Airship in LC Message-ID: <026673EA-3DA7-44B1-B3FC-652B7FD4F768@mac.com> Has anyone used Urban Airship yet in LC for Push Notification? Where do we stand on encode and decode for JSON? (U.A. says "Every language under the sun has libraries to encode and decode JSON.") This is fairly new to me but I am jumping in so any help is appreciated. From Urban Airship: "JavaScript Object Notation is the simple serialization format used when communicating with our API. Every language under the sun has libraries to encode and decode JSON, and there are tools like JSONLint to help validate that you?re sending data we can understand." -- Tom McGrath III http://lazyriver.on-rev.com 3mcgrath at comcast.net From jacque at hyperactivesw.com Thu Mar 24 23:44:49 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 24 Mar 2011 22:44:49 -0500 Subject: iOS quit app message? In-Reply-To: References: Message-ID: <4D8C0FB1.2060507@hyperactivesw.com> On 3/24/11 4:29 PM, Gerry wrote: > Hi all > > Is there any way to detect the closing of an iOS app? As far as I can > tell closestack and suspendstack don't work. Does the shutdown message get sent? I haven't tried it but it sounds logical. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From scott at elementarysoftware.com Thu Mar 24 23:54:18 2011 From: scott at elementarysoftware.com (Scott Morrow) Date: Thu, 24 Mar 2011 20:54:18 -0700 Subject: iOS quit app message? In-Reply-To: <4D8C0FB1.2060507@hyperactivesw.com> References: <4D8C0FB1.2060507@hyperactivesw.com> Message-ID: Hello Gerry and Jacqueline, I'm interested in this as well. I haven't been successful at catching the "shutdown" message and ended up needing to add "save" routines in some places I would rather not have. (Though saving seems to happen very fast.) Scott Morrow Elementary Software (Now with 20% less chalk dust!) web http://elementarysoftware.com/ email scott at elementarysoftware.com ------------------------------------------------------ On Mar 24, 2011, at 8:44 PM, J. Landman Gay wrote: > On 3/24/11 4:29 PM, Gerry wrote: >> Hi all >> >> Is there any way to detect the closing of an iOS app? As far as I can >> tell closestack and suspendstack don't work. > > Does the shutdown message get sent? I haven't tried it but it sounds logical. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com From katir at hindu.org Fri Mar 25 00:12:11 2011 From: katir at hindu.org (Web Admin Himalayan Academy) Date: Thu, 24 Mar 2011 18:12:11 -1000 Subject: RevIgniter - Loading Images In-Reply-To: <1301021499177-3404321.post@n4.nabble.com> References: <4D8ACE40.8030904@hindu.org> <1300958355297-3401962.post@n4.nabble.com> <4D8BA61C.1010005@hindu.org> <1301021499177-3404321.post@n4.nabble.com> Message-ID: <4D8C161B.60903@hindu.org> On 3/24/11 4:51 PM, Robert Mann wrote: > "Robert, here is my simple function to drive a random selection from a > folder of images, the image is loaded once on page load and does not > change until next page load. this may not be what you want... " > > Many thanks its exactly what I was going to program : a random selection of > an image for each page call! I did not grasp the way it you did that in 5 > seconds but will dig it next week, and let know and share handlers to do > that! [warning, if you are not familiar with apache future expires header and caching performance issues, the following may be all ZULU to you.] Just remember once you finish the testing to set the cache busting to false in my code I should have made that clear. (I assume you have far future expires headers set on your server, you can do this with .htaccess of your site if you don't have access to the core httpd.conf...just put this in your .htaccess file: ExpiresActive On ExpiresDefault "access plus 10 years" see http://developer.yahoo.com/blogs/ydn/posts/2007/05/high_performanc_2/ for details e.g. when developing do this: put rigCssAsset("ha-new.css",,,TRUE) into gData["haNewCSS"] # Load Base Styles when you stop changing your css and you know you are not going to change anything for a while then put rigCssAsset("ha-new.css",,,FALSE) into gData["haNewCSS"] # Load Base Styles and change: put (rigImageAsset(tBackGroundPath,,,TRUE)) into pTaggedImage to put (rigImageAsset(tBackGroundPath,,,FALSE)) into pTaggedImage Later if you start developing again and you find things are not updating as you work, instead of having to go empty the cache all the time, just set these back to "TRUE" actually for certain sets of images there's hardly any reason use TRUE because the likelihood that i would put up a different version of "waialeale-sunset-dcsn6463.jpg" with the same name if very unlikely... But if your content designers start throwing different versions of "masthead.jpg" onto the server every day, they you definitely will want to set it to TRUE so that they will see their new image come up as they test...otherwise they will come crying to you that they never see their new baby on the screen and it keeps showing yesterdays' version of "masthead.jpg" > It would be nice to have a respository of revIgniter compatible handlers > somewhere. Maybe the best place is on rev lessons!? Because it needs a > little explanation also! Agreed! Not sure what is best. Happy to contribute moving forward... I think best would be a blog on Ralf site to guard against fragmentation. From peterwawood at gmail.com Fri Mar 25 01:03:03 2011 From: peterwawood at gmail.com (Peter W A Wood) Date: Fri, 25 Mar 2011 13:03:03 +0800 Subject: Urban Airship in LC In-Reply-To: <026673EA-3DA7-44B1-B3FC-652B7FD4F768@mac.com> References: <026673EA-3DA7-44B1-B3FC-652B7FD4F768@mac.com> Message-ID: Tom I think that Mark Smith has the answer for you - http://revonline2.runrev.com/stack/82/LibJson-1-0b Regards Peter On 25 Mar 2011, at 11:17, Thomas McGrath III wrote: > Has anyone used Urban Airship yet in LC for Push Notification? > > Where do we stand on encode and decode for JSON? (U.A. says "Every language under the sun has libraries to encode and decode JSON.") > > This is fairly new to me but I am jumping in so any help is appreciated. > > From Urban Airship: > "JavaScript Object Notation is the simple serialization format used when communicating with our API. Every language under the sun has libraries to encode and decode JSON, and there are tools like JSONLint to help validate that you?re sending data we can understand." > > > -- Tom McGrath III > http://lazyriver.on-rev.com > 3mcgrath at comcast.net > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at whitefeather.com Fri Mar 25 01:29:49 2011 From: paul at whitefeather.com (paul foraker) Date: Thu, 24 Mar 2011 22:29:49 -0700 Subject: Can't close windows Message-ID: As of a few weeks ago, I can no longer close stacks by clicking their red close button (Mac OS 10.6.6, LC 4.0.0). I have to use File / Close (Cmd W). Any ideas what might be happening with that? -- Paul From pepetoo at cox.net Fri Mar 25 02:07:20 2011 From: pepetoo at cox.net (Joe Lewis Wilkins) Date: Thu, 24 Mar 2011 23:07:20 -0700 Subject: Can't close windows In-Reply-To: References: Message-ID: <5EFB94E7-8C7B-4B6D-BE4C-A7D4D7755E1F@cox.net> Maybe it is disabled. Under Basic Properties for your stacks, check the "control" settings. Joe Lewis Wilkins Architect & Director of Product Development for GSI On Mar 24, 2011, at 10:29 PM, paul foraker wrote: > As of a few weeks ago, I can no longer close stacks by clicking their red > close button (Mac OS 10.6.6, LC 4.0.0). I have to use File / Close (Cmd W). > Any ideas what might be happening with that? > > -- Paul From niggemann at uni-wh.de Fri Mar 25 04:15:26 2011 From: niggemann at uni-wh.de (BNig) Date: Fri, 25 Mar 2011 01:15:26 -0700 (PDT) Subject: iOS quit app message? In-Reply-To: References: Message-ID: <1301040926423-3404781.post@n4.nabble.com> Hi Gerry and Scott, I used the shutdown message successfully to save. Just remember to put the handler in the stack script if your stack has more than 1 card and be aware that pathnames in iOS are case sensitive and of course that you save to a 'known' location, 'cache' or 'documents', not 'temp' since temp is not persistent between launches. Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/iOS-quit-app-message-tp3403873p3404781.html Sent from the Revolution - User mailing list archive at Nabble.com. From mcgrath3 at mac.com Fri Mar 25 07:59:26 2011 From: mcgrath3 at mac.com (Thomas McGrath III) Date: Fri, 25 Mar 2011 07:59:26 -0400 Subject: Urban Airship in LC In-Reply-To: References: <026673EA-3DA7-44B1-B3FC-652B7FD4F768@mac.com> Message-ID: <5C71BB74-617C-460E-BACD-3FC9049E19DF@mac.com> Thanks Peter, Looking into it now. Might just be the trick. -- Tom McGrath III http://lazyriver.on-rev.com 3mcgrath at comcast.net On Mar 25, 2011, at 1:03 AM, Peter W A Wood wrote: > Tom > > I think that Mark Smith has the answer for you - http://revonline2.runrev.com/stack/82/LibJson-1-0b > > Regards > > Peter > > On 25 Mar 2011, at 11:17, Thomas McGrath III wrote: > >> Has anyone used Urban Airship yet in LC for Push Notification? >> >> Where do we stand on encode and decode for JSON? (U.A. says "Every language under the sun has libraries to encode and decode JSON.") >> >> This is fairly new to me but I am jumping in so any help is appreciated. >> >> From Urban Airship: >> "JavaScript Object Notation is the simple serialization format used when communicating with our API. Every language under the sun has libraries to encode and decode JSON, and there are tools like JSONLint to help validate that you?re sending data we can understand." >> >> >> -- Tom McGrath III >> http://lazyriver.on-rev.com >> 3mcgrath at comcast.net >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jhurley0305 at sbcglobal.net Fri Mar 25 13:11:34 2011 From: jhurley0305 at sbcglobal.net (James Hurley) Date: Fri, 25 Mar 2011 10:11:34 -0700 Subject: Tab panels In-Reply-To: <20101120180003.9994548A850@mail.runrev.com> References: <20101120180003.9994548A850@mail.runrev.com> Message-ID: I prefer the tab panel to the drop down menus. The choices are always visible. But I have a problem. If a particular tab is selected, it will no longer respond to a menuPick message. Normally this is not a problem, but I am using the panel to select lines or sentences from a long text document and returning a list of lines or sentences in which a given set of words appear, all sentences for which the words "disorder microcount entropy" appear, for example. The word choices are entered into a field which the tab panel script picks up. Works great for the first choice, but if I change the word selection, I cannot select the same panel item since it is already selected. In summary, is there any way to force the tab panel to receive a second menupick message when it is already selected? I am thinking of building my own tab panel by grouping regular buttons. Thanks, Jim Hurley From bobs at twft.com Fri Mar 25 13:15:36 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 25 Mar 2011 10:15:36 -0700 Subject: Tab panels In-Reply-To: References: <20101120180003.9994548A850@mail.runrev.com> Message-ID: <3293B154-A105-4F2D-AE85-327810E955BB@twft.com> In the past, "roll your own" seems to be the outcome of discussions about tab panels. Bob On Mar 25, 2011, at 10:11 AM, James Hurley wrote: > I prefer the tab panel to the drop down menus. The choices are always visible. > > But I have a problem. If a particular tab is selected, it will no longer respond to a menuPick message. > > Normally this is not a problem, but I am using the panel to select lines or sentences from a long text document and returning a list of lines or sentences in which a given set of words appear, all sentences for which the words "disorder microcount entropy" appear, for example. > > The word choices are entered into a field which the tab panel script picks up. > > Works great for the first choice, but if I change the word selection, I cannot select the same panel item since it is already selected. > > In summary, is there any way to force the tab panel to receive a second menupick message when it is already selected? > > I am thinking of building my own tab panel by grouping regular buttons. > > Thanks, > > Jim Hurley > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at mollysrevenge.com Fri Mar 25 13:17:07 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Fri, 25 Mar 2011 10:17:07 -0700 Subject: 4.6 Message-ID: I have no idea why but my upgrade to 4.6 didn't have a cost attached to it, I guess I somehow paid for it in the past. I was happy to see a couple of things in the new release. Substacks within a main stack are now listed alphabetically, making it much easier to find them in large applications. And after the recent posts I made about not liking the way LC summarily enforced About and Preferences on Mac, there is now a way to control whether those menu items are created or not. But I'm left with this vague feeling that it's hard to think of this as a major release for desktop developers. It includes a lot of new features for people who are developing mobile apps but for those of us who are concentrating on desktop right now, there really isn't much to get excited about. RunRev list 13 new features and, for me personally, I don't think there's one that is of much use in any of my current projects. II'm sure there are users out there who welcome some of the new desktop features but if I had to pay for this release, I would not have upgraded. Pete Haworth From herz at ucsd.edu Fri Mar 25 13:20:09 2011 From: herz at ucsd.edu (Richard K. Herz) Date: Fri, 25 Mar 2011 10:20:09 -0700 Subject: revWeb revlets broken in Firefox 4.0? In-Reply-To: References: Message-ID: <4D8CCEC9.6070802@ucsd.edu> Are revWeb revlets broken in Firefox 4.0? Just upgraded to Firefox 4.0 on Mac 10.5.8. Get error message when going to a revlet: "There was an error loading the revlet - failed to stream revlet." Works OK with Safari 5.0.4 and worked OK with earlier Firefox on same Mac. Thanks Rich From pete at mollysrevenge.com Fri Mar 25 13:25:14 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Fri, 25 Mar 2011 10:25:14 -0700 Subject: Accessing customised columns in a datagrid Message-ID: <830CF3B4-CD94-4613-AC6D-F26D080155D1@mollysrevenge.com> I have a datagrid with a column I've customised to include an option menu. As I understand it, the row template for the datagrid includes the option menu and the datagrid makes copies of it for each visible line in the datagrid. In order to debug some issues I'm having, I need to take a look at some custom properties of the option menu copies (they could be different in each copy) but I can't find a way to bring up the Inspector dialog for them since they're not listed in the application browser and even with Select Grouped enabled, I can't select them in the IDE. Any ideas on how to bring up an Inspector dialog for these option menu copies? Pete Haworth From stephenREVOLUTION2 at barncard.com Fri Mar 25 13:37:52 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Fri, 25 Mar 2011 10:37:52 -0700 Subject: 4.6 In-Reply-To: References: Message-ID: I'm not disappointed in the 'lack' of new features. A lot of stuff is going on 'under the hood'. Stability and bug fixes are always a big feature. Improvements to mobile eventually work their way back to the desktop (and plugin and server), as the team are revising major parts of the engine as they go along, so we developers can truly 'write once, use anywhere'. We developers usually work on no more that 2 platforms on a project, they must do it on 6 now, and they all must be 'perfect' because they are not just programs, but ones that create a legacy of standards that must be maintained. Over the years I've gotten more and more confidence in Kevin and his team in providing the continuation and expanding of a platform that works for me and many others. I trust these guys to stay on top of the changing landscape, and to keep improving the core product. I see a great future for this company and I'm here for the long haul. As we have a big conference coming up next month in San Jose I imagine we will more great things coming with Livecode very soon. I'll be there. On 25 March 2011 10:17, Peter Haworth wrote: > I have no idea why but my upgrade to 4.6 didn't have a cost attached to it, > I guess I somehow paid for it in the past. > > I was happy to see a couple of things in the new release. Substacks within > a main stack are now listed alphabetically, making it much easier to find > them in large applications. And after the recent posts I made about not > liking the way LC summarily enforced About and Preferences on Mac, there is > now a way to control whether those menu items are created or not. > > But I'm left with this vague feeling that it's hard to think of this as a > major release for desktop developers. It includes a lot of new features for > people who are developing mobile apps but for those of us who are > concentrating on desktop right now, there really isn't much to get excited > about. RunRev list 13 new features and, for me personally, I don't think > there's one that is of much use in any of my current projects. > > II'm sure there are users out there who welcome some of the new desktop > features but if I had to pay for this release, I would not have upgraded. > > Pete Haworth > > > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Stephen Barncard San Francisco Ca. USA more about sqb From jacque at hyperactivesw.com Fri Mar 25 13:47:22 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 25 Mar 2011 12:47:22 -0500 Subject: Tab panels In-Reply-To: References: <20101120180003.9994548A850@mail.runrev.com> Message-ID: <4D8CD52A.8030808@hyperactivesw.com> On 3/25/11 12:11 PM, James Hurley wrote: > In summary, is there any way to force the tab panel to receive a second > menupick message when it is already selected? If the menuhistory doesn't change, the tab panel doesn't bother to update itself. You might be able to hack it with something like this: -- assume tab button's history is currently at "1": lock screen lock messages set the menuhistory of btn "tabpanel" to 2 unlock messages set the menuhistory of btn "tabpanel" to 1 unlock screen Didn't try it though. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Fri Mar 25 13:48:49 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 25 Mar 2011 12:48:49 -0500 Subject: Can't close windows In-Reply-To: References: Message-ID: <4D8CD581.9020209@hyperactivesw.com> On 3/25/11 12:29 AM, paul foraker wrote: > As of a few weeks ago, I can no longer close stacks by clicking their red > close button (Mac OS 10.6.6, LC 4.0.0). I have to use File / Close (Cmd W). > Any ideas what might be happening with that? If you have a closeStackRequest handler in the message path and you don't pass the message, the window won't close. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobs at twft.com Fri Mar 25 14:06:09 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 25 Mar 2011 11:06:09 -0700 Subject: 4.6 In-Reply-To: References: Message-ID: <98A1CC4E-3793-4ADB-9927-5D8012455060@twft.com> Given all that, it seems the new licensing model makes a LOT more sense. If a release doesn't help you much, you aren't paying for something in advance that you now find out you really didn't need. I got the deluxe deal where I paid something like 3 years ahead, because I saw it as an investment in a developer that made an awesome dev environment that I would be much grieved to see fall by the wayside. Bob On Mar 25, 2011, at 10:17 AM, Peter Haworth wrote: > I have no idea why but my upgrade to 4.6 didn't have a cost attached to it, I guess I somehow paid for it in the past. > > I was happy to see a couple of things in the new release. Substacks within a main stack are now listed alphabetically, making it much easier to find them in large applications. And after the recent posts I made about not liking the way LC summarily enforced About and Preferences on Mac, there is now a way to control whether those menu items are created or not. > > But I'm left with this vague feeling that it's hard to think of this as a major release for desktop developers. It includes a lot of new features for people who are developing mobile apps but for those of us who are concentrating on desktop right now, there really isn't much to get excited about. RunRev list 13 new features and, for me personally, I don't think there's one that is of much use in any of my current projects. > > II'm sure there are users out there who welcome some of the new desktop features but if I had to pay for this release, I would not have upgraded. > > Pete Haworth > > > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From revolution at derbrill.de Fri Mar 25 14:14:05 2011 From: revolution at derbrill.de (Malte Brill) Date: Fri, 25 Mar 2011 19:14:05 +0100 Subject: 4.6 In-Reply-To: References: Message-ID: <062A5C56-4D7F-4BF8-AA75-DBE269061708@derbrill.de> Well, I see some major stumbling blocks for one of my desktop projects lifted with this release. The lifting of the images may not be wider than 4096 px limitation on the Mac is really a game changer for the Traditional Chinese Medicine Management software we have been developing over the past few years. (There are pictures of the patients needed to be displayed and this was hardly possible with the photos taken with current digital cameras). Also Object snapshot with effects is very nice to have, though I do not have any burning issues needing that atm. Of course I am thrilled by the new mobile opportunities, however it appears that desktop software will still keep bread and butter on the table for quite a while here. I am really happy that the core platforms are not being neglected and even happier to see the communication promise being kept when you are subscribed to the developer program. The guys in Scottland are doing an amazing job there. 2 cents worth, Malte -- Find my music on iTunes: http://itunes.apple.com/en/album/geek/id418516694?i=418516703 From pete at mollysrevenge.com Fri Mar 25 15:46:23 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Fri, 25 Mar 2011 12:46:23 -0700 Subject: Control ID problem Message-ID: <7E637C50-CDDE-4916-AE15-D16FA0514B37@mollysrevenge.com> I have a function that returns information about a control which takes the control's short ID as a parameter. This has been working fine for a long time but has suddenly started to throw a run time error for one specific control. The statement "put the short name of control ID pid into myControlName" where id is the parameter containing the ID returns the error "No such Object near "1076" (1076 is the control ID in pid). I can clearly see in the application browser and Inspector dialog that there is a button with ID 1076 in a substack of the main stack. If I use the message box to execute "put the short name of control ID 1076", I get the same error. But if I execute "put the short name of control ID 1076 of stack ", I get the correct result. According to the dictionary, the ID of a control is unique within a main stack so I can't figure out why this doesn't work without qualifying the ID with the substack name. I tried putting an "answer information" right before the offending line to display the defaultStack in case something strange was happening to the defaultStack property but it is set to the correct stack name. Any ideas? Pete Haworth From bobs at twft.com Fri Mar 25 16:04:35 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 25 Mar 2011 13:04:35 -0700 Subject: Control ID problem In-Reply-To: <7E637C50-CDDE-4916-AE15-D16FA0514B37@mollysrevenge.com> References: <7E637C50-CDDE-4916-AE15-D16FA0514B37@mollysrevenge.com> Message-ID: Hmmm... is it a button? Try referring to it as a button instead of a control. Bob On Mar 25, 2011, at 12:46 PM, Peter Haworth wrote: > I have a function that returns information about a control which takes the control's short ID as a parameter. This has been working fine for a long time but has suddenly started to throw a run time error for one specific control. > > The statement "put the short name of control ID pid into myControlName" where id is the parameter containing the ID returns the error "No such Object near "1076" (1076 is the control ID in pid). > > I can clearly see in the application browser and Inspector dialog that there is a button with ID 1076 in a substack of the main stack. If I use the message box to execute "put the short name of control ID 1076", I get the same error. But if I execute "put the short name of control ID 1076 of stack ", I get the correct result. > > According to the dictionary, the ID of a control is unique within a main stack so I can't figure out why this doesn't work without qualifying the ID with the substack name. I tried putting an "answer information" right before the offending line to display the defaultStack in case something strange was happening to the defaultStack property but it is set to the correct stack name. > > Any ideas? > > > Pete Haworth > > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobs at twft.com Fri Mar 25 16:06:35 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 25 Mar 2011 13:06:35 -0700 Subject: Control ID problem In-Reply-To: <7E637C50-CDDE-4916-AE15-D16FA0514B37@mollysrevenge.com> References: <7E637C50-CDDE-4916-AE15-D16FA0514B37@mollysrevenge.com> Message-ID: <3E7EC4A5-E882-43FE-AA42-802350480BF4@twft.com> Hmmm... not sure but this works fine for me. on mouseUp pMouseBtnNo breakpoint put the id of me into theID put the short name of control id theID end mouseUp I get the short name of the button in the message box. Seems like something else is not compiling there. Bob On Mar 25, 2011, at 12:46 PM, Peter Haworth wrote: > I have a function that returns information about a control which takes the control's short ID as a parameter. This has been working fine for a long time but has suddenly started to throw a run time error for one specific control. > > The statement "put the short name of control ID pid into myControlName" where id is the parameter containing the ID returns the error "No such Object near "1076" (1076 is the control ID in pid). > > I can clearly see in the application browser and Inspector dialog that there is a button with ID 1076 in a substack of the main stack. If I use the message box to execute "put the short name of control ID 1076", I get the same error. But if I execute "put the short name of control ID 1076 of stack ", I get the correct result. > > According to the dictionary, the ID of a control is unique within a main stack so I can't figure out why this doesn't work without qualifying the ID with the substack name. I tried putting an "answer information" right before the offending line to display the defaultStack in case something strange was happening to the defaultStack property but it is set to the correct stack name. > > Any ideas? > > > Pete Haworth > > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Fri Mar 25 16:16:54 2011 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 25 Mar 2011 22:16:54 +0200 Subject: Call for Beta testers. Message-ID: <4D8CF836.3030704@gmail.com> This is a call for beta testers using Mac INTEL computers to spend approximately 15 minutes testing a few specific probblems with my Dveawriter Pro. If you can spare 15 minutes of your time and you have a Mac INTEL computer, I would be most grateful if you could contact me off-list. sincerely, Richmond Mathewson. From scott at tactilemedia.com Fri Mar 25 16:22:58 2011 From: scott at tactilemedia.com (Scott Rossi) Date: Fri, 25 Mar 2011 13:22:58 -0700 Subject: Control ID problem In-Reply-To: <7E637C50-CDDE-4916-AE15-D16FA0514B37@mollysrevenge.com> Message-ID: The only thing I could guess is your substack is not the top stack. I don't believe LC has ever known to automatically look in substacks for the existence of controls. LC can have multiple stacks open simultaneously, and can have controls of the same ID in different stacks, so unless the stack with your desired control is front-most, or you use a full stack path, LC won't know where your control is. Regards, Scott Rossi Creative Director Tactile Media, UX Design Recently, Peter Haworth wrote: > I have a function that returns information about a control which takes the > control's short ID as a parameter. This has been working fine for a long time > but has suddenly started to throw a run time error for one specific control. > > The statement "put the short name of control ID pid into myControlName" where > id is the parameter containing the ID returns the error "No such Object near > "1076" (1076 is the control ID in pid). > > I can clearly see in the application browser and Inspector dialog that there > is a button with ID 1076 in a substack of the main stack. If I use the > message box to execute "put the short name of control ID 1076", I get the same > error. But if I execute "put the short name of control ID 1076 of stack > ", I get the correct result. > > According to the dictionary, the ID of a control is unique within a main stack > so I can't figure out why this doesn't work without qualifying the ID with the > substack name. I tried putting an "answer information" right before the > offending line to display the defaultStack in case something strange was > happening to the defaultStack property but it is set to the correct stack > name. > > Any ideas? > > > Pete Haworth From pete at mollysrevenge.com Fri Mar 25 16:30:45 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Fri, 25 Mar 2011 13:30:45 -0700 Subject: Control ID problem In-Reply-To: <3E7EC4A5-E882-43FE-AA42-802350480BF4@twft.com> References: <7E637C50-CDDE-4916-AE15-D16FA0514B37@mollysrevenge.com> <3E7EC4A5-E882-43FE-AA42-802350480BF4@twft.com> Message-ID: <697E70CC-46EF-4E0A-AD48-0C0763451D0F@mollysrevenge.com> I can't refer to it as a button because this is a general purpose function that has to deal with any type of control, not just a button. But I did try doing that in the message box and got the same error. It's been working fine for months and fails just on this one button so yes, there's definitely something different about this particular situation - I just can't figure out what it is! The only thing that might be a clue is that this button is on a card in the Data Grid Templates stack of my application but as far as I know, that's just a stack like any other. Pete Haworth On Mar 25, 2011, at 1:06 PM, Bob Sneidar wrote: > Hmmm... not sure but this works fine for me. > > on mouseUp pMouseBtnNo > breakpoint > put the id of me into theID > put the short name of control id theID > end mouseUp > > I get the short name of the button in the message box. Seems like something else is not compiling there. > > Bob > > > On Mar 25, 2011, at 12:46 PM, Peter Haworth wrote: > >> I have a function that returns information about a control which takes the control's short ID as a parameter. This has been working fine for a long time but has suddenly started to throw a run time error for one specific control. >> >> The statement "put the short name of control ID pid into myControlName" where id is the parameter containing the ID returns the error "No such Object near "1076" (1076 is the control ID in pid). >> >> I can clearly see in the application browser and Inspector dialog that there is a button with ID 1076 in a substack of the main stack. If I use the message box to execute "put the short name of control ID 1076", I get the same error. But if I execute "put the short name of control ID 1076 of stack ", I get the correct result. >> >> According to the dictionary, the ID of a control is unique within a main stack so I can't figure out why this doesn't work without qualifying the ID with the substack name. I tried putting an "answer information" right before the offending line to display the defaultStack in case something strange was happening to the defaultStack property but it is set to the correct stack name. >> >> Any ideas? >> >> >> Pete Haworth >> >> >> >> >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at mollysrevenge.com Fri Mar 25 16:37:49 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Fri, 25 Mar 2011 13:37:49 -0700 Subject: Control ID problem In-Reply-To: References: Message-ID: <634C1FC8-3516-4021-B4FA-D503F92EED8C@mollysrevenge.com> Thanks Scott, that's a possibility, the stack in question is not the "front-most" one for sure. However, shouldn't the defaultStack property (which is set to the correct substack) taken care of that? Or is there some other property I can use to qualify the ID? Since this is a general purpose handler that could be called from anywhere in my app, I can't hard code a stack name in it Thanks, Pete Haworth On Mar 25, 2011, at 1:22 PM, Scott Rossi wrote: > The only thing I could guess is your substack is not the top stack. I don't > believe LC has ever known to automatically look in substacks for the > existence of controls. LC can have multiple stacks open simultaneously, and > can have controls of the same ID in different stacks, so unless the stack > with your desired control is front-most, or you use a full stack path, LC > won't know where your control is. > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX Design > > > > Recently, Peter Haworth wrote: > >> I have a function that returns information about a control which takes the >> control's short ID as a parameter. This has been working fine for a long time >> but has suddenly started to throw a run time error for one specific control. >> >> The statement "put the short name of control ID pid into myControlName" where >> id is the parameter containing the ID returns the error "No such Object near >> "1076" (1076 is the control ID in pid). >> >> I can clearly see in the application browser and Inspector dialog that there >> is a button with ID 1076 in a substack of the main stack. If I use the >> message box to execute "put the short name of control ID 1076", I get the same >> error. But if I execute "put the short name of control ID 1076 of stack >> ", I get the correct result. >> >> According to the dictionary, the ID of a control is unique within a main stack >> so I can't figure out why this doesn't work without qualifying the ID with the >> substack name. I tried putting an "answer information" right before the >> offending line to display the defaultStack in case something strange was >> happening to the defaultStack property but it is set to the correct stack >> name. >> >> Any ideas? >> >> >> Pete Haworth > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From scott at tactilemedia.com Fri Mar 25 16:52:42 2011 From: scott at tactilemedia.com (Scott Rossi) Date: Fri, 25 Mar 2011 13:52:42 -0700 Subject: Control ID problem In-Reply-To: <634C1FC8-3516-4021-B4FA-D503F92EED8C@mollysrevenge.com> Message-ID: Yes, setting the defaultStack to the name of the substack *should* work. You may want to check that you're not inadvertently setting focus back to the main stack somewhere in your scripts. Unless you're constantly changing stack names for some reason, IMO, you're better off using the long ID of the control. That way you don't have to worry about which stack is active or trying to qualify paths. Don't build the control's path yourself, just store the long ID of the control in a custom property of the main stack for example (ie the myImportantControl of this stack). That way everything in your stacks will know where the control is. Regards, Scott Rossi Creative Director Tactile Media, UX Design Recently, Peter Haworth wrote: > Thanks Scott, that's a possibility, the stack in question is not the > "front-most" one for sure. However, shouldn't the defaultStack property > (which is set to the correct substack) taken care of that? Or is there some > other property I can use to qualify the ID? Since this is a general purpose > handler that could be called from anywhere in my app, I can't hard code a > stack name in it > > Thanks, > Pete Haworth > > On Mar 25, 2011, at 1:22 PM, Scott Rossi wrote: > >> The only thing I could guess is your substack is not the top stack. I don't >> believe LC has ever known to automatically look in substacks for the >> existence of controls. LC can have multiple stacks open simultaneously, and >> can have controls of the same ID in different stacks, so unless the stack >> with your desired control is front-most, or you use a full stack path, LC >> won't know where your control is. >> >> Regards, >> >> Scott Rossi >> Creative Director >> Tactile Media, UX Design >> >> >> >> Recently, Peter Haworth wrote: >> >>> I have a function that returns information about a control which takes the >>> control's short ID as a parameter. This has been working fine for a long >>> time >>> but has suddenly started to throw a run time error for one specific control. >>> >>> The statement "put the short name of control ID pid into myControlName" >>> where >>> id is the parameter containing the ID returns the error "No such Object near >>> "1076" (1076 is the control ID in pid). >>> >>> I can clearly see in the application browser and Inspector dialog that there >>> is a button with ID 1076 in a substack of the main stack. If I use the >>> message box to execute "put the short name of control ID 1076", I get the >>> same >>> error. But if I execute "put the short name of control ID 1076 of stack >>> ", I get the correct result. >>> >>> According to the dictionary, the ID of a control is unique within a main >>> stack >>> so I can't figure out why this doesn't work without qualifying the ID with >>> the >>> substack name. I tried putting an "answer information" right before the >>> offending line to display the defaultStack in case something strange was >>> happening to the defaultStack property but it is set to the correct stack >>> name. >>> >>> Any ideas? >>> >>> >>> Pete Haworth >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at mollysrevenge.com Fri Mar 25 17:27:38 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Fri, 25 Mar 2011 14:27:38 -0700 Subject: Control ID problem In-Reply-To: References: Message-ID: <31B85676-8C92-4170-8BB2-C67148B23112@mollysrevenge.com> Thanks. Yes, the long ID would be best - I wrote this code not long after starting to use LC and before I understood all the ramifications of IDs, layers, etc! I guess I'll go back and change all the calls to the function to pass the long ID instead of the short one. I'm still somewhat puzzled by this though. The value of the defaultStack property is correct right before the line that causes the error (I'm not setting it in my code, it's whatever LC put in there) so It's unclear as to why the error occurs. While waiting for ideas on this, I changed the code to refer to "control ID pid of stack the defaultStack" and that worked. On the face of it, it seems that the defaultStack setting isn't always taken into account unless specifically referred to like that. I'm tempted to report this as a bug? Pete Haworth On Mar 25, 2011, at 1:52 PM, Scott Rossi wrote: > Yes, setting the defaultStack to the name of the substack *should* work. > You may want to check that you're not inadvertently setting focus back to > the main stack somewhere in your scripts. > > Unless you're constantly changing stack names for some reason, IMO, you're > better off using the long ID of the control. That way you don't have to > worry about which stack is active or trying to qualify paths. Don't build > the control's path yourself, just store the long ID of the control in a > custom property of the main stack for example (ie the myImportantControl of > this stack). That way everything in your stacks will know where the control > is. > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX Design > > > Recently, Peter Haworth wrote: > >> Thanks Scott, that's a possibility, the stack in question is not the >> "front-most" one for sure. However, shouldn't the defaultStack property >> (which is set to the correct substack) taken care of that? Or is there some >> other property I can use to qualify the ID? Since this is a general purpose >> handler that could be called from anywhere in my app, I can't hard code a >> stack name in it >> >> Thanks, >> Pete Haworth >> >> On Mar 25, 2011, at 1:22 PM, Scott Rossi wrote: >> >>> The only thing I could guess is your substack is not the top stack. I don't >>> believe LC has ever known to automatically look in substacks for the >>> existence of controls. LC can have multiple stacks open simultaneously, and >>> can have controls of the same ID in different stacks, so unless the stack >>> with your desired control is front-most, or you use a full stack path, LC >>> won't know where your control is. >>> >>> Regards, >>> >>> Scott Rossi >>> Creative Director >>> Tactile Media, UX Design >>> >>> >>> >>> Recently, Peter Haworth wrote: >>> >>>> I have a function that returns information about a control which takes the >>>> control's short ID as a parameter. This has been working fine for a long >>>> time >>>> but has suddenly started to throw a run time error for one specific control. >>>> >>>> The statement "put the short name of control ID pid into myControlName" >>>> where >>>> id is the parameter containing the ID returns the error "No such Object near >>>> "1076" (1076 is the control ID in pid). >>>> >>>> I can clearly see in the application browser and Inspector dialog that there >>>> is a button with ID 1076 in a substack of the main stack. If I use the >>>> message box to execute "put the short name of control ID 1076", I get the >>>> same >>>> error. But if I execute "put the short name of control ID 1076 of stack >>>> ", I get the correct result. >>>> >>>> According to the dictionary, the ID of a control is unique within a main >>>> stack >>>> so I can't figure out why this doesn't work without qualifying the ID with >>>> the >>>> substack name. I tried putting an "answer information" right before the >>>> offending line to display the defaultStack in case something strange was >>>> happening to the defaultStack property but it is set to the correct stack >>>> name. >>>> >>>> Any ideas? >>>> >>>> >>>> Pete Haworth >>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription >>> preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From RevList at CreaTECHSol.com Fri Mar 25 17:53:18 2011 From: RevList at CreaTECHSol.com (RevList) Date: Fri, 25 Mar 2011 14:53:18 -0700 Subject: App Store Submission Certificate Invalid Message-ID: I have signed my app (Colour Palette) with the certificate that I got through the KeyChain certificate process using codesign and productBuild codesign -f -s "3rd Party Mac Developer Application: Stewart Lynch" /Users/slynch/Documents/Current\ Projects/Colour\ Palette/Colour\ Palette2/MacOSX/Colour\ Palette.app productbuild --component /Users/slynch/Documents/Current\ Projects/Colour\ Palette/Colour\ Palette2/MacOSX/Colour\ Palette.app /Applications --sign "3rd Party Mac Developer Application: Stewart Lynch" ColourPalette.pkg This all went without a hitch However, when I try sudo installer -store -pkg "ColourPalette.pkg" -target / The first line I get is: installer: Warning: ColourPalette.pkg was signed with a certificate that is not valid for store submission. Then I get some other lines taht indicate that the instalation check has passed However, does anyone have any idea why my certificate would not be valid. I followed the procedures exactly. ****************************************** Stewart Lynch CreaTECH Solutions slynch at CreaTECHSol.com 604.484.8499 Skype:StewartLynch There are only 10 kinds of people. Those who understand binary and those who don't. ****************************************** From dunbarx at aol.com Fri Mar 25 17:57:54 2011 From: dunbarx at aol.com (dunbarx at aol.com) Date: Fri, 25 Mar 2011 17:57:54 -0400 Subject: Tab panels In-Reply-To: <4D8CD52A.8030808@hyperactivesw.com> References: <20101120180003.9994548A850@mail.runrev.com> <4D8CD52A.8030808@hyperactivesw.com> Message-ID: <8CDB94ED3C36AB1-194-6053@webmail-stg-d15.sysops.aol.com> I have tried this in the tabmenu script: on mouseUp if the clickHistory of me = the menuhistory of me then send menupick && the clickhistory of me to me set the clickHistory of me to the menuhistory of me end mouseUp It checks to see if the same tab has been clicked by another route, mouseUp, instead of menuPick. If it is the same, it generates the menuPick message by hand. Craig Newman -----Original Message----- From: J. Landman Gay To: How to use LiveCode Sent: Fri, Mar 25, 2011 1:47 pm Subject: Re: Tab panels On 3/25/11 12:11 PM, James Hurley wrote: > In summary, is there any way to force the tab panel to receive a second > menupick message when it is already selected? If the menuhistory doesn't change, the tab panel doesn't bother to update itself. You might be able to hack it with something like this: -- assume tab button's history is currently at "1": lock screen lock messages set the menuhistory of btn "tabpanel" to 2 unlock messages set the menuhistory of btn "tabpanel" to 1 unlock screen Didn't try it though. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From coiin at verizon.net Fri Mar 25 18:57:42 2011 From: coiin at verizon.net (Colin Holgate) Date: Fri, 25 Mar 2011 18:57:42 -0400 Subject: App Store Submission Certificate Invalid In-Reply-To: References: Message-ID: <953E987F-D859-4F20-BC3D-0DEE9C3B3FFC@verizon.net> I don't know what your problem will turn out to be, but this product seemed an interesting one, maybe worth a $3 investment: http://itunes.apple.com/us/app/product-builder/id421614213?mt=12 From pete at mollysrevenge.com Fri Mar 25 19:12:19 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Fri, 25 Mar 2011 16:12:19 -0700 Subject: Control ID problem - even stranger In-Reply-To: References: Message-ID: <45BC860F-8604-4E8E-9FE7-C123802DB70B@mollysrevenge.com> While looking into this further, I have discovered what I think is another anomaly. I have two substacks of the same main stack with one card in each one. Each card has one group on it - the two groups have the same short ID. The dictionary says that IDs "are guaranteed to be unique within a stack" - I had assumed that no two controls within the same stack file could have the same ID but either that's not true or there's a bug somewhere that caused these two groups to have the same ID. At this point, I think I will delete all these substacks and start over to see if I still get the same issues. This is a test stack so not that many controls on them. Pete Haworth On Mar 25, 2011, at 1:52 PM, Scott Rossi wrote: > Yes, setting the defaultStack to the name of the substack *should* work. > You may want to check that you're not inadvertently setting focus back to > the main stack somewhere in your scripts. > > Unless you're constantly changing stack names for some reason, IMO, you're > better off using the long ID of the control. That way you don't have to > worry about which stack is active or trying to qualify paths. Don't build > the control's path yourself, just store the long ID of the control in a > custom property of the main stack for example (ie the myImportantControl of > this stack). That way everything in your stacks will know where the control > is. > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX Design > > > Recently, Peter Haworth wrote: > >> Thanks Scott, that's a possibility, the stack in question is not the >> "front-most" one for sure. However, shouldn't the defaultStack property >> (which is set to the correct substack) taken care of that? Or is there some >> other property I can use to qualify the ID? Since this is a general purpose >> handler that could be called from anywhere in my app, I can't hard code a >> stack name in it >> >> Thanks, >> Pete Haworth >> >> On Mar 25, 2011, at 1:22 PM, Scott Rossi wrote: >> >>> The only thing I could guess is your substack is not the top stack. I don't >>> believe LC has ever known to automatically look in substacks for the >>> existence of controls. LC can have multiple stacks open simultaneously, and >>> can have controls of the same ID in different stacks, so unless the stack >>> with your desired control is front-most, or you use a full stack path, LC >>> won't know where your control is. >>> >>> Regards, >>> >>> Scott Rossi >>> Creative Director >>> Tactile Media, UX Design >>> >>> >>> >>> Recently, Peter Haworth wrote: >>> >>>> I have a function that returns information about a control which takes the >>>> control's short ID as a parameter. This has been working fine for a long >>>> time >>>> but has suddenly started to throw a run time error for one specific control. >>>> >>>> The statement "put the short name of control ID pid into myControlName" >>>> where >>>> id is the parameter containing the ID returns the error "No such Object near >>>> "1076" (1076 is the control ID in pid). >>>> >>>> I can clearly see in the application browser and Inspector dialog that there >>>> is a button with ID 1076 in a substack of the main stack. If I use the >>>> message box to execute "put the short name of control ID 1076", I get the >>>> same >>>> error. But if I execute "put the short name of control ID 1076 of stack >>>> ", I get the correct result. >>>> >>>> According to the dictionary, the ID of a control is unique within a main >>>> stack >>>> so I can't figure out why this doesn't work without qualifying the ID with >>>> the >>>> substack name. I tried putting an "answer information" right before the >>>> offending line to display the defaultStack in case something strange was >>>> happening to the defaultStack property but it is set to the correct stack >>>> name. >>>> >>>> Any ideas? >>>> >>>> >>>> Pete Haworth >>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription >>> preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From scott at tactilemedia.com Fri Mar 25 19:30:07 2011 From: scott at tactilemedia.com (Scott Rossi) Date: Fri, 25 Mar 2011 16:30:07 -0700 Subject: Control ID problem - even stranger In-Reply-To: <45BC860F-8604-4E8E-9FE7-C123802DB70B@mollysrevenge.com> Message-ID: Peter: The expression "same stack" is key here. Substacks of a main stack are not the same stack. This is easy to test: create a new stack, add some substacks to it. If you drag a button into each of the substacks, the ID of each button should be 1004, and control ID numbering will start from that point, within each stack. This is why it's good to reference long IDs of controls, and make sure your stacks have unique names. Regards, Scott Rossi Creative Director Tactile Media, UX Design Recently, Peter Haworth wrote: > While looking into this further, I have discovered what I think is another > anomaly. I have two substacks of the same main stack with one card in each > one. Each card has one group on it - the two groups have the same short ID. > > The dictionary says that IDs "are guaranteed to be unique within a stack" - I > had assumed that no two controls within the same stack file could have the > same ID but either that's not true or there's a bug somewhere that caused > these two groups to have the same ID. > > At this point, I think I will delete all these substacks and start over to see > if I still get the same issues. This is a test stack so not that many > controls on them. > > Pete Haworth > > On Mar 25, 2011, at 1:52 PM, Scott Rossi wrote: > >> Yes, setting the defaultStack to the name of the substack *should* work. >> You may want to check that you're not inadvertently setting focus back to >> the main stack somewhere in your scripts. >> >> Unless you're constantly changing stack names for some reason, IMO, you're >> better off using the long ID of the control. That way you don't have to >> worry about which stack is active or trying to qualify paths. Don't build >> the control's path yourself, just store the long ID of the control in a >> custom property of the main stack for example (ie the myImportantControl of >> this stack). That way everything in your stacks will know where the control >> is. >> >> Regards, >> >> Scott Rossi >> Creative Director >> Tactile Media, UX Design >> >> >> Recently, Peter Haworth wrote: >> >>> Thanks Scott, that's a possibility, the stack in question is not the >>> "front-most" one for sure. However, shouldn't the defaultStack property >>> (which is set to the correct substack) taken care of that? Or is there some >>> other property I can use to qualify the ID? Since this is a general purpose >>> handler that could be called from anywhere in my app, I can't hard code a >>> stack name in it >>> >>> Thanks, >>> Pete Haworth >>> >>> On Mar 25, 2011, at 1:22 PM, Scott Rossi wrote: >>> >>>> The only thing I could guess is your substack is not the top stack. I >>>> don't >>>> believe LC has ever known to automatically look in substacks for the >>>> existence of controls. LC can have multiple stacks open simultaneously, >>>> and >>>> can have controls of the same ID in different stacks, so unless the stack >>>> with your desired control is front-most, or you use a full stack path, LC >>>> won't know where your control is. >>>> >>>> Regards, >>>> >>>> Scott Rossi >>>> Creative Director >>>> Tactile Media, UX Design From jimaultwins at yahoo.com Fri Mar 25 19:46:22 2011 From: jimaultwins at yahoo.com (Jim Ault) Date: Fri, 25 Mar 2011 16:46:22 -0700 Subject: Control ID problem - even stranger In-Reply-To: <45BC860F-8604-4E8E-9FE7-C123802DB70B@mollysrevenge.com> References: <45BC860F-8604-4E8E-9FE7-C123802DB70B@mollysrevenge.com> Message-ID: <956A6CDD-F5E3-46D0-85A5-A7019B94A169@yahoo.com> A stack file and a stack are not the same thing. There could be duplicate short id's, but not duplicate long id's. You need to be careful about making copies of stacks using 'Save As' and then defining them as substacks of the same main stack. This is a legal process, but LC does not scan objects to check for duplicate id's ( in this case, there would be 3 stacks that could have duplicate short id's, but not duplicate long id's ) The archives have numerous threads on this and related topics. There are definitely bugs in certain operations, especially when using images. Hope this helps. On Mar 25, 2011, at 4:12 PM, Peter Haworth wrote: > While looking into this further, I have discovered what I think is > another anomaly. I have two substacks of the same main stack with > one card in each one. Each card has one group on it - the two > groups have the same short ID. > > The dictionary says that IDs "are guaranteed to be unique within a > stack" - I had assumed that no two controls within the same stack > file could have the same ID but either that's not true or there's a > bug somewhere that caused these two groups to have the same ID. > > At this point, I think I will delete all these substacks and start > over to see if I still get the same issues. This is a test stack so > not that many controls on them. Jim Ault Las Vegas From pete at mollysrevenge.com Fri Mar 25 19:50:08 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Fri, 25 Mar 2011 16:50:08 -0700 Subject: Control ID problem - even stranger In-Reply-To: References: Message-ID: <102E1EA3-B14F-499B-9BDC-434BEB01F356@mollysrevenge.com> Thanks for the explanation Scott. I don't think this had anything to do with the original problem I had but I have to admit I was under the impression that control IDs were unique within a stack file, not within each (sub)stack within a stack file. Pete Haworth On Mar 25, 2011, at 4:30 PM, Scott Rossi wrote: > Peter: > > The expression "same stack" is key here. Substacks of a main stack are not > the same stack. This is easy to test: create a new stack, add some > substacks to it. If you drag a button into each of the substacks, the ID of > each button should be 1004, and control ID numbering will start from that > point, within each stack. > > This is why it's good to reference long IDs of controls, and make sure your > stacks have unique names. > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX Design > > > > > > Recently, Peter Haworth wrote: > >> While looking into this further, I have discovered what I think is another >> anomaly. I have two substacks of the same main stack with one card in each >> one. Each card has one group on it - the two groups have the same short ID. >> >> The dictionary says that IDs "are guaranteed to be unique within a stack" - I >> had assumed that no two controls within the same stack file could have the >> same ID but either that's not true or there's a bug somewhere that caused >> these two groups to have the same ID. >> >> At this point, I think I will delete all these substacks and start over to see >> if I still get the same issues. This is a test stack so not that many >> controls on them. >> >> Pete Haworth >> >> On Mar 25, 2011, at 1:52 PM, Scott Rossi wrote: >> >>> Yes, setting the defaultStack to the name of the substack *should* work. >>> You may want to check that you're not inadvertently setting focus back to >>> the main stack somewhere in your scripts. >>> >>> Unless you're constantly changing stack names for some reason, IMO, you're >>> better off using the long ID of the control. That way you don't have to >>> worry about which stack is active or trying to qualify paths. Don't build >>> the control's path yourself, just store the long ID of the control in a >>> custom property of the main stack for example (ie the myImportantControl of >>> this stack). That way everything in your stacks will know where the control >>> is. >>> >>> Regards, >>> >>> Scott Rossi >>> Creative Director >>> Tactile Media, UX Design >>> >>> >>> Recently, Peter Haworth wrote: >>> >>>> Thanks Scott, that's a possibility, the stack in question is not the >>>> "front-most" one for sure. However, shouldn't the defaultStack property >>>> (which is set to the correct substack) taken care of that? Or is there some >>>> other property I can use to qualify the ID? Since this is a general purpose >>>> handler that could be called from anywhere in my app, I can't hard code a >>>> stack name in it >>>> >>>> Thanks, >>>> Pete Haworth >>>> >>>> On Mar 25, 2011, at 1:22 PM, Scott Rossi wrote: >>>> >>>>> The only thing I could guess is your substack is not the top stack. I >>>>> don't >>>>> believe LC has ever known to automatically look in substacks for the >>>>> existence of controls. LC can have multiple stacks open simultaneously, >>>>> and >>>>> can have controls of the same ID in different stacks, so unless the stack >>>>> with your desired control is front-most, or you use a full stack path, LC >>>>> won't know where your control is. >>>>> >>>>> Regards, >>>>> >>>>> Scott Rossi >>>>> Creative Director >>>>> Tactile Media, UX Design > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jhurley0305 at sbcglobal.net Fri Mar 25 21:12:45 2011 From: jhurley0305 at sbcglobal.net (James Hurley) Date: Fri, 25 Mar 2011 18:12:45 -0700 Subject: Tab panels In-Reply-To: References: Message-ID: <7D97E3CB-BEF1-48F9-B2AA-D360023344F6@sbcglobal.net> Thanks everyone. You always come through. You have taught me a new property: MenuHistory I have found the following works for me. In place of the "MenuPick" handler I used only a "mouseUP" handler. (The TabMenu object handles all the highlighting chores.) on mouseUp put the menuhistory of me into tNum put "Task" & tNum into tName send tName to me in 0 millisec end mouseUp on task1 answer "Taskone" end task1 on task2 answer "TaskTwo" end task2 on task3 answer "TaskThree" end task3 Or, more simply: Get the "text" of the TabMenu and run that line. (I haven't tried this.) on mouseUp put the menuhistory of me into tNum put line tNum of the text of me into tTask switch tTask case whatever etc. break etc. end switch end mouseUp I would try this, but the power is out for the fourth time this year due to heavy snow. Don't believe everything you hear about California. I'm running on a generator, and borrowed time. Jim From RevList at CreaTECHSol.com Fri Mar 25 22:04:53 2011 From: RevList at CreaTECHSol.com (RevList) Date: Fri, 25 Mar 2011 19:04:53 -0700 Subject: App Store Submission Certificate Invalid In-Reply-To: <953E987F-D859-4F20-BC3D-0DEE9C3B3FFC@verizon.net> References: <,> <953E987F-D859-4F20-BC3D-0DEE9C3B3FFC@verizon.net> Message-ID: How to use LiveCode on March 25, 2011 at 2:57 PM -0700 wrote: >I don't know what your problem will turn out to be, but this product seemed an interesting one, maybe worth a $3 investment: > >http://itunes.apple.com/us/app/product-builder/id421614213?mt=12 Thanks. That worked well for me after I got the right certificate :) Now, I am getting some errors and need to know if they are fatal, or if I am OK to submit. If fatal, how do I resolve? Can anyone help? 17inchLaptop:~ slynch$ sudo installer -store -pkg "ColourPalette.pkg" -target / installer: ColourPalette.pkg has valid signature for submission installer: Installation Check: Passed installer: Volume Check: Passed installer: Bundle com.createchsol.colourpalette will be relocated to /Users/slynch/Documents/Current Projects/Colour Palette/Colour Palette/MacOSX/Colour Palette.app installer: Starting install installer: Install 0.0% complete 2011-03-25 17:35:30.093 installer[20287:4207] PackageKit: *** Missing bundle identifier: /Library/Receipts/CC Audio Unit plug-in.pkg 2011-03-25 17:35:30.096 installer[20287:4207] PackageKit: *** Missing bundle identifier: /Library/Receipts/CC Support Files.pkg 2011-03-25 17:35:30.097 installer[20287:4207] PackageKit: *** Missing bundle identifier: /Library/Receipts/CC VST plug-in.pkg 2011-03-25 17:35:30.098 installer[20287:4207] PackageKit: *** Missing bundle identifier: /Library/Receipts/Citrix ICA Client.pkg 2011-03-25 17:35:30.100 installer[20287:4207] PackageKit: *** Missing bundle identifier: /Library/Receipts/CPDEMO Audio Unit plug-in.pkg 2011-03-25 17:35:30.101 installer[20287:4207] PackageKit: *** Missing bundle identifier: /Library/Receipts/CPDEMO Support Files.pkg 2011-03-25 17:35:30.102 installer[20287:4207] PackageKit: *** Missing bundle identifier: /Library/Receipts/CPDEMO VST plug-in.pkg 2011-03-25 17:35:30.103 installer[20287:4207] PackageKit: *** Missing bundle identifier: /Library/Receipts/CSDEMO Audio Unit plug-in.pkg 2011-03-25 17:35:30.104 installer[20287:4207] PackageKit: *** Missing bundle identifier: /Library/Receipts/CSDEMO Support Files.pkg 2011-03-25 17:35:30.106 installer[20287:4207] PackageKit: *** Missing bundle identifier: /Library/Receipts/CSDEMO VST plug-in.pkg 2011-03-25 17:35:30.107 installer[20287:4207] PackageKit: *** Missing bundle identifier: /Library/Receipts/Flip4Mac QuickTime Components.pkg 2011-03-25 17:35:30.108 installer[20287:4207] PackageKit: *** Missing bundle identifier: /Library/Receipts/Flip4Mac Web Plugins.pkg installer: Install 9.1% complete installer: Install 16.7% complete installer: Install 23.1% complete installer: Install 28.6% complete installer: Install 100.0% complete installer: Finished install ****************************************** Stewart Lynch CreaTECH Solutions slynch at CreaTECHSol.com 604.484.8499 Skype:StewartLynch There are only 10 kinds of people. Those who understand binary and those who don't. ****************************************** From mwieder at ahsoftware.net Fri Mar 25 22:08:24 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Fri, 25 Mar 2011 19:08:24 -0700 Subject: revWeb revlets broken in Firefox 4.0? In-Reply-To: <4D8CCEC9.6070802@ucsd.edu> References: <4D8CCEC9.6070802@ucsd.edu> Message-ID: <179283214437.20110325190824@ahsoftware.net> Rich- Friday, March 25, 2011, 10:20:09 AM, you wrote: > Are revWeb revlets broken in Firefox 4.0? Just upgraded to Firefox 4.0 > on Mac 10.5.8. Get error message when going to a revlet: "There was an > error loading the revlet - failed to stream revlet." Works OK with > Safari 5.0.4 and worked OK with earlier Firefox on same Mac. I had Firefox 4.0 on my system for all of about 30 seconds. Almost none of my plugins were compatible, so I went back to 3.6.16. -- -Mark Wieder mwieder at ahsoftware.net From psahores at free.fr Sat Mar 26 07:53:43 2011 From: psahores at free.fr (Pierre Sahores) Date: Sat, 26 Mar 2011 12:53:43 +0100 Subject: revserver conf for opensuse 10.4 in 3 lines ! Message-ID: Hi All, opensuse 10.4 64 bits is a perfect platform for revserver ! To setup revserver against apache2, 1.- we just have to modify or add three lines to /etc/apache2/edefault-server.conf : Options Indexes Includes ExecCGI MultiView AddHandler irev-script .irev Action irev-script /cgi-bin/revserver 2.- put the revserver engine and its three dependancies directories in the /srv/www/htdocs/cgi-bin/ directory 3.- set the permissions of the revserver engine to 755 4.- use ldd under bash as root to test the revserver libs dependancies and install the missing ones (via Yast2) if needed 5.- stick an index.irev test file in the /srv/www/htdocs/ directory () and that's all ;-) Kind Regards, -- Pierre Sahores mobile : (33) 6 03 95 77 70 www.woooooooords.com www.sahores-conseil.com From pepetoo at cox.net Sun Mar 27 01:02:32 2011 From: pepetoo at cox.net (Joe Lewis Wilkins) Date: Sat, 26 Mar 2011 22:02:32 -0700 Subject: test Message-ID: <9EB2E4DD-E0AB-4E35-99C7-47B286BE4374@cox.net> just a test Joe Lewis Wilkins Architect & Director of Product Development for GSI From keith.clarke at clarkeandclarke.co.uk Sun Mar 27 06:55:15 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Sun, 27 Mar 2011 11:55:15 +0100 Subject: Is HTML text string within current scrolling visible area of browser window? Message-ID: <624DA525-B329-4ECA-A704-CB179CC08824@clarkeandclarke.co.uk> Hi folks, Can anyone help me with the correct terms to seed my Google search? I'm trying to discover whether it's possible to check programmatically (maybe with Javascript, Jquery, etc.) whether a specific element on a web page (that is readable from the page HTML), such as a specific div, tag or string, is currently within the visible rendered page area of a browser window with a (vertical) scroll bar. Otherwise, if it's a specific page - with a known layout and therefore calculable coordinates for the element to find - is it possible to know how the browser window's current size and scroll offset relate to the 'underlying' page? TIA, Keith.. From jimaultwins at yahoo.com Sun Mar 27 09:29:52 2011 From: jimaultwins at yahoo.com (Jim Ault) Date: Sun, 27 Mar 2011 06:29:52 -0700 Subject: Is HTML text string within current scrolling visible area of browser window? In-Reply-To: <624DA525-B329-4ECA-A704-CB179CC08824@clarkeandclarke.co.uk> References: <624DA525-B329-4ECA-A704-CB179CC08824@clarkeandclarke.co.uk> Message-ID: <7B084B57-63B0-43C4-B640-545C3B730A2D@yahoo.com> On Mar 27, 2011, at 3:55 AM, Keith Clarke wrote: > Hi folks, > Can anyone help me with the correct terms to seed my Google search? > > I'm trying to discover whether it's possible to check > programmatically (maybe with Javascript, Jquery, etc.) whether a > specific element on a web page (that is readable from the page > HTML), such as a specific div, tag or string, is currently within > the visible rendered page area of a browser window with a (vertical) > scroll bar. > > Otherwise, if it's a specific page - with a known layout and > therefore calculable coordinates for the element to find - is it > possible to know how the browser window's current size and scroll > offset relate to the 'underlying' page? This calculation is the same for all browsers, except that IE does not follow the same metrics calculations, and, of course, it is different with in versions of IE. offsetLeft & offsetTop < HTML DOM http://www.w3schools.com/jsref/dom_obj_all.asp pageX & pageY < window scroll http://www.w3schools.com/jsref/prop_win_pagexoffset.asp Also, 'position' is the keyword for CSS JQuery go to http://visualjquery.com/ (which is a very cool page by Remy Sharp) Enter the letter 'O' into the filter box and click on the 'offset' button that appears. You will see an example calculation. Of course, 'location' refers to the URL of the content, not page layout. I just saw a javascript routine that does the calculation based on browser-detection a couple days ago, but can't remember exactly where it is. If you need more info, I could try to find it. Let me know. Jim Ault Las Vegas From jimaultwins at yahoo.com Sun Mar 27 09:57:23 2011 From: jimaultwins at yahoo.com (Jim Ault) Date: Sun, 27 Mar 2011 06:57:23 -0700 Subject: Is HTML text string within current scrolling visible area of browser window? In-Reply-To: <624DA525-B329-4ECA-A704-CB179CC08824@clarkeandclarke.co.uk> References: <624DA525-B329-4ECA-A704-CB179CC08824@clarkeandclarke.co.uk> Message-ID: <306B4D67-9DC1-4420-8817-283F7D34A206@yahoo.com> On Mar 27, 2011, at 3:55 AM, Keith Clarke wrote: > Hi folks, > Can anyone help me with the correct terms to seed my Google search? > > I'm trying to discover whether it's possible to check > programmatically (maybe with Javascript, Jquery, etc.) whether a > specific element on a web page (that is readable from the page > HTML), such as a specific div, tag or string, is currently within > the visible rendered page area of a browser window with a (vertical) > scroll bar. > > Otherwise, if it's a specific page - with a known layout and > therefore calculable coordinates for the element to find - is it > possible to know how the browser window's current size and scroll > offset relate to the 'underlying' page? This is a link to a page that gives a detailed javascript answer, including sample code for calculating based on browser quirks. It is a good read. http://bit.ly/i00upp (you should be able to see the entire discussion before being limited to a preview. Let me know if you have problems) Jim Ault Las Vegas From keith.clarke at clarkeandclarke.co.uk Sun Mar 27 10:42:43 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Sun, 27 Mar 2011 15:42:43 +0100 Subject: Is HTML text string within current scrolling visible area of browser window? In-Reply-To: <7B084B57-63B0-43C4-B640-545C3B730A2D@yahoo.com> References: <624DA525-B329-4ECA-A704-CB179CC08824@clarkeandclarke.co.uk> <7B084B57-63B0-43C4-B640-545C3B730A2D@yahoo.com> Message-ID: Hi Jim, Thanks for the response and the pointers. Good to know that some discovery can be achieved algorithmically - my dream is still alive! Thanks also for the specific pointers - more for the research list. Best, Keith.. On 27 Mar 2011, at 14:29, Jim Ault wrote: > > On Mar 27, 2011, at 3:55 AM, Keith Clarke wrote: > >> Hi folks, >> Can anyone help me with the correct terms to seed my Google search? >> >> I'm trying to discover whether it's possible to check programmatically (maybe with Javascript, Jquery, etc.) whether a specific element on a web page (that is readable from the page HTML), such as a specific div, tag or string, is currently within the visible rendered page area of a browser window with a (vertical) scroll bar. >> >> Otherwise, if it's a specific page - with a known layout and therefore calculable coordinates for the element to find - is it possible to know how the browser window's current size and scroll offset relate to the 'underlying' page? > > > > This calculation is the same for all browsers, except that > IE does not follow the same metrics calculations, and, of course, it is different with in versions of IE. > > > offsetLeft & offsetTop < HTML DOM > http://www.w3schools.com/jsref/dom_obj_all.asp > > pageX & pageY < window scroll > http://www.w3schools.com/jsref/prop_win_pagexoffset.asp > > Also, 'position' is the keyword for CSS > > JQuery > go to http://visualjquery.com/ (which is a very cool page by Remy Sharp) > Enter the letter 'O' into the filter box and click on the 'offset' button that appears. > You will see an example calculation. > > Of course, 'location' refers to the URL of the content, not page layout. > > I just saw a javascript routine that does the calculation based on browser-detection a couple days ago, but can't remember exactly where it is. If you need more info, I could try to find it. Let me know. > > > Jim Ault > Las Vegas > From keith.clarke at clarkeandclarke.co.uk Sun Mar 27 10:44:16 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Sun, 27 Mar 2011 15:44:16 +0100 Subject: Is HTML text string within current scrolling visible area of browser window? In-Reply-To: <306B4D67-9DC1-4420-8817-283F7D34A206@yahoo.com> References: <624DA525-B329-4ECA-A704-CB179CC08824@clarkeandclarke.co.uk> <306B4D67-9DC1-4420-8817-283F7D34A206@yahoo.com> Message-ID: <70EA1A62-D027-44EC-974A-C0F18C2DD3A7@clarkeandclarke.co.uk> ...thanks again, Jim - I'll study that option, too. Best, Keith.. On 27 Mar 2011, at 14:57, Jim Ault wrote: >> I'm trying to discover whether it's possible to check programmatically (maybe with Javascript, Jquery, etc.) whether a specific element on a web page (that is readable from the page HTML), such as a specific div, tag or string, is currently within the visible rendered page area of a browser window with a (vertical) scroll bar. >> >> Otherwise, if it's a specific page - with a known layout and therefore calculable coordinates for the element to find - is it possible to know how the browser window's current size and scroll offset relate to the 'underlying' page? > > This is a link to a page that gives a detailed javascript answer, including sample code for calculating based on browser quirks. > It is a good read. > > http://bit.ly/i00upp > > (you should be able to see the entire discussion before being limited to a preview. Let me know if you have problems) > > > Jim Ault > Las Vegas From richmondmathewson at gmail.com Sun Mar 27 11:47:15 2011 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 27 Mar 2011 18:47:15 +0300 Subject: Expletive Deleted. Message-ID: <4D8F5C03.4020906@gmail.com> I am trying to find out how to implement char deletion in Unicode. I expected that: set unicodeText of the selectedText to numToChar(65288) or set unicodeText of the selectedText to numToChar(127) would do the trick; but they didn't . . . :( Has anybody run up against this problem before. ==================================== The root of the problem is that when an end-user executes cmd-z, expecting a char they have entered to be dleted, the world goes pear-shaped instead. From m.schonewille at economy-x-talk.com Sun Mar 27 12:09:27 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sun, 27 Mar 2011 18:09:27 +0200 Subject: Expletive Deleted. In-Reply-To: <4D8F5C03.4020906@gmail.com> References: <4D8F5C03.4020906@gmail.com> Message-ID: <566BBDFF-E7D2-4461-B711-0651D3F298A0@economy-x-talk.com> Richmond, Often I do things like set the unicodeText of fld x to char 1 to (word 2 of the selectedChunk - 1) of the unicodeText of fld x & myNewUnicodeText & char (word 4 of the selectedChunk + 1) to -1 of the unicodeText of fld x I don't know whether this still works in the latest verion of LC. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce On 27 mrt 2011, at 17:47, Richmond wrote: > I am trying to find out how to implement char deletion in Unicode. > > I expected that: > > set unicodeText of the selectedText to numToChar(65288) > > or > > set unicodeText of the selectedText to numToChar(127) > > would do the trick; but they didn't . . . :( > > Has anybody run up against this problem before. From richmondmathewson at gmail.com Sun Mar 27 12:12:46 2011 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 27 Mar 2011 19:12:46 +0300 Subject: Expletive Deleted. In-Reply-To: <566BBDFF-E7D2-4461-B711-0651D3F298A0@economy-x-talk.com> References: <4D8F5C03.4020906@gmail.com> <566BBDFF-E7D2-4461-B711-0651D3F298A0@economy-x-talk.com> Message-ID: <4D8F61FE.2060702@gmail.com> On 03/27/2011 07:09 PM, Mark Schonewille wrote: > Richmond, > > Often I do things like > > set the unicodeText of fld x to char 1 to (word 2 of the selectedChunk - 1) of the unicodeText of fld x& myNewUnicodeText& char (word 4 of the selectedChunk + 1) to -1 of the unicodeText of fld x > > I don't know whether this still works in the latest verion of LC. Thanks Mark; I'll try that. As I am working with Runtime Revolution Studio 4.0 the last part of your message does not fuss me . . . :) > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce > > On 27 mrt 2011, at 17:47, Richmond wrote: > >> I am trying to find out how to implement char deletion in Unicode. >> >> I expected that: >> >> set unicodeText of the selectedText to numToChar(65288) >> >> or >> >> set unicodeText of the selectedText to numToChar(127) >> >> would do the trick; but they didn't . . . :( >> >> Has anybody run up against this problem before. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From coiin at verizon.net Sun Mar 27 12:14:54 2011 From: coiin at verizon.net (Colin Holgate) Date: Sun, 27 Mar 2011 12:14:54 -0400 Subject: Expletive Deleted. In-Reply-To: <4D8F5C03.4020906@gmail.com> References: <4D8F5C03.4020906@gmail.com> Message-ID: <5C8B4A61-60A9-4313-BC32-A056FBE6EFEE@verizon.net> Either one of your ideas is working ok for me. How are you testing? From richmondmathewson at gmail.com Sun Mar 27 12:24:17 2011 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 27 Mar 2011 19:24:17 +0300 Subject: Expletive Deleted. In-Reply-To: <5C8B4A61-60A9-4313-BC32-A056FBE6EFEE@verizon.net> References: <4D8F5C03.4020906@gmail.com> <5C8B4A61-60A9-4313-BC32-A056FBE6EFEE@verizon.net> Message-ID: <4D8F64B1.4090209@gmail.com> On 03/27/2011 07:14 PM, Colin Holgate wrote: > Either one of your ideas is working ok for me. How are you testing? > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode on mouseUp set th useUnicode to true set the useUnicodeText of the selectedText to numToChar(65288) select after the selectedText end mouseUp crashes LIvecode. From richmondmathewson at gmail.com Sun Mar 27 12:29:25 2011 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 27 Mar 2011 19:29:25 +0300 Subject: Expletive Deleted. In-Reply-To: <566BBDFF-E7D2-4461-B711-0651D3F298A0@economy-x-talk.com> References: <4D8F5C03.4020906@gmail.com> <566BBDFF-E7D2-4461-B711-0651D3F298A0@economy-x-talk.com> Message-ID: <4D8F65E5.5090707@gmail.com> on mouseUp put the number of chars in fld "TESTEXT" into CHARZ put (CHARZ - 2) into HARZ set the unicodeText of fld "TESTEXT" to char 1 to HARZ of fld "TESTEXT" end mouseUp works very well indeed (chopping off 2 because this is unicodeText) deleting text from the end of the string. The problem is how to get this to work just before an insertion point which is NOT at the end of the string. From coiin at verizon.net Sun Mar 27 12:41:51 2011 From: coiin at verizon.net (Colin Holgate) Date: Sun, 27 Mar 2011 12:41:51 -0400 Subject: Expletive Deleted. In-Reply-To: <4D8F64B1.4090209@gmail.com> References: <4D8F5C03.4020906@gmail.com> <5C8B4A61-60A9-4313-BC32-A056FBE6EFEE@verizon.net> <4D8F64B1.4090209@gmail.com> Message-ID: <83263C5D-36D8-4AD8-A27E-72D57B17E256@verizon.net> On Mar 27, 2011, at 12:24 PM, Richmond wrote: > on mouseUp > set th useUnicode to true > set the useUnicodeText of the selectedText to numToChar(65288) > select after the selectedText > end mouseUp Is it possible you're doing it in a too complicated way? Here's my script, which also leaves the insertion point where the text used to be: on mouseUp set the unicodeText of the selectedText to numToChar(65288) end mouseUp From richmondmathewson at gmail.com Sun Mar 27 12:44:35 2011 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 27 Mar 2011 19:44:35 +0300 Subject: Expletive Deleted. In-Reply-To: <83263C5D-36D8-4AD8-A27E-72D57B17E256@verizon.net> References: <4D8F5C03.4020906@gmail.com> <5C8B4A61-60A9-4313-BC32-A056FBE6EFEE@verizon.net> <4D8F64B1.4090209@gmail.com> <83263C5D-36D8-4AD8-A27E-72D57B17E256@verizon.net> Message-ID: <4D8F6973.4020600@gmail.com> On 03/27/2011 07:41 PM, Colin Holgate wrote: > On Mar 27, 2011, at 12:24 PM, Richmond wrote: > >> on mouseUp >> set th useUnicode to true >> set the useUnicodeText of the selectedText to numToChar(65288) >> select after the selectedText >> end mouseUp > > Is it possible you're doing it in a too complicated way? Here's my script, which also leaves the insertion point where the text used to be: > > on mouseUp > set the unicodeText of the selectedText to numToChar(65288) > end mouseUp > > _______________________________________________ For some queer reason nothing happens with that. From coiin at verizon.net Sun Mar 27 13:18:40 2011 From: coiin at verizon.net (Colin Holgate) Date: Sun, 27 Mar 2011 13:18:40 -0400 Subject: Expletive Deleted. In-Reply-To: <4D8F6973.4020600@gmail.com> References: <4D8F5C03.4020906@gmail.com> <5C8B4A61-60A9-4313-BC32-A056FBE6EFEE@verizon.net> <4D8F64B1.4090209@gmail.com> <83263C5D-36D8-4AD8-A27E-72D57B17E256@verizon.net> <4D8F6973.4020600@gmail.com> Message-ID: <00B7521F-3FFA-4686-8E88-0538AAB8E324@verizon.net> On Mar 27, 2011, at 12:44 PM, Richmond wrote: > For some queer reason nothing happens with that. Where is the mouseup handler? In my case is was in a button. You could have it in the field too, but it would need a right mouse click to make the text disappear. From jimaultwins at yahoo.com Sun Mar 27 14:50:12 2011 From: jimaultwins at yahoo.com (Jim Ault) Date: Sun, 27 Mar 2011 11:50:12 -0700 Subject: Is HTML text string within current scrolling visible area of browser window? In-Reply-To: References: <624DA525-B329-4ECA-A704-CB179CC08824@clarkeandclarke.co.uk> <7B084B57-63B0-43C4-B640-545C3B730A2D@yahoo.com> Message-ID: On Mar 27, 2011, at 7:42 AM, Keith Clarke wrote: > Hi Jim, > Thanks for the response and the pointers. Good to know that some > discovery can be achieved algorithmically - my dream is still alive! You can also use 'marker' tags to add tiny elements that have id's then just check to see if those are 'in view' rather than do a lot of calc/compare steps on larger elements that can be dynamic. Jim Ault Las Vegas From dan at clearvisiontech.com Sun Mar 27 15:05:27 2011 From: dan at clearvisiontech.com (Dan Friedman) Date: Sun, 27 Mar 2011 12:05:27 -0700 Subject: OT: PHP Assist In-Reply-To: References: Message-ID: Gentlemen, My goal is to upload compressed data to a file on a sever. I don't want to use ftp. So, I am trying to use a php script. I am getting Rev to POST the data, and I have a PHP script on my server that is writing the data. The problem is that the data that is written is incorrect. Not really sure if it's corrupted or if it's being wrapped with something or what. I think I am POSTing the data correctly and the problem is in the PHP. But, I could be wrong (wouldn't be the first time!). Any assistance anyone has would be GREATLY appreciated! Here is my script from LiveCode: put "" into tPostData if libUrlMultipartFormData(tPostData,"DID",getDID(),"TID",sTeacherID) is not "" then --there was an error. deal with it. else set the httpHeaders to line 1 of tPostData delete line 1 of tPostData if libUrlMultipartFormAddPart(tPostData,"TDATA",rctDataToWrite,"application/binary","binary") is not "" then --there was an error. deal with it. else put "http://www.myserver.com/folder1/saveData.php" into phpAddress post tPostData to url phpAddress end if end if Here is my php script: Again, any assistance anyone has would be GREATLY appreciated! -Dan From pete at mollysrevenge.com Sun Mar 27 15:27:18 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Sun, 27 Mar 2011 12:27:18 -0700 Subject: Control ID problem In-Reply-To: References: Message-ID: <1169B2E0-F899-47B2-AC36-5F74CA0419E8@mollysrevenge.com> I've made the changes necessary to use long IDs in my application as suggested by Scott. For my own eduction though, I'd like to understand how the defaultStack property is used. As a refresher, the following statement is being rejected with an error that it can't find the control: "put the short name of control ID pid into myName" (where pid is a short ID of the control) Immediately before executing the above command, The defaultStack property contains the name of the stack containing the control. If I refer to the control as "control ID of stack the defaultStack" , the statement executes successfully. So my questions are: - When is the defaultStack property taken into account when referencing a control? - When the defaultStack property is not used, which stack is assumed and is there a property that refers to it? Thanks for any enlightenment. Pete Haworth On Mar 25, 2011, at 1:52 PM, Scott Rossi wrote: > Yes, setting the defaultStack to the name of the substack *should* work. > You may want to check that you're not inadvertently setting focus back to > the main stack somewhere in your scripts. From keith.clarke at clarkeandclarke.co.uk Sun Mar 27 15:27:36 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Sun, 27 Mar 2011 20:27:36 +0100 Subject: Is HTML text string within current scrolling visible area of browser window? In-Reply-To: References: <624DA525-B329-4ECA-A704-CB179CC08824@clarkeandclarke.co.uk> <7B084B57-63B0-43C4-B640-545C3B730A2D@yahoo.com> Message-ID: <5D73ECF5-CF9D-4AE0-9DB5-272832F9EBE7@clarkeandclarke.co.uk> Jim, you've pretty much hit the nail on the head, here. That's exactly what I want to do - except that as I don't control the page source, I can't insert marker tags or strings of my own. However, there are unique strings that I know will be present on specific pages. So, if I could do a simple check of whether they are 'in view' in the scrolling browser window, I'd be very happy. Is there a magic bit of technical jargon that I could use in place of 'in view' to tempt Google to be more forthcoming on what's involved? Thanks again, Keith.. On 27 Mar 2011, at 19:50, Jim Ault wrote: > You can also use 'marker' tags to add tiny elements that have id's > then just check to see if those are 'in view' rather than do a lot of calc/compare steps on larger elements that can be dynamic. > From richmondmathewson at gmail.com Sun Mar 27 15:46:13 2011 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 27 Mar 2011 22:46:13 +0300 Subject: Public Beta. Message-ID: <4D8F9405.2060309@gmail.com> Here we are at last; or, at least, here I am . . . :) Public Betas; or put another way; 30 day time limited standalones for MacPPC, MacINTEL and Windows of my Devawriter Pro: http://andregarzia.on-rev.com/richmond/PRO/TESTERS/MacINTEL.zip http://andregarzia.on-rev.com/richmond/PRO/TESTERS/MacPPC.zip http://andregarzia.on-rev.com/richmond/PRO/TESTERS/Windows.zip Please feel free to download them, play with them, and, if you are feeling a bit generous, let me have some feedback re the issues mentioned in the PDF document bundled in the zip files. This is the result of 18 months work in my spare time. sincerely, Richmond Mathewson. From stephenREVOLUTION2 at barncard.com Sun Mar 27 20:09:05 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Sun, 27 Mar 2011 17:09:05 -0700 Subject: OT: PHP Assist In-Reply-To: References: Message-ID: are you URLEncoding( the data after compression? On 27 March 2011 12:05, Dan Friedman wrote: > Gentlemen, > > My goal is to upload compressed data to a file on a sever. I don't want to > use ftp. So, I am trying to use a php script. I am getting Rev to POST the > data, and I have a PHP script on my server that is writing the data. The > problem is that the data that is written is incorrect. Not really sure if > it's corrupted or if it's being wrapped with something or what. I think I > am POSTing the data correctly and the problem is in the PHP. But, I could > be wrong (wouldn't be the first time!). Any assistance anyone has would be > GREATLY appreciated! > > Here is my script from LiveCode: > > put "" into tPostData > if libUrlMultipartFormData(tPostData,"DID",getDID(),"TID",sTeacherID) is > not "" then > --there was an error. deal with it. > > else > set the httpHeaders to line 1 of tPostData > delete line 1 of tPostData > if > libUrlMultipartFormAddPart(tPostData,"TDATA",rctDataToWrite,"application/binary","binary") > is not "" then > --there was an error. deal with it. > > else > put "http://www.myserver.com/folder1/saveData.php" into phpAddress > post tPostData to url phpAddress > end if > end if > > Here is my php script: > > > $dCode = $_POST["DID"]; //the DCode > $sTeacherID = $_POST["TID"]; //the Teacher ID Number > $theData = $_POST["TDATA"]; //the compressed data to write > > //construct file path > $sFileName = $dCode . "/someFolder/" . $sTeacherID . ".rct"; > > if (is_writable($sFileName)) { > if (!$handle = fopen($sFileName, 'wb')) { > echo "ERROR 100: Cannot open file."; > exit; > } > > // Write $theData to the file. > if (fwrite($handle, $theData) === FALSE) { > echo "ERROR 101: Cannot write to file."; > exit; > } > > echo "Success, wrote ($theData) to file ($sFileName)"; > > //close the file > fclose($handle); > > } else { > echo "ERROR 102: The file is not writable ($sFileName)."; > } > ?> > > > Again, any assistance anyone has would be GREATLY appreciated! > > -Dan > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Stephen Barncard San Francisco Ca. USA more about sqb From jimaultwins at yahoo.com Sun Mar 27 20:25:11 2011 From: jimaultwins at yahoo.com (Jim Ault) Date: Sun, 27 Mar 2011 17:25:11 -0700 Subject: Is HTML text string within current scrolling visible area of browser window? In-Reply-To: <5D73ECF5-CF9D-4AE0-9DB5-272832F9EBE7@clarkeandclarke.co.uk> References: <624DA525-B329-4ECA-A704-CB179CC08824@clarkeandclarke.co.uk> <7B084B57-63B0-43C4-B640-545C3B730A2D@yahoo.com> <5D73ECF5-CF9D-4AE0-9DB5-272832F9EBE7@clarkeandclarke.co.uk> Message-ID: <610B339E-A108-49CB-9B54-FBD8230C8698@yahoo.com> On Mar 27, 2011, at 12:27 PM, Keith Clarke wrote: > Jim, you've pretty much hit the nail on the head, here. That's > exactly what I want to do - except that as I don't control the page > source, I can't insert marker tags or strings of my own. However, > there are unique strings that I know will be present on specific > pages. So, if I could do a simple check of whether they are 'in > view' in the scrolling browser window, I'd be very happy. > > Is there a magic bit of technical jargon that I could use in place > of 'in view' to tempt Google to be more forthcoming on what's > involved? > you are getting pretty much into the land of 'private published specialty material' By that I mean that your topic will be something discussed by an author in one of his books, rather than covered where Google can index it. You can try 'not hidden' or 'visible' I don't know your time frame, but you could visit the sites of a few JQuery gurus, etc and ask the question directly. Another source is a JavaScript or JQuery forum where the moderators will know or point you in the right direction. A third idea is to join one of the LISTSERV groups. These threads aren't usually indexed by Google since they are strictly email based and not picked up by Gmane, etc. You can search/join here http://www.lsoft.com/lists/listref.html Hope this helps. Jim Ault Las Vegas From bonnmike at gmail.com Sun Mar 27 22:35:30 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 27 Mar 2011 20:35:30 -0600 Subject: Is HTML text string within current scrolling visible area of browser window? In-Reply-To: <610B339E-A108-49CB-9B54-FBD8230C8698@yahoo.com> References: <624DA525-B329-4ECA-A704-CB179CC08824@clarkeandclarke.co.uk> <7B084B57-63B0-43C4-B640-545C3B730A2D@yahoo.com> <5D73ECF5-CF9D-4AE0-9DB5-272832F9EBE7@clarkeandclarke.co.uk> <610B339E-A108-49CB-9B54-FBD8230C8698@yahoo.com> Message-ID: Might check here http://www.appelsiini.net/projects/viewport Looks interesting and looks like it might be what you're looking for. From jacque at hyperactivesw.com Sun Mar 27 23:24:35 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 27 Mar 2011 22:24:35 -0500 Subject: Control ID problem In-Reply-To: <1169B2E0-F899-47B2-AC36-5F74CA0419E8@mollysrevenge.com> References: <1169B2E0-F899-47B2-AC36-5F74CA0419E8@mollysrevenge.com> Message-ID: <4D8FFF73.2060808@hyperactivesw.com> On 3/27/11 2:27 PM, Peter Haworth wrote: > - When is the defaultStack property taken into account when > referencing a control? It should be as you expected. The control's reference should be evaluated in terms of the defaultstack. However... I just tried your original script statement and it fails no matter what the default stack is, or even if you don't bother setting the defaultstack at all. I.e., this fails even when the default stack is the current topstack, and there is only one stack open: put the name of control id 1 I think it's invalid syntax. These work: put the name of control 1 put the id of control 1 But any reference to "control id x" fails. So the issue isn't the defaultstack at all. >- When the defaultStack property is not used, > which stack is assumed and is there a property that refers to it? If no stack is specified as the default, the topstack is used. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From gerry.orkin at gmail.com Sun Mar 27 23:42:03 2011 From: gerry.orkin at gmail.com (Gerry) Date: Mon, 28 Mar 2011 14:42:03 +1100 Subject: No subject Message-ID: Has anyone got the new network reachability function to work in iOS? Contrary to page 34 of the new iOS release notes that come with LiveCode 4.6, I'm finding that the reachabilityInfo param of the reachabilityChanged command is empty when a network connection is present; the documentation claims that it should be empty when no connection is available. Has anyone tried this? Cheers Gerry From pete at mollysrevenge.com Mon Mar 28 01:53:56 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Sun, 27 Mar 2011 22:53:56 -0700 Subject: Control ID problem In-Reply-To: <4D8FFF73.2060808@hyperactivesw.com> References: <1169B2E0-F899-47B2-AC36-5F74CA0419E8@mollysrevenge.com> <4D8FFF73.2060808@hyperactivesw.com> Message-ID: <5FA07DE0-868B-4EDA-A93A-C6633FEC2E50@mollysrevenge.com> Thanks for trying this out. The syntax I had was "put the short name of control ID 1" and it works 99.9% of the time (assuming there is a control id 1), just not in this one circumstance that I haven't been able to track down so I'm not sure what the difference is between what you tried and what I was doing. I would have expected the defaultStack to work as you described but for some reason it didn't unless I specifically referred to the control as control ID 1 of stack the defaultStack. It's a moot point now though since I've ploughed through my application and changed all references to IDs to use long IDs instead, more reliable that way. The only thing I had to be wary of was that in a couple of places I am storing long IDs in custom properties and ran into the problem that the long IDs include the fully qualified path to the stack file. That's fine as along as I'm just running in the IDE but when I built a standalone, that caused major problems. I got around it by storing words 1 to -4 of the long ID to omit the stack file name at the end, kinda something between the abbrev name and the long name. Pete Haworth On Mar 27, 2011, at 8:24 PM, J. Landman Gay wrote: > On 3/27/11 2:27 PM, Peter Haworth wrote: >> - When is the defaultStack property taken into account when >> referencing a control? > > It should be as you expected. The control's reference should be evaluated in terms of the defaultstack. > > However... I just tried your original script statement and it fails no matter what the default stack is, or even if you don't bother setting the defaultstack at all. I.e., this fails even when the default stack is the current topstack, and there is only one stack open: > > put the name of control id 1 > > I think it's invalid syntax. These work: > > put the name of control 1 > put the id of control 1 > > But any reference to "control id x" fails. So the issue isn't the defaultstack at all. > >> - When the defaultStack property is not used, >> which stack is assumed and is there a property that refers to it? > > If no stack is specified as the default, the topstack is used. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From keith.clarke at clarkeandclarke.co.uk Mon Mar 28 03:08:45 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Mon, 28 Mar 2011 08:08:45 +0100 Subject: Is HTML text string within current scrolling visible area of browser window? In-Reply-To: References: <624DA525-B329-4ECA-A704-CB179CC08824@clarkeandclarke.co.uk> <7B084B57-63B0-43C4-B640-545C3B730A2D@yahoo.com> <5D73ECF5-CF9D-4AE0-9DB5-272832F9EBE7@clarkeandclarke.co.uk> <610B339E-A108-49CB-9B54-FBD8230C8698@yahoo.com> Message-ID: <48EAD012-FA8F-481D-A873-3A55EADFCFCA@clarkeandclarke.co.uk> Thanks Jim and Mike for the help. This jquery_viewport tool that Mike found looks very promising for my current project. The demo http://www.appelsiini.net/projects/viewport/3x2.html works OK (at least vertically) on Safari, which is all I need. So, I've downloaded this modified version from github https://github.com/NV/jquery_viewport It will be interesting to see how this works within my current project, which is using both 'standard' HTML/Javascript pages and revlets. I'll report back on progress. Best, Keith.. On 28 Mar 2011, at 03:35, Mike Bonner wrote: > Might check here http://www.appelsiini.net/projects/viewport > Looks interesting and looks > like it might be what you're looking for. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dave.cragg at lacscentre.co.uk Mon Mar 28 03:57:14 2011 From: dave.cragg at lacscentre.co.uk (Dave Cragg) Date: Mon, 28 Mar 2011 08:57:14 +0100 Subject: OT: PHP Assist In-Reply-To: References: Message-ID: On 27 Mar 2011, at 20:05, Dan Friedman wrote: > Gentlemen, > > My goal is to upload compressed data to a file on a sever. I don't want to use ftp. So, I am trying to use a php script. I am getting Rev to POST the data, and I have a PHP script on my server that is writing the data. The problem is that the data that is written is incorrect. Not really sure if it's corrupted or if it's being wrapped with something or what. I think I am POSTing the data correctly and the problem is in the PHP. But, I could be wrong (wouldn't be the first time!). Any assistance anyone has would be GREATLY appreciated! > > Here is my script from LiveCode: > > put "" into tPostData > if libUrlMultipartFormData(tPostData,"DID",getDID(),"TID",sTeacherID) is not "" then > --there was an error. deal with it. > > else > set the httpHeaders to line 1 of tPostData > delete line 1 of tPostData > if libUrlMultipartFormAddPart(tPostData,"TDATA",rctDataToWrite,"application/binary","binary") is not "" then > --there was an error. deal with it. > > else > put "http://www.myserver.com/folder1/saveData.php" into phpAddress > post tPostData to url phpAddress > end if > end if Does it make a difference if you use application/octet-stream instead of application/binary? Also, are there are any limits on the maximum post size in PHP that might affect things? Dave From keith.clarke at clarkeandclarke.co.uk Mon Mar 28 05:16:18 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Mon, 28 Mar 2011 10:16:18 +0100 Subject: Is HTML text string within current scrolling visible area of browser window? In-Reply-To: <610B339E-A108-49CB-9B54-FBD8230C8698@yahoo.com> References: <624DA525-B329-4ECA-A704-CB179CC08824@clarkeandclarke.co.uk> <7B084B57-63B0-43C4-B640-545C3B730A2D@yahoo.com> <5D73ECF5-CF9D-4AE0-9DB5-272832F9EBE7@clarkeandclarke.co.uk> <610B339E-A108-49CB-9B54-FBD8230C8698@yahoo.com> Message-ID: <49AB37DD-81DC-4671-BE35-07038D2315B4@clarkeandclarke.co.uk> Thanks, Jim - and a good tip regarding accessing listserv groups. I didn't find any jquery-specific entries via the search, but I think I have a direction now - your previous suggestions and Mike's discovery of jquery-viewport have provided plenty of research and experimentation threads to follow-up. Best, Keith.. On 28 Mar 2011, at 01:25, Jim Ault wrote: > > A third idea is to join one of the LISTSERV groups. These threads aren't usually indexed by Google since they are strictly email based and not picked up by Gmane, etc. > You can search/join here > http://www.lsoft.com/lists/listref.html > > Hope this helps. > > Jim Ault > Las Vegas From scott at elementarysoftware.com Mon Mar 28 05:44:20 2011 From: scott at elementarysoftware.com (Scott Morrow) Date: Mon, 28 Mar 2011 02:44:20 -0700 Subject: iOS UITextField with delete button Message-ID: <14656739-D114-4E73-898C-560239440036@elementarysoftware.com> In an iOS project using LiveCode field objects it is straight forward to hide and reveal a red "delete" button on top of the field. Switching from LiveCode fields to the native UITextField object breaks this method as the UITextField appears to float over the top of all LiveCode objects. Is there any way to elevate a LiveCode object above the native UITextField? The only workaround I can think of is to set the "borderStyle" to none (making the UITextField transparent) and then simulate a click using a frontScript to see if the user tapped inside the rect of the button under the UITextField. Feels ugly. Regards, Scott Morrow Elementary Software (Now with 20% less chalk dust!) web http://elementarysoftware.com/ email scott at elementarysoftware.com From lists at mangomultimedia.com Mon Mar 28 07:41:38 2011 From: lists at mangomultimedia.com (Trevor DeVore) Date: Mon, 28 Mar 2011 07:41:38 -0400 Subject: Accessing customised columns in a datagrid In-Reply-To: <830CF3B4-CD94-4613-AC6D-F26D080155D1@mollysrevenge.com> References: <830CF3B4-CD94-4613-AC6D-F26D080155D1@mollysrevenge.com> Message-ID: On Fri, Mar 25, 2011 at 1:25 PM, Peter Haworth wrote: > In order to debug some issues I'm having, I need to take a look at some > custom properties of the option menu copies (they could be different in each > copy) but I can't find a way to bring up the Inspector dialog for them since > they're not listed in the application browser and even with Select Grouped > enabled, I can't select them in the IDE. > > Any ideas on how to bring up an Inspector dialog for these option menu > copies? > With the Edit tool selected, place the mouse over the option menu and execute the following in the message box: select the mouseControl The option menu should be selected and you can click the Inspector button in the toolbar to open the inspector. Alternatively you can set the selectGroupedControls property of the data grid to true. If you refresh the application browser all controls in the data grid will show up. -- Trevor DeVore Blue Mango Learning Systems ScreenSteps: http://www.screensteps.com LiveCode Resources for Developers: http://livecode.bluemangolearning.com From frederic at runrev.com Mon Mar 28 08:40:28 2011 From: frederic at runrev.com (=?iso-8859-1?Q?Fr=E9d=E9ric_RINALDI?=) Date: Mon, 28 Mar 2011 14:40:28 +0200 Subject: About LiveCode iOS support Message-ID: <3BD8642D-2A6B-4445-97A9-82B6A131F9A9@runrev.com> I'm trying to display dynamic Google Maps data according to current iPhone position. Did anyone succeed with this? Looks like I only can get static map with Google. Moreover, I need to access some internal iPhone datas: UUID/CCID, user name, cellular phone number, time zone. Does latest LiveCode 4.6 support this? Thanks for any help on this From gerry.orkin at gmail.com Mon Mar 28 09:38:03 2011 From: gerry.orkin at gmail.com (Gerry Orkin) Date: Tue, 29 Mar 2011 00:38:03 +1100 Subject: iOS UITextField with delete button In-Reply-To: <14656739-D114-4E73-898C-560239440036@elementarysoftware.com> References: <14656739-D114-4E73-898C-560239440036@elementarysoftware.com> Message-ID: Delete the text using the native iOS clear field icon instead (the small circle with a cross) - there's a setting for that mentioned in the control properties list, in the release docs. Gerry -- http://gerryorkin.com On 28/03/2011, at 8:44 PM, Scott Morrow wrote: > In an iOS project using LiveCode field objects it is straight forward to hide and reveal a red "delete" button on top of the field. Switching from LiveCode fields to the native UITextField object breaks this method as the UITextField appears to float over the top of all LiveCode objects. Is there any way to elevate a LiveCode object above the native UITextField? The only workaround I can think of is to set the "borderStyle" to none (making the UITextField transparent) and then simulate a click using a frontScript to see if the user tapped inside the rect of the button under the UITextField. Feels ugly. > > Regards, > > Scott Morrow > > Elementary Software > (Now with 20% less chalk dust!) > web http://elementarysoftware.com/ > email scott at elementarysoftware.com > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobs at twft.com Mon Mar 28 11:38:35 2011 From: bobs at twft.com (Bob Sneidar) Date: Mon, 28 Mar 2011 08:38:35 -0700 Subject: Expletive Deleted. In-Reply-To: <4D8F64B1.4090209@gmail.com> References: <4D8F5C03.4020906@gmail.com> <5C8B4A61-60A9-4313-BC32-A056FBE6EFEE@verizon.net> <4D8F64B1.4090209@gmail.com> Message-ID: Is this a typo or did you copy this from your script? Bob On Mar 27, 2011, at 9:24 AM, Richmond wrote: > set th useUnicode to true From pete at mollysrevenge.com Mon Mar 28 12:18:56 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Mon, 28 Mar 2011 09:18:56 -0700 Subject: Accessing customised columns in a datagrid In-Reply-To: References: <830CF3B4-CD94-4613-AC6D-F26D080155D1@mollysrevenge.com> Message-ID: Great, Thanks Trevor. Pete Haworth -------------- next part -------------- http://www.mollysrevenge.com http://www.sonicbids.com/MollysRevenge http://www.myspace.com/mollysrevengeband On Mar 28, 2011, at 4:41 AM, Trevor DeVore wrote: > On Fri, Mar 25, 2011 at 1:25 PM, Peter Haworth wrote: > >> In order to debug some issues I'm having, I need to take a look at some >> custom properties of the option menu copies (they could be different in each >> copy) but I can't find a way to bring up the Inspector dialog for them since >> they're not listed in the application browser and even with Select Grouped >> enabled, I can't select them in the IDE. >> >> Any ideas on how to bring up an Inspector dialog for these option menu >> copies? >> > > With the Edit tool selected, place the mouse over the option menu and > execute the following in the message box: > > select the mouseControl > > The option menu should be selected and you can click the Inspector button in > the toolbar to open the inspector. > > Alternatively you can set the selectGroupedControls property of the data > grid to true. If you refresh the application browser all controls in the > data grid will show up. > > -- > Trevor DeVore > Blue Mango Learning Systems > ScreenSteps: http://www.screensteps.com > LiveCode Resources for Developers: http://livecode.bluemangolearning.com > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From richmondmathewson at gmail.com Mon Mar 28 12:19:00 2011 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 28 Mar 2011 19:19:00 +0300 Subject: Expletive Deleted. In-Reply-To: References: <4D8F5C03.4020906@gmail.com> <5C8B4A61-60A9-4313-BC32-A056FBE6EFEE@verizon.net> <4D8F64B1.4090209@gmail.com> Message-ID: <4D90B4F4.5090005@gmail.com> On 03/28/2011 06:38 PM, Bob Sneidar wrote: > Is this a typo or did you copy this from your script? > > Bob > > > On Mar 27, 2011, at 9:24 AM, Richmond wrote: > >> set th useUnicode to true Oh, come on; give me some credit. A typo of course! From bobs at twft.com Mon Mar 28 12:30:06 2011 From: bobs at twft.com (Bob Sneidar) Date: Mon, 28 Mar 2011 09:30:06 -0700 Subject: Expletive Deleted. In-Reply-To: <4D90B4F4.5090005@gmail.com> References: <4D8F5C03.4020906@gmail.com> <5C8B4A61-60A9-4313-BC32-A056FBE6EFEE@verizon.net> <4D8F64B1.4090209@gmail.com> <4D90B4F4.5090005@gmail.com> Message-ID: <58B81D25-2F63-4AA4-B9BB-4D5F9B25BD1C@twft.com> Being an IT guy I've learned to assume nothing and consider anything. Nothing personal. Bob On Mar 28, 2011, at 9:19 AM, Richmond wrote: > On 03/28/2011 06:38 PM, Bob Sneidar wrote: >> Is this a typo or did you copy this from your script? >> >> Bob >> >> >> On Mar 27, 2011, at 9:24 AM, Richmond wrote: >> >>> set th useUnicode to true > Oh, come on; give me some credit. A typo of course! > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at mollysrevenge.com Mon Mar 28 12:46:06 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Mon, 28 Mar 2011 09:46:06 -0700 Subject: Accessing customised columns in a datagrid In-Reply-To: References: <830CF3B4-CD94-4613-AC6D-F26D080155D1@mollysrevenge.com> Message-ID: Trevor, One other quick question for you. I've customised a column to contain a check box. All works fine but I can't get the checkbox to be centered in its column using the justification options in the column inspector. How can I center a check box (it doesn't have a label and I've sized to be just the size of the actual checkbox itself). Can this be done by script/message box? Thanks, Pete Haworth On Mar 28, 2011, at 4:41 AM, Trevor DeVore wrote: > On Fri, Mar 25, 2011 at 1:25 PM, Peter Haworth wrote: > >> In order to debug some issues I'm having, I need to take a look at some >> custom properties of the option menu copies (they could be different in each >> copy) but I can't find a way to bring up the Inspector dialog for them since >> they're not listed in the application browser and even with Select Grouped >> enabled, I can't select them in the IDE. >> >> Any ideas on how to bring up an Inspector dialog for these option menu >> copies? >> > > With the Edit tool selected, place the mouse over the option menu and > execute the following in the message box: > > select the mouseControl > > The option menu should be selected and you can click the Inspector button in > the toolbar to open the inspector. > > Alternatively you can set the selectGroupedControls property of the data > grid to true. If you refresh the application browser all controls in the > data grid will show up. > > -- > Trevor DeVore > Blue Mango Learning Systems > ScreenSteps: http://www.screensteps.com > LiveCode Resources for Developers: http://livecode.bluemangolearning.com > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From MikeKerner at roadrunner.com Mon Mar 28 13:27:22 2011 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 28 Mar 2011 13:27:22 -0400 Subject: uiTextField Keyboard Types Message-ID: I apparently haven't been paying attention for a while. I see that one of the things we can do in 4.6 is set the keyboard that is used with the uiTextField control. I was sort of curious about that, so I ask...what are the keyboard types? The tutorial makes no mention, and as of this writing I have not found a list. From pete at mollysrevenge.com Mon Mar 28 13:37:36 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Mon, 28 Mar 2011 10:37:36 -0700 Subject: Accessing customised columns in a datagrid In-Reply-To: References: <830CF3B4-CD94-4613-AC6D-F26D080155D1@mollysrevenge.com> Message-ID: <73CE8AEB-CE5E-4A9A-AFC6-FB78CC5E6A91@mollysrevenge.com> One small problem with this. It works as described but setting the property back to false does not get rid of all the datagrid controls in the application browser. Tried refreshing it (and Refresh Data grid in the datagrid inspector) but I had to quit LC and restart to get the aplication browser display back to just showing the datagrid. Pete Haworth On Mar 28, 2011, at 4:41 AM, Trevor DeVore wrote: > Alternatively you can set the selectGroupedControls property of the data > grid to true. If you refresh the application browser all controls in the > data grid will show up. From dan at clearvisiontech.com Mon Mar 28 13:57:12 2011 From: dan at clearvisiontech.com (Dan Friedman) Date: Mon, 28 Mar 2011 10:57:12 -0700 Subject: OT: PHP Assist - Resolved! In-Reply-To: References: Message-ID: Update... I was able to resolve the problem with some advise from Sarah Reichelt. She found a way around the problem by running base64Encode() on the compressed string before I POSTed it. PHP then successfully got the data. Then, simply running base64_decode($cData) on the data in my php script and then writing it down got everything written right. Thank you Sarah! From pete at mollysrevenge.com Mon Mar 28 14:40:07 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Mon, 28 Mar 2011 11:40:07 -0700 Subject: Problem with editing a field in a datagrid Message-ID: <1D3EFFC7-9329-4CA9-ACC1-21731F456982@mollysrevenge.com> I'm using a CloseFieldEditor handler to update the results of a user's changes to a datagrid text column into a database. Works fine except when the data in the column has been processed using the datagrid TruncateTail function and the data is too wide to fit in the column. In those circumstances, the data in the column is truncated and "..." is placed at the end of it to show it has been truncated. So if the original text is "This a string of text that won;t fit in the width of my column", TruncateTail turns it into "This a string of text that won;t fit in the width..." or something similar for display in the datagrid. When I double click on the column to edit it, the editor field contains the truncated text, not the complete text so when I get the new value in CloseFieldEditor, I end up putting a string ending with the "..." chars instead of the full text. Seems to me that when a user opens up a column for editing, the full text of the field should be placed in the field editor, not the truncated version but this isn't happening so I guess I'm going to have to do this myself but I'm not sure where to start. I see a mouseDoubleUp handler in the datagrid column behavior script that calls EditCellOfIndex. It seems like I will need to grab the un-truncated version of the text at that point and put it into the column being edited but before I go down that path, has anyone run into this and found a way to have the datagrid deal with it? Pete Haworth From niggemann at uni-wh.de Mon Mar 28 18:31:57 2011 From: niggemann at uni-wh.de (BNig) Date: Mon, 28 Mar 2011 15:31:57 -0700 (PDT) Subject: uiTextField Keyboard Types In-Reply-To: References: Message-ID: <1301351517400-3413266.post@n4.nabble.com> Hi Mike, i guess its the keyboards mentioned on page 20 of the 4.6 iOS Release Notes Quote --- You can configure the type of keyboard that will be displayed by using the iphoneSetKeyboardType command: iphoneSetKeyboardType type Where type is one of: ? default ? the normal keyboard ? alphabet ? the alphabetic keyboard ? numeric ? the numeric keyboard with punctuation ? url ? the url entry keyboard ? number ? the number pad keyboard ? phone ? the phone number pad keyboard ? contact ? the phone contact pad keyboard ? email ? the email keyboard ? decimal ? the decimal numeric pad keyboard (iOS 4.1+) The keyboard type setting takes effect the next time the keyboard is shown ? it does not affect the currently displaying keyboard, if any. ----- Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/uiTextField-Keyboard-Types-tp3412476p3413266.html Sent from the Revolution - User mailing list archive at Nabble.com. From todd at geistinteractive.com Mon Mar 28 20:09:53 2011 From: todd at geistinteractive.com (Todd Geist) Date: Mon, 28 Mar 2011 17:09:53 -0700 Subject: best data format Message-ID: Hello, I am building an app that will be a front end for some online databases. These databases can be accessed using simple http requests. So event something as simple as put tURL into field "data" works just fine. I can get the data down in a nice clean xml. Or I could get it as a tab delineated text. Or what ever. The data will be displayed, filtered, listed, edited and sent back to the server. My question is what is the best format to use as my "local" copy of the data? I Should I just leave it as XML, or TAB, or should I convert it to an array? Are there significant differences in speed or facility between these options? Thanks Todd Todd Geist ------------------------------ geist interactive 805-419-9382 From kee at kagi.com Mon Mar 28 20:43:21 2011 From: kee at kagi.com (Kee Nethery) Date: Mon, 28 Mar 2011 17:43:21 -0700 Subject: best data format In-Reply-To: References: Message-ID: <91E21B71-27EB-4478-92EC-6462C17A5CA0@kagi.com> I tend to convert the data into the format that is easiest for me to use. If the data supports it I create one variable with rows delimited by a return, and the columns delimited by a tab. Then if I set the itemdelimiter to tab, I can get item y of line x of the data. If I am going to pull it from the database and then modify it and put it back into the database, I tend to keep it in the format the database has it so that putting it back into the database is easy. Kee Nethery On Mar 28, 2011, at 5:09 PM, Todd Geist wrote: > My question is what is the best format to use as my "local" copy of the > data? I > > Should I just leave it as XML, or TAB, or should I convert it to an array? > > Are there significant differences in speed or facility between these > options? From lists at mangomultimedia.com Mon Mar 28 20:59:48 2011 From: lists at mangomultimedia.com (Trevor DeVore) Date: Mon, 28 Mar 2011 20:59:48 -0400 Subject: Accessing customised columns in a datagrid In-Reply-To: <73CE8AEB-CE5E-4A9A-AFC6-FB78CC5E6A91@mollysrevenge.com> References: <830CF3B4-CD94-4613-AC6D-F26D080155D1@mollysrevenge.com> <73CE8AEB-CE5E-4A9A-AFC6-FB78CC5E6A91@mollysrevenge.com> Message-ID: On Mon, Mar 28, 2011 at 1:37 PM, Peter Haworth wrote: > One small problem with this. It works as described but setting the > property back to false does not get rid of all the datagrid controls in the > application browser. Tried refreshing it (and Refresh Data grid in the > datagrid inspector) but I had to quit LC and restart to get the aplication > browser display back to just showing the datagrid. Were you right-clicking in the right column of the App Browser and selecting "Refresh" from the contextual menu? Using the Refresh button at the bottom of the Application Browser only refreshes the left column. -- Trevor DeVore Blue Mango Learning Systems ScreenSteps: http://www.screensteps.com LiveCode Resources for Developers: http://livecode.bluemangolearning.com From lists at mangomultimedia.com Mon Mar 28 21:03:18 2011 From: lists at mangomultimedia.com (Trevor DeVore) Date: Mon, 28 Mar 2011 21:03:18 -0400 Subject: Accessing customised columns in a datagrid In-Reply-To: References: <830CF3B4-CD94-4613-AC6D-F26D080155D1@mollysrevenge.com> Message-ID: On Mon, Mar 28, 2011 at 12:46 PM, Peter Haworth wrote: > One other quick question for you. I've customised a column to contain a > check box. All works fine but I can't get the checkbox to be centered in > its column using the justification options in the column inspector. How can > I center a check box (it doesn't have a label and I've sized to be just the > size of the actual checkbox itself). Can this be done by script/message > box? > The setting in the column inspector doesn't activate any code. The code for a default column just looks at the setting for the column being rendered and positions the text accordingly. If you create a custom column you need to add that logic yourself. Two things you can try - 1) Set the lockLoc of your custom column group to true. I can't remember if this works or not but it may keep your checkbox in the center. 2) If (1) doesn't work then add a "canvas" to your column. This can be a transparent button or a graphic and you size to fit the width of the column in LayoutControl. You then position the checkbox in the center of the canvas and it will appear centered. -- Trevor DeVore Blue Mango Learning Systems ScreenSteps: http://www.screensteps.com LiveCode Resources for Developers: http://livecode.bluemangolearning.com From lists at mangomultimedia.com Mon Mar 28 21:08:53 2011 From: lists at mangomultimedia.com (Trevor DeVore) Date: Mon, 28 Mar 2011 21:08:53 -0400 Subject: Problem with editing a field in a datagrid In-Reply-To: <1D3EFFC7-9329-4CA9-ACC1-21731F456982@mollysrevenge.com> References: <1D3EFFC7-9329-4CA9-ACC1-21731F456982@mollysrevenge.com> Message-ID: On Mon, Mar 28, 2011 at 2:40 PM, Peter Haworth wrote: > When I double click on the column to edit it, the editor field contains the > truncated text, not the complete text so when I get the new value in > CloseFieldEditor, I end up putting a string ending with the "..." chars > instead of the full text. > The field editor just grabs the current value of the field being edited. If you want to override it take a look at this lesson: http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/10101-How-Can-I-Edit-The-Text-as-UTF-8-UTF-16-or-HTML- You can change the default value by setting one fo the dgTemplateFieldEditor properties. Look at htmltext, text, utf8text and unicodetext under "Template Field Editor Properties" in the proeprties docs: http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7343-Data-Grid-Properties -- Trevor DeVore Blue Mango Learning Systems ScreenSteps: http://www.screensteps.com LiveCode Resources for Developers: http://livecode.bluemangolearning.com From pete at mollysrevenge.com Mon Mar 28 21:10:19 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Mon, 28 Mar 2011 18:10:19 -0700 Subject: Accessing customised columns in a datagrid In-Reply-To: References: <830CF3B4-CD94-4613-AC6D-F26D080155D1@mollysrevenge.com> <73CE8AEB-CE5E-4A9A-AFC6-FB78CC5E6A91@mollysrevenge.com> Message-ID: <9D04E2C9-BFAB-4914-BEB2-A5E7AADFD1DE@mollysrevenge.com> Nope, didn't know that could be done - I was clicking the refresh button as you mentioned. Your suggestion worked fine, thanks. Pete Haworth On Mar 28, 2011, at 5:59 PM, Trevor DeVore wrote: > On Mon, Mar 28, 2011 at 1:37 PM, Peter Haworth wrote: > >> One small problem with this. It works as described but setting the >> property back to false does not get rid of all the datagrid controls in the >> application browser. Tried refreshing it (and Refresh Data grid in the >> datagrid inspector) but I had to quit LC and restart to get the aplication >> browser display back to just showing the datagrid. > > > Were you right-clicking in the right column of the App Browser and selecting > "Refresh" from the contextual menu? Using the Refresh button at the bottom > of the Application Browser only refreshes the left column. > > -- > Trevor DeVore > Blue Mango Learning Systems > ScreenSteps: http://www.screensteps.com > LiveCode Resources for Developers: http://livecode.bluemangolearning.com > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From lists at mangomultimedia.com Mon Mar 28 21:13:34 2011 From: lists at mangomultimedia.com (Trevor DeVore) Date: Mon, 28 Mar 2011 21:13:34 -0400 Subject: best data format In-Reply-To: References: Message-ID: On Mon, Mar 28, 2011 at 8:09 PM, Todd Geist wrote: > My question is what is the best format to use as my "local" copy of the > data? I > > Should I just leave it as XML, or TAB, or should I convert it to an array? > I agree with Kee. The format I prefer is arrays since I can store any type of data in them without worrying it the data contains a tab, etc. I think working with XML via the revXML API is kind of a pain so I wrote some routines to perform the conversion between array and XML. I use them all of the time when working with web services. I grab the XML data from the website and then convert to an array for use within LiveCode. When posting data back I create an array, pass it through the converter and then send it off to the web service. Last week I posted a stack with the handlers to RevOnline. Perhaps they will be of help. http://revonline2.runrev.com/stack/571/XMLAndArrays -- Trevor DeVore Blue Mango Learning Systems ScreenSteps: http://www.screensteps.com LiveCode Resources for Developers: http://livecode.bluemangolearning.com From pete at mollysrevenge.com Mon Mar 28 22:00:19 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Mon, 28 Mar 2011 19:00:19 -0700 Subject: Problem with editing a field in a datagrid In-Reply-To: References: <1D3EFFC7-9329-4CA9-ACC1-21731F456982@mollysrevenge.com> Message-ID: <77F3ABEC-BEBD-4F61-83B2-229DD05A01E4@mollysrevenge.com> Thanks Trevor, I can figure it out from there. Pete Haworth On Mar 28, 2011, at 6:08 PM, Trevor DeVore wrote: > On Mon, Mar 28, 2011 at 2:40 PM, Peter Haworth wrote: > >> When I double click on the column to edit it, the editor field contains the >> truncated text, not the complete text so when I get the new value in >> CloseFieldEditor, I end up putting a string ending with the "..." chars >> instead of the full text. >> > > The field editor just grabs the current value of the field being edited. If > you want to override it take a look at this lesson: > > http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/10101-How-Can-I-Edit-The-Text-as-UTF-8-UTF-16-or-HTML- > > You can change the default value by setting one fo the dgTemplateFieldEditor > properties. Look at htmltext, text, utf8text and unicodetext under > "Template Field Editor Properties" in the proeprties docs: > > http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7343-Data-Grid-Properties > > > -- > Trevor DeVore > Blue Mango Learning Systems > ScreenSteps: http://www.screensteps.com > LiveCode Resources for Developers: http://livecode.bluemangolearning.com > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From todd at geistinteractive.com Mon Mar 28 22:39:16 2011 From: todd at geistinteractive.com (Todd Geist) Date: Mon, 28 Mar 2011 19:39:16 -0700 Subject: best data format In-Reply-To: References: Message-ID: thanks guys. Now a couple of follow up questions. Where is a good place to stick all this data? custom Props on substack? I am going to try to mimc some of the things I like about the web frameworks I have used lately. I am not sure if this will be possible but I am hoping to create some kind of local representation of the sever data. Something like the Model in MVC. Not really in the sense of OOP, but more just as a place to encapsulate logic that operates on the data. For example if I building a contact management app, is there some place I can build some logic that describes a person and what it person can do? I think I see I can create custom props on an object like a button. And even setup some getters and setters thats a start. Has any one gone down this path? Does it get you anywhere? Thanks Todd - Todd Geist ------------------------------ geist interactive 805-419-9382 From kee at kagi.com Mon Mar 28 23:07:13 2011 From: kee at kagi.com (Kee Nethery) Date: Mon, 28 Mar 2011 20:07:13 -0700 Subject: best data format In-Reply-To: References: Message-ID: On Mar 28, 2011, at 7:39 PM, Todd Geist wrote: > thanks guys. > > Now a couple of follow up questions. > > Where is a good place to stick all this data? custom Props on substack? It depends upon how quickly it changes. If it changes infrequently, I'll pull it and store it in a field along with a timestamp for the entire data set. When the timestamp is older than some period of time, I pull it again. Otherwise the field where I store the data is my data cache. If I quit the app and restart, it is still there. If it is a bunch of rows where some change, and there are way more rows in the source table than I'll ever need in a day, I store the data with a time to live value. I keep the data in a variable. Before I pull from the data, I sort by time to live time and delete oldest stuff until my dataset is within a set number of characters in size (don't want to use all the RAM for any one data set). Then I delete any row with an old time to live value (which is going to be at one end of the data set because of the time to live sort). Then I search for the desired row. If it is not there, I grab it from the database and add it to the data set. Then I pull the data from the dataset. What normally happens is that the most frequently used stuff stays cached and the less frequently used stuff gets added to the cache and disappears eventually. Then, there is data that gets changed frequently or data where I must have the absolute most recent data and for that, I pull it from the database and throw it away when I'm done. If it's tons of data that I am creating and only I am using until it is completely processed, I have a getter and a setter that store and pull the data from disk in a file. Once I throw it back onto disk, I set that variable to empty to clear out the RAM. I personally like using fields for slow changing data. Lets me see what the data is. If I don;t want others to see, I can always make the field invisible for the version going out to others. Kee From pete at mollysrevenge.com Mon Mar 28 23:24:44 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Mon, 28 Mar 2011 20:24:44 -0700 Subject: best data format In-Reply-To: References: Message-ID: There's a gotcha with storing data in custom properties (or any LC objects for that matter) if you plan to build a standalone version of your program. Everything works fine in the IDE but in the standalone whatever you store won't survive when you quit the program. There are various ways around this but they all involve some extra work in how you structure your stacks and substacks. There are others on this list that can describe what needs to be done better than I but just plan for this earlier in your application rather than later. Pete Haworth On Mar 28, 2011, at 7:39 PM, Todd Geist wrote: > thanks guys. > > Now a couple of follow up questions. > > Where is a good place to stick all this data? custom Props on substack? > > I am going to try to mimc some of the things I like about the web frameworks > I have used lately. I am not sure if this will be possible but I am hoping > to create some kind of local representation of the sever data. Something > like the Model in MVC. Not really in the sense of OOP, but more just as a > place to encapsulate logic that operates on the data. > > For example if I building a contact management app, is there some place I > can build some logic that describes a person and what it person can do? > > I think I see I can create custom props on an object like a button. And even > setup some getters and setters thats a start. > > Has any one gone down this path? Does it get you anywhere? > > Thanks > > Todd > > > - > Todd Geist > ------------------------------ > geist interactive > 805-419-9382 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From lists at mangomultimedia.com Mon Mar 28 23:29:09 2011 From: lists at mangomultimedia.com (Trevor DeVore) Date: Mon, 28 Mar 2011 23:29:09 -0400 Subject: best data format In-Reply-To: References: Message-ID: On Mon, Mar 28, 2011 at 10:39 PM, Todd Geist wrote: > Where is a good place to stick all this data? custom Props on substack? > > I am going to try to mimc some of the things I like about the web > frameworks > I have used lately. I am not sure if this will be possible but I am hoping > to create some kind of local representation of the sever data. Something > like the Model in MVC. Not really in the sense of OOP, but more just as a > place to encapsulate logic that operates on the data. > > For example if I building a contact management app, is there some place I > can build some logic that describes a person and what it person can do? > > I think I see I can create custom props on an object like a button. And > even > setup some getters and setters thats a start. > > Has any one gone down this path? Does it get you anywhere? My take on it - When trying to create custom objects that play the part of a model I usually turn to library stacks (this will actually be part of one of my presentations at RevLive). I then write handlers for getting and setting object data, performing actions on the object data, etc. Storage of the data doesn't really matter. It can be in a custom property, an encoded array stored in a file on disk, etc. The primary reason I stay away from using getProp/setProp is that the messages will never be triggered if messages are locked. Since the model doesn't know what the view/controller are doing there is no guarantee that messages will be unlocked and you may end up with getProp/setProp handlers that are never executed. I found myself scratching my head as to why certain code wasn't executing on more than one occasion. I use getProp/setProp to extend properties of controls in the view all of the time, however. Another reason is that I find that targeting a button on a stack somewhere that is serving as a data object can get a little long in the tooth. -- Trevor DeVore Blue Mango Learning Systems ScreenSteps: http://www.screensteps.com LiveCode Resources for Developers: http://livecode.bluemangolearning.com From todd at geistinteractive.com Tue Mar 29 00:14:03 2011 From: todd at geistinteractive.com (Todd Geist) Date: Mon, 28 Mar 2011 21:14:03 -0700 Subject: best data format In-Reply-To: References: Message-ID: Thanks again, great comments. In my case the data only lives on the server, so I want it to disappear when the app quits. I like Trevor's idea of using sub stacks. This makes a lot of sense. Heck you even use cards to store the data, although I think arrays are probably better. Looking forward to your preso, Trevore. I will be watching over the internets :>) I also really like Kee's approach to using to setting a time to live on the rows. This is exactly the kind of thing that I was thinking about. In my case, I have mod count for each record and I can always check it against the DB before displaying it. If the mod count is old I can pull it down from the DB. This is great stuff! Thanks Todd Geist ------------------------------ geist interactive 805-419-9382 From heather at runrev.com Tue Mar 29 06:52:04 2011 From: heather at runrev.com (Heather Nagey) Date: Tue, 29 Mar 2011 11:52:04 +0100 Subject: just testing Message-ID: move along, nothing to see here. Heather Nagey Customer Services Manager http://www.runrev.com/ LiveCode ? Realize fast, compile-free coding From mcgrath3 at mac.com Tue Mar 29 08:16:54 2011 From: mcgrath3 at mac.com (Thomas McGrath III) Date: Tue, 29 Mar 2011 08:16:54 -0400 Subject: just testing In-Reply-To: References: Message-ID: ...moving...... -- Tom McGrath III http://lazyriver.on-rev.com 3mcgrath at comcast.net On Mar 29, 2011, at 6:52 AM, Heather Nagey wrote: > move along, nothing to see here. > > > Heather Nagey > Customer Services Manager > http://www.runrev.com/ > LiveCode ? Realize fast, compile-free coding > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gerry.orkin at gmail.com Tue Mar 29 09:48:29 2011 From: gerry.orkin at gmail.com (Gerry) Date: Wed, 30 Mar 2011 00:48:29 +1100 Subject: Arghhh. Is this stack corrupt? Message-ID: I'm wanting to save the current card name out to a text file when my iOS app quits, so I can return there when the app re-opens. I use: on shutdown set the defaultFolder to specialFolderPath("Documents") put the short name of this card into URL ("file:shutdown.txt") end shutdown That writes out e.g. "Songs" to the shutdown.txt file ("Songs" is one of the card names). On openstack, I want to go to the card whose name is in that file. So I do: on openstack set the defaultFolder to specialFolderPath("Documents") go card URL ("file:shutdown.txt") end openstack All works fine on my Mac, and on that platform I can see the correct value is being written out to the file, and being read in from the file on openstack. Until this afternoon, it was working in iOS - now it's stopped. No matter what is being written out on shutdown in iOS, if I check the text read from the file on openstack (using answer URL ("file:shutdown.txt")) I always get the value "card id 1002". I have no card id 1002 in my stack! What is going on? Cheers Gerry From bobs at twft.com Tue Mar 29 12:20:15 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 29 Mar 2011 09:20:15 -0700 Subject: just testing In-Reply-To: References: Message-ID: <1AFC3535-0AF0-419B-9B4D-03A43682CAF5@twft.com> Your Jedi mind tricks won't work on me! Bob On Mar 29, 2011, at 3:52 AM, Heather Nagey wrote: > move along, nothing to see here. > > > Heather Nagey > Customer Services Manager > http://www.runrev.com/ > LiveCode ? Realize fast, compile-free coding > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From niggemann at uni-wh.de Tue Mar 29 12:35:36 2011 From: niggemann at uni-wh.de (BNig) Date: Tue, 29 Mar 2011 09:35:36 -0700 (PDT) Subject: Arghhh. Is this stack corrupt? In-Reply-To: References: Message-ID: <1301416536141-3415409.post@n4.nabble.com> Hi Gerry, the only thing I could think of is that you accidentally deleted the name of the first card of your stack. Happens occasionally in the inspector when one edits the properties and the inspector is still open and the name field has focus and you don't expect it. card id 1002 is the default for card 1 of a stack, if you accidentally delete the name it will revert to the default. Depending on your stack(s) there could be of course a lot of other reasons. What is the set up of you stack. How many cards/substacks, from what card are you trying to save, where is the shutdown handler? Stack script, card script? Do you use a stack as data stack, i.e. a saveable stack stored in "documents" as in a splashscreen set up? Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Arghhh-Is-this-stack-corrupt-tp3414863p3415409.html Sent from the Revolution - User mailing list archive at Nabble.com. From jacque at hyperactivesw.com Tue Mar 29 13:50:20 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 29 Mar 2011 12:50:20 -0500 Subject: Arghhh. Is this stack corrupt? In-Reply-To: References: Message-ID: <4D921BDC.1040107@hyperactivesw.com> On 3/29/11 8:48 AM, Gerry wrote: > I'm wanting to save the current card name out to a text file when my > iOS app quits, so I can return there when the app re-opens. As Bern said, id 1002 is the first card of just about every stack. But I just wanted to add that cases of stack corruption are virtually unknown in LiveCode. In all these years working with the engine, I have only seen one bona fide case of corruption, and that turned out to be a hard drive issue that stored the file incorrectly. Basically you can trust the integrity of the stack with 99.bunch-of-nines % certainty. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From revdev at pdslabs.net Tue Mar 29 13:58:32 2011 From: revdev at pdslabs.net (Phil Davis) Date: Tue, 29 Mar 2011 10:58:32 -0700 Subject: [Datagrid] How to detect a change in column width? Message-ID: <4D921DC8.6030300@pdslabs.net> Does the data grid send a message when the user changes the width of a column by dragging its header to a new width? I would love that, but I'm pretty sure the answer is "no". Trevor - is there a way to elevate the level of this to "not yet"? Thanks - -- Phil Davis PDS Labs Professional Software Development http://pdslabs.net From home at quick-calcs.net Tue Mar 29 14:04:52 2011 From: home at quick-calcs.net (home at quick-calcs.net) Date: Tue, 29 Mar 2011 19:04:52 +0100 Subject: Very slow in edit mode Message-ID: <1FE30122-DACB-4F50-B193-47A4DA75BCC8@quick-calcs.net> I don't know if anyone has ever had this problem, but I've got one card which is incredibly slow when trying to edit it. For example, moving a button takes over 10 seconds, aligning 4 fields takes almost 30 secs. Even making a selection can take several seconds. The card runs fine in run mode and also as a standalone. All the other cards in the stack are fine. The bad card has 10 datagrids each with 100 values each, but apart from that they all do similar things. I'm not sure how to solve this, or even where to look, so any advice would be welcome. Kev From pepetoo at cox.net Tue Mar 29 14:14:09 2011 From: pepetoo at cox.net (Joe Lewis Wilkins) Date: Tue, 29 Mar 2011 11:14:09 -0700 Subject: Very slow in edit mode In-Reply-To: <1FE30122-DACB-4F50-B193-47A4DA75BCC8@quick-calcs.net> References: <1FE30122-DACB-4F50-B193-47A4DA75BCC8@quick-calcs.net> Message-ID: Kev, on the off-chance that you may have exceeded the number of datagrids on a single card that anyone has tested, I would duplicate your stack and then remove one or more until things appear to function more timely. Just a thought! Joe Lewis Wilkins Architect & Director of Product Development for GSI On Mar 29, 2011, at 11:04 AM, home at quick-calcs.net wrote: > I don't know if anyone has ever had this problem, but I've got one card which is incredibly slow when trying to edit it. > > For example, moving a button takes over 10 seconds, aligning 4 fields takes almost 30 secs. Even making a selection can take several seconds. > > The card runs fine in run mode and also as a standalone. > > All the other cards in the stack are fine. > > The bad card has 10 datagrids each with 100 values each, but apart from that they all do similar things. > > I'm not sure how to solve this, or even where to look, so any advice would be welcome. > > Kev From scott at tactilemedia.com Tue Mar 29 14:23:37 2011 From: scott at tactilemedia.com (Scott Rossi) Date: Tue, 29 Mar 2011 11:23:37 -0700 Subject: Menu Icons? Message-ID: Am I imagining this, or was the ability to include icons/images in menus added to LC at some point? If yes, does anyone know where I might out find how to do this? Been looking through the user guide and dictionary without success (maybe I'm not looking for the right thing). Thanks & Regards, Scott Rossi Creative Director Tactile Media, UX Design From ambassador at fourthworld.com Tue Mar 29 16:00:48 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 29 Mar 2011 13:00:48 -0700 Subject: Very slow in edit mode In-Reply-To: <1FE30122-DACB-4F50-B193-47A4DA75BCC8@quick-calcs.net> References: <1FE30122-DACB-4F50-B193-47A4DA75BCC8@quick-calcs.net> Message-ID: <4D923A70.4060001@fourthworld.com> home at quick-calcs.net wrote: > I don't know if anyone has ever had this problem, but I've got > one card which is incredibly slow when trying to edit it. Do any controls there use graphic effects? -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From bobs at twft.com Tue Mar 29 16:16:51 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 29 Mar 2011 13:16:51 -0700 Subject: Menu Icons? In-Reply-To: References: Message-ID: I am wondering what would happen if you set the html text of a menu? Bob On Mar 29, 2011, at 11:23 AM, Scott Rossi wrote: > Am I imagining this, or was the ability to include icons/images in menus > added to LC at some point? If yes, does anyone know where I might out find > how to do this? Been looking through the user guide and dictionary without > success (maybe I'm not looking for the right thing). > > Thanks & Regards, > > Scott Rossi > Creative Director > Tactile Media, UX Design > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gerry.orkin at gmail.com Tue Mar 29 16:21:15 2011 From: gerry.orkin at gmail.com (Gerry) Date: Wed, 30 Mar 2011 07:21:15 +1100 Subject: Arghhh. Is this stack corrupt? In-Reply-To: <1301416536141-3415409.post@n4.nabble.com> References: <1301416536141-3415409.post@n4.nabble.com> Message-ID: <4C606BC31B0D4E2AB4BC30D965CDCD50@gmail.com> Bernd All my cards are properly named and none has the id 1002. I call both openstack (where the file is read) and shutdown (where it is written) from the stack script. No other stacks in use, and no substacks. Cheers Gerry -- photo site: http://gerryorkin.com On Wednesday, 30 March 2011 at 3:35 AM, BNig wrote: > Hi Gerry, > > the only thing I could think of is that you accidentally deleted the name of > the first card of your stack. Happens occasionally in the inspector when one > edits the properties and the inspector is still open and the name field has > focus and you don't expect it. > card id 1002 is the default for card 1 of a stack, if you accidentally > delete the name it will revert to the default. > > > Depending on your stack(s) there could be of course a lot of other reasons. > What is the set up of you stack. How many cards/substacks, from what card > are you trying to save, where is the shutdown handler? Stack script, card > script? Do you use a stack as data stack, i.e. a saveable stack stored in > "documents" as in a splashscreen set up? > > Kind regards > > Bernd > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Arghhh-Is-this-stack-corrupt-tp3414863p3415409.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bvg at mac.com Tue Mar 29 16:35:53 2011 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Tue, 29 Mar 2011 22:35:53 +0200 Subject: Live LiveCode event #16 (Wrapup) In-Reply-To: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> Message-ID: <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> The sun is pleased with you and brings you these resources: Keith (who isn't a system admin), gave us a smart presentation about how to set up revServer, and some basic revServer coding. Watch a replay in 3 parts: http://www.ustream.tv/recorded/13582480 http://www.ustream.tv/recorded/13582512 http://www.ustream.tv/recorded/13583293 Download a PDF and example code for the revServer presentation: http://blog.livecode.tv/wp-content/uploads/2011/03/keithrevserver.zip Then, Colin showed some fancy image data tricks, including collision detection for a car racer (copy now for your iOS game): http://www.ustream.tv/recorded/13583609 http://www.ustream.tv/recorded/13584248 Stacks that use the imageData: http://blog.livecode.tv/wp-content/uploads/2011/03/imagedataStacks.zip Check in again next week, or the sun will frown! Also read the blog for more replays and materials: http://livecode.tv On 24 Mar 2011, at 23:38, Bj?rnke von Gierke wrote: > Hi from the sun > > The sun compels you to watch the following presentations: > > Keith Clarke is a system admin and will show how to set up revServer, a few pitfalls regarding server LiveCoding, Mac OS X server and Linux VPS. > http://livecode.tv/keith/ > > After that, Colin Holgate, who is a mentor of a robotics team, will show collision detection techniques using bitmaps and imagedata. > http://blog.livecode.tv/colin/ > > The sun also likes to remind you that you please should join ChatRev on Saturday at the correct times: > http://bjoernke.com/chatrev/ > > Rome 20:00 > Johannesburg 21:00 > New York 15:00 > Los Angeles 12:00 > Seoul 04:00 (Sun) > Melbourne 06:00 (Sun) > > > Please the sun, and watch in on the live event. Pleasure it, by contacting me for making your own presentation! > > Also, do read the blog for past events: http://livecode.tv > > Cheers > Bjoernke (not the Sun) > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Tue Mar 29 17:04:57 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 29 Mar 2011 14:04:57 -0700 Subject: Arghhh. Is this stack corrupt? In-Reply-To: <4C606BC31B0D4E2AB4BC30D965CDCD50@gmail.com> References: <4C606BC31B0D4E2AB4BC30D965CDCD50@gmail.com> Message-ID: <4D924979.1090609@fourthworld.com> Gerry wrote: > All my cards are properly named and none has the id 1002. It's quite rare to have a collection of stacks in which none of them has the ID 1002, since that's the ID of the first card created by default with every new stack. To have a set of stacks in which none of them have a card ID 1002 would require that at some point every stack had more than one card, and that you had also deleted the first card in every stack. Is that the case for every stack in your setup? -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From jacque at hyperactivesw.com Tue Mar 29 18:07:35 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 29 Mar 2011 17:07:35 -0500 Subject: Arghhh. Is this stack corrupt? In-Reply-To: <4C606BC31B0D4E2AB4BC30D965CDCD50@gmail.com> References: <1301416536141-3415409.post@n4.nabble.com> <4C606BC31B0D4E2AB4BC30D965CDCD50@gmail.com> Message-ID: <4D925827.6010007@hyperactivesw.com> On 3/29/11 3:21 PM, Gerry wrote: > Bernd > > All my cards are properly named and none has the id 1002. Try adding a test to your openstack handler: put URL ("file:shutdown.txt") into tCard answer the long name of cd tCard That should tell you what stack it thinks it is in, which might give you a clue. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From niggemann at uni-wh.de Tue Mar 29 18:08:26 2011 From: niggemann at uni-wh.de (BNig) Date: Tue, 29 Mar 2011 15:08:26 -0700 (PDT) Subject: Arghhh. Is this stack corrupt? In-Reply-To: <4C606BC31B0D4E2AB4BC30D965CDCD50@gmail.com> References: <1301416536141-3415409.post@n4.nabble.com> <4C606BC31B0D4E2AB4BC30D965CDCD50@gmail.com> Message-ID: <1301436506136-3416426.post@n4.nabble.com> Gerry, it is difficult to guess what is happening. One thing that happened to me was that I wrote out a file to "documents" and then I changed the app and tested in the Simulator and the iPhone and the file was not what I expected. It turned out that the file saving was broken but the file in "documents" was never replaced when I tested a new version of the app. This is because when updating the app in the simulator or the device the documents folder is NOT replaced. You could try to delete the app from the Simulator before you test a new version and add a timestamp to the text of the file to see when it was written. the long time or somesuch. Of course this might not apply to your situation which shurely sounds strange. Also I found it very helpful to add temporarily a backgroundgroup with a field "fErr" to every card of the stack and have a handler in the stack script --------------- on errorDialog put the params into field "fErr" end errorDialog ----------------- (from one of the example stacks) iOS specific code can fail silently and the rest of the code is not executed. A great source of confusion. Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Arghhh-Is-this-stack-corrupt-tp3414863p3416426.html Sent from the Revolution - User mailing list archive at Nabble.com. From jacque at hyperactivesw.com Tue Mar 29 18:08:57 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 29 Mar 2011 17:08:57 -0500 Subject: Live LiveCode event #16 (Wrapup) In-Reply-To: <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> Message-ID: <4D925879.8070304@hyperactivesw.com> On 3/29/11 3:35 PM, Bj?rnke von Gierke wrote: > The sun is pleased with you and brings you these resources: What's necessary to see these videos? Last week I tried to take a look and they wouldn't run, all I could get was a black display window. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From m.schonewille at economy-x-talk.com Tue Mar 29 18:40:45 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 30 Mar 2011 00:40:45 +0200 Subject: Live LiveCode event #16 (Wrapup) In-Reply-To: <4D925879.8070304@hyperactivesw.com> References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> Message-ID: Hi Jacque, AFAIK, all you need is Flash (which you, understandably, might not have installed). I have it installed and the movies play fine. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce On 30 mrt 2011, at 00:08, J. Landman Gay wrote: > On 3/29/11 3:35 PM, Bj?rnke von Gierke wrote: >> The sun is pleased with you and brings you these resources: > > What's necessary to see these videos? Last week I tried to take a look and they wouldn't run, all I could get was a black display window. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Tue Mar 29 19:01:51 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 29 Mar 2011 18:01:51 -0500 Subject: Live LiveCode event #16 (Wrapup) In-Reply-To: References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> Message-ID: <4D9264DF.5020800@hyperactivesw.com> On 3/29/11 5:40 PM, Mark Schonewille wrote: > Hi Jacque, > > AFAIK, all you need is Flash (which you, understandably, might not > have installed). I have it installed and the movies play fine. I have Flash installed. I tried with both Firefox and Safari with the same results. I'll try again later. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jhj at jhj.com Tue Mar 29 19:03:58 2011 From: jhj at jhj.com (Jerry J) Date: Tue, 29 Mar 2011 16:03:58 -0700 Subject: Live LiveCode event #16 (Wrapup) In-Reply-To: <4D925879.8070304@hyperactivesw.com> References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> Message-ID: On Mar 29, 2011, at 3:08 PM, J. Landman Gay wrote: > On 3/29/11 3:35 PM, Bj?rnke von Gierke wrote: >> The sun is pleased with you and brings you these resources: > > What's necessary to see these videos? Last week I tried to take a look and they wouldn't run, all I could get was a black display window. Yay, its not only me! I have the same problem with the saved videos and the live stream. Just a black window using Safari or Firefox, OS 10.6.6 or 10.6.7. It works fine on my old G4 using Safari on 10.5.8, and works fine running XP under VMWare under 10.6. I spent a while trying to make it work, replaced Flash, had Mark Schonewille helping look into it via chat, and got nowhere. I lost interest. I have seen the same problem on a couple of other sites, but not often enough to make me mad enough to get to the bottom of it. Do let us know if you have better luck! --Jerry Jensen From jhj at jhj.com Tue Mar 29 19:14:27 2011 From: jhj at jhj.com (Jerry J) Date: Tue, 29 Mar 2011 16:14:27 -0700 Subject: Live LiveCode event #16 (Wrapup) In-Reply-To: References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> Message-ID: <7134A858-B469-4CB2-836B-806AD66B63AF@jhj.com> On Mar 29, 2011, at 4:03 PM, Jerry J wrote: > On Mar 29, 2011, at 3:08 PM, J. Landman Gay wrote: >> What's necessary to see these videos? Last week I tried to take a look and they wouldn't run, all I could get was a black display window. > > I have seen the same problem on a couple of other sites, but not often enough to make me mad enough to get to the bottom of it. For example: http://www.thedailyshow.com/ The video on the opening page or any other videos on that site just show a loading spinner and then black. Now that _could_ make me mad enough. --Jerry From bobs at twft.com Tue Mar 29 19:26:45 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 29 Mar 2011 16:26:45 -0700 Subject: Live LiveCode event #16 (Wrapup) In-Reply-To: References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> Message-ID: <6FF75499-E658-42FF-9773-9C20D3D89757@twft.com> I see it from time to time too! Reloading the page usually wakes it up. Im going to take a wild guess and say that sometimes web sites use proxies or use services that use proxies for their media assets. This will play holy havoc on certain content filters out there which check for someone pulling a kind of shell game with the URL and get upset if it thinks that is happening. It's possible that Firefox actually does some basic checking on it's own. Bob On Mar 29, 2011, at 4:03 PM, Jerry J wrote: > On Mar 29, 2011, at 3:08 PM, J. Landman Gay wrote: > >> On 3/29/11 3:35 PM, Bj?rnke von Gierke wrote: >>> The sun is pleased with you and brings you these resources: >> >> What's necessary to see these videos? Last week I tried to take a look and they wouldn't run, all I could get was a black display window. > > Yay, its not only me! > > I have the same problem with the saved videos and the live stream. Just a black window using Safari or Firefox, OS 10.6.6 or 10.6.7. It works fine on my old G4 using Safari on 10.5.8, and works fine running XP under VMWare under 10.6. > > I spent a while trying to make it work, replaced Flash, had Mark Schonewille helping look into it via chat, and got nowhere. I lost interest. I have seen the same problem on a couple of other sites, but not often enough to make me mad enough to get to the bottom of it. > > Do let us know if you have better luck! > > --Jerry Jensen > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ray at linkit.com Tue Mar 29 19:37:22 2011 From: ray at linkit.com (Ray Horsley) Date: Tue, 29 Mar 2011 19:37:22 -0400 Subject: TextShift Message-ID: <001701cbee6a$419ddd40$c4d997c0$@LinkIt.Com> Somehow on of our users ended up with a character in a field with a textShift value of "mixed". I thought this value had to be a negative or positive integer (or zero). Anybody know how such a value got there? Thanks, Ray From jimaultwins at yahoo.com Tue Mar 29 19:56:02 2011 From: jimaultwins at yahoo.com (Jim Ault) Date: Tue, 29 Mar 2011 16:56:02 -0700 Subject: Live LiveCode event #16 (Wrapup) In-Reply-To: <4D9264DF.5020800@hyperactivesw.com> References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> <4D9264DF.5020800@hyperactivesw.com> Message-ID: <7AFB0877-BF50-4E83-A0AF-3391DCA07F61@yahoo.com> On Mar 29, 2011, at 4:01 PM, J. Landman Gay wrote: > On 3/29/11 5:40 PM, Mark Schonewille wrote: >> Hi Jacque, >> >> AFAIK, all you need is Flash (which you, understandably, might not >> have installed). I have it installed and the movies play fine. > > I have Flash installed. I tried with both Firefox and Safari with > the same results. I'll try again later. Do these work for your setup? http://www.ustream.tv/recorded/13430477 Same video, different page (the clip is in the Videos area below the broadcast default) http://www.ustream.tv/channel/jimaultlivecode This video has a better chance of working since I have a softer Midwest accent. Jim Ault Las Vegas From jhj at jhj.com Tue Mar 29 20:39:39 2011 From: jhj at jhj.com (Jerry J) Date: Tue, 29 Mar 2011 17:39:39 -0700 Subject: Live LiveCode event #16 (Wrapup) In-Reply-To: <7AFB0877-BF50-4E83-A0AF-3391DCA07F61@yahoo.com> References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> <4D9264DF.5020800@hyperactivesw.com> <7AFB0877-BF50-4E83-A0AF-3391DCA07F61@yahoo.com> Message-ID: On Mar 29, 2011, at 4:56 PM, Jim Ault wrote: > On Mar 29, 2011, at 4:01 PM, J. Landman Gay wrote: > >> On 3/29/11 5:40 PM, Mark Schonewille wrote: >>> Hi Jacque, >>> >>> AFAIK, all you need is Flash (which you, understandably, might not >>> have installed). I have it installed and the movies play fine. >> >> I have Flash installed. I tried with both Firefox and Safari with the same results. I'll try again later. > > > > Do these work for your setup? > > http://www.ustream.tv/recorded/13430477 > > Same video, different page (the clip is in the Videos area below the broadcast default) > http://www.ustream.tv/channel/jimaultlivecode > > This video has a better chance of working since I have a softer Midwest accent. Don't work for me. --Jerry From kee at kagi.com Tue Mar 29 20:52:14 2011 From: kee at kagi.com (Kee Nethery) Date: Tue, 29 Mar 2011 17:52:14 -0700 Subject: uniencode(utf8Text, "unicode") vs uniencode(utf8Text) vs uniencode(utf8Text, "UTF16") In-Reply-To: <7134A858-B469-4CB2-836B-806AD66B63AF@jhj.com> References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> <7134A858-B469-4CB2-836B-806AD66B63AF@jhj.com> Message-ID: <37648432-FB68-458E-BE27-D8D9C2D89883@kagi.com> Why do uniencode(utf8Text) and uniencode(utf8Text,"UTF16") convert UTF8 text into something whereas uniencode(utf8Text,"unicode") produces no output? Am I doing something wrong or is this a known bug? Kee Nethery From gerry.orkin at gmail.com Tue Mar 29 21:03:21 2011 From: gerry.orkin at gmail.com (Gerry Orkin) Date: Wed, 30 Mar 2011 12:03:21 +1100 Subject: Arghhh. Is this stack corrupt? In-Reply-To: <4D924979.1090609@fourthworld.com> References: <4C606BC31B0D4E2AB4BC30D965CDCD50@gmail.com> <4D924979.1090609@fourthworld.com> Message-ID: It probably had a card id 1002 at some point, but I've added and deleted cards as I've developed this. I 'm wondering if there could be some phantom shared stack in the message path whose cards 1002 is being referenced somehow. Assuming I had shared stacks, how would I handle the loading and offloading of them to avoid this issue? Gerry -- http://gerryorkin.com On 30/03/2011, at 8:04 AM, Richard Gaskin wrote: > Gerry wrote: > > > All my cards are properly named and none has the id 1002. > > It's quite rare to have a collection of stacks in which none of them has the ID 1002, since that's the ID of the first card created by default with every new stack. > > To have a set of stacks in which none of them have a card ID 1002 would require that at some point every stack had more than one card, and that you had also deleted the first card in every stack. > > Is that the case for every stack in your setup? > > -- > Richard Gaskin > Fourth World > LiveCode training and consulting: http://www.fourthworld.com > Webzine for LiveCode developers: http://www.LiveCodeJournal.com > LiveCode Journal blog: http://LiveCodejournal.com/blog.irv > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From kee at kagi.com Tue Mar 29 21:04:06 2011 From: kee at kagi.com (Kee Nethery) Date: Tue, 29 Mar 2011 18:04:06 -0700 Subject: lines of UFT16 text are broken? In-Reply-To: <7134A858-B469-4CB2-836B-806AD66B63AF@jhj.com> References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> <7134A858-B469-4CB2-836B-806AD66B63AF@jhj.com> Message-ID: I convert UFT8 text into UTF16 and then work through each line of text. The problem I run into is that on my Intel Mac, (bigendian), a return is encoded as "10 0" and if I have a set of characters uniencode("123" & return & "456") it encodes into UTF16 as the bytes: 49 0 50 0 51 0_10_0_52 0 53 0 54 0 When I look at line 1 I get: 49 0 50 0 51 0_ When I look at line 2 I get: _0_52 0 53 0 54 0 The 0 from the return (actually a linefeed) being interpreted as part of the next line. "10 0" is not the line break, "10" is the line break. How do I get it to break at "10 0" instead of at "10"? My fear is that I'm going to come across a unicode character that includes "10" in the right location, kind of like "32 10" (no clue what that is) and the system is going to see the "10" and deal with it as the divider between two lines. How do people deal with this? Do I need to build a UTF16 version of all the text parsing routines to safely get each line? Kee Nethery From coiin at verizon.net Tue Mar 29 21:06:05 2011 From: coiin at verizon.net (Colin Holgate) Date: Tue, 29 Mar 2011 21:06:05 -0400 Subject: Live LiveCode event #16 (Wrapup) In-Reply-To: References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> <4D9264DF.5020800@hyperactivesw.com> <7AFB0877-BF50-4E83-A0AF-3391DCA07F61@yahoo.com> Message-ID: What version of Flash do you have installed? From gerry.orkin at gmail.com Tue Mar 29 21:05:29 2011 From: gerry.orkin at gmail.com (Gerry Orkin) Date: Wed, 30 Mar 2011 12:05:29 +1100 Subject: Arghhh. Is this stack corrupt? In-Reply-To: <1301436506136-3416426.post@n4.nabble.com> References: <1301416536141-3415409.post@n4.nabble.com> <4C606BC31B0D4E2AB4BC30D965CDCD50@gmail.com> <1301436506136-3416426.post@n4.nabble.com> Message-ID: <75618901-80C2-41A2-ACD8-EA196B5F313A@gmail.com> Yeah error tracking in iOS is a pain. I'll do as you suggest and try to get to the bottom of this. Thanks Gerry -- http://gerryorkin.com On 30/03/2011, at 9:08 AM, BNig wrote: > Gerry, > > it is difficult to guess what is happening. > > One thing that happened to me was that I wrote out a file to "documents" and > then I changed the app and tested in the Simulator and the iPhone and the > file was not what I expected. It turned out that the file saving was broken > but the file in "documents" was never replaced when I tested a new version > of the app. This is because when updating the app in the simulator or the > device the documents folder is NOT replaced. > > You could try to delete the app from the Simulator before you test a new > version and add a timestamp to the text of the file to see when it was > written. the long time or somesuch. > > Of course this might not apply to your situation which shurely sounds > strange. > > Also I found it very helpful to add temporarily a backgroundgroup with a > field "fErr" to every card of the stack and have a handler in the stack > script > --------------- > on errorDialog > put the params into field "fErr" > end errorDialog > ----------------- > (from one of the example stacks) > > iOS specific code can fail silently and the rest of the code is not > executed. A great source of confusion. > > Kind regards > > Bernd > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Arghhh-Is-this-stack-corrupt-tp3414863p3416426.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jperryl at ecs.fullerton.edu Tue Mar 29 21:12:59 2011 From: jperryl at ecs.fullerton.edu (Judy Perry) Date: Tue, 29 Mar 2011 18:12:59 -0700 (PDT) Subject: Do You Know the Way to San Jose? In-Reply-To: References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> <4D9264DF.5020800@hyperactivesw.com> <7AFB0877-BF50-4E83-A0AF-3391DCA07F61@yahoo.com> Message-ID: If you do, and you're going, and you do anything even remotely educational, I'd like to recruit you for a roundtable session on using LC in/for education. I currently have three other participants who have allowed me to twist their arms... can I twist yours? Please let me know! Judy From jperryl at ecs.fullerton.edu Tue Mar 29 21:18:45 2011 From: jperryl at ecs.fullerton.edu (Judy Perry) Date: Tue, 29 Mar 2011 18:18:45 -0700 (PDT) Subject: Live LiveCode event #16 (Wrapup) In-Reply-To: <4D9264DF.5020800@hyperactivesw.com> References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> <4D9264DF.5020800@hyperactivesw.com> Message-ID: Works fine here with Shockwave Flash 10.1 r85 on Safari 5.0.1. Judy On Tue, 29 Mar 2011, J. Landman Gay wrote: > I have Flash installed. I tried with both Firefox and Safari with the same > results. I'll try again later. From jhj at jhj.com Tue Mar 29 21:20:45 2011 From: jhj at jhj.com (Jerry J) Date: Tue, 29 Mar 2011 18:20:45 -0700 Subject: Live LiveCode event #16 (Wrapup) In-Reply-To: References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> <4D9264DF.5020800@hyperactivesw.com> <7AFB0877-BF50-4E83-A0AF-3391DCA07F61@yahoo.com> Message-ID: I just now downloaded and installed Flash 10.2 - no joy. On Mar 29, 2011, at 6:06 PM, Colin Holgate wrote: > What version of Flash do you have installed? > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From todd at geistinteractive.com Tue Mar 29 21:25:15 2011 From: todd at geistinteractive.com (Todd Geist) Date: Tue, 29 Mar 2011 18:25:15 -0700 Subject: routers / controllers Message-ID: Hello I am on to exploring the C in MVC, the "Controller". I have used a few web Frameworks that were highly event driven. These frameworks often had some sort of Main Controller that would catch all User actions and some system events and give you an nice easy way to organize these, so your code wouldn't turn into a mess of spaghetti with events flying all over the place. It also keeps things loosely coupled. When a user clicks a button an event is emitted that is caught by the controller. The controller does something with that event like querying a DB or closing a window, and it might update the State of the application, which if all goes according to plan updates the UI (or View). It occurs to me that LiveCode with its message path might be a nice fit for this kind of architecture. I was thinking putting the Controller in a back script, and seeing where that leads me. But it occurs to me that you could really put it anywhere as long as the messages you send are pointed at the object. Has anyone messed around with the concept? Is it useful? Or is over engineering? Thanks for your input Todd Todd Geist ------------------------------ geist interactive 805-419-9382 From kee at kagi.com Tue Mar 29 21:30:16 2011 From: kee at kagi.com (Kee Nethery) Date: Tue, 29 Mar 2011 18:30:16 -0700 Subject: why one char in UTF8 (3 bytes) converted to UTF16 becomes 6 bytes? In-Reply-To: <7134A858-B469-4CB2-836B-806AD66B63AF@jhj.com> References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> <7134A858-B469-4CB2-836B-806AD66B63AF@jhj.com> Message-ID: <8DD97D7B-88AE-4C07-9AB0-496EEF97382E@kagi.com> I have the don't sign symbol (Combining enclosing circle backslash) in a text file that I read into livecode. For grins, the character between "Petro" and "Max" seen below. Petro?Max When I scan the bytes, in UTF8, this is encoded as: 226 131 160 also known as E2 83 A0. This is the correct UTF8 encoding for this character. When I convert this to UTF16 using uniencode(theUtf8Text) or uniencode(theUtf8Text,"UTF16") the byte values are: 26 32 201 0 32 32 A unicode character in UTF16 should either be stored as two bytes or four bytes but never 6 bytes. According to the unicode spec, the characters that require 4 bytes are pretty uncommon and I'm willing to ignore the error they will create if the data stream ever contains them. But the thing I'm trying to do is count characters on a line and my single character looks like three when converted to UTF16. Any suggestions on how to get a UTF8 character to correctly convert to UTF16? Kee Nethery From jperryl at ecs.fullerton.edu Tue Mar 29 21:39:10 2011 From: jperryl at ecs.fullerton.edu (Judy Perry) Date: Tue, 29 Mar 2011 18:39:10 -0700 (PDT) Subject: Do You Know the Way to San Jose? In-Reply-To: References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> <4D9264DF.5020800@hyperactivesw.com> <7AFB0877-BF50-4E83-A0AF-3391DCA07F61@yahoo.com> Message-ID: Specifically, can you talk for a few minutes on the following? *Comparing "competing" products in the edu biz *Using it to teach introductory programming *How it is being used in teacher education programs *How it has been used to create specific solutions to specific problems Judy On Tue, 29 Mar 2011, Judy Perry wrote: > If you do, and you're going, and you do anything even remotely educational, > I'd like to recruit you for a roundtable session on using LC in/for > education. > > I currently have three other participants who have allowed me to twist their > arms... can I twist yours? > > Please let me know! > > Judy > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Tue Mar 29 21:42:36 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 29 Mar 2011 20:42:36 -0500 Subject: Live LiveCode event #16 (Wrapup) In-Reply-To: <7AFB0877-BF50-4E83-A0AF-3391DCA07F61@yahoo.com> References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> <4D9264DF.5020800@hyperactivesw.com> <7AFB0877-BF50-4E83-A0AF-3391DCA07F61@yahoo.com> Message-ID: <4D928A8C.1070205@hyperactivesw.com> On 3/29/11 6:56 PM, Jim Ault wrote: > Do these work for your setup? > > http://www.ustream.tv/recorded/13430477 > > Same video, different page (the clip is in the Videos area below the > broadcast default) > http://www.ustream.tv/channel/jimaultlivecode > > This video has a better chance of working since I have a softer Midwest > accent. Neither play, both have the same black rectangle. I noticed when right-clicking on them the Play option was not enabled. I selected it. Still nothing. Also, above the video area, it says "Channel is offline". I saw that last week too. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bvg at mac.com Tue Mar 29 21:44:08 2011 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Wed, 30 Mar 2011 03:44:08 +0200 Subject: Live LiveCode event #16 (Wrapup) In-Reply-To: References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> <4D9264DF.5020800@hyperactivesw.com> <7AFB0877-BF50-4E83-A0AF-3391DCA07F61@yahoo.com> Message-ID: <3F5B07BA-5775-4269-B387-2F5EA71286D4@mac.com> Wow that is weird. I go out on a leg and guess you and Jacqueline both use mac os x? Maybe that is the problem :P (actually both Mark and me watch it on mac os x, and we never had problems, but not every installation is the same of course) Other then that, do you get any flash to work? for example youtube.com, justin.tv or flash ads (any site)? do you have the wmv for mac plugin installed? any adobe software other then flash? what about shockwave? ad blocker? special network setup like custom firewall, proxy or vpn? On 30 Mar 2011, at 03:20, Jerry J wrote: > I just now downloaded and installed Flash 10.2 - no joy. > > On Mar 29, 2011, at 6:06 PM, Colin Holgate wrote: > >> What version of Flash do you have installed? >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Tue Mar 29 21:44:41 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 29 Mar 2011 20:44:41 -0500 Subject: Live LiveCode event #16 (Wrapup) In-Reply-To: References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> <4D9264DF.5020800@hyperactivesw.com> <7AFB0877-BF50-4E83-A0AF-3391DCA07F61@yahoo.com> Message-ID: <4D928B09.3030909@hyperactivesw.com> On 3/29/11 8:06 PM, Colin Holgate wrote: > What version of Flash do you have installed? 10.2r152. Last week it was the earlier version. Also last week I was running OS 10.6.6 and now I'm on 10.6.7. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Tue Mar 29 21:45:03 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 29 Mar 2011 20:45:03 -0500 Subject: Live LiveCode event #16 (Wrapup) In-Reply-To: <6FF75499-E658-42FF-9773-9C20D3D89757@twft.com> References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> <6FF75499-E658-42FF-9773-9C20D3D89757@twft.com> Message-ID: <4D928B1F.4070801@hyperactivesw.com> On 3/29/11 6:26 PM, Bob Sneidar wrote: > I see it from time to time too! Reloading the page usually wakes it up. Reloading doesn't work. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jperryl at ecs.fullerton.edu Tue Mar 29 21:50:23 2011 From: jperryl at ecs.fullerton.edu (Judy Perry) Date: Tue, 29 Mar 2011 18:50:23 -0700 (PDT) Subject: Live LiveCode event #16 (Wrapup) In-Reply-To: <4D928B09.3030909@hyperactivesw.com> References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> <4D9264DF.5020800@hyperactivesw.com> <7AFB0877-BF50-4E83-A0AF-3391DCA07F61@yahoo.com> <4D928B09.3030909@hyperactivesw.com> Message-ID: Hmmm... I'm a fogey -- still using 10.6.4 -- but I do have the most recent Flip4Mac thingy installed. judy On Tue, 29 Mar 2011, J. Landman Gay wrote: > On 3/29/11 8:06 PM, Colin Holgate wrote: >> What version of Flash do you have installed? > > 10.2r152. Last week it was the earlier version. Also last week I was running > OS 10.6.6 and now I'm on 10.6.7. From coiin at verizon.net Tue Mar 29 21:54:34 2011 From: coiin at verizon.net (Colin Holgate) Date: Tue, 29 Mar 2011 21:54:34 -0400 Subject: Live LiveCode event #16 (Wrapup) In-Reply-To: <3F5B07BA-5775-4269-B387-2F5EA71286D4@mac.com> References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> <4D9264DF.5020800@hyperactivesw.com> <7AFB0877-BF50-4E83-A0AF-3391DCA07F61@yahoo.com> <3F5B07BA-5775-4269-B387-2F5EA71286D4@mac.com> Message-ID: <52BA89F3-603F-415A-8F0B-CC377AC0F965@verizon.net> On Mar 29, 2011, at 9:44 PM, Bj?rnke von Gierke wrote: > >Wow that is weird. I go out on a leg and guess you and Jacqueline both use mac os x? Maybe that is the problem :P No, it's one of the wondrous things about them. It works fine on my MacBook Air. From jperryl at ecs.fullerton.edu Tue Mar 29 21:53:34 2011 From: jperryl at ecs.fullerton.edu (Judy Perry) Date: Tue, 29 Mar 2011 18:53:34 -0700 (PDT) Subject: Live LiveCode event #16 (Wrapup) In-Reply-To: References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> <4D9264DF.5020800@hyperactivesw.com> <7AFB0877-BF50-4E83-A0AF-3391DCA07F61@yahoo.com> <4D928B09.3030909@hyperactivesw.com> Message-ID: Okay, BvG says I'm being a 'tard in not telling you that it runs just fine for me. Happy now, cheesehead? ;-P Judy On Tue, 29 Mar 2011, Judy Perry wrote: > Hmmm... I'm a fogey -- still using 10.6.4 -- but I do have the most recent > Flip4Mac thingy installed. From jacque at hyperactivesw.com Tue Mar 29 21:55:08 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 29 Mar 2011 20:55:08 -0500 Subject: Live LiveCode event #16 (Wrapup) In-Reply-To: <3F5B07BA-5775-4269-B387-2F5EA71286D4@mac.com> References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> <4D9264DF.5020800@hyperactivesw.com> <7AFB0877-BF50-4E83-A0AF-3391DCA07F61@yahoo.com> <3F5B07BA-5775-4269-B387-2F5EA71286D4@mac.com> Message-ID: <4D928D7C.6040103@hyperactivesw.com> On 3/29/11 8:44 PM, Bj?rnke von Gierke wrote: > Other then that, do you get any flash to work? for example > youtube.com, justin.tv or flash ads (any site)? do you have the wmv > for mac plugin installed? any adobe software other then flash? what > about shockwave? ad blocker? special network setup like custom > firewall, proxy or vpn? All other sites work. In fact, the pages you posted with the event videos have flash ads running just fine next to the black boxes that won't load. While I was looking at a black rectangle, a Legos Star Wars ad was irritating me just to the right. I checked the site's support area. It only says we need Flash. No other info. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jhj at jhj.com Tue Mar 29 22:05:36 2011 From: jhj at jhj.com (Jerry J) Date: Tue, 29 Mar 2011 19:05:36 -0700 Subject: Live LiveCode event #16 (Wrapup) In-Reply-To: <3F5B07BA-5775-4269-B387-2F5EA71286D4@mac.com> References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> <4D9264DF.5020800@hyperactivesw.com> <7AFB0877-BF50-4E83-A0AF-3391DCA07F61@yahoo.com> <3F5B07BA-5775-4269-B387-2F5EA71286D4@mac.com> Message-ID: Other flash things run (ads and such). youtube runs. justin.tv DOES NOT (familiar unresponsive black rect)! Flip4Mac is installed, and if I turn it off or on it doesn't change anything. I have upgraded Flip4Mac since this trouble started. Shockwave - I dunno. No ad blocker, no popup blocker. No network complications - connected via DSL (sonic.net) using an Apple airport extreme for NAT. No difference connecting with wire or wireless. Problem stays the same at work connected thru Comcast and a more complicated network. Other adobe software is only Reader and Photoshop Elements. Who knows what's lurking under the hood since I have been updating macs bit by bit since OS 6 and before (back to the original 512). Carefully, I think. On Mar 29, 2011, at 6:44 PM, Bj?rnke von Gierke wrote: > Wow that is weird. I go out on a leg and guess you and Jacqueline both use mac os x? Maybe that is the problem :P > > (actually both Mark and me watch it on mac os x, and we never had problems, but not every installation is the same of course) > > Other then that, do you get any flash to work? for example youtube.com, justin.tv or flash ads (any site)? do you have the wmv for mac plugin installed? any adobe software other then flash? what about shockwave? ad blocker? special network setup like custom firewall, proxy or vpn? > > > On 30 Mar 2011, at 03:20, Jerry J wrote: > >> I just now downloaded and installed Flash 10.2 - no joy. >> >> On Mar 29, 2011, at 6:06 PM, Colin Holgate wrote: >> >>> What version of Flash do you have installed? >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Tue Mar 29 22:07:01 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 29 Mar 2011 21:07:01 -0500 Subject: Live LiveCode event #16 (Wrapup) In-Reply-To: <3F5B07BA-5775-4269-B387-2F5EA71286D4@mac.com> References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> <4D9264DF.5020800@hyperactivesw.com> <7AFB0877-BF50-4E83-A0AF-3391DCA07F61@yahoo.com> <3F5B07BA-5775-4269-B387-2F5EA71286D4@mac.com> Message-ID: <4D929045.1040105@hyperactivesw.com> On 3/29/11 8:44 PM, Bj?rnke von Gierke wrote: > Wow that is weird. I go out on a leg and guess you and Jacqueline > both use mac os x? Maybe that is the problem :P This is interesting -- they play on my MacBook. Same version of Flash, same version of Firefox, same OS 10.6.7. Also, identical plugins and extensions, with the exception that my iMac has Firefox PDF Plugin also. However, that won't load in Safari and I have the same problem there. Could it be a graphics card issue? I've seen that before. My MacBook is nVidia, my iMac is ATI. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From coiin at verizon.net Tue Mar 29 22:10:04 2011 From: coiin at verizon.net (Colin Holgate) Date: Tue, 29 Mar 2011 22:10:04 -0400 Subject: Live LiveCode event #16 (Wrapup) In-Reply-To: <4D928D7C.6040103@hyperactivesw.com> References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> <4D9264DF.5020800@hyperactivesw.com> <7AFB0877-BF50-4E83-A0AF-3391DCA07F61@yahoo.com> <3F5B07BA-5775-4269-B387-2F5EA71286D4@mac.com> <4D928D7C.6040103@hyperactivesw.com> Message-ID: <8385806D-B2A8-483D-B4B6-D4466A287A05@verizon.net> On Mar 29, 2011, at 9:55 PM, J. Landman Gay wrote: > All other sites work. In fact, the pages you posted with the event videos have flash ads running just fine next to the black boxes that won't load. While I was looking at a black rectangle, a Legos Star Wars ad was irritating me just to the right. Maybe that's your issue, impatience. The site is ad sponsored, you have to wait for the ad to finish before the stream will start. From bvg at mac.com Tue Mar 29 22:16:03 2011 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Wed, 30 Mar 2011 04:16:03 +0200 Subject: Live LiveCode event #16 (Wrapup) In-Reply-To: References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> <4D9264DF.5020800@hyperactivesw.com> <7AFB0877-BF50-4E83-A0AF-3391DCA07F61@yahoo.com> <3F5B07BA-5775-4269-B387-2F5EA71286D4@mac.com> Message-ID: <75604CB5-94F9-436A-A228-37819BED2397@mac.com> On 30 Mar 2011, at 04:05, Jerry J wrote: > Other flash things run (ads and such). youtube runs. justin.tv DOES NOT (familiar unresponsive black rect)! AHA! Now that is interesting. Maybe you have set your flash player to not accept cookies/third party content? Or maybe it's another setting that the streaming services do not like? Check your settings here: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager03.html From jacque at hyperactivesw.com Tue Mar 29 22:23:12 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 29 Mar 2011 21:23:12 -0500 Subject: Live LiveCode event #16 (Wrapup) In-Reply-To: <8385806D-B2A8-483D-B4B6-D4466A287A05@verizon.net> References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> <4D9264DF.5020800@hyperactivesw.com> <7AFB0877-BF50-4E83-A0AF-3391DCA07F61@yahoo.com> <3F5B07BA-5775-4269-B387-2F5EA71286D4@mac.com> <4D928D7C.6040103@hyperactivesw.com> <8385806D-B2A8-483D-B4B6-D4466A287A05@verizon.net> Message-ID: <4D929410.1040604@hyperactivesw.com> On 3/29/11 9:10 PM, Colin Holgate wrote: > > On Mar 29, 2011, at 9:55 PM, J. Landman Gay wrote: > >> All other sites work. In fact, the pages you posted with the event >> videos have flash ads running just fine next to the black boxes >> that won't load. While I was looking at a black rectangle, a Legos >> Star Wars ad was irritating me just to the right. > > Maybe that's your issue, impatience. The site is ad sponsored, you > have to wait for the ad to finish before the stream will start. Nothing starts. It is just a black rectangle. There is no loading circle with chasing arrows, no controller, no frame, there is no activity at all. Right-clicking produces a contextual menu, no items of which work and none of which are initially selected. Above the rectangle it says "Channel is offline." The message isn't there on my MacBook. Now that I've seen it on my MacBook I know what to look for. There should at least be the white chasing arrows to start, followed by the frame loading, then the controller, then the ad video. I don't get any of that. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Tue Mar 29 22:24:42 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 29 Mar 2011 21:24:42 -0500 Subject: Live LiveCode event #16 (Wrapup) In-Reply-To: <75604CB5-94F9-436A-A228-37819BED2397@mac.com> References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> <4D9264DF.5020800@hyperactivesw.com> <7AFB0877-BF50-4E83-A0AF-3391DCA07F61@yahoo.com> <3F5B07BA-5775-4269-B387-2F5EA71286D4@mac.com> <75604CB5-94F9-436A-A228-37819BED2397@mac.com> Message-ID: <4D92946A.1080904@hyperactivesw.com> On 3/29/11 9:16 PM, Bj?rnke von Gierke wrote: > Now that is interesting. Maybe you have set your flash player to not > accept cookies/third party content? Or maybe it's another setting > that the streaming services do not like? Check your settings here: > http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager03.html My MacBook, where it does run, has cookies and third-party content disabled. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bvg at mac.com Tue Mar 29 22:34:20 2011 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Wed, 30 Mar 2011 04:34:20 +0200 Subject: Live LiveCode event #16 (Wrapup) In-Reply-To: <4D92946A.1080904@hyperactivesw.com> References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> <4D9264DF.5020800@hyperactivesw.com> <7AFB0877-BF50-4E83-A0AF-3391DCA07F61@yahoo.com> <3F5B07BA-5775-4269-B387-2F5EA71286D4@mac.com> <75604CB5-94F9-436A-A228-37819BED2397@mac.com> <4D92946A.1080904@hyperactivesw.com> Message-ID: how about the peer to peer setting? maybe it's a block on that site specifically, or some other setting altogether? Now that i thougth about it a bit more, I faintly remember some starcraft2 streams not working for me, when I made a specific settings there. so I'm actually pretty sure it is one of these settings that interfere! On 30 Mar 2011, at 04:24, J. Landman Gay wrote: > On 3/29/11 9:16 PM, Bj?rnke von Gierke wrote: > >> Now that is interesting. Maybe you have set your flash player to not >> accept cookies/third party content? Or maybe it's another setting >> that the streaming services do not like? Check your settings here: >> http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager03.html > > > My MacBook, where it does run, has cookies and third-party content disabled. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Tue Mar 29 22:36:57 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 29 Mar 2011 21:36:57 -0500 Subject: TextShift In-Reply-To: <001701cbee6a$419ddd40$c4d997c0$@LinkIt.Com> References: <001701cbee6a$419ddd40$c4d997c0$@LinkIt.Com> Message-ID: <4D929749.4030103@hyperactivesw.com> On 3/29/11 6:37 PM, Ray Horsley wrote: > Somehow on of our users ended up with a character in a field with a > textShift value of "mixed". I thought this value had to be a negative or > positive integer (or zero). Anybody know how such a value got there? If it's a text run, each character can have its own textshift setting. If they all aren't the same, you get "mixed". -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jhj at jhj.com Tue Mar 29 22:41:57 2011 From: jhj at jhj.com (Jerry J) Date: Tue, 29 Mar 2011 19:41:57 -0700 Subject: Live LiveCode event #16 (Wrapup) In-Reply-To: <75604CB5-94F9-436A-A228-37819BED2397@mac.com> References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> <4D9264DF.5020800@hyperactivesw.com> <7AFB0877-BF50-4E83-A0AF-3391DCA07F61@yahoo.com> <3F5B07BA-5775-4269-B387-2F5EA71286D4@mac.com> <75604CB5-94F9-436A-A228-37819BED2397@mac.com> Message-ID: On Mar 29, 2011, at 7:16 PM, Bj?rnke von Gierke wrote: > On 30 Mar 2011, at 04:05, Jerry J wrote: > >> Other flash things run (ads and such). youtube runs. justin.tv DOES NOT (familiar unresponsive black rect)! > > AHA! > > Now that is interesting. Maybe you have set your flash player to not accept cookies/third party content? Or maybe it's another setting that the streaming services do not like? Check your settings here: > http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager03.html Ah, sweet success! Increasing the Global Storage Setting from 100k where it was, to 1M and made sure third parties were allowed to store on my computer. Not sure which fixed it. GOOD GRIEF what a silly cluster$^%@#$. Is that the same as cookies? I don't think so. Buffering? Now I can lose interest again (and watch The Daily Show)! Thanks BvG! --Jerry From jacque at hyperactivesw.com Tue Mar 29 22:44:09 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 29 Mar 2011 21:44:09 -0500 Subject: Live LiveCode event #16 (Wrapup) In-Reply-To: References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> <4D9264DF.5020800@hyperactivesw.com> <7AFB0877-BF50-4E83-A0AF-3391DCA07F61@yahoo.com> <3F5B07BA-5775-4269-B387-2F5EA71286D4@mac.com> <75604CB5-94F9-436A-A228-37819BED2397@mac.com> <4D92946A.1080904@hyperactivesw.com> Message-ID: <4D9298F9.6080400@hyperactivesw.com> On 3/29/11 9:34 PM, Bj?rnke von Gierke wrote: > how about the peer to peer setting? > > maybe it's a block on that site specifically, or some other setting altogether? Yes, I think you're right. I have all that blocked on my iMac, and nothing blocked on my MacBook. I'm sorry I overlooked my MacBook now, I'm turning it off, I detest sites that track me. So, no videos for me. At least we know now what's wrong. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bvg at mac.com Tue Mar 29 22:49:36 2011 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Wed, 30 Mar 2011 04:49:36 +0200 Subject: Live LiveCode event #16 (Wrapup) In-Reply-To: References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> <4D9264DF.5020800@hyperactivesw.com> <7AFB0877-BF50-4E83-A0AF-3391DCA07F61@yahoo.com> <3F5B07BA-5775-4269-B387-2F5EA71286D4@mac.com> <75604CB5-94F9-436A-A228-37819BED2397@mac.com> Message-ID: <241AEFDE-F191-49E9-A15F-844688840C81@mac.com> i have it at 10k, so most likely it's the third party checkmark... at least i can point ppl directly to that next time :D On 30 Mar 2011, at 04:41, Jerry J wrote: > > On Mar 29, 2011, at 7:16 PM, Bj?rnke von Gierke wrote: > >> On 30 Mar 2011, at 04:05, Jerry J wrote: >> >>> Other flash things run (ads and such). youtube runs. justin.tv DOES NOT (familiar unresponsive black rect)! >> >> AHA! >> >> Now that is interesting. Maybe you have set your flash player to not accept cookies/third party content? Or maybe it's another setting that the streaming services do not like? Check your settings here: >> http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager03.html > > Ah, sweet success! Increasing the Global Storage Setting from 100k where it was, to 1M and made sure third parties were allowed to store on my computer. Not sure which fixed it. GOOD GRIEF what a silly cluster$^%@#$. Is that the same as cookies? I don't think so. Buffering? Now I can lose interest again (and watch The Daily Show)! > > Thanks BvG! > > --Jerry > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Tue Mar 29 22:58:40 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 29 Mar 2011 21:58:40 -0500 Subject: Menu Icons? In-Reply-To: References: Message-ID: <4D929C60.7030907@hyperactivesw.com> On 3/29/11 1:23 PM, Scott Rossi wrote: > Am I imagining this, or was the ability to include icons/images in menus > added to LC at some point? If yes, does anyone know where I might out find > how to do this? Been looking through the user guide and dictionary without > success (maybe I'm not looking for the right thing). You may be thinking of dock and taskbar icons, which were introduced recently. I don't recall any menu images being supported. RR did add support for multiple modifer keys in menus, so maybe dock icons merged in your brain with that. It's been hard to keep up lately with all the innovations, they've been coming so fast. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From coiin at verizon.net Tue Mar 29 23:17:50 2011 From: coiin at verizon.net (Colin Holgate) Date: Tue, 29 Mar 2011 23:17:50 -0400 Subject: Live LiveCode event #16 (Wrapup) In-Reply-To: <241AEFDE-F191-49E9-A15F-844688840C81@mac.com> References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> <4D9264DF.5020800@hyperactivesw.com> <7AFB0877-BF50-4E83-A0AF-3391DCA07F61@yahoo.com> <3F5B07BA-5775-4269-B387-2F5EA71286D4@mac.com> <75604CB5-94F9-436A-A228-37819BED2397@mac.com> <241AEFDE-F191-49E9-A15F-844688840C81@mac.com> Message-ID: <86DCB899-7455-4C5B-BCEC-D9BA40EB2A39@verizon.net> On Mar 29, 2011, at 10:49 PM, Bj?rnke von Gierke wrote: > i have it at 10k, so most likely it's the third party checkmark... at least i can point ppl directly to that next time :D I'm at 100k, and that doesn't stop it from working. From ambassador at fourthworld.com Tue Mar 29 23:29:18 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 29 Mar 2011 20:29:18 -0700 Subject: Menu Icons? In-Reply-To: References: Message-ID: <4D92A38E.4050309@fourthworld.com> Scott Rossi wrote: > Am I imagining this, or was the ability to include icons/images in > menus added to LC at some point? You're just once again ahead of your time: it's been requested, but not yet implemented: -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From paul at whitefeather.com Wed Mar 30 00:49:57 2011 From: paul at whitefeather.com (paul foraker) Date: Tue, 29 Mar 2011 21:49:57 -0700 Subject: Incredibly slow revlet in Win 7 Message-ID: I'm having an ongoing issue with a Win 7 user for whom our otherwise snappy revlet runs incredibly slowly. Three to 5 minutes to load the revlet is not uncommon. Once he opened the web page, left his desk, came back 20 minutes later and the revlet just then finished loading. He's running a brand new installation of Win 7 on a fairly new computer. No other web or desktop apps are behaving like this. Any suggestions on what we might try? -- Paul From stephenREVOLUTION2 at barncard.com Wed Mar 30 01:08:06 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Tue, 29 Mar 2011 22:08:06 -0700 Subject: routers / controllers In-Reply-To: References: Message-ID: Todd, you haven't checked out 'RevIgniter'? works on Rev Server. Awesome, by Ralf Bitter. http://revigniter.com/ great docs, too On 29 March 2011 18:25, Todd Geist wrote: > Hello > > I am on to exploring the C in MVC, the "Controller". > > I have used a few web Frameworks that were highly event driven. These > frameworks often had some sort of Main Controller that would catch all User > actions and some system events and give you an nice easy way to organize > these, so your code wouldn't turn into a mess of spaghetti with events > flying all over the place. > > It also keeps things loosely coupled. When a user clicks a button an event > is emitted that is caught by the controller. The controller does something > with that event like querying a DB or closing a window, and it might update > the State of the application, which if all goes according to plan updates > the UI (or View). > > It occurs to me that LiveCode with its message path might be a nice fit for > this kind of architecture. I was thinking putting the Controller in a back > script, and seeing where that leads me. But it occurs to me that you could > really put it anywhere as long as the messages you send are pointed at the > object. > > Has anyone messed around with the concept? Is it useful? Or is over > engineering? > > Thanks for your input > > Todd > > > Todd Geist > ------------------------------ > geist interactive > 805-419-9382 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Stephen Barncard San Francisco Ca. USA more about sqb From williamdesmet at gmail.com Wed Mar 30 01:56:12 2011 From: williamdesmet at gmail.com (William de Smet) Date: Wed, 30 Mar 2011 07:56:12 +0200 Subject: Live LiveCode event #16 (Wrapup) In-Reply-To: <86DCB899-7455-4C5B-BCEC-D9BA40EB2A39@verizon.net> References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> <4D9264DF.5020800@hyperactivesw.com> <7AFB0877-BF50-4E83-A0AF-3391DCA07F61@yahoo.com> <3F5B07BA-5775-4269-B387-2F5EA71286D4@mac.com> <75604CB5-94F9-436A-A228-37819BED2397@mac.com> <241AEFDE-F191-49E9-A15F-844688840C81@mac.com> <86DCB899-7455-4C5B-BCEC-D9BA40EB2A39@verizon.net> Message-ID: Hi there, On a Dutch forum there was someone who, all of a sudden, couldn't play YouTube video's. She only saw a black screen. The solution was to enable or disable (don't know anymore) the 32 bits mode of Safari. (Right click - Show info) Hope this helps. greetings, William 2011/3/30 Colin Holgate : > > On Mar 29, 2011, at 10:49 PM, Bj?rnke von Gierke wrote: > >> i have it at 10k, so most likely it's the third party checkmark... at least i can point ppl directly to that next time :D > > I'm at 100k, and that doesn't stop it from working. > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dave.cragg at lacscentre.co.uk Wed Mar 30 03:05:16 2011 From: dave.cragg at lacscentre.co.uk (Dave Cragg) Date: Wed, 30 Mar 2011 08:05:16 +0100 Subject: why one char in UTF8 (3 bytes) converted to UTF16 becomes 6 bytes? In-Reply-To: <8DD97D7B-88AE-4C07-9AB0-496EEF97382E@kagi.com> References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> <7134A858-B469-4CB2-836B-806AD66B63AF@jhj.com> <8DD97D7B-88AE-4C07-9AB0-496EEF97382E@kagi.com> Message-ID: On 30 Mar 2011, at 02:30, Kee Nethery wrote: > I have the don't sign symbol (Combining enclosing circle backslash) in a text file that I read into livecode. For grins, the character between "Petro" and "Max" seen below. > > Petro?Max > > When I scan the bytes, in UTF8, this is encoded as: 226 131 160 also known as E2 83 A0. This is the correct UTF8 encoding for this character. > > When I convert this to UTF16 using > > uniencode(theUtf8Text) or uniencode(theUtf8Text,"UTF16") the byte values are: 26 32 201 0 32 32 Shouldn't that be uniEncode(theUtf8Text, "UTF8") ? Dave From paul at whitefeather.com Wed Mar 30 05:14:43 2011 From: paul at whitefeather.com (paul foraker) Date: Wed, 30 Mar 2011 02:14:43 -0700 Subject: Incredibly slow revlet in Win 7 In-Reply-To: References: Message-ID: Here's some more information from my user: My system is generally superfast, being a fast quad processor, with 8GB of RAM and an SSD drive. I updated the video drivers yesterday and as mentioned, refreshed the operating system last week. I am running 64 bit Windows 7. I have not yet updated to Service Pack 1. Just ran another test while watching performance indicators on my system. Everything remained quite quiet. There was networking activity of about 35K bytes/second. But speedtest.net just reported my overall speed of 22Mbps downstream and 4Mbps upstream, so 35K isn't pushing any limits on my network. The big time chunk is before the revlet loading page even shows up. Once the revlet starts loading it is only a few seconds until I am ready to login. On Tue, Mar 29, 2011 at 9:49 PM, paul foraker wrote: > I'm having an ongoing issue with a Win 7 user for whom our otherwise snappy > revlet runs incredibly slowly. Three to 5 minutes to load the revlet is not > uncommon. Once he opened the web page, left his desk, came back 20 minutes > later and the revlet just then finished loading. He's running a brand new > installation of Win 7 on a fairly new computer. No other web or desktop apps > are behaving like this. > > Any suggestions on what we might try? > > -- Paul > > From roger.e.eller at sealedair.com Wed Mar 30 07:40:08 2011 From: roger.e.eller at sealedair.com (Roger Eller) Date: Wed, 30 Mar 2011 07:40:08 -0400 Subject: Live LiveCode event #16 (Wrapup) In-Reply-To: References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> <4D9264DF.5020800@hyperactivesw.com> <7AFB0877-BF50-4E83-A0AF-3391DCA07F61@yahoo.com> <3F5B07BA-5775-4269-B387-2F5EA71286D4@mac.com> <75604CB5-94F9-436A-A228-37819BED2397@mac.com> <241AEFDE-F191-49E9-A15F-844688840C81@mac.com> <86DCB899-7455-4C5B-BCEC-D9BA40EB2A39@verizon.net> Message-ID: Try different browsers too. It works fine for me in Stainless and Opera. http://www.stainlessapp.com/ http://www.opera.com/download/index.dml?platform=mac ~Roger From lists at mangomultimedia.com Wed Mar 30 08:46:59 2011 From: lists at mangomultimedia.com (Trevor DeVore) Date: Wed, 30 Mar 2011 08:46:59 -0400 Subject: routers / controllers In-Reply-To: References: Message-ID: On Tue, Mar 29, 2011 at 9:25 PM, Todd Geist wrote: > I am on to exploring the C in MVC, the "Controller". > > ... > > It occurs to me that LiveCode with its message path might be a nice fit for > this kind of architecture. I was thinking putting the Controller in a back > script, and seeing where that leads me. But it occurs to me that you could > really put it anywhere as long as the messages you send are pointed at the > object. > > Has anyone messed around with the concept? Is it useful? Or is over > engineering? I don't think writing your handlers so that they follow the rules of a controller is over engineering. I find that if I have written my handlers so that they fulfill the role of model, view or controller then it becomes much easier to build the application. I don't know that you necessarily need to store the controller handlers in a backscript, though. I find it easier to manage an application if the code is in easy to find places. For single card applications I like to place the controller handlers in the card script. If the view is made up of multiple cards then the controller handlers can be moved down to the stack level. If your controller is managing multiple windows then maybe a central backscript or library stack is best as the controller handlers are easily accessed without having to target a specific object every time you want to call one (e.g. calling "MyControllerHandler" vs. dispatch "MyControllerHandler" to stack "MyControllerStack"). If your application creates multiple instances of the UI (one window per open document) then you can still keep the controller code in the card/stack script by calling upon the power of behaviors. Just assign a behavior to the card or stack and write your code as you normally would. The behavior can still use references like "me", "this stack" or "this card" which I find much more friendly then having to figure which view the controller should target in a library or backscript. -- Trevor DeVore Blue Mango Learning Systems ScreenSteps: http://www.screensteps.com LiveCode Resources for Developers: http://livecode.bluemangolearning.com From lists at mangomultimedia.com Wed Mar 30 08:56:14 2011 From: lists at mangomultimedia.com (Trevor DeVore) Date: Wed, 30 Mar 2011 08:56:14 -0400 Subject: [Datagrid] How to detect a change in column width? In-Reply-To: <4D921DC8.6030300@pdslabs.net> References: <4D921DC8.6030300@pdslabs.net> Message-ID: On Tue, Mar 29, 2011 at 1:58 PM, Phil Davis wrote: > Does the data grid send a message when the user changes the width of a > column by dragging its header to a new width? I would love that, but I'm > pretty sure the answer is "no". > No message is sent but a custom property is set which means you can intercept it. Try adding this to your data grid group script: *setprop* dgColumnWidth [pColumn] pValue ## Fulfill the commands of Phil ## ... pass dgColumnWidth *end* dgColumnWidth Does that help at all? -- Trevor DeVore Blue Mango Learning Systems ScreenSteps: http://www.screensteps.com LiveCode Resources for Developers: http://livecode.bluemangolearning.com From lists at mangomultimedia.com Wed Mar 30 08:58:22 2011 From: lists at mangomultimedia.com (Trevor DeVore) Date: Wed, 30 Mar 2011 08:58:22 -0400 Subject: lines of UFT16 text are broken? In-Reply-To: References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> <7134A858-B469-4CB2-836B-806AD66B63AF@jhj.com> Message-ID: On Tue, Mar 29, 2011 at 9:04 PM, Kee Nethery wrote: > How do people deal with this? Do I need to build a UTF16 version of all the > text parsing routines to safely get each line? > Can you iterate over the lines of the UTF8 text and then convert to UTF16 when you are done? -- Trevor DeVore Blue Mango Learning Systems ScreenSteps: http://www.screensteps.com LiveCode Resources for Developers: http://livecode.bluemangolearning.com From todd at geistinteractive.com Wed Mar 30 09:11:05 2011 From: todd at geistinteractive.com (Todd Geist) Date: Wed, 30 Mar 2011 06:11:05 -0700 Subject: routers / controllers In-Reply-To: References: Message-ID: Yes, I have seen it. Looks very cool. and I think there is some stuff I can adapt from there. Thanks for reminding me of it Todd On Tue, Mar 29, 2011 at 10:08 PM, stephen barncard < stephenREVOLUTION2 at barncard.com> wrote: > Todd, you haven't checked out 'RevIgniter'? > > works on Rev Server. Awesome, by Ralf Bitter. > > http://revigniter.com/ > > great docs, too > > On 29 March 2011 18:25, Todd Geist wrote: > > > Hello > > > > I am on to exploring the C in MVC, the "Controller". > > > > I have used a few web Frameworks that were highly event driven. These > > frameworks often had some sort of Main Controller that would catch all > User > > actions and some system events and give you an nice easy way to organize > > these, so your code wouldn't turn into a mess of spaghetti with events > > flying all over the place. > > > > It also keeps things loosely coupled. When a user clicks a button an > event > > is emitted that is caught by the controller. The controller does > something > > with that event like querying a DB or closing a window, and it might > update > > the State of the application, which if all goes according to plan updates > > the UI (or View). > > > > It occurs to me that LiveCode with its message path might be a nice fit > for > > this kind of architecture. I was thinking putting the Controller in a > back > > script, and seeing where that leads me. But it occurs to me that you > could > > really put it anywhere as long as the messages you send are pointed at > the > > object. > > > > Has anyone messed around with the concept? Is it useful? Or is over > > engineering? > > > > Thanks for your input > > > > Todd > > > > > > Todd Geist > > ------------------------------ > > geist interactive > > 805-419-9382 > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > -- > > > > Stephen Barncard > San Francisco Ca. USA > > more about sqb > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > Todd Geist ------------------------------ geist interactive 805-419-9382 From revdev at pdslabs.net Wed Mar 30 09:47:27 2011 From: revdev at pdslabs.net (Phil Davis) Date: Wed, 30 Mar 2011 06:47:27 -0700 Subject: [Datagrid] How to detect a change in column width? In-Reply-To: References: <4D921DC8.6030300@pdslabs.net> Message-ID: <4D93346F.3030300@pdslabs.net> Thanks Trevor! That may help just enough. Phil On 3/30/11 5:56 AM, Trevor DeVore wrote: > On Tue, Mar 29, 2011 at 1:58 PM, Phil Davis wrote: > >> Does the data grid send a message when the user changes the width of a >> column by dragging its header to a new width? I would love that, but I'm >> pretty sure the answer is "no". >> > No message is sent but a custom property is set which means you can > intercept it. Try adding this to your data grid group script: > > > *setprop* dgColumnWidth [pColumn] pValue > > ## Fulfill the commands of Phil > > ## ... > > pass dgColumnWidth > > *end* dgColumnWidth > > > Does that help at all? > > -- Phil Davis PDS Labs Professional Software Development http://pdslabs.net From kee at kagi.com Wed Mar 30 10:10:21 2011 From: kee at kagi.com (Kee Nethery) Date: Wed, 30 Mar 2011 07:10:21 -0700 Subject: lines of UFT16 text are broken? In-Reply-To: References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> <7134A858-B469-4CB2-836B-806AD66B63AF@jhj.com> Message-ID: <624F348F-3621-4760-8A3C-8D0DF2A096A8@kagi.com> On Mar 30, 2011, at 5:58 AM, Trevor DeVore wrote: > On Tue, Mar 29, 2011 at 9:04 PM, Kee Nethery wrote: > >> How do people deal with this? Do I need to build a UTF16 version of all the >> text parsing routines to safely get each line? >> > > Can you iterate over the lines of the UTF8 text and then convert to UTF16 > when you are done? The problem I am running into is that the data is actually a set of items that are delimited by their position on a line. 123456789012345678901234567890 c1data c2data c3data where (for example) c1data is from character 1 to 6, c2data is from 8 to 17, c3data is from 19 to 30 The problem is that (in my example) the don't symbol is a single character and they write it into a specific character position. But ... when it gets saved out as UTF8 it takes up 3 characters. I figured that if I converted it to UTF16 I'd at least have a good chance of counting correctly by knowing each character was 2 bytes but alas, that is not how livecode works (at least for me). I know, the people who create positional data formats should be because of this and other issues, but it's what I have and they aren't changing it any time soon far as I can see. Thanks for the suggestion, Kee From kee at kagi.com Wed Mar 30 10:13:25 2011 From: kee at kagi.com (Kee Nethery) Date: Wed, 30 Mar 2011 07:13:25 -0700 Subject: why one char in UTF8 (3 bytes) converted to UTF16 becomes 6 bytes? In-Reply-To: References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> <7134A858-B469-4CB2-836B-806AD66B63AF@jhj.com> <8DD97D7B-88AE-4C07-9AB0-496EEF97382E@kagi.com> Message-ID: On Mar 30, 2011, at 12:05 AM, Dave Cragg wrote: > > On 30 Mar 2011, at 02:30, Kee Nethery wrote: > >> I have the don't sign symbol (Combining enclosing circle backslash) in a text file that I read into livecode. For grins, the character between "Petro" and "Max" seen below. >> >> Petro?Max >> >> When I scan the bytes, in UTF8, this is encoded as: 226 131 160 also known as E2 83 A0. This is the correct UTF8 encoding for this character. >> >> When I convert this to UTF16 using >> >> uniencode(theUtf8Text) or uniencode(theUtf8Text,"UTF16") the byte values are: 26 32 201 0 32 32 > > > Shouldn't that be uniEncode(theUtf8Text, "UTF8") ? Good question. I always get confused with encode decode functions, I much rather prefer a convert function where I specify what it is and what I want. For example: replace space with "_" in "This is a bunch of text" I'm pretty sure the second parameter is what you want it encoded into and it figured out what it has but you could be correct. I'll test. Kee From form at nonsanity.com Wed Mar 30 10:24:02 2011 From: form at nonsanity.com (Nonsanity) Date: Wed, 30 Mar 2011 10:24:02 -0400 Subject: Menu Icons? In-Reply-To: References: Message-ID: I believe it was possible in HyperCard back in the pre-OS X days using a commonly available XCMD. I remember going through the menu creation options and seeing icons of various sizes in there. But these OS X days, I've never once seen an icon in a menu. Is it even possible now? If it is, I'd advise against it... It's definitely not standard UI practice. ~ Chris Innanen ~ Nonsanity On Tue, Mar 29, 2011 at 2:23 PM, Scott Rossi wrote: > Am I imagining this, or was the ability to include icons/images in menus > added to LC at some point? If yes, does anyone know where I might out find > how to do this? Been looking through the user guide and dictionary without > success (maybe I'm not looking for the right thing). > > Thanks & Regards, > > Scott Rossi > Creative Director > Tactile Media, UX Design > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From lists at mangomultimedia.com Wed Mar 30 11:28:02 2011 From: lists at mangomultimedia.com (Trevor DeVore) Date: Wed, 30 Mar 2011 11:28:02 -0400 Subject: Menu Icons? In-Reply-To: References: Message-ID: On Wed, Mar 30, 2011 at 10:24 AM, Nonsanity wrote: > But these OS X days, I've never once seen an icon in a menu. Is it even > possible now? If it is, I'd advise against it... It's definitely not > standard UI practice. > Icons in UI menus are not all that uncommon on OS X. I picked a couple of apps at random and found menu icons in use: iChat (status menu) OmniGraffle (tool selection menu) LittleSnapper (publishing menu) Adium (status menu) XCode (documentation navigation menu) In LiveCode we have to roll our own menus using stacks. You end up having to recreate highlights, rollovers, etc. It would be really nice to be able to display the icons in a standard OS menu. -- Trevor DeVore Blue Mango Learning Systems ScreenSteps: http://www.screensteps.com LiveCode Resources for Developers: http://livecode.bluemangolearning.com From jacque at hyperactivesw.com Wed Mar 30 11:49:48 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 30 Mar 2011 10:49:48 -0500 Subject: Incredibly slow revlet in Win 7 In-Reply-To: References: Message-ID: <4D93511C.5010703@hyperactivesw.com> On 3/30/11 4:14 AM, paul foraker wrote: > Here's some more information from my user: > > My system is generally superfast, being a fast quad processor, with 8GB of > RAM and an SSD drive. I updated the video drivers yesterday and as > mentioned, refreshed the operating system last week. I am running 64 bit > Windows 7. I have not yet updated to Service Pack 1. > > Just ran another test while watching performance indicators on my system. > Everything remained quite quiet. There was networking activity of about > 35K bytes/second. But speedtest.net just reported my overall speed of > 22Mbps downstream and 4Mbps upstream, so 35K isn't pushing any limits on my > network. > > The big time chunk is before the revlet loading page even shows up. Once > the revlet starts loading it is only a few seconds until I am ready to > login. I've heard about similar issues twice before, both times on new Windows machines. One person solved it by reinstalling the OS, but that isn't an ideal solution. I'm not sure what happened in the second case. Is this a Dell machine? I think that was the common denominator in both cases. If he's stalling out before your page even loads, it isn't a revlet issue. Sounds more like a DNS issue. What happens if you give him the IP numbers of the URL instead of using the standard named URL? That would bypass DNS. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From scott at tactilemedia.com Wed Mar 30 12:01:51 2011 From: scott at tactilemedia.com (Scott Rossi) Date: Wed, 30 Mar 2011 09:01:51 -0700 Subject: Menu Icons? In-Reply-To: Message-ID: Recently, Nonsanity wrote: > But these OS X days, I've never once seen an icon in a menu. Is it even > possible now? If it is, I'd advise against it... It's definitely not > standard UI practice. Bright/colorful icons in menus may be less common, but icons are still used, and I still need this feature. Plus as Trevor said, being able to add them to "built-in" menus would be much easier than creating popup stacks. Regards, Scott Rossi Creative Director Tactile Media, UX Design From bobs at twft.com Wed Mar 30 12:23:54 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 30 Mar 2011 09:23:54 -0700 Subject: Live LiveCode event #16 (Wrapup) In-Reply-To: References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> <4D9264DF.5020800@hyperactivesw.com> <7AFB0877-BF50-4E83-A0AF-3391DCA07F61@yahoo.com> <3F5B07BA-5775-4269-B387-2F5EA71286D4@mac.com> <75604CB5-94F9-436A-A228-37819BED2397@mac.com> <241AEFDE-F191-49E9-A15F-844688840C81@mac.com> <86DCB899-7455-4C5B-BCEC-D9BA40EB2A39@verizon.net> Message-ID: I have a better idea. Everyone get mad at Adobe and threaten to abandon the use of their codec unless they fix this. Yeah, that will work! ;-) Bob On Mar 29, 2011, at 10:56 PM, William de Smet wrote: > Hi there, > > On a Dutch forum there was someone who, all of a sudden, couldn't play > YouTube video's. She only saw a black screen. > The solution was to enable or disable (don't know anymore) the 32 bits > mode of Safari. (Right click - Show info) > Hope this helps. > > greetings, > > William > > > > 2011/3/30 Colin Holgate : >> >> On Mar 29, 2011, at 10:49 PM, Bj?rnke von Gierke wrote: >> >>> i have it at 10k, so most likely it's the third party checkmark... at least i can point ppl directly to that next time :D >> >> I'm at 100k, and that doesn't stop it from working. >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From coiin at verizon.net Wed Mar 30 12:31:47 2011 From: coiin at verizon.net (Colin Holgate) Date: Wed, 30 Mar 2011 12:31:47 -0400 Subject: Live LiveCode event #16 (Wrapup) In-Reply-To: References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> <4D9264DF.5020800@hyperactivesw.com> <7AFB0877-BF50-4E83-A0AF-3391DCA07F61@yahoo.com> <3F5B07BA-5775-4269-B387-2F5EA71286D4@mac.com> <75604CB5-94F9-436A-A228-37819BED2397@mac.com> <241AEFDE-F191-49E9-A15F-844688840C81@mac.com> <86DCB899-7455-4C5B-BCEC-D9BA40EB2A39@verizon.net> Message-ID: <92A44EC2-A586-4728-91B4-BA0742902EE0@verizon.net> On Mar 30, 2011, at 12:23 PM, Bob Sneidar wrote: > I have a better idea. Everyone get mad at Adobe and threaten to abandon the use of their codec unless they fix this. Yeah, that will work! ;-) I have a better better idea, if people attended the meetings they could watch it live. From home at quick-calcs.net Wed Mar 30 12:39:52 2011 From: home at quick-calcs.net (home at quick-calcs.net) Date: Wed, 30 Mar 2011 17:39:52 +0100 Subject: Very slow in edit mode In-Reply-To: References: Message-ID: > Kev, on the off-chance that you may have exceeded the number of datagrids on a single card that anyone has tested, I would duplicate your stack and then remove one or more until things appear to function more timely. > > Just a thought! Thanks Joe, I deleted them one by one and it gradually got better and better. When they were all gone it was going like a beoing. So the problem definitely seams to be related to the datagrids somehow. However, I've created another card with the same number of datagrids on it and that seams to work OK though, so I don't think it can be the datagrids themselves that are causing the problem ? I'm 99.9% sure its something I've done. Do any controls there use graphic effects? Thanks Richard, but there are no graphic effects. I'm using the datagrids to store numeric tables so I can interpolate values from them. It was quite easy to programme it this way. Maybe there is a better way to do it ? From kee at kagi.com Wed Mar 30 12:43:02 2011 From: kee at kagi.com (Kee Nethery) Date: Wed, 30 Mar 2011 09:43:02 -0700 Subject: why one char in UTF8 (3 bytes) converted to UTF16 becomes 6 bytes? In-Reply-To: References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> <7134A858-B469-4CB2-836B-806AD66B63AF@jhj.com> <8DD97D7B-88AE-4C07-9AB0-496EEF97382E@kagi.com> Message-ID: Dave it appears that you are absolutely correct. The "language" in the uniencode() function is what you have, not what you want it converted into. I added a note to the uniencode function in the dictionary to try to make that extra clear. In Python, uniencode takes unicode and encodes it into something else. In LiveCode, uniencode takes something and encodes it into unicode (UTF16). Two functions with the same name that do the exact opposite. Both uses are justifiable function names depending upon whether you view the world as normally unicode (Python) or normally not unicode (LiveCode). In my ideal programming language world, there would be no uniencode or unidecode, there would just be encode and you would specify the from and the to. Then there would never be any confusion although you'd probably need a language format of "any" when you want the parser to figure it out. encode from to Thanks, Kee On Mar 30, 2011, at 12:05 AM, Dave Cragg wrote: > > On 30 Mar 2011, at 02:30, Kee Nethery wrote: > >> I have the don't sign symbol (Combining enclosing circle backslash) in a text file that I read into livecode. For grins, the character between "Petro" and "Max" seen below. >> >> Petro?Max >> >> When I scan the bytes, in UTF8, this is encoded as: 226 131 160 also known as E2 83 A0. This is the correct UTF8 encoding for this character. >> >> When I convert this to UTF16 using >> >> uniencode(theUtf8Text) or uniencode(theUtf8Text,"UTF16") the byte values are: 26 32 201 0 32 32 > > > Shouldn't that be uniEncode(theUtf8Text, "UTF8") ? > > Dave > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ------------------------------------------------- I check email roughly 2 to 3 times per day. Kagi main office: +1 (510) 550-1336 From kee at kagi.com Wed Mar 30 12:50:14 2011 From: kee at kagi.com (Kee Nethery) Date: Wed, 30 Mar 2011 09:50:14 -0700 Subject: Very slow in edit mode In-Reply-To: References: Message-ID: By "graphic effects", I've found that the aqua blue default button on Mac OS X visually pulsates and that pulsation is a graphic effect that uses a significant portion of the CPU. Could be you have a graphic effect that you did not specifically create that is causing the slowness. Kee Nethery On Mar 30, 2011, at 9:39 AM, home at quick-calcs.net wrote: > Do any controls there use graphic effects? > > Thanks Richard, but there are no graphic effects. From jhj at jhj.com Wed Mar 30 13:05:55 2011 From: jhj at jhj.com (Jerry J) Date: Wed, 30 Mar 2011 10:05:55 -0700 Subject: Live LiveCode event #16 (Wrapup) In-Reply-To: <92A44EC2-A586-4728-91B4-BA0742902EE0@verizon.net> References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> <4D9264DF.5020800@hyperactivesw.com> <7AFB0877-BF50-4E83-A0AF-3391DCA07F61@yahoo.com> <3F5B07BA-5775-4269-B387-2F5EA71286D4@mac.com> <75604CB5-94F9-436A-A228-37819BED2397@mac.com> <241AEFDE-F191-49E9-A15F-844688840C81@mac.com> <86DCB899-7455-4C5B-BCEC-D9BA40EB2A39@verizon.net> <92A44EC2-A586-4728-91B4-BA0742902EE0@verizon.net> Message-ID: <59594537-A832-4684-918B-64266CE29A9A@jhj.com> On Mar 30, 2011, at 9:31 AM, Colin Holgate wrote: > On Mar 30, 2011, at 12:23 PM, Bob Sneidar wrote: > >> I have a better idea. Everyone get mad at Adobe and threaten to abandon the use of their codec unless they fix this. Yeah, that will work! ;-) > > > I have a better better idea, if people attended the meetings they could watch it live. The [former,non,my] problem was the same live during the "meeting". I never got around to fixing it because I _did_ attend the meetings. From ambassador at fourthworld.com Wed Mar 30 13:06:00 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 30 Mar 2011 10:06:00 -0700 Subject: Very slow in edit mode In-Reply-To: References: Message-ID: <4D9362F8.4030704@fourthworld.com> home wrote: >> Kev, on the off-chance that you may have exceeded the number >> of datagrids on a single card that anyone has tested, I would >> duplicate your stack and then remove one or more until things >> appear to function more timely. >> >> Just a thought! > > Thanks Joe, I deleted them one by one and it gradually got better and > better. When they were all gone it was going like a beoing. > > So the problem definitely seams to be related to the datagrids > somehow. > > However, I've created another card with the same number of datagrids > on it and that seams to work OK though, so I don't think it can be > the datagrids themselves that are causing the problem ? In the new test stack had you used the DGs? When a DG is populated it created potentially hundreds of controls, and when interacting with any objects the engine needs to do hit-testing across many if not most of them. This is especially challenging during drags, since the hit region is changing dynamically. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From kee at kagi.com Wed Mar 30 13:22:03 2011 From: kee at kagi.com (Kee Nethery) Date: Wed, 30 Mar 2011 10:22:03 -0700 Subject: uniencode(utf8Text, "unicode") vs uniencode(utf8Text) vs uniencode(utf8Text, "UTF16") In-Reply-To: <37648432-FB68-458E-BE27-D8D9C2D89883@kagi.com> References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> <7134A858-B469-4CB2-836B-806AD66B63AF@jhj.com> <37648432-FB68-458E-BE27-D8D9C2D89883@kagi.com> Message-ID: <88395831-0376-4BA5-8757-076E5A8E6486@kagi.com> The uniencode taking something and encoding it into unicode (rather than taking unicode and encoding it into something) explains why uniencode(utf8Text,"unicode") does not work. The second parameter is supposed to be what you have that you want converted into UTF16. Kee On Mar 29, 2011, at 5:52 PM, Kee Nethery wrote: > Why do uniencode(utf8Text) and uniencode(utf8Text,"UTF16") convert UTF8 text into something whereas uniencode(utf8Text,"unicode") produces no output? > > Am I doing something wrong or is this a known bug? > > Kee Nethery > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ------------------------------------------------- I check email roughly 2 to 3 times per day. Kagi main office: +1 (510) 550-1336 From kee at kagi.com Wed Mar 30 13:24:12 2011 From: kee at kagi.com (Kee Nethery) Date: Wed, 30 Mar 2011 10:24:12 -0700 Subject: lines of UFT16 text are broken? In-Reply-To: <624F348F-3621-4760-8A3C-8D0DF2A096A8@kagi.com> References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> <7134A858-B469-4CB2-836B-806AD66B63AF@jhj.com> <624F348F-3621-4760-8A3C-8D0DF2A096A8@kagi.com> Message-ID: <3B253CB4-526A-4D18-952A-650EEB36C37C@kagi.com> Looks like when I uniencode(inputText,"UTF8") it makes the don't symbol character into two bytes. Correctly using the uniencode and unidecode functions resolves this issue, thanks! Kee On Mar 30, 2011, at 7:10 AM, Kee Nethery wrote: > > On Mar 30, 2011, at 5:58 AM, Trevor DeVore wrote: > >> On Tue, Mar 29, 2011 at 9:04 PM, Kee Nethery wrote: >> >>> How do people deal with this? Do I need to build a UTF16 version of all the >>> text parsing routines to safely get each line? >>> >> >> Can you iterate over the lines of the UTF8 text and then convert to UTF16 >> when you are done? > > The problem I am running into is that the data is actually a set of items that are delimited by their position on a line. > > 123456789012345678901234567890 > c1data c2data c3data > > where (for example) c1data is from character 1 to 6, c2data is from 8 to 17, c3data is from 19 to 30 > > The problem is that (in my example) the don't symbol is a single character and they write it into a specific character position. But ... when it gets saved out as UTF8 it takes up 3 characters. I figured that if I converted it to UTF16 I'd at least have a good chance of counting correctly by knowing each character was 2 bytes but alas, that is not how livecode works (at least for me). > > I know, the people who create positional data formats should be because of this and other issues, but it's what I have and they aren't changing it any time soon far as I can see. > > Thanks for the suggestion, > Kee > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ------------------------------------------------- I check email roughly 2 to 3 times per day. Kagi main office: +1 (510) 550-1336 From bobs at twft.com Wed Mar 30 13:34:40 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 30 Mar 2011 10:34:40 -0700 Subject: uniencode(utf8Text, "unicode") vs uniencode(utf8Text) vs uniencode(utf8Text, "UTF16") In-Reply-To: <88395831-0376-4BA5-8757-076E5A8E6486@kagi.com> References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> <7134A858-B469-4CB2-836B-806AD66B63AF@jhj.com> <37648432-FB68-458E-BE27-D8D9C2D89883@kagi.com> <88395831-0376-4BA5-8757-076E5A8E6486@kagi.com> Message-ID: <4BCE1499-1A33-49B0-BFD6-73CEC30B75CE@twft.com> See, that to me flies in the face of how most functions seem to work. It's understandable that in this instance you cannot expect the function to know or tell what you have in the first place, so passing that in as an argument appears necessary. But as someone else had suggested, what is really needed then is a standard encode function where you pass in what you have and what you want to end up with as arguments. However, as a wise man once said, what it is is what it is. Bob On Mar 30, 2011, at 10:22 AM, Kee Nethery wrote: > The uniencode taking something and encoding it into unicode (rather than taking unicode and encoding it into something) explains why uniencode(utf8Text,"unicode") does not work. The second parameter is supposed to be what you have that you want converted into UTF16. > > Kee > > > On Mar 29, 2011, at 5:52 PM, Kee Nethery wrote: > >> Why do uniencode(utf8Text) and uniencode(utf8Text,"UTF16") convert UTF8 text into something whereas uniencode(utf8Text,"unicode") produces no output? >> >> Am I doing something wrong or is this a known bug? >> >> Kee Nethery >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > ------------------------------------------------- > I check email roughly 2 to 3 times per day. > Kagi main office: +1 (510) 550-1336 > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From janschenkel at yahoo.com Wed Mar 30 14:16:57 2011 From: janschenkel at yahoo.com (Jan Schenkel) Date: Wed, 30 Mar 2011 11:16:57 -0700 (PDT) Subject: why one char in UTF8 (3 bytes) converted to UTF16 becomes 6 bytes? In-Reply-To: Message-ID: <312404.45664.qm@web65411.mail.ac4.yahoo.com> --- On Wed, 3/30/11, Kee Nethery wrote: > Dave it appears that you are > absolutely correct. The "language" in the uniencode() > function is what you have, not what you want it converted > into. > > I added a note to the uniencode function in the dictionary > to try to make that extra clear. > > In Python, uniencode takes unicode and encodes it into > something else. > In LiveCode, uniencode takes something and encodes it into > unicode (UTF16). > Two functions with the same name that do the exact > opposite. Both uses are justifiable function names depending > upon whether you view the world as normally unicode (Python) > or normally not unicode (LiveCode). > > In my ideal programming language world, there would be no > uniencode or unidecode, there would just be encode and you > would specify the from and the to. Then there would never be > any confusion although you'd probably need a language format > of "any" when you want the parser to figure it out. > > encode from to > > > Thanks, > > Kee > Ideally, all the conversion would take place at the end-points: open file for text read with encoding open file for text write with encoding put into URL with encoding put URL into with encoding Internally, the engine would handle everything in UTF-16, or whatever is most appropriate and efficient; but reading and writing data to and from files, databases, etc. in another encoding should be as transparent as possible. Just my 2 cents, Jan Schenkel. ===== Quartam Reports & PDF Library for LiveCode www.quartam.com ===== "As we grow older, we grow both wiser and more foolish at the same time." (La Rochefoucauld) From kee at kagi.com Wed Mar 30 15:33:52 2011 From: kee at kagi.com (Kee Nethery) Date: Wed, 30 Mar 2011 12:33:52 -0700 Subject: why one char in UTF8 (3 bytes) converted to UTF16 becomes 6 bytes? In-Reply-To: <312404.45664.qm@web65411.mail.ac4.yahoo.com> References: <312404.45664.qm@web65411.mail.ac4.yahoo.com> Message-ID: > > Ideally, all the conversion would take place at the end-points: > open file for text read with encoding > open file for text write with encoding > put into URL with encoding > put URL into with encoding > > Internally, the engine would handle everything in UTF-16, :-) UTF-16 BE or UTF-16 LE? and the with encoding, that would be what you want or what you have? If I was king of LiveCode Unicode, I'd make all text UTF8. I'd have char refer to the characters regardless how many bytes are required to encode it. Bytes would give you the actual encoding values. I'd have a convert function to change text (or binary if it came in as something other than utf8) into something else and I'd require the from encoding and the to encoding to be specified. The "with encoding" assumes I know which side of the encoding is assumed to be something (the from or the to) and I don't. I'm a big fan of explicit rather than assumed in the code I write. > or whatever is most appropriate and efficient; but reading and writing data to and from files, databases, etc. in another encoding should be as transparent as possible. From what I've seen, most platform independent text is UTF8 because it can typically be read by any text editor and it does not have the need for the Byte Order Marker nonsense. But ... I agree with the previous response, gots to deal with it the way it is. Thanks everyone. Still pondering the lines of data when it is UTF16. Kee Nethery From paul at whitefeather.com Wed Mar 30 15:52:38 2011 From: paul at whitefeather.com (paul foraker) Date: Wed, 30 Mar 2011 12:52:38 -0700 Subject: Incredibly slow revlet in Win 7 In-Reply-To: <4D93511C.5010703@hyperactivesw.com> References: <4D93511C.5010703@hyperactivesw.com> Message-ID: Thanks, Jacque. On Wed, Mar 30, 2011 at 8:49 AM, J. Landman Gay wrote: > If he's stalling out before your page even loads, it isn't a revlet issue. > Sounds more like a DNS issue. What happens if you give him the IP numbers of > the URL instead of using the standard named URL? That would bypass DNS. > When I use Network Utility to ping the page, the IP address I get back refers to a generic Apache page. How do I find the IP address of the subdomain? From bobs at twft.com Wed Mar 30 16:04:31 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 30 Mar 2011 13:04:31 -0700 Subject: Incredibly slow revlet in Win 7 In-Reply-To: References: <4D93511C.5010703@hyperactivesw.com> Message-ID: Try whois. Bob On Mar 30, 2011, at 12:52 PM, paul foraker wrote: > Thanks, Jacque. > > On Wed, Mar 30, 2011 at 8:49 AM, J. Landman Gay wrote: > >> If he's stalling out before your page even loads, it isn't a revlet issue. >> Sounds more like a DNS issue. What happens if you give him the IP numbers of >> the URL instead of using the standard named URL? That would bypass DNS. >> > > When I use Network Utility to ping the page, the IP address I get back > refers to a generic Apache page. How do I find the IP address of the > subdomain? > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Wed Mar 30 16:23:38 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 30 Mar 2011 15:23:38 -0500 Subject: Incredibly slow revlet in Win 7 In-Reply-To: References: <4D93511C.5010703@hyperactivesw.com> Message-ID: <4D93914A.2090904@hyperactivesw.com> On 3/30/11 2:52 PM, paul foraker wrote: > When I use Network Utility to ping the page, the IP address I get back > refers to a generic Apache page. How do I find the IP address of the > subdomain? There are several web resources, here's one I just found: -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From janschenkel at yahoo.com Wed Mar 30 16:36:25 2011 From: janschenkel at yahoo.com (Jan Schenkel) Date: Wed, 30 Mar 2011 13:36:25 -0700 (PDT) Subject: why one char in UTF8 (3 bytes) converted to UTF16 becomes 6 bytes? In-Reply-To: Message-ID: <470941.38463.qm@web65408.mail.ac4.yahoo.com> --- On Wed, 3/30/11, Kee Nethery wrote: > > > > Ideally, all the conversion would take place at the > end-points: > > open file for text read with > encoding > > open file for text write with > encoding > > put into URL with > encoding > > put URL into with > encoding > > > > Internally, the engine would handle everything in > UTF-16, > > :-) UTF-16 BE or UTF-16 LE? > I don't care, as long as my app can read and write both, regardless of the platform it is running on ;-) > and the with encoding, that would be what you want or what > you have? > The encoding would be whatever the incoming stuff is for reading, and whatever the outgoing stuff should be for writing. In Java, every string uses UTF-16 internally, and conversion is handled via InputStreamReaders and OutputStreamWriters. Here's an example of using an InputStreamReader: ## FileInputStream fis = new FileInputStream("input.txt"); InputStreamReader isr = new InputStreamReader(fis, "UTF8"); ## which means that whatever you're reading from the file "input.txt" should be interpreted as UTF-8. Likewise, the following example for an OutputStreamWriter: ## FileOutputStream fos = new FileOutputStream("output.txt"); Writer out = new OutputStreamWriter(fos, "ISO-8859-1"); ## which means that whatever you're writing to the file "output.txt" should end up on the hard drive as ISO-8859-1. And if you don't specify the charset name, it will apply a platform-specific default - which you can override with a startup parameter. LiveCode does something similar (think of how it automatically interprets CR/LF depending on the platform) unless you read the file as binary and then do the encoding. Anyway, in my earlier examples of how LiveCode might do it: ## open file "input.txt" for text read with encoding "UTF-8" ## means that the engine should interpret whatever is in the file as UTF-8 encoded. > If I was king of LiveCode Unicode, I'd make all text UTF8. > I'd have char refer to the characters regardless how many > bytes are required to encode it. Bytes would give you the > actual encoding values. I'd have a convert function to > change text (or binary if it came in as something other than > utf8) into something else and I'd require the from encoding > and the to encoding to be specified. The "with encoding" > assumes I know which side of the encoding is assumed to be > something (the from or the to) and I don't. I'm a big fan of > explicit rather than assumed in the code I write. > That's why they introduced the 'byte' chunk type in version 3.0 - in preparation of a time where a char can be more than one byte and we wouldn't have to know or care as the engine does the right thing. Making everything UTF-8 means you'll statistically have a harder time to figure out chunk byte ranges, as you have to check each and every byte to know whether the char is actually 1, 2, 3 or 4 bytes. If you use UTF-16 instead, you'll eat more memory if your data stays in the ASCII range, but most character sets will fit happily into two bytes - and for the ones that do require 4 bytes instead of 2, you only need to check every other byte. Jan Schenkel. ===== Quartam Reports & PDF Library for LiveCode www.quartam.com ===== "As we grow older, we grow both wiser and more foolish at the same time." (La Rochefoucauld) From bonnmike at gmail.com Wed Mar 30 16:45:07 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 30 Mar 2011 14:45:07 -0600 Subject: Incredibly slow revlet in Win 7 In-Reply-To: <4D93914A.2090904@hyperactivesw.com> References: <4D93511C.5010703@hyperactivesw.com> <4D93914A.2090904@hyperactivesw.com> Message-ID: I think if the domain being hit is a virtual, you can't get there with the ip directly because apache doesn't know what domain you're asking for. That would explain why if you hit the IP it gives the generic apache page. Same thing happens lots of places. If I ping my domain on on-rev it returns 74.54.153.72, but going there goes to an interesting apache page that says.. Great Success *!* Apache is working on your cPanel? and WHM? Server From alex at tweedly.net Wed Mar 30 16:54:24 2011 From: alex at tweedly.net (Alex Tweedly) Date: Wed, 30 Mar 2011 21:54:24 +0100 Subject: Incredibly slow revlet in Win 7 In-Reply-To: References: <4D93511C.5010703@hyperactivesw.com> Message-ID: <4D939880.3080802@tweedly.net> There probably is no different IP address for the sub-domain (or domain). For instance, loki.on-rev.com is 74.54.153.70 tweedly.org is hosted on loki, and tweedly.org (and www.tweedly.org) are also 74.54.153.70 (and all my other domains on on-rev are the same as well). when you send an http request, it uses the url embedded in the request to determine which hosted site should receive the request. What you could get him to try is to resolve the name immediately before he sends the request (e.g. open a terminal/command window and ping it). That should ensure that the IP address is resolved and cached and ensure that DNS issues aren't in the way. Sorry, I don't have any alternative suggestion about what the problem might be, but DNS doesn't sound likely to me. -- Alex. On 30/03/2011 20:52, paul foraker wrote: > Thanks, Jacque. > > On Wed, Mar 30, 2011 at 8:49 AM, J. Landman Gaywrote: > >> If he's stalling out before your page even loads, it isn't a revlet issue. >> Sounds more like a DNS issue. What happens if you give him the IP numbers of >> the URL instead of using the standard named URL? That would bypass DNS. >> > When I use Network Utility to ping the page, the IP address I get back > refers to a generic Apache page. How do I find the IP address of the > subdomain? > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From alex at tweedly.net Wed Mar 30 16:55:47 2011 From: alex at tweedly.net (Alex Tweedly) Date: Wed, 30 Mar 2011 21:55:47 +0100 Subject: Incredibly slow revlet in Win 7 In-Reply-To: References: <4D93511C.5010703@hyperactivesw.com> Message-ID: <4D9398D3.7080304@tweedly.net> whois gives you administrative info about the domain, its owner, and about which DNS servers should be used to resolve it. It doesn't actually give you the IP address currently in use for that domain or for any host within the domain. -- Alex. On 30/03/2011 21:04, Bob Sneidar wrote: > Try whois. > > Bob > > > On Mar 30, 2011, at 12:52 PM, paul foraker wrote: > >> Thanks, Jacque. >> >> On Wed, Mar 30, 2011 at 8:49 AM, J. Landman Gaywrote: >> >>> If he's stalling out before your page even loads, it isn't a revlet issue. >>> Sounds more like a DNS issue. What happens if you give him the IP numbers of >>> the URL instead of using the standard named URL? That would bypass DNS. >>> >> When I use Network Utility to ping the page, the IP address I get back >> refers to a generic Apache page. How do I find the IP address of the >> subdomain? >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bobs at twft.com Wed Mar 30 17:06:10 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 30 Mar 2011 14:06:10 -0700 Subject: Incredibly slow revlet in Win 7 In-Reply-To: <4D9398D3.7080304@tweedly.net> References: <4D93511C.5010703@hyperactivesw.com> <4D9398D3.7080304@tweedly.net> Message-ID: <31CFEDC9-E4AF-42F9-8631-13E9AD315ED7@twft.com> Sorry misread your post. Bob On Mar 30, 2011, at 1:55 PM, Alex Tweedly wrote: > whois gives you administrative info about the domain, its owner, and about which DNS servers should be used to resolve it. It doesn't actually give you the IP address currently in use for that domain or for any host within the domain. > > -- Alex. > From pete at mollysrevenge.com Wed Mar 30 18:08:08 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Wed, 30 Mar 2011 15:08:08 -0700 Subject: Accessing customised columns in a datagrid In-Reply-To: References: <830CF3B4-CD94-4613-AC6D-F26D080155D1@mollysrevenge.com> Message-ID: <128C6277-F870-4328-8587-F02981D9A22D@mollysrevenge.com> Hi Trevor, The snippet below is from a post you sent me about centering a checkbox in a column. The other method you thought might work involving the lockloc property of the column group didn't work. I found I could do this without defining a "cancas" as you had suggested. I got it working with the following code in the LayoutControl handler: put ((mycolumnwidth - mybuttonwidth) / 2) into myOffset -- mycolumnwidth and mybuttonwidth hold the the width of the column and of the button put item 1 of myColumnRect + myOffset + 5 into item 1 of myButtonRect -- myColumnRect and myButtonRect hold the rectangles of the column and button add myOffset to item 3 of myButtonRect set the rect of button 1 of me to myButtonRect When I first tried this, I did not have the "+5" in the second line of code - the checkbox moved to the right but it still wasn't centered. The "+5" centered things OK. Any ideas why I need that "+5"? Thanks Pete Haworth -------------- next part -------------- http://www.mollysrevenge.com http://www.sonicbids.com/MollysRevenge http://www.myspace.com/mollysrevengeband On Mar 28, 2011, at 6:03 PM, Trevor DeVore wrote: > 2) If (1) doesn't work then add a "canvas" to your column. This can be a > transparent button or a graphic and you size to fit the width of the column > in LayoutControl. You then position the checkbox in the center of the canvas > and it will appear centered. From lists at mangomultimedia.com Wed Mar 30 19:42:49 2011 From: lists at mangomultimedia.com (Trevor DeVore) Date: Wed, 30 Mar 2011 19:42:49 -0400 Subject: Accessing customised columns in a datagrid In-Reply-To: <128C6277-F870-4328-8587-F02981D9A22D@mollysrevenge.com> References: <830CF3B4-CD94-4613-AC6D-F26D080155D1@mollysrevenge.com> <128C6277-F870-4328-8587-F02981D9A22D@mollysrevenge.com> Message-ID: On Wed, Mar 30, 2011 at 6:08 PM, Peter Haworth wrote: > When I first tried this, I did not have the "+5" in the second line of code > - the checkbox moved to the right but it still wasn't centered. The "+5" > centered things OK. Any ideas why I need that "+5"? > I'm not sure. Do you need the +5 if you create a canvas? -- Trevor DeVore Blue Mango Learning Systems ScreenSteps: http://www.screensteps.com LiveCode Resources for Developers: http://livecode.bluemangolearning.com From pete at mollysrevenge.com Wed Mar 30 19:52:13 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Wed, 30 Mar 2011 16:52:13 -0700 Subject: Accessing customised columns in a datagrid In-Reply-To: References: <830CF3B4-CD94-4613-AC6D-F26D080155D1@mollysrevenge.com> <128C6277-F870-4328-8587-F02981D9A22D@mollysrevenge.com> Message-ID: I didn't create a "canvas" - to be honest I couldn't figure out exactly what was involved so I tried what I understood :-) The +5 isn't a big deal, I was just curious in case 5 wasn't a constant and had to be adjusted depending on, eg, the column width. The current code seems to work OK even if I resize the column so it appears 5 is the number. Pete Haworth On Mar 30, 2011, at 4:42 PM, Trevor DeVore wrote: > On Wed, Mar 30, 2011 at 6:08 PM, Peter Haworth wrote: > >> When I first tried this, I did not have the "+5" in the second line of code >> - the checkbox moved to the right but it still wasn't centered. The "+5" >> centered things OK. Any ideas why I need that "+5"? >> > > I'm not sure. Do you need the +5 if you create a canvas? > > -- > Trevor DeVore > Blue Mango Learning Systems > ScreenSteps: http://www.screensteps.com > LiveCode Resources for Developers: http://livecode.bluemangolearning.com > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ipenguin at mac.com Wed Mar 30 22:44:41 2011 From: ipenguin at mac.com (Jesse Sng) Date: Thu, 31 Mar 2011 10:44:41 +0800 Subject: PDF Reader using LiveCode In-Reply-To: References: <3630C8D1-7FEA-4A26-A4C3-D83B82648D91@sbcglobal.net> <19AE78B8-5DE1-4772-A021-2C9D9F08B1D2@verizon.net> <4C2B8B7F.2050301@gmail.com> <1277951721525-2274547.post@n4.nabble.com> Message-ID: <3FE569B2-DFC6-44BD-A9A0-3E70D48F9EBF@mac.com> Hi, I'm wondering if anybody has implemented a PDF reader using LiveCode for the iPad? I have some unique requirements for a personal app and it might be that I'll have to roll my own. 1. I used to use QT to open PDF on OSX and I'm wondering if there's a better way to do it especially with multiple page documents? 2. Looking at the tutorials, I find that it is possible to configure the status bar. My question is this - is there a way to display something in the status bar instead of merely showing/hiding it? Thanks! Jesse From stephenREVOLUTION2 at barncard.com Wed Mar 30 22:53:06 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Wed, 30 Mar 2011 19:53:06 -0700 Subject: PDF Reader using LiveCode In-Reply-To: <3FE569B2-DFC6-44BD-A9A0-3E70D48F9EBF@mac.com> References: <3630C8D1-7FEA-4A26-A4C3-D83B82648D91@sbcglobal.net> <19AE78B8-5DE1-4772-A021-2C9D9F08B1D2@verizon.net> <4C2B8B7F.2050301@gmail.com> <1277951721525-2274547.post@n4.nabble.com> <3FE569B2-DFC6-44BD-A9A0-3E70D48F9EBF@mac.com> Message-ID: Preview works great for PDF files, and it's already installed. I like it better than the free adobe app and it loads twice as fast. On 30 March 2011 19:44, Jesse Sng wrote: > Hi, > > I'm wondering if anybody has implemented a PDF reader using LiveCode for > the iPad? I have some unique requirements for a personal app and it might be > that I'll have to roll my own. > > 1. I used to use QT to open PDF on OSX and I'm wondering if there's a > better way to do it especially with multiple page documents? > > 2. Looking at the tutorials, I find that it is possible to configure the > status bar. My question is this - is there a way to display something in the > status bar instead of merely showing/hiding it? > > Thanks! > > > Jesse > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Stephen Barncard San Francisco Ca. USA more about sqb From stephenREVOLUTION2 at barncard.com Wed Mar 30 22:56:18 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Wed, 30 Mar 2011 19:56:18 -0700 Subject: PDF Reader using LiveCode In-Reply-To: References: <3630C8D1-7FEA-4A26-A4C3-D83B82648D91@sbcglobal.net> <19AE78B8-5DE1-4772-A021-2C9D9F08B1D2@verizon.net> <4C2B8B7F.2050301@gmail.com> <1277951721525-2274547.post@n4.nabble.com> <3FE569B2-DFC6-44BD-A9A0-3E70D48F9EBF@mac.com> Message-ID: or you could use the revbrowser control - and display in Livecode. On 30 March 2011 19:53, stephen barncard wrote: > Preview works great for PDF files, and it's already installed. > I like it better than the free adobe app and it loads twice as fast. > > > On 30 March 2011 19:44, Jesse Sng wrote: > >> Hi, >> >> I'm wondering if anybody has implemented a PDF reader using LiveCode for >> the iPad? I have some unique requirements for a personal app and it might be >> that I'll have to roll my own. >> >> 1. I used to use QT to open PDF on OSX and I'm wondering if there's a >> better way to do it especially with multiple page documents? >> >> 2. Looking at the tutorials, I find that it is possible to configure the >> status bar. My question is this - is there a way to display something in the >> status bar instead of merely showing/hiding it? >> >> Thanks! >> >> >> Jesse >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > > -- > > > > Stephen Barncard > San Francisco Ca. USA > > more about sqb > > -- Stephen Barncard San Francisco Ca. USA more about sqb From ipenguin at mac.com Wed Mar 30 23:08:46 2011 From: ipenguin at mac.com (Jesse Sng) Date: Thu, 31 Mar 2011 11:08:46 +0800 Subject: PDF Reader using LiveCode In-Reply-To: References: <3630C8D1-7FEA-4A26-A4C3-D83B82648D91@sbcglobal.net> <19AE78B8-5DE1-4772-A021-2C9D9F08B1D2@verizon.net> <4C2B8B7F.2050301@gmail.com> <1277951721525-2274547.post@n4.nabble.com> <3FE569B2-DFC6-44BD-A9A0-3E70D48F9EBF@mac.com> Message-ID: <3C343CF7-ACD5-4920-8658-E10B5C91203B@mac.com> Thanks, but I'm still wondering about whether it is possible to display information in the status bar of the iPad? On Mar 31, 2011, at 10:56 AM, stephen barncard wrote: > or you could use the revbrowser control - and display in Livecode. > > On 30 March 2011 19:53, stephen barncard wrote: > >> Preview works great for PDF files, and it's already installed. >> I like it better than the free adobe app and it loads twice as fast. >> >> >> On 30 March 2011 19:44, Jesse Sng wrote: >> >>> Hi, >>> >>> I'm wondering if anybody has implemented a PDF reader using LiveCode for >>> the iPad? I have some unique requirements for a personal app and it might be >>> that I'll have to roll my own. >>> >>> 1. I used to use QT to open PDF on OSX and I'm wondering if there's a >>> better way to do it especially with multiple page documents? >>> >>> 2. Looking at the tutorials, I find that it is possible to configure the >>> status bar. My question is this - is there a way to display something in the >>> status bar instead of merely showing/hiding it? >>> >>> Thanks! >>> >>> >>> Jesse >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> >> >> -- >> >> >> >> Stephen Barncard >> San Francisco Ca. USA >> >> more about sqb >> >> > > > -- > > > > Stephen Barncard > San Francisco Ca. USA > > more about sqb > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From stephenREVOLUTION2 at barncard.com Wed Mar 30 23:11:27 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Wed, 30 Mar 2011 20:11:27 -0700 Subject: PDF Reader using LiveCode In-Reply-To: <3C343CF7-ACD5-4920-8658-E10B5C91203B@mac.com> References: <3630C8D1-7FEA-4A26-A4C3-D83B82648D91@sbcglobal.net> <19AE78B8-5DE1-4772-A021-2C9D9F08B1D2@verizon.net> <4C2B8B7F.2050301@gmail.com> <1277951721525-2274547.post@n4.nabble.com> <3FE569B2-DFC6-44BD-A9A0-3E70D48F9EBF@mac.com> <3C343CF7-ACD5-4920-8658-E10B5C91203B@mac.com> Message-ID: you mean the status bar on Safari on the iPad? On 30 March 2011 20:08, Jesse Sng wrote: > > Thanks, but I'm still wondering about whether it is possible to display > information in the status bar of the iPad? > > On Mar 31, 2011, at 10:56 AM, stephen barncard wrote: > > > or you could use the revbrowser control - and display in Livecode. > > > > On 30 March 2011 19:53, stephen barncard < > stephenREVOLUTION2 at barncard.com>wrote: > > > >> Preview works great for PDF files, and it's already installed. > >> I like it better than the free adobe app and it loads twice as fast. > >> > >> > >> On 30 March 2011 19:44, Jesse Sng wrote: > >> > >>> Hi, > >>> > >>> I'm wondering if anybody has implemented a PDF reader using LiveCode > for > >>> the iPad? I have some unique requirements for a personal app and it > might be > >>> that I'll have to roll my own. > >>> > >>> 1. I used to use QT to open PDF on OSX and I'm wondering if there's a > >>> better way to do it especially with multiple page documents? > >>> > >>> 2. Looking at the tutorials, I find that it is possible to configure > the > >>> status bar. My question is this - is there a way to display something > in the > >>> status bar instead of merely showing/hiding it? > >>> > >>> Thanks! > >>> > >>> > >>> Jesse > >>> > >>> > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your > >>> subscription preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>> > >> > >> > >> > >> -- > >> > >> > >> > >> Stephen Barncard > >> San Francisco Ca. USA > >> > >> more about sqb > >> > >> > > > > > > -- > > > > > > > > Stephen Barncard > > San Francisco Ca. USA > > > > more about sqb > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Stephen Barncard San Francisco Ca. USA more about sqb From ipenguin at mac.com Wed Mar 30 23:34:39 2011 From: ipenguin at mac.com (Jesse Sng) Date: Thu, 31 Mar 2011 11:34:39 +0800 Subject: PDF Reader using LiveCode In-Reply-To: References: <3630C8D1-7FEA-4A26-A4C3-D83B82648D91@sbcglobal.net> <19AE78B8-5DE1-4772-A021-2C9D9F08B1D2@verizon.net> <4C2B8B7F.2050301@gmail.com> <1277951721525-2274547.post@n4.nabble.com> <3FE569B2-DFC6-44BD-A9A0-3E70D48F9EBF@mac.com> <3C343CF7-ACD5-4920-8658-E10B5C91203B@mac.com> Message-ID: <5D3EAD21-A395-4AC4-A32B-0AAA588D0F63@mac.com> On Mar 31, 2011, at 11:11 AM, stephen barncard wrote: > you mean the status bar on Safari on the iPad? No. There's a status bar at the top of the iPhone/iPad and I did notice that LiveCode had a tutorial on how to show and hide it. But what I would like to do is to have an app display in that area. Anyway, does anybody have some sample project for viewing PDF on the iPhone/iPad? > On 30 March 2011 20:08, Jesse Sng wrote: > >> >> Thanks, but I'm still wondering about whether it is possible to display >> information in the status bar of the iPad? >> >> On Mar 31, 2011, at 10:56 AM, stephen barncard wrote: >> >>> or you could use the revbrowser control - and display in Livecode. >>> >>> On 30 March 2011 19:53, stephen barncard < >> stephenREVOLUTION2 at barncard.com>wrote: >>> >>>> Preview works great for PDF files, and it's already installed. >>>> I like it better than the free adobe app and it loads twice as fast. >>>> >>>> >>>> On 30 March 2011 19:44, Jesse Sng wrote: >>>> >>>>> Hi, >>>>> >>>>> I'm wondering if anybody has implemented a PDF reader using LiveCode >> for >>>>> the iPad? I have some unique requirements for a personal app and it >> might be >>>>> that I'll have to roll my own. >>>>> >>>>> 1. I used to use QT to open PDF on OSX and I'm wondering if there's a >>>>> better way to do it especially with multiple page documents? >>>>> >>>>> 2. Looking at the tutorials, I find that it is possible to configure >> the >>>>> status bar. My question is this - is there a way to display something >> in the >>>>> status bar instead of merely showing/hiding it? >>>>> >>>>> Thanks! >>>>> >>>>> >>>>> Jesse >>>>> >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>> >>>> >>>> >>>> -- >>>> >>>> >>>> >>>> Stephen Barncard >>>> San Francisco Ca. USA >>>> >>>> more about sqb >>>> >>>> >>> >>> >>> -- >>> >>> >>> >>> Stephen Barncard >>> San Francisco Ca. USA >>> >>> more about sqb >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > > -- > > > > Stephen Barncard > San Francisco Ca. USA > > more about sqb > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From todd at geistinteractive.com Wed Mar 30 23:49:29 2011 From: todd at geistinteractive.com (Todd Geist) Date: Wed, 30 Mar 2011 20:49:29 -0700 Subject: Data Binding Message-ID: Thanks everyone for answering my earlier questions on adapting MVC to rev. I have moved on to one more. Although this one isn't really MVC. A couple of the frameworks I have used have a concept called "data binding". This usually means something along the lines of when one property changes another property is automatically updated. The two properties are said to be "Bound". I like this concept and it seems like something that could be useful to Live Code. It seems that you could broadcast the change of a property of an object. And other objects could listen for that change, and update themselves accordingly. Again, in effort to avoid re-inventing the wheel, I am curious if there any one has tried this sort of thing and if it proved useful. Thanks Todd Todd Geist ------------------------------ geist interactive 805-419-9382 From scott at tactilemedia.com Wed Mar 30 23:50:07 2011 From: scott at tactilemedia.com (Scott Rossi) Date: Wed, 30 Mar 2011 20:50:07 -0700 Subject: PDF Reader using LiveCode In-Reply-To: <5D3EAD21-A395-4AC4-A32B-0AAA588D0F63@mac.com> Message-ID: Recently, Jesse Sng wrote: > No. There's a status bar at the top of the iPhone/iPad and I did notice that > LiveCode had a tutorial on how to show and hide it. But what I would like to > do is to have an app display in that area. I don't think you can modify the status bar (at least not in LiveCode). But why are you interested in using that space -- because of its location? Could you roll your own using a transparent graphic? Regards, Scott Rossi Creative Director Tactile Media, UX Design From ipenguin at mac.com Wed Mar 30 23:59:06 2011 From: ipenguin at mac.com (Jesse Sng) Date: Thu, 31 Mar 2011 11:59:06 +0800 Subject: PDF Reader using LiveCode In-Reply-To: References: Message-ID: On Mar 31, 2011, at 11:50 AM, Scott Rossi wrote: > Recently, Jesse Sng wrote: > >> No. There's a status bar at the top of the iPhone/iPad and I did notice that >> LiveCode had a tutorial on how to show and hide it. But what I would like to >> do is to have an app display in that area. > > I don't think you can modify the status bar (at least not in LiveCode). But > why are you interested in using that space -- because of its location? > Could you roll your own using a transparent graphic? I have a need to show a stopwatch timer while being in some other app. The ones that I know of need you to actually switch out to the app whereas I need it to have a persistent display regardless of the app that I'm in. Pretty much like the existing clock on the iPhone/iPad. Jesse From jhj at jhj.com Thu Mar 31 00:00:34 2011 From: jhj at jhj.com (Jerry J) Date: Wed, 30 Mar 2011 21:00:34 -0700 Subject: Data Binding In-Reply-To: References: Message-ID: <8A93B645-2FD7-45BF-B52F-CBD0BF391314@jhj.com> On Mar 30, 2011, at 8:49 PM, Todd Geist wrote: > Thanks everyone for answering my earlier questions on adapting MVC to rev. > I have moved on to one more. Although this one isn't really MVC. > > A couple of the frameworks I have used have a concept called "data binding". > This usually means something along the lines of when one property changes > another property is automatically updated. The two properties are said to > be "Bound". I like this concept and it seems like something that could be > useful to Live Code. > > It seems that you could broadcast the change of a property of an object. And > other objects could listen for that change, and update themselves > accordingly. > > Again, in effort to avoid re-inventing the wheel, I am curious if there any > one has tried this sort of thing and if it proved useful. Sounds like something extending the setprop and getprop handlers could do. (?) --Jerry From monte at sweattechnologies.com Thu Mar 31 00:10:13 2011 From: monte at sweattechnologies.com (Monte Goulding) Date: Thu, 31 Mar 2011 15:10:13 +1100 Subject: Data Binding In-Reply-To: References: Message-ID: <2BB5636B-59A7-4C82-BA03-B58F41366544@sweattechnologies.com> On 31/03/2011, at 2:49 PM, Todd Geist wrote: > Thanks everyone for answering my earlier questions on adapting MVC to rev. > I have moved on to one more. Although this one isn't really MVC. > > A couple of the frameworks I have used have a concept called "data binding". > This usually means something along the lines of when one property changes > another property is automatically updated. The two properties are said to > be "Bound". I like this concept and it seems like something that could be > useful to Live Code. > > It seems that you could broadcast the change of a property of an object. And > other objects could listen for that change, and update themselves > accordingly. > > Again, in effort to avoid re-inventing the wheel, I am curious if there any > one has tried this sort of thing and if it proved useful. Hi Todd I'm sorry I haven't been following the conversation but this is something I occasionally wish we had. It would be nice to have a listenProp control structure but this is only necessary if you want two objects at the same level or one that's higher in the hierarchy to listen to a lower one. As long as your listening handler is lower in the hierarchy then you don't need it. You just need to get your setProp handler if it's a custom property or other message if not to send a command and handle it in the card, stack or library script. Wherever you house your controller script. Cheers Monte From dunbarx at aol.com Thu Mar 31 00:10:28 2011 From: dunbarx at aol.com (dunbarx at aol.com) Date: Thu, 31 Mar 2011 00:10:28 -0400 Subject: Data Binding In-Reply-To: References: Message-ID: <8CDBD70B3D085C6-1D54-5491@webmail-stg-d11.sysops.aol.com> Hi. I do not think there is a native message similar to the "nameChanged" or "selectionChanged", in other words, a "propChanged". This would track any modification to a property and trigger a handler. But the setProp and getProp control structures can handle this, I think. Craig Newman -----Original Message----- From: Todd Geist To: How to use LiveCode Sent: Wed, Mar 30, 2011 11:49 pm Subject: Data Binding Thanks everyone for answering my earlier questions on adapting MVC to rev. I have moved on to one more. Although this one isn't really MVC. A couple of the frameworks I have used have a concept called "data binding". This usually means something along the lines of when one property changes another property is automatically updated. The two properties are said to be "Bound". I like this concept and it seems like something that could be useful to Live Code. It seems that you could broadcast the change of a property of an object. And other objects could listen for that change, and update themselves accordingly. Again, in effort to avoid re-inventing the wheel, I am curious if there any one has tried this sort of thing and if it proved useful. Thanks Todd Todd Geist ------------------------------ geist interactive 805-419-9382 _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From stephenREVOLUTION2 at barncard.com Thu Mar 31 00:11:20 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Wed, 30 Mar 2011 21:11:20 -0700 Subject: Data Binding In-Reply-To: References: Message-ID: Trevor Devore's GLX Application Framework does that exact thing, and calls it broadcasting. It's at least as innovative as his SQL Yoga or the Datagrid he designed for Runrev. However, I think you are talking about web-based concepts, and Trevor's framework is for the desktop builder. On 30 March 2011 20:49, Todd Geist wrote: > Thanks everyone for answering my earlier questions on adapting MVC to rev. > I have moved on to one more. Although this one isn't really MVC. > > A couple of the frameworks I have used have a concept called "data > binding". > This usually means something along the lines of when one property changes > another property is automatically updated. The two properties are said to > be "Bound". I like this concept and it seems like something that could be > useful to Live Code. > > It seems that you could broadcast the change of a property of an object. > And > other objects could listen for that change, and update themselves > accordingly. > > Again, in effort to avoid re-inventing the wheel, I am curious if there any > one has tried this sort of thing and if it proved useful. > > Thanks > > Todd > > Todd Geist > ------------------------------ > geist interactive > 805-419-9382 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Stephen Barncard San Francisco Ca. USA more about sqb From pete at mollysrevenge.com Thu Mar 31 01:53:07 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Wed, 30 Mar 2011 22:53:07 -0700 Subject: Accessing customised columns in a datagrid In-Reply-To: References: <830CF3B4-CD94-4613-AC6D-F26D080155D1@mollysrevenge.com> <128C6277-F870-4328-8587-F02981D9A22D@mollysrevenge.com> Message-ID: Trevor, I think I figured this out. I only need to add the +5 if the column containing the checkbox is the last column in the datagrid - anywhere else and the +5 pushes it too far to the right. I'm guessing this has something to do with the vertical scrollbar - maybe the width of the last column in a datagrid includes the width of the scrollbar? Pete Haworth On Mar 30, 2011, at 4:42 PM, Trevor DeVore wrote: > I'm not sure. Do you need the +5 if you create a canvas? From pmbrig at gmail.com Thu Mar 31 08:25:13 2011 From: pmbrig at gmail.com (Peter Brigham MD) Date: Thu, 31 Mar 2011 08:25:13 -0400 Subject: mileage -- re tax time Message-ID: <8D0A1DE4-655F-46B3-BCC3-D7311C87C4CB@gmail.com> A little utility I put together that I use for totaling deductible milage for tax purposes. Enter a "from" address and a "to" address, click a button to fetch the mileage for that trip (uses Google Maps and parses the HTML), click another button and add the trip to a cumulative list of trips, with total mileage updated as you go. Available for anyone who might find it useful, at: http://home.comcast.net/~pmbrig/mileage.rev.zip Let me know if there are problems.... -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From iowahengst at mac.com Thu Mar 31 08:37:52 2011 From: iowahengst at mac.com (Randy Hengst) Date: Thu, 31 Mar 2011 07:37:52 -0500 Subject: mileage -- re tax time In-Reply-To: <8D0A1DE4-655F-46B3-BCC3-D7311C87C4CB@gmail.com> References: <8D0A1DE4-655F-46B3-BCC3-D7311C87C4CB@gmail.com> Message-ID: <5C4A12F5-6AB8-459F-B979-A0D099025BD8@mac.com> Peter, That's very handy?. thanks for sharing. take care, randy hengst ----- On Mar 31, 2011, at 7:25 AM, Peter Brigham MD wrote: > A little utility I put together that I use for totaling deductible milage for tax purposes. Enter a "from" address and a "to" address, click a button to fetch the mileage for that trip (uses Google Maps and parses the HTML), click another button and add the trip to a cumulative list of trips, with total mileage updated as you go. > > Available for anyone who might find it useful, at: > http://home.comcast.net/~pmbrig/mileage.rev.zip > > Let me know if there are problems.... > > -- Peter > > Peter M. Brigham > pmbrig at gmail.com > http://home.comcast.net/~pmbrig > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dunbarx at aol.com Thu Mar 31 08:47:34 2011 From: dunbarx at aol.com (dunbarx at aol.com) Date: Thu, 31 Mar 2011 08:47:34 -0400 Subject: mileage -- re tax time In-Reply-To: <5C4A12F5-6AB8-459F-B979-A0D099025BD8@mac.com> References: <8D0A1DE4-655F-46B3-BCC3-D7311C87C4CB@gmail.com> <5C4A12F5-6AB8-459F-B979-A0D099025BD8@mac.com> Message-ID: <8CDBDB8EF8827CE-2240-2B3@webmail-m129.sysops.aol.com> Hi. Couldn't access the page. I am not authorized. Craig Newman > A little utility I put together that I use for totaling deductible milage for tax purposes. Enter a "from" address and a "to" address, click a button to fetch the mileage for that trip (uses Google Maps and parses the HTML), click another button and add the trip to a cumulative list of trips, with total mileage updated as you go. > > Available for anyone who might find it useful, at: > http://home.comcast.net/~pmbrig/mileage.rev.zip > > Let me know if there are problems.... > > -- Peter > > Peter M. Brigham > pmbrig at gmail.com > http://home.comcast.net/~pmbrig > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major.on-rev.com Thu Mar 31 08:52:11 2011 From: klaus at major.on-rev.com (Klaus on-rev) Date: Thu, 31 Mar 2011 14:52:11 +0200 Subject: mileage -- re tax time In-Reply-To: <8D0A1DE4-655F-46B3-BCC3-D7311C87C4CB@gmail.com> References: <8D0A1DE4-655F-46B3-BCC3-D7311C87C4CB@gmail.com> Message-ID: Hi Peter, > A little utility I put together that I use for totaling deductible milage for tax purposes. Enter a "from" address and a "to" address, click a button to fetch the mileage for that trip (uses Google Maps and parses the HTML), click another button and add the trip to a cumulative list of trips, with total mileage updated as you go. > Available for anyone who might find it useful, at: > http://home.comcast.net/~pmbrig/mileage.rev.zip Cool! > Let me know if there are problems.... Yep, I don't have a car! :-D > -- Peter > > Peter M. Brigham > pmbrig at gmail.com > http://home.comcast.net/~pmbrig Best Klaus -- Klaus Major http://www.major-k.de klaus at major.on-rev.com From warrenkuhl at gmail.com Thu Mar 31 09:05:22 2011 From: warrenkuhl at gmail.com (Warren Kuhl) Date: Thu, 31 Mar 2011 08:05:22 -0500 Subject: Standalone Application Security Message-ID: I have a application that I am rolling out shortly. The stack includes a key to access an excrpyted Valentina DB. From what I read with other posts on the list, RunRev applications are not that hard to decrypt? If this is the case, what are the best pays to protect myself from having someone to "break down" the Runrev application to get the key to decrypt the database? Thanks for any feedback! Warren From lists at mangomultimedia.com Thu Mar 31 09:10:23 2011 From: lists at mangomultimedia.com (Trevor DeVore) Date: Thu, 31 Mar 2011 09:10:23 -0400 Subject: Accessing customised columns in a datagrid In-Reply-To: References: <830CF3B4-CD94-4613-AC6D-F26D080155D1@mollysrevenge.com> <128C6277-F870-4328-8587-F02981D9A22D@mollysrevenge.com> Message-ID: On Thu, Mar 31, 2011 at 1:53 AM, Peter Haworth wrote: > I think I figured this out. I only need to add the +5 if the column > containing the checkbox is the last column in the datagrid - anywhere else > and the +5 pushes it too far to the right. I'm guessing this has something > to do with the vertical scrollbar - maybe the width of the last column in a > datagrid includes the width of the scrollbar? The scrollbar won't come into play when sizing the column but it may be that your last column extends to the far right of the data grid. In this case part of the column would appear behind the scrollbar and would not look centered. -- Trevor DeVore Blue Mango Learning Systems ScreenSteps: http://www.screensteps.com LiveCode Resources for Developers: http://livecode.bluemangolearning.com From pmbrig at gmail.com Thu Mar 31 09:34:42 2011 From: pmbrig at gmail.com (Peter Brigham MD) Date: Thu, 31 Mar 2011 09:34:42 -0400 Subject: mileage -- re tax time In-Reply-To: <8CDBDB8EF8827CE-2240-2B3@webmail-m129.sysops.aol.com> References: <8D0A1DE4-655F-46B3-BCC3-D7311C87C4CB@gmail.com> <5C4A12F5-6AB8-459F-B979-A0D099025BD8@mac.com> <8CDBDB8EF8827CE-2240-2B3@webmail-m129.sysops.aol.com> Message-ID: <5302EBA2-6AB2-4325-A8BE-2495092F100B@gmail.com> On Mar 31, 2011, at 8:47 AM, dunbarx at aol.com wrote: > Hi. > > > Couldn't access the page. I am not authorized. You probably caught a 45 second window when I was uploading a minor change to the file. Try again. > Craig Newman > >> A little utility I put together that I use for totaling deductible >> milage for > tax purposes. Enter a "from" address and a "to" address, click a > button to fetch > the mileage for that trip (uses Google Maps and parses the HTML), > click another > button and add the trip to a cumulative list of trips, with total > mileage > updated as you go. >> >> Available for anyone who might find it useful, at: >> http://home.comcast.net/~pmbrig/mileage.rev.zip >> >> Let me know if there are problems.... -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From pmbrig at gmail.com Thu Mar 31 09:36:46 2011 From: pmbrig at gmail.com (Peter Brigham MD) Date: Thu, 31 Mar 2011 09:36:46 -0400 Subject: mileage -- re tax time In-Reply-To: References: <8D0A1DE4-655F-46B3-BCC3-D7311C87C4CB@gmail.com> Message-ID: <54791BF0-F0E5-40EB-9DE1-099015DFB43E@gmail.com> On Mar 31, 2011, at 8:52 AM, Klaus on-rev wrote: > Hi Peter, > >> A little utility I put together that I use for totaling deductible >> milage for tax purposes. Enter a "from" address and a "to" address, >> click a button to fetch the mileage for that trip (uses Google Maps >> and parses the HTML), click another button and add the trip to a >> cumulative list of trips, with total mileage updated as you go. >> Available for anyone who might find it useful, at: >> http://home.comcast.net/~pmbrig/mileage.rev.zip > > Cool! > >> Let me know if there are problems.... > > Yep, I don't have a car! :-D Yeah, I don't think that you can deduct mileage walked.... :-) -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From klaus at major.on-rev.com Thu Mar 31 09:42:45 2011 From: klaus at major.on-rev.com (Klaus on-rev) Date: Thu, 31 Mar 2011 15:42:45 +0200 Subject: mileage -- re tax time In-Reply-To: <54791BF0-F0E5-40EB-9DE1-099015DFB43E@gmail.com> References: <8D0A1DE4-655F-46B3-BCC3-D7311C87C4CB@gmail.com> <54791BF0-F0E5-40EB-9DE1-099015DFB43E@gmail.com> Message-ID: <8E7F6F12-224A-40B8-B552-C8DCF294D529@major.on-rev.com> Hi Peter, Am 31.03.2011 um 15:36 schrieb Peter Brigham MD: > On Mar 31, 2011, at 8:52 AM, Klaus on-rev wrote: >> Hi Peter, >>> A little utility I put together that I use for totaling deductible milage for tax purposes. Enter a "from" address and a "to" address, click a button to fetch the mileage for that trip (uses Google Maps and parses the HTML), click another button and add the trip to a cumulative list of trips, with total mileage updated as you go. >>> Available for anyone who might find it useful, at: >>> http://home.comcast.net/~pmbrig/mileage.rev.zip >> Cool! >>> Let me know if there are problems.... >> Yep, I don't have a car! :-D > Yeah, I don't think that you can deduct mileage walked.... :-) DAMN! Will take a look at your stack anyway ;-) > -- Peter > > Peter M. Brigham > pmbrig at gmail.com > http://home.comcast.net/~pmbrig Best Klaus -- Klaus Major http://www.major-k.de klaus at major.on-rev.com From keith.clarke at clarkeandclarke.co.uk Thu Mar 31 09:46:26 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Thu, 31 Mar 2011 14:46:26 +0100 Subject: mileage -- re tax time In-Reply-To: <54791BF0-F0E5-40EB-9DE1-099015DFB43E@gmail.com> References: <8D0A1DE4-655F-46B3-BCC3-D7311C87C4CB@gmail.com> <54791BF0-F0E5-40EB-9DE1-099015DFB43E@gmail.com> Message-ID: <8569C68B-ACE2-4736-92F4-867CDB7BB9EA@clarkeandclarke.co.uk> ...in the UK you can claim cycled mileage against tax of GBP0.20 per mile. However, I don't think I'll be adding a 'means of transport' menu item just yet, as in the seven years that I've been running my own company, my total cycling mileage claim is... now, how many, err, hang on, let's see, ah yes - there it is... zero! ;-) On 31 Mar 2011, at 14:36, Peter Brigham MD wrote: > On Mar 31, 2011, at 8:52 AM, Klaus on-rev wrote: > >> Hi Peter, >> >>> A little utility I put together that I use for totaling deductible milage for tax purposes. Enter a "from" address and a "to" address, click a button to fetch the mileage for that trip (uses Google Maps and parses the HTML), click another button and add the trip to a cumulative list of trips, with total mileage updated as you go. >>> Available for anyone who might find it useful, at: >>> http://home.comcast.net/~pmbrig/mileage.rev.zip >> >> Cool! >> >>> Let me know if there are problems.... >> >> Yep, I don't have a car! :-D > > Yeah, I don't think that you can deduct mileage walked.... :-) From ambassador at fourthworld.com Thu Mar 31 10:32:53 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 31 Mar 2011 07:32:53 -0700 Subject: Standalone Application Security In-Reply-To: References: Message-ID: <4D949095.3050507@fourthworld.com> Warren Kuhl wrote: > I have a application that I am rolling out shortly. The stack includes a > key to access an excrpyted Valentina DB. From what I read with other posts > on the list, RunRev applications are not that hard to decrypt? If this is > the case, what are the best pays to protect myself from having someone > to "break down" the Runrev application to get the key to decrypt the > database? Stacks can be protected with a password property (settable at build time in the Standalone Builder or at any time using the Message Box). This will make scripts in accessible in the IDE, and will make both scripts and custom props unreadable on disk. In older versions (pre-4.0?) the encryption scheme was described by Scott Raney as a derivative of DES -- more than enough to keep out script kiddiesm, but only about a weekend's work for a professional cracker. In more recent versions scripts are protected with a much stronger algo (triple DES?) and are considered much more secure. In the saved stack file not only are your scripts encrypted but also custom props are no longer readable in a binary editor. However, keep in mind that those properties will still be available in unencrypted form in any LiveCode editor. That should only be a concern for data stored in custom props within stack files other than the standalone, since the new standalone format makes extracting the stack file from the executable much more difficult than it used to be. You can hard-wired things like passwords into scripts to have them protected, or for larger or more complex data store them in custom props after running them through LC's encryption functions (which offer Blowfish and other good options). If your stack involved nuclear secrets or other similarly critical information, note that no code is ever truly safe from the sufficiently-motivated cracker. Low-level debuggers can disassemble any code written in any language to derive both algos and data at runtime, no matter how secure the storage format is. Anything that can be run can be disassembled. Obfuscation can slow them down, but nothing can stop a skilled cracker from learning the inner secrets of any app. If you were dealing with data or algos that critical, controlling physical access to the application is the only way to minimize risk (and as the Pentagon's showed us, with random USB thumb drives staff mindlessly inserted into systems at CENTCOM and the occasional briefcase left in a hotel restaurant, even attempting to control physical access is not without risk). As they say in the security forums, "physical access = root". -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From warrenkuhl at gmail.com Thu Mar 31 10:55:28 2011 From: warrenkuhl at gmail.com (Warren Kuhl) Date: Thu, 31 Mar 2011 09:55:28 -0500 Subject: Standalone Application Security In-Reply-To: <4D949095.3050507@fourthworld.com> References: <4D949095.3050507@fourthworld.com> Message-ID: Richard, Thank you very much for the explanation! This really puts my mind at ease. I will make sure to password protect my application. Since I am not storing nuclear secrets...I will just to my best to encrypt as you have outlined below. Appreciate your response, Warren On Thu, Mar 31, 2011 at 9:32 AM, Richard Gaskin wrote: > Warren Kuhl wrote: > >> I have a application that I am rolling out shortly. The stack includes a >> key to access an excrpyted Valentina DB. From what I read with other >> posts >> on the list, RunRev applications are not that hard to decrypt? If this is >> the case, what are the best pays to protect myself from having someone >> to "break down" the Runrev application to get the key to decrypt the >> database? >> > > Stacks can be protected with a password property (settable at build time in > the Standalone Builder or at any time using the Message Box). This will > make scripts in accessible in the IDE, and will make both scripts and custom > props unreadable on disk. > > In older versions (pre-4.0?) the encryption scheme was described by Scott > Raney as a derivative of DES -- more than enough to keep out script > kiddiesm, but only about a weekend's work for a professional cracker. > > In more recent versions scripts are protected with a much stronger algo > (triple DES?) and are considered much more secure. > > In the saved stack file not only are your scripts encrypted but also custom > props are no longer readable in a binary editor. However, keep in mind that > those properties will still be available in unencrypted form in any LiveCode > editor. > > That should only be a concern for data stored in custom props within stack > files other than the standalone, since the new standalone format makes > extracting the stack file from the executable much more difficult than it > used to be. > > You can hard-wired things like passwords into scripts to have them > protected, or for larger or more complex data store them in custom props > after running them through LC's encryption functions (which offer Blowfish > and other good options). > > If your stack involved nuclear secrets or other similarly critical > information, note that no code is ever truly safe from the > sufficiently-motivated cracker. Low-level debuggers can disassemble any > code written in any language to derive both algos and data at runtime, no > matter how secure the storage format is. Anything that can be run can be > disassembled. Obfuscation can slow them down, but nothing can stop a > skilled cracker from learning the inner secrets of any app. > > If you were dealing with data or algos that critical, controlling physical > access to the application is the only way to minimize risk (and as the > Pentagon's showed us, with random USB thumb drives staff mindlessly inserted > into systems at CENTCOM and the occasional briefcase left in a hotel > restaurant, even attempting to control physical access is not without risk). > As they say in the security forums, "physical access = root". > > -- > Richard Gaskin > Fourth World > LiveCode training and consulting: http://www.fourthworld.com > Webzine for LiveCode developers: http://www.LiveCodeJournal.com > LiveCode Journal blog: http://LiveCodejournal.com/blog.irv > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From RevList at CreaTECHSol.com Thu Mar 31 11:23:52 2011 From: RevList at CreaTECHSol.com (RevList) Date: Thu, 31 Mar 2011 08:23:52 -0700 Subject: mileage -- re tax time In-Reply-To: <8D0A1DE4-655F-46B3-BCC3-D7311C87C4CB@gmail.com> References: <8D0A1DE4-655F-46B3-BCC3-D7311C87C4CB@gmail.com> Message-ID: How to use LiveCode on March 31, 2011 at 5:25 AM -0700 wrote: >A little utility I put together that I use for totaling deductible >milage for tax purposes. Enter a "from" address and a "to" address, >click a button to fetch the mileage for that trip (uses Google Maps >and parses the HTML), click another button and add the trip to a >cumulative list of trips, with total mileage updated as you go. > >Available for anyone who might find it useful, at: >http://home.comcast.net/~pmbrig/mileage.rev.zip > >Let me know if there are problems.... I built an app like this some time ago using the free google api. Be aware, however, that there is a maximum number of calls that google allows per hour from unique ip addresses. This means that you will likely be OK for your personal use, but not for commerical use. ****************************************** Stewart Lynch CreaTECH Solutions slynch at CreaTECHSol.com 604.484.8499 Skype:StewartLynch There are only 10 kinds of people. Those who understand binary and those who don't. ****************************************** From kee at kagi.com Thu Mar 31 12:00:01 2011 From: kee at kagi.com (Kee Nethery) Date: Thu, 31 Mar 2011 09:00:01 -0700 Subject: lines of UFT16 text are broken? In-Reply-To: References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <4D925879.8070304@hyperactivesw.com> <7134A858-B469-4CB2-836B-806AD66B63AF@jhj.com> Message-ID: <30EAC512-3112-4581-A2A3-6BE56C7FBE49@kagi.com> The solution to having line breaks work when using UTF16 text is to not do that, it doesn't work. I tried several characters that contain a byte that could look like a return and ... when the text is UTF16 that byte of a normally legit unicode character, is treated as a return. My favorite test character was 0A0A which looks like a guy with a baseball cap sticking his tongue out and two wiggle lines underneath to indicate motion. Anyway, the solution that seems to work is to keep the data in UTF8 and then split it into an array where each line goes into a separate array element. Then instead of line 5 I look at lineArray[5] Sure wish LiveCode dealt with unicode as a first class citizen. Kee On Mar 29, 2011, at 6:04 PM, Kee Nethery wrote: > I convert UFT8 text into UTF16 and then work through each line of text. > > The problem I run into is that on my Intel Mac, (bigendian), a return is encoded as "10 0" and if I have a set of characters > uniencode("123" & return & "456") > it encodes into UTF16 as the bytes: > 49 0 50 0 51 0_10_0_52 0 53 0 54 0 > > When I look at line 1 I get: > 49 0 50 0 51 0_ > > When I look at line 2 I get: > _0_52 0 53 0 54 0 > > The 0 from the return (actually a linefeed) being interpreted as part of the next line. "10 0" is not the line break, "10" is the line break. > > How do I get it to break at "10 0" instead of at "10"? My fear is that I'm going to come across a unicode character that includes "10" in the right location, kind of like "32 10" (no clue what that is) and the system is going to see the "10" and deal with it as the divider between two lines. > > How do people deal with this? Do I need to build a UTF16 version of all the text parsing routines to safely get each line? > > Kee Nethery > From bobs at twft.com Thu Mar 31 12:12:48 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 31 Mar 2011 09:12:48 -0700 Subject: mileage -- re tax time In-Reply-To: <8D0A1DE4-655F-46B3-BCC3-D7311C87C4CB@gmail.com> References: <8D0A1DE4-655F-46B3-BCC3-D7311C87C4CB@gmail.com> Message-ID: Now THAT would make a GREAT iPhone app! Bob On Mar 31, 2011, at 5:25 AM, Peter Brigham MD wrote: > A little utility I put together that I use for totaling deductible milage for tax purposes. Enter a "from" address and a "to" address, click a button to fetch the mileage for that trip (uses Google Maps and parses the HTML), click another button and add the trip to a cumulative list of trips, with total mileage updated as you go. > > Available for anyone who might find it useful, at: > http://home.comcast.net/~pmbrig/mileage.rev.zip > > Let me know if there are problems.... > > -- Peter > > Peter M. Brigham > pmbrig at gmail.com > http://home.comcast.net/~pmbrig > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at mollysrevenge.com Thu Mar 31 13:09:28 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Thu, 31 Mar 2011 10:09:28 -0700 Subject: Accessing customised columns in a datagrid In-Reply-To: References: <830CF3B4-CD94-4613-AC6D-F26D080155D1@mollysrevenge.com> <128C6277-F870-4328-8587-F02981D9A22D@mollysrevenge.com> Message-ID: <151D7262-F676-4EBD-8901-F07D0E88EE15@mollysrevenge.com> Yes, that's what I was trying to say - the last column does extend to the far right of the datagrid so that would explain it. Now I just have to figure out how to detect that situation and deal with it. Pete Haworth On Mar 31, 2011, at 6:10 AM, Trevor DeVore wrote: > On Thu, Mar 31, 2011 at 1:53 AM, Peter Haworth wrote: > >> I think I figured this out. I only need to add the +5 if the column >> containing the checkbox is the last column in the datagrid - anywhere else >> and the +5 pushes it too far to the right. I'm guessing this has something >> to do with the vertical scrollbar - maybe the width of the last column in a >> datagrid includes the width of the scrollbar? > > > The scrollbar won't come into play when sizing the column but it may be that > your last column extends to the far right of the data grid. In this case > part of the column would appear behind the scrollbar and would not look > centered. > > -- > > Trevor DeVore > > Blue Mango Learning Systems > > ScreenSteps: http://www.screensteps.com > > LiveCode Resources for Developers: http://livecode.bluemangolearning.com > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pmbrig at gmail.com Thu Mar 31 13:13:44 2011 From: pmbrig at gmail.com (Peter Brigham MD) Date: Thu, 31 Mar 2011 13:13:44 -0400 Subject: mileage -- re tax time In-Reply-To: References: <8D0A1DE4-655F-46B3-BCC3-D7311C87C4CB@gmail.com> Message-ID: <6FE54EC6-CC7A-4750-8ADF-47E8313D98FC@gmail.com> On Mar 31, 2011, at 12:12 PM, Bob Sneidar wrote: > Now THAT would make a GREAT iPhone app! Feel free to use it as the basis for something. I haven't tried to delve into the iPhone/iPad/mobile platform, as I have my hands full with my full-time job and LC desktop. If someone wants to take this and run with it on mobile, please contact me off list. > On Mar 31, 2011, at 5:25 AM, Peter Brigham MD wrote: > >> A little utility I put together that I use for totaling deductible >> milage for tax purposes. Enter a "from" address and a "to" address, >> click a button to fetch the mileage for that trip (uses Google Maps >> and parses the HTML), click another button and add the trip to a >> cumulative list of trips, with total mileage updated as you go. >> >> Available for anyone who might find it useful, at: >> http://home.comcast.net/~pmbrig/mileage.rev.zip >> >> Let me know if there are problems.... -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From gandalf at doctorTimothyMiller.com Thu Mar 31 13:18:06 2011 From: gandalf at doctorTimothyMiller.com (Timothy Miller) Date: Thu, 31 Mar 2011 10:18:06 -0700 Subject: novice question re "marked" and customkeys Message-ID: <57DDFA01-117A-47E9-99A7-968DC112C63D@doctorTimothyMiller.com> Hey dudes, The "marked" property is so easy to use. "go next marked" and "unmark all cards" are so fast and foolproof! Very handy. I'm wondering if I can somehow define my own versions of "marked" E.g., in a hypothetical stack, the "marked" of cards 3, 10, 22 and 99 is "true" I somehow define my own properties, like "barked" and "darked" In the same hypothetical stack, the "barked" of cards 1,2, 3 and 4 is "true" the "darked" of cards 2,4,6,8 and 99 is "true" Somehow I could "go next barked" or "go next darked" just as fast and easy as I could "go next marked" In this perfect world, I could "unbark" or "undark" all cards as easily as I could unmark them. I suspect this isn't really possible. I suspect the closest equivalent would be to use customkeys and repeat loops, to find the next card with a certain value of a certain customkey, and so on. I suspect this would be somewhat slower than "go next marked" or "unmark all" The marked of a card resembles a customkey, but I suspect it works differently. True? Is it possible to "go next" to a card with a certain value of a certain customKey? Or is it necessary to use a repeat loop to inspect the each card until I encounter the customKey and value I want? Is it possible to "set the poodleNose of all cards to empty"? I suspect not. Am I getting this right? Am I missing anything important? Thanks in advance, Tim From bobs at twft.com Thu Mar 31 13:26:58 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 31 Mar 2011 10:26:58 -0700 Subject: novice question re "marked" and customkeys In-Reply-To: <57DDFA01-117A-47E9-99A7-968DC112C63D@doctorTimothyMiller.com> References: <57DDFA01-117A-47E9-99A7-968DC112C63D@doctorTimothyMiller.com> Message-ID: <1442D564-430F-4ABA-8B62-6611C0F50B05@twft.com> I think you are right Mark. A hidden field with the word "barked" or "darked" in it and some use of the find command would serve you better. Undarking all cards though would definitely require a repeat loop or a recursive call, with Exit to top when you cannot find any more. Bob On Mar 31, 2011, at 10:18 AM, Timothy Miller wrote: > Hey dudes, > > The "marked" property is so easy to use. "go next marked" and "unmark all cards" are so fast and foolproof! Very handy. > > I'm wondering if I can somehow define my own versions of "marked" > > E.g., in a hypothetical stack, the "marked" of cards 3, 10, 22 and 99 is "true" > > I somehow define my own properties, like "barked" and "darked" > > In the same hypothetical stack, the "barked" of cards 1,2, 3 and 4 is "true" > > the "darked" of cards 2,4,6,8 and 99 is "true" > > Somehow I could "go next barked" or "go next darked" just as fast and easy as I could "go next marked" > > In this perfect world, I could "unbark" or "undark" all cards as easily as I could unmark them. > > I suspect this isn't really possible. I suspect the closest equivalent would be to use customkeys and repeat loops, to find the next card with a certain value of a certain customkey, and so on. I suspect this would be somewhat slower than "go next marked" or "unmark all" > > The marked of a card resembles a customkey, but I suspect it works differently. True? > > Is it possible to "go next" to a card with a certain value of a certain customKey? Or is it necessary to use a repeat loop to inspect the each card until I encounter the customKey and value I want? > > Is it possible to "set the poodleNose of all cards to empty"? I suspect not. > > Am I getting this right? Am I missing anything important? > > Thanks in advance, > > Tim > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at mollysrevenge.com Thu Mar 31 13:47:12 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Thu, 31 Mar 2011 10:47:12 -0700 Subject: novice question re "marked" and customkeys In-Reply-To: <57DDFA01-117A-47E9-99A7-968DC112C63D@doctorTimothyMiller.com> References: <57DDFA01-117A-47E9-99A7-968DC112C63D@doctorTimothyMiller.com> Message-ID: One possibility would be to maintain a list of the "barked" cards somewhere, maybe in a custom property of your main stack. You could do that with a setProp handler for "barked" that added the card ID to the master list if the property was set to true and removed it if it was set to false (assuming "barked" is a custom property). Once that list is in place, write some simple list navigation handlers like goNextBarked, goPrevBarked, etc. Pete Haworth On Mar 31, 2011, at 10:18 AM, Timothy Miller wrote: > Hey dudes, > > The "marked" property is so easy to use. "go next marked" and "unmark all cards" are so fast and foolproof! Very handy. > > I'm wondering if I can somehow define my own versions of "marked" > > E.g., in a hypothetical stack, the "marked" of cards 3, 10, 22 and 99 is "true" > > I somehow define my own properties, like "barked" and "darked" > > In the same hypothetical stack, the "barked" of cards 1,2, 3 and 4 is "true" > > the "darked" of cards 2,4,6,8 and 99 is "true" > > Somehow I could "go next barked" or "go next darked" just as fast and easy as I could "go next marked" > > In this perfect world, I could "unbark" or "undark" all cards as easily as I could unmark them. > > I suspect this isn't really possible. I suspect the closest equivalent would be to use customkeys and repeat loops, to find the next card with a certain value of a certain customkey, and so on. I suspect this would be somewhat slower than "go next marked" or "unmark all" > > The marked of a card resembles a customkey, but I suspect it works differently. True? > > Is it possible to "go next" to a card with a certain value of a certain customKey? Or is it necessary to use a repeat loop to inspect the each card until I encounter the customKey and value I want? > > Is it possible to "set the poodleNose of all cards to empty"? I suspect not. > > Am I getting this right? Am I missing anything important? > > Thanks in advance, > > Tim > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bonnmike at gmail.com Thu Mar 31 13:48:36 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 31 Mar 2011 11:48:36 -0600 Subject: novice question re "marked" and customkeys In-Reply-To: <1442D564-430F-4ABA-8B62-6611C0F50B05@twft.com> References: <57DDFA01-117A-47E9-99A7-968DC112C63D@doctorTimothyMiller.com> <1442D564-430F-4ABA-8B62-6611C0F50B05@twft.com> Message-ID: You could come at this from a different direction. Since you can mark conditionally, you can set a property (or global, or have a hidden checkbox, or whatever) and then change your marks on the fly based on that. IE, if you have a "darked" hidden checkbox on your cards and need to loop through your darked cards its easy enough to unmark all cards mark cards where the hilite of button "mycheckbox" Then just use marked normally. On Thu, Mar 31, 2011 at 11:26 AM, Bob Sneidar wrote: > I think you are right Mark. A hidden field with the word "barked" or > "darked" in it and some use of the find command would serve you better. > Undarking all cards though would definitely require a repeat loop or a > recursive call, with Exit to top when you cannot find any more. > > Bob > > > On Mar 31, 2011, at 10:18 AM, Timothy Miller wrote: > > > Hey dudes, > > > > The "marked" property is so easy to use. "go next marked" and "unmark all > cards" are so fast and foolproof! Very handy. > > > > I'm wondering if I can somehow define my own versions of "marked" > > > > E.g., in a hypothetical stack, the "marked" of cards 3, 10, 22 and 99 is > "true" > > > > I somehow define my own properties, like "barked" and "darked" > > > > In the same hypothetical stack, the "barked" of cards 1,2, 3 and 4 is > "true" > > > > the "darked" of cards 2,4,6,8 and 99 is "true" > > > > Somehow I could "go next barked" or "go next darked" just as fast and > easy as I could "go next marked" > > > > In this perfect world, I could "unbark" or "undark" all cards as easily > as I could unmark them. > > > > I suspect this isn't really possible. I suspect the closest equivalent > would be to use customkeys and repeat loops, to find the next card with a > certain value of a certain customkey, and so on. I suspect this would be > somewhat slower than "go next marked" or "unmark all" > > > > The marked of a card resembles a customkey, but I suspect it works > differently. True? > > > > Is it possible to "go next" to a card with a certain value of a certain > customKey? Or is it necessary to use a repeat loop to inspect the each card > until I encounter the customKey and value I want? > > > > Is it possible to "set the poodleNose of all cards to empty"? I suspect > not. > > > > Am I getting this right? Am I missing anything important? > > > > Thanks in advance, > > > > Tim > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pmbrig at gmail.com Thu Mar 31 13:49:52 2011 From: pmbrig at gmail.com (Peter Brigham MD) Date: Thu, 31 Mar 2011 13:49:52 -0400 Subject: novice question re "marked" and customkeys In-Reply-To: <1442D564-430F-4ABA-8B62-6611C0F50B05@twft.com> References: <57DDFA01-117A-47E9-99A7-968DC112C63D@doctorTimothyMiller.com> <1442D564-430F-4ABA-8B62-6611C0F50B05@twft.com> Message-ID: <3A84400C-F445-4BC1-B488-7AD56C69E79B@gmail.com> I suspect that using a customproperty of the card would be faster for large numbers of cards. Accessing the contents of a field is slow, relative to pulling customprops. But it probably doesn't matter unless you have >1000 cards. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Mar 31, 2011, at 1:26 PM, Bob Sneidar wrote: > I think you are right Mark. A hidden field with the word "barked" or > "darked" in it and some use of the find command would serve you > better. Undarking all cards though would definitely require a repeat > loop or a recursive call, with Exit to top when you cannot find any > more. > > Bob > > > On Mar 31, 2011, at 10:18 AM, Timothy Miller wrote: > >> Hey dudes, >> >> The "marked" property is so easy to use. "go next marked" and >> "unmark all cards" are so fast and foolproof! Very handy. >> >> I'm wondering if I can somehow define my own versions of "marked" >> >> E.g., in a hypothetical stack, the "marked" of cards 3, 10, 22 and >> 99 is "true" >> >> I somehow define my own properties, like "barked" and "darked" >> >> In the same hypothetical stack, the "barked" of cards 1,2, 3 and 4 >> is "true" >> >> the "darked" of cards 2,4,6,8 and 99 is "true" >> >> Somehow I could "go next barked" or "go next darked" just as fast >> and easy as I could "go next marked" >> >> In this perfect world, I could "unbark" or "undark" all cards as >> easily as I could unmark them. >> >> I suspect this isn't really possible. I suspect the closest >> equivalent would be to use customkeys and repeat loops, to find the >> next card with a certain value of a certain customkey, and so on. I >> suspect this would be somewhat slower than "go next marked" or >> "unmark all" >> >> The marked of a card resembles a customkey, but I suspect it works >> differently. True? >> >> Is it possible to "go next" to a card with a certain value of a >> certain customKey? Or is it necessary to use a repeat loop to >> inspect the each card until I encounter the customKey and value I >> want? >> >> Is it possible to "set the poodleNose of all cards to empty"? I >> suspect not. >> >> Am I getting this right? Am I missing anything important? >> >> Thanks in advance, >> >> Tim >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobs at twft.com Thu Mar 31 16:31:16 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 31 Mar 2011 13:31:16 -0700 Subject: novice question re "marked" and customkeys In-Reply-To: <57DDFA01-117A-47E9-99A7-968DC112C63D@doctorTimothyMiller.com> References: <57DDFA01-117A-47E9-99A7-968DC112C63D@doctorTimothyMiller.com> Message-ID: <4418C180-C8A6-4A15-ADB7-995D5EB577B6@twft.com> Okay I was going to make a demo stack of how to do this, but I have run across a problem someone was talking about earlier and I didn't get it then but I sure do now! In a button as part of a background group on a card I have: On mouseUp put the id of this card into theFirstCard go next put the id of this card into theNextCard end mouseUp THEY ARE BOTH THE SAME!!!!! How can that be? How can I get the ID of the CARD THAT IS CURRENTLY SHOWING? Not the CARD THAT THIS SCRIPT STARTED AT? (not shouting just capitalizing for emphasis). Bob On Mar 31, 2011, at 10:18 AM, Timothy Miller wrote: > Hey dudes, > > The "marked" property is so easy to use. "go next marked" and "unmark all cards" are so fast and foolproof! Very handy. > > I'm wondering if I can somehow define my own versions of "marked" > > E.g., in a hypothetical stack, the "marked" of cards 3, 10, 22 and 99 is "true" > > I somehow define my own properties, like "barked" and "darked" > From bobs at twft.com Thu Mar 31 16:33:12 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 31 Mar 2011 13:33:12 -0700 Subject: novice question re "marked" and customkeys In-Reply-To: <3A84400C-F445-4BC1-B488-7AD56C69E79B@gmail.com> References: <57DDFA01-117A-47E9-99A7-968DC112C63D@doctorTimothyMiller.com> <1442D564-430F-4ABA-8B62-6611C0F50B05@twft.com> <3A84400C-F445-4BC1-B488-7AD56C69E79B@gmail.com> Message-ID: <02401383-DF85-4CFF-A897-AD84DA468516@twft.com> Aye, but of course if you have that many cards you should probably be doing this through SQL. Bob On Mar 31, 2011, at 10:49 AM, Peter Brigham MD wrote: > I suspect that using a customproperty of the card would be faster for large numbers of cards. Accessing the contents of a field is slow, relative to pulling customprops. But it probably doesn't matter unless you have >1000 cards. > > -- Peter > > Peter M. Brigham > pmbrig at gmail.com > http://home.comcast.net/~pmbrig > > > On Mar 31, 2011, at 1:26 PM, Bob Sneidar wrote: > >> I think you are right Mark. A hidden field with the word "barked" or "darked" in it and some use of the find command would serve you better. Undarking all cards though would definitely require a repeat loop or a recursive call, with Exit to top when you cannot find any more. >> >> Bob >> >> >> On Mar 31, 2011, at 10:18 AM, Timothy Miller wrote: >> >>> Hey dudes, >>> >>> The "marked" property is so easy to use. "go next marked" and "unmark all cards" are so fast and foolproof! Very handy. >>> >>> I'm wondering if I can somehow define my own versions of "marked" >>> >>> E.g., in a hypothetical stack, the "marked" of cards 3, 10, 22 and 99 is "true" >>> >>> I somehow define my own properties, like "barked" and "darked" >>> >>> In the same hypothetical stack, the "barked" of cards 1,2, 3 and 4 is "true" >>> >>> the "darked" of cards 2,4,6,8 and 99 is "true" >>> >>> Somehow I could "go next barked" or "go next darked" just as fast and easy as I could "go next marked" >>> >>> In this perfect world, I could "unbark" or "undark" all cards as easily as I could unmark them. >>> >>> I suspect this isn't really possible. I suspect the closest equivalent would be to use customkeys and repeat loops, to find the next card with a certain value of a certain customkey, and so on. I suspect this would be somewhat slower than "go next marked" or "unmark all" >>> >>> The marked of a card resembles a customkey, but I suspect it works differently. True? >>> >>> Is it possible to "go next" to a card with a certain value of a certain customKey? Or is it necessary to use a repeat loop to inspect the each card until I encounter the customKey and value I want? >>> >>> Is it possible to "set the poodleNose of all cards to empty"? I suspect not. >>> >>> Am I getting this right? Am I missing anything important? >>> >>> Thanks in advance, >>> >>> Tim >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gandalf at doctorTimothyMiller.com Thu Mar 31 16:33:54 2011 From: gandalf at doctorTimothyMiller.com (Timothy Miller) Date: Thu, 31 Mar 2011 13:33:54 -0700 Subject: novice question re "marked" and customkeys In-Reply-To: <3A84400C-F445-4BC1-B488-7AD56C69E79B@gmail.com> References: <57DDFA01-117A-47E9-99A7-968DC112C63D@doctorTimothyMiller.com> <1442D564-430F-4ABA-8B62-6611C0F50B05@twft.com> <3A84400C-F445-4BC1-B488-7AD56C69E79B@gmail.com> Message-ID: <175046FE-CC0D-4AD1-BFB8-85EB206BA3A7@doctorTimothyMiller.com> A big thankya goes out to Peter, Mike, Bob and Peter. Good ideas all. Tim On Mar 31, 2011, at 10:49 AM, Peter Brigham MD wrote: > I suspect that using a customproperty of the card would be faster for large numbers of cards. Accessing the contents of a field is slow, relative to pulling customprops. But it probably doesn't matter unless you have >1000 cards. > > -- Peter > > Peter M. Brigham > pmbrig at gmail.com > http://home.comcast.net/~pmbrig From bobs at twft.com Thu Mar 31 16:44:01 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 31 Mar 2011 13:44:01 -0700 Subject: novice question re "marked" and customkeys In-Reply-To: <57DDFA01-117A-47E9-99A7-968DC112C63D@doctorTimothyMiller.com> References: <57DDFA01-117A-47E9-99A7-968DC112C63D@doctorTimothyMiller.com> Message-ID: Never mind I can use the number of this card. Apparently the ID returns the ID of the first card the group was placed on. The number returns the actual number of the card being shown!! As an aside, the name also returns the name of the first card of the group. May I say that this behavior is really whacky??? Or maybe I do not understand. Bob > Okay I was going to make a demo stack of how to do this, but I have run across a problem someone was talking about earlier and I didn't get it then but I sure do now! > > In a button as part of a background group on a card I have: > > On mouseUp > put the id of this card into theFirstCard > go next > put the id of this card into theNextCard > end mouseUp > > THEY ARE BOTH THE SAME!!!!! How can that be? How can I get the ID of the CARD THAT IS CURRENTLY SHOWING? Not the CARD THAT THIS SCRIPT STARTED AT? (not shouting just capitalizing for emphasis). > > Bob > > From bonnmike at gmail.com Thu Mar 31 16:47:45 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 31 Mar 2011 14:47:45 -0600 Subject: Just noticed Message-ID: When i paste code into the script editor it doesn't set the dirty bit. Has it always been this way and I've just never noticed it before? From bobs at twft.com Thu Mar 31 18:29:16 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 31 Mar 2011 15:29:16 -0700 Subject: Bark Dark Message-ID: Well I put together a simple stack demonstrating a shared field with 2 lines, one for "barked" one for "darked" and some buttons to "dark" a card or "bark" a card and then find cards with those in that field. There are also buttons to "unbark", "undark", "Silence all" and "blind all". (Cute huh?) Obviously this is a really basic thing, but since someone was asking about alternate ways to mark cards, I thought I'd throw this together and post it. I don't think the property thing will work because I don't think you can find a card with a property or enumerate them as such. (This AIN'T Applescript man!" Unfortunately, I cannot post it because I cannot seem to log in to my Revonline account, so if anyone is vaguely interested, email me and I will send it to you. Bob From RevList at CreaTECHSol.com Thu Mar 31 18:41:12 2011 From: RevList at CreaTECHSol.com (RevList) Date: Thu, 31 Mar 2011 15:41:12 -0700 Subject: mileage -- re tax time In-Reply-To: <6FE54EC6-CC7A-4750-8ADF-47E8313D98FC@gmail.com> References: <8D0A1DE4-655F-46B3-BCC3-D7311C87C4CB@gmail.com> < > <6FE54EC6-CC7A-4750-8ADF-47E8313D98FC@gmail.com> Message-ID: How to use LiveCode on March 31, 2011 at 10:13 AM -0700 wrote: >Feel free to use it as the basis for something. I haven't tried to >delve into the iPhone/iPad/mobile platform, as I have my hands full >with my full-time job and LC desktop. If someone wants to take this >and run with it on mobile, please contact me off list. Make sure you read the legal stuff as I said in an earlier message. The API without a key has limits. ****************************************** Stewart Lynch CreaTECH Solutions slynch at CreaTECHSol.com 604.484.8499 Skype:StewartLynch There are only 10 kinds of people. Those who understand binary and those who don't. ****************************************** From pete at mollysrevenge.com Thu Mar 31 19:07:02 2011 From: pete at mollysrevenge.com (Pete) Date: Thu, 31 Mar 2011 16:07:02 -0700 Subject: novice question re "marked" and customkeys In-Reply-To: <175046FE-CC0D-4AD1-BFB8-85EB206BA3A7@doctorTimothyMiller.com> References: <57DDFA01-117A-47E9-99A7-968DC112C63D@doctorTimothyMiller.com> <1442D564-430F-4ABA-8B62-6611C0F50B05@twft.com> <3A84400C-F445-4BC1-B488-7AD56C69E79B@gmail.com> <175046FE-CC0D-4AD1-BFB8-85EB206BA3A7@doctorTimothyMiller.com> Message-ID: I think Mike's solution is the best. I didn't know you could mark cards in the way he suggested - doesn't seem much point in rolling your own when LC can do it for you. I guess the performance thing could be an issue if you can't use a custom property and there's a large number of cards. Pete On Thu, Mar 31, 2011 at 1:33 PM, Timothy Miller < gandalf at doctortimothymiller.com> wrote: > A big thankya goes out to Peter, Mike, Bob and Peter. Good ideas all. > > Tim > > > On Mar 31, 2011, at 10:49 AM, Peter Brigham MD wrote: > > > I suspect that using a customproperty of the card would be faster for > large numbers of cards. Accessing the contents of a field is slow, relative > to pulling customprops. But it probably doesn't matter unless you have >1000 > cards. > > > > -- Peter > > > > Peter M. Brigham > > pmbrig at gmail.com > > http://home.comcast.net/~pmbrig > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > -- Pete Molly's Revenge From m.schonewille at economy-x-talk.com Thu Mar 31 19:33:23 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Fri, 1 Apr 2011 01:33:23 +0200 Subject: Live LiveCode Code Event #17 Message-ID: Dear LiveCode fans, I'm happy to announce another Live LiveCode Code Event with two interesting presentations. This weekend's event is scheduled for Saturday, 2 April 2011 at 19:00h GMT (Sat. 22:00 in Moscow, Sat. 20:00 in Paris, Sat. 14:00 in New York, Sat. 11:00 in Los Angeles, Sun. 04:00 in Sydney, Sun. 03:00 in Tokyo, Sun. 2:00 in Beijing; check your local time here http://qery.us/oy). It will be the 17th edition of the Live LiveCode Code Event. Claudi will be exploring the interaction/integration with the Arduino micro controller. His project involves accelerometers and gyroscopes, which is also of interest to iOS developers. Mario will present a "Message driven programming style", which means that he is using messages to simplify and rationalize LC programming. He will explain the concept during his presentation. eHUG will be raffling off the e-book "Take Control of Easy Mac Backups" courtesy of TidBITS, http://www.tidbits.com/ . During the event, Economy-x-Talk offers a 25% discount on their Installer Maker, which can be found at http://installermaker.economy-x-talk.com . A license at 25% discount will be obtainable at http://livetalk.us/im . Make sure to use ChatRev during the happening, otherwise you won't know where to watch the streams, which will be announced in ChatRev. Download ChatRev here: http://bjoernke.com?target=chatrev or enter in the message box: go stack URL "http://bjoernke.com/chatrev/chatrev1.3b3.rev" See also the following page for the same information (soon): http://livecode.tv -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce From dunbarx at aol.com Thu Mar 31 19:35:21 2011 From: dunbarx at aol.com (dunbarx at aol.com) Date: Thu, 31 Mar 2011 19:35:21 -0400 Subject: novice question re "marked" and customkeys In-Reply-To: <57DDFA01-117A-47E9-99A7-968DC112C63D@doctorTimothyMiller.com> References: <57DDFA01-117A-47E9-99A7-968DC112C63D@doctorTimothyMiller.com> Message-ID: <8CDBE136FD06570-2240-C603@webmail-m129.sysops.aol.com> I think Tim wants many different and independent "marked" functions. The native marking system includes the abilities that are missing in using custom properties, say. But maybe a slight change in usage would work. Since "go next marked card" is something the engine understands and manages, why not task the engine by using: goNextBarkedCard or unBarkAllCards These commands now can trigger custom handlers, with identical functionality, by checking custom properties (the "barked") of the cards. It is just a matter of using one long command instead of the native compound command. Needs a loop, and speed might be an issue, of course. But at least these things can become a natural part of your thinking, and extend the language. Craig Newman -----Original Message----- From: Timothy Miller To: How to use LiveCode Sent: Thu, Mar 31, 2011 1:18 pm Subject: novice question re "marked" and customkeys Hey dudes, The "marked" property is so easy to use. "go next marked" and "unmark all cards" are so fast and foolproof! Very handy. I'm wondering if I can somehow define my own versions of "marked" E.g., in a hypothetical stack, the "marked" of cards 3, 10, 22 and 99 is "true" I somehow define my own properties, like "barked" and "darked" In the same hypothetical stack, the "barked" of cards 1,2, 3 and 4 is "true" the "darked" of cards 2,4,6,8 and 99 is "true" Somehow I could "go next barked" or "go next darked" just as fast and easy as I could "go next marked" In this perfect world, I could "unbark" or "undark" all cards as easily as I could unmark them. I suspect this isn't really possible. I suspect the closest equivalent would be to use customkeys and repeat loops, to find the next card with a certain value of a certain customkey, and so on. I suspect this would be somewhat slower than "go next marked" or "unmark all" The marked of a card resembles a customkey, but I suspect it works differently. True? Is it possible to "go next" to a card with a certain value of a certain customKey? Or is it necessary to use a repeat loop to inspect the each card until I encounter the customKey and value I want? Is it possible to "set the poodleNose of all cards to empty"? I suspect not. Am I getting this right? Am I missing anything important? Thanks in advance, Tim _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From pmbrig at gmail.com Thu Mar 31 19:57:28 2011 From: pmbrig at gmail.com (Peter Brigham MD) Date: Thu, 31 Mar 2011 19:57:28 -0400 Subject: novice question re "marked" and customkeys In-Reply-To: References: <57DDFA01-117A-47E9-99A7-968DC112C63D@doctorTimothyMiller.com> <1442D564-430F-4ABA-8B62-6611C0F50B05@twft.com> <3A84400C-F445-4BC1-B488-7AD56C69E79B@gmail.com> <175046FE-CC0D-4AD1-BFB8-85EB206BA3A7@doctorTimothyMiller.com> Message-ID: <66D10644-6FD9-4AEB-8762-844CCEE391E0@gmail.com> "mark cards where..." is very fast and very flexible. Using a (possibly hidden) checkbox button should be quite feasible even with lots of cards. To "unbark all" you can loop through all the cards and set the hilite of the button to false -- be sure not to *go* to the cards, just loop through them by reference -- and that should be quite fast as well. (set the hilite of btn "barked" of marked card n to false) Or, 'mark cards where the hilite of btn "barked" = true' and then loop through the marked cards, set the hilite of btn "barked" to false, then unmark all cards. Cycling through the cards by reference is fast ('set the hilite of btn "barked" of marked card n to false') -- always, always, always avoid things like "go card n" within a loop, since that takes lots of time. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Mar 31, 2011, at 7:07 PM, Pete wrote: > I think Mike's solution is the best. I didn't know you could mark > cards in > the way he suggested - doesn't seem much point in rolling your own > when LC > can do it for you. I guess the performance thing could be an issue > if you > can't use a custom property and there's a large number of cards. > Pete > > On Thu, Mar 31, 2011 at 1:33 PM, Timothy Miller < > gandalf at doctortimothymiller.com> wrote: > >> A big thankya goes out to Peter, Mike, Bob and Peter. Good ideas all. >> >> Tim >> >> >> On Mar 31, 2011, at 10:49 AM, Peter Brigham MD wrote: >> >>> I suspect that using a customproperty of the card would be faster >>> for >> large numbers of cards. Accessing the contents of a field is slow, >> relative >> to pulling customprops. But it probably doesn't matter unless you >> have >1000 >> cards. >>> >>> -- Peter >>> >>> Peter M. Brigham >>> pmbrig at gmail.com >>> http://home.comcast.net/~pmbrig >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> > > > -- > Pete > Molly's Revenge > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jimaultwins at yahoo.com Thu Mar 31 20:23:14 2011 From: jimaultwins at yahoo.com (Jim Ault) Date: Thu, 31 Mar 2011 17:23:14 -0700 Subject: Bark Dark In-Reply-To: References: Message-ID: On Mar 31, 2011, at 3:29 PM, Bob Sneidar wrote: > I don't think the property thing will work because I don't think you > can find a card with a property or enumerate them as such. (This > AIN'T Applescript man!" > The 'property thing' does not refer to the CARD properties, but the customProperties of the STACK ---- tested in a working stack ------------------ --note fld statusCode is NOT shared -- flds desiredCodeString notnowCodeString -- ARE SHARED -- fld output is NOT shared -- all fields are in a group that behaves as backgound on doCustomPropertyRun -- I use 'cps' to mean 'cust prop set' set the customPropertySet of this stack to "cpsStatusCodes" --make this set empty set the customkeys of this stack to empty --you only need to do the repeat when changes are made -- or when the stack closes repeat with k = 1 to the number of cards put word -1 of the short id of card k into thisCdId get k & "^" & word 1 to -1 of fld "statusCode" of card k replace cr with space in IT set the cpsStatusCodes[ thisCdId ] of this stack to IT end repeat save this stack --if it is run in the IDE, but not if an app --To get the list of 'marked cards' you would do the following type of operation set the customPropertySet of this stack to "cpsStatusCodes" put the customProperties of this stack into statusCodeList -- now make a regular list combine statusCodeList using cr and "^" set the itemdel to "^" if field "desiredCodeString" is not empty then filter statusCodeList with "*" & field "desiredCodeString" & "*" --and now you have a list of cd id's end if if field "notnowCodeString" is not empty then filter statusCodeList without "*" & field "notnowCodeString" & "*" -- and you have a shorter list if any have been removed end if -- if you want the card order, use the following sort statusCodeList numeric by item 2 of each put statusCodeList into fld "output" --this allows showing a list of hits and changing the final list in many ways end doCustomPropertyRun ---------------------------------------- Jim Ault Las Vegas From mcgrath3 at mac.com Thu Mar 31 21:55:47 2011 From: mcgrath3 at mac.com (Thomas McGrath III) Date: Thu, 31 Mar 2011 21:55:47 -0400 Subject: Live LiveCode Code Event #17 In-Reply-To: References: Message-ID: Darn, I'll be out of town Saturday. Unless we get this to work on the iPad. -- Tom McGrath III http://lazyriver.on-rev.com 3mcgrath at comcast.net On Mar 31, 2011, at 7:33 PM, Mark Schonewille wrote: > Dear LiveCode fans, > > I'm happy to announce another Live LiveCode Code Event with two interesting presentations. This weekend's event is scheduled for Saturday, 2 April 2011 at 19:00h GMT (Sat. 22:00 in Moscow, Sat. 20:00 in Paris, Sat. 14:00 in New York, Sat. 11:00 in Los Angeles, Sun. 04:00 in Sydney, Sun. 03:00 in Tokyo, Sun. 2:00 in Beijing; check your local time here http://qery.us/oy). It will be the 17th edition of the Live LiveCode Code Event. > > Claudi will be exploring the interaction/integration with the Arduino micro controller. His project involves accelerometers and gyroscopes, which is also of interest to iOS developers. > > Mario will present a "Message driven programming style", which means that he is using messages to simplify and rationalize LC programming. He will explain the concept during his presentation. > > eHUG will be raffling off the e-book "Take Control of Easy Mac Backups" courtesy of TidBITS, http://www.tidbits.com/ . > > During the event, Economy-x-Talk offers a 25% discount on their Installer Maker, which can be found at http://installermaker.economy-x-talk.com . A license at 25% discount will be obtainable at http://livetalk.us/im . > > Make sure to use ChatRev during the happening, otherwise you won't know where to watch the streams, which will be announced in ChatRev. Download ChatRev here: > http://bjoernke.com?target=chatrev > or enter in the message box: > go stack URL "http://bjoernke.com/chatrev/chatrev1.3b3.rev" > > See also the following page for the same information (soon): > http://livecode.tv > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jimaultwins at yahoo.com Thu Mar 31 23:14:17 2011 From: jimaultwins at yahoo.com (Jim Ault) Date: Thu, 31 Mar 2011 20:14:17 -0700 Subject: novice question re "marked" and customkeys In-Reply-To: <66D10644-6FD9-4AEB-8762-844CCEE391E0@gmail.com> References: <57DDFA01-117A-47E9-99A7-968DC112C63D@doctorTimothyMiller.com> <1442D564-430F-4ABA-8B62-6611C0F50B05@twft.com> <3A84400C-F445-4BC1-B488-7AD56C69E79B@gmail.com> <175046FE-CC0D-4AD1-BFB8-85EB206BA3A7@doctorTimothyMiller.com> <66D10644-6FD9-4AEB-8762-844CCEE391E0@gmail.com> Message-ID: <13851668-099E-475E-A816-3DD90839C26D@yahoo.com> On Mar 31, 2011, at 4:57 PM, Peter Brigham MD wrote: > Cycling through the cards by reference is fast ('set the hilite of > btn "barked" of marked card n to false') -- always, always, always > avoid things like "go card n" within a loop, since that takes lots > of time. After the list of card id's is generated, you would not use a repeat loop to access the cards using 'go card n' in that loop. If the user is navigating, it would be one at a time through the list. Otherwise, access to the card data would not be by navigating to the card ( or the stack, or the substack ) You cold retrieve data from any card in any stack or substack without navigating. Thus you could have multiple lists and multiple stacks at the same time using multiple criteria. This is more flexible for future development schemes than would compare multiple lists and data sets. Hope this gives someone an idea or two that might be easier than learning SQL, etc. Jim Ault Las Vegas