From admin at FlexibleLearning.com Sun Jan 1 14:43:54 2012 From: admin at FlexibleLearning.com (FlexibleLearning) Date: Sun, 1 Jan 2012 19:43:54 -0000 Subject: HTML: Private tag In-Reply-To: Message-ID: Nice one, Richard. Could have sworn there was an undocumented tag, but must have mis-remembered. Hugh Senior FLCo Hugh Senior wrote: > Can someone please remind me of the syntax to include a 'private' tag in the > htmlText (one that can contain string data and is not removed by LC)? So far the only solution I've found for embedding metadata in text is to use a name attribute within an anchor tab, e.g.: There's the text When an anchor tag has no href attribute it's not rendered as a link, which makes it okay for this sort of metadata. However, if you later add an href attribute it will remove the name attrbute; apparently name and href are mutually exclusive in the current implementation. To provide more flexibility for this sort of thing I've submitted a request to support the span tag: From stephenREVOLUTION2 at barncard.com Sun Jan 1 18:44:45 2012 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Sun, 1 Jan 2012 15:44:45 -0800 Subject: HTML: Private tag In-Reply-To: References: Message-ID: hi gang, I'm gathering from this conversation that the aim is being able to add extra data into livecode's htmltext, presumably to add extra control over display of fields, and build it all into a package. I may have brought this up before, but if I might interject an idea (or call it a workaround) into this mix. Have you considered turning the problem around? How about adding a couple of handlers to the affected field? If many fields, it could be a behavior. then mixed code like this (note last line)

current DATABASE is <database>

current TABLE is <table>

PLEASE SELECT FIELDS AND ORDER

REARRANGE ORDER AND / OR DELETE UNWANTED FIELDS

will display like this: (not all mailers may get this right) current DATABASE is current TABLE is PLEASE SELECT FIELDS AND ORDER REARRANGE ORDER AND / OR DELETE UNWANTED FIELDS And this method, using simple property-data pairs, can set ANY property of a field, including custom ones. This could be handy for a multipurpose field -- consider Once I've created a message, I'll create a base64Encoded block of text, suitable for insertion in a script: get Base64Decode( \ "PHA+PGZvbnQgZmFjZT0iQXJpYWwgQm9sZCIgc2l6ZT0iMTIiIGNvbG9yPSIjMDAwMDAwIj5j" & \ "dXJyZW50IERBVEFCQVNFIGlzIDwvZm9udD48Zm9udCBmYWNlPSJBcmlhbCBCb2xkIiBjb2xv" & \ "cj0iIzAwMDAwMCI+Jmx0O2RhdGFiYXNlJmd0OzwvZm9udD48L3A+CjxwPjxmb250IGZhY2U9" & \ "IkFyaWFsIEJvbGQiIHNpemU9IjEyIiBjb2xvcj0iIzAwMDAwMCI+Y3VycmVudCBUQUJMRSBp" & \ "cyA8L2ZvbnQ+PGZvbnQgZmFjZT0iQXJpYWwgQm9sZCIgY29sb3I9IiMwMDAwMDAiPiZsdDt0" & \ "YWJsZSZndDs8L2ZvbnQ+PC9wPgo8cD48Zm9udCBmYWNlPSJBcmlhbCBCb2xkIiBzaXplPSIx" & \ "OCIgY29sb3I9IiMwMDAwMDAiIGJnY29sb3I9IiNBREQ4RTYiPjxpPlBMRUFTRSBTRUxFQ1Qg" & \ "RklFTERTIEFORCBPUkRFUjwvaT48L2ZvbnQ+PC9wPgo8cD48Zm9udCBmYWNlPSJBcmlhbCIg" & \ "Y29sb3I9IiM1ODJBMEYiPlJFQVJSQU5HRSBPUkRFUiBBTkQgLyBPUiBERUxFVEUgVU5XQU5U" & \ "RUQgRklFTERTPC9mb250PjwvcD4KPHA+ICAgICAgICA8L3A+Cjx0ZXh0YWxpZ249Y2VudGVy" & \ "PiA8dGFic3RvcHM9MTAwLDcwMD4gPGJhY2tncm91bmRjb2xvcj0yNTUsMjU1LDI1NT4=" ) set the extendedhtmltext of fld "whatever" to it --> EXTENDED HTML 2010 --> script lives in affected field setprop extendedhtmltext pText -- parses incoming html text for possible style and tabs info and sets accordingly -- triggers on ",pText,0) into t2 put character t1+1 to t2-1 of pText & return after tOut delete character 1 to t2 of pText end repeat delete last character of tOut return tOut end parseTagLine on assignValues pData set the itemDelimiter to "=" repeat for each line tln in pData put \ "set the" && (item 1 of tln) && \ "of me" && \ "to" && quote & (item 2 of tln) & quote into tCommand do tCommand end repeat end assignValues -- this is in the stack script -- I wanted it to be getprop extendedHtmltext but would have to change the name function getTheFieldSpecs tField -- put the HTMLText of field tField of this cd into pText put the textAlign of field tField of this cd into pAlign put the tabStops of field tField of this cd into pStops put the backgroundColor of field tField of this cd into pBackground return \ return & \ "" && \ "" && \ "" end getTheFieldSpecs On 1 January 2012 11:43, FlexibleLearning wrote: > Nice one, Richard. Could have sworn there was an undocumented > tag, > but must have mis-remembered. > > Hugh Senior > FLCo > > > Hugh Senior wrote: > > Can someone please remind me of the syntax to include a 'private' tag in > the > > htmlText (one that can contain string data and is not removed by LC)? > > So far the only solution I've found for embedding metadata in text is to > use a name attribute within an anchor tab, e.g.: > > There's the text > > When an anchor tag has no href attribute it's not rendered as a link, > which makes it okay for this sort of metadata. > > However, if you later add an href attribute it will remove the name > attrbute; apparently name and href are mutually exclusive in the current > implementation. > > To provide more flexibility for this sort of thing I've submitted a > request to support the span tag: > > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Sun Jan 1 18:54:47 2012 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Sun, 1 Jan 2012 15:54:47 -0800 Subject: iOS; Android: manual sound recording level In-Reply-To: <4A099F21-2DBE-48F5-93BB-7DFB0ACEE41E@snet.net> References: <4A099F21-2DBE-48F5-93BB-7DFB0ACEE41E@snet.net> Message-ID: Sound in the web world, I've discovered, is a battle-ravaged mess by the time it gets to user, further exacerbated by the trend toward hiding or eliminating controls, enabling players to start at the loudest volume possible, and hypercompression and clueless recording by content providers. I'm not surprised at what you've discovered. By the way, true compression and averaging software will never clip, but it's usually implemented by people who don't care or don't test the crap they make. I also doubt the Android software has any such feature. You are just getting what you get. On 30 December 2011 20:48, Kurt Kaufman wrote: > I understand that on both iOS and Android, there is no provision for > manual adjustment of sound recording levels. I assume that there must be > some sort of compression scheme used to "average" the sound levels, with > low level sound boosted and high level sound clipped. I also guess that > there might be problems with background noise at very low sound levels, and > distortion at very high sound levels. Anyone have experience working with > sound recording on these two platforms? > Thanks, Kurt > _______________________________________________ > use-livecode mailing list > use-livecode 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 Kresten.Bjerg at psy.ku.dk Sun Jan 1 18:55:07 2012 From: Kresten.Bjerg at psy.ku.dk (Kresten Bjerg) Date: Mon, 2 Jan 2012 00:55:07 +0100 Subject: Ways to get the IDs of two already scripted buttons? Message-ID: <8962F0E4BD055148AA4051D91F7EB4A90900C338B0@IBTMAIL2A.ibt.ku.dk.ad> I am trying to script a handler guiding (through Answer dialogue) user of standalone to select first one arbitrary existing button, to put its ID in a variable and (new answer-dialogue) then another existing button, to collect its Id into another variable, - for(new answer-dialogue) connecting them with a line/ or erase line between them. As these buttons are already scripted, and mouseups to them must be avoided, I hope that Alt clicking them might be a way to have them selected enough to get their IDs. But I cannot find my way to make it work. I have thought that there might be a way perhaps through a "Wait until condition", but don't know how to formulate such script. I am also uncertain: Is the use of the ALT-click a realistic strategy to get hold of the button-IDs? I cannot imagine that something like this should be impossible in livecode Happy New Year From Kresten Bjerg From dixonja at hotmail.co.uk Sun Jan 1 19:24:17 2012 From: dixonja at hotmail.co.uk (John Dixon) Date: Mon, 2 Jan 2012 00:24:17 +0000 Subject: Ways to get the IDs of two already scripted buttons? In-Reply-To: <8962F0E4BD055148AA4051D91F7EB4A90900C338B0@IBTMAIL2A.ibt.ku.dk.ad> References: <8962F0E4BD055148AA4051D91F7EB4A90900C338B0@IBTMAIL2A.ibt.ku.dk.ad> Message-ID: Would it work for you if you got the ID of the button on a mouseEnter ? > I am trying to script a handler guiding (through Answer dialogue) user of standalone to select first one arbitrary existing button, to put its ID in a variable and (new answer-dialogue) then another existing button, to collect its Id into another variable, - for(new answer-dialogue) connecting them with a line/ or erase line between them. > As these buttons are already scripted, and mouseups to them must be avoided, I hope that Alt clicking them might be a way to have them selected enough to get their IDs. But I cannot find my way to make it work. I have thought that there might be a way perhaps through a "Wait until condition", but don't know how to formulate such script. I am also uncertain: Is the use of the ALT-click a realistic strategy to get hold of the button-IDs? > I cannot imagine that something like this should be impossible in livecode > Happy New Year > From > Kresten Bjerg > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sun Jan 1 19:28:56 2012 From: dunbarx at aol.com (dunbarx at aol.com) Date: Sun, 1 Jan 2012 19:28:56 -0500 (EST) Subject: Ways to get the IDs of two already scripted buttons? In-Reply-To: <8962F0E4BD055148AA4051D91F7EB4A90900C338B0@IBTMAIL2A.ibt.ku.dk.ad> References: <8962F0E4BD055148AA4051D91F7EB4A90900C338B0@IBTMAIL2A.ibt.ku.dk.ad> Message-ID: <8CE96FCA5E43E06-2024-5C1D9@Webmail-m111.sysops.aol.com> Since you need to start a process that sets up the selection process, why not set a custom property as well? You would modify the button scripts so that they only proceed if the correct value of that property is read. In that way, the new button handlers would check the property at the outset, and exit if they found it was not allowed. You need to reset somehow, of course. I think this is better than requiring odd click combinations. Craig Newman -----Original Message----- From: Kresten Bjerg To: use-livecode Sent: Sun, Jan 1, 2012 1:56 pm Subject: Ways to get the IDs of two already scripted buttons? I am trying to script a handler guiding (through Answer dialogue) user of standalone to select first one arbitrary existing button, to put its ID in a variable and (new answer-dialogue) then another existing button, to collect its Id into another variable, - for(new answer-dialogue) connecting them with a line/ or erase line between them. As these buttons are already scripted, and mouseups to them must be avoided, I hope that Alt clicking them might be a way to have them selected enough to get their IDs. But I cannot find my way to make it work. I have thought that there might be a way perhaps through a "Wait until condition", but don't know how to formulate such script. I am also uncertain: Is the use of the ALT-click a realistic strategy to get hold of the button-IDs? I cannot imagine that something like this should be impossible in livecode Happy New Year From Kresten Bjerg _______________________________________________ use-livecode mailing list use-livecode at 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 Sun Jan 1 19:40:47 2012 From: todd at geistinteractive.com (Todd Geist) Date: Sun, 1 Jan 2012 16:40:47 -0800 Subject: Listen for messages in FrontScripts In-Reply-To: References: Message-ID: As a follow up? It appears from my testing that if one use dispatch with out a target in a frontScript that the message travels through the frontScirpt and the drops down the message path to Libraries or BackScripts. No regular Stacks or cards or controls get the message. So custom messages just drop right through to the back Do I have this right? Thanks Todd From mwieder at ahsoftware.net Sun Jan 1 21:45:14 2012 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sun, 1 Jan 2012 18:45:14 -0800 Subject: Ways to get the IDs of two already scripted buttons? In-Reply-To: <8962F0E4BD055148AA4051D91F7EB4A90900C338B0@IBTMAIL2A.ibt.ku.dk.ad> References: <8962F0E4BD055148AA4051D91F7EB4A90900C338B0@IBTMAIL2A.ibt.ku.dk.ad> Message-ID: <76185382609.20120101184514@ahsoftware.net> Kresten- Sunday, January 1, 2012, 3:55:07 PM, you wrote: > I cannot imagine that something like this should be impossible in livecode This seems like a prime candidate for a frontscript. The simplest way might be to use a global variable (warning - untested): global gSelectedID put empty into gSelectedID insert the script of button "xyzzy" into front answer ... remove the script of button "xyzzy" from front if abc is not empty then ... in button "xyzzy"'s script: on mouseUp global gSelectedID put the id of the target into gSelectedID if "Answer" is not in the long name of the target then -- *don't pass mouseUp else -- allow mouseUp events in the Answer dialog buttons pass mouseUp end if end mouseUp -- -Mark Wieder mwieder at ahsoftware.net From kkaufman at snet.net Sun Jan 1 23:18:56 2012 From: kkaufman at snet.net (Kurt Kaufman) Date: Sun, 1 Jan 2012 23:18:56 -0500 Subject: iOS; Android: manual sound recording level Message-ID: <98E0AD99-735C-429B-9840-9FD64061D93F@snet.net> It's odd, perhaps, when you consider that earlier mobile phone software, such as Symbian s60, offered manually-adjustable sound recording levels at least as far back as 2005. Perhaps the capability will be rolled-out over time with revisions to iOS and Android. But I would guess that many people are so used to the battle-ravaged mess that they generally don't notice the difference. So now we have a situation where the 50-year-old Wollensak tape recorder in my basement makes better recordings than the iPhone (and they're both monaural). On Sun Jan 1 17:54, stephen barncard wrote: > Sound in the web world, I've discovered, is a battle-ravaged mess by the > time it gets to user, further exacerbated by the trend toward hiding or > eliminating controls, enabling players to start at the loudest volume > possible, and hypercompression and clueless recording by content providers. > > I'm not surprised at what you've discovered. > > By the way, true compression and averaging software will never clip, but > it's usually implemented by people who don't care or don't test the crap > they make. I also doubt the Android software has any such feature. You are > just getting what you get. From mwieder at ahsoftware.net Sun Jan 1 23:38:12 2012 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sun, 1 Jan 2012 20:38:12 -0800 Subject: Listen for messages in FrontScripts In-Reply-To: References: Message-ID: <154192160203.20120101203812@ahsoftware.net> Todd- Sunday, January 1, 2012, 4:40:47 PM, you wrote: > It appears from my testing that if one use dispatch with out a target Why would you want to do this? The only time I issue a dispatch without a target is in a behavior script, and in that case the message is delivered to the parent object, which is a very neat trick, and I think is the equivalent of ruby's yield command. -- -Mark Wieder mwieder at ahsoftware.net From gwendalwood at cox.net Mon Jan 2 01:20:51 2012 From: gwendalwood at cox.net (gwendalwood at cox.net) Date: Sun, 1 Jan 2012 22:20:51 -0800 Subject: Printing from iOS Message-ID: <20120102012051.CGW4D.507523.imail@fed1rmwml213> Has anyone found or created a way to achieve "print card" from iOS on an iPhone or iPad to an Air Print enabled wireless printer? From jhurley0305 at sbcglobal.net Mon Jan 2 02:23:22 2012 From: jhurley0305 at sbcglobal.net (James Hurley) Date: Sun, 1 Jan 2012 23:23:22 -0800 Subject: Setting the cursor In-Reply-To: References: Message-ID: <37A58224-10CA-49DA-8986-A2DF9C920F6E@sbcglobal.net> How do I set the loc of the cursor? By script, of course. Jim From rene.micout at numericable.com Mon Jan 2 02:56:45 2012 From: rene.micout at numericable.com (=?iso-8859-1?Q?Ren=E9_Micout?=) Date: Mon, 2 Jan 2012 08:56:45 +0100 Subject: [OT] 2012 Message-ID: <62C75E22-E976-4597-A79F-8BF435B25EB7@numericable.com> Hello camarades, All my best wishes for this new year. Tous mes meilleurs v?ux pour cette nouvelle ann?e 2012. Ren? From rene.micout at numericable.com Mon Jan 2 03:00:48 2012 From: rene.micout at numericable.com (=?iso-8859-1?Q?Ren=E9_Micout?=) Date: Mon, 2 Jan 2012 09:00:48 +0100 Subject: Setting the cursor In-Reply-To: <37A58224-10CA-49DA-8986-A2DF9C920F6E@sbcglobal.net> References: <37A58224-10CA-49DA-8986-A2DF9C920F6E@sbcglobal.net> Message-ID: Hello Jim, See in dictionary : xHot and yHot properties Bon souvenir de Paris Ren? Le 2 janv. 2012 ? 08:23, James Hurley a ?crit : > How do I set the loc of the cursor? By script, of course. > > Jim > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jan 2 05:41:32 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Mon, 2 Jan 2012 11:41:32 +0100 Subject: Installer Maker 33% OFF Message-ID: <8E83A4BD-BC6D-4DA0-AF35-DAA012F4C7BB@economy-x-talk.com> Hi everyone, First of all, a happy new year to everyone reading this list. I wish you all a productive year with very few bugs! Today is the last day to purchase a license for Installer Maker Plugin with a 33% discount. Go to http://qery.us/za and use the Plimus button to make the purchase. Use the coupon code 33OFF. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! From matthias_livecode_150811 at m-r-d.de Mon Jan 2 06:21:55 2012 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Mon, 2 Jan 2012 12:21:55 +0100 Subject: Installer Maker 33% OFF In-Reply-To: <8E83A4BD-BC6D-4DA0-AF35-DAA012F4C7BB@economy-x-talk.com> References: <8E83A4BD-BC6D-4DA0-AF35-DAA012F4C7BB@economy-x-talk.com> Message-ID: <2AB91C8D-BB2D-43CD-A7BE-88F0710BBD6C@m-r-d.de> Mark, just for your information: The code has expired. At least that?s what Plimus is saying. Regards, Matthias Am 02.01.2012 um 11:41 schrieb Mark Schonewille: > Hi everyone, > > First of all, a happy new year to everyone reading this list. I wish you all a productive year with very few bugs! > > Today is the last day to purchase a license for Installer Maker Plugin with a 33% discount. Go to http://qery.us/za and use the Plimus button to make the purchase. Use the coupon code 33OFF. > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jvalle at 1234web.net Mon Jan 2 08:45:58 2012 From: jvalle at 1234web.net (jvalle at 1234web.net) Date: Mon, 02 Jan 2012 14:45:58 +0100 Subject: OFF TOPIC virtualize windows on mac Message-ID: <20120102144557.4D75.83BAC89@1234web.net> Hello, starting with an old Macbook would like to know your expert opinion about what is the best virtualization solution to run Windows on Mac, from a developer point of view. Thanks and Happy New Year -- Jose From m.schonewille at economy-x-talk.com Mon Jan 2 08:59:11 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Mon, 2 Jan 2012 14:59:11 +0100 Subject: Installer Maker 33% OFF Message-ID: <7AC92933-5F79-4024-A8E8-77CB4A138748@economy-x-talk.com> Hi Matthias, Thanks for the waring. This is Plimus' mistake. My Plimus account tells me the coupon code is still active. I'll make sure that the discount can be applied one more day after this problem has been solved. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! > Mark, > > just for your information: The code has expired. At least that?s what Plimus is saying. > > Regards, > > Matthias From m.schonewille at economy-x-talk.com Mon Jan 2 10:53:00 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Mon, 2 Jan 2012 16:53:00 +0100 Subject: OFF TOPIC virtualize windows on mac In-Reply-To: <20120102144557.4D75.83BAC89@1234web.net> References: <20120102144557.4D75.83BAC89@1234web.net> Message-ID: <15E3C061-AFEE-4969-AB27-1BF164ADA7D4@economy-x-talk.com> Hi Jose, From a developers point of view, it is important to test your software on actual Windows hardware. If you don't do this, you may run into unexpected problems, either because something works on a PC but not in a virtual environment or because you may write a script that accesses the hardware of the host machine but can't access the hardware of a real PC. Nonetheless, I use a virtual environment myself when I have no PC available. VirtualBox is free and works as good as any commercial product. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! On 2 jan 2012, at 14:45, jvalle at 1234web.net wrote: > Hello, > > starting with an old Macbook would like to know your expert opinion about what > is the best virtualization solution to run Windows on Mac, from a developer > point of view. > > Thanks and Happy New Year > -- > Jose From roger.e.eller at sealedair.com Mon Jan 2 10:57:19 2012 From: roger.e.eller at sealedair.com (Roger Eller) Date: Mon, 2 Jan 2012 10:57:19 -0500 Subject: OFF TOPIC virtualize windows on mac In-Reply-To: <20120102144557.4D75.83BAC89@1234web.net> References: <20120102144557.4D75.83BAC89@1234web.net> Message-ID: On Mon, Jan 2, 2012 at 8:45 AM, jvalle at 1234web.net wrote: > Hello, > > starting with an old Macbook would like to know your expert opinion about > what > is the best virtualization solution to run Windows on Mac, from a developer > point of view. > > Thanks and Happy New Year > -- > Jose If the Mac is PPC rather than intel, then I wouldn't recommend virtialization as it would be 'emulation', which is unproductively slow. You would be better off buying a low-end PC. However, if the Mac has an intel cpu, then start with the FREE Virtualbox, and see if it meets your needs. If not, VMware Fusion is very good, and also Parallels Desktop for Mac. If intel, and your OS is at least Leopard, SnowLeo, or Lion, you could install Windows using BootCamp (in Utililies). This would allow you to boot natively in Windows, and would be as close to the real thing as you can get while using Apple hardware. https://www.virtualbox.org/wiki/Downloads https://www.vmware.com/tryvmware/ http://www.parallels.com/download/ http://support.apple.com/kb/HT3986 ?Roger From kray at sonsothunder.com Mon Jan 2 12:01:25 2012 From: kray at sonsothunder.com (Ken Ray) Date: Mon, 2 Jan 2012 11:01:25 -0600 Subject: [OT] 2012 In-Reply-To: <62C75E22-E976-4597-A79F-8BF435B25EB7@numericable.com> References: <62C75E22-E976-4597-A79F-8BF435B25EB7@numericable.com> Message-ID: On Jan 2, 2012, at 1:56 AM, Ren? Micout wrote: > Hello camarades, > All my best wishes for this new year. > Tous mes meilleurs v?ux pour cette nouvelle ann?e 2012. Same to you, Ren?! Here's hoping that 2012 is a lot better than 2011 was! (Mayan predictions not withstanding?) ;-) Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From kray at sonsothunder.com Mon Jan 2 12:03:35 2012 From: kray at sonsothunder.com (Ken Ray) Date: Mon, 2 Jan 2012 11:03:35 -0600 Subject: Setting the cursor In-Reply-To: <37A58224-10CA-49DA-8986-A2DF9C920F6E@sbcglobal.net> References: <37A58224-10CA-49DA-8986-A2DF9C920F6E@sbcglobal.net> Message-ID: On Jan 2, 2012, at 1:23 AM, James Hurley wrote: > How do I set the loc of the cursor? By script, of course. set the screenMouseLoc to :D Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From kray at sonsothunder.com Mon Jan 2 12:06:15 2012 From: kray at sonsothunder.com (Ken Ray) Date: Mon, 2 Jan 2012 11:06:15 -0600 Subject: OFF TOPIC virtualize windows on mac In-Reply-To: References: <20120102144557.4D75.83BAC89@1234web.net> Message-ID: <2EA37FE7-F902-430F-8C82-E4B6F38E1DCB@sonsothunder.com> > If not, VMware Fusion is very good, and also Parallels Desktop for > Mac. Just FYI, I've read a ton of comparisons on these two, and own both, and over the last year or two, Parallels has always come out ahead of VMWare in the published reviews. I can back that up with personal experience, too. That said, I wouldn't be surprised if VMWare jumps ahead of Parallels this year and the two get into a "leap frog" contest, but either one is great for virtualization, IMHO. Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From coiin at verizon.net Mon Jan 2 12:27:14 2012 From: coiin at verizon.net (Colin Holgate) Date: Mon, 02 Jan 2012 12:27:14 -0500 Subject: OFF TOPIC virtualize windows on mac In-Reply-To: <2EA37FE7-F902-430F-8C82-E4B6F38E1DCB@sonsothunder.com> References: <20120102144557.4D75.83BAC89@1234web.net> <2EA37FE7-F902-430F-8C82-E4B6F38E1DCB@sonsothunder.com> Message-ID: <92331B81-F2D8-4802-BCA1-BC259D1B781F@verizon.net> I have been licensed for both of those, and have switched back and forth as one gets better than the other. Right now Parallels is doing well, and I have Windows 8 running under that. I can even publish to Android devices using the Windows version of LiveCode, and the performance in general is pretty amazing, on my MacBook Air. On Jan 2, 2012, at 12:06 PM, Ken Ray wrote: > > >Just FYI, I've read a ton of comparisons on these two, and own both, and over the last year or two, Parallels has always come out ahead of VMWare in the published reviews. From admin at FlexibleLearning.com Mon Jan 2 12:45:05 2012 From: admin at FlexibleLearning.com (FlexibleLearning) Date: Mon, 2 Jan 2012 17:45:05 -0000 Subject: Visible text calculation In-Reply-To: Message-ID: Has anyone figured out how to convert pageHeights into the equivalent character offsets of a field with variable lineHeights (e.g. char 1 to 174, char 175 to 315, char 316 to 420)? Put another way, using pageHeights to print a scrolling field, list the first and last chars of each printed page. Reason is to implement text flow (imagine virtual printing). Someone must have been down this brain-befuddling route! Can you share the wisdom? Hugh Senior FLCo From dan at clearvisiontech.com Mon Jan 2 13:02:51 2012 From: dan at clearvisiontech.com (Dan Friedman) Date: Mon, 2 Jan 2012 10:02:51 -0800 Subject: iOS Browser Print In-Reply-To: References: Message-ID: <2B3F9842-F6D3-44C5-984D-2F5C24B5F56C@clearvisiontech.com> Happy New Year! Question... is it possible to print a iOS Browser Control? For example, you have a web page loaded up in a browser control in your iPad project. Can I add a "Print" button so the user can print the web page? Thanks! -Dan From bryan at deepfoo.com Mon Jan 2 13:10:27 2012 From: bryan at deepfoo.com (Bryan McCormick) Date: Mon, 02 Jan 2012 13:10:27 -0500 Subject: Scripting a text to binary digits converter Message-ID: <4F01F313.6020002@deepfoo.com> I have seen a number of sites that use a text to binary digits converter for simple encryption. Such that "this is my text" would be written as "011101000110100001101001011100110010000001101001011100110010000001101101011110010010000001110100011001010111100001110100" What is the simplest way of doing this in livecode? Could something like this also be done for photos? Or better I suppose for photos would be conversion to ascii text. Thanks in advance for ideas and pointers. From dan at clearvisiontech.com Mon Jan 2 13:15:07 2012 From: dan at clearvisiontech.com (Dan Friedman) Date: Mon, 2 Jan 2012 10:15:07 -0800 Subject: Printing from iOS In-Reply-To: References: Message-ID: <8BAAE25C-B7C7-4C49-9A94-A0A22AF0AA3A@clearvisiontech.com> Yes, I have... It's a little bit of a pain, but it's working quite well! You have to use the "rrehardcopy" external. It's provided in the "LiveCodeSDK-R10" package (http://www.runrev.com/developers/documentation/externals-sdk/). Include it in your iOS standalone and it will popup the standard choose printer panel. What you do is first print whatever you want the user to print to a pdf file. Then call this: on printIt tPDFFile,tPrintJob -- tPDFFile = the path to the pdf file -- specialFolderPath("Documents") & "/printTemp.pdf" for example --tPrintJob = the name of the print job as seen by the user if not rreHardcopyIsAvailable() then answer "Printing is not available at this time." titled "Whoops" exit to top end if rreHardcopyPrintPDF tPDFFile, tPrintJob if the result = "printing cancelled" then exit to top end if end printIt Hope that helps! -Dan On Jan 2, 2012, at 10:00 AM, use-livecode-request at lists.runrev.com wrote: > Date: Sun, 1 Jan 2012 22:20:51 -0800 > From: > To: use-livecode at lists.runrev.com > Subject: Printing from iOS > Message-ID: <20120102012051.CGW4D.507523.imail at fed1rmwml213> > Content-Type: text/plain; charset=utf-8 > > Has anyone found or created a way to achieve "print card" from iOS on an iPhone or iPad to an Air Print enabled wireless printer? From sundown at pacifier.com Mon Jan 2 13:45:55 2012 From: sundown at pacifier.com (-=>JB<=-) Date: Mon, 2 Jan 2012 10:45:55 -0800 Subject: Scripting a text to binary digits converter In-Reply-To: <4F01F313.6020002@deepfoo.com> References: <4F01F313.6020002@deepfoo.com> Message-ID: <458956A0-776C-444D-B973-998E772907FC@pacifier.com> The scripts below will convert between ASCII and Binary Use a repeat on each char to convert the whole sentence. Put the whole thing in a button to test how it works and then rewrite the code without using ask and answer. -=>JB<=- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ASCII-Bin Convert Convert between ASCII-Binary written by John Balgenorth - 7/31/08 on mouseUp answer "convert" with "ASCII-Bin" or "Bin-ASCII" if it = "ASCII-Bin" then convABin if it = "Bin-ASCII" then convBinA end mouseUp on convABin ask "convert ASCII to Binary" if it = empty or the result = "cancel" then exit to top put it into charConv put chartonum(charConv) into theNum put baseconvert(theNum,10,2) --into fld id 1010 end convABin on convBinA ask "convert Binary to ASCII" if it = empty or the result = "cancel" then exit to top put it into theNum put baseconvert(theNum,2,10) into charConv put numtochar(charConv) --into fld id 1010 end convBinA +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ On Jan 2, 2012, at 10:10 AM, Bryan McCormick wrote: > I have seen a number of sites that use a text to binary digits converter for simple encryption. Such that "this is my text" would be written as "011101000110100001101001011100110010000001101001011100110010000001101101011110010010000001110100011001010111100001110100" > > What is the simplest way of doing this in livecode? Could something like this also be done for photos? Or better I suppose for photos would be conversion to ascii text. > > Thanks in advance for ideas and pointers. > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Jan 2, 2012, at 10:10 AM, Bryan McCormick wrote: > I have seen a number of sites that use a text to binary digits converter for simple encryption. Such that "this is my text" would be written as "011101000110100001101001011100110010000001101001011100110010000001101101011110010010000001110100011001010111100001110100" > > What is the simplest way of doing this in livecode? Could something like this also be done for photos? Or better I suppose for photos would be conversion to ascii text. > > Thanks in advance for ideas and pointers. > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jan 2 13:54:41 2012 From: todd at geistinteractive.com (Todd Geist) Date: Mon, 2 Jan 2012 10:54:41 -0800 Subject: Listen for messages in FrontScripts In-Reply-To: <154192160203.20120101203812@ahsoftware.net> References: <154192160203.20120101203812@ahsoftware.net> Message-ID: On Sun, Jan 1, 2012 at 8:38 PM, Mark Wieder wrote: > Todd- > > Sunday, January 1, 2012, 4:40:47 PM, you wrote: > > Why would you want to do this? The only time I issue a dispatch > without a target is in a behavior script, and in that case the message > is delivered to the parent object, which is a very neat trick, and I > think is the equivalent of ruby's yield command. Well mostly I am just trying to understand how things things work. I * thought* that messages released from front scripts might rain down on top most stack. This is not true, clearly. I was using metaphor in my own head of messages "raining" down on your stacks. I don't like this metaphor any more. I don't think it fits. If I am getting this right now. All messages have an explicit initial target, which is the point at which they enter the message path. A frontscipt is inserted *before* that target ( and all targets ). If it doesn't handle the message or if it passes it, that message continues on to its original target and then down through the normal message path. LiveCode out of the box doesn't have Event Listerners that can hear events from anywhere. Objects can only hear messages that are directed at them or have been passed down through the message path. Part of what got me into this was trying to create Event Listeners. Trevor does this in GLX and calls it "broadcasting". I have some Flex and JavaScript experience which leads me to favor calling it "Event Listeners". This turns out to be startling easy with LiveCode. Its less than 50 lines of code. Maybe 55 lines if you include the lines needed to load the frontscript. Objects can "Listen" for events and Object can Send events. Neither side needs to know anything about the other. I chose to do it with a FrontScript, because I felt it would be faster then using a library at the end of the message path. Todd From guglielmo at braguglia.ch Mon Jan 2 14:14:35 2012 From: guglielmo at braguglia.ch (gpb01) Date: Mon, 2 Jan 2012 11:14:35 -0800 (PST) Subject: Scripting a text to binary digits converter In-Reply-To: <4F01F313.6020002@deepfoo.com> References: <4F01F313.6020002@deepfoo.com> Message-ID: <1325531675502-4254238.post@n4.nabble.com> Bryan McCormick wrote > > I have seen a number of sites that use a text to binary digits converter > for simple encryption. Such that "this is my text" would be written as > "011101000110100001101001011100110010000001101001011100110010000001101101011110010010000001110100011001010111100001110100" > ... > You can easily use the *binaryDecode()* and *binaryEncode()* functions ... ... see the "dictionary" Guglielmo -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Scripting-a-text-to-binary-digits-converter-tp4254072p4254238.html Sent from the Revolution - User mailing list archive at Nabble.com. From sundown at pacifier.com Mon Jan 2 14:50:30 2012 From: sundown at pacifier.com (-=>JB<=-) Date: Mon, 2 Jan 2012 11:50:30 -0800 Subject: Scripting a text to binary digits converter In-Reply-To: <1325531675502-4254238.post@n4.nabble.com> References: <4F01F313.6020002@deepfoo.com> <1325531675502-4254238.post@n4.nabble.com> Message-ID: <9DC27E10-306C-4F5E-AFCA-23B502B4E357@pacifier.com> That looks like a better way to go because it will also pad the binary with the proper amount of zeros. -=>JB<=- On Jan 2, 2012, at 11:14 AM, gpb01 wrote: > > Bryan McCormick wrote >> >> I have seen a number of sites that use a text to binary digits converter >> for simple encryption. Such that "this is my text" would be written as >> "011101000110100001101001011100110010000001101001011100110010000001101101011110010010000001110100011001010111100001110100" >> ... >> > > You can easily use the *binaryDecode()* and *binaryEncode()* functions ... > .. see the "dictionary" > > Guglielmo > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Scripting-a-text-to-binary-digits-converter-tp4254072p4254238.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 bryan at deepfoo.com Mon Jan 2 15:23:16 2012 From: bryan at deepfoo.com (Bryan McCormick) Date: Mon, 02 Jan 2012 15:23:16 -0500 Subject: Scripting a text to binary digits converter Message-ID: <4F021234.7040701@deepfoo.com> JB, Guglielmo This appears to work for my purposes and is pretty speedy. See anything that might break? --------------------------------------- function convertTextToBinary varText repeat with n = 1 to the number of chars of varText put chartonum(char n of varText) into theNum if theNum >=64 and theNum <= 127 then put "0"&baseConvert(theNum,10,2) after tConverted else if theNum <="64" then put "00"&baseConvert(theNum,10,2) after tConverted else put baseConvert(theNum,10,2) after tConverted end if end repeat return tConverted end convertTextToBinary From sundown at pacifier.com Mon Jan 2 15:36:48 2012 From: sundown at pacifier.com (-=>JB<=-) Date: Mon, 2 Jan 2012 12:36:48 -0800 Subject: Scripting a text to binary digits converter In-Reply-To: <4F021234.7040701@deepfoo.com> References: <4F021234.7040701@deepfoo.com> Message-ID: <66F0570B-AE00-46CE-98C1-3AD860A4DF8E@pacifier.com> When I did a quick read of binaryEncode() I was thinking it said you could enter the number of chars you want to convert which would eliminate the need for a repeat structure but I did not try it and could be wrong. -=>JB=- On Jan 2, 2012, at 12:23 PM, Bryan McCormick wrote: > JB, Guglielmo > > This appears to work for my purposes and is pretty speedy. See anything that might break? > > --------------------------------------- > > function convertTextToBinary varText > repeat with n = 1 to the number of chars of varText > put chartonum(char n of varText) into theNum > if theNum >=64 and theNum <= 127 then > put "0"&baseConvert(theNum,10,2) after tConverted > else if theNum <="64" then > put "00"&baseConvert(theNum,10,2) after tConverted > else > put baseConvert(theNum,10,2) after tConverted > end if > end repeat > return tConverted > end convertTextToBinary > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mon Jan 2 15:37:25 2012 From: jhurley0305 at sbcglobal.net (Jim Hurley) Date: Mon, 2 Jan 2012 12:37:25 -0800 Subject: Setting the cursor In-Reply-To: References: Message-ID: Thanks Ken, I see that the dictionary warns against taking control of the mouse, The discussion concludes with this admonishment: "You must use this power only for good." I feel evil. I just wanted to simulate the clicking of a button in my "help" script. I will need to consult my spiritual advisor to see if this usage conforms with RR's ethical standards. Jim > > Message: 22 > Date: Mon, 2 Jan 2012 11:03:35 -0600 > From: Ken Ray > To: How to use LiveCode > Subject: Re: Setting the cursor > Message-ID: > Content-Type: text/plain; charset=us-ascii > > > On Jan 2, 2012, at 1:23 AM, James Hurley wrote: > >> How do I set the loc of the cursor? By script, of course. > > set the screenMouseLoc to > > :D > > Ken Ray > Sons of Thunder Software, Inc. > Email: kray at sonsothunder.com > Web Site: http://www.sonsothunder.com/ > From bryan at deepfoo.com Mon Jan 2 15:54:04 2012 From: bryan at deepfoo.com (Bryan McCormick) Date: Mon, 02 Jan 2012 15:54:04 -0500 Subject: Scripting a text to binary digits converter In-Reply-To: <4F021234.7040701@deepfoo.com> References: <4F021234.7040701@deepfoo.com> Message-ID: <4F02196C.3000500@deepfoo.com> JB, Well it gives some peculiar results because I clearly don't know much about the encoding process in terms of passing the right params. I rewrote this to be more general. Give it a try if you like and let me know. It will handle carriage returns and such properly. Seems speedy enough for me but again, I am sure it can be improved upon. Thanks for your help, most generous of you. ---------------------- function convertTextToBinary varText repeat with n = 1 to the number of chars of varText put chartonum(char n of varText) into theNum put baseConvert(theNum,10,2) into tBaseConverted if length(tBaseConverted) <8 then repeat until length(tBaseConverted)= 8 put "0" before tBaseConverted end repeat end if put tBaseConverted after tConverted end repeat return tConverted end convertTextToBinary From guglielmo at braguglia.ch Mon Jan 2 16:03:08 2012 From: guglielmo at braguglia.ch (gpb01) Date: Mon, 2 Jan 2012 13:03:08 -0800 (PST) Subject: Scripting a text to binary digits converter In-Reply-To: <4F021234.7040701@deepfoo.com> References: <4F021234.7040701@deepfoo.com> Message-ID: <1325538188937-4254500.post@n4.nabble.com> Bryan McCormick wrote > > JB, Guglielmo > > This appears to work for my purposes and is pretty speedy. See anything > that might break? > > --------------------------------------- > > function convertTextToBinary varText > repeat with n = 1 to the number of chars of varText > put chartonum(char n of varText) into theNum > if theNum >=64 and theNum <= 127 then > put "0"&baseConvert(theNum,10,2) after tConverted > else if theNum <="64" then > put "00"&baseConvert(theNum,10,2) after tConverted > else > put baseConvert(theNum,10,2) after tConverted > end if > end repeat > return tConverted > end convertTextToBinary > > _______________________________________________ > use-livecode mailing list > use-livecode at .runrev > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > Just for fun I tried with a small script you function : put convertTextToBinary(theText) into field "outField" ... and the binaryDecode : put binaryDecode("B*", theText, binText) into numItems put binText into field "outFieldBin" both inserted in two separate "repeat" to repeat the same statements 200 times, storing the millisecond to execute. Whit your function, on my Win 7 64 bit system, I have between 60 and 70 milliseconds, with the binaryDecode() + the put statemet (/... two separate statements/) I have between 20 and 30 milliseconds :) So .. the Livecode binaryDecode + the put statement is minimum *TWO* time faster than calling your function ;) Guglielmo -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Scripting-a-text-to-binary-digits-converter-tp4254413p4254500.html Sent from the Revolution - User mailing list archive at Nabble.com. From guglielmo at braguglia.ch Mon Jan 2 16:07:30 2012 From: guglielmo at braguglia.ch (Guglielmo Braguglia) Date: Mon, 02 Jan 2012 22:07:30 +0100 Subject: Scripting a text to binary digits converter In-Reply-To: <66F0570B-AE00-46CE-98C1-3AD860A4DF8E@pacifier.com> References: <4F021234.7040701@deepfoo.com> <66F0570B-AE00-46CE-98C1-3AD860A4DF8E@pacifier.com> Message-ID: <4F021C92.80708@braguglia.ch> You can or specify the number of character you want, or the "*" symbol which means ALL ;) Guglielmo On 02.01.2012 21:36, -=>JB<=- wrote: > When I did a quick read of binaryEncode() I was thinking > it said you could enter the number of chars you want to > convert which would eliminate the need for a repeat > structure but I did not try it and could be wrong. > > -=>JB=- > > > On Jan 2, 2012, at 12:23 PM, Bryan McCormick wrote: > >> JB, Guglielmo >> >> This appears to work for my purposes and is pretty speedy. See anything that might break? >> >> --------------------------------------- >> >> function convertTextToBinary varText >> repeat with n = 1 to the number of chars of varText >> put chartonum(char n of varText) into theNum >> if theNum>=64 and theNum<= 127 then >> put "0"&baseConvert(theNum,10,2) after tConverted >> else if theNum<="64" then >> put "00"&baseConvert(theNum,10,2) after tConverted >> else >> put baseConvert(theNum,10,2) after tConverted >> end if >> end repeat >> return tConverted >> end convertTextToBinary >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Mon Jan 2 16:13:07 2012 From: jimaultwins at yahoo.com (Jim Ault) Date: Mon, 2 Jan 2012 16:13:07 -0500 Subject: Scripting a text to binary digits converter In-Reply-To: <4F02196C.3000500@deepfoo.com> References: <4F021234.7040701@deepfoo.com> <4F02196C.3000500@deepfoo.com> Message-ID: <15AD59E8-7932-4875-A871-6CD757C32937@yahoo.com> On Jan 2, 2012, at 3:54 PM, Bryan McCormick wrote: > put baseConvert(theNum,10,2) into tBaseConverted > if length(tBaseConverted) <8 then > repeat until length(tBaseConverted)= 8 > put "0" before tBaseConverted > end repeat > end if Alternative technique is to... put char -8 to -1 of ("00000000" & tBaseConverted ) into tBaseConverted Jim Ault From bryan at deepfoo.com Mon Jan 2 16:25:13 2012 From: bryan at deepfoo.com (Bryan McCormick) Date: Mon, 02 Jan 2012 16:25:13 -0500 Subject: Scripting a text to binary digits converter In-Reply-To: <4F02196C.3000500@deepfoo.com> References: <4F021234.7040701@deepfoo.com> <4F02196C.3000500@deepfoo.com> Message-ID: <4F0220B9.1060800@deepfoo.com> Jim, Thanks so much. I wonder how much faster that is? And Guglielmo, I appreciate you taking a crack at this. I don't get how to do the encode using your approach at all since I am not familiar with the params for the BinaryEncode function. From jacque at hyperactivesw.com Mon Jan 2 16:26:40 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 02 Jan 2012 15:26:40 -0600 Subject: Setting the cursor In-Reply-To: References: Message-ID: <4F022110.1000608@hyperactivesw.com> On 1/2/12 2:37 PM, Jim Hurley wrote: > Thanks Ken, > > I see that the dictionary warns against taking control of the mouse, > The discussion concludes with this admonishment: "You must use this > power only for good." > > I feel evil. I just wanted to simulate the clicking of a button in my > "help" script. > > I will need to consult my spiritual advisor to see if this usage > conforms with RR's ethical standards. :) You can avoid all evil by: click at the loc of btn "whatever" No cursor movement necessary. But even better, if you only need the mouseup action (i.e., there is no need to simulate mousedown, mousestilldown, etc.) then just: send "mouseup" to btn "whatever" Either of these methods avoids the need to consult with outside parties. :) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bryan at deepfoo.com Mon Jan 2 16:33:50 2012 From: bryan at deepfoo.com (Bryan McCormick) Date: Mon, 02 Jan 2012 16:33:50 -0500 Subject: Scripting a text to binary digits converter In-Reply-To: <4F02196C.3000500@deepfoo.com> References: <4F021234.7040701@deepfoo.com> <4F02196C.3000500@deepfoo.com> Message-ID: <4F0222BE.1030801@deepfoo.com> JB, Jim, Guglielmo Okay, this is the final version of the script which does seem considerably faster than where I started. Thanks to all. Hope this was a useful walk-through. Any other suggestions on ways to improve? --------------------------------------------- function convertTextToBinary varText repeat with n = 1 to the number of chars of varText put chartonum(char n of varText) into theNum put baseConvert(theNum,10,2) into tBaseConverted put char -8 to -1 of ("00000000" & tBaseConverted ) into tBaseConverted put tBaseConverted after tConverted end repeat return tConverted end convertTextToBinary From sc at sahores-conseil.com Mon Jan 2 16:43:59 2012 From: sc at sahores-conseil.com (Pierre Sahores) Date: Mon, 2 Jan 2012 22:43:59 +0100 Subject: OFF TOPIC virtualize windows on mac In-Reply-To: <20120102144557.4D75.83BAC89@1234web.net> References: <20120102144557.4D75.83BAC89@1234web.net> Message-ID: Virtualbox works always as expected in about apps or web apps testing tasks. Le 2 janv. 2012 ? 14:45, jvalle at 1234web.net a ?crit : > Hello, > > starting with an old Macbook would like to know your expert opinion about what > is the best virtualization solution to run Windows on Mac, from a developer > point of view. > > Thanks and Happy New Year > -- > Jose > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com From jimaultwins at yahoo.com Mon Jan 2 17:05:31 2012 From: jimaultwins at yahoo.com (Jim Ault) Date: Mon, 2 Jan 2012 17:05:31 -0500 Subject: Scripting a text to binary digits converter In-Reply-To: <4F0220B9.1060800@deepfoo.com> References: <4F021234.7040701@deepfoo.com> <4F02196C.3000500@deepfoo.com> <4F0220B9.1060800@deepfoo.com> Message-ID: On Jan 2, 2012, at 4:25 PM, Bryan McCormick wrote: > Jim, > > Thanks so much. I wonder how much faster that is? And Guglielmo, I appreciate you taking a crack at this. I don't get how to do the encode using your approach at all since I am not familiar with the params for the BinaryEncode function. > You could do your own bench-marking by --------------------- put "135898" into varText put 100 * 1000 into loopCnt repeat loopCnt times put varText & cr after veryLongList end repeat put the ticks into startTicks repeat for each line LNN in veryLongList put convertTextToBinary(varText) into tConverted end repeat put the ticks - startTicks into elapsedTicks put elapsedTicks div 60 into elapsedSeconds get elapsedTicks && " tick count" get IT & cr & elapsedSeconds && " tick count" get IT & cr & loopCnt/elapsedTicks && " conversions per tick" put IT into msg ------------------------ Jim Ault From revdev at pdslabs.net Mon Jan 2 17:15:24 2012 From: revdev at pdslabs.net (Phil Davis) Date: Mon, 02 Jan 2012 14:15:24 -0800 Subject: Scripting a text to binary digits converter In-Reply-To: <4F0222BE.1030801@deepfoo.com> References: <4F021234.7040701@deepfoo.com> <4F02196C.3000500@deepfoo.com> <4F0222BE.1030801@deepfoo.com> Message-ID: <4F022C7C.1020003@pdslabs.net> I tried using the numberFormat to pad zeroes. It worked but was about 20% slower (if I did my math correctly). I got roughly a 6% speed improvement using 'repeat for each char tChar' instead of repeat with n = 1..." My test sample was 1000 chars. function convertTextToBinary varText --repeat with n = 1 to the number of chars of varText repeat for each char tChar in varText --put chartonum(char n of varText) into theNum put chartonum(tChar) into theNum put baseConvert(theNum,10,2) into tBaseConverted put char -8 to -1 of ("00000000" & tBaseConverted ) into tBaseConverted put tBaseConverted after tConverted end repeat return tConverted end convertTextToBinary Phil Davis On 1/2/12 1:33 PM, Bryan McCormick wrote: > JB, Jim, Guglielmo > > Okay, this is the final version of the script which does seem considerably > faster than where I started. > > Thanks to all. Hope this was a useful walk-through. > > Any other suggestions on ways to improve? > > --------------------------------------------- > > function convertTextToBinary varText > repeat with n = 1 to the number of chars of varText > put chartonum(char n of varText) into theNum > put baseConvert(theNum,10,2) into tBaseConverted > put char -8 to -1 of ("00000000" & tBaseConverted ) into tBaseConverted > put tBaseConverted after tConverted > end repeat > return tConverted > end convertTextToBinary > > _______________________________________________ > use-livecode mailing list > use-livecode 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 gregory.lypny at videotron.ca Mon Jan 2 17:42:34 2012 From: gregory.lypny at videotron.ca (Gregory Lypny) Date: Mon, 02 Jan 2012 17:42:34 -0500 Subject: PDFs Not Downloading Properly From FTP Server Message-ID: <233713E7-1EF8-4DD5-8426-D611C88DDACD@videotron.ca> Hello everyone, I use LiveCode to upload PDFs to a remote Mac using put url ("binfile:" & longFileName) into url ("ftp://" & aFTPAddress & newFileName) but when I download those same PDFs by using put url ("ftp://" & aFTPAddress & newFileName) into url("file://" & aLocalAddress & newFileName) it appears to be corrupted or at least there is a lot of gibberish. What am I doing wrong? Should the last url reference, that is, the location on the local machine, be binfile rather than file? Regards, Gregory From Kresten.Bjerg at psy.ku.dk Mon Jan 2 17:45:59 2012 From: Kresten.Bjerg at psy.ku.dk (Kresten Bjerg) Date: Mon, 2 Jan 2012 23:45:59 +0100 Subject: Ways to get the IDs of two already scripted buttons? Message-ID: <8962F0E4BD055148AA4051D91F7EB4A90900C3395F@IBTMAIL2A.ibt.ku.dk.ad> Thanks for replies John: if a mouseenter can do the job, I guess that would be OK, -does this suggestion imply, that Altclick cannot be used ? Craig: Unfortunately modifying button scripts is out of the question I am afraid, that I need a step by step, line by line, guidance in this I paste my latest na?ve attempt as a starting point -which evidently doesn't achieve anything !!!! on lineconnect Answer "select the first textbutton of a pair by holding alt- button down and click it." with "Yes" or "Escape" titled "Step one in establishing a line connecting two buttons" wait 10 seconds wait until object is selected put the ID of the selectedobject into firstbuttonID (continued in next posting) From roger.e.eller at sealedair.com Mon Jan 2 18:01:02 2012 From: roger.e.eller at sealedair.com (Roger Eller) Date: Mon, 2 Jan 2012 18:01:02 -0500 Subject: PDFs Not Downloading Properly From FTP Server In-Reply-To: <233713E7-1EF8-4DD5-8426-D611C88DDACD@videotron.ca> References: <233713E7-1EF8-4DD5-8426-D611C88DDACD@videotron.ca> Message-ID: On Mon, Jan 2, 2012 at 5:42 PM, Gregory Lypny wrote: > Hello everyone, > > I use LiveCode to upload PDFs to a remote Mac using > > put url ("binfile:" & longFileName) into url ("ftp://" & > aFTPAddress & newFileName) > > but when I download those same PDFs by using > > put url ("ftp://" & aFTPAddress & newFileName) into url("file://" > & aLocalAddress & newFileName) > > it appears to be corrupted or at least there is a lot of gibberish. What > am I doing wrong? Should the last url reference, that is, the location on > the local machine, be binfile rather than file? > > Regards, > > Gregory Have you tried binfile: instead of file: to prevent alteration? In certain cases, you may not need the // either. ?Roger From bonnmike at gmail.com Mon Jan 2 18:49:02 2012 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 2 Jan 2012 16:49:02 -0700 Subject: Ways to get the IDs of two already scripted buttons? In-Reply-To: <8962F0E4BD055148AA4051D91F7EB4A90900C3395F@IBTMAIL2A.ibt.ku.dk.ad> References: <8962F0E4BD055148AA4051D91F7EB4A90900C3395F@IBTMAIL2A.ibt.ku.dk.ad> Message-ID: I put this into the card. It doesn't account for LOTS of things (such as multiple copies of the line if you just keep alt-clicking buttons) but does demonstrate a way to draw lines between 2 consecutively chosen buttons. If there are scripts in the button, they must pass mouseUp to work. If they're empty then its a non-issue. This script goes in the card script. Don't know if it'll help or if its too simplistic but perhaps it's a start. local sLastClick on mouseUp if the altkey is down then if the name of the target contains "button" then if sLastClick is empty then put the id of the target into sLastClick answer information "first button chosesn" else create grc "connectLine" set the style of grc "connectLine" to "line" set the points of grc "connectLine" to (the loc of the target) & return & (the loc of button id sLastClick) put the id of the target into sLastClick end if end if end if end mouseUp On Mon, Jan 2, 2012 at 3:45 PM, Kresten Bjerg wrote: > Thanks for replies > John: if a mouseenter can do the job, I guess that would be OK, -does this > suggestion imply, that Altclick cannot be used ? > Craig: Unfortunately modifying button scripts is out of the question > I am afraid, that I need a step by step, line by line, guidance in this > I paste my latest na?ve attempt as a starting point -which evidently > doesn't achieve anything !!!! > on lineconnect > Answer "select the first textbutton of a pair by holding alt- button down > and click it." with "Yes" or "Escape" titled "Step one in establishing a > line connecting two buttons" > wait 10 seconds > wait until object is selected > put the ID of the selectedobject into firstbuttonID > (continued in next posting) > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mon Jan 2 18:59:50 2012 From: mwieder at ahsoftware.net (Mark Wieder) Date: Mon, 2 Jan 2012 15:59:50 -0800 Subject: Listen for messages in FrontScripts In-Reply-To: References: <154192160203.20120101203812@ahsoftware.net> Message-ID: <136261857984.20120102155950@ahsoftware.net> Todd- Monday, January 2, 2012, 10:54:41 AM, you wrote: > I was using metaphor in my own head of messages "raining" down on your > stacks. I don't like this metaphor any more. I don't think it fits. I think your original conception wasn't too far off the mark. But I think what you've run into is the fact that if you're issuing a dispatch command in a frontscript is doesn't have a selected object to rain down to. If you dispatch to the target then I think you'll have what you were after. The dispatch, send, and call commands can subvert the normal message path, and I believe you're seeing a side effect of that. -- -Mark Wieder mwieder at ahsoftware.net From kkaufman at snet.net Mon Jan 2 19:16:29 2012 From: kkaufman at snet.net (Kurt Kaufman) Date: Mon, 2 Jan 2012 19:16:29 -0500 Subject: Scripting a text to binary digits converter Message-ID: More fun with LC's binaryEncode functions (see the card script): http://www.kkef.org/MIDIBuilder031212.rev It must be pretty quick to accept from user input an ascii representation of a musical note, convert it to binary from which a MIDI file is constructed and played, then add the input to an as-yet open-ended MIDI sequence (whose current length must be properly specified before attempting to update or play)- all in a fraction of a second. From dunbarx at aol.com Mon Jan 2 19:21:29 2012 From: dunbarx at aol.com (dunbarx at aol.com) Date: Mon, 2 Jan 2012 19:21:29 -0500 (EST) Subject: Ways to get the IDs of two already scripted buttons? In-Reply-To: <8962F0E4BD055148AA4051D91F7EB4A90900C3395F@IBTMAIL2A.ibt.ku.dk.ad> References: <8962F0E4BD055148AA4051D91F7EB4A90900C3395F@IBTMAIL2A.ibt.ku.dk.ad> Message-ID: <8CE97C4C550BB51-1EB4-4AF16@webmail-d025.sysops.aol.com> Why is modifying button scripts out of the question? You have good instincts, but need work learning the language. (wait until the object is selected) This can work out. Keep posting. You will be amazed how much help will come. Craig Newman -----Original Message----- From: Kresten Bjerg To: use-livecode Sent: Mon, Jan 2, 2012 12:47 pm Subject: Ways to get the IDs of two already scripted buttons? Thanks for replies John: if a mouseenter can do the job, I guess that would be OK, -does this suggestion imply, that Altclick cannot be used ? Craig: Unfortunately modifying button scripts is out of the question I am afraid, that I need a step by step, line by line, guidance in this I paste my latest na?ve attempt as a starting point -which evidently doesn't achieve anything !!!! on lineconnect Answer "select the first textbutton of a pair by holding alt- button down and click it." with "Yes" or "Escape" titled "Step one in establishing a line connecting two buttons" wait 10 seconds wait until object is selected put the ID of the selectedobject into firstbuttonID (continued in next posting) _______________________________________________ use-livecode mailing list use-livecode at 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 Jan 2 20:20:06 2012 From: pete at mollysrevenge.com (Pete) Date: Mon, 2 Jan 2012 17:20:06 -0800 Subject: Carriage Return in datagrid data Message-ID: Wondering if anyone has a good technique for dealing with carriage returns within data loaded into a datagrid column? The dg takes the cr as the end of the row which messes up the datagrid pretty badly. Seems like there's no alternative but to replace the cr with some displayable character but maybe there's another way? -- Pete Molly's Revenge From stephenREVOLUTION2 at barncard.com Mon Jan 2 20:28:32 2012 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Mon, 2 Jan 2012 17:28:32 -0800 Subject: Carriage Return in datagrid data In-Reply-To: References: Message-ID: replace return with VT (vertical tab) ascii 11; do the reverse for display in a field. VT was the "returns-in-field" line delimiter for Filemaker. URLEncode/Decode can put data on one line too. On 2 January 2012 17:20, Pete wrote: > Wondering if anyone has a good technique for dealing with carriage returns > within data loaded into a datagrid column? The dg takes the cr as the end > of the row which messes up the datagrid pretty badly. Seems like there's > no alternative but to replace the cr with some displayable character but > maybe there's another way? > > > -- > 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 > -- Stephen Barncard San Francisco Ca. USA more about sqb From pete at mollysrevenge.com Mon Jan 2 20:42:35 2012 From: pete at mollysrevenge.com (Pete) Date: Mon, 2 Jan 2012 17:42:35 -0800 Subject: Carriage Return in datagrid data In-Reply-To: References: Message-ID: Perfect, thanks Stephen. On Mon, Jan 2, 2012 at 5:28 PM, stephen barncard < stephenREVOLUTION2 at barncard.com> wrote: > replace return with VT (vertical tab) ascii 11; do the reverse for display > in a field. VT was the "returns-in-field" line delimiter for Filemaker. > URLEncode/Decode can put data on one line too. > > On 2 January 2012 17:20, Pete wrote: > > > Wondering if anyone has a good technique for dealing with carriage > returns > > within data loaded into a datagrid column? The dg takes the cr as the > end > > of the row which messes up the datagrid pretty badly. Seems like there's > > no alternative but to replace the cr with some displayable character but > > maybe there's another way? > > > > > > -- > > 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 > > > > > > -- > > > > 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 > > -- Pete Molly's Revenge From mazzapaoloitaly at gmail.com Mon Jan 2 21:47:04 2012 From: mazzapaoloitaly at gmail.com (Paolo Mazza) Date: Tue, 3 Jan 2012 03:47:04 +0100 Subject: Take a picture iPhone camera Message-ID: <4818F900-D8AD-489A-9F4D-CED37F440CA0@gmail.com> Hi All, New year, new question! How to Take a picture (and save the image in the pictures folder) using the iPhone camera in an iOS app? Best wishes for an happy new year. Paolo Mazza From pete at mollysrevenge.com Mon Jan 2 22:22:15 2012 From: pete at mollysrevenge.com (Pete) Date: Mon, 2 Jan 2012 19:22:15 -0800 Subject: Another Gotcha In-Reply-To: <89191CC1-14B3-4336-B396-3B590BE95E39@twft.com> References: <4EFD0026.6080406@fourthworld.com> <89191CC1-14B3-4336-B396-3B590BE95E39@twft.com> Message-ID: Why not do this in a mouseDown handler for the menu? On Thu, Dec 29, 2011 at 5:18 PM, Bob Sneidar wrote: > S'not. ;-) It's the handler that builds contextual menus. By trapping it > and doing your own thing you can make your own contextual menus, or add to > existing ones. I have this in a frontScript which puts a few extra things > at the top of the contextual menu if a field is the target: > > on revHookBuildObjectEditorContextMenu pMenuTarget, pMenuName, @pMenu, > tModifiedMenu > put the topstack into theCurrentStack > put the long name of this card of theCurrentStack into theCurrentCard > put the customproperties of theCurrentStack into theCustomProps > switch > case word 1 of pMenuTarget is not "field" > put "false" into valOn > break > case not theCustomProps is an array > put "false" into valOn > break > case "PreValidations" is among the keys of theCustomProps > put "true" into valOn > break > case "MidValidations" is among the keys of theCustomProps > put "true" into valOn > break > case "PostValidations" is among the keys of theCustomProps > put "true" into valOn > break > end switch > > if valOn then > put "Data Type" into line 1 of theValMenu > put tab & "Text" into line 2 of theValMenu > put tab & "Number" into line 3 of theValMenu > put tab & "Date" into line 4 of theValMenu > put "-" into line 5 of theValMenu > put "Pre-Validations" into line 6 of theValMenu > put "Mid-Validations" into line 7 of theValMenu > put "Post-Validations" & lf & "-" & lf into line 8 of theValMenu > -- put the valMenu of me into theValMenu > put theValMenu before pMenu > put pMenu > end if > pass revHookBuildObjectEditorContextMenu > end revHookBuildObjectEditorContextMenu > > > function dispatchContextMenuPick pMenuName, pWhich > if "Data Type" is in pWhich or "Validations" is in pWhich then > send "initVal" && pWhich to the topstack in 0 seconds > exit to top > end if > pass dispatchContextMenuPick > end dispatchContextMenuPick > > > On Dec 29, 2011, at 4:04 PM, Richard Gaskin wrote: > > > Bob Sneidar wrote: > > > >> I have been using a trick John Craig showed me for appending to a > contextual menu which has been very handy for me. The gotcha is that > instead of building the menu on the fly using "put theMenuItem into line 1 > of theMenu" (or something like that) I decided to simply create a custom > property with the additional menu items I wanted, and then put that > property before pMenu in the revHookBuildObjectEditorContextMenu handler in > my front script. > > > > "revHookBuildObjectEditorContextMenu"? > > > > Where is that documented? > > > > -- > > 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 gerry.orkin at gmail.com Tue Jan 3 00:36:58 2012 From: gerry.orkin at gmail.com (Gerry Orkin) Date: Tue, 3 Jan 2012 16:36:58 +1100 Subject: Take a picture iPhone camera In-Reply-To: <4818F900-D8AD-489A-9F4D-CED37F440CA0@gmail.com> References: <4818F900-D8AD-489A-9F4D-CED37F440CA0@gmail.com> Message-ID: <40E30F11-B76E-4EAC-B527-49FBE5D0AC80@gmail.com> Paolo It's in the release notes for iOS. Look for "Photo album and camera support" and "Saving photos to the users album". Gerry On 03/01/2012, at 1:47 PM, Paolo Mazza wrote: > Hi All, > New year, new question! > How to Take a picture (and save the image in the pictures folder) using the iPhone camera in an iOS app? > Best wishes for an happy new year. > 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 Tue Jan 3 06:02:44 2012 From: mazzapaoloitaly at gmail.com (paolo mazza) Date: Tue, 3 Jan 2012 12:02:44 +0100 Subject: Take a picture iPhone camera In-Reply-To: <40E30F11-B76E-4EAC-B527-49FBE5D0AC80@gmail.com> References: <4818F900-D8AD-489A-9F4D-CED37F440CA0@gmail.com> <40E30F11-B76E-4EAC-B527-49FBE5D0AC80@gmail.com> Message-ID: Hi Gerry, I know that using the "iPhonePickPhoto " command I can open the camera application of the iPhone, let the user to take a picture (he has to click the proper button) , import the image and save it in the pictures folder. However, I wonder if there is a way to take a picture (opening the camera application and taking the picture) and to save it directly to the camera roll from a LiveCode app . Any idea? Thanks a lot Paolo Mazza - On Tue, Jan 3, 2012 at 6:36 AM, Gerry Orkin wrote: > Paolo > > It's in the release notes for iOS. Look for "Photo album and camera support" and "Saving photos to the users album". > > Gerry > > > > > > > On 03/01/2012, at 1:47 PM, Paolo Mazza wrote: > >> Hi All, >> New year, new question! >> How to Take a picture (and save the image in the pictures folder) using the iPhone camera in an iOS app? >> Best wishes for an happy new year. >> 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Jan 3 06:22:05 2012 From: sundown at pacifier.com (-=>JB<=-) Date: Tue, 3 Jan 2012 03:22:05 -0800 Subject: Scripting a text to binary digits converter In-Reply-To: References: Message-ID: <44187CC8-4F71-4B89-B20D-5E7ED9075DAB@pacifier.com> I don't think the binaryEncode function will return the same binary or ascii number that you get using the baseConvert function. The dictionary states it returns the same thing as the pack() function used by perl. I do not know perl so I am not sure what they are doing. Can anyone explain what the pack() function for perl is used for? The dictionary says, charToNum(binaryEncode("B*","01111111")) -- returns 127 And it does return 127 as stated. This looks like you are taking a binary code number and converting it to ascii but 01111111 isn't the same binary sequence for 127 that would be used with baseConvert so what is this 127 from? -=>JB<=- On Jan 2, 2012, at 4:16 PM, Kurt Kaufman wrote: > More fun with LC's binaryEncode functions (see the card script): > > http://www.kkef.org/MIDIBuilder031212.rev > > It must be pretty quick to accept from user input an ascii representation of a musical note, convert it to binary from which a MIDI file is constructed and played, then add the input to an > as-yet open-ended MIDI sequence (whose current length must be properly specified before attempting to update or play)- all in a fraction of a second. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From gregory.lypny at videotron.ca Tue Jan 3 07:41:36 2012 From: gregory.lypny at videotron.ca (Gregory Lypny) Date: Tue, 03 Jan 2012 07:41:36 -0500 Subject: PDFs Not Downloading Properly From FTP Server In-Reply-To: References: Message-ID: <0A34951D-DF41-45A5-8D07-A97FDF8AC178@videotron.ca> Thank you, Roger. Works like a charm! Gregory On Tue, Jan 3, 2012, at 12:37 AM, Roger wrote: > Have you tried binfile: instead of file: to prevent alteration? In certain > cases, you may not need the // either. > > ?Roger From jhurley0305 at sbcglobal.net Tue Jan 3 10:00:21 2012 From: jhurley0305 at sbcglobal.net (Jim Hurley) Date: Tue, 3 Jan 2012 07:00:21 -0800 Subject: Setting the cursor In-Reply-To: References: Message-ID: Thanks Jacque. I was hoping to present the user with vision of a cursor moving to the button and then clicking on it. I think now that I will manufacture my own cursor, using RR's line graphic (with arrow attached) and thereby simulate a cursor. It is perhaps the dark side of my nature that allows me this ruse, but at least I am not wresting control of the cursor from the user, and my intentions are honorable. Ken's suggestion (using screenMouseLoc) would allow me to take control of the cursor. It is odd that there is a command to locate the mouse relative to the screen but not the card. I wonder whether this, and the notion of exercising "power only for good," might not date back to Scott Rainey. He had strong feelings about the rights and wrongs of programming. I remember a battle I had with him over "repeat while the mouse is down," an instance where the programmer wrests control of the COMPUTER from the user. Jim > > Message: 16 > Date: Mon, 02 Jan 2012 15:26:40 -0600 > From: "J. Landman Gay" > To: How to use LiveCode > Subject: Re: Setting the cursor > Message-ID: <4F022110.1000608 at hyperactivesw.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > On 1/2/12 2:37 PM, Jim Hurley wrote: >> Thanks Ken, >> >> I see that the dictionary warns against taking control of the mouse, >> The discussion concludes with this admonishment: "You must use this >> power only for good." >> >> I feel evil. I just wanted to simulate the clicking of a button in my >> "help" script. >> >> I will need to consult my spiritual advisor to see if this usage >> conforms with RR's ethical standards. > > :) You can avoid all evil by: > > click at the loc of btn "whatever" > > No cursor movement necessary. But even better, if you only need the > mouseup action (i.e., there is no need to simulate mousedown, > mousestilldown, etc.) then just: > > send "mouseup" to btn "whatever" > > Either of these methods avoids the need to consult with outside parties. :) > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > From coiin at verizon.net Tue Jan 3 10:08:17 2012 From: coiin at verizon.net (Colin Holgate) Date: Tue, 03 Jan 2012 10:08:17 -0500 Subject: Setting the cursor In-Reply-To: References: Message-ID: <10AB80E6-B084-4A0C-A16C-5BF106B10856@verizon.net> Perhaps a png would be better. That way you could show a Mac cursor to a Mac user, and a Windows cursor to Windows users. On Jan 3, 2012, at 10:00 AM, Jim Hurley wrote: > I think now that I will manufacture my own cursor, using RR's line graphic (with arrow attached) and thereby simulate a cursor. From bmmeili at swissonline.ch Tue Jan 3 10:23:56 2012 From: bmmeili at swissonline.ch (Martin Meili) Date: Tue, 3 Jan 2012 16:23:56 +0100 Subject: recordInput Message-ID: <363E525D-4895-4615-A1C2-403B325B3C7B@swissonline.ch> Hi there, what are the recordInput settings if I want to record a text from a (text)field being read out by the revspeak-comand? I know, there's a list in the dictionary (imic, emic, "cd " etc.), but I couldn't manage to get this kind of recording working. Cheers Martin From kray at sonsothunder.com Tue Jan 3 11:21:52 2012 From: kray at sonsothunder.com (Ken Ray) Date: Tue, 3 Jan 2012 10:21:52 -0600 Subject: Scripting a text to binary digits converter In-Reply-To: <4F022C7C.1020003@pdslabs.net> References: <4F021234.7040701@deepfoo.com> <4F02196C.3000500@deepfoo.com> <4F0222BE.1030801@deepfoo.com> <4F022C7C.1020003@pdslabs.net> Message-ID: <60253EC8-29C8-4029-8B5C-059739653ECA@sonsothunder.com> > function convertTextToBinary varText > --repeat with n = 1 to the number of chars of varText > repeat for each char tChar in varText > --put chartonum(char n of varText) into theNum > put chartonum(tChar) into theNum > put baseConvert(theNum,10,2) into tBaseConverted > put char -8 to -1 of ("00000000" & tBaseConverted ) into tBaseConverted > put tBaseConverted after tConverted > end repeat > return tConverted > end convertTextToBinary Another thing you could do which *might* speed things up is to use numberFormat instead of parsing strings: function convertTextToBinary varText set the numberFormat to "00000000" --repeat with n = 1 to the number of chars of varText repeat for each char tChar in varText --put chartonum(char n of varText) into theNum put chartonum(tChar) into theNum put (baseConvert(theNum,10,2)+0) into tBaseConverted -- the "+0" forces it to use the number format put tBaseConverted after tConverted end repeat return tConverted end convertTextToBinary You can also collapse a lot of the code (although it's less readable): function convertTextToBinary varText set the numberFormat to "00000000" repeat for each char tChar in varText put (baseConvert(chartonum(tChar),10,2)+0) after tConverted end repeat return tConverted end convertTextToBinary Stripping a few lines may also increase speed - don't know but just a thought... Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From bobs at twft.com Tue Jan 3 12:10:32 2012 From: bobs at twft.com (Bob Sneidar) Date: Tue, 3 Jan 2012 09:10:32 -0800 Subject: The previous selection In-Reply-To: <8CE95925B4B81A2-B34-3606C@webmail-d060.sysops.aol.com> References: <8CE95925B4B81A2-B34-3606C@webmail-d060.sysops.aol.com> Message-ID: <44F2F715-734C-44A1-A954-C9287BC46428@twft.com> Yes that is what I do. In a selectionChanged handler, the last thing I do is store the current selection in a property of the object. Any validation failure before that I set the selection to that property and bail out before it saves the property. Of course I have to lock messages before setting the selection back again or risk endless loop. Bob On Dec 30, 2011, at 9:15 PM, DunbarX at aol.com wrote: > > Bob. > > > I played around with this for just a minute. The main issue is that the selectionChanged message is sent after the selection has changed, so that it is easy to get the new selectedText, but not the old. Perhaps the best route is to keep track of the most recent and next-most recent selections in a custom property of the field: > > > on selectionChanged var > set the recentText of me to item 2 of the recentText of me & "," & the selectedtext > put the recentText of me into fld "mostRecent" --just for testing > end selectionChanged > > > I made a field "mostRecent" just to see the data. Select successive various text in the target field. You can now call either item of the custom property as needed. > > > As you say, too bad the message doesn't natively know where it was as well as where it ends up. > > > Craig Newman > > > > -----Original Message----- > From: Bob Sneidar > To: How to use LiveCode > Sent: Fri, Dec 30, 2011 9:30 am > Subject: The previous selection > > > I vaguely remember a discussion a long time ago about getting the last thing > selected, when you selected something different. In my case, I want to detect a > selectionChanged, verify some things and then go back if the verification fails. > I can code it, but I was hoping there would be something easier along the lies > of: > > on selectionChanged theOldSelection > > 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 Tue Jan 3 12:15:38 2012 From: bobs at twft.com (Bob Sneidar) Date: Tue, 3 Jan 2012 09:15:38 -0800 Subject: Ways to get the IDs of two already scripted buttons? In-Reply-To: <8962F0E4BD055148AA4051D91F7EB4A90900C338B0@IBTMAIL2A.ibt.ku.dk.ad> References: <8962F0E4BD055148AA4051D91F7EB4A90900C338B0@IBTMAIL2A.ibt.ku.dk.ad> Message-ID: on mouseup pButtonNum if pButtonNum is 3 then select me -- do some stuff select empty end if end mouseUp Is that what you meant? Bob On Jan 1, 2012, at 3:55 PM, Kresten Bjerg wrote: > I am trying to script a handler guiding (through Answer dialogue) user of standalone to select first one arbitrary existing button, to put its ID in a variable and (new answer-dialogue) then another existing button, to collect its Id into another variable, - for(new answer-dialogue) connecting them with a line/ or erase line between them. > As these buttons are already scripted, and mouseups to them must be avoided, I hope that Alt clicking them might be a way to have them selected enough to get their IDs. But I cannot find my way to make it work. I have thought that there might be a way perhaps through a "Wait until condition", but don't know how to formulate such script. I am also uncertain: Is the use of the ALT-click a realistic strategy to get hold of the button-IDs? > I cannot imagine that something like this should be impossible in livecode > Happy New Year > From > Kresten Bjerg > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jan 3 12:20:28 2012 From: bobs at twft.com (Bob Sneidar) Date: Tue, 3 Jan 2012 09:20:28 -0800 Subject: [OT] 2012 In-Reply-To: References: <62C75E22-E976-4597-A79F-8BF435B25EB7@numericable.com> Message-ID: <320C53B5-11A1-4E79-8188-2BD2A4E323FF@twft.com> Our electronic key system failed the morning of the first. Seems everyone's keys were being handed an invalid date. Imagine the panic as people started showing up at 6 in the morning on the first day of the year and their keys no longer opened any doors! LOL! Damn Mayans! How could they have known...? Bob On Jan 2, 2012, at 9:01 AM, Ken Ray wrote: > > On Jan 2, 2012, at 1:56 AM, Ren? Micout wrote: > >> Hello camarades, >> All my best wishes for this new year. >> Tous mes meilleurs v?ux pour cette nouvelle ann?e 2012. > > Same to you, Ren?! Here's hoping that 2012 is a lot better than 2011 was! > > (Mayan predictions not withstanding?) > > ;-) > > Ken Ray > Sons of Thunder Software, Inc. > Email: kray at sonsothunder.com > Web Site: http://www.sonsothunder.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 Jan 3 12:25:57 2012 From: coiin at verizon.net (Colin Holgate) Date: Tue, 03 Jan 2012 12:25:57 -0500 Subject: MobGUI demo restrictions? Message-ID: I can't seem to find a page describing what the limitations are for MobGUI if you haven't registered it. Do any of you know? Mine is registered, so I get to see everything, and if I unregistered it I might not notice all the differences. From bobs at twft.com Tue Jan 3 12:28:20 2012 From: bobs at twft.com (Bob Sneidar) Date: Tue, 3 Jan 2012 09:28:20 -0800 Subject: OFF TOPIC virtualize windows on mac In-Reply-To: <20120102144557.4D75.83BAC89@1234web.net> References: <20120102144557.4D75.83BAC89@1234web.net> Message-ID: <45D47F9B-7F5C-454D-A540-5360884309FC@twft.com> I like Parallels, especially because it is capable of creating multiple network adapters and assigning a real adapter to it very easily. This would allow you to connect a server to two different networks for example. It's entirely possible to set up a virtual software router like that. I now have all my Windows Servers running in Parallels VM's on a couple of Intel Apple Servers. The main thing to keep in mind is system resources. Make sure you have plenty of memory and drive space. Creating fixed (not expanding) virtual drives is recommended as well. Also, if running Active Directory in a replication environment, disable the snapshots feature on both the replica and the master. Restoring a snapshot in this scenario will create a syncing issue called a USN rollback between the replica and the master which is not easy to resolve. Some say it is impossible, but I have recovered before. Bob On Jan 2, 2012, at 5:45 AM, jvalle at 1234web.net wrote: > Hello, > > starting with an old Macbook would like to know your expert opinion about what > is the best virtualization solution to run Windows on Mac, from a developer > point of view. > > Thanks and Happy New Year > -- > Jose > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jan 3 12:29:48 2012 From: bobs at twft.com (Bob Sneidar) Date: Tue, 3 Jan 2012 09:29:48 -0800 Subject: Listen for messages in FrontScripts In-Reply-To: References: Message-ID: <16247C45-F877-446A-B6E1-456BCFB4F205@twft.com> All of them, right? Bob On Dec 31, 2011, at 1:16 PM, Todd Geist wrote: > Hello > > What messages can you listen for in FrontScripts? I know user input > messages can be intercepted there, but I am not sure about what other > engine Messages, or if it is possible to listen for custom messages. > > Thanks & Happy New Year! > > Todd > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jan 3 12:38:29 2012 From: bobs at twft.com (Bob Sneidar) Date: Tue, 3 Jan 2012 09:38:29 -0800 Subject: Carriage Return in datagrid data In-Reply-To: References: Message-ID: <83E4F116-382E-48C4-82CC-B35BD01081BD@twft.com> Does this happen even when you use dgDataOfIndex or dgDataOfLine? If so, then this would be a great situation for copying the datagrid behavior to a button in the stack and then coding the copy of the behavior scripts to check for the existence of a CR and replace it with a vertical tab automatically, when setting the data, and back again when getting the data. In fact this would make a good addition to the datagrid library for some future release. Bob On Jan 2, 2012, at 5:20 PM, Pete wrote: > Wondering if anyone has a good technique for dealing with carriage returns > within data loaded into a datagrid column? The dg takes the cr as the end > of the row which messes up the datagrid pretty badly. Seems like there's > no alternative but to replace the cr with some displayable character but > maybe there's another way? > > > -- > 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 bobs at twft.com Tue Jan 3 12:40:41 2012 From: bobs at twft.com (Bob Sneidar) Date: Tue, 3 Jan 2012 09:40:41 -0800 Subject: Another Gotcha In-Reply-To: References: <4EFD0026.6080406@fourthworld.com> <89191CC1-14B3-4336-B396-3B590BE95E39@twft.com> Message-ID: Because a mouseDown only gets sent when the tool is Browse. The contextual menu gets built when using the pointer tool. I am creating a dev utility for adding field validations in a database app framework. I only want this to be visible when using the pointer tool. Bob On Jan 2, 2012, at 7:22 PM, Pete wrote: > Why not do this in a mouseDown handler for the menu? > > On Thu, Dec 29, 2011 at 5:18 PM, Bob Sneidar wrote: > >> S'not. ;-) It's the handler that builds contextual menus. By trapping it >> and doing your own thing you can make your own contextual menus, or add to >> existing ones. I have this in a frontScript which puts a few extra things >> at the top of the contextual menu if a field is the target: >> >> on revHookBuildObjectEditorContextMenu pMenuTarget, pMenuName, @pMenu, >> tModifiedMenu >> put the topstack into theCurrentStack >> put the long name of this card of theCurrentStack into theCurrentCard >> put the customproperties of theCurrentStack into theCustomProps >> switch >> case word 1 of pMenuTarget is not "field" >> put "false" into valOn >> break >> case not theCustomProps is an array >> put "false" into valOn >> break >> case "PreValidations" is among the keys of theCustomProps >> put "true" into valOn >> break >> case "MidValidations" is among the keys of theCustomProps >> put "true" into valOn >> break >> case "PostValidations" is among the keys of theCustomProps >> put "true" into valOn >> break >> end switch >> >> if valOn then >> put "Data Type" into line 1 of theValMenu >> put tab & "Text" into line 2 of theValMenu >> put tab & "Number" into line 3 of theValMenu >> put tab & "Date" into line 4 of theValMenu >> put "-" into line 5 of theValMenu >> put "Pre-Validations" into line 6 of theValMenu >> put "Mid-Validations" into line 7 of theValMenu >> put "Post-Validations" & lf & "-" & lf into line 8 of theValMenu >> -- put the valMenu of me into theValMenu >> put theValMenu before pMenu >> put pMenu >> end if >> pass revHookBuildObjectEditorContextMenu >> end revHookBuildObjectEditorContextMenu >> >> >> function dispatchContextMenuPick pMenuName, pWhich >> if "Data Type" is in pWhich or "Validations" is in pWhich then >> send "initVal" && pWhich to the topstack in 0 seconds >> exit to top >> end if >> pass dispatchContextMenuPick >> end dispatchContextMenuPick >> >> >> On Dec 29, 2011, at 4:04 PM, Richard Gaskin wrote: >> >>> Bob Sneidar wrote: >>> >>>> I have been using a trick John Craig showed me for appending to a >> contextual menu which has been very handy for me. The gotcha is that >> instead of building the menu on the fly using "put theMenuItem into line 1 >> of theMenu" (or something like that) I decided to simply create a custom >> property with the additional menu items I wanted, and then put that >> property before pMenu in the revHookBuildObjectEditorContextMenu handler in >> my front script. >>> >>> "revHookBuildObjectEditorContextMenu"? >>> >>> Where is that documented? >>> >>> -- >>> 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 >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 ambassador at fourthworld.com Tue Jan 3 12:44:38 2012 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 03 Jan 2012 09:44:38 -0800 Subject: Setting the cursor In-Reply-To: References: Message-ID: <4F033E86.7030100@fourthworld.com> Jim Hurley wrote: > Ken's suggestion (using screenMouseLoc) would allow me to take > control of the cursor. It is odd that there is a command to > locate the mouse relative to the screen but not the card. > I wonder whether this, and the notion of exercising "power only > for good," might not date back to Scott Rainey. He had strong > feelings about the rights and wrongs of programming. I think the reasoning with the screenMouseLoc is that, unlike controls, the mouse is not bound to a single window, but is global in nature. When obtaining coordinates, those are most useful to do something with them within the window, hence the local coords. But you can set the mouse location to anywhere on the display, so global coords seem a more natural fit. I you need to translate from global to local coords you can use the toLocal function. FWIW, I think the doc's note of "You must use this power only for good" came from Jeanne DeVoto from back when she wrote the original Dictionary. I could be wrong, but it sounds like her style. I've had the pleasure of working with her to document a client product for the last few years, and her passion for usability and keeping the user in control has been much appreciated. -- 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 Jan 3 12:48:07 2012 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 03 Jan 2012 09:48:07 -0800 Subject: Another Gotcha In-Reply-To: References: Message-ID: <4F033F57.4070400@fourthworld.com> Bob Sneidar wrote: > Because a mouseDown only gets sent when the tool is Browse. This is true only in the IDE. Even then, it's not really true per se, but merely that the IDE eats most mouse messages when the pointer tool is active. For your purposes it won't matter much, but for anyone writing a custom drawing environment that will use the pointer tool it seemed worth mentioning. -- 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 todd at geistinteractive.com Tue Jan 3 12:53:23 2012 From: todd at geistinteractive.com (Todd Geist) Date: Tue, 3 Jan 2012 09:53:23 -0800 Subject: Listen for messages in FrontScripts In-Reply-To: <16247C45-F877-446A-B6E1-456BCFB4F205@twft.com> References: <16247C45-F877-446A-B6E1-456BCFB4F205@twft.com> Message-ID: On Tue, Jan 3, 2012 at 9:29 AM, Bob Sneidar wrote: > All of them, right? Yes A front script appears to be inserted into the message path before ( or above ) any target. So it has a chance to handle any message that is sent to any target. I know this is common knowledge to the old timers here, but the details of how it worked were opaque to me until this weekend :-) The other tidbit that was really important for me to get is that *All* messages have a target. This wasn't clear to me, because I was always letting messages just drop down through the message path. So I didn't think of them as having a target. but they do. Again, probably something I should have figured out a long time ago. Todd From sundown at pacifier.com Tue Jan 3 12:58:21 2012 From: sundown at pacifier.com (-=>JB<=-) Date: Tue, 3 Jan 2012 09:58:21 -0800 Subject: Scripting a text to binary digits converter In-Reply-To: <60253EC8-29C8-4029-8B5C-059739653ECA@sonsothunder.com> References: <4F021234.7040701@deepfoo.com> <4F02196C.3000500@deepfoo.com> <4F0222BE.1030801@deepfoo.com> <4F022C7C.1020003@pdslabs.net> <60253EC8-29C8-4029-8B5C-059739653ECA@sonsothunder.com> Message-ID: <75A294C9-B56C-43EE-9B3B-F4BAB8DB5370@pacifier.com> When converting ascii to binary you convert each char using the repeat script you provided below, repeat for each char tChar in varText But when you want to convert the binary to ascii you need to get eight char then convert then repeat eight chars. How would you write the fastest repeat structure to get eight chars then repeat until you used them all? -=>JB<=- On Jan 3, 2012, at 8:21 AM, Ken Ray wrote: >> function convertTextToBinary varText >> --repeat with n = 1 to the number of chars of varText >> repeat for each char tChar in varText >> --put chartonum(char n of varText) into theNum >> put chartonum(tChar) into theNum >> put baseConvert(theNum,10,2) into tBaseConverted >> put char -8 to -1 of ("00000000" & tBaseConverted ) into tBaseConverted >> put tBaseConverted after tConverted >> end repeat >> return tConverted >> end convertTextToBinary > > Another thing you could do which *might* speed things up is to use numberFormat instead of parsing strings: > > function convertTextToBinary varText > set the numberFormat to "00000000" > --repeat with n = 1 to the number of chars of varText > repeat for each char tChar in varText > --put chartonum(char n of varText) into theNum > put chartonum(tChar) into theNum > put (baseConvert(theNum,10,2)+0) into tBaseConverted -- the "+0" forces it to use the number format > put tBaseConverted after tConverted > end repeat > return tConverted > end convertTextToBinary > > You can also collapse a lot of the code (although it's less readable): > > function convertTextToBinary varText > set the numberFormat to "00000000" > repeat for each char tChar in varText > put (baseConvert(chartonum(tChar),10,2)+0) after tConverted > end repeat > return tConverted > end convertTextToBinary > > Stripping a few lines may also increase speed - don't know but just a thought... > > Ken Ray > Sons of Thunder Software, Inc. > Email: kray at sonsothunder.com > Web Site: http://www.sonsothunder.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 ambassador at fourthworld.com Tue Jan 3 12:59:40 2012 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 03 Jan 2012 09:59:40 -0800 Subject: OFF TOPIC virtualize windows on mac In-Reply-To: <20120102144557.4D75.83BAC89@1234web.net> References: <20120102144557.4D75.83BAC89@1234web.net> Message-ID: <4F03420C.7070201@fourthworld.com> jvalle wrote: > starting with an old Macbook would like to know your expert opinion about what > is the best virtualization solution to run Windows on Mac, from a developer > point of view. With any VM the key is RAM. The more the merrier. Anything less than 2GB will make VMs really difficult to work with. I'm surprised no one here has mentioned VirtualBox: I'd used Parallels for years, even met the devs at a MacTech conference and have been very impressed. But then Mark Wieder suggested I try VirtualBox, and in my experience it loads VMs from a saved state so much faster than Parallels that I've switched all my VMs to it. Extra bonus points: it's free an open source, so you can try it out at no cost, and if it doesn't do what you need you'll lose nothing. But I'd be surprised if you weren't impressed with it. VirtualBox may not have all of the features of Parallels, but with the shared Clipboard, shared folders, and so many other useful options I've found it very satisfying. And the performance has been pretty much unmatched on the three machines I use it on (Mac Mini, MacBook Pro, and Dell laptop). Since this is an older Mac, if RAM is scarce you might consider picking up a used PC from Craig's List or Ebay. I've bought quite a few computers through each, and have saved a great deal of money. And if you've been curious about learning more on the hardware side of things, building your own PC can save you even more. Consider this DIY rig from NewEgg: A Sandy Bridge CPU in an expandable case for just $188. Add a hard drive and you're good to go with a fairly nice little system. Heck, that's pretty much the cost of Parallels, and you get an whole computer instead. :) -- 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 m.schonewille at economy-x-talk.com Tue Jan 3 13:09:25 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Tue, 3 Jan 2012 19:09:25 +0100 Subject: OFF TOPIC virtualize windows on mac In-Reply-To: <4F03420C.7070201@fourthworld.com> References: <20120102144557.4D75.83BAC89@1234web.net> <4F03420C.7070201@fourthworld.com> Message-ID: <6E4142C9-7AD3-4D52-9139-3F09DD9CF1D2@economy-x-talk.com> Richard, VirtualBox was mentioned at least 3 times. I like Parallels too, but I like VirtualBox just as much feature-wise and it beats Parallels because of the price. I agree that a PC might be a better solution, but it isn't always possible to fit a PC in your backpack :-) -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! On 3 jan 2012, at 18:59, Richard Gaskin wrote: > jvalle wrote: >> starting with an old Macbook would like to know your expert opinion about what >> is the best virtualization solution to run Windows on Mac, from a developer >> point of view. > > With any VM the key is RAM. The more the merrier. Anything less than 2GB will make VMs really difficult to work with. > > I'm surprised no one here has mentioned VirtualBox: > > > I'd used Parallels for years, even met the devs at a MacTech conference and have been very impressed. But then Mark Wieder suggested I try VirtualBox, and in my experience it loads VMs from a saved state so much faster than Parallels that I've switched all my VMs to it. > > Extra bonus points: it's free an open source, so you can try it out at no cost, and if it doesn't do what you need you'll lose nothing. > > But I'd be surprised if you weren't impressed with it. VirtualBox may not have all of the features of Parallels, but with the shared Clipboard, shared folders, and so many other useful options I've found it very satisfying. And the performance has been pretty much unmatched on the three machines I use it on (Mac Mini, MacBook Pro, and Dell laptop). > > Since this is an older Mac, if RAM is scarce you might consider picking up a used PC from Craig's List or Ebay. I've bought quite a few computers through each, and have saved a great deal of money. > > And if you've been curious about learning more on the hardware side of things, building your own PC can save you even more. > > Consider this DIY rig from NewEgg: > > > A Sandy Bridge CPU in an expandable case for just $188. Add a hard drive and you're good to go with a fairly nice little system. > > Heck, that's pretty much the cost of Parallels, and you get an whole computer instead. :) From bobs at twft.com Tue Jan 3 13:09:54 2012 From: bobs at twft.com (Bob Sneidar) Date: Tue, 3 Jan 2012 10:09:54 -0800 Subject: Listen for messages in FrontScripts In-Reply-To: References: <16247C45-F877-446A-B6E1-456BCFB4F205@twft.com> Message-ID: <998E7F9D-1258-428A-8CE3-FDC92A009D1F@twft.com> If I am not mistaken, sent or dispatched messages are always sent to the card if another target is not specified, but of course must "pass through" the frontscript first. I believe that would be the way to put it. That matters because the send command changes the current context of the command as per the documentation: When the send command is used the stack containing the target handler temporarily becomes the defaultStack. All object references in the message are evaluated in the current context i. e. the defaultStack. Therefore references within the message that refer to "this card" or "this stack" will be referring to the card or stack where the target handler is located. This has bitten me in the buttocks once or twice. If you are sending a message to another stack, that stack will become the current context until control returns to the calling script. Dispatch does not do this, or at least the dictionary does not mention that it does. Just a heads up. Bob On Jan 3, 2012, at 9:53 AM, Todd Geist wrote: > The other tidbit that was really important for me to get is that *All* > messages have a target. From pete at mollysrevenge.com Tue Jan 3 13:11:41 2012 From: pete at mollysrevenge.com (Pete) Date: Tue, 3 Jan 2012 10:11:41 -0800 Subject: Carriage Return in datagrid data In-Reply-To: <83E4F116-382E-48C4-82CC-B35BD01081BD@twft.com> References: <83E4F116-382E-48C4-82CC-B35BD01081BD@twft.com> Message-ID: That would work but I'm getting the data from a database so I'll probably just do it to the raw data before putting it into the datagrid and reverse it out when I get the data to put back into the database. On Tue, Jan 3, 2012 at 9:38 AM, Bob Sneidar wrote: > Does this happen even when you use dgDataOfIndex or dgDataOfLine? If so, > then this would be a great situation for copying the datagrid behavior to a > button in the stack and then coding the copy of the behavior scripts to > check for the existence of a CR and replace it with a vertical tab > automatically, when setting the data, and back again when getting the data. > In fact this would make a good addition to the datagrid library for some > future release. > > Bob > > > On Jan 2, 2012, at 5:20 PM, Pete wrote: > > > Wondering if anyone has a good technique for dealing with carriage > returns > > within data loaded into a datagrid column? The dg takes the cr as the > end > > of the row which messes up the datagrid pretty badly. Seems like there's > > no alternative but to replace the cr with some displayable character but > > maybe there's another way? > > > > > > -- > > 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 pete at mollysrevenge.com Tue Jan 3 13:13:03 2012 From: pete at mollysrevenge.com (Pete) Date: Tue, 3 Jan 2012 10:13:03 -0800 Subject: Another Gotcha In-Reply-To: References: <4EFD0026.6080406@fourthworld.com> <89191CC1-14B3-4336-B396-3B590BE95E39@twft.com> Message-ID: OK, got it. On Tue, Jan 3, 2012 at 9:40 AM, Bob Sneidar wrote: > Because a mouseDown only gets sent when the tool is Browse. The contextual > menu gets built when using the pointer tool. I am creating a dev utility > for adding field validations in a database app framework. I only want this > to be visible when using the pointer tool. > > Bob > > > On Jan 2, 2012, at 7:22 PM, Pete wrote: > > > Why not do this in a mouseDown handler for the menu? > > > > On Thu, Dec 29, 2011 at 5:18 PM, Bob Sneidar wrote: > > > >> S'not. ;-) It's the handler that builds contextual menus. By trapping it > >> and doing your own thing you can make your own contextual menus, or add > to > >> existing ones. I have this in a frontScript which puts a few extra > things > >> at the top of the contextual menu if a field is the target: > >> > >> on revHookBuildObjectEditorContextMenu pMenuTarget, pMenuName, @pMenu, > >> tModifiedMenu > >> put the topstack into theCurrentStack > >> put the long name of this card of theCurrentStack into theCurrentCard > >> put the customproperties of theCurrentStack into theCustomProps > >> switch > >> case word 1 of pMenuTarget is not "field" > >> put "false" into valOn > >> break > >> case not theCustomProps is an array > >> put "false" into valOn > >> break > >> case "PreValidations" is among the keys of theCustomProps > >> put "true" into valOn > >> break > >> case "MidValidations" is among the keys of theCustomProps > >> put "true" into valOn > >> break > >> case "PostValidations" is among the keys of theCustomProps > >> put "true" into valOn > >> break > >> end switch > >> > >> if valOn then > >> put "Data Type" into line 1 of theValMenu > >> put tab & "Text" into line 2 of theValMenu > >> put tab & "Number" into line 3 of theValMenu > >> put tab & "Date" into line 4 of theValMenu > >> put "-" into line 5 of theValMenu > >> put "Pre-Validations" into line 6 of theValMenu > >> put "Mid-Validations" into line 7 of theValMenu > >> put "Post-Validations" & lf & "-" & lf into line 8 of theValMenu > >> -- put the valMenu of me into theValMenu > >> put theValMenu before pMenu > >> put pMenu > >> end if > >> pass revHookBuildObjectEditorContextMenu > >> end revHookBuildObjectEditorContextMenu > >> > >> > >> function dispatchContextMenuPick pMenuName, pWhich > >> if "Data Type" is in pWhich or "Validations" is in pWhich then > >> send "initVal" && pWhich to the topstack in 0 seconds > >> exit to top > >> end if > >> pass dispatchContextMenuPick > >> end dispatchContextMenuPick > >> > >> > >> On Dec 29, 2011, at 4:04 PM, Richard Gaskin wrote: > >> > >>> Bob Sneidar wrote: > >>> > >>>> I have been using a trick John Craig showed me for appending to a > >> contextual menu which has been very handy for me. The gotcha is that > >> instead of building the menu on the fly using "put theMenuItem into > line 1 > >> of theMenu" (or something like that) I decided to simply create a custom > >> property with the additional menu items I wanted, and then put that > >> property before pMenu in the revHookBuildObjectEditorContextMenu > handler in > >> my front script. > >>> > >>> "revHookBuildObjectEditorContextMenu"? > >>> > >>> Where is that documented? > >>> > >>> -- > >>> 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 > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 bobs at twft.com Tue Jan 3 13:20:09 2012 From: bobs at twft.com (Bob Sneidar) Date: Tue, 3 Jan 2012 10:20:09 -0800 Subject: OFF TOPIC virtualize windows on mac In-Reply-To: <4F03420C.7070201@fourthworld.com> References: <20120102144557.4D75.83BAC89@1234web.net> <4F03420C.7070201@fourthworld.com> Message-ID: <2E79F130-149D-432D-8F47-2E832B7A1FC7@twft.com> Aye. Where virtualization really begins to pay off for me is running multiple vm's on a single hardware platform, or else the convenience of having several operating systems at my fingertips at once. As an IT manager that has really been a huge boon for me. I should also mention that in a Windows dominated environment, it is a great way to introduce the MAC OS without others thinking you are trying to take over the world, which of course I really am, but no one needs to know that just yet. Otherwise I agree totally that for a single vm, why not just have a computer for that? Bob On Jan 3, 2012, at 9:59 AM, Richard Gaskin wrote: > And if you've been curious about learning more on the hardware side of things, building your own PC can save you even more. > > Consider this DIY rig from NewEgg: > > > A Sandy Bridge CPU in an expandable case for just $188. Add a hard drive and you're good to go with a fairly nice little system. > > Heck, that's pretty much the cost of Parallels, and you get an whole computer instead. :) > > -- > 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 Jan 3 13:35:54 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 03 Jan 2012 12:35:54 -0600 Subject: MobGUI demo restrictions? In-Reply-To: References: Message-ID: <4F034A8A.3070108@hyperactivesw.com> On 1/3/12 11:25 AM, Colin Holgate wrote: > I can't seem to find a page describing what the limitations are for > MobGUI if you haven't registered it. Do any of you know? Mine is > registered, so I get to see everything, and if I unregistered it I > might not notice all the differences. As near as I can tell, the only difference is that unregistered copies cause the built iOS app to show a brief accredidation when the app starts up on the device or simulator. There are no differences during development in the IDE. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From coiin at verizon.net Tue Jan 3 13:40:13 2012 From: coiin at verizon.net (Colin Holgate) Date: Tue, 03 Jan 2012 13:40:13 -0500 Subject: MobGUI demo restrictions? In-Reply-To: <4F034A8A.3070108@hyperactivesw.com> References: <4F034A8A.3070108@hyperactivesw.com> Message-ID: <35322452-BA34-4386-A577-6F62BB5BE561@verizon.net> Thanks, that helps. On Jan 3, 2012, at 1:35 PM, J. Landman Gay wrote: > As near as I can tell, the only difference is that unregistered copies cause the built iOS app to show a brief accredidation when the app starts up on the device or simulator. There are no differences during development in the IDE. From cmsheffield at me.com Tue Jan 3 14:09:30 2012 From: cmsheffield at me.com (Chris Sheffield) Date: Tue, 03 Jan 2012 12:09:30 -0700 Subject: iOS: custom answer (UIAlertView) dialog? Message-ID: Do we have the ability yet in LiveCode to customize the answer (UIAlertView) dialog? I need a little more control over the appearance of the dialog than the default answer command allows for. Things like text font, alignment, styles, etc. The ability to skin it would also be great, but not absolutely necessary. If that's not possible, is there a way to use a custom stack and create a custom dialog that way, like we can for the desktop? I tried issuing a "modal stack " command, but that filled the entire screen with my modal stack, which is not what I want. I need a dialog that pops up over the top of the current view. Anyone? I'm guessing the answer to this right now is "no", but thought I'd ask. Thanks, Chris -- Chris Sheffield Read Naturally, Inc. www.readnaturally.com From todd at geistinteractive.com Tue Jan 3 15:01:37 2012 From: todd at geistinteractive.com (Todd Geist) Date: Tue, 3 Jan 2012 12:01:37 -0800 Subject: Listen for messages in FrontScripts In-Reply-To: <998E7F9D-1258-428A-8CE3-FDC92A009D1F@twft.com> References: <16247C45-F877-446A-B6E1-456BCFB4F205@twft.com> <998E7F9D-1258-428A-8CE3-FDC92A009D1F@twft.com> Message-ID: On Tue, Jan 3, 2012 at 10:09 AM, Bob Sneidar wrote: > If I am not mistaken, sent or dispatched messages are always sent to the > card if another target is not specified, hmm, Not what I see Send, dispatch, and call use the current object as the target if none is specified. It would only be the card if the card was the object sending the command. Throw this in a button, *on* mouseUp *send* test *end* mouseUp *on* test *put* the target *end* test When you click the button you will see that the message is handled by the object. If you send a message using *Any* form (send, dispatch or call) and do not specify a target, then the object that is sending (or calling or dispatching) the message is the target. Of course a front script is inserted before the target and can handle the message, BUT it is not "the target". Here is my current understanding of the differences in Send, Dispatch, and Call. If anyone could correct me, I would appreciate it. I think dispatch does switch contexts. It send the message to the object and it is processed along the normal message path. It does have a special use of the "me" object which can refer to a behavior. But other than that I am pretty sure that references are evaluated in the context of the receiving object, not the sending one. Send is different because messages not handled but the target DO NOT continue down the message path. Send does NOT resolve "me" to the behavior script if there is any. Like Dispatch the context is the receiving object, not the sending one. Call is really weird. Context is the CALLING object not the Sending object. And messages that are not handled by the target pass down that object's message Path. Thanks Todd -- Todd Geist From pete at mollysrevenge.com Tue Jan 3 15:22:26 2012 From: pete at mollysrevenge.com (Pete) Date: Tue, 3 Jan 2012 12:22:26 -0800 Subject: Listen for messages in FrontScripts In-Reply-To: References: <16247C45-F877-446A-B6E1-456BCFB4F205@twft.com> <998E7F9D-1258-428A-8CE3-FDC92A009D1F@twft.com> Message-ID: I think it's time to refer to the message path bible - Richard Gaskin's great article at http://www.fourthworld.com/embassy/articles/revolution_message_path.html Pete On Tue, Jan 3, 2012 at 12:01 PM, Todd Geist wrote: > On Tue, Jan 3, 2012 at 10:09 AM, Bob Sneidar wrote: > > > If I am not mistaken, sent or dispatched messages are always sent to the > > card if another target is not specified, > > > hmm, Not what I see > > Send, dispatch, and call use the current object as the target if none is > specified. It would only be the card if the card was the object sending the > command. Throw this in a button, > > *on* mouseUp > > *send* test > > *end* mouseUp > > > *on* test > > *put* the target > > *end* test > > > When you click the button you will see that the message is handled by the > object. > > > If you send a message using *Any* form (send, dispatch or call) and do not > specify a target, then the object that is sending (or calling or > dispatching) the message is the target. Of course a front script is > inserted before the target and can handle the message, BUT it is not "the > target". > > > Here is my current understanding of the differences in Send, Dispatch, and > Call. If anyone could correct me, I would appreciate it. > > > I think dispatch does switch contexts. It send the message to the object > and it is processed along the normal message path. It does have a special > use of the "me" object which can refer to a behavior. But other than that I > am pretty sure that references are evaluated in the context of the > receiving object, not the sending one. > > > Send is different because messages not handled but the target DO NOT > continue down the message path. Send does NOT resolve "me" to the behavior > script if there is any. Like Dispatch the context is the receiving object, > not the sending one. > > > Call is really weird. Context is the CALLING object not the Sending object. > And messages that are not handled by the target pass down that object's > message Path. > > > > Thanks > > > Todd > > -- > Todd Geist > _______________________________________________ > use-livecode mailing list > use-livecode 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 gregory.lypny at videotron.ca Tue Jan 3 15:23:45 2012 From: gregory.lypny at videotron.ca (Gregory Lypny) Date: Tue, 03 Jan 2012 15:23:45 -0500 Subject: Windows Standalone Does Not Have an App Menu Message-ID: <51B414F6-C718-4685-8487-60F5777ED449@videotron.ca> Hello everyone, I develop LiveCode apps for my students on my Mac, and I sometimes have limited opportunities to fully test them on PCs. I recently updated to LiveCode 5.0.2 and rebuilt a stack that was originally coded in 5.0.1. I saved the stack as Mac and Windows standalones for distribution to my students. One of my Windows-using students told me today that the app does not have a default App menu, e.g., My App, with whatever menu items the Windows app menu would have, but especially Quit (or Exit)! Because there is no Quit menu item, there is no way to exit the app when the undecorated splash screen appears. I don?t know what the Windows equivalent to the dock on the Mac is, but there appears to be no icon on his Windows box to indicate the app is open or to provide another means to quit. How do I get the default app menu to appear on the Windows standalone like it used to? Has something changed with 5.0.2? Regards, Gregory From todd at geistinteractive.com Tue Jan 3 15:30:21 2012 From: todd at geistinteractive.com (Todd Geist) Date: Tue, 3 Jan 2012 12:30:21 -0800 Subject: Listen for messages in FrontScripts In-Reply-To: References: <16247C45-F877-446A-B6E1-456BCFB4F205@twft.com> <998E7F9D-1258-428A-8CE3-FDC92A009D1F@twft.com> Message-ID: Thanks Pete, That is where I began :-) On Tue, Jan 3, 2012 at 12:22 PM, Pete wrote: > I think it's time to refer to the message path bible - Richard Gaskin's > great article at > http://www.fourthworld.com/embassy/articles/revolution_message_path.html > Pete > > On Tue, Jan 3, 2012 at 12:01 PM, Todd Geist >wrote: > > > On Tue, Jan 3, 2012 at 10:09 AM, Bob Sneidar wrote: > > > > > If I am not mistaken, sent or dispatched messages are always sent to > the > > > card if another target is not specified, > > > > > > hmm, Not what I see > > > > Send, dispatch, and call use the current object as the target if none is > > specified. It would only be the card if the card was the object sending > the > > command. Throw this in a button, > > > > *on* mouseUp > > > > *send* test > > > > *end* mouseUp > > > > > > *on* test > > > > *put* the target > > > > *end* test > > > > > > When you click the button you will see that the message is handled by the > > object. > > > > > > If you send a message using *Any* form (send, dispatch or call) and do > not > > specify a target, then the object that is sending (or calling or > > dispatching) the message is the target. Of course a front script is > > inserted before the target and can handle the message, BUT it is not "the > > target". > > > > > > Here is my current understanding of the differences in Send, Dispatch, > and > > Call. If anyone could correct me, I would appreciate it. > > > > > > I think dispatch does switch contexts. It send the message to the object > > and it is processed along the normal message path. It does have a > special > > use of the "me" object which can refer to a behavior. But other than > that I > > am pretty sure that references are evaluated in the context of the > > receiving object, not the sending one. > > > > > > Send is different because messages not handled but the target DO NOT > > continue down the message path. Send does NOT resolve "me" to the > behavior > > script if there is any. Like Dispatch the context is the receiving > object, > > not the sending one. > > > > > > Call is really weird. Context is the CALLING object not the Sending > object. > > And messages that are not handled by the target pass down that object's > > message Path. > > > > > > > > Thanks > > > > > > Todd > > > > -- > > Todd Geist > > _______________________________________________ > > use-livecode mailing list > > use-livecode 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 > -- Todd Geist (805) 419-9382 From mike at doub.com Tue Jan 3 15:40:27 2012 From: mike at doub.com (Michael Doub) Date: Tue, 3 Jan 2012 15:40:27 -0500 Subject: Scripting a text to binary digits converter In-Reply-To: <60253EC8-29C8-4029-8B5C-059739653ECA@sonsothunder.com> References: <4F021234.7040701@deepfoo.com> <4F02196C.3000500@deepfoo.com> <4F0222BE.1030801@deepfoo.com> <4F022C7C.1020003@pdslabs.net> <60253EC8-29C8-4029-8B5C-059739653ECA@sonsothunder.com> Message-ID: How's this? Function convertBinaryToText varText repeat with x = 1 to the len of varText-8 step 8 put numtochar(BaseConvert(char x to (x+7) of varText,2,10)) after tConverted end repeat return tConverted end convertBinaryToText On 2012-01-03, at 11:21 AM, Ken Ray wrote: >> function convertTextToBinary varText >> --repeat with n = 1 to the number of chars of varText >> repeat for each char tChar in varText >> --put chartonum(char n of varText) into theNum >> put chartonum(tChar) into theNum >> put baseConvert(theNum,10,2) into tBaseConverted >> put char -8 to -1 of ("00000000" & tBaseConverted ) into tBaseConverted >> put tBaseConverted after tConverted >> end repeat >> return tConverted >> end convertTextToBinary > > Another thing you could do which *might* speed things up is to use numberFormat instead of parsing strings: > > function convertTextToBinary varText > set the numberFormat to "00000000" > --repeat with n = 1 to the number of chars of varText > repeat for each char tChar in varText > --put chartonum(char n of varText) into theNum > put chartonum(tChar) into theNum > put (baseConvert(theNum,10,2)+0) into tBaseConverted -- the "+0" forces it to use the number format > put tBaseConverted after tConverted > end repeat > return tConverted > end convertTextToBinary > > You can also collapse a lot of the code (although it's less readable): > > function convertTextToBinary varText > set the numberFormat to "00000000" > repeat for each char tChar in varText > put (baseConvert(chartonum(tChar),10,2)+0) after tConverted > end repeat > return tConverted > end convertTextToBinary > > Stripping a few lines may also increase speed - don't know but just a thought... > > Ken Ray > Sons of Thunder Software, Inc. > Email: kray at sonsothunder.com > Web Site: http://www.sonsothunder.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 sundown at pacifier.com Tue Jan 3 15:51:19 2012 From: sundown at pacifier.com (-=>JB<=-) Date: Tue, 3 Jan 2012 12:51:19 -0800 Subject: Scripting a text to binary digits converter In-Reply-To: References: <4F021234.7040701@deepfoo.com> <4F02196C.3000500@deepfoo.com> <4F0222BE.1030801@deepfoo.com> <4F022C7C.1020003@pdslabs.net> <60253EC8-29C8-4029-8B5C-059739653ECA@sonsothunder.com> Message-ID: <10FF9F82-A071-4D46-9C5A-13C40801980D@pacifier.com> That looks real good! -=>JB<=- On Jan 3, 2012, at 12:40 PM, Michael Doub wrote: > How's this? > > Function convertBinaryToText varText > repeat with x = 1 to the len of varText-8 step 8 > put numtochar(BaseConvert(char x to (x+7) of varText,2,10)) after tConverted > end repeat > return tConverted > end convertBinaryToText > > > On 2012-01-03, at 11:21 AM, Ken Ray wrote: > >>> function convertTextToBinary varText >>> --repeat with n = 1 to the number of chars of varText >>> repeat for each char tChar in varText >>> --put chartonum(char n of varText) into theNum >>> put chartonum(tChar) into theNum >>> put baseConvert(theNum,10,2) into tBaseConverted >>> put char -8 to -1 of ("00000000" & tBaseConverted ) into tBaseConverted >>> put tBaseConverted after tConverted >>> end repeat >>> return tConverted >>> end convertTextToBinary >> >> Another thing you could do which *might* speed things up is to use numberFormat instead of parsing strings: >> >> function convertTextToBinary varText >> set the numberFormat to "00000000" >> --repeat with n = 1 to the number of chars of varText >> repeat for each char tChar in varText >> --put chartonum(char n of varText) into theNum >> put chartonum(tChar) into theNum >> put (baseConvert(theNum,10,2)+0) into tBaseConverted -- the "+0" forces it to use the number format >> put tBaseConverted after tConverted >> end repeat >> return tConverted >> end convertTextToBinary >> >> You can also collapse a lot of the code (although it's less readable): >> >> function convertTextToBinary varText >> set the numberFormat to "00000000" >> repeat for each char tChar in varText >> put (baseConvert(chartonum(tChar),10,2)+0) after tConverted >> end repeat >> return tConverted >> end convertTextToBinary >> >> Stripping a few lines may also increase speed - don't know but just a thought... >> >> Ken Ray >> Sons of Thunder Software, Inc. >> Email: kray at sonsothunder.com >> Web Site: http://www.sonsothunder.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 roger.e.eller at sealedair.com Tue Jan 3 15:51:51 2012 From: roger.e.eller at sealedair.com (Roger Eller) Date: Tue, 3 Jan 2012 15:51:51 -0500 Subject: Windows Standalone Does Not Have an App Menu In-Reply-To: <51B414F6-C718-4685-8487-60F5777ED449@videotron.ca> References: <51B414F6-C718-4685-8487-60F5777ED449@videotron.ca> Message-ID: On Tue, Jan 3, 2012 at 3:23 PM, Gregory Lypny wrote: > Hello everyone, > > I develop LiveCode apps for my students on my Mac, and I sometimes have > limited opportunities to fully test them on PCs. I recently updated to > LiveCode 5.0.2 and rebuilt a stack that was originally coded in 5.0.1. I > saved the stack as Mac and Windows standalones for distribution to my > students. One of my Windows-using students told me today that the app does > not have a default App menu, e.g., My App, with whatever menu items the > Windows app menu would have, but especially Quit (or Exit)! Because there > is no Quit menu item, there is no way to exit the app when the undecorated > splash screen appears. I don?t know what the Windows equivalent to the > dock on the Mac is, but there appears to be no icon on his Windows box to > indicate the app is open or to provide another means to quit. How do I get > the default app menu to appear on the Windows standalone like it used to? > Has something changed with 5.0.2? > > Regards, > > Gregory > > Without decorations, your app is a ghost (sort of). It will only show in the taskbar (windows dock) when decorations are visible. You can make a small button with "quit" in a mouseUp handler, or instruct the user to press Alt-F4 to quit the app. ~Roger From bobs at twft.com Tue Jan 3 16:00:17 2012 From: bobs at twft.com (Bob Sneidar) Date: Tue, 3 Jan 2012 13:00:17 -0800 Subject: iOS: custom answer (UIAlertView) dialog? In-Reply-To: References: Message-ID: <47A06A5B-EF8D-44EF-A452-4AB64DC56AFD@twft.com> Because rolling your own answer dialog is pretty easy, the typical answer to this question is roll your own. I'm sure many have done so. Someone is sure to offer something up. A good place to start is to read up on the dialogData. It's a global property that you can put anything into, so that is one way to pass data back and forth. Note also that you can use the return command even when you are not calling a function. Return will put whatever you declare into the result. If you want it to contain your result, then get whatever you declare, and optionally return true or false. Open your custom answer dialog stack as modal, and away you go! Bob On Jan 3, 2012, at 11:09 AM, Chris Sheffield wrote: > Do we have the ability yet in LiveCode to customize the answer (UIAlertView) dialog? I need a little more control over the appearance of the dialog than the default answer command allows for. Things like text font, alignment, styles, etc. The ability to skin it would also be great, but not absolutely necessary. If that's not possible, is there a way to use a custom stack and create a custom dialog that way, like we can for the desktop? I tried issuing a "modal stack " command, but that filled the entire screen with my modal stack, which is not what I want. I need a dialog that pops up over the top of the current view. > > Anyone? I'm guessing the answer to this right now is "no", but thought I'd ask. > > Thanks, > Chris > > > -- > Chris Sheffield > Read Naturally, Inc. > www.readnaturally.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 cmsheffield at me.com Tue Jan 3 16:07:14 2012 From: cmsheffield at me.com (Chris Sheffield) Date: Tue, 03 Jan 2012 14:07:14 -0700 Subject: iOS: custom answer (UIAlertView) dialog? In-Reply-To: <47A06A5B-EF8D-44EF-A452-4AB64DC56AFD@twft.com> References: <47A06A5B-EF8D-44EF-A452-4AB64DC56AFD@twft.com> Message-ID: <0E5144F4-9DA6-49B2-B516-FF525A3FE061@me.com> Thanks, Bob, but I already tried that. When issuing the modal command, or the "go stack as modal" command on iOS, the modal stack takes over the whole screen, which is not the desired result. Still looking... Chris On Jan 3, 2012, at 2:00 PM, Bob Sneidar wrote: > Because rolling your own answer dialog is pretty easy, the typical answer to this question is roll your own. I'm sure many have done so. Someone is sure to offer something up. A good place to start is to read up on the dialogData. It's a global property that you can put anything into, so that is one way to pass data back and forth. Note also that you can use the return command even when you are not calling a function. Return will put whatever you declare into the result. If you want it to contain your result, then get whatever you declare, and optionally return true or false. Open your custom answer dialog stack as modal, and away you go! > > Bob > > > On Jan 3, 2012, at 11:09 AM, Chris Sheffield wrote: > >> Do we have the ability yet in LiveCode to customize the answer (UIAlertView) dialog? I need a little more control over the appearance of the dialog than the default answer command allows for. Things like text font, alignment, styles, etc. The ability to skin it would also be great, but not absolutely necessary. If that's not possible, is there a way to use a custom stack and create a custom dialog that way, like we can for the desktop? I tried issuing a "modal stack " command, but that filled the entire screen with my modal stack, which is not what I want. I need a dialog that pops up over the top of the current view. >> >> Anyone? I'm guessing the answer to this right now is "no", but thought I'd ask. >> >> Thanks, >> Chris >> >> >> -- >> Chris Sheffield >> Read Naturally, Inc. >> www.readnaturally.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 bobs at twft.com Tue Jan 3 16:08:58 2012 From: bobs at twft.com (Bob Sneidar) Date: Tue, 3 Jan 2012 13:08:58 -0800 Subject: Listen for messages in FrontScripts In-Reply-To: References: <16247C45-F877-446A-B6E1-456BCFB4F205@twft.com> <998E7F9D-1258-428A-8CE3-FDC92A009D1F@twft.com> Message-ID: <811170E1-7EDB-4BBE-A15E-58A892EAF5D9@twft.com> On Jan 3, 2012, at 12:01 PM, Todd Geist wrote: > Send is different because messages not handled but the target DO NOT > continue down the message path. Send does NOT resolve "me" to the behavior > script if there is any. Like Dispatch the context is the receiving object, > not the sending one. I am not sure this is exactly true. I have a behavior for all my database forms, so that I can code generally for all forms, while also putting form specific code in the actual card script. It is my recollection that if I send to the card, and the card does not handle the message, or passes the message, then the behavior script gets it. To test this, I scripted a handler in the stack script which popped an answer dialog. I then sent the handler to the current card, and the stack script got it. > I think dispatch does switch contexts. It send the message to the object > and it is processed along the normal message path. It does have a special > use of the "me" object which can refer to a behavior. But other than that I > am pretty sure that references are evaluated in the context of the > receiving object, not the sending one. If that is the case, then you should submit a comment in the dictionary for dispatch. I looked and there does not seem to be any mention about switching contexts or having the target object's stack become the defaultStack. Bob From bobs at twft.com Tue Jan 3 16:24:25 2012 From: bobs at twft.com (Bob Sneidar) Date: Tue, 3 Jan 2012 13:24:25 -0800 Subject: Listen for messages in FrontScripts In-Reply-To: References: <16247C45-F877-446A-B6E1-456BCFB4F205@twft.com> <998E7F9D-1258-428A-8CE3-FDC92A009D1F@twft.com> Message-ID: <86A4F72A-7027-4BF1-8931-48B79D0DF52A@twft.com> That is a great writeup on the subject, and seems to indicate, although indirectly, that send and dispatch work the same as regards the context of the called handler. I'm still not sure this is the case, but if so, then the dictionary needs to be updated in this regard. Bob On Jan 3, 2012, at 12:30 PM, Todd Geist wrote: > Thanks Pete, That is where I began :-) > > On Tue, Jan 3, 2012 at 12:22 PM, Pete wrote: > >> I think it's time to refer to the message path bible - Richard Gaskin's >> great article at >> http://www.fourthworld.com/embassy/articles/revolution_message_path.html >> Pete > From bobs at twft.com Tue Jan 3 16:29:37 2012 From: bobs at twft.com (Bob Sneidar) Date: Tue, 3 Jan 2012 13:29:37 -0800 Subject: iOS: custom answer (UIAlertView) dialog? In-Reply-To: <0E5144F4-9DA6-49B2-B516-FF525A3FE061@me.com> References: <47A06A5B-EF8D-44EF-A452-4AB64DC56AFD@twft.com> <0E5144F4-9DA6-49B2-B516-FF525A3FE061@me.com> Message-ID: <99521DAA-63F4-4795-8592-C7C5169559A1@twft.com> That is an interesting UI question though. Do you really want multiple stacks open in a mobile interface? Does the Android OS spec that as valid? I know on my iPhone, apps generally work like modal windows, that is I never see a window pop up in front of another window. But the point seems moot, if the new stack window is the size of the screen. You would not need your dialog to be opened modally in that case. But I have not done ANY mobile app dev so I am speaking out of turn here. Bob On Jan 3, 2012, at 1:07 PM, Chris Sheffield wrote: > Thanks, Bob, but I already tried that. When issuing the modal command, or the "go stack as modal" command on iOS, the modal stack takes over the whole screen, which is not the desired result. Still looking... > > Chris > > From todd at geistinteractive.com Tue Jan 3 16:29:07 2012 From: todd at geistinteractive.com (Todd Geist) Date: Tue, 3 Jan 2012 13:29:07 -0800 Subject: Listen for messages in FrontScripts In-Reply-To: <86A4F72A-7027-4BF1-8931-48B79D0DF52A@twft.com> References: <16247C45-F877-446A-B6E1-456BCFB4F205@twft.com> <998E7F9D-1258-428A-8CE3-FDC92A009D1F@twft.com> <86A4F72A-7027-4BF1-8931-48B79D0DF52A@twft.com> Message-ID: On Tue, Jan 3, 2012 at 1:24 PM, Bob Sneidar wrote: > That is a great writeup on the subject, Thanks! > and seems to indicate, although indirectly, that send and dispatch work > the same as regards the context of the called handler. I'm still not sure > this is the case, but if so, then the dictionary needs to be updated in > this regard. Yeah it probably could be clearer. :-) Todd From pete at mollysrevenge.com Tue Jan 3 16:40:12 2012 From: pete at mollysrevenge.com (Pete) Date: Tue, 3 Jan 2012 13:40:12 -0800 Subject: Listen for messages in FrontScripts In-Reply-To: References: <16247C45-F877-446A-B6E1-456BCFB4F205@twft.com> <998E7F9D-1258-428A-8CE3-FDC92A009D1F@twft.com> Message-ID: OK, sorry didn't realise you'd already read it. You're turning up some interesting stuff. I guess my only comment is that I prefer to always specify a target for dispatch, etc. Defaults are great but being specific relieves my already overloaded brain of having to remember what they are!. Pete On Tue, Jan 3, 2012 at 12:30 PM, Todd Geist wrote: > Thanks Pete, That is where I began :-) > > On Tue, Jan 3, 2012 at 12:22 PM, Pete wrote: > > > I think it's time to refer to the message path bible - Richard Gaskin's > > great article at > > http://www.fourthworld.com/embassy/articles/revolution_message_path.html > > Pete > > > > On Tue, Jan 3, 2012 at 12:01 PM, Todd Geist > >wrote: > > > > > On Tue, Jan 3, 2012 at 10:09 AM, Bob Sneidar wrote: > > > > > > > If I am not mistaken, sent or dispatched messages are always sent to > > the > > > > card if another target is not specified, > > > > > > > > > hmm, Not what I see > > > > > > Send, dispatch, and call use the current object as the target if none > is > > > specified. It would only be the card if the card was the object sending > > the > > > command. Throw this in a button, > > > > > > *on* mouseUp > > > > > > *send* test > > > > > > *end* mouseUp > > > > > > > > > *on* test > > > > > > *put* the target > > > > > > *end* test > > > > > > > > > When you click the button you will see that the message is handled by > the > > > object. > > > > > > > > > If you send a message using *Any* form (send, dispatch or call) and do > > not > > > specify a target, then the object that is sending (or calling or > > > dispatching) the message is the target. Of course a front script is > > > inserted before the target and can handle the message, BUT it is not > "the > > > target". > > > > > > > > > Here is my current understanding of the differences in Send, Dispatch, > > and > > > Call. If anyone could correct me, I would appreciate it. > > > > > > > > > I think dispatch does switch contexts. It send the message to the > object > > > and it is processed along the normal message path. It does have a > > special > > > use of the "me" object which can refer to a behavior. But other than > > that I > > > am pretty sure that references are evaluated in the context of the > > > receiving object, not the sending one. > > > > > > > > > Send is different because messages not handled but the target DO NOT > > > continue down the message path. Send does NOT resolve "me" to the > > behavior > > > script if there is any. Like Dispatch the context is the receiving > > object, > > > not the sending one. > > > > > > > > > Call is really weird. Context is the CALLING object not the Sending > > object. > > > And messages that are not handled by the target pass down that object's > > > message Path. > > > > > > > > > > > > Thanks > > > > > > > > > Todd > > > > > > -- > > > Todd Geist > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode 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 > > > > > > -- > Todd Geist > > > (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 > > -- Pete Molly's Revenge From jacque at hyperactivesw.com Tue Jan 3 16:44:08 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 03 Jan 2012 15:44:08 -0600 Subject: iOS: custom answer (UIAlertView) dialog? In-Reply-To: <47A06A5B-EF8D-44EF-A452-4AB64DC56AFD@twft.com> References: <47A06A5B-EF8D-44EF-A452-4AB64DC56AFD@twft.com> Message-ID: <4F0376A8.40109@hyperactivesw.com> On 1/3/12 3:00 PM, Bob Sneidar wrote: > Because rolling your own answer dialog is pretty easy, the typical > answer to this question is roll your own. The problem with mobile apps is that only one stack can be open at a time, so when the dialog opens, it closes the main stack and takes up the whole screen. I don't think there's a way around that. Mobile apps are limited to one card at a time. That said, it could possibly be faked by showing a group over the current card, but everything else on the card would have to be disabled. Or maybe the group could have a card-sized button at the back that just blocks mouse actions, leaving only the "dialog" group active. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From katir at hindu.org Tue Jan 3 16:51:42 2012 From: katir at hindu.org (Sivakatirswami) Date: Tue, 03 Jan 2012 11:51:42 -1000 Subject: Simplest method for determining "changes made" on a form/card Message-ID: <4F03786E.20304@hindu.org> Without scripting every field, if you have a data entry system with multiple fields, and you want to flag the user that he or she made a change but did not save before click "next" or "Previous" to go to another record... what would be the simplest method to check that the card was modified to then prompt the user "Do you want to save your changes?" Sivakatirswami From bobs at twft.com Tue Jan 3 16:57:06 2012 From: bobs at twft.com (Bob Sneidar) Date: Tue, 3 Jan 2012 13:57:06 -0800 Subject: iOS: custom answer (UIAlertView) dialog? In-Reply-To: <4F0376A8.40109@hyperactivesw.com> References: <47A06A5B-EF8D-44EF-A452-4AB64DC56AFD@twft.com> <4F0376A8.40109@hyperactivesw.com> Message-ID: <9964E66A-D075-45AF-AF3B-89A3A7A3145D@twft.com> OIC! So it would be possible to set a global before the calling stack launches the "dialog", and have the dialog stack when it is returning control to the calling stack, lock messages, close itself, then open the stack stored in the global when it's finished and has saved all the user interaction in the dialogData. This would effectively prevent any initialization scripts or opencard/stack handlers from triggering when returning from the dialog stack. Would that do? Bob On Jan 3, 2012, at 1:44 PM, J. Landman Gay wrote: > On 1/3/12 3:00 PM, Bob Sneidar wrote: >> Because rolling your own answer dialog is pretty easy, the typical >> answer to this question is roll your own. > > The problem with mobile apps is that only one stack can be open at a time, so when the dialog opens, it closes the main stack and takes up the whole screen. I don't think there's a way around that. Mobile apps are limited to one card at a time. > > That said, it could possibly be faked by showing a group over the current card, but everything else on the card would have to be disabled. Or maybe the group could have a card-sized button at the back that just blocks mouse actions, leaving only the "dialog" group active. > > -- > 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 bryan at deepfoo.com Tue Jan 3 17:08:28 2012 From: bryan at deepfoo.com (Bryan McCormick) Date: Tue, 03 Jan 2012 17:08:28 -0500 Subject: Scripting a text to binary digits converter In-Reply-To: <4F0222BE.1030801@deepfoo.com> References: <4F021234.7040701@deepfoo.com> <4F02196C.3000500@deepfoo.com> <4F0222BE.1030801@deepfoo.com> Message-ID: <4F037C5C.6080508@deepfoo.com> Hey Ken, Oddly your terse script ran a bit longer than the "final" one the group cobbled together by community heavy lifting. Not by much though. 1000 repeats on both showed yours was about 13 to 20 ticks slower. Not at all what I would have expected either. From jacque at hyperactivesw.com Tue Jan 3 17:08:53 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 03 Jan 2012 16:08:53 -0600 Subject: iOS: custom answer (UIAlertView) dialog? In-Reply-To: <9964E66A-D075-45AF-AF3B-89A3A7A3145D@twft.com> References: <47A06A5B-EF8D-44EF-A452-4AB64DC56AFD@twft.com> <4F0376A8.40109@hyperactivesw.com> <9964E66A-D075-45AF-AF3B-89A3A7A3145D@twft.com> Message-ID: <4F037C75.5060200@hyperactivesw.com> On 1/3/12 3:57 PM, Bob Sneidar wrote: > OIC! So it would be possible to set a global before the calling stack > launches the "dialog", and have the dialog stack when it is returning > control to the calling stack, lock messages, close itself, then open > the stack stored in the global when it's finished and has saved all > the user interaction in the dialogData. This would effectively > prevent any initialization scripts or opencard/stack handlers from > triggering when returning from the dialog stack. Or just use "go back". > Would that do? Possibly, but I assume Chris wants it to look like a normal dialog. The only way I can think to do that would be to overlay a group. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bryan at deepfoo.com Tue Jan 3 17:09:47 2012 From: bryan at deepfoo.com (Bryan McCormick) Date: Tue, 03 Jan 2012 17:09:47 -0500 Subject: Scripting a text to binary digits converter In-Reply-To: <4F0220B9.1060800@deepfoo.com> References: <4F021234.7040701@deepfoo.com> <4F02196C.3000500@deepfoo.com> <4F0220B9.1060800@deepfoo.com> Message-ID: <4F037CAB.6090805@deepfoo.com> Phil, Your final version of the script ended up winning the speed race. See my note to Ken. Thanks to everyone for pitching in. That was fun. Forced me to learn a bit about baseConvert and binaryEncode/Decode From jacque at hyperactivesw.com Tue Jan 3 17:12:41 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 03 Jan 2012 16:12:41 -0600 Subject: Simplest method for determining "changes made" on a form/card In-Reply-To: <4F03786E.20304@hindu.org> References: <4F03786E.20304@hindu.org> Message-ID: <4F037D59.9080203@hyperactivesw.com> On 1/3/12 3:51 PM, Sivakatirswami wrote: > Without scripting every field, if you have a data entry system with > multiple fields, and you want to flag the user that he or she made a > change but did not save before click "next" or "Previous" to go to > another record... what would be the simplest method to check that the > card was modified to then prompt the user "Do you want to save your > changes?" In the card script (or stack script, depending on how the stack is laid out), trap the "closefield" message, which is only sent when field content changes. Set a script local or global variable to true. Then on closecard, check the variable and ask to save if it's true. Then set the variable back to false. The only catch here is that if any of your fields have closeField handlers, they'd need to pass the message so that the card could catch it. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From cmsheffield at me.com Tue Jan 3 17:19:58 2012 From: cmsheffield at me.com (Chris Sheffield) Date: Tue, 03 Jan 2012 15:19:58 -0700 Subject: iOS: custom answer (UIAlertView) dialog? In-Reply-To: <4F037C75.5060200@hyperactivesw.com> References: <47A06A5B-EF8D-44EF-A452-4AB64DC56AFD@twft.com> <4F0376A8.40109@hyperactivesw.com> <9964E66A-D075-45AF-AF3B-89A3A7A3145D@twft.com> <4F037C75.5060200@hyperactivesw.com> Message-ID: <610638A2-FF69-414B-940D-66BF47EF0C79@me.com> Jacque, you're right. And overlaying a group seems to do the trick. I'm still playing with it, and I'm not even totally sure if the powers that be will like what I've done, but so far it seems to be working well. Thanks for the suggestion. Chris On Jan 3, 2012, at 3:08 PM, J. Landman Gay wrote: > On 1/3/12 3:57 PM, Bob Sneidar wrote: >> OIC! So it would be possible to set a global before the calling stack >> launches the "dialog", and have the dialog stack when it is returning >> control to the calling stack, lock messages, close itself, then open >> the stack stored in the global when it's finished and has saved all >> the user interaction in the dialogData. This would effectively >> prevent any initialization scripts or opencard/stack handlers from >> triggering when returning from the dialog stack. > > Or just use "go back". > >> Would that do? > > Possibly, but I assume Chris wants it to look like a normal dialog. The only way I can think to do that would be to overlay a group. > > -- > 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 Tue Jan 3 17:28:18 2012 From: bobs at twft.com (Bob Sneidar) Date: Tue, 3 Jan 2012 14:28:18 -0800 Subject: Simplest method for determining "changes made" on a form/card In-Reply-To: <4F03786E.20304@hindu.org> References: <4F03786E.20304@hindu.org> Message-ID: <12A2FB8F-94D1-4753-9E8D-7EEF49A9F130@twft.com> Not sure this is a simple problem, but one thing I like to do is create a global and then set it. I can then check for the mode when necessary. For simple edits I typically use a simple true false value in a global called isEditing. For more complex operations, I have a mode variable called gEditMode which can have at least 3 values: Newrecord, Edit or Browse, and sometimes a fourth called Validate. I do this because I want to provide visual clues about what the state of things are, such as an "X" button and a "Check" button, which I show and hide in a showEditMode handler. I also typically need to know if I am editing an existing record, or creating a new one, so that I can put default values into fields for new records, but NOT when editing! Otherwise I would constantly be overwriting edited values with default ones. Once I have that, I will put a closeField, and menuPick handler in the stack script, card script or behavior script for the card, depending on the application. These will, among other things, set the value of the gEditMode variable to "Edit" or "Newrecord" depending on the user choice. Buttons are trickier, because I don't want to trap every mouseUp the user makes. I ended up creating a fieldDropper utility which reads the schema of a database, and then depending on a property of the current card, presents the developer (me) with a list of table columns for a specific table. I then ask a few questions about the type of control, and if a button or menu, I have a canned script that I set the script of the control to when I create it. Sometimes I require a user to click a button to enter the edit mode or newrecord mode. This avoids confusion and unwanted accidental data changes. It doesn't have to be a button, it could be a menu choice or a command key, but the user needs to just know intuitively what to do, or else have some visual letting him know that things have changed because he edited the information in some field. What I am discovering as I go along is that there are certain things I do repetitively, so that rather than hard coding the one thing I am trying to do, I instead approach things from a framework perspective, making things a great deal easier down the road. It certainly is not simple up front, but things begin to really hum along later. Bob On Jan 3, 2012, at 1:51 PM, Sivakatirswami wrote: > Without scripting every field, if you have a data entry system with multiple fields, and you want to flag the user that he or she made a change but did not save before click "next" or "Previous" to go to another record... what would be the simplest method to check that the card was modified to then prompt the user "Do you want to save your changes?" > > 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 bobs at twft.com Tue Jan 3 17:29:52 2012 From: bobs at twft.com (Bob Sneidar) Date: Tue, 3 Jan 2012 14:29:52 -0800 Subject: Simplest method for determining "changes made" on a form/card In-Reply-To: <4F037D59.9080203@hyperactivesw.com> References: <4F03786E.20304@hindu.org> <4F037D59.9080203@hyperactivesw.com> Message-ID: <8551109C-4AB4-4519-9909-41A5EA4D2922@twft.com> Also remember that closeField does not get sent to a field if the user clicks on a button before exiting the edited field, at least on the Mac OS. Bob On Jan 3, 2012, at 2:12 PM, J. Landman Gay wrote: > On 1/3/12 3:51 PM, Sivakatirswami wrote: >> Without scripting every field, if you have a data entry system with >> multiple fields, and you want to flag the user that he or she made a >> change but did not save before click "next" or "Previous" to go to >> another record... what would be the simplest method to check that the >> card was modified to then prompt the user "Do you want to save your >> changes?" > > In the card script (or stack script, depending on how the stack is laid out), trap the "closefield" message, which is only sent when field content changes. Set a script local or global variable to true. Then on closecard, check the variable and ask to save if it's true. Then set the variable back to false. > > The only catch here is that if any of your fields have closeField handlers, they'd need to pass the message so that the card could catch 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 Tue Jan 3 18:02:13 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 03 Jan 2012 17:02:13 -0600 Subject: Simplest method for determining "changes made" on a form/card In-Reply-To: <8551109C-4AB4-4519-9909-41A5EA4D2922@twft.com> References: <4F03786E.20304@hindu.org> <4F037D59.9080203@hyperactivesw.com> <8551109C-4AB4-4519-9909-41A5EA4D2922@twft.com> Message-ID: <4F0388F5.60909@hyperactivesw.com> On 1/3/12 4:29 PM, Bob Sneidar wrote: > Also remember that closeField does not get sent to a field if the > user clicks on a button before exiting the edited field, at least on > the Mac OS. Didn't that get fixed? That bug dates back about 12 years, but I thought it worked again now. Inserting "click at 0,0" into the handler will work around it. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobs at twft.com Tue Jan 3 18:16:29 2012 From: bobs at twft.com (Bob Sneidar) Date: Tue, 3 Jan 2012 15:16:29 -0800 Subject: Simplest method for determining "changes made" on a form/card In-Reply-To: <4F0388F5.60909@hyperactivesw.com> References: <4F03786E.20304@hindu.org> <4F037D59.9080203@hyperactivesw.com> <8551109C-4AB4-4519-9909-41A5EA4D2922@twft.com> <4F0388F5.60909@hyperactivesw.com> Message-ID: <2A669F22-C86F-470D-B4B6-CE77D4E162ED@twft.com> Oh right you are! I just tested that and it worked. Awesome! Bob On Jan 3, 2012, at 3:02 PM, J. Landman Gay wrote: > On 1/3/12 4:29 PM, Bob Sneidar wrote: >> Also remember that closeField does not get sent to a field if the >> user clicks on a button before exiting the edited field, at least on >> the Mac OS. > > Didn't that get fixed? That bug dates back about 12 years, but I thought it worked again now. > > Inserting "click at 0,0" into the handler will work around 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 pete at mollysrevenge.com Tue Jan 3 19:56:17 2012 From: pete at mollysrevenge.com (Pete) Date: Tue, 3 Jan 2012 16:56:17 -0800 Subject: Simplest method for determining "changes made" on a form/card In-Reply-To: <4F0388F5.60909@hyperactivesw.com> References: <4F03786E.20304@hindu.org> <4F037D59.9080203@hyperactivesw.com> <8551109C-4AB4-4519-9909-41A5EA4D2922@twft.com> <4F0388F5.60909@hyperactivesw.com> Message-ID: That behavior is still there in 4.6.4. The workaround I remember is to put a "focus on nothing" in the button script. I seem to remember there was a discussion on this issue a while back that concluded it wasn't a bug since clicking on a button doesn't cause the field to lose focus? On Tue, Jan 3, 2012 at 3:02 PM, J. Landman Gay wrote: > On 1/3/12 4:29 PM, Bob Sneidar wrote: > >> Also remember that closeField does not get sent to a field if the >> user clicks on a button before exiting the edited field, at least on >> the Mac OS. >> > > Didn't that get fixed? That bug dates back about 12 years, but I thought > it worked again now. > > Inserting "click at 0,0" into the handler will work around 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 > > -- Pete Molly's Revenge From mwieder at ahsoftware.net Tue Jan 3 21:11:24 2012 From: mwieder at ahsoftware.net (Mark Wieder) Date: Tue, 3 Jan 2012 18:11:24 -0800 Subject: Windows Standalone Does Not Have an App Menu In-Reply-To: References: <51B414F6-C718-4685-8487-60F5777ED449@videotron.ca> Message-ID: <3571444109.20120103181124@ahsoftware.net> Roger- Tuesday, January 3, 2012, 12:51:51 PM, you wrote: > Without decorations, your app is a ghost (sort of). It will only show in > the taskbar (windows dock) when decorations are visible. You can make a > small button with "quit" in a mouseUp handler, or instruct the user to > press Alt-F4 to quit the app. Or just make an app *with* decorations. The conventions are there for a reason, and they both promote and meet user expectations. -- -Mark Wieder mwieder at ahsoftware.net From mwieder at ahsoftware.net Tue Jan 3 21:14:36 2012 From: mwieder at ahsoftware.net (Mark Wieder) Date: Tue, 3 Jan 2012 18:14:36 -0800 Subject: Simplest method for determining "changes made" on a form/card In-Reply-To: References: <4F03786E.20304@hindu.org> <4F037D59.9080203@hyperactivesw.com> <8551109C-4AB4-4519-9909-41A5EA4D2922@twft.com> <4F0388F5.60909@hyperactivesw.com> Message-ID: <19971635859.20120103181436@ahsoftware.net> Pete- Tuesday, January 3, 2012, 4:56:17 PM, you wrote: > "focus on nothing" Yeah- that's what I've been doing all day... -- -Mark Wieder mwieder at ahsoftware.net From roger.e.eller at sealedair.com Tue Jan 3 21:24:03 2012 From: roger.e.eller at sealedair.com (Roger Eller) Date: Tue, 3 Jan 2012 21:24:03 -0500 Subject: Windows Standalone Does Not Have an App Menu In-Reply-To: <3571444109.20120103181124@ahsoftware.net> References: <51B414F6-C718-4685-8487-60F5777ED449@videotron.ca> <3571444109.20120103181124@ahsoftware.net> Message-ID: On Tue, Jan 3, 2012 at 9:11 PM, Mark Wieder wrote: > Roger- > > Tuesday, January 3, 2012, 12:51:51 PM, you wrote: > > > Without decorations, your app is a ghost (sort of). It will only show in > > the taskbar (windows dock) when decorations are visible. You can make a > > small button with "quit" in a mouseUp handler, or instruct the user to > > press Alt-F4 to quit the app. > > Or just make an app *with* decorations. The conventions are there for > a reason, and they both promote and meet user expectations. > > -- > -Mark Wieder > mwieder at ahsoftware.net That is certainly the easiest way. It is still odd to me that RunRev does not to show a running app in the taskbar when it has no decorations. Older versions of Revolution (way back in 2.x) would still show the program running. Also strange is that an App menu was auto generated in 5.0.1 (Mac-like), then removed in 5.0.2, according to the OP. I have not tested this. ?Roger From pete at mollysrevenge.com Tue Jan 3 21:34:37 2012 From: pete at mollysrevenge.com (Pete) Date: Tue, 3 Jan 2012 18:34:37 -0800 Subject: Simplest method for determining "changes made" on a form/card In-Reply-To: <19971635859.20120103181436@ahsoftware.net> References: <4F03786E.20304@hindu.org> <4F037D59.9080203@hyperactivesw.com> <8551109C-4AB4-4519-9909-41A5EA4D2922@twft.com> <4F0388F5.60909@hyperactivesw.com> <19971635859.20120103181436@ahsoftware.net> Message-ID: What was that again?.... On Tue, Jan 3, 2012 at 6:14 PM, Mark Wieder wrote: > Pete- > > Tuesday, January 3, 2012, 4:56:17 PM, you wrote: > > > "focus on nothing" > > Yeah- that's what I've been doing all day... > > -- > -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 > > -- Pete Molly's Revenge From mike at doub.com Wed Jan 4 07:07:17 2012 From: mike at doub.com (Michael Doub) Date: Wed, 4 Jan 2012 07:07:17 -0500 Subject: IOS scroller bounce unhides another control Message-ID: I have see a behaviour on some IOS apps that I am trying to figure out if it can be done in livecode. It looks like there is a control attached to the top of a scrolling list field and it is exposed when the scrolling list field is bounced. You can watch the bounce and see the other control. If you pull the scrolling list down the other control slides down as it is was hidden under the navbar. Can this be done in livecode and if so does and one have an example of how to implement this behaviour or have a strategy for how it could be accomplished? -= Mike From mike at doub.com Wed Jan 4 07:17:58 2012 From: mike at doub.com (Michael Doub) Date: Wed, 4 Jan 2012 07:17:58 -0500 Subject: IOS scroller bounce unhides another control In-Reply-To: References: Message-ID: Sorry folks my typing is terrible... > I have seen a behaviour on some IOS apps that I am trying to figure out if it can be done in livecode. It looks like there is a control attached to the top of a scrolling list field and it is exposed when the scrolling list field is bounced. You can watch the bounce and see the other control. If you pull the scrolling list down the other control slides down as it is was hidden under the navbar. > > Can this be done in livecode and if so does anyone have an example of how to implement this behaviour or have a strategy for how it could be accomplished? > > -= Mike From Kresten.Bjerg at psy.ku.dk Wed Jan 4 08:17:56 2012 From: Kresten.Bjerg at psy.ku.dk (Kresten Bjerg) Date: Wed, 4 Jan 2012 14:17:56 +0100 Subject: Ways to get the IDs of two already scripted buttons? Message-ID: <8962F0E4BD055148AA4051D91F7EB4A90900C33AB5@IBTMAIL2A.ibt.ku.dk.ad> Thanks to all of you for questions and suggestions. Bob : unfortunately no, user shall not have to specify names of buttons Craig: no, button scripts shall not have to be pre-modified, they are of several kinds, scripted by stack handlers Mike: I have been experimenting a lot with your script, it works with unscripted buttons, but not with scripted buttons. Also demands button name to be specific. Placement in card script awkward: a diary with new card every day. Mark: suggestion of front-script goes far over my head. If it were something which could enable a lineconnect-handler to select two arbitrary (grouped) buttons and lineconnect them, avoiding activating their scripts it sounds interesting, but I guess such front-script should be both inserted and removed by the lineconnect handler. But I am still wondering why getting two (grouped and scripted) button IDs through ALT-clicking shall be so complicated ??? From m.schonewille at economy-x-talk.com Wed Jan 4 09:19:55 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 4 Jan 2012 15:19:55 +0100 Subject: IOS scroller bounce unhides another control In-Reply-To: References: Message-ID: <21C5CDC6-0489-478F-9133-C3C9B4078260@economy-x-talk.com> Hi Mike, Just put the control at the top of the group and set the scroll of the group to the the height of the control. When the user pulls down the group, the scroll value will be 0 and that's when you know an action needs to be performed. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! On 4 jan 2012, at 13:17, Michael Doub wrote: > Sorry folks my typing is terrible... > >> I have seen a behaviour on some IOS apps that I am trying to figure out if it can be done in livecode. It looks like there is a control attached to the top of a scrolling list field and it is exposed when the scrolling list field is bounced. You can watch the bounce and see the other control. If you pull the scrolling list down the other control slides down as it is was hidden under the navbar. >> >> Can this be done in livecode and if so does anyone have an example of how to implement this behaviour or have a strategy for how it could be accomplished? >> >> -= Mike From m.schonewille at economy-x-talk.com Wed Jan 4 09:25:09 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 4 Jan 2012 15:25:09 +0100 Subject: Installer Maker 33% OFF Message-ID: <7C4302EE-A218-452B-95CE-C6745337D91E@economy-x-talk.com> Hi, Plimus told me that the coupon code 33OFF should be working correctly now. If you still encounter problems, please contact me off-list and we'll find a solution. Today and tomorrow, you can purchase a license for Installer Maker Plugin with a 33% discount. Go to http://qery.us/za and use the Plimus button to make the purchase. Use the coupon code 33OFF. I hope this compensates sufficiently for Plimus' failure on the 2nd of January. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! From mazzapaoloitaly at gmail.com Wed Jan 4 09:43:33 2012 From: mazzapaoloitaly at gmail.com (paolo mazza) Date: Wed, 4 Jan 2012 15:43:33 +0100 Subject: Take a picture iPhone camera In-Reply-To: References: <4818F900-D8AD-489A-9F4D-CED37F440CA0@gmail.com> <40E30F11-B76E-4EAC-B527-49FBE5D0AC80@gmail.com> Message-ID: Hi all, still I do not know hot to click the button of the camera in order to take the picture automatically. Then, using this script in a button of a iOS App ... on mouseUp iPhonePickPhoto camera put the long ID of the last image of this card into NUMEROIMMLONG iphoneExportImageToAlbum NUMEROIMMLONG delete NUMEROIMMLONG if the result is not empty then answer the result else answer "OK" end if end mouseUp ... at the end of the process I get tha picture saved in the camera roll folder but ... 1 - the picture is 90? turned right (I took a "portrait" picture and I got a landscape picture) 2 - the "delete" command works in the IDE but it does not work in the iPhone Any idea? Thanks a lot Paolo From livfoss at mac.com Wed Jan 4 10:02:10 2012 From: livfoss at mac.com (Graham Samuel) Date: Wed, 04 Jan 2012 16:02:10 +0100 Subject: OT: Starting IOS development, can't upgrade Xcode/IOS Message-ID: <3F518B97-B7C1-4B93-93BC-4BB3552679D5@mac.com> Sorry for the interruption, but many months after signing up for IOS development I have time to start building my first IOS app with LiveCode. I have the necessary licences from Apple and RunRev, and I already have a version of XCode and all developer tools on my Mac, which is running the latest version of Lion. However, I know via emails from Apple emails that I don't have the latest version of XCode itself. This is where the problem comes in: I can't upgrade from the XCode I have now (4.1) to the most recent one (4.3) with an up-to-date IOS kit, because when I follow the Apple download links, they lead me to the App Store which then tells me I can't download because I already have XCode! It suggests I upgrade via Software Update, but that tells me that all my Mac apps are up to date. SU acknowledges the existence of XCode (in two parts) installed in October and something called XCode Install Assistant which I can't find, but doesn't give a version number. Finally I found an app called "Install XCode" and ran it - it said it was "updating files", but after it had finished working (it took a long time and in fact I did it twice), I still don't have any IOS 5 files and the version of XCode in my Developer directory is still 4.1. After all that 'updating', I get this report from System Information: Developer Information: Version: 4.1 (4B110) Location: /Developer Applications: Xcode: 4.1 (516) Instruments: 4.1 (4138) Dashcode: 3.0.2 (336) SDKs: Mac OS X: 10.6: (10J567) 10.7: (11A511a) iPhone OS: 4.3: (8H7) iPhone Simulator: 4.3: (8H7) I definitely do not have anything to do with IOS 5 in my Developer directory, so I'm stuck - LiveCode wants me to tell it where the developer root for IOS 5 is on my Mac, but it isn't anywhere! I really have no idea what's going wrong. Maybe I should uninstall all my Developer directory and start again, but that seems crazy. Please can someone help me? I just can't get started. TIA Graham From coiin at verizon.net Wed Jan 4 10:35:47 2012 From: coiin at verizon.net (Colin Holgate) Date: Wed, 04 Jan 2012 10:35:47 -0500 Subject: OT: Starting IOS development, can't upgrade Xcode/IOS In-Reply-To: <3F518B97-B7C1-4B93-93BC-4BB3552679D5@mac.com> References: <3F518B97-B7C1-4B93-93BC-4BB3552679D5@mac.com> Message-ID: <26E3EE09-EA7D-416B-8827-DAC646134624@verizon.net> Try duplicating your Developer folder, rename the duplicate to something like Developer 4.1, delete the original Developer folder, and the try the App Store install of 4.3. At the end of that you can hopefully point LiveCode to the 4.1 folder for the older SDKs, and the new Developer folder for the 4.3 and 5.0 SDKs. I think I've been told that the SDKs are backwards compatible. That is, you could throw out the old version and always build for 4.3 or 5.0, and the app should still work on devices running 4.0. But I haven't tested that. From ambassador at fourthworld.com Wed Jan 4 12:57:52 2012 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 04 Jan 2012 09:57:52 -0800 Subject: Error in mail list MBOX file format In-Reply-To: <1325290282717-4247238.post@n4.nabble.com> References: <1325290282717-4247238.post@n4.nabble.com> Message-ID: <4F049320.1090605@fourthworld.com> Alejandro Tejada wrote: > The software that is storing the mail from this list, > made two parsing errors in the mbox file. > > Download the file from: > http://lists.runrev.com/pipermail/use-livecode/2011-December.txt.gz > > The software failed to mark two instances where the word "From" > appears at the beginning of a line: > > http://en.wikipedia.org/wiki/Mbox > > "mboxo and mboxrd locate the message start by scanning for From lines > that are typically found in the e-mail message header. > If a "From " string occurs at the beginning of a line in either the headers > or the body of a message (unlikely for the former for correctly formatted > messages, but likely for the latter), the e-mail message must be modified > before the message is stored in an mbox mailbox file or the line will be > taken as a message boundary. This is typically done by prepending > a greater-than sign:" Good find. Given that RunRev uses what seems like standard list management software, I'm not sure how this happened. But it does indeed happen, more than a dozen times in the file you noted (mostly in quoted messages). This anomaly makes it difficult if not impossible to reliably parse the archives, so I'm cc'ing support at RunRev here to see if there may be a flag or other simple option to turn on the normal archive format. -- 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 tereza at califex.com Wed Jan 4 13:37:01 2012 From: tereza at califex.com (Tereza Snyder) Date: Wed, 4 Jan 2012 12:37:01 -0600 Subject: Simplest method for determining "changes made" on a form/card In-Reply-To: <4F03786E.20304@hindu.org> References: <4F03786E.20304@hindu.org> Message-ID: <5FD8E5EC-1728-40D9-B53B-60ABAE1C041C@califex.com> Here?s what I would try: Assuming you have a handler that takes the data from your database and distributes it to the controls on the card, and another that gathers the data from the card to stow it in the database, I?d compute an MD5digest of the data in the first handler, and create another MD5digest from the gathered card data in the second handler. If the two don?t match, the data has changed, and I?d ask the user "?save changes??". t On Jan 3, 2012, at 3:51 PM, Sivakatirswami wrote: > Without scripting every field, if you have a data entry system with multiple fields, and you want to flag the user that he or she made a change but did not save before click "next" or "Previous" to go to another record... what would be the simplest method to check that the card was modified to then prompt the user "Do you want to save your changes?" > > Sivakatirswami -- Tereza Snyder Califex Software, Inc. From pete at mollysrevenge.com Wed Jan 4 14:18:35 2012 From: pete at mollysrevenge.com (Pete) Date: Wed, 4 Jan 2012 11:18:35 -0800 Subject: Carriage Return in datagrid data In-Reply-To: References: Message-ID: In my haste to implement this, I realised I do not know how to define ascii characters to LC! Is there a function or a numeric notation to do that? Thanks Pete On Mon, Jan 2, 2012 at 5:28 PM, stephen barncard < stephenREVOLUTION2 at barncard.com> wrote: > replace return with VT (vertical tab) ascii 11; do the reverse for display > in a field. VT was the "returns-in-field" line delimiter for Filemaker. > URLEncode/Decode can put data on one line too. > > On 2 January 2012 17:20, Pete wrote: > > > Wondering if anyone has a good technique for dealing with carriage > returns > > within data loaded into a datagrid column? The dg takes the cr as the > end > > of the row which messes up the datagrid pretty badly. Seems like there's > > no alternative but to replace the cr with some displayable character but > > maybe there's another way? > > > > > > -- > > 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 > > > > > > -- > > > > 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 > > -- Pete Molly's Revenge From bonnmike at gmail.com Wed Jan 4 14:28:32 2012 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 4 Jan 2012 12:28:32 -0700 Subject: Carriage Return in datagrid data In-Reply-To: References: Message-ID: Are you setting your data using dgtext? If so you might change your method so that you can set the dgdata instead. Put your data into an array with the first key designating the row. So simplest form, if you have say.. a few paragraphs of txt you want to put into your datagrid put mydata into tdataA[1]["thetextWithReturns"] Using dgData rather than dgText kinda makes having cr's in the data a moot point. dgtext goes by rows, dgData goes by the toplevel numeric index key. To work with existing data you can use dgdataofline and dgdataofindex On Wed, Jan 4, 2012 at 12:18 PM, Pete wrote: > In my haste to implement this, I realised I do not know how to define ascii > characters to LC! Is there a function or a numeric notation to do that? > Thanks > Pete > > On Mon, Jan 2, 2012 at 5:28 PM, stephen barncard < > stephenREVOLUTION2 at barncard.com> wrote: > > > replace return with VT (vertical tab) ascii 11; do the reverse for > display > > in a field. VT was the "returns-in-field" line delimiter for Filemaker. > > URLEncode/Decode can put data on one line too. > > > > On 2 January 2012 17:20, Pete wrote: > > > > > Wondering if anyone has a good technique for dealing with carriage > > returns > > > within data loaded into a datagrid column? The dg takes the cr as the > > end > > > of the row which messes up the datagrid pretty badly. Seems like > there's > > > no alternative but to replace the cr with some displayable character > but > > > maybe there's another way? > > > > > > > > > -- > > > 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 > > > > > > > > > > > -- > > > > > > > > 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 > > > > > > > -- > 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 Mike at Doub.com Wed Jan 4 14:36:04 2012 From: Mike at Doub.com (Michael Doub) Date: Wed, 4 Jan 2012 14:36:04 -0500 Subject: IOS scroller bounce unhides another control In-Reply-To: <21C5CDC6-0489-478F-9133-C3C9B4078260@economy-x-talk.com> References: <21C5CDC6-0489-478F-9133-C3C9B4078260@economy-x-talk.com> Message-ID: So lets stay that I have a control called "Foo" and I am using a datagrid named "PeopleList" I normally would do the following to set up the scroller: iphoneControlCreate "scroller" put the result into sScrollerId iphoneControlSet sScrollerId, "rect", the rect of group "PeopleList" put the rect of group "PeopleList" into temp put the dgFormattedHeight of group "PeopleList" into item 4 of temp iphoneControlSet sScrollerId, "contentRect", temp on scrollerDidScroll pOffsetX, pOffsetY lock screen; set the dgVScroll of group "PeopleList" to pOffsetY; unlock screen end scrollerDidScroll Your saying that I should include both "Foo" and "PeopleList" together inside of an encompassing group, let's call it "Boo" Still use the rect of the group "PeopleList" for the scroller rect but set the content rect to (the dgFormattedHeight of group "PeopleList" + the height of group "foo". Are you suggesting that it is necessary to switch between scrolling "PeopleList" and "Boo' with a single scroller? on scrollerDidScroll pOffsetX, pOffsetY lock screen; if pOffset > the height of group "Foo" then set the vScroll of group "Boo" to the height of group "Foo" set the dgVScroll of group "PeopleList" to pOffsetY - the height of group "Foo"; else set the dgVScroll of group "PeopleList" to 0 set the vScroll of group "Boo" to pOffset unlock screen end scrollerDidScroll Am I understanding this correctly? -= Mike On 2012-01-04, at 9:19 AM, Mark Schonewille wrote: > Hi Mike, > > Just put the control at the top of the group and set the scroll of the group to the the height of the control. When the user pulls down the group, the scroll value will be 0 and that's when you know an action needs to be performed. > > -- From mike at doub.com Wed Jan 4 14:40:23 2012 From: mike at doub.com (Michael Doub) Date: Wed, 4 Jan 2012 14:40:23 -0500 Subject: Carriage Return in datagrid data In-Reply-To: References: Message-ID: I agree with Mike that arrays are easier to work with but to answer your question put numtochar(11) into VT replace return with VT in whatever On 2012-01-04, at 2:28 PM, Mike Bonner wrote: > Are you setting your data using dgtext? If so you might change your method > so that you can set the dgdata instead. Put your data into an array with > the first key designating the row. > > So simplest form, if you have say.. a few paragraphs of txt you want to put > into your datagrid > > put mydata into tdataA[1]["thetextWithReturns"] > > Using dgData rather than dgText kinda makes having cr's in the data a moot > point. dgtext goes by rows, dgData goes by the toplevel numeric index key. > > To work with existing data you can use dgdataofline and dgdataofindex > > On Wed, Jan 4, 2012 at 12:18 PM, Pete wrote: > >> In my haste to implement this, I realised I do not know how to define ascii >> characters to LC! Is there a function or a numeric notation to do that? >> Thanks >> Pete >> >> On Mon, Jan 2, 2012 at 5:28 PM, stephen barncard < >> stephenREVOLUTION2 at barncard.com> wrote: >> >>> replace return with VT (vertical tab) ascii 11; do the reverse for >> display >>> in a field. VT was the "returns-in-field" line delimiter for Filemaker. >>> URLEncode/Decode can put data on one line too. >>> >>> On 2 January 2012 17:20, Pete wrote: >>> >>>> Wondering if anyone has a good technique for dealing with carriage >>> returns >>>> within data loaded into a datagrid column? The dg takes the cr as the >>> end >>>> of the row which messes up the datagrid pretty badly. Seems like >> there's >>>> no alternative but to replace the cr with some displayable character >> but >>>> maybe there's another way? >>>> >>>> >>>> -- >>>> 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 >>>> >>> >>> >>> >>> -- >>> >>> >>> >>> 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 >>> >>> >> >> >> -- >> 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 >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jan 4 14:51:22 2012 From: pete at mollysrevenge.com (Pete) Date: Wed, 4 Jan 2012 11:51:22 -0800 Subject: Carriage Return in datagrid data In-Reply-To: References: Message-ID: Hi Mike, I am using dgText but will try using dgData. Have you tried this? I'm curious as to how the data looks in the datagrid column. I'm using a dg table with a fixed line height so I'm guessing everything after the first return won't be visible? Pete On Wed, Jan 4, 2012 at 11:28 AM, Mike Bonner wrote: > Are you setting your data using dgtext? If so you might change your method > so that you can set the dgdata instead. Put your data into an array with > the first key designating the row. > > So simplest form, if you have say.. a few paragraphs of txt you want to put > into your datagrid > > put mydata into tdataA[1]["thetextWithReturns"] > > Using dgData rather than dgText kinda makes having cr's in the data a moot > point. dgtext goes by rows, dgData goes by the toplevel numeric index key. > > To work with existing data you can use dgdataofline and dgdataofindex > > On Wed, Jan 4, 2012 at 12:18 PM, Pete wrote: > > > In my haste to implement this, I realised I do not know how to define > ascii > > characters to LC! Is there a function or a numeric notation to do that? > > Thanks > > Pete > > > > On Mon, Jan 2, 2012 at 5:28 PM, stephen barncard < > > stephenREVOLUTION2 at barncard.com> wrote: > > > > > replace return with VT (vertical tab) ascii 11; do the reverse for > > display > > > in a field. VT was the "returns-in-field" line delimiter for Filemaker. > > > URLEncode/Decode can put data on one line too. > > > > > > On 2 January 2012 17:20, Pete wrote: > > > > > > > Wondering if anyone has a good technique for dealing with carriage > > > returns > > > > within data loaded into a datagrid column? The dg takes the cr as > the > > > end > > > > of the row which messes up the datagrid pretty badly. Seems like > > there's > > > > no alternative but to replace the cr with some displayable character > > but > > > > maybe there's another way? > > > > > > > > > > > > -- > > > > 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 > > > > > > > > > > > > > > > > -- > > > > > > > > > > > > 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 > > > > > > > > > > > > -- > > 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 gregory.lypny at videotron.ca Wed Jan 4 15:26:51 2012 From: gregory.lypny at videotron.ca (Gregory Lypny) Date: Wed, 04 Jan 2012 15:26:51 -0500 Subject: Windows Standalone Does Not Have an App Menu In-Reply-To: References: Message-ID: <9FB72409-3BB7-45B5-80A7-61D1A7F5D9C5@videotron.ca> Hello Roger and Mark, Thanks for responding and clarifying the Windows app question for me. Mark, I have no problem including decorations. If this is a convention on Windows, that is, that an app menu does not appear when a modal window is frontmost, so that the user cannot quit or cannot know that the app is running if they have switched workspaces, then I don?t see how it promotes or meets expectations. If I can start something up, I expect that I should be able to see how to shut it down. Gregory On Wed, Jan 4, 2012, at 1:00 PM, use-livecode-request at lists.runrev.com wrote: > That is certainly the easiest way. It is still odd to me that RunRev does > not to show a running app in the taskbar when it has no decorations. Older > versions of Revolution (way back in 2.x) would still show the program > running. Also strange is that an App menu was auto generated in 5.0.1 > (Mac-like), then removed in 5.0.2, according to the OP. I have not tested > this. > > ?Roger From m.schonewille at economy-x-talk.com Wed Jan 4 15:32:46 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 4 Jan 2012 21:32:46 +0100 Subject: IOS scroller bounce unhides another control In-Reply-To: References: <21C5CDC6-0489-478F-9133-C3C9B4078260@economy-x-talk.com> Message-ID: <47763DF5-8F28-4F78-B7ED-8997E2C759FC@economy-x-talk.com> Hi Mike, If you set the height of the field to it's formattedHeight then you only need to scroll the group. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! On 4 jan 2012, at 20:36, Michael Doub wrote: > So lets stay that I have a control called "Foo" and I am using a datagrid named "PeopleList" > > I normally would do the following to set up the scroller: > iphoneControlCreate "scroller" > put the result into sScrollerId > iphoneControlSet sScrollerId, "rect", the rect of group "PeopleList" > put the rect of group "PeopleList" into temp > put the dgFormattedHeight of group "PeopleList" into item 4 of temp > iphoneControlSet sScrollerId, "contentRect", temp > > on scrollerDidScroll pOffsetX, pOffsetY > lock screen; set the dgVScroll of group "PeopleList" to pOffsetY; unlock screen > end scrollerDidScroll > > Your saying that I should include both "Foo" and "PeopleList" together inside of an encompassing group, let's call it "Boo" > Still use the rect of the group "PeopleList" for the scroller rect but set the content rect to > (the dgFormattedHeight of group "PeopleList" + the height of group "foo". > > Are you suggesting that it is necessary to switch between scrolling "PeopleList" and "Boo' with a single scroller? > > on scrollerDidScroll pOffsetX, pOffsetY > lock screen; > if pOffset > the height of group "Foo" then > set the vScroll of group "Boo" to the height of group "Foo" > set the dgVScroll of group "PeopleList" to pOffsetY - the height of group "Foo"; > else > set the dgVScroll of group "PeopleList" to 0 > set the vScroll of group "Boo" to pOffset > unlock screen > end scrollerDidScroll > > Am I understanding this correctly? > > -= Mike > > > On 2012-01-04, at 9:19 AM, Mark Schonewille wrote: > >> Hi Mike, >> >> Just put the control at the top of the group and set the scroll of the group to the the height of the control. When the user pulls down the group, the scroll value will be 0 and that's when you know an action needs to be performed. >> >> -- > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mike at doub.com Wed Jan 4 16:15:03 2012 From: mike at doub.com (Michael Doub) Date: Wed, 4 Jan 2012 16:15:03 -0500 Subject: IOS scroller bounce unhides another control In-Reply-To: <47763DF5-8F28-4F78-B7ED-8997E2C759FC@economy-x-talk.com> References: <21C5CDC6-0489-478F-9133-C3C9B4078260@economy-x-talk.com> <47763DF5-8F28-4F78-B7ED-8997E2C759FC@economy-x-talk.com> Message-ID: Sorry Mark I am confused. Which group? We have 3 groups in play. PeopleList(datagrid), Foo(the hidden control) and Boo the group that includes both Foo and PeopleList. If we are setting the HScroll of Boo, how does the datagrid scroll? Are you saying that Foo is somehow added to the PeopleList datagrid? Do you happen to have a simple example? On 2012-01-04, at 3:32 PM, Mark Schonewille wrote: > Hi Mike, > > If you set the height of the field to it's formattedHeight then you only need to scroll the group. > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! > > On 4 jan 2012, at 20:36, Michael Doub wrote: > >> So lets stay that I have a control called "Foo" and I am using a datagrid named "PeopleList" >> >> I normally would do the following to set up the scroller: >> iphoneControlCreate "scroller" >> put the result into sScrollerId >> iphoneControlSet sScrollerId, "rect", the rect of group "PeopleList" >> put the rect of group "PeopleList" into temp >> put the dgFormattedHeight of group "PeopleList" into item 4 of temp >> iphoneControlSet sScrollerId, "contentRect", temp >> >> on scrollerDidScroll pOffsetX, pOffsetY >> lock screen; set the dgVScroll of group "PeopleList" to pOffsetY; unlock screen >> end scrollerDidScroll >> >> Your saying that I should include both "Foo" and "PeopleList" together inside of an encompassing group, let's call it "Boo" >> Still use the rect of the group "PeopleList" for the scroller rect but set the content rect to >> (the dgFormattedHeight of group "PeopleList" + the height of group "foo". >> >> Are you suggesting that it is necessary to switch between scrolling "PeopleList" and "Boo' with a single scroller? >> >> on scrollerDidScroll pOffsetX, pOffsetY >> lock screen; >> if pOffset > the height of group "Foo" then >> set the vScroll of group "Boo" to the height of group "Foo" >> set the dgVScroll of group "PeopleList" to pOffsetY - the height of group "Foo"; >> else >> set the dgVScroll of group "PeopleList" to 0 >> set the vScroll of group "Boo" to pOffset >> unlock screen >> end scrollerDidScroll >> >> Am I understanding this correctly? >> >> -= Mike >> >> >> On 2012-01-04, at 9:19 AM, Mark Schonewille wrote: >> >>> Hi Mike, >>> >>> Just put the control at the top of the group and set the scroll of the group to the the height of the control. When the user pulls down the group, the scroll value will be 0 and that's when you know an action needs to be performed. >>> >>> -- >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 ambassador at fourthworld.com Wed Jan 4 16:24:54 2012 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 04 Jan 2012 13:24:54 -0800 Subject: Windows Standalone Does Not Have an App Menu In-Reply-To: <9FB72409-3BB7-45B5-80A7-61D1A7F5D9C5@videotron.ca> References: <9FB72409-3BB7-45B5-80A7-61D1A7F5D9C5@videotron.ca> Message-ID: <4F04C3A6.5070804@fourthworld.com> Gregory Lypny wrote: > If this is a convention on Windows, that is, that an app menu does > not appear when a modal window is frontmost, so that the user cannot > quit or cannot know that the app is running if they have switched > workspaces, then I don?t see how it promotes or meets expectations. Standard windows provide the standard behavior. Custom windows require custom solutions, such as changing the app's style when it's minimized so it'll appear in the Task Bar. > If I can start something up, I expect that I should be able to see > how to shut it down. A developer choosing non-standard windows may be required to provide non-standard ways to shut the app down. This could include Control-Alt-Delete, but more conveniently you could add your own controls for that. -- 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 mike at doub.com Wed Jan 4 17:05:05 2012 From: mike at doub.com (Michael Doub) Date: Wed, 4 Jan 2012 17:05:05 -0500 Subject: Carriage Return in datagrid data In-Reply-To: References: Message-ID: <816E448F-1375-46FA-ACE9-2EFEF86AA9D3@doub.com> Let say we have a variable Contacts where each line has 4 tab delimited fields: RecID, Name, Age, BirthDay The following builds the dgData array. The first index controls the order of what is displayed in the datagrid. If you look closely you will see that it[Counter] = pDataArray that you deal with in the Row Behaviour script. Hope this helps, Mike Global Contacts on openCard local x; local Counter; put 1 into counter put empty into it set itemdel to tab repeat for each line x in Contacts put item 1 of x into it[Counter]["RecID"] put item 2 of x into it[Counter]["Name"] put item 3 of x into it[Counter]["Age"] put item 4 of x into it[Counter]["Birthday"] add 1 to counter end repeat set the dgData of group "SetGroup" to it From jacque at hyperactivesw.com Wed Jan 4 18:42:32 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 04 Jan 2012 17:42:32 -0600 Subject: Windows Standalone Does Not Have an App Menu In-Reply-To: <9FB72409-3BB7-45B5-80A7-61D1A7F5D9C5@videotron.ca> References: <9FB72409-3BB7-45B5-80A7-61D1A7F5D9C5@videotron.ca> Message-ID: <4F04E3E8.4000903@hyperactivesw.com> On 1/4/12 2:26 PM, Gregory Lypny wrote: > Hello Roger and Mark, > > Thanks for responding and clarifying the Windows app question for me. > Mark, I have no problem including decorations. If this is a > convention on Windows, that is, that an app menu does not appear when > a modal window is frontmost, so that the user cannot quit or cannot > know that the app is running if they have switched workspaces, then I > don?t see how it promotes or meets expectations. If I can start > something up, I expect that I should be able to see how to shut it > down. I actually depend on this behavior, which has been around forever. When my app is open, I don't want all its palettes and extra windows scattered across the task bar, I only want a single unified app icon there. I can control that by making my primary stack a toplevel window, and making all the others palettes or modeless windows. In a sense, palettes and modeless windows aren't really "frontmost" anyway. If there is even a single toplevel window, it is automatically the defaultstack and gets all messages as though it were in front. The engine expands on that idea by only placing toplevel windows into the task bar. You could probably keep the original window without decorations, and open a tiny toplevel window offscreen. That one would show in the task bar and could be used to respond to user actions there. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at mollysrevenge.com Wed Jan 4 18:48:40 2012 From: pete at mollysrevenge.com (Pete) Date: Wed, 4 Jan 2012 15:48:40 -0800 Subject: Carriage Return in datagrid data In-Reply-To: <816E448F-1375-46FA-ACE9-2EFEF86AA9D3@doub.com> References: <816E448F-1375-46FA-ACE9-2EFEF86AA9D3@doub.com> Message-ID: Hi Mike, Thanks, yes I'm familiar with using dgData - it was how the data looks in the datagrid that I wasn't sure of. I did an experiment with a single column datagrid, loading some text plus a carriage return, plus more text into via dgData. What happens is that all of the text after the carriage return gets lost because of the fixed row height of the datagrid (it's still there of course, just can't see it). On the other hand, if I use the VT character to replace the carriage return, the text is visible in the datagrid column (at least up to its width) and I see the VT character in the string. Hope that makes sense. Basically if the text is abc def ghi ...then leaving the returns in there shows me only "abc" but using the VY character shows me "abcdefghi" so all the data is visible. I could increase the row height of course but not all the rows I'm displaying will have carriage returns in them so would be wasting some datagrid space. Either way, I probably will convert to using dgData instead of dgText. I kinda prefer using dgData but it's just an extra step to convert what comes back from the database into an array when it's already in dgText format. Pete On Wed, Jan 4, 2012 at 2:05 PM, Michael Doub wrote: > > Let say we have a variable Contacts where each line has 4 tab delimited > fields: RecID, Name, Age, BirthDay > The following builds the dgData array. The first index controls the order > of what is displayed in the datagrid. > If you look closely you will see that it[Counter] = pDataArray that you > deal with in the Row Behaviour script. > > Hope this helps, > Mike > > > Global Contacts > on openCard > local x; > local Counter; put 1 into counter > put empty into it > set itemdel to tab > repeat for each line x in Contacts > put item 1 of x into it[Counter]["RecID"] > put item 2 of x into it[Counter]["Name"] > put item 3 of x into it[Counter]["Age"] > put item 4 of x into it[Counter]["Birthday"] > add 1 to counter > end repeat > set the dgData of group "SetGroup" to 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 > > -- Pete Molly's Revenge From bobs at twft.com Wed Jan 4 19:43:15 2012 From: bobs at twft.com (Bob Sneidar) Date: Wed, 4 Jan 2012 16:43:15 -0800 Subject: Carriage Return in datagrid data In-Reply-To: References: <816E448F-1375-46FA-ACE9-2EFEF86AA9D3@doub.com> Message-ID: <010A11CA-5BC4-4DB4-85B7-2A7EF3055E29@twft.com> Hi Pete. I know I have mentioned it before, but sqlYoga can return query data in the array format that datagrids use. Bob On Jan 4, 2012, at 3:48 PM, Pete wrote: > Either way, I probably will convert to using dgData instead of dgText. I > kinda prefer using dgData but it's just an extra step to convert what comes > back from the database into an array when it's already in dgText format. > > Pete From bobs at twft.com Wed Jan 4 19:47:15 2012 From: bobs at twft.com (Bob Sneidar) Date: Wed, 4 Jan 2012 16:47:15 -0800 Subject: Graphical Calendar Object Revisited Message-ID: <9FAA2D0A-7922-4A8B-8585-9A1F7AC6C900@twft.com> Hi all. I know I have mentioned it before, but does anyone know of a graphical calendar object BESIDES CalendarPane that I could use with Livecode? Calendarpane has proven to be almost impossible for me to customize, as it was really written to do one thing and that is show a single date on one or more calendar panes. I need to show date ranges and because of the way that CalendarPane was written, I would really have to pull everything apart and start over and I simply do not have to time or patience for that. I could even use some kind of web object embedded in a browser object, if it functioned like I want. Bob From mike at doub.com Wed Jan 4 20:08:35 2012 From: mike at doub.com (mike at doub.com) Date: Thu, 5 Jan 2012 01:08:35 +0000 Subject: Carriage Return in datagrid data In-Reply-To: References: <816E448F-1375-46FA-ACE9-2EFEF86AA9D3@doub.com> Message-ID: <1852974652-1325725716-cardhu_decombobulator_blackberry.rim.net-316062036-@b27.c31.bise6.blackberry> Pete, take a look at the datagrid tutorials. If I recall correctly there are explanations and examples for how to manage non-fixed height rows of a datagrid. Sent from my BlackBerry device on the Rogers Wireless Network -----Original Message----- From: Pete Sender: use-livecode-bounces at lists.runrev.com Date: Wed, 4 Jan 2012 15:48:40 To: How to use LiveCode Reply-To: How to use LiveCode Subject: Re: Carriage Return in datagrid data Hi Mike, Thanks, yes I'm familiar with using dgData - it was how the data looks in the datagrid that I wasn't sure of. I did an experiment with a single column datagrid, loading some text plus a carriage return, plus more text into via dgData. What happens is that all of the text after the carriage return gets lost because of the fixed row height of the datagrid (it's still there of course, just can't see it). On the other hand, if I use the VT character to replace the carriage return, the text is visible in the datagrid column (at least up to its width) and I see the VT character in the string. Hope that makes sense. Basically if the text is abc def ghi ....then leaving the returns in there shows me only "abc" but using the VY character shows me "abcdefghi" so all the data is visible. I could increase the row height of course but not all the rows I'm displaying will have carriage returns in them so would be wasting some datagrid space. Either way, I probably will convert to using dgData instead of dgText. I kinda prefer using dgData but it's just an extra step to convert what comes back from the database into an array when it's already in dgText format. Pete On Wed, Jan 4, 2012 at 2:05 PM, Michael Doub wrote: > > Let say we have a variable Contacts where each line has 4 tab delimited > fields: RecID, Name, Age, BirthDay > The following builds the dgData array. The first index controls the order > of what is displayed in the datagrid. > If you look closely you will see that it[Counter] = pDataArray that you > deal with in the Row Behaviour script. > > Hope this helps, > Mike > > > Global Contacts > on openCard > local x; > local Counter; put 1 into counter > put empty into it > set itemdel to tab > repeat for each line x in Contacts > put item 1 of x into it[Counter]["RecID"] > put item 2 of x into it[Counter]["Name"] > put item 3 of x into it[Counter]["Age"] > put item 4 of x into it[Counter]["Birthday"] > add 1 to counter > end repeat > set the dgData of group "SetGroup" to 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 > > -- 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 scott at tactilemedia.com Wed Jan 4 20:24:42 2012 From: scott at tactilemedia.com (Scott Rossi) Date: Wed, 04 Jan 2012 17:24:42 -0800 Subject: Graphical Calendar Object Revisited In-Reply-To: <9FAA2D0A-7922-4A8B-8585-9A1F7AC6C900@twft.com> Message-ID: Sarah Reichelt created a great one that's available as a DropTool: http://droptools.sonsothunder.com/products/sr/sr-cal.irev Or from Sarah's site: http://troz.net/rev/stacks/Calendar.rev Regards, Scott Rossi Creative Director Tactile Media, UX Design Recently, Bob Sneidar wrote: > Hi all. > > I know I have mentioned it before, but does anyone know of a graphical > calendar object BESIDES CalendarPane that I could use with Livecode? > Calendarpane has proven to be almost impossible for me to customize, as it was > really written to do one thing and that is show a single date on one or more > calendar panes. I need to show date ranges and because of the way that > CalendarPane was written, I would really have to pull everything apart and > start over and I simply do not have to time or patience for that. > > I could even use some kind of web object embedded in a browser object, if it > functioned like I want. > > 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 martyknapp at comcast.net Wed Jan 4 20:25:03 2012 From: martyknapp at comcast.net (Marty Knapp) Date: Wed, 04 Jan 2012 17:25:03 -0800 Subject: Graphical Calendar Object Revisited In-Reply-To: <9FAA2D0A-7922-4A8B-8585-9A1F7AC6C900@twft.com> References: <9FAA2D0A-7922-4A8B-8585-9A1F7AC6C900@twft.com> Message-ID: <4F04FBEF.40708@comcast.net> Hey Bob, I'm not familiar with CalendarPane so maybe missing what you're looking for. I'll send you a date range stack that I have if it's of any use. Marty Knapp > Hi all. > > I know I have mentioned it before, but does anyone know of a graphical calendar object BESIDES CalendarPane that I could use with Livecode? Calendarpane has proven to be almost impossible for me to customize, as it was really written to do one thing and that is show a single date on one or more calendar panes. I need to show date ranges and because of the way that CalendarPane was written, I would really have to pull everything apart and start over and I simply do not have to time or patience for that. > > I could even use some kind of web object embedded in a browser object, if it functioned like I want. > > 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 mwieder at ahsoftware.net Wed Jan 4 20:51:08 2012 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 4 Jan 2012 17:51:08 -0800 Subject: Windows Standalone Does Not Have an App Menu In-Reply-To: <9FB72409-3BB7-45B5-80A7-61D1A7F5D9C5@videotron.ca> References: <9FB72409-3BB7-45B5-80A7-61D1A7F5D9C5@videotron.ca> Message-ID: <61156628500.20120104175108@ahsoftware.net> Gregory- Wednesday, January 4, 2012, 12:26:51 PM, you wrote: > If this is a convention on Windows This is a convention on any OS I'm aware of. > then I don?t see how it promotes or meets expectations. The expectation is your following sentence: > If I can start something up, I expect that I should be able to see > how to shut it down. If you remove the close button from the window then you have to supply something else for the user, no? As Richard and Jacque pointed out, if you create nonstandard OS windows you have to craft your own ways of handling them. A simple button that says "Close" or "Quit" or "Done" or something in the app would do the trick if you don't want to follow the standards. -- -Mark Wieder mwieder at ahsoftware.net From lan.kc.macmail at gmail.com Wed Jan 4 23:52:09 2012 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Thu, 5 Jan 2012 12:52:09 +0800 Subject: [BUG] 5.0.2 start-up anomaly - Btn Icons not displayed Message-ID: Folks, I'm experiencing a glitch with an old Rev stack since upgrading to 5.0.2. I've not seen anyone else report this so I assumed that it was just my set-up but I've since been able to reproduce the bug and it appears to be associated with Icons in buttons. With 5.0.1 and prior when starting my stack the LC splash screen comes up, then the IDE Tool Palette, then after the LC splash screen disappears my stack appears. Under 5.0.2 my stack appears before the Tool Palette and on top of the LC splash screen, which gives LC a nice zippy feel, but unfortunately two buttons (out of 26) are not displayed, which should be displayed and are displayed in all previous versions of Rev. The two buttons are a Previous and Next button, they are Transparent buttons with Rev supplied Icons. The other 24 are all Option buttons without Icons. To reproduce this problem: 1) create a new stack and place a couple of buttons. So far I've confirmed this with Standard, Rectangle and Transparent. 2) Open the Object inspector and select a different Icon from the "Standard Icons" library for each button. 3) For Transparent buttons unclick the showName property. (this is not necessary to confirm the bug, it's just more effective in making you think the button isn't there) 4) Save the stack 5) Quit LC 6) Start your newly created stack. On my machine none of the Icons are displayed. If you create a new card, then Go First, all the Icons will appear. Surely I can't be the only one that uses Icons in buttons? MBPro 17", OS X 10.6.8, LC 5.0.2 From jacque at hyperactivesw.com Wed Jan 4 23:52:36 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 04 Jan 2012 22:52:36 -0600 Subject: [OT:] Discount Ooma VoiP Message-ID: <4F052C94.1060505@hyperactivesw.com> I have five promotional discount coupons for Ooma VoiP hardware if anyone's interested. You get their Telo device for $190, a free bluetooth adapter, and free shipping. I've found Ooma to be reliable and way cheaper than any other VoiP service. You can also use it with mobile phones to get free calls. Write offlist if you're interested. The coupons have to be redeemed by Jan 31. US residents only. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Thu Jan 5 00:01:39 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 04 Jan 2012 23:01:39 -0600 Subject: [BUG] 5.0.2 start-up anomaly - Btn Icons not displayed In-Reply-To: References: Message-ID: <4F052EB3.3090400@hyperactivesw.com> On 1/4/12 10:52 PM, Kay C Lan wrote: > With 5.0.1 and prior when starting my stack the LC splash screen comes up, > then the IDE Tool Palette, then after the LC splash screen disappears my > stack appears. Under 5.0.2 my stack appears before the Tool Palette and on > top of the LC splash screen, which gives LC a nice zippy feel, but > unfortunately two buttons (out of 26) are not displayed, which should be > displayed and are displayed in all previous versions of Rev. It isn't just buttons, a few others have reported anomalies in the startup sequence with 5.0.2, and one of my own stacks is misbehaving too -- not with buttons, but with libraries loading. Something went awry with this build. Stacks are loading before all the IDE resources are available. You can bypass the issue if you start up the IDE first and then open your stack from the File menu. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From lan.kc.macmail at gmail.com Thu Jan 5 01:36:25 2012 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Thu, 5 Jan 2012 14:36:25 +0800 Subject: [BUG] 5.0.2 start-up anomaly - Btn Icons not displayed In-Reply-To: <4F052EB3.3090400@hyperactivesw.com> References: <4F052EB3.3090400@hyperactivesw.com> Message-ID: Thanks Jacque, I guess 5.0.3 will be out soon, till then it's easy to work around. On Thu, Jan 5, 2012 at 1:01 PM, J. Landman Gay wrote: > On 1/4/12 10:52 PM, Kay C Lan wrote: > > With 5.0.1 and prior when starting my stack the LC splash screen comes up, >> then the IDE Tool Palette, then after the LC splash screen disappears my >> stack appears. Under 5.0.2 my stack appears before the Tool Palette and on >> top of the LC splash screen, which gives LC a nice zippy feel, but >> unfortunately two buttons (out of 26) are not displayed, which should be >> displayed and are displayed in all previous versions of Rev. >> > > It isn't just buttons, a few others have reported anomalies in the startup > sequence with 5.0.2, and one of my own stacks is misbehaving too -- not > with buttons, but with libraries loading. Something went awry with this > build. Stacks are loading before all the IDE resources are available. > > You can bypass the issue if you start up the IDE first and then open your > stack from the File menu. > > -- > 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 scott at tactilemedia.com Thu Jan 5 02:02:37 2012 From: scott at tactilemedia.com (Scott Rossi) Date: Wed, 04 Jan 2012 23:02:37 -0800 Subject: [BUG] 5.0.2 start-up anomaly - Btn Icons not displayed Message-ID: You might want to try checking the ink effects you used on the buttons. ?The docs say all the old ink effects have been ?deprecated in v5. ?Perhaps referencing an old ink causes objects to display incorrectly. Regards, Scott Rossi Creative Director Tactile Media, UX Design -------- Original message -------- Subject: [BUG] 5.0.2 start-up anomaly - Btn Icons not displayed From: Kay C Lan To: How to use LiveCode CC: Folks, I'm experiencing a glitch with an old Rev stack since upgrading to 5.0.2. I've not seen anyone else report this so I assumed that it was just my set-up but I've since been able to reproduce the bug and it appears to be associated with Icons in buttons. With 5.0.1 and prior when starting my stack the LC splash screen comes up, then the IDE Tool Palette, then after the LC splash screen disappears my stack appears. Under 5.0.2 my stack appears before the Tool Palette and on top of the LC splash screen, which gives LC a nice zippy feel, but unfortunately two buttons (out of 26) are not displayed, which should be displayed and are displayed in all previous versions of Rev. The two buttons are a Previous and Next button, they are Transparent buttons with Rev supplied Icons. The other 24 are all Option buttons without Icons. To reproduce this problem: 1) create a new stack and place a couple of buttons. So far I've confirmed this with Standard, Rectangle and Transparent. 2) Open the Object inspector and select a different Icon from the "Standard Icons" library for each button. 3) For Transparent buttons unclick the showName property. (this is not necessary to confirm the bug, it's just more effective in making you think the button isn't there) 4) Save the stack 5) Quit LC 6) Start your newly created stack. On my machine none of the Icons are displayed. If you create a new card, then Go First, all the Icons will appear. Surely I can't be the only one that uses Icons in buttons? MBPro 17", OS X 10.6.8, LC 5.0.2 _______________________________________________ use-livecode mailing list use-livecode at 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 Thu Jan 5 03:59:38 2012 From: mazzapaoloitaly at gmail.com (paolo mazza) Date: Thu, 5 Jan 2012 09:59:38 +0100 Subject: Regular expression to find the date Message-ID: Hi All, I have to find the date in a text. If I use this Regular Expression, it finds the date (returns true) but it returns just the first chars of the date.. on mouseUp put "sfgsfg gsfgs g 05/01/2011 t trtr" into FULLTEXT put "((\d{2})|(\d))\/((\d{2})|(\d))\/((\d{4})|(\d{2}))" into MYSTRYNG put matchText(FULLTEXT,MYSTRYNG,VAR0) into MYRESULT put matchChunk(FULLTEXT,MYSTRYNG,VAR1, VAR2) into MYRESULT2 put MYRESULT && MYRESULT2 && VAR0 && VAR1 && VAR2 end mouseUp It returns "true true 05 16 17" instead of "true true 05/01/2011 16 25" then if I change the text to search ... on mouseUp put "sfgsfg gsfgs g 4/1/2011 t trtr" into FULLTEXT put "((\d{2})|(\d))\/((\d{2})|(\d))\/((\d{4})|(\d{2}))" into MYSTRYNG put matchText(FULLTEXT,MYSTRYNG,VAR0) into MYRESULT put matchChunk(FULLTEXT,MYSTRYNG,VAR1, VAR2) into MYRESULT2 put MYRESULT && MYRESULT2 && VAR0 && VAR1 && VAR2 end mouseUp It returns "true true 4 16 16" instead of "true true 4/1/2011 16 24" Why ? Any idea? All the best, Paolo Mazza From bdrunrev at gmail.com Thu Jan 5 05:23:08 2012 From: bdrunrev at gmail.com (Bernard Devlin) Date: Thu, 5 Jan 2012 10:23:08 +0000 Subject: Regular expression to find the date In-Reply-To: References: Message-ID: I just want to offer the simplest solution first. If there's a reason why this won't work, please say. put "sfgsfg gsfgs g 05/01/2011 t trtr" into tText repeat for each word tWord in tText if tWord is a date then put tWord & cr after tFound end repeat put tFound Maybe you are just looking to exeriment with regular expressions. But given your sample text and date format, the above works and will be readily readable when you return to in 6 months. Bernard On Thu, Jan 5, 2012 at 8:59 AM, paolo mazza wrote: > Hi All, > I have to find the date in a text. If I use this Regular Expression, > it finds the date (returns true) but it returns just the first chars > of the date.. > > on mouseUp > ? put "sfgsfg gsfgs g 05/01/2011 t trtr" into FULLTEXT > ? put "((\d{2})|(\d))\/((\d{2})|(\d))\/((\d{4})|(\d{2}))" into MYSTRYNG > ? put matchText(FULLTEXT,MYSTRYNG,VAR0) into MYRESULT > ? put matchChunk(FULLTEXT,MYSTRYNG,VAR1, VAR2) into MYRESULT2 > ? put MYRESULT && MYRESULT2 && VAR0 && VAR1 && VAR2 > end mouseUp > > It returns ?"true true 05 16 17" instead of "true true 05/01/2011 16 25" > > > then if I change the text to search ... > > on mouseUp > ? put "sfgsfg gsfgs g 4/1/2011 t trtr" into FULLTEXT > ? put "((\d{2})|(\d))\/((\d{2})|(\d))\/((\d{4})|(\d{2}))" into MYSTRYNG > ? put matchText(FULLTEXT,MYSTRYNG,VAR0) into MYRESULT > ? put matchChunk(FULLTEXT,MYSTRYNG,VAR1, VAR2) into MYRESULT2 > ? put MYRESULT && MYRESULT2 && VAR0 && VAR1 && VAR2 > end mouseUp > > It returns ?"true true 4 16 16" instead of "true true 4/1/2011 16 24" > > > Why ? Any idea? > > 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 From th.douez at gmail.com Thu Jan 5 05:24:59 2012 From: th.douez at gmail.com (Thierry Douez) Date: Thu, 5 Jan 2012 11:24:59 +0100 Subject: Regular expression to find the date In-Reply-To: References: Message-ID: Hi Paolo, I changed your regular expression; see below. Didn't check but should work. HTH Thierry 2012/1/5 paolo mazza > Hi All, > I have to find the date in a text. If I use this Regular Expression, > it finds the date (returns true) but it returns just the first chars > of the date.. > > on mouseUp > put "sfgsfg gsfgs g 05/01/2011 t trtr" into FULLTEXT > put "((\d{2})|(\d))\/((\d{2})|(\d))\/((\d{4})|(\d{2}))" into MYSTRYNG > put "((\d{2}|\d)/(\d{2}|\d)/(\d{4}|\d{2}))" into MYSTRYNG put matchText(FULLTEXT,MYSTRYNG,VAR0) into MYRESULT > put matchChunk(FULLTEXT,MYSTRYNG,VAR1, VAR2) into MYRESULT2 > put MYRESULT && MYRESULT2 && VAR0 && VAR1 && VAR2 > end mouseUp > > It returns "true true 05 16 17" instead of "true true 05/01/2011 16 25" > > From mazzapaoloitaly at gmail.com Thu Jan 5 08:04:07 2012 From: mazzapaoloitaly at gmail.com (paolo mazza) Date: Thu, 5 Jan 2012 14:04:07 +0100 Subject: Regular expression to find the date In-Reply-To: References: Message-ID: Thank you Bernard, actually your LC solution is much readable compared to the Regular Expression thing. However I was trying to understand regular expression that sometimes are very useful. Thanks a lot Paolo On Thu, Jan 5, 2012 at 11:23 AM, Bernard Devlin wrote: > I just want to offer the simplest solution first. ?If there's a reason > why this won't work, please say. > > put "sfgsfg gsfgs g 05/01/2011 t trtr" into tText > repeat for each word tWord in tText > ?if tWord is a date then put tWord & cr after tFound > end repeat > put tFound > > Maybe you are just looking to exeriment with regular expressions. ?But > given your sample text and date format, the above works and will be > readily readable when you return to in 6 months. > > Bernard > > On Thu, Jan 5, 2012 at 8:59 AM, paolo mazza wrote: >> Hi All, >> I have to find the date in a text. If I use this Regular Expression, >> it finds the date (returns true) but it returns just the first chars >> of the date.. >> >> on mouseUp >> ? put "sfgsfg gsfgs g 05/01/2011 t trtr" into FULLTEXT >> ? put "((\d{2})|(\d))\/((\d{2})|(\d))\/((\d{4})|(\d{2}))" into MYSTRYNG >> ? put matchText(FULLTEXT,MYSTRYNG,VAR0) into MYRESULT >> ? put matchChunk(FULLTEXT,MYSTRYNG,VAR1, VAR2) into MYRESULT2 >> ? put MYRESULT && MYRESULT2 && VAR0 && VAR1 && VAR2 >> end mouseUp >> >> It returns ?"true true 05 16 17" instead of "true true 05/01/2011 16 25" >> >> >> then if I change the text to search ... >> >> on mouseUp >> ? put "sfgsfg gsfgs g 4/1/2011 t trtr" into FULLTEXT >> ? put "((\d{2})|(\d))\/((\d{2})|(\d))\/((\d{4})|(\d{2}))" into MYSTRYNG >> ? put matchText(FULLTEXT,MYSTRYNG,VAR0) into MYRESULT >> ? put matchChunk(FULLTEXT,MYSTRYNG,VAR1, VAR2) into MYRESULT2 >> ? put MYRESULT && MYRESULT2 && VAR0 && VAR1 && VAR2 >> end mouseUp >> >> It returns ?"true true 4 16 16" instead of "true true 4/1/2011 16 24" >> >> >> Why ? Any idea? >> >> 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 > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Jan 5 08:05:51 2012 From: mazzapaoloitaly at gmail.com (paolo mazza) Date: Thu, 5 Jan 2012 14:05:51 +0100 Subject: Regular expression to find the date In-Reply-To: References: Message-ID: Thank you Thierry, your regular expression works. It was very kind of you. All the best Paolo On Thu, Jan 5, 2012 at 11:24 AM, Thierry Douez wrote: > Hi Paolo, > > I changed your regular expression; see below. > > Didn't check but should work. > > HTH > > Thierry > > 2012/1/5 paolo mazza > >> Hi All, >> I have to find the date in a text. If I use this Regular Expression, >> it finds the date (returns true) but it returns just the first chars >> of the date.. >> >> on mouseUp >> ? put "sfgsfg gsfgs g 05/01/2011 t trtr" into FULLTEXT >> ? put "((\d{2})|(\d))\/((\d{2})|(\d))\/((\d{4})|(\d{2}))" into MYSTRYNG >> > > > ? put "((\d{2}|\d)/(\d{2}|\d)/(\d{4}|\d{2}))" into MYSTRYNG > > > ?put matchText(FULLTEXT,MYSTRYNG,VAR0) into MYRESULT >> ? put matchChunk(FULLTEXT,MYSTRYNG,VAR1, VAR2) into MYRESULT2 >> ? put MYRESULT && MYRESULT2 && VAR0 && VAR1 && VAR2 >> end mouseUp >> >> It returns ?"true true 05 16 17" instead of "true true 05/01/2011 16 25" >> >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dan at clearvisiontech.com Thu Jan 5 09:51:34 2012 From: dan at clearvisiontech.com (Dan Friedman) Date: Thu, 5 Jan 2012 06:51:34 -0800 Subject: Sending hundreds of eMails In-Reply-To: References: Message-ID: Hello! I have a client that wants to send hundreds of eMails - each one unique, customized to the recipient. Formatting the eMail is easy... but how do you send an eMail from within LC? revMail brings up their eMail client which is not what we want because (a) they would have to click "Send" a zillion times, and (b) they are using gMail (a browser based mail client). Any thoughts? Thank you in advance, -Dan From bonnmike at gmail.com Thu Jan 5 09:57:49 2012 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 5 Jan 2012 07:57:49 -0700 Subject: Sending hundreds of eMails In-Reply-To: References: Message-ID: You might have a look at www.troz.net/rev/stacks/SMTP_library_demo.rev On Thu, Jan 5, 2012 at 7:51 AM, Dan Friedman wrote: > Hello! > > I have a client that wants to send hundreds of eMails - each one unique, > customized to the recipient. Formatting the eMail is easy... but how do > you send an eMail from within LC? revMail brings up their eMail client > which is not what we want because (a) they would have to click "Send" a > zillion times, and (b) they are using gMail (a browser based mail client). > > Any thoughts? > > Thank you in advance, > -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 > From m.schonewille at economy-x-talk.com Thu Jan 5 10:00:50 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Thu, 5 Jan 2012 16:00:50 +0100 Subject: Sending hundreds of eMails In-Reply-To: References: Message-ID: Hi Dan, Obviously, you don't want to use Gmail. You'd be marked as a spammer and you'd be out of business soon. Tell your customer to get a decent web server and his own domain. Use some PHP scripts to which LiveCode can connect. Put the e-mail on the server, so you won't need to send it each time you send a customised e-mail. Send that e-mail address, recipient name and other data to the server, have the PHP script glue the data and message together and use PHP's sendmail() function to send the e-mail. I do this a few times every year. If you want, I can help you with it. Assuming it it a commercial project, I won't do it for free but I think it doesn't need to cost much. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! On 5 jan 2012, at 15:51, Dan Friedman wrote: > Hello! > > I have a client that wants to send hundreds of eMails - each one unique, customized to the recipient. Formatting the eMail is easy... but how do you send an eMail from within LC? revMail brings up their eMail client which is not what we want because (a) they would have to click "Send" a zillion times, and (b) they are using gMail (a browser based mail client). > > Any thoughts? > > Thank you in advance, > -Dan From cmsheffield at me.com Thu Jan 5 11:02:03 2012 From: cmsheffield at me.com (Chris Sheffield) Date: Thu, 05 Jan 2012 09:02:03 -0700 Subject: link colors Message-ID: Okay, this is driving me crazy! I may have found a bug, but I'm not entirely sure. Can someone help? I was messing around with link colors yesterday. Or, rather, I wanted to make the links in my text appear with the normal (default) link colors, but not be underlined. So I started playing with a couple different properties until I discovered the handy Link Properties section in the stack inspector under Colors & Patterns. When I first went in there, nothing was set. No colors were selected and the Underline checkbox was not selected. I selected the checkbox, which automatically selected all the default colors. I thought, "Cool. Now all I have to do is uncheck the Underline checkbox. Then all my links will keep the colors but not be underlined." Not so. Yes, I was able to uncheck that setting, and the colors even remained selected. But now all my links just appear as black text. They're clickable, just as they should be, but they don't look like links at all. I can check the Underline checkbox again, and then they underline, but they remain black no matter what I do. I've tried explicitly setting the linkColor, the linkHiliteColor, and the linkVistedColor of my stack, all to no avail. Did I break this somehow? What can I do apart from setting the color of those chunks of text in my code? Any direction would be greatly appreciated. Thanks, Chris -- Chris Sheffield Read Naturally, Inc. www.readnaturally.com From pmbrig at gmail.com Thu Jan 5 11:03:08 2012 From: pmbrig at gmail.com (Peter M. Brigham, MD) Date: Thu, 5 Jan 2012 11:03:08 -0500 Subject: Regular expression to find the date In-Reply-To: References: Message-ID: I too am much in favor of using LC's text parsing rather than RegEx, which I admit is a prejudice (but one with foundation!). Beware, however, that the "is a date" function will return true for any number. I usually double-check this with something like: put "sfgsfg gsfgs g 05/01/2011 t trtr" into tText repeat for each word tWord in tText if tWord is a date then if howmany("/",tText) = 2 then put tWord & cr after tFound end if end if end repeat put tFound function howmany targetString,tText put numtochar(8) into divChar replace targetString with divChar in tText set the itemdelimiter to divChar put the number of items of tText into h if char -1 of tText <> divChar then put h-1 into h return h end howmany -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Jan 5, 2012, at 5:23 AM, Bernard Devlin wrote: > I just want to offer the simplest solution first. If there's a reason > why this won't work, please say. > > put "sfgsfg gsfgs g 05/01/2011 t trtr" into tText > repeat for each word tWord in tText > if tWord is a date then put tWord & cr after tFound > end repeat > put tFound > > Maybe you are just looking to exeriment with regular expressions. But > given your sample text and date format, the above works and will be > readily readable when you return to in 6 months. > > Bernard > > On Thu, Jan 5, 2012 at 8:59 AM, paolo mazza wrote: >> Hi All, >> I have to find the date in a text. If I use this Regular Expression, >> it finds the date (returns true) but it returns just the first chars >> of the date.. >> >> on mouseUp >> put "sfgsfg gsfgs g 05/01/2011 t trtr" into FULLTEXT >> put "((\d{2})|(\d))\/((\d{2})|(\d))\/((\d{4})|(\d{2}))" into MYSTRYNG >> put matchText(FULLTEXT,MYSTRYNG,VAR0) into MYRESULT >> put matchChunk(FULLTEXT,MYSTRYNG,VAR1, VAR2) into MYRESULT2 >> put MYRESULT && MYRESULT2 && VAR0 && VAR1 && VAR2 >> end mouseUp >> >> It returns "true true 05 16 17" instead of "true true 05/01/2011 16 25" >> >> >> then if I change the text to search ... >> >> on mouseUp >> put "sfgsfg gsfgs g 4/1/2011 t trtr" into FULLTEXT >> put "((\d{2})|(\d))\/((\d{2})|(\d))\/((\d{4})|(\d{2}))" into MYSTRYNG >> put matchText(FULLTEXT,MYSTRYNG,VAR0) into MYRESULT >> put matchChunk(FULLTEXT,MYSTRYNG,VAR1, VAR2) into MYRESULT2 >> put MYRESULT && MYRESULT2 && VAR0 && VAR1 && VAR2 >> end mouseUp >> >> It returns "true true 4 16 16" instead of "true true 4/1/2011 16 24" >> >> >> Why ? Any idea? >> >> 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 > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From cmsheffield at me.com Thu Jan 5 11:12:26 2012 From: cmsheffield at me.com (Chris Sheffield) Date: Thu, 05 Jan 2012 09:12:26 -0700 Subject: link colors In-Reply-To: References: Message-ID: Wow! I think I need some extra sleep or something. Just minutes after I posted this, i realized I had a line of code that was setting all the text in my field to black. So sorry for the alarm. Move along. Nothing to see here... On Jan 5, 2012, at 9:02 AM, Chris Sheffield wrote: > Okay, this is driving me crazy! I may have found a bug, but I'm not entirely sure. Can someone help? > > I was messing around with link colors yesterday. Or, rather, I wanted to make the links in my text appear with the normal (default) link colors, but not be underlined. So I started playing with a couple different properties until I discovered the handy Link Properties section in the stack inspector under Colors & Patterns. When I first went in there, nothing was set. No colors were selected and the Underline checkbox was not selected. I selected the checkbox, which automatically selected all the default colors. I thought, "Cool. Now all I have to do is uncheck the Underline checkbox. Then all my links will keep the colors but not be underlined." Not so. Yes, I was able to uncheck that setting, and the colors even remained selected. But now all my links just appear as black text. They're clickable, just as they should be, but they don't look like links at all. I can check the Underline checkbox again, and then they underline, but they remain black no matter what I do. I've tried > explicitly setting the linkColor, the linkHiliteColor, and the linkVistedColor of my stack, all to no avail. > > Did I break this somehow? What can I do apart from setting the color of those chunks of text in my code? Any direction would be greatly appreciated. > > Thanks, > Chris > > > -- > Chris Sheffield > Read Naturally, Inc. > www.readnaturally.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 livecode.list at gmail.com Thu Jan 5 11:17:39 2012 From: livecode.list at gmail.com (LiveCode) Date: Thu, 5 Jan 2012 08:17:39 -0800 Subject: Sending hundreds of eMails In-Reply-To: References: Message-ID: <60E901EE-CBCC-469B-810A-568C48E886A4@gmail.com> Look into PHPList- it's a free, open source system for doing this, and has tons of other functionality you need, like tracking bounces, handling unsubscribes, etc. On Jan 5, 2012, at 6:51 AM, Dan Friedman wrote: > Hello! > > I have a client that wants to send hundreds of eMails - each one unique, customized to the recipient. Formatting the eMail is easy... but how do you send an eMail from within LC? revMail brings up their eMail client which is not what we want because (a) they would have to click "Send" a zillion times, and (b) they are using gMail (a browser based mail client). > > Any thoughts? > > Thank you in advance, > -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 From andrew at rjdfarm.com Thu Jan 5 11:39:35 2012 From: andrew at rjdfarm.com (Andrew Kluthe) Date: Thu, 5 Jan 2012 08:39:35 -0800 (PST) Subject: Sending hundreds of eMails In-Reply-To: <60E901EE-CBCC-469B-810A-568C48E886A4@gmail.com> References: <60E901EE-CBCC-469B-810A-568C48E886A4@gmail.com> Message-ID: <1325781575722-4266172.post@n4.nabble.com> When sending out registration and lost password emails and what not I found this service. Many of my emails were hitting peoples spam boxes. The easiest (although not free. $1.50/1000 emails) way to send bulk emails out that you know will hit their inbox is using postmarkapp.com . They have tons of libraries you can use (not LC, but I doubt it would be that hard to conjure up if you are familiar with webservices). I use the library for codeIgniter. So far I haven't had one email hit a spambox since I switched. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Sending-hundreds-of-eMails-tp4265779p4266172.html Sent from the Revolution - User mailing list archive at Nabble.com. From bonnmike at gmail.com Thu Jan 5 11:39:47 2012 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 5 Jan 2012 09:39:47 -0700 Subject: Regular expression to find the date In-Reply-To: References: Message-ID: If you decide to try a regex again (they give me headaches but sometimes work great) you could try the following. on mouseUp put "sfgsfg gsfgs g 05/01/2011 t trtr" into FULLTEXT put "(\d{1,2}\/\d{1,2}\/\d{2,4})" into MYSTRYNG put matchText(FULLTEXT,MYSTRYNG,VAR0) into MYRESULT put VAR0 end mouseUp On Thu, Jan 5, 2012 at 9:03 AM, Peter M. Brigham, MD wrote: > I too am much in favor of using LC's text parsing rather than RegEx, which > I admit is a prejudice (but one with foundation!). Beware, however, that > the "is a date" function will return true for any number. I usually > double-check this with something like: > > put "sfgsfg gsfgs g 05/01/2011 t trtr" into tText > repeat for each word tWord in tText > if tWord is a date then > if howmany("/",tText) = 2 then > put tWord & cr after tFound > end if > end if > end repeat > put tFound > > function howmany targetString,tText > put numtochar(8) into divChar > replace targetString with divChar in tText > set the itemdelimiter to divChar > put the number of items of tText into h > if char -1 of tText <> divChar then put h-1 into h > return h > end howmany > > -- Peter > > Peter M. Brigham > pmbrig at gmail.com > http://home.comcast.net/~pmbrig > > > On Jan 5, 2012, at 5:23 AM, Bernard Devlin wrote: > > > I just want to offer the simplest solution first. If there's a reason > > why this won't work, please say. > > > > put "sfgsfg gsfgs g 05/01/2011 t trtr" into tText > > repeat for each word tWord in tText > > if tWord is a date then put tWord & cr after tFound > > end repeat > > put tFound > > > > Maybe you are just looking to exeriment with regular expressions. But > > given your sample text and date format, the above works and will be > > readily readable when you return to in 6 months. > > > > Bernard > > > > On Thu, Jan 5, 2012 at 8:59 AM, paolo mazza > wrote: > >> Hi All, > >> I have to find the date in a text. If I use this Regular Expression, > >> it finds the date (returns true) but it returns just the first chars > >> of the date.. > >> > >> on mouseUp > >> put "sfgsfg gsfgs g 05/01/2011 t trtr" into FULLTEXT > >> put "((\d{2})|(\d))\/((\d{2})|(\d))\/((\d{4})|(\d{2}))" into MYSTRYNG > >> put matchText(FULLTEXT,MYSTRYNG,VAR0) into MYRESULT > >> put matchChunk(FULLTEXT,MYSTRYNG,VAR1, VAR2) into MYRESULT2 > >> put MYRESULT && MYRESULT2 && VAR0 && VAR1 && VAR2 > >> end mouseUp > >> > >> It returns "true true 05 16 17" instead of "true true 05/01/2011 16 25" > >> > >> > >> then if I change the text to search ... > >> > >> on mouseUp > >> put "sfgsfg gsfgs g 4/1/2011 t trtr" into FULLTEXT > >> put "((\d{2})|(\d))\/((\d{2})|(\d))\/((\d{4})|(\d{2}))" into MYSTRYNG > >> put matchText(FULLTEXT,MYSTRYNG,VAR0) into MYRESULT > >> put matchChunk(FULLTEXT,MYSTRYNG,VAR1, VAR2) into MYRESULT2 > >> put MYRESULT && MYRESULT2 && VAR0 && VAR1 && VAR2 > >> end mouseUp > >> > >> It returns "true true 4 16 16" instead of "true true 4/1/2011 16 24" > >> > >> > >> Why ? Any idea? > >> > >> 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 > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode 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 th.douez at gmail.com Thu Jan 5 12:07:18 2012 From: th.douez at gmail.com (Thierry Douez) Date: Thu, 5 Jan 2012 18:07:18 +0100 Subject: Regular expression to find the date In-Reply-To: References: Message-ID: 2012/1/5 paolo mazza > Thank you Thierry, > your regular expression works. It was very kind of you. > All the best > > Paolo > Hi again Paolo, Just for fun... Look at this new Reg exp. below and see how it matches more precisely dates... felice anno nuovo ! Thierry on mouseUp -- Bad: put "sfgsfg 35/01/2011 t trtr" into aString put "sfgsfg 5/0/2011 t trtr" into aString put "sfgsfg 5/10/1011 t trtr" into aString -- Ok: put "sfgsfg 05/01/2011 t trtr" into aString put "sfgsfg 05-01-2011 t trtr" into aString put "sfgsfg 05.01.2011 t trtr" into aString -- put "((\d{2}|\d)/(\d{2}|\d)/(\d{4}|\d{2}))" into myRegEx put "((0[1-9]|1[012])[-/.](0[1-9]|[12][0-9]|3[01])[-/.](19|20)\d\d)" into myRegEx put matchText( aString, myRegEx, theDate) into rslt1 put matchChunk( aString, myRegEx, pos1, pos2) into rslt2 get format( "rslt1: %s \nrslt2: %s \nDate: %s pos1: %s, pos2: %s\n\n", \ rslt1, rslt2, theDate, pos1, pos2 ) put IT end mouseUp From bonnmike at gmail.com Thu Jan 5 12:30:54 2012 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 5 Jan 2012 10:30:54 -0700 Subject: Regular expression to find the date In-Reply-To: References: Message-ID: Wow. Ok, ignore the one I sent. On Thu, Jan 5, 2012 at 10:07 AM, Thierry Douez wrote: > 2012/1/5 paolo mazza > > > Thank you Thierry, > > your regular expression works. It was very kind of you. > > All the best > > > > Paolo > > > > Hi again Paolo, > > Just for fun... > > Look at this new Reg exp. below > and see how it matches more precisely dates... > > felice anno nuovo ! > > Thierry > > > on mouseUp > -- Bad: > put "sfgsfg 35/01/2011 t trtr" into aString > put "sfgsfg 5/0/2011 t trtr" into aString > put "sfgsfg 5/10/1011 t trtr" into aString > -- Ok: > put "sfgsfg 05/01/2011 t trtr" into aString > put "sfgsfg 05-01-2011 t trtr" into aString > put "sfgsfg 05.01.2011 t trtr" into aString > > -- put "((\d{2}|\d)/(\d{2}|\d)/(\d{4}|\d{2}))" into myRegEx > > put "((0[1-9]|1[012])[-/.](0[1-9]|[12][0-9]|3[01])[-/.](19|20)\d\d)" > into myRegEx > > put matchText( aString, myRegEx, theDate) into rslt1 > put matchChunk( aString, myRegEx, pos1, pos2) into rslt2 > > get format( "rslt1: %s \nrslt2: %s \nDate: %s pos1: %s, pos2: > %s\n\n", \ > rslt1, rslt2, theDate, pos1, pos2 ) > > put IT > > end mouseUp > _______________________________________________ > use-livecode mailing list > use-livecode at 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 rotundasoftware.com Thu Jan 5 13:26:05 2012 From: david at rotundasoftware.com (David Beck) Date: Thu, 5 Jan 2012 10:26:05 -0800 Subject: Sending hundreds of eMails In-Reply-To: References: Message-ID: <60118765-8CDB-4B3F-9740-7C19DE01C513@rotundasoftware.com> Hi Dan, The technique Mark describes is the same that we use. In our case we use CallPHP to facilitate calling the PHP function that sends the mail. We send tens of thousands of emails a day using this approach. We actually queue up the emails to be sent in a server side MySQL database, and then a cron job takes care of the actually sending via PHP's mail() command, around 100 per minute. We had to switch to the queue approach because sendmail was getting overloaded. CallPHP can be found at: http://www.rotundasoftware.com/livecode/ Note you need your own web server, and you might need a dedicated server, because some ISPs limit outgoing emails from shared hosts, or filter them and block some that they determine to be high spam risk. (That was just our experience with aplus.net, it might be that you have no problems using a shared host to send lots of email, especially in small amounts.) Hope that helps. David Beck Rotunda Software On Jan 5, 2012, at 10:00 AM, use-livecode-request at lists.runrev.com wrote: > Date: Thu, 5 Jan 2012 16:00:50 +0100 > From: Mark Schonewille > To: How to use LiveCode > Subject: Re: Sending hundreds of eMails > Message-ID: > Content-Type: text/plain; charset=us-ascii > > Hi Dan, > > Obviously, you don't want to use Gmail. You'd be marked as a spammer and you'd be out of business soon. > > Tell your customer to get a decent web server and his own domain. Use some PHP scripts to which LiveCode can connect. Put the e-mail on the server, so you won't need to send it each time you send a customised e-mail. Send that e-mail address, recipient name and other data to the server, have the PHP script glue the data and message together and use PHP's sendmail() function to send the e-mail. > > I do this a few times every year. If you want, I can help you with it. Assuming it it a commercial project, I won't do it for free but I think it doesn't need to cost much. > > -- > Best regards, > > Mark Schonewille From dan at clearvisiontech.com Thu Jan 5 13:34:02 2012 From: dan at clearvisiontech.com (Dan Friedman) Date: Thu, 5 Jan 2012 10:34:02 -0800 Subject: Sending hundreds of eMails In-Reply-To: References: Message-ID: Mark, > I do this a few times every year. If you want, I can help you with it. Assuming it it a commercial project, I won't do it for free but I think it doesn't need to cost much. I tried this approach already but didn't get good results. The PHP return "success", but the eMail never get's sent. Any thoughts? Here's what I did: on doEMail put field "mailTo" into mTo put field "mailFrom" into mFrom put URLEncode(field "mailSubject") into mSub put URLEncode(field "mailMessage") into mMess put "http://www.myserver.com/mytest.php?from=" & mFrom & "&subject=" & mSub & "&message=" & mMess & "&toAdd=" & mTo into completeUrl get url completeUrl if it <> "success" then doError end if end doEMail --the php script on the server looks like this: -Dan > Hi Dan, > > Obviously, you don't want to use Gmail. You'd be marked as a spammer and you'd be out of business soon. > > Tell your customer to get a decent web server and his own domain. Use some PHP scripts to which LiveCode can connect. Put the e-mail on the server, so you won't need to send it each time you send a customised e-mail. Send that e-mail address, recipient name and other data to the server, have the PHP script glue the data and message together and use PHP's sendmail() function to send the e-mail. > > I do this a few times every year. If you want, I can help you with it. Assuming it it a commercial project, I won't do it for free but I think it doesn't need to cost much. > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! > > On 5 jan 2012, at 15:51, Dan Friedman wrote: > >> Hello! >> >> I have a client that wants to send hundreds of eMails - each one unique, customized to the recipient. Formatting the eMail is easy... but how do you send an eMail from within LC? revMail brings up their eMail client which is not what we want because (a) they would have to click "Send" a zillion times, and (b) they are using gMail (a browser based mail client). >> >> Any thoughts? >> >> Thank you in advance, >> -Dan From pete at mollysrevenge.com Thu Jan 5 15:41:56 2012 From: pete at mollysrevenge.com (Pete) Date: Thu, 5 Jan 2012 12:41:56 -0800 Subject: Fwd: [Bug 9604] Various issues regarding compatibility between LC system date formats and OS X date preferences In-Reply-To: References: Message-ID: There was a discussion recently on preventing SQL injections in LC. Here's an email I got from the support center on a bug/enhancement concerning this. ---------- Forwarded message ---------- From: Date: Thu, Jan 5, 2012 at 9:00 AM Subject: [Bug 9604] Various issues regarding compatibility between LC system date formats and OS X date preferences To: pete at mollysrevenge.com http://quality.runrev.com/show_bug.cgi?id=9604 michael.mccreary at runrev.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |NOT_A_BUG ------- Comment #3 from michael.mccreary at runrev.com 2012-01-05 11:00 ------- Hi Peter I'm updating this to not a bug. Rather than being tied to the current platform, LiveCode's date processing is system independent. For example, the long date is the same on Windows as it is on OS X and Linux. The system keyword is used by LiveCode to determine the order in which the day month and year should be displayed rather than the format to use. (As you've noted, OS X has 4 date formats. This may not be the case with Linux and Windows, thus the system keyword can't be used to provide consistent platform specific dates). Warm Regards Michael -- Configure bugmail: http://quality.runrev.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You reported the bug, or are watching the reporter. -- Pete Molly's Revenge From pete at mollysrevenge.com Thu Jan 5 15:46:00 2012 From: pete at mollysrevenge.com (Pete) Date: Thu, 5 Jan 2012 12:46:00 -0800 Subject: Fwd: [Bug 9932] expose mysql_real_escape_string() function In-Reply-To: References: Message-ID: Sorry guys, forwarded the wrong email in my last post re SQL injection - here's the correct one. ---------- Forwarded message ---------- From: Date: Thu, Jan 5, 2012 at 4:31 AM Subject: [Bug 9932] expose mysql_real_escape_string() function To: pete at mollysrevenge.com http://quality.runrev.com/show_bug.cgi?id=9932 michael.mccreary at runrev.com changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|major |enhancement Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 ------- Comment #1 from michael.mccreary at runrev.com 2012-01-05 06:31 ------- Hi Andre Thanks very much for the report. I'm changing this to a an enhancement request. The function mysql_real_escape_string (and its equivalents for the other database types) is called internally by revDB when passing data using variable lists (for an example, see the dictionary entry for revQueryDatabase). This is the preferred method for escaping data. Warm Regards Michael -- Configure bugmail: http://quality.runrev.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are a voter for the bug, or are watching someone who is. -- Pete Molly's Revenge From pete at mollysrevenge.com Thu Jan 5 16:04:11 2012 From: pete at mollysrevenge.com (Pete) Date: Thu, 5 Jan 2012 13:04:11 -0800 Subject: Carriage Return in datagrid data In-Reply-To: <1852974652-1325725716-cardhu_decombobulator_blackberry.rim.net-316062036-@b27.c31.bise6.blackberry> References: <816E448F-1375-46FA-ACE9-2EFEF86AA9D3@doub.com> <1852974652-1325725716-cardhu_decombobulator_blackberry.rim.net-316062036-@b27.c31.bise6.blackberry> Message-ID: Thanks Mike, will do. On Wed, Jan 4, 2012 at 5:08 PM, wrote: > Pete, take a look at the datagrid tutorials. If I recall correctly there > are explanations and examples for how to manage non-fixed height rows of a > datagrid. > > Sent from my BlackBerry device on the Rogers Wireless Network > > -----Original Message----- > From: Pete > Sender: use-livecode-bounces at lists.runrev.com > Date: Wed, 4 Jan 2012 15:48:40 > To: How to use LiveCode > Reply-To: How to use LiveCode > Subject: Re: Carriage Return in datagrid data > > Hi Mike, > Thanks, yes I'm familiar with using dgData - it was how the data looks in > the datagrid that I wasn't sure of. > > I did an experiment with a single column datagrid, loading some text plus a > carriage return, plus more text into via dgData. What happens is that all > of the text after the carriage return gets lost because of the fixed row > height of the datagrid (it's still there of course, just can't see it). > > On the other hand, if I use the VT character to replace the carriage > return, the text is visible in the datagrid column (at least up to its > width) and I see the VT character in the string. > > Hope that makes sense. Basically if the text is > > abc > def > ghi > > ....then leaving the returns in there shows me only "abc" but using the VY > character shows me "abcdefghi" so all the data is visible. I could > increase the row height of course but not all the rows I'm displaying will > have carriage returns in them so would be wasting some datagrid space. > > Either way, I probably will convert to using dgData instead of dgText. I > kinda prefer using dgData but it's just an extra step to convert what comes > back from the database into an array when it's already in dgText format. > > Pete > > On Wed, Jan 4, 2012 at 2:05 PM, Michael Doub wrote: > > > > > Let say we have a variable Contacts where each line has 4 tab delimited > > fields: RecID, Name, Age, BirthDay > > The following builds the dgData array. The first index controls the > order > > of what is displayed in the datagrid. > > If you look closely you will see that it[Counter] = pDataArray that you > > deal with in the Row Behaviour script. > > > > Hope this helps, > > Mike > > > > > > Global Contacts > > on openCard > > local x; > > local Counter; put 1 into counter > > put empty into it > > set itemdel to tab > > repeat for each line x in Contacts > > put item 1 of x into it[Counter]["RecID"] > > put item 2 of x into it[Counter]["Name"] > > put item 3 of x into it[Counter]["Age"] > > put item 4 of x into it[Counter]["Birthday"] > > add 1 to counter > > end repeat > > set the dgData of group "SetGroup" to 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 > > > > > > > -- > 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 > _______________________________________________ > use-livecode mailing list > use-livecode 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 rjearp at hotmail.com Thu Jan 5 16:10:05 2012 From: rjearp at hotmail.com (Bob Earp) Date: Thu, 5 Jan 2012 13:10:05 -0800 Subject: Sending hundreds of eMails Message-ID: Dan, I had a similar situation whereby I wanted to send eMails to a list of registrants from a Joomla site, and although there is a mass mail feature in Joomla, my ISP limited the number of addressee's to 20 per eMail. I ended up throwing a stack together with the help of some of Sara's excellent script. I dumped the Joomla database (which contained the registrants eMail address etc.) to a text file and then parsed that. I'm happy to share it with you, but It may not be suitable for you as it uses a mail client to actually send the mail in blocks of 20 (I think). You could adjust that number to whatever. There is a positive side to that though, as the mail client checks for valid addresses and provides an error msg if an address is awry, plus of course you automatically get a return address to have bounced messages sent to. Please eMail me off-list if you want a copy. best, Bob... > Message: 4 > Date: Thu, 5 Jan 2012 06:51:34 -0800 > From: Dan Friedman > To: use-livecode at lists.runrev.com > Subject: Sending hundreds of eMails > Hello! > > I have a client that wants to send hundreds of eMails - each one unique, customized to the recipient. Formatting the eMail is easy... but how do you send an eMail from within LC? revMail brings up their eMail client which is not what we want because (a) they would have to click "Send" a zillion times, and (b) they are using gMail (a browser based mail client). > > Any thoughts? > > Thank you in advance, > -Dan Bob Earp White Rock, British Columbia. From capellan2000 at gmail.com Thu Jan 5 16:31:11 2012 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Thu, 5 Jan 2012 13:31:11 -0800 (PST) Subject: Error in mail list MBOX file format In-Reply-To: <4F049320.1090605@fourthworld.com> References: <1325290282717-4247238.post@n4.nabble.com> <4F049320.1090605@fourthworld.com> Message-ID: <1325799071352-4267133.post@n4.nabble.com> Hi Richard, The errors are only in lines 30525 and 31859 of the decompressed mailbox text file. Look at the messages that produced these error: http://lists.runrev.com/pipermail/use-livecode/2011-December/165634.html http://lists.runrev.com/pipermail/use-livecode/2011-December/165665.html The string that generates this error in first message is: "From the dictionary:" (without quotes) The string that generates this error in second message is: "From the centre of the universe" (without quotes) These messages where received from Gmail and Hotmail, but it's possible that real culprit is the application that send these messages to the mail list. Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Error-in-mail-list-MBOX-file-format-tp4247238p4267133.html Sent from the Revolution - User mailing list archive at Nabble.com. From pmbrig at gmail.com Thu Jan 5 16:46:49 2012 From: pmbrig at gmail.com (Peter M. Brigham, MD) Date: Thu, 5 Jan 2012 16:46:49 -0500 Subject: Error in mail list MBOX file format In-Reply-To: <1325799071352-4267133.post@n4.nabble.com> References: <1325290282717-4247238.post@n4.nabble.com> <4F049320.1090605@fourthworld.com> <1325799071352-4267133.post@n4.nabble.com> Message-ID: <4D83624D-23A1-4568-8464-5CA265FD4315@gmail.com> I was the one who sent the first one listed below. I am using the Mac Mail application on a MacBook, OSX 10.6.8, Rev Studio 4.5.3, build 1210. Don't know why any of that should make a difference.... FWIW, in both messages the "From" is the first word of the text body. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Jan 5, 2012, at 4:31 PM, Alejandro Tejada wrote: > Hi Richard, > > The errors are only in lines 30525 and 31859 > of the decompressed mailbox text file. > > Look at the messages that produced > these error: > > http://lists.runrev.com/pipermail/use-livecode/2011-December/165634.html > http://lists.runrev.com/pipermail/use-livecode/2011-December/165665.html > > The string that generates this error in > first message is: > > "From the dictionary:" (without quotes) > > The string that generates this error in > second message is: > > "From the centre of the universe" (without quotes) > > These messages where received from Gmail and Hotmail, > but it's possible that real culprit is the application > that send these messages to the mail list. > > Al > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Error-in-mail-list-MBOX-file-format-tp4247238p4267133.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 andre at andregarzia.com Thu Jan 5 18:27:23 2012 From: andre at andregarzia.com (Andre Garzia) Date: Thu, 5 Jan 2012 21:27:23 -0200 Subject: Sending hundreds of eMails In-Reply-To: References: Message-ID: Once, I earned a living by sending emails. We sent millions per day. I was an employee of a email marketing company, our clients were companies like wallmart, readers digest and other retail stores here in Brazil. Our millions emails went just in-country. Believe me, sending massive amounts of email is tricky, there will always be clients who will treat is as SPAM. You have a whole set of options: 1 - You can use Amazon Simple eMail Service: http://aws.amazon.com/ses/ if you don't want to use their tools or craft your own tool to use Amazon Simple eMail Service, you can use whoosh (http://www.theescapers.com/whoosh/) 2 - You can use some PHP script on a server to send the emails for you such as outline by David and others. 3 - You can use LiveCodeServer script on on-rev or some other host just like you can with PHP. RevIgniter has libraries for email sending. 4 - You can use an SMTP library and create a desktop stack to send the emails in a loop. If you are doing options 2, 3 or 4 then you need to be aware of some stuff: * ONE RECIPIENT PER EMAIL. Do not send one email with multiple recipients. This is almost certain to be flagged as SPAM. * Fill your "from" field with a Real Existing eMail account that can be verified by the receiving server. This is double plus good if you use an account that has been used before to send email to that person * Do not send lots of emails to the same server in a small period of time. For example, suppose you need to send 500 emails to GMail accounts. If you do a loop and send them all at once, there is a big chance you will hit the spam box. The trick is to make it look and behave like normal traffic. Send a dozen emails, wait for a while, then send some more. Create a scrambled queue where the order is "mixed by domain". Just like a good music playlist, you switch domains every four or five emails. I could talk a lot about email but this is just some basic advise to get you going. Also, if possible, send your emails from the same server that hosts the sending domain. =) From richmondmathewson at gmail.com Thu Jan 5 18:50:17 2012 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Thu, 05 Jan 2012 23:50:17 +0000 Subject: Sending hundreds of eMails In-Reply-To: References: Message-ID: <4F063739.2090309@gmail.com> Andre Garzia wrote: > Once, I earned a living by sending emails. We sent millions per day. I was > an employee of a email marketing company, our clients were companies like > wallmart, readers digest and other retail stores here in Brazil. Our > millions emails went just in-country. Believe me, sending massive amounts > of email is tricky, there will always be clients who will treat is as SPAM. > > You have a whole set of options: > > 1 - You can use Amazon Simple eMail Service: http://aws.amazon.com/ses/ if > you don't want to use their tools or craft your own tool to use Amazon > Simple eMail Service, you can use whoosh (http://www.theescapers.com/whoosh/) > > 2 - You can use some PHP script on a server to send the emails for you such > as outline by David and others. > > 3 - You can use LiveCodeServer script on on-rev or some other host just > like you can with PHP. RevIgniter has libraries for email sending. > > 4 - You can use an SMTP library and create a desktop stack to send the > emails in a loop. > > If you are doing options 2, 3 or 4 then you need to be aware of some stuff: > > * ONE RECIPIENT PER EMAIL. Do not send one email with multiple recipients. > This is almost certain to be flagged as SPAM. > > * Fill your "from" field with a Real Existing eMail account that can be > verified by the receiving server. This is double plus good Ooooh: who has been reading George Orwell? . . .. :) > if you use an > account that has been used before to send email to that person > > * Do not send lots of emails to the same server in a small period of time. > For example, suppose you need to send 500 emails to GMail accounts. If you > do a loop and send them all at once, there is a big chance you will hit the > spam box. The trick is to make it look and behave like normal traffic. Send > a dozen emails, wait for a while, then send some more. Create a scrambled > queue where the order is "mixed by domain". Just like a good music > playlist, you switch domains every four or five emails. > > I could talk a lot about email but this is just some basic advise to get > you going. Also, if possible, send your emails from the same server that > hosts the sending 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 > > From eriks at sisyph.us Thu Jan 5 20:28:54 2012 From: eriks at sisyph.us (Erik Schwartz) Date: Thu, 5 Jan 2012 17:28:54 -0800 Subject: Sending hundreds of eMails In-Reply-To: References: Message-ID: Amazone SES now supports SMTP which kind of makes it a no-brainer. On Thu, Jan 5, 2012 at 6:51 AM, Dan Friedman wrote: > Hello! > > I have a client that wants to send hundreds of eMails - each one unique, customized to the recipient. ?Formatting the eMail is easy... but how do you send an eMail from within LC? ?revMail brings up their eMail client which is not what we want because (a) they would have to click "Send" a zillion times, and (b) they are using gMail (a browser based mail client). > > Any thoughts? ========================================== eriks at sisyph.us? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? http://sisyph.us (530) 213-ERIK? ? ? ? ? ? ? ? ? ? ? ? ? http://twitter.com/eriks (530) 213-3745?? http://www.linkedin.com/in/erikschwartz ========================================== From capellan2000 at gmail.com Thu Jan 5 23:27:43 2012 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Thu, 5 Jan 2012 20:27:43 -0800 (PST) Subject: SVGL Import tests Message-ID: <1325824063928-4268207.post@n4.nabble.com> Hi all, Recently, I have been experimenting with the possibilty of adding import gradients to SVGL: http://revonline2.runrev.com/stack/112/SVGL I found a small, but annoying glitch while importing SVG files. Look at this image: http://andregarzia.on-rev.com/alejandro/stacks/SVGL_Import_Tests/SVGL_Import_Tests.PNG http://at.livecodejournal.com/stacks/SVGL_Import_Tests/SVGL_Import_Tests.PNG The first SVG imports fine, but a similar file imported later ends in a wrong position. Test this by yourself. Download SVGL http://revonline2.runrev.com/stack/112/SVGL and test files: http://andregarzia.on-rev.com/alejandro/stacks/SVGL_Import_Tests.zip http://at.livecodejournal.com/stacks/SVGL_Import_Tests.zip Could you help to fix this small (but annoying) glitch? Thanks in advance! Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/SVGL-Import-tests-tp4268207p4268207.html Sent from the Revolution - User mailing list archive at Nabble.com. From lan.kc.macmail at gmail.com Fri Jan 6 06:10:41 2012 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Fri, 6 Jan 2012 19:10:41 +0800 Subject: [BUG] 5.0.2 start-up anomaly - Btn Icons not displayed In-Reply-To: References: Message-ID: Thanks Scott but I think Jacque is right, the 5.0.2 build has messed up the start-up sequence. The problem I'm seeing only occurs if I start my stack by double clicking on it when LC isn't running. The workaround is simply to start LC first then open my stack - so the Inks are OK. On Thu, Jan 5, 2012 at 3:02 PM, Scott Rossi wrote: > You might want to try checking the ink effects you used on the buttons. > The docs say all the old ink effects have been deprecated in v5. Perhaps > referencing an old ink causes objects to display incorrectly. > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX Design > > -------- Original message -------- > Subject: [BUG] 5.0.2 start-up anomaly - Btn Icons not displayed > From: Kay C Lan > To: How to use LiveCode > CC: > > Folks, > > I'm experiencing a glitch with an old Rev stack since upgrading to 5.0.2. > I've not seen anyone else report this so I assumed that it was just my > set-up but I've since been able to reproduce the bug and it appears to be > associated with Icons in buttons. > > With 5.0.1 and prior when starting my stack the LC splash screen comes up, > then the IDE Tool Palette, then after the LC splash screen disappears my > stack appears. Under 5.0.2 my stack appears before the Tool Palette and on > top of the LC splash screen, which gives LC a nice zippy feel, but > unfortunately two buttons (out of 26) are not displayed, which should be > displayed and are displayed in all previous versions of Rev. > > The two buttons are a Previous and Next button, they are Transparent > buttons with Rev supplied Icons. The other 24 are all Option buttons > without Icons. > > To reproduce this problem: > > 1) create a new stack and place a couple of buttons. So far I've confirmed > this with Standard, Rectangle and Transparent. > 2) Open the Object inspector and select a different Icon from the "Standard > Icons" library for each button. > 3) For Transparent buttons unclick the showName property. (this is not > necessary to confirm the bug, it's just more effective in making you think > the button isn't there) > 4) Save the stack > 5) Quit LC > 6) Start your newly created stack. > > On my machine none of the Icons are displayed. > > If you create a new card, then Go First, all the Icons will appear. > > Surely I can't be the only one that uses Icons in buttons? > > MBPro 17", OS X 10.6.8, LC 5.0.2 > _______________________________________________ > use-livecode mailing list > use-livecode 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 Fri Jan 6 08:09:26 2012 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Fri, 06 Jan 2012 13:09:26 +0000 Subject: SVGL Import tests In-Reply-To: <1325824063928-4268207.post@n4.nabble.com> References: <1325824063928-4268207.post@n4.nabble.com> Message-ID: <4F06F286.3050507@gmail.com> Alejandro Tejada wrote: > Hi all, > > Recently, I have been experimenting with > the possibilty of adding import gradients to > SVGL: http://revonline2.runrev.com/stack/112/SVGL > > I found a small, but annoying glitch while > importing SVG files. Look at this image: > > http://andregarzia.on-rev.com/alejandro/stacks/SVGL_Import_Tests/SVGL_Import_Tests.PNG > http://at.livecodejournal.com/stacks/SVGL_Import_Tests/SVGL_Import_Tests.PNG > > The first SVG imports fine, but a similar file > imported later ends in a wrong position. > > Test this by yourself. Download SVGL > http://revonline2.runrev.com/stack/112/SVGL > and test files: > http://andregarzia.on-rev.com/alejandro/stacks/SVGL_Import_Tests.zip > http://at.livecodejournal.com/stacks/SVGL_Import_Tests.zip > > Could you help to fix this small (but annoying) glitch? > I'll have a go, just as soon as I get back to Bulgaria: Monday night. How about links to the original SVG files you used? Or, are they bundled in your 'SVGL_Import_Tests.zip' file? > Thanks in advance! > > Al > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/SVGL-Import-tests-tp4268207p4268207.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 livfoss at mac.com Fri Jan 6 08:15:44 2012 From: livfoss at mac.com (Graham Samuel) Date: Fri, 06 Jan 2012 14:15:44 +0100 Subject: Can't set Developer Root in LiveCode Prefs Message-ID: I am stumbling towards developing my first IOS app, but I am having huge difficulties getting started. First, I couldn't update XCode to the version that includes IOS 5 (and Apple were totally unhelpful). Thanks to Colin Holgate on this list, I did the update by getting rid of the previous version and getting the latest from the Apple App Store, then running Install XCode twice (!!!) to make sure that there's a version of IOS 5 in there somewhere. I have the following System Information: Version: 4.2.1 (4D502) Location: /Developer Applications: Xcode: 4.2.1 (834) Instruments: 4.2 (4233) Dashcode: 3.0.2 (336) SDKs: Mac OS X: 10.6: (10K549) 10.7: (11C63) iPhone OS: 5.0: (9A334) iPhone Simulator: 5.0: (9A334) So, there it is. Next I tried to follow the RunRev lesson "How do I become an IOS Developer". This tells you to set the location of the developer for IOS 5.0 root in the preferences of LiveCode (I'm using 5.0.2 on a Mac with Lion 10.7.2). It suggests that this will be in /Developer/Platforms/iPhoneSimulator.platform/Developer/Applications Well, this directory exists (and contains one item 'iOS Simulator' 5.0), but I keep getting this error message from LC: "The chosen folder is not a valid iOS SDK for 5.0 and later. It must be one that ships with XCode 4.2 or later." My version of XCode is 4.2.1, BTW. I am not very clear what LC is looking for but I've tried choosing other parts of the structure with no result. So, something is missing or I'm doing something wrong. Since every member of this list who has worked on an IOS project must have passed this point, I feel an idiot. I hope someone can help. TIA Graham From andre at andregarzia.com Fri Jan 6 09:00:07 2012 From: andre at andregarzia.com (Andre Garzia) Date: Fri, 6 Jan 2012 12:00:07 -0200 Subject: Sending hundreds of eMails In-Reply-To: <4F063739.2090309@gmail.com> References: <4F063739.2090309@gmail.com> Message-ID: > >> * Fill your "from" field with a Real Existing eMail account that can be >> verified by the receiving server. This is double plus good >> > > Ooooh: who has been reading George Orwell? . . .. :) > Here in Brazil kids read 1984 in the school... that along with Brave New World made a strong impression in my young mind. =)rtiik5kkk xccccc and that was my cat, Mozilla, typing... -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. From dixonja at hotmail.co.uk Fri Jan 6 09:26:45 2012 From: dixonja at hotmail.co.uk (John Dixon) Date: Fri, 6 Jan 2012 14:26:45 +0000 Subject: Sending hundreds of eMails In-Reply-To: References: , , <4F063739.2090309@gmail.com>, Message-ID: Aldous Huxley's 'Brave New World' still impresses...:-) > From: andre at andregarzia.com > Here in Brazil kids read 1984 in the school... that along with Brave New > World made a strong impression in my young mind. From coiin at verizon.net Fri Jan 6 09:36:22 2012 From: coiin at verizon.net (Colin Holgate) Date: Fri, 06 Jan 2012 09:36:22 -0500 Subject: Can't set Developer Root in LiveCode Prefs In-Reply-To: References: Message-ID: <39D6FB93-D2D6-46EF-ABA9-19C1EF66EC65@verizon.net> The root of the developer path is just the first part of the path to the simulator. It will end up saying "/Developer" From richmondmathewson at gmail.com Fri Jan 6 10:04:25 2012 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Fri, 06 Jan 2012 15:04:25 +0000 Subject: Sending hundreds of eMails In-Reply-To: References: <4F063739.2090309@gmail.com> Message-ID: <4F070D79.8050805@gmail.com> Andre Garzia wrote: >>> * Fill your "from" field with a Real Existing eMail account that can be >>> verified by the receiving server. This is double plus good >>> >>> >> Ooooh: who has been reading George Orwell? . . .. :) >> >> > > Here in Brazil kids read 1984 in the school... that along with Brave New > World made a strong impression in my young mind. > Obviously no Epsilon Semi-Morons round your neck of the woods . . . sweet little bottle, oh sweet little bottle of mine, all I've wanted since I've been decanted is a lifelong set of unlimited upgrades to Livecode . . . :) Wow, Our Ford, that was a bit risky! Pass the soma. > =)rtiik5kkk xccccc and that was my cat, Mozilla, typing... > > > > From ambassador at fourthworld.com Fri Jan 6 11:09:17 2012 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 06 Jan 2012 08:09:17 -0800 Subject: SoCal LUG meeting: 2 February in Pasadena Message-ID: <4F071CAD.8030108@fourthworld.com> Many thanks to all who attended last night's LiveCode User Group meeting in Pasadena. It was a lot of fun, and even with all the talk of trains we managed to get some design work started on what will hopefully be a new library for the LiveCode community - more on that later. Looking forward, mark your calendars for the first Thursday in February for our next meeting. Since that one falls on Groundhog Day, I've suggested a theme for the meeting - details about that along with time and location are in the forum Heather kindly set up for our group: Note for those outside of SoCal: Setting up local meetups in your area is easy and fun. Heather has a place in the forums where you can post notice for such things to get it started: -- 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 andre at andregarzia.com Fri Jan 6 11:30:43 2012 From: andre at andregarzia.com (Andre Garzia) Date: Fri, 6 Jan 2012 14:30:43 -0200 Subject: SoCal LUG meeting: 2 February in Pasadena In-Reply-To: <4F071CAD.8030108@fourthworld.com> References: <4F071CAD.8030108@fourthworld.com> Message-ID: I am curious!!! what library??? On Fri, Jan 6, 2012 at 2:09 PM, Richard Gaskin wrote: > Many thanks to all who attended last night's LiveCode User Group meeting > in Pasadena. It was a lot of fun, and even with all the talk of trains we > managed to get some design work started on what will hopefully be a new > library for the LiveCode community - more on that later. > > Looking forward, mark your calendars for the first Thursday in February > for our next meeting. > > Since that one falls on Groundhog Day, I've suggested a theme for the > meeting - details about that along with time and location are in the forum > Heather kindly set up for our group: > > > > > > Note for those outside of SoCal: > > Setting up local meetups in your area is easy and fun. Heather has a place > in the forums where you can post notice for such things to get it started: > > > > > -- > 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 > -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. From sc at sahores-conseil.com Fri Jan 6 11:38:30 2012 From: sc at sahores-conseil.com (Pierre Sahores) Date: Fri, 6 Jan 2012 17:38:30 +0100 Subject: Sending hundreds of eMails In-Reply-To: <60E901EE-CBCC-469B-810A-568C48E886A4@gmail.com> References: <60E901EE-CBCC-469B-810A-568C48E886A4@gmail.com> Message-ID: <646BC13F-206B-4AE2-9963-89A27D0BB086@sahores-conseil.com> Along Sarah's one, Ben's email script works 100% fine for such needs ;-) http://lessons.runrev.com/s/lessons/m/4070/l/8184-Sending-Emails-From-LiveCode-Server-Scripts Best, Le 5 janv. 2012 ? 17:17, LiveCode a ?crit : > Look into PHPList- it's a free, open source system for doing this, and has tons of other functionality you need, like tracking bounces, handling unsubscribes, etc. > > > On Jan 5, 2012, at 6:51 AM, Dan Friedman wrote: > >> Hello! >> >> I have a client that wants to send hundreds of eMails - each one unique, customized to the recipient. Formatting the eMail is easy... but how do you send an eMail from within LC? revMail brings up their eMail client which is not what we want because (a) they would have to click "Send" a zillion times, and (b) they are using gMail (a browser based mail client). >> >> Any thoughts? >> >> Thank you in advance, >> -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 > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com From capellan2000 at gmail.com Fri Jan 6 13:13:58 2012 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Fri, 6 Jan 2012 10:13:58 -0800 (PST) Subject: SVGL Import tests In-Reply-To: <4F06F286.3050507@gmail.com> References: <1325824063928-4268207.post@n4.nabble.com> <4F06F286.3050507@gmail.com> Message-ID: <1325873638501-4270296.post@n4.nabble.com> Hi Richmond, Richmond Mathewson-2 wrote > > I'll have a go, just as soon as I get back to Bulgaria: Monday night. > How about links to the original SVG files you used? Or, are they bundled > in your 'SVGL_Import_Tests.zip' file? > You could find all files inside the compressed zip file: http://andregarzia.on-rev.com/alejandro/stacks/SVGL_Import_Tests.zip http://at.livecodejournal.com/stacks/SVGL_Import_Tests.zip and inside these folders: http://andregarzia.on-rev.com/alejandro/stacks/SVGL_Import_Tests/ http://at.livecodejournal.com/stacks/SVGL_Import_Tests/ Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/SVGL-Import-tests-tp4268207p4270296.html Sent from the Revolution - User mailing list archive at Nabble.com. From scott at tactilemedia.com Fri Jan 6 15:05:59 2012 From: scott at tactilemedia.com (Scott Rossi) Date: Fri, 06 Jan 2012 12:05:59 -0800 Subject: [ANN] tmCONTROL Update Released Today Message-ID: Hello List: Just a quick note to mention an update was released today for tmCONTROL, a custom control suite for LiveCode. The major enhancement in this version is the ability to edit/customize template stacks. More information can be found here: http://tinyurl.com/7us3h9q Also available are four new background collections available on the tmCONTROL site: http://tmtools.tactilemedia.com/tmcontrol/themes.html Have a great weekend. Regards, Scott Rossi Creative Director Tactile Media, UX Design From capellan2000 at gmail.com Fri Jan 6 15:20:46 2012 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Fri, 6 Jan 2012 12:20:46 -0800 (PST) Subject: Stack to read offline the LiveCode Forum Message-ID: <1325881246904-4270704.post@n4.nabble.com> Hi All, Does exists a LiveCode stack to read offline all the LiveCode forum postings? You could access the forums from any of these directions: http://forums.runrev.com/index.php http://mail.revdeveloper.com/forums/index.php?sid=28221ca7304a3b2c06461daa5f4bdaf4 http://mail.on-rev.com/forums/index.php?sid=abc20b2b3cbaf25a459728e8e7b47428 I remember that Sarah posted this tutorial in RevJournal: http://livecodejournal.com/tutorials/macaddict-forum-reader.html but I dont know how to change this stack to work with LiveCode Forums. Thanks in advance! Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Stack-to-read-offline-the-LiveCode-Forum-tp4270704p4270704.html Sent from the Revolution - User mailing list archive at Nabble.com. From ambassador at fourthworld.com Fri Jan 6 15:57:53 2012 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 06 Jan 2012 12:57:53 -0800 Subject: Stack to read offline the LiveCode Forum In-Reply-To: <1325881246904-4270704.post@n4.nabble.com> References: <1325881246904-4270704.post@n4.nabble.com> Message-ID: <4F076051.3060906@fourthworld.com> Alejandro Tejada wrote: > Does exists a LiveCode stack to read offline > all the LiveCode forum postings? I believe Mark Stuart has such a critter. If it's not in RevOnline perhaps he can chime in here with a URL.... -- 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 Fri Jan 6 16:19:28 2012 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 06 Jan 2012 13:19:28 -0800 Subject: SoCal LUG meeting: 2 February in Pasadena In-Reply-To: References: Message-ID: <4F076560.300@fourthworld.com> Andre Garzia wrote: > On Fri, Jan 6, 2012 at 2:09 PM, Richard Gaskin wrote: > >> Many thanks to all who attended last night's LiveCode User >> Group meeting in Pasadena. It was a lot of fun, and even >> with all the talk of trains we managed to get some design >> work started on what will hopefully be a new library for >> the LiveCode community - more on that later. > > I am curious!!! what library??? A chunk of most of our meetings is devoted to kvetching about things we'd like to see improved in LC, and last night Todd Geist noted the many times newcomers use cards for data storage, make a standalone out of it, only to later realize as a standalone it's no longer writable so it has to be rearchitected. We looked at this from a variety of angles, and considered the strengths and weaknesses of different ways to solve the problem, ranging from writing a new Standalone Builder to patching the IDE to even writing a new IDE. But as we looked at the problem more carefully we began to realize that none of those would solve the core problem, which is to keep user data storage out the stack in the first place. So the problem became defined as: How can we provide the benefits of using cards for data storage -- with First, Next, Previous, Last, New, Delete, and more -- without actually using cards for data storage? Anyone who's worked with LC for some time has solved this problem in various ways, and indeed there are a nearly infinite variety of ways to work with externally stored data. The trick is to have one that's easy enough to use that newcomers will love it, but which handles enough of a variety of data store types to make it useful for experienced developers. Factoring code, data, and presentation is old hat, something we've all had to learn at some point so we can update our apps efficiently. It's that latter part -- supporting an unknowable variety of different data stores -- that was the solution that came out of the meeting last night. More on that later. :) Today I have a client deadline to meet, but next week I should be in a position to spend a couple hours fleshing out a prototype for discussion in the Rev Interoperability Group.... -- 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 Fri Jan 6 16:35:43 2012 From: bobs at twft.com (Bob Sneidar) Date: Fri, 6 Jan 2012 13:35:43 -0800 Subject: SoCal LUG meeting: 2 February in Pasadena In-Reply-To: <4F076560.300@fourthworld.com> References: <4F076560.300@fourthworld.com> Message-ID: <1AF51A29-E51B-459D-8840-5D1031C9D551@twft.com> On Jan 6, 2012, at 1:19 PM, Richard Gaskin wrote: > Andre Garzia wrote: > > > On Fri, Jan 6, 2012 at 2:09 PM, Richard Gaskin wrote: > > > >> Many thanks to all who attended last night's LiveCode User > >> Group meeting in Pasadena. It was a lot of fun, and even > >> with all the talk of trains TRAINS?? You guys like TRAINS????? Bob From bobs at twft.com Fri Jan 6 16:40:00 2012 From: bobs at twft.com (Bob Sneidar) Date: Fri, 6 Jan 2012 13:40:00 -0800 Subject: SoCal LUG meeting: 2 February in Pasadena In-Reply-To: <4F076560.300@fourthworld.com> References: <4F076560.300@fourthworld.com> Message-ID: I am developing an app which as I go is really an application development framework for building data driven applications. Maybe next time you guys meet I will bring it by and demo it. It's pretty cool in concept, but would need a lot of polishing to be usable as a general purpose tool. A couple major features include a database connection card, a dropField module which drops fields, buttons and menus based on a table from the database schema, and a validation module where you can enable and disable a series of validations foe each field. Bob On Jan 6, 2012, at 1:19 PM, Richard Gaskin wrote: > Andre Garzia wrote: > > > On Fri, Jan 6, 2012 at 2:09 PM, Richard Gaskin wrote: > > > >> Many thanks to all who attended last night's LiveCode User > >> Group meeting in Pasadena. It was a lot of fun, and even > >> with all the talk of trains we managed to get some design > >> work started on what will hopefully be a new library for > >> the LiveCode community - more on that later. > > > > I am curious!!! what library??? > > A chunk of most of our meetings is devoted to kvetching about things we'd like to see improved in LC, and last night Todd Geist noted the many times newcomers use cards for data storage, make a standalone out of it, only to later realize as a standalone it's no longer writable so it has to be rearchitected. > > We looked at this from a variety of angles, and considered the strengths and weaknesses of different ways to solve the problem, ranging from writing a new Standalone Builder to patching the IDE to even writing a new IDE. > > But as we looked at the problem more carefully we began to realize that none of those would solve the core problem, which is to keep user data storage out the stack in the first place. > > So the problem became defined as: > > How can we provide the benefits of using cards for data storage > -- with First, Next, Previous, Last, New, Delete, and more -- > without actually using cards for data storage? > > Anyone who's worked with LC for some time has solved this problem in various ways, and indeed there are a nearly infinite variety of ways to work with externally stored data. > > The trick is to have one that's easy enough to use that newcomers will love it, but which handles enough of a variety of data store types to make it useful for experienced developers. > > Factoring code, data, and presentation is old hat, something we've all had to learn at some point so we can update our apps efficiently. It's that latter part -- supporting an unknowable variety of different data stores -- that was the solution that came out of the meeting last night. > > More on that later. :) > > Today I have a client deadline to meet, but next week I should be in a position to spend a couple hours fleshing out a prototype for discussion in the Rev Interoperability Group.... > > -- > 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 m.schonewille at economy-x-talk.com Fri Jan 6 16:55:16 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Fri, 6 Jan 2012 22:55:16 +0100 Subject: Knockout Message-ID: Hi, I'm looking for a clear example showing the effect of dropShadow["knockout"]. Anyone? -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! From stephenREVOLUTION2 at barncard.com Fri Jan 6 17:09:12 2012 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Fri, 6 Jan 2012 14:09:12 -0800 Subject: SoCal LUG meeting: 2 February in Pasadena In-Reply-To: <1AF51A29-E51B-459D-8840-5D1031C9D551@twft.com> References: <4F076560.300@fourthworld.com> <1AF51A29-E51B-459D-8840-5D1031C9D551@twft.com> Message-ID: A lot of tech types like trains. You should see the AMPEX list. Right, Jerry? On 6 January 2012 13:35, Bob Sneidar wrote: > > On Jan 6, 2012, at 1:19 PM, Richard Gaskin wrote: > > > Andre Garzia wrote: > > > > > On Fri, Jan 6, 2012 at 2:09 PM, Richard Gaskin wrote: > > > > > >> Many thanks to all who attended last night's LiveCode User > > >> Group meeting in Pasadena. It was a lot of fun, and even > > >> with all the talk of trains > > TRAINS?? You guys like TRAINS????? > > 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 > -- Stephen Barncard San Francisco Ca. USA more about sqb From pete at mollysrevenge.com Fri Jan 6 18:33:56 2012 From: pete at mollysrevenge.com (Pete) Date: Fri, 6 Jan 2012 15:33:56 -0800 Subject: Tabbed Button Question Message-ID: I had expected the label property of a tabbed button to be set to the the name of the currently selected tab but apparently it's not. Is there another property of a tabbed control that contains this information or do I have to get it by using the menuHistory and text properties? -- Pete Molly's Revenge From revdev at pdslabs.net Fri Jan 6 18:47:48 2012 From: revdev at pdslabs.net (Phil Davis) Date: Fri, 06 Jan 2012 15:47:48 -0800 Subject: Tabbed Button Question In-Reply-To: References: Message-ID: <4F078824.7050007@pdslabs.net> get the selectedText of btn 1 get the selection of btn 1 Phil On 1/6/12 3:33 PM, Pete wrote: > I had expected the label property of a tabbed button to be set to the the > name of the currently selected tab but apparently it's not. Is there > another property of a tabbed control that contains this information or do I > have to get it by using the menuHistory and text properties? > > -- Phil Davis PDS Labs Professional Software Development http://pdslabs.net From pete at mollysrevenge.com Fri Jan 6 19:15:00 2012 From: pete at mollysrevenge.com (Pete) Date: Fri, 6 Jan 2012 16:15:00 -0800 Subject: Tabbed Button Question In-Reply-To: <4F078824.7050007@pdslabs.net> References: <4F078824.7050007@pdslabs.net> Message-ID: Thanks Phil. I'd never have guessed that - it's not even listed as a property of a button in the dictionary! On Fri, Jan 6, 2012 at 3:47 PM, Phil Davis wrote: > get the selectedText of btn 1 > get the selection of btn 1 > > Phil > > > > On 1/6/12 3:33 PM, Pete wrote: > >> I had expected the label property of a tabbed button to be set to the the >> name of the currently selected tab but apparently it's not. Is there >> another property of a tabbed control that contains this information or do >> I >> have to get it by using the menuHistory and text properties? >> >> >> > -- > 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 > > -- Pete Molly's Revenge From jhj at jhj.com Fri Jan 6 19:28:36 2012 From: jhj at jhj.com (Jerry Jensen) Date: Fri, 6 Jan 2012 16:28:36 -0800 Subject: SoCal LUG meeting: 2 February in Pasadena In-Reply-To: References: <4F076560.300@fourthworld.com> <1AF51A29-E51B-459D-8840-5D1031C9D551@twft.com> Message-ID: <955923F1-8A45-49FA-AFE7-CC0BBFB1EAA9@jhj.com> No toots for me (except Toots Thielemans) but a lot of those guys really go for it. Big ones, little ones, upside down with magnetics, instrumentation reporting to custom apps. On Jan 6, 2012, at 2:09 PM, stephen barncard wrote: > A lot of tech types like trains. You should see the AMPEX list. Right, > Jerry? > > On 6 January 2012 13:35, Bob Sneidar wrote: > >> >> On Jan 6, 2012, at 1:19 PM, Richard Gaskin wrote: >> >>> Andre Garzia wrote: >>> >>>> On Fri, Jan 6, 2012 at 2:09 PM, Richard Gaskin wrote: >>>> >>>>> Many thanks to all who attended last night's LiveCode User >>>>> Group meeting in Pasadena. It was a lot of fun, and even >>>>> with all the talk of trains >> >> TRAINS?? You guys like TRAINS????? >> >> 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 >> > > > > -- > > > > 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 alanira9 at mac.com Fri Jan 6 20:11:53 2012 From: alanira9 at mac.com (Alan Gayne) Date: Fri, 06 Jan 2012 20:11:53 -0500 Subject: Trying to edit the script of field in one stack from a different (dialog) stack Message-ID: <46701958-3532-4D87-84E1-FE4BEB658002@mac.com> Happy New Year everyone. I have working on a special dialog similar the "Field Attributes" dialog that was part of the old Reports DataPro product. In addition to editing and saving the usual field properties, I also want to be able to edit the script of the field that is referenced in the dialog stack whilst the dialog stack is open, and can't seem to get this to work. Here's what I have been doing: When the "Field Attributes" dialog is called, the long name (or long id) if the target field is put into a variable that is then used to populate a field in the dialog stack (fld "Field Identifier"). A button on the dialog named "Script?" contains this handler: on mouseUp editFldScript end mouseUp on editFldScript put fld "Field Identifier" into whichFld delete word 1 of whichFld if the environment is development then edit the script of fld whichFld end if end editFldScript But this doesn't work. Nor does any of variation of referencing the field in the main stack that I have been able to come up with. This is the error message: button "Script?": execution error at line 10 (Chunk: no such object) near "id 1264 of card id 1002 of stack "CoverHolder RLD"", char 16 The dialog stack is currently a substack of the main stack. Not sure if this makes a difference. Presuming that it is actually possible to edit the script of a field in another stack , it seems likely that the way I am referencing the field is the culprit. But after trying a lot of different reference variations, I can't seem to find one that works. If not, I could use some help with a workaround that would give me utility of a script editor whilst in the dialog stack, with the edited script being automatically stored as a custom property of the dialog stack. I have set up fld "Script Holder" in the dialog stack for the purpose of editing, and which I call with a simple "edit the script of fld 'Script Holder'", but haven't found any way to automatically set a custom property to the edited script when script editor is closed and the script is saved. I could do this after the fact with a button, but that's a far from elegant solution since it is not automatic. This would be pretty easy if there was something like a "scriptChanged", "scriptSaved or "closeScript" message generated by LiveCode, but I haven't found anything like that in the dictionary. Anyone got any ideas? Kind regards, Alan Gayne From bobs at twft.com Fri Jan 6 20:16:52 2012 From: bobs at twft.com (Bob Sneidar) Date: Fri, 6 Jan 2012 17:16:52 -0800 Subject: Tabbed Button Question In-Reply-To: References: <4F078824.7050007@pdslabs.net> Message-ID: <820E3BC0-678C-4C38-BC4F-CA9ADF3E1030@twft.com> Menus are really buttons. It's a property of a menu style button. Bob On Jan 6, 2012, at 4:15 PM, Pete wrote: > Thanks Phil. I'd never have guessed that - it's not even listed as a > property of a button in the dictionary! > > On Fri, Jan 6, 2012 at 3:47 PM, Phil Davis wrote: > >> get the selectedText of btn 1 >> get the selection of btn 1 >> >> Phil >> >> >> >> On 1/6/12 3:33 PM, Pete wrote: >> >>> I had expected the label property of a tabbed button to be set to the the >>> name of the currently selected tab but apparently it's not. Is there >>> another property of a tabbed control that contains this information or do >>> I >>> have to get it by using the menuHistory and text properties? >>> >>> >>> >> -- >> 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 >> >> > > > -- > 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 bobs at twft.com Fri Jan 6 20:21:42 2012 From: bobs at twft.com (Bob Sneidar) Date: Fri, 6 Jan 2012 17:21:42 -0800 Subject: Trying to edit the script of field in one stack from a different (dialog) stack In-Reply-To: <46701958-3532-4D87-84E1-FE4BEB658002@mac.com> References: <46701958-3532-4D87-84E1-FE4BEB658002@mac.com> Message-ID: <7343CF59-3179-4DD0-8D2B-72A5E8E758E9@twft.com> Get the long ID of the field and work with that. Bob On Jan 6, 2012, at 5:11 PM, Alan Gayne wrote: > Happy New Year everyone. > > I have working on a special dialog similar the "Field Attributes" dialog that was part of the old Reports DataPro product. > > In addition to editing and saving the usual field properties, I also want to be able to edit the script of the field that is referenced in the dialog stack whilst the dialog stack is open, and can't seem to get this to work. > > Here's what I have been doing: When the "Field Attributes" dialog is called, the long name (or long id) if the target field is put into a variable that is then used to populate a field in the dialog stack (fld "Field Identifier"). > > A button on the dialog named "Script?" contains this handler: > > on mouseUp > editFldScript > end mouseUp > > on editFldScript > put fld "Field Identifier" into whichFld > delete word 1 of whichFld > if the environment is development then > edit the script of fld whichFld > end if > end editFldScript > > But this doesn't work. Nor does any of variation of referencing the field in the main stack that I have been able to come up with. > > This is the error message: > > button "Script?": execution error at line 10 (Chunk: no such object) near "id 1264 of card id 1002 of stack "CoverHolder RLD"", char 16 > > The dialog stack is currently a substack of the main stack. Not sure if this makes a difference. > > Presuming that it is actually possible to edit the script of a field in another stack , it seems likely that the way I am referencing the field is the culprit. But after trying a lot of different reference variations, I can't seem to find one that works. > > If not, I could use some help with a workaround that would give me utility of a script editor whilst in the dialog stack, with the edited script being automatically stored as a custom property of the dialog stack. > > I have set up fld "Script Holder" in the dialog stack for the purpose of editing, and which I call with a simple "edit the script of fld 'Script Holder'", but haven't found any way to automatically set a custom property to the edited script when script editor is closed and the script is saved. I could do this after the fact with a button, but that's a far from elegant solution since it is not automatic. > > This would be pretty easy if there was something like a "scriptChanged", "scriptSaved or "closeScript" message generated by LiveCode, but I haven't found anything like that in the dictionary. > > Anyone got any ideas? > > Kind regards, > Alan Gayne > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From niconiko at gmail.com Sat Jan 7 03:06:24 2012 From: niconiko at gmail.com (Nicolas Cueto) Date: Sat, 7 Jan 2012 17:06:24 +0900 Subject: prob with Rotunda's CallPHP [was Re: Sending hundreds of eMails] Message-ID: Hello David, Thanks for CallPHP. A problem, though. In the callPHP stack, not all the demos work. What works: "StripTags" What doesn't: "AddNumbers" and "GetArrayAsString" Here verbatim (except for the url path) is the error returned by the callPHP stack (in callPHPRes) for both "AddNumbers" and "GetArrayAsString": //////////////////////////////////////////////////////////////////////////////////// A server side error occurred: Warning: gzinflate() [function.gzinflate]: data error in /urlPath/processCallPHPRequest.php on line 260 Fatal error: Call to undefined function PUB_() in /urlPath/processCallPHPRequest.php(53): runtime-created function on line 1 ///////////////////////////////////////////////////////////////////////////////// I appreciate that callPHP is free, and understand if you don't have the time to figure out the problem. Thanks. -- Nicolas Cueto From 3mcgrath at comcast.net Sat Jan 7 11:08:48 2012 From: 3mcgrath at comcast.net (Thomas McGrath III) Date: Sat, 7 Jan 2012 11:08:48 -0500 Subject: iOS print card with graphic effects bug entered Message-ID: <4E1EBB83-60F4-44A4-9C5F-14B16D49A7C8@comcast.net> I entered a bug report for printing cards with graphic effects on iOS devices causing a crash. Report #9946 print card crashes with graphic effects I spent three days tracking down this bug to what was causing it. At first I thought it was the external for printing on iOS but then with help finally figured out the cause. The workaround is to export a snap shot of the card into a variable (instead of print to pdf / print card) and then use the external used in rreHardcopy to print the snap shot from the variable. Here is the code I am calling from within a Share button: on doPNGPrint doStartActivityIndicator if not rreHardcopyIsAvailable() then answer "Printing is not available at this time." titled "Printing Error" exit to top end if put "MinStickerFreePlay" into tPrintJob export snapshot from rect (the rect of graphic "Scene") of this card to tPNG as PNG put tPNG into URL ("file:" & specialFolderPath("documents") & "/MinStickerFreePlay.png") doStopActivityIndicator put specialFolderPath("Documents") & slash & "MinStickerFreePlay.png" into tPDFFile rreHardcopyPrintPDF tPDFFile, tPrintJob if the result = "printing cancelled" then exit to top end if end doPNGPrint -- Tom McGrath III http://lazyriver.on-rev.com 3mcgrath at comcast.net From mcgrath3 at mac.com Sat Jan 7 11:10:01 2012 From: mcgrath3 at mac.com (Thomas McGrath III) Date: Sat, 07 Jan 2012 11:10:01 -0500 Subject: Knockout In-Reply-To: References: Message-ID: <75C133F3-DE2F-416A-BCE3-76CA4EB08163@mac.com> Mark I have not been able to figure out a clear example of knockout. It does not seem to make any difference in my tests. Sorry. -- Tom McGrath III http://lazyriver.on-rev.com 3mcgrath at comcast.net On Jan 6, 2012, at 4:55 PM, Mark Schonewille wrote: > Hi, > > I'm looking for a clear example showing the effect of dropShadow["knockout"]. Anyone? > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bvlahos at mac.com Sat Jan 7 12:43:24 2012 From: bvlahos at mac.com (Bill Vlahos) Date: Sat, 07 Jan 2012 09:43:24 -0800 Subject: What are the current LiveCode issues with the Mac App Store? Message-ID: I'm thinking of publishing InfoWallet in the Mac App Store. There is some re-architecting of the app that I know about and those are easily done but I'm wondering what the more obscure areas that might trip me up. How are people working with the Apple requirements of the App Store? What has been your experiences with the whole process? Thanks, Bill Vlahos _________________ InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. From mpezzo at gmail.com Sat Jan 7 13:15:36 2012 From: mpezzo at gmail.com (AcidJazz) Date: Sat, 7 Jan 2012 10:15:36 -0800 (PST) Subject: Rotate around Center of Mass Message-ID: <1325960136367-4273701.post@n4.nabble.com> Is there a way to rotate an image around it's center of mass? I teach statistics, and one of the definitions of the mean is that it is the balance point of a distribution. I'd like to actually show a distribution "balancing" back and forth, or actually spinning around its mean. But, if I take an image of a very skewed distribution of scores (long tail) and tried to rotate it, it would rotate around the center of the /image/, which would not necessarily be the mean of the distribution. I image that the solution involves extending the size of the image so that it is now centered on the mean, but without altering or moving the actual distribution. In BlueMango's Clarify, after you take a snapshot, you can extend the size of the image without stretching the picture. I would need a way to do that programmatically so that the horizontal center is the mean of the distribution. Any suggestions?? Mark -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Rotate-around-Center-of-Mass-tp4273701p4273701.html Sent from the Revolution - User mailing list archive at Nabble.com. From jeff at siphonophore.com Sat Jan 7 13:22:37 2012 From: jeff at siphonophore.com (Jeff Reynolds) Date: Sat, 7 Jan 2012 13:22:37 -0500 Subject: SoCal LUG meeting: 2 February in Pasadena In-Reply-To: References: Message-ID: LOL, i do japanese model trains! didnt think other LCers would be into trains! but come to think about it our little japanese model train club here does have 4 software folks in it out of like 10 members! I agree the standalone ability breaking the HC card metaphor does cause big issues for beginners and looses the HC simplicity that made Hypertalk and its structure take off so well and lead to LC! Ive done all sorts of work arounds over the years and they all have their own issues. cheers jeff On Jan 7, 2012, at 1:00 PM, use-livecode-request at lists.runrev.com wrote: > A lot of tech types like trains. You should see the AMPEX list. > Right, > Jerry? From paul at researchware.com Sat Jan 7 13:36:31 2012 From: paul at researchware.com (Paul Dupuis) Date: Sat, 07 Jan 2012 13:36:31 -0500 Subject: SoCal LUG meeting: 2 February in Pasadena In-Reply-To: References: Message-ID: <4F0890AF.4050108@researchware.com> On 1/7/2012 1:22 PM, Jeff Reynolds wrote: > LOL, i do japanese model trains! didnt think other LCers would be into > trains! but come to think about it our little japanese model train > club here does have 4 software folks in it out of like 10 members! > > I agree the standalone ability breaking the HC card metaphor does > cause big issues for beginners and looses the HC simplicity that made > Hypertalk and its structure take off so well and lead to LC! Ive done > all sorts of work arounds over the years and they all have their own > issues. > > cheers > > jeff > > > On Jan 7, 2012, at 1:00 PM, use-livecode-request at lists.runrev.com wrote: > >> A lot of tech types like trains. You should see the AMPEX list. Right, >> 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 > I have a N-scale layout, modeling a generic New England (USA) setting, though I haven't worked on it in perhaps 5 years (eyesight and time being the excuses) -- Paul Dupuis Cofounder Researchware, Inc. http://www.researchware.com/ http://www.twitter.com/researchware http://www.facebook.com/researchware http://www.linkedin.com/company/researchware-inc From alanira9 at mac.com Sat Jan 7 13:38:05 2012 From: alanira9 at mac.com (Alan Gayne) Date: Sat, 07 Jan 2012 13:38:05 -0500 Subject: Trying to edit the script of field in one stack from a different (dialog) stack Message-ID: on 6 Jan 2012 17:21:42 -0800, Bob Sneidar wrote: > Get the long ID of the field and work with that. > > Bob Bob, I was sure that I tried that several times before, and had gotten the same error. But when I tried it again; sure enough it worked! I must have previously missed something obvious, but I have no idea what that might have been. In any case, I greatly appreciate the assist. Thanks Bob. Kind regards, ALAN GAYNE From m.schonewille at economy-x-talk.com Sat Jan 7 14:02:39 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sat, 7 Jan 2012 20:02:39 +0100 Subject: Rotate around Center of Mass In-Reply-To: <1325960136367-4273701.post@n4.nabble.com> References: <1325960136367-4273701.post@n4.nabble.com> Message-ID: Hi Mark, You could export a snapshot of the left and right sides of the image and "rotate" them around their right and left edges. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! On 7 jan 2012, at 19:15, AcidJazz wrote: > Is there a way to rotate an image around it's center of mass? I teach > statistics, and one of the definitions of the mean is that it is the balance > point of a distribution. I'd like to actually show a distribution > "balancing" back and forth, or actually spinning around its mean. But, if > I take an image of a very skewed distribution of scores (long tail) and > tried to rotate it, it would rotate around the center of the /image/, which > would not necessarily be the mean of the distribution. I image that the > solution involves extending the size of the image so that it is now centered > on the mean, but without altering or moving the actual distribution. In > BlueMango's Clarify, after you take a snapshot, you can extend the size of > the image without stretching the picture. I would need a way to do that > programmatically so that the horizontal center is the mean of the > distribution. Any suggestions?? > > Mark > > From henshaw at me.com Sat Jan 7 15:12:32 2012 From: henshaw at me.com (Andrew Henshaw) Date: Sat, 7 Jan 2012 20:12:32 +0000 Subject: What are the current LiveCode issues with the Mac App Store? In-Reply-To: References: Message-ID: The only issue Im aware of is the current livecode file dialogue will not work with sandboxed apps, this is required by the store after 1st March. As long as your app doesnt use the file dialogue it should be easy enough to port. There is nothing very obscure, you just have to make sure there are no trial screens etc, and no links to buy pages on your website, basically you need to give them a fully functional app and you can use their authentication systems to make sure the app has been purchased on that mac. Ive found the guys at Apple are very helpful, they have called me when there was a problem to try to work it out. Unfortunately I need the file dialogue, so it looks like Ill be leaving the store in a couple of months. Andy On 7 Jan 2012, at 17:43, Bill Vlahos wrote: > I'm thinking of publishing InfoWallet in the Mac App Store. There is some re-architecting of the app that I know about and those are easily done but I'm wondering what the more obscure areas that might trip me up. > > How are people working with the Apple requirements of the App Store? > > What has been your experiences with the whole process? > > Thanks, > Bill Vlahos > _________________ > InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jan 7 15:57:42 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sat, 7 Jan 2012 21:57:42 +0100 Subject: [ANN] Installer Maker 1.7.1 Message-ID: Hi all, I've just released a new version of Installer Maker. Installer Maker 1.7.1 contains quite a few adjustments to the pre- and post-installation scripts panel. If you are currently using IM 1.7 (or older) then it is highly recommended to update. This update is free for everyone who bought a license after 7 October. You can download Installer Maker Plugin at http://rrinstallermaker.economy-x-talk.com -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! From Mark_Smith at cpe.umanitoba.ca Sat Jan 7 16:06:30 2012 From: Mark_Smith at cpe.umanitoba.ca (Mark Smith) Date: Sat, 7 Jan 2012 13:06:30 -0800 (PST) Subject: matchChunk question In-Reply-To: References: <1325021199922-4238281.post@n4.nabble.com> <1325025343411-4238428.post@n4.nabble.com> Message-ID: <1325970390636-4274128.post@n4.nabble.com> Peter M. Brigham, MD wrote > > Any reason not to just use > > put numtochar(8) into tempDelim > replace <4-char-sequence> with tempDelim in tString > set the itemdelimiter to tempDelim > > Thanks Peter, none that I can see although I would probably write: put quote & "v" & quote & ":" into tempDelim -- i.e. a 4 char delimiter with embedded quotes replace tempDelim with tab in tString set the itemdelimiter to tab Same idea though and much easier than fussing with replacetext and regular expressions. I probably didn't think this would work because of the embedded quotes. -- Mark -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/matchChunk-question-tp4238281p4274128.html Sent from the Revolution - User mailing list archive at Nabble.com. From mike at doub.com Sat Jan 7 16:42:53 2012 From: mike at doub.com (Michael Doub) Date: Sat, 7 Jan 2012 16:42:53 -0500 Subject: the mousecolor Message-ID: <7E3A72E5-DEC9-4690-B474-806F1FB0E8DC@doub.com> Does anyone know if "the mousecolor" feature is working properly in 5.0.0? I seem to be getting random data returning that is not even close to the color being selected. Any advice as to how to capture a color within a picture not using this feature? -= Mike From m.schonewille at economy-x-talk.com Sat Jan 7 16:53:58 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sat, 7 Jan 2012 22:53:58 +0100 Subject: the mousecolor In-Reply-To: <7E3A72E5-DEC9-4690-B474-806F1FB0E8DC@doub.com> References: <7E3A72E5-DEC9-4690-B474-806F1FB0E8DC@doub.com> Message-ID: <00D8C3CB-ABD9-4080-B9F9-F79558CBFCD1@economy-x-talk.com> Hi Mike, In case you're using multiple monitors: pixel-color-related function don't work with multiple monitors. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! On 7 jan 2012, at 22:42, Michael Doub wrote: > Does anyone know if "the mousecolor" feature is working properly in 5.0.0? I seem to be getting random data returning that is not even close to the color being selected. > > Any advice as to how to capture a color within a picture not using this feature? > > -= Mike From scott at tactilemedia.com Sat Jan 7 17:08:04 2012 From: scott at tactilemedia.com (Scott Rossi) Date: Sat, 07 Jan 2012 14:08:04 -0800 Subject: the mousecolor In-Reply-To: <7E3A72E5-DEC9-4690-B474-806F1FB0E8DC@doub.com> Message-ID: Can you test in 5.0.2? I believe 5.0.0 has some minor display issues -- not sure if the mouseColor is one of them, but it seems to be working correctly here in 5.0.2 Regards, Scott Rossi Creative Director Tactile Media, UX Design Recently, Michael Doub wrote: > Does anyone know if "the mousecolor" feature is working properly in 5.0.0? > I seem to be getting random data returning that is not even close to the color > being selected. > > Any advice as to how to capture a color within a picture not using this > feature? > > -= Mike > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From mike at doub.com Sat Jan 7 17:39:20 2012 From: mike at doub.com (Michael Doub) Date: Sat, 7 Jan 2012 17:39:20 -0500 Subject: the mousecolor In-Reply-To: <7E3A72E5-DEC9-4690-B474-806F1FB0E8DC@doub.com> References: <7E3A72E5-DEC9-4690-B474-806F1FB0E8DC@doub.com> Message-ID: I am using 5.0.2 on a mac. Scott, are you using a PC? -= Mike On 2012-01-07, at 4:42 PM, Michael Doub wrote: > Does anyone know if "the mousecolor" feature is working properly in 5.0.0? I seem to be getting random data returning that is not even close to the color being selected. > > Any advice as to how to capture a color within a picture not using this feature? > > -= Mike > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From Mike at Doub.com Sat Jan 7 17:42:04 2012 From: Mike at Doub.com (Michael Doub) Date: Sat, 7 Jan 2012 17:42:04 -0500 Subject: the mousecolor In-Reply-To: <7E3A72E5-DEC9-4690-B474-806F1FB0E8DC@doub.com> References: <7E3A72E5-DEC9-4690-B474-806F1FB0E8DC@doub.com> Message-ID: <2ECC3061-8690-499A-B9CB-C3DE8BC6188D@Doub.com> Just to clarify, I am getting the seemingly random color data being return from the mousecolor on 5.0.2 on an intel based mac. -= Mike On 2012-01-07, at 4:42 PM, Michael Doub wrote: > Does anyone know if "the mousecolor" feature is working properly in 5.0.0? I seem to be getting random data returning that is not even close to the color being selected. > > Any advice as to how to capture a color within a picture not using this feature? > > -= Mike > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sat Jan 7 17:57:14 2012 From: scott at tactilemedia.com (Scott Rossi) Date: Sat, 07 Jan 2012 14:57:14 -0800 Subject: the mousecolor Message-ID: <1to9eptovyy5ab3tj6ip2g5x.1325977034315@email.android.com> Mac 10.6.8 Maybe a Lion thing?... Regards, Scott Rossi Creative Director Tactile Media, UX Design -------- Original message -------- Subject: Re: the mousecolor From: Michael Doub To: How to use LiveCode CC: I am using 5.0.2 on a mac. Scott, are you using a PC? -= Mike On 2012-01-07, at 4:42 PM, Michael Doub wrote: > Does anyone know if "the mousecolor" feature is working properly in 5.0.0???? I seem to be getting random data returning that is not even close to the color being selected. > > Any advice as to how to capture a color within a picture not using this feature? > > -= Mike > _______________________________________________ > use-livecode mailing list > use-livecode 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 Sat Jan 7 18:02:13 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 07 Jan 2012 17:02:13 -0600 Subject: the mousecolor In-Reply-To: <2ECC3061-8690-499A-B9CB-C3DE8BC6188D@Doub.com> References: <7E3A72E5-DEC9-4690-B474-806F1FB0E8DC@doub.com> <2ECC3061-8690-499A-B9CB-C3DE8BC6188D@Doub.com> Message-ID: <4F08CEF5.2000001@hyperactivesw.com> On 1/7/12 4:42 PM, Michael Doub wrote: > Just to clarify, I am getting the seemingly random color data being > return from the mousecolor on 5.0.2 on an intel based mac. I'm on 5.0.2 on an Intel iMac, it seems to be working here okay. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Sat Jan 7 18:03:35 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 07 Jan 2012 17:03:35 -0600 Subject: the mousecolor In-Reply-To: <1to9eptovyy5ab3tj6ip2g5x.1325977034315@email.android.com> References: <1to9eptovyy5ab3tj6ip2g5x.1325977034315@email.android.com> Message-ID: <4F08CF47.9000302@hyperactivesw.com> On 1/7/12 4:57 PM, Scott Rossi wrote: > Mac 10.6.8 > > Maybe a Lion thing?... That's a thought. I'm on Snow Leopard. It works there. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From capellan2000 at gmail.com Sat Jan 7 18:30:22 2012 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Sat, 7 Jan 2012 15:30:22 -0800 (PST) Subject: Stack to read offline the LiveCode Forum In-Reply-To: <4F076051.3060906@fourthworld.com> References: <1325881246904-4270704.post@n4.nabble.com> <4F076051.3060906@fourthworld.com> Message-ID: <1325979022085-4274530.post@n4.nabble.com> Hi Richard, Richard Gaskin wrote > > I believe Mark Stuart has such a critter. > If it's not in RevOnline perhaps he can chime in here with a URL... > This would be great! Hopefully, this stack allows to store the messages in my hard disk. By the way, I noticed that sometimes spammers get their way to the forum: (Read the last message) http://forums.runrev.com/viewtopic.php?f=18&t=1413 Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Stack-to-read-offline-the-LiveCode-Forum-tp4270704p4274530.html Sent from the Revolution - User mailing list archive at Nabble.com. From ambassador at fourthworld.com Sat Jan 7 19:17:47 2012 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 07 Jan 2012 16:17:47 -0800 Subject: Stack to read offline the LiveCode Forum In-Reply-To: <1325979022085-4274530.post@n4.nabble.com> References: <1325979022085-4274530.post@n4.nabble.com> Message-ID: <4F08E0AB.3070202@fourthworld.com> Alejandro Tejada wrote: > By the way, I noticed that sometimes spammers > get their way to the forum: (Read the last message) > http://forums.runrev.com/viewtopic.php?f=18&t=1413 Happens every day in almost every forum. Just use the Flag feature to flag to post, and I or one of the other moderators will delete it next time we drop in. Thanks - -- 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 mike at doub.com Sat Jan 7 19:21:43 2012 From: mike at doub.com (Michael Doub) Date: Sat, 7 Jan 2012 19:21:43 -0500 Subject: the mousecolor In-Reply-To: <4F08CF47.9000302@hyperactivesw.com> References: <1to9eptovyy5ab3tj6ip2g5x.1325977034315@email.android.com> <4F08CF47.9000302@hyperactivesw.com> Message-ID: <188B1069-10CD-47BA-85FA-CB4C55A82EBD@doub.com> i am on mac 10.7.2 where I see the problem I just updated my PC to windows 7 and it seems to be working on that system, but the cursor is constrained to only the livecode windows. Is there a way to capture the mousecolor outside of the livecode windows? I am setting lockcursor to true. There is definitely a behaviour difference between my mac and PC. -= Mike On 2012-01-07, at 6:03 PM, J. Landman Gay wrote: > On 1/7/12 4:57 PM, Scott Rossi wrote: >> Mac 10.6.8 >> >> Maybe a Lion thing?... > > That's a thought. I'm on Snow Leopard. It works there. > > -- > 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 martyknapp at comcast.net Sat Jan 7 23:13:48 2012 From: martyknapp at comcast.net (Marty Knapp) Date: Sat, 07 Jan 2012 20:13:48 -0800 Subject: What are the current LiveCode issues with the Mac App Store? In-Reply-To: References: Message-ID: <4F0917FC.4020301@comcast.net> Hey Andrew, Out of curiosity, what's the issue with the file dialogue? Are there other sandbox issues that you know of? Thanks, Marty > The only issue Im aware of is the current livecode file dialogue will not work with sandboxed apps, this is required by the store after 1st March. > > As long as your app doesnt use the file dialogue it should be easy enough to port. > > There is nothing very obscure, you just have to make sure there are no trial screens etc, and no links to buy pages on your website, basically you need to give them a fully functional app and you can use their authentication systems to make sure the app has been purchased on that mac. Ive found > the guys at Apple are very helpful, they have called me when there was a problem to try to work it out. > > Unfortunately I need the file dialogue, so it looks like Ill be leaving the store in a couple of months. > > Andy > > > > On 7 Jan 2012, at 17:43, Bill Vlahos wrote: > >> I'm thinking of publishing InfoWallet in the Mac App Store. There is some re-architecting of the app that I know about and those are easily done but I'm wondering what the more obscure areas that might trip me up. >> >> How are people working with the Apple requirements of the App Store? >> >> What has been your experiences with the whole process? >> >> Thanks, >> Bill Vlahos From bvlahos at mac.com Sat Jan 7 23:59:36 2012 From: bvlahos at mac.com (Bill Vlahos) Date: Sat, 07 Jan 2012 20:59:36 -0800 Subject: How do I clone an embedded stack? Message-ID: <582A9985-19A6-4E29-855E-6F2DBC30D2ED@mac.com> I know how to clone a stack that exists on disk: clone stack ("path to file on disk") I want to embed the stack in a custom property of the main stack and clone it from there. Lets say the stack name is "template.rev" and I add it to the uTemplate of this stack. What would be the clone command syntax for this? Thanks, Bill Vlahos _________________ InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. From scott at tactilemedia.com Sun Jan 8 00:23:00 2012 From: scott at tactilemedia.com (Scott Rossi) Date: Sat, 07 Jan 2012 21:23:00 -0800 Subject: the mousecolor In-Reply-To: <188B1069-10CD-47BA-85FA-CB4C55A82EBD@doub.com> Message-ID: That seems wrong, like something else is going on. Mark S is right, going across multiple monitors seems to fail, but you should be able to grab color from anywhere on the screen, not just within LC windows. Have you tried to make a simple test stack/script that only grabs the mouseColor? Regards, Scott Rossi Creative Director Tactile Media, UX Design Recently, Michael Doub wrote: > i am on mac 10.7.2 where I see the problem > > I just updated my PC to windows 7 and it seems to be working on that system, > but the cursor is constrained to only the livecode windows. Is there a way > to capture the mousecolor outside of the livecode windows? I am setting > lockcursor to true. > > There is definitely a behaviour difference between my mac and PC. > > -= Mike > > > > On 2012-01-07, at 6:03 PM, J. Landman Gay wrote: > >> On 1/7/12 4:57 PM, Scott Rossi wrote: >>> Mac 10.6.8 >>> >>> Maybe a Lion thing?... >> >> That's a thought. I'm on Snow Leopard. It works there. >> >> -- >> 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 Sun Jan 8 00:46:01 2012 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Sat, 7 Jan 2012 21:46:01 -0800 Subject: How do I clone an embedded stack? In-Reply-To: <582A9985-19A6-4E29-855E-6F2DBC30D2ED@mac.com> References: <582A9985-19A6-4E29-855E-6F2DBC30D2ED@mac.com> Message-ID: I did this for fonts, and somewhere I have code that creates a new prefs stack. Here's the one for fonts. Same idea. Not really 'cloning' but 'storing the file conveniently. Thanks to Ken Ray for this. ON suckUp pFilePath -- this puts a binary file into a custom property set for fonts put long name of stack "chateau" into tStackForImbedding IF pFilePath is empty THEN answer file "Choose a font to embed:" IF it is empty THEN exit to top put it into pFilePath END IF set itemdel to "/" put last item of pFilePath into tShortFileName set the uFONTBins[tShortFileName] of tStackForImbedding to URL ("binfile:" & pFilePath) END suckUp ON spitOut pFolderPath -- used to put out binaries from a custom property IF pFolderPath is empty THEN answer folder "Folder to store font:" IF it is empty THEN exit to top END IF put the uFileName of this card into tFileName put pFolderPath &"/"& tFileName into tFilePath put the uEmbeddedFile of this card into URL ("binfile:" & tFilePath) END spitOut On 7 January 2012 20:59, Bill Vlahos wrote: > I know how to clone a stack that exists on disk: > clone stack ("path to file on disk") > > I want to embed the stack in a custom property of the main stack and clone > it from there. Lets say the stack name is "template.rev" and I add it to > the uTemplate of this stack. > > What would be the clone command syntax for this? > > Thanks, > Bill Vlahos > _________________ > InfoWallet (http://www.infowallet.com) is about keeping your important > life information with you, accessible, and secure. > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 lan.kc.macmail at gmail.com Sun Jan 8 02:57:23 2012 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Sun, 8 Jan 2012 15:57:23 +0800 Subject: [OT] Bill and Eric - not forgotten Message-ID: Bill, thanks for giving RunRev a quality control kick in the pants. Thanks Eric for all those free tutorials and the matching Tutorial Picker. For those who have no clue what I'm writing about, trust me when I say your LC experience has been vastly improved by the involvement of the these two men in the Rev community. They maybe gone, but they are certainly not forgotten. See you on the other side. From sc at sahores-conseil.com Sun Jan 8 06:03:48 2012 From: sc at sahores-conseil.com (Pierre Sahores) Date: Sun, 8 Jan 2012 12:03:48 +0100 Subject: [OT] Bill and Eric - not forgotten In-Reply-To: References: Message-ID: <018B99D2-14F5-468E-B58C-B890B92AD87D@sahores-conseil.com> Before he went the Hypercard and Rev mentor and kind fellow we knowed, Eric went, in betwin other arts dedicated involvments, along its XTalk dedicated researchs and works, an architect, a musical critic for the french France Culture radio. He went havarded from l'Ecole des Hautes Etudes Commerciales de Jouy en Josas and from l'Ecole Nationale Sup?rieure d'Architecture de Paris. He came from a family involved in the steel and oil industry. Le 8 janv. 2012 ? 08:57, Kay C Lan a ?crit : > Bill, thanks for giving RunRev a quality control kick in the pants. > > Thanks Eric for all those free tutorials and the matching Tutorial Picker. > > For those who have no clue what I'm writing about, trust me when I say your > LC experience has been vastly improved by the involvement of the these two > men in the Rev community. > > They maybe gone, but they are certainly not forgotten. > > See you on the other side. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com From rene.micout at numericable.com Sun Jan 8 06:28:11 2012 From: rene.micout at numericable.com (=?iso-8859-1?Q?Ren=E9_Micout?=) Date: Sun, 8 Jan 2012 12:28:11 +0100 Subject: [OT] Bill and Eric - not forgotten In-Reply-To: References: Message-ID: <75965E1A-8EED-4F55-A6B4-0C7B7873C39A@numericable.com> To see an old but great Eric's production : http://grrrab.it/op31tf Le 8 janv. 2012 ? 08:57, Kay C Lan a ?crit : > Bill, thanks for giving RunRev a quality control kick in the pants. > > Thanks Eric for all those free tutorials and the matching Tutorial Picker. > > For those who have no clue what I'm writing about, trust me when I say your > LC experience has been vastly improved by the involvement of the these two > men in the Rev community. > > They maybe gone, but they are certainly not forgotten. > > See you on the other side. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mike at doub.com Sun Jan 8 07:27:36 2012 From: mike at doub.com (Michael Doub) Date: Sun, 8 Jan 2012 07:27:36 -0500 Subject: the mousecolor In-Reply-To: References: Message-ID: Scott, My app is pretty simple. 2 graphic objects, one called "Big" the other called "Little". I have double checked and the cursor switches from cross to arrow when you leave the stack window and mousecolor stops. -= Mike On Mousemove set the cursor to cross set the lockCursor to true set the backgroundcolor of graphic "Little" to the mousecolor end Mousemove on RawKeyDown thekey set the backgroundcolor of graphic "Big" to the backgroundcolor of graphic "Little" pass RawKeyDown end RawKeyDown on CloseStack set the lockCursor to false end CloseStack On 2012-01-08, at 12:23 AM, Scott Rossi wrote: > That seems wrong, like something else is going on. Mark S is right, going > across multiple monitors seems to fail, but you should be able to grab color > from anywhere on the screen, not just within LC windows. > > Have you tried to make a simple test stack/script that only grabs the > mouseColor? > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX Design > > > > Recently, Michael Doub wrote: > >> i am on mac 10.7.2 where I see the problem >> >> I just updated my PC to windows 7 and it seems to be working on that system, >> but the cursor is constrained to only the livecode windows. Is there a way >> to capture the mousecolor outside of the livecode windows? I am setting >> lockcursor to true. >> >> There is definitely a behaviour difference between my mac and PC. >> >> -= Mike >> >> >> >> On 2012-01-07, at 6:03 PM, J. Landman Gay wrote: >> >>> On 1/7/12 4:57 PM, Scott Rossi wrote: >>>> Mac 10.6.8 >>>> >>>> Maybe a Lion thing?... >>> >>> That's a thought. I'm on Snow Leopard. It works there. >>> >>> -- >>> 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 > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sun Jan 8 07:35:42 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sun, 8 Jan 2012 13:35:42 +0100 Subject: How do I clone an embedded stack? In-Reply-To: <582A9985-19A6-4E29-855E-6F2DBC30D2ED@mac.com> References: <582A9985-19A6-4E29-855E-6F2DBC30D2ED@mac.com> Message-ID: <67C12311-2DF8-4EEB-922A-9A3BC86F30CF@economy-x-talk.com> Hi Bill, If you have your stack in a custom property, you can create a new stack in memory by simply going to that custom property. This means you don't need to clone the stack. Changing the name is enough. go to stack the cTemplate of stack "Your Main Stack" put "Template" && the millisecs into myNewName set the name of stack "Template" to myNewName Use the name to refer to the stack in memory and change its title to make it look nice. You can repeat this as many times as you like. Note that the name of your stack in memory usually doesn't include the .rev file extension and also note that file names and stack names may be different. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! On 8 jan 2012, at 05:59, Bill Vlahos wrote: > I know how to clone a stack that exists on disk: > clone stack ("path to file on disk") > > I want to embed the stack in a custom property of the main stack and clone it from there. Lets say the stack name is "template.rev" and I add it to the uTemplate of this stack. > > What would be the clone command syntax for this? > > Thanks, > Bill Vlahos From pmbrig at gmail.com Sun Jan 8 09:11:50 2012 From: pmbrig at gmail.com (Peter M. Brigham, MD) Date: Sun, 8 Jan 2012 09:11:50 -0500 Subject: matchChunk question In-Reply-To: <1325970390636-4274128.post@n4.nabble.com> References: <1325021199922-4238281.post@n4.nabble.com> <1325025343411-4238428.post@n4.nabble.com> <1325970390636-4274128.post@n4.nabble.com> Message-ID: <2BD03C39-F160-4019-8FA8-A7BF4B49B19C@gmail.com> On Jan 7, 2012, at 4:06 PM, Mark Smith wrote: > > Peter M. Brigham, MD wrote > >> Any reason not to just use >> >> put numtochar(8) into tempDelim >> replace <4-char-sequence> with tempDelim in tString >> set the itemdelimiter to tempDelim > > Thanks Peter, none that I can see although I would probably write: > > put quote & "v" & quote & ":" into tempDelim -- i.e. a 4 char delimiter with > embedded quotes > replace tempDelim with tab in tString > set the itemdelimiter to tab > > Same idea though and much easier than fussing with replacetext and regular > expressions. I probably didn't think this would work because of the embedded > quotes. Same idea. I replace with a character that would not be found in any text string. Your version will work as long as there are no tabs already in your text. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From bdrunrev at gmail.com Sun Jan 8 09:13:10 2012 From: bdrunrev at gmail.com (Bernard Devlin) Date: Sun, 8 Jan 2012 14:13:10 +0000 Subject: [OT] Bill and Eric - not forgotten In-Reply-To: <75965E1A-8EED-4F55-A6B4-0C7B7873C39A@numericable.com> References: <75965E1A-8EED-4F55-A6B4-0C7B7873C39A@numericable.com> Message-ID: Indeed. I was just last week considering buying a copy of one of Eric's books on Hypercard, even though I don't speak French! I think of Eric often. He was not only knowledgeable, but kind and modest. I regret never having met him personally. A few days ago I was looking at his ListMagic, which some of you will remember preceded the DataGrid. It was amazing what he managed to achieve based on a single field object. The DataGrid has come along to replace Eric's work, but I'm sure Eric would have been delighted to see that such a control could be built from combining existing controls. I like to remind myself that we should also appreciate those on this list who also contribute greatly to the furtherance of this community and this programming paradigm. I won't start to list names, because I'll be sure to forget someone. Let's remember Eric and Bill and Mark who are no longer with us. But be glad too that this community is suffused with so many knowledgeable and helpful people. I've been involved here for about a decade, and I've seen new youngsters come along who are also kind and helpful and knowledgeable. It is a great community. I'm glad someone else thought to write remembering people like Eric. I had wanted to do this last week, but thought maybe I was just too sentimental. Bernard On Sun, Jan 8, 2012 at 11:28 AM, Ren? Micout wrote: > To see an old but great Eric's production : > > http://grrrab.it/op31tf > From henshaw at me.com Sun Jan 8 12:27:22 2012 From: henshaw at me.com (Andrew Henshaw) Date: Sun, 8 Jan 2012 17:27:22 +0000 Subject: What are the current LiveCode issues with the Mac App Store? In-Reply-To: <4F0917FC.4020301@comcast.net> References: <4F0917FC.4020301@comcast.net> Message-ID: Unfortunately the file dialogue just doesn't work after you sandbox an Mac app. If you monitor the console an error is flagged as the file manager is denied access to the system and when the user then selects anything in the dialogue the returned variable / path is empty. Apart from that, everything else seems fine or can be worked around by adding an exception rule to the entitlements file so its not a blocker, but the file dialogue is a bit of a dead end at the moment. The only other real issue is all your files get stored in the sandbox (of course). You can tell the system to put them in documents, and it just puts them in a documents folder, in the sandbox. For existing upgrades you can add a migration file to the package so the first time it runs it moves any files you select from documents etc into the sandboxed area ready for the app. Its quite easy to actually try the sandboxing and then run your app. Watch the errors in the console to see what you need to add an exception for. If you already build for the Mac App Store its simply a case of adding the appname.entitlements file and running a slight modified codesigning command. Andy On 8 Jan 2012, at 04:13, Marty Knapp wrote: > Hey Andrew, > Out of curiosity, what's the issue with the file dialogue? Are there other sandbox issues that you know of? > > Thanks, > Marty >> The only issue Im aware of is the current livecode file dialogue will not work with sandboxed apps, this is required by the store after 1st March. >> >> As long as your app doesnt use the file dialogue it should be easy enough to port. >> >> There is nothing very obscure, you just have to make sure there are no trial screens etc, and no links to buy pages on your website, basically you need to give them a fully functional app and you can use their authentication systems to make sure the app has been purchased on that mac. Ive found >> the guys at Apple are very helpful, they have called me when there was a problem to try to work it out. >> >> Unfortunately I need the file dialogue, so it looks like Ill be leaving the store in a couple of months. >> >> Andy >> >> >> >> On 7 Jan 2012, at 17:43, Bill Vlahos wrote: >> >>> I'm thinking of publishing InfoWallet in the Mac App Store. There is some re-architecting of the app that I know about and those are easily done but I'm wondering what the more obscure areas that might trip me up. >>> >>> How are people working with the Apple requirements of the App Store? >>> >>> What has been your experiences with the whole process? >>> >>> Thanks, >>> Bill Vlahos > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sun Jan 8 12:37:07 2012 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Sun, 8 Jan 2012 09:37:07 -0800 Subject: [OT] Bill and Eric - not forgotten In-Reply-To: References: <75965E1A-8EED-4F55-A6B4-0C7B7873C39A@numericable.com> Message-ID: While we're talking about departed Rev contributors, we should not forget Mark Smith, who delved into spec sheets to bring us libJson, libUUID, id3Lib (tagging), libAWS, libRevCurl, and his audio waveform experiments. He quietly offered these items but didn't self aggrandize - in fact he was so quiet about this stuff that many today do not know about these useful tools he created. On 8 January 2012 06:13, Bernard Devlin wrote: > Indeed. I was just last week considering buying a copy of one of > Eric's books on Hypercard, even though I don't speak French! I think > Stephen Barncard San Francisco Ca. USA more about sqb From livfoss at mac.com Sun Jan 8 13:27:34 2012 From: livfoss at mac.com (Graham Samuel) Date: Sun, 08 Jan 2012 19:27:34 +0100 Subject: Can't set Developer Root for iOS in LiveCode Prefs Message-ID: <0E7C2F40-A268-4369-810C-769B8EF30653@mac.com> I originally sent this query a couple of days ago but it hasn't turned up in the digest AFAICS, so I'm sending it again: I am stumbling towards developing my first IOS app, but I am having huge difficulties getting started. First, I couldn't update XCode to the version that includes IOS 5 (and Apple were totally unhelpful). Thanks to Colin Holgate on this list, I did the update by getting rid of the previous version and getting the latest from the Apple App Store, then running Install XCode twice (!!!) to make sure that there's a version of IOS 5 in there somewhere. I have the following System Information: Version: 4.2.1 (4D502) Location: /Developer Applications: Xcode: 4.2.1 (834) Instruments: 4.2 (4233) Dashcode: 3.0.2 (336) SDKs: Mac OS X: 10.6: (10K549) 10.7: (11C63) iPhone OS: 5.0: (9A334) iPhone Simulator: 5.0: (9A334) So, there it is. Next I tried to follow the RunRev lesson "How do I become an IOS Developer". This tells you to set the location of the developer for IOS 5.0 root in the preferences of LiveCode (I'm using 5.0.2 on a Mac with Lion 10.7.2). It suggests that this will be in /Developer/Platforms/iPhoneSimulator.platform/Developer/Applications Well, this directory exists (and contains one item 'iOS Simulator' 5.0), but I keep getting this error message from LC: "The chosen folder is not a valid iOS SDK for 5.0 and later. It must be one that ships with XCode 4.2 or later." My version of XCode is 4.2.1, BTW. I am not very clear what LC is looking for but I've tried choosing other parts of the structure with no result. So, something is missing or I'm doing something wrong. Since every member of this list who has worked on an IOS project must have passed this point, I feel an idiot. I hope someone can help. TIA Graham From dfepstein at comcast.net Sun Jan 8 14:20:04 2012 From: dfepstein at comcast.net (David Epstein) Date: Sun, 8 Jan 2012 14:20:04 -0500 Subject: AltIDs In-Reply-To: References: Message-ID: <246192A8-BED4-44E7-BA8B-48E798E07499@comcast.net> To avoid conflicts with normal ids, it seems we want to choose large numbers for altIDs. Testing this out: Create a new stack. Create one button. In the message box, "set the altID of btn 1 to 888888888" In the message box, "put the altID of btn 1" Result: 24120 Tried this again, using 999999999. Result was 51711 What's going on? Many thanks. David Epstein From scott at tactilemedia.com Sun Jan 8 14:21:26 2012 From: scott at tactilemedia.com (Scott Rossi) Date: Sun, 8 Jan 2012 11:21:26 -0800 Subject: the mousecolor In-Reply-To: References: Message-ID: <70444394-3CCA-4761-844A-CB66B868A383@tactilemedia.com> Hi Mike: You need to do things a little differently. Try the following... Set up some kind of a trigger to start/stop the color tracking. This can be anything but I'll use a button with it's autoHilite property disabled just for simplicity. on mouseUp set the hilite of me to not the hilite of me if the hilite of me then set the cursor to cross set the lockCursor to true trackColor end if end mouseUp command trackColor If not the hilite of me then set the lockCursor to false exit trackColor end if get the mouseColor set the backgroundColor of graphic "Little" to it if keysDown() is not empty then set the backgroundColor of graphic "Big" to it send "trackColor" to me in 50 millisecs end trackColor -------------------- The above should start color tracking when the button is pressed, and stop when the button is pressed again. Your script was not working because the mouseMove message is really only sent when the cursor is within LiveCode windows, so you need to use a looping script ("send trackColor" in this case) that can be terminated by some action (second button press). Hope this helps. Scott Rossi Creative Director Tactile Media, UX Design On Jan 8, 2012, at 4:27 AM, Michael Doub wrote: > Scott, > > My app is pretty simple. 2 graphic objects, one called "Big" the other called "Little". I have double > checked and the cursor switches from cross to arrow when you leave the stack window and mousecolor stops. > > -= Mike > > On Mousemove > set the cursor to cross > set the lockCursor to true > set the backgroundcolor of graphic "Little" to the mousecolor > end Mousemove > > on RawKeyDown thekey > set the backgroundcolor of graphic "Big" to the backgroundcolor of graphic "Little" > pass RawKeyDown > end RawKeyDown > > on CloseStack > set the lockCursor to false > end CloseStack > > > > > On 2012-01-08, at 12:23 AM, Scott Rossi wrote: > >> That seems wrong, like something else is going on. Mark S is right, going >> across multiple monitors seems to fail, but you should be able to grab color >> from anywhere on the screen, not just within LC windows. >> >> Have you tried to make a simple test stack/script that only grabs the >> mouseColor? >> >> Regards, >> >> Scott Rossi >> Creative Director >> Tactile Media, UX Design >> >> >> >> Recently, Michael Doub wrote: >> >>> i am on mac 10.7.2 where I see the problem >>> >>> I just updated my PC to windows 7 and it seems to be working on that system, >>> but the cursor is constrained to only the livecode windows. Is there a way >>> to capture the mousecolor outside of the livecode windows? I am setting >>> lockcursor to true. >>> >>> There is definitely a behaviour difference between my mac and PC. >>> >>> -= Mike >>> >>> >>> >>> On 2012-01-07, at 6:03 PM, J. Landman Gay wrote: >>> >>>> On 1/7/12 4:57 PM, Scott Rossi wrote: >>>>> Mac 10.6.8 >>>>> >>>>> Maybe a Lion thing?... >>>> >>>> That's a thought. I'm on Snow Leopard. It works there. >>>> >>>> -- >>>> 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 >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 guglielmo at braguglia.ch Sun Jan 8 14:38:02 2012 From: guglielmo at braguglia.ch (Guglielmo Braguglia) Date: Sun, 08 Jan 2012 20:38:02 +0100 Subject: Can't set Developer Root for iOS in LiveCode Prefs In-Reply-To: <0E7C2F40-A268-4369-810C-769B8EF30653@mac.com> References: <0E7C2F40-A268-4369-810C-769B8EF30653@mac.com> Message-ID: <4F09F09A.1030402@braguglia.ch> Just set to /Developer (/the root directory of all Xcode environment/) :-) Guglielmo On 08.01.2012 19:27, Graham Samuel wrote: > I originally sent this query a couple of days ago but it hasn't turned up in the digest AFAICS, so I'm sending it again: > > I am stumbling towards developing my first IOS app, but I am having huge difficulties getting started. First, I couldn't update XCode to the version that includes IOS 5 (and Apple were totally unhelpful). Thanks to Colin Holgate on this list, I did the update by getting rid of the previous version and getting the latest from the Apple App Store, then running Install XCode twice (!!!) to make sure that there's a version of IOS 5 in there somewhere. I have the following System Information: > > Version: 4.2.1 (4D502) > Location: /Developer > Applications: > Xcode: 4.2.1 (834) > Instruments: 4.2 (4233) > Dashcode: 3.0.2 (336) > SDKs: > Mac OS X: > 10.6: (10K549) > 10.7: (11C63) > iPhone OS: > 5.0: (9A334) > iPhone Simulator: > 5.0: (9A334) > > So, there it is. Next I tried to follow the RunRev lesson "How do I become an IOS Developer". This tells you to set the location of the developer for IOS 5.0 root in the preferences of LiveCode (I'm using 5.0.2 on a Mac with Lion 10.7.2). It suggests that this will be in > > /Developer/Platforms/iPhoneSimulator.platform/Developer/Applications > > Well, this directory exists (and contains one item 'iOS Simulator' 5.0), but I keep getting this error message from LC: > > "The chosen folder is not a valid iOS SDK for 5.0 and later. It must be one that ships with XCode 4.2 or later." My version of XCode is 4.2.1, BTW. > > I am not very clear what LC is looking for but I've tried choosing other parts of the structure with no result. > > So, something is missing or I'm doing something wrong. Since every member of this list who has worked on an IOS project must have passed this point, I feel an idiot. > > I hope someone can help. > > TIA > > Graham > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sun Jan 8 14:57:54 2012 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 8 Jan 2012 12:57:54 -0700 Subject: AltIDs In-Reply-To: <246192A8-BED4-44E7-BA8B-48E798E07499@comcast.net> References: <246192A8-BED4-44E7-BA8B-48E798E07499@comcast.net> Message-ID: The max you can set the altid to is 65535. Soon as you hit 65536 it wraps around to 0 again. On Sun, Jan 8, 2012 at 12:20 PM, David Epstein wrote: > To avoid conflicts with normal ids, it seems we want to choose large > numbers for altIDs. Testing this out: > > Create a new stack. > Create one button. > In the message box, "set the altID of btn 1 to 888888888" > In the message box, "put the altID of btn 1" > Result: > 24120 > Tried this again, using 999999999. Result was 51711 > What's going on? > > Many thanks. > David Epstein > > > ______________________________**_________________ > use-livecode mailing list > use-livecode at 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 Sun Jan 8 15:44:26 2012 From: jhurley0305 at sbcglobal.net (Jim Hurley) Date: Sun, 8 Jan 2012 12:44:26 -0800 Subject: Rotate around Center of Mass In-Reply-To: References: Message-ID: Mark, The script below will allow you to rotate an image about any predefined point. Create a button. Create an image. Place the button at any point relative to the image. (Perhaps use a grab me in a mousedown handler.) Click the button. The image will rotate about the center of the button. (For your application you would replace the center of rotation with the center of mass.) on mouseUp set the angle of img 1 to 0 put the loc of me into myLoc --Set the coor of the rotation Pt put item 1 of myLoc into x0 put item 2 of myLoc into y0 --Get the loc of the image put the loc of img 1 into tLoc put item 1 of tLoc into xC put item 2 of tLoc into yC --Get the distance between the roation pt and the image center put sqrt ( (xC - x0 )^2 + (yC - y0)^2 ) into L --Get the angle of the line from the rotation center to the image center put atan2(yC-y0, xC-x0) *180/pi into phi0 put 0 into tAngle repeat 360 times lock screen set the angle of img 1 to -tAngle put phi0 + tAngle into phi set the loc of img 1 to (x0 + L * cos(phi*pi/180)), (y0 + L * sin(phi*pi/180)) unlock screen add 1 to tAngle wait 10 millisec --or whatever end repeat end mouseUp on mouseDown grab me --So that you can relocate the rotation center. end mouseDown > ------------------------------------------------------------------- > > Message: 1 > Date: Sat, 7 Jan 2012 10:15:36 -0800 (PST) > From: AcidJazz > To: use-revolution at lists.runrev.com > Subject: Rotate around Center of Mass > Message-ID: <1325960136367-4273701.post at n4.nabble.com> > Content-Type: text/plain; charset=us-ascii > > Is there a way to rotate an image around it's center of mass? I teach > statistics, and one of the definitions of the mean is that it is the balance > point of a distribution. I'd like to actually show a distribution > "balancing" back and forth, or actually spinning around its mean. But, if > I take an image of a very skewed distribution of scores (long tail) and > tried to rotate it, it would rotate around the center of the /image/, which > would not necessarily be the mean of the distribution. I image that the > solution involves extending the size of the image so that it is now centered > on the mean, but without altering or moving the actual distribution. In > BlueMango's Clarify, after you take a snapshot, you can extend the size of > the image without stretching the picture. I would need a way to do that > programmatically so that the horizontal center is the mean of the > distribution. Any suggestions?? > > Mark > > -- From ambassador at fourthworld.com Sun Jan 8 18:22:34 2012 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 08 Jan 2012 15:22:34 -0800 Subject: AltIDs In-Reply-To: <246192A8-BED4-44E7-BA8B-48E798E07499@comcast.net> References: <246192A8-BED4-44E7-BA8B-48E798E07499@comcast.net> Message-ID: <4F0A253A.8080407@fourthworld.com> David Epstein wrote: > To avoid conflicts with normal ids... If what ways have you had conflicts? What are you trying to do? There may be other ways to solve the core problem beyond dealing with the ~2 billion limit on the ID range. -- 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 Sun Jan 8 18:24:48 2012 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 08 Jan 2012 15:24:48 -0800 Subject: How do I clone an embedded stack? In-Reply-To: <582A9985-19A6-4E29-855E-6F2DBC30D2ED@mac.com> References: <582A9985-19A6-4E29-855E-6F2DBC30D2ED@mac.com> Message-ID: <4F0A25C0.8020300@fourthworld.com> Bill Vlahos wrote: > I know how to clone a stack that exists on disk: > clone stack ("path to file on disk") > > I want to embed the stack in a custom property of the main stack and clone it from there. Lets say the stack name is "template.rev" and I add it to the uTemplate of this stack. > > What would be the clone command syntax for this? Every cloned stack exists only in memory. To assign it to a file use the filename property, then issue it a save command: clone stack "MyTMPL" set the filename of it to "/SomeFolder/MyStack.rev" save 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 bonnmike at gmail.com Sun Jan 8 18:25:54 2012 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 8 Jan 2012 16:25:54 -0700 Subject: AltIDs In-Reply-To: <4F0A253A.8080407@fourthworld.com> References: <246192A8-BED4-44E7-BA8B-48E798E07499@comcast.net> <4F0A253A.8080407@fourthworld.com> Message-ID: Hmm. the ID is a 2 billion limit, is altid different? Seems to be a smallint. (unsigned, 2^16 -1) On Sun, Jan 8, 2012 at 4:22 PM, Richard Gaskin wrote: > David Epstein wrote: > > > To avoid conflicts with normal ids... > > If what ways have you had conflicts? What are you trying to do? > > There may be other ways to solve the core problem beyond dealing with > the ~2 billion limit on the ID range. > > -- > 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 ambassador at fourthworld.com Sun Jan 8 18:45:30 2012 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 08 Jan 2012 15:45:30 -0800 Subject: AltIDs In-Reply-To: References: Message-ID: <4F0A2A9A.4080305@fourthworld.com> Mike Bonner wrote: > Hmm. the ID is a 2 billion limit, is altid different? Seems to be a > smallint. (unsigned, 2^16 -1) Yes, I believe you're right. All the more reason to not bother with IDs or altIDs and look at the core problem being solved with them to find a more effective means. The separation of the name and label properties in LiveCode is often overlooked by those with a HyperCard background, frequently underappreciated by those who at least know of it, but is a wonderful key to creating settable object references which not only have a nearly infinite range but also a mnemonic value that's completely impossible with purely numeric IDs. -- 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 Sun Jan 8 20:52:26 2012 From: pete at mollysrevenge.com (Pete) Date: Sun, 8 Jan 2012 17:52:26 -0800 Subject: Shell question Message-ID: I suspect this is more of a Unix question than LC but here goes. I'm issuing a shell command to run a program and redirect its stdin to a file, so something like put shell(myprog < /Users/Pete/myfile.txt) into myResult The Stdin file contains 3 or 4 lines that are valid input to myProg, one of which writes some output to another file. When I execute the shell command from LC or type the command into Terminal, the output file does not created, but I get no errors reported. If I run myProg from Terminal and type the commands individually, the output file is created correctly. I've checked the path to the stdin file over and over and I'm sure it's correct. The stdin file was created using TesxtEdit, read in to myLC script, had a couple of things replaced in it and written out again from LC I'm suspecting carriage return issues? -- Pete Molly's Revenge From mwieder at ahsoftware.net Sun Jan 8 21:06:19 2012 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sun, 8 Jan 2012 18:06:19 -0800 Subject: Shell question In-Reply-To: References: Message-ID: <40503139734.20120108180619@ahsoftware.net> Pete- I've read through this a couple of times now trying to parse what you're trying to do. Here's my guess: you'd like to set up a text file of responses to prompts from the myProg program, which would be processed at the time myProg wants more input. If so, you should check out the "expect" command. -- -Mark Wieder mwieder at ahsoftware.net From mikekann at yahoo.com Sun Jan 8 21:24:26 2012 From: mikekann at yahoo.com (Michael Kann) Date: Sun, 8 Jan 2012 18:24:26 -0800 (PST) Subject: Shell question In-Reply-To: Message-ID: <1326075866.70566.YahooMailClassic@web161605.mail.bf1.yahoo.com> Pete, Is your set-up? on the on-rev servers? Mike --- On Sun, 1/8/12, Pete wrote: From: Pete Subject: Shell question To: "How to use LiveCode" Date: Sunday, January 8, 2012, 7:52 PM I suspect this is more of a Unix question than LC but here goes. I'm issuing a shell command to run a program and redirect its stdin to a file, so something like put shell(myprog < /Users/Pete/myfile.txt) into myResult The Stdin file contains 3 or 4 lines that are valid input to myProg, one of which writes some output to another file. When I execute the shell command from LC or type the command into Terminal, the output file does not created, but I get no errors reported.? If I run myProg from Terminal and type the commands individually, the output file is created correctly. I've checked the path to the stdin file over and over and I'm sure it's correct.? The stdin file was created using TesxtEdit, read in to myLC script, had a couple of things replaced in it and written out again from LC I'm suspecting carriage return issues? -- 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 pete at mollysrevenge.com Sun Jan 8 21:54:44 2012 From: pete at mollysrevenge.com (Pete) Date: Sun, 8 Jan 2012 18:54:44 -0800 Subject: Shell question In-Reply-To: <40503139734.20120108180619@ahsoftware.net> References: <40503139734.20120108180619@ahsoftware.net> Message-ID: Hi Mark, The program in question is sqlite3. I'm trying to give it commands to export an sqlite table in the form of INSERT commands. The program is run by typeing: sqlite3 after it has started I need to feed it the following commands: .mode sql .output SELECT whatever; .exit Those commands all work fine when typed into the program by me but nothing is written to the output file if I redirect stdin to a file that contains them. Seems like that ought to work but I'll try the spawn/send/expect commands and see if I can get them to work any better. Pete On Sun, Jan 8, 2012 at 6:06 PM, Mark Wieder wrote: > Pete- > > I've read through this a couple of times now trying to parse what > you're trying to do. Here's my guess: you'd like to set up a text file > of responses to prompts from the myProg program, which would be > processed at the time myProg wants more input. If so, you should check > out the "expect" command. > > -- > -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 > > -- Pete Molly's Revenge From pete at mollysrevenge.com Sun Jan 8 21:55:13 2012 From: pete at mollysrevenge.com (Pete) Date: Sun, 8 Jan 2012 18:55:13 -0800 Subject: Shell question In-Reply-To: <1326075866.70566.YahooMailClassic@web161605.mail.bf1.yahoo.com> References: <1326075866.70566.YahooMailClassic@web161605.mail.bf1.yahoo.com> Message-ID: Mi Michael, This is running on my desktop (OS X) Pete On Sun, Jan 8, 2012 at 6:24 PM, Michael Kann wrote: > Pete, > > Is your set-up on the on-rev servers? > > Mike > > --- On Sun, 1/8/12, Pete wrote: > > From: Pete > Subject: Shell question > To: "How to use LiveCode" > Date: Sunday, January 8, 2012, 7:52 PM > > I suspect this is more of a Unix question than LC but here goes. > > I'm issuing a shell command to run a program and redirect its stdin to a > file, so something like > > put shell(myprog < /Users/Pete/myfile.txt) into myResult > > The Stdin file contains 3 or 4 lines that are valid input to myProg, one of > which writes some output to another file. > > When I execute the shell command from LC or type the command into Terminal, > the output file does not created, but I get no errors reported. If I run > myProg from Terminal and type the commands individually, the output file is > created correctly. > > I've checked the path to the stdin file over and over and I'm sure it's > correct. The stdin file was created using TesxtEdit, read in to myLC > script, had a couple of things replaced in it and written out again from LC > > I'm suspecting carriage return issues? > > > -- > 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 > _______________________________________________ > use-livecode mailing list > use-livecode 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 mwieder at ahsoftware.net Sun Jan 8 22:31:46 2012 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sun, 8 Jan 2012 19:31:46 -0800 Subject: Shell question In-Reply-To: References: <40503139734.20120108180619@ahsoftware.net> Message-ID: <157508266015.20120108193146@ahsoftware.net> Pete- Sunday, January 8, 2012, 6:54:44 PM, you wrote: > Those commands all work fine when typed into the program by me but nothing > is written to the output file if I redirect stdin to a file that contains > them. Ah. In that case, are you putting quotes around the shell command? Works here for me. put shell("myprog < /Users/Pete/myfile.txt") into myResult -- -Mark Wieder mwieder at ahsoftware.net From mpezzo at gmail.com Sun Jan 8 23:38:09 2012 From: mpezzo at gmail.com (AcidJazz) Date: Sun, 8 Jan 2012 20:38:09 -0800 (PST) Subject: Rotate around Center of Mass In-Reply-To: References: <1325960136367-4273701.post@n4.nabble.com> Message-ID: <1326083889506-4277567.post@n4.nabble.com> Thanks for this! Very helpful. I also found a previous discussion that might be useful. http://forums.runrev.com/viewtopic.php?f=27&t=8042 I'm definitely going to have to take a bit to digest all of this. Mark -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Rotate-around-Center-of-Mass-tp4273701p4277567.html Sent from the Revolution - User mailing list archive at Nabble.com. From pete at mollysrevenge.com Mon Jan 9 02:00:59 2012 From: pete at mollysrevenge.com (Pete) Date: Sun, 8 Jan 2012 23:00:59 -0800 Subject: Shell question In-Reply-To: <157508266015.20120108193146@ahsoftware.net> References: <40503139734.20120108180619@ahsoftware.net> <157508266015.20120108193146@ahsoftware.net> Message-ID: The command is in a variable, eg put shell(myCommand) into myResult. I'm thinking it's something other than that though since even if I type the command directly into Terminal with the stdin redirection, no output is produced. sqlite3 has a .echo command which prints all the commands to stdin. If I put that into the stdin file, what gets displayed is portions of each command with no line breaks between them. It sure feels like some sort of carriage return problem! Pete On Sun, Jan 8, 2012 at 7:31 PM, Mark Wieder wrote: > Pete- > > Sunday, January 8, 2012, 6:54:44 PM, you wrote: > > > Those commands all work fine when typed into the program by me but > nothing > > is written to the output file if I redirect stdin to a file that contains > > them. > > Ah. In that case, are you putting quotes around the shell command? > Works here for me. > > put shell("myprog < /Users/Pete/myfile.txt") into myResult > > -- > -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 > > -- Pete Molly's Revenge From ken at kencorey.com Mon Jan 9 09:15:09 2012 From: ken at kencorey.com (Ken Corey) Date: Mon, 09 Jan 2012 14:15:09 +0000 Subject: Rotate around Center of Mass In-Reply-To: <1325960136367-4273701.post@n4.nabble.com> References: <1325960136367-4273701.post@n4.nabble.com> Message-ID: <4F0AF66D.1040403@kencorey.com> I don't know why, but this question really stuck in my head. So much so, when I stumbled across the 'crop' command I just had to write. This isn't a full answer, unfortunately, but it's a start, methinks. First off, let's assume your image is at the rect 100,100,200,200. The center of the image is therefore 150,150. Let's assume the "center of mass" is at 120,120. If you set the angle of the image, you're rotating around the center of the image, not the center of mass. So if you add a border around the image you can adjust the center and center of mass to be the same...and good news: the 'crop' command can make an image bigger as well as smaller! If we add enough to shift the center of the image to be 125,125 and then adjust the angle, we're rotating around the center of mass. crop image "testing" to 40,40,200,200. Now, the center of the image is the same as the center of mass. The rotation is then easy: set the angle of image "testing" to angleInDegrees Of course, now you have a larger image. If you can use that, then so much the better. If not, you have to decide what to do about parts of your image that are outside of your bounds. Do you crop to the original rect of the image? Then you might lose bits. Do you want to crop only to the new size of the image? I don't know an easy way to do that...you *could* access the bits directly like this: (http://bit.ly/yI1wBj), and iterate across your image to find out your new extents, but that's extreme brute-force... Hope this helps. -Ken From livfoss at mac.com Mon Jan 9 11:18:36 2012 From: livfoss at mac.com (Graham Samuel) Date: Mon, 09 Jan 2012 17:18:36 +0100 Subject: Can't set Developer Root in LiveCode Prefs Message-ID: <05D18E83-0F19-4811-AD75-4636236FC239@mac.com> The mother ship fixed this for me - the simple root /Developer is enough to tell LC what it needs to link with XCode etc for iOS development. I mention this just in case anyone else was confused. I am now stumbling over licenses, and the extent to which one needs them (from Apple). Looks like you don't need much until you get to test on a physical device, and I'm a long way from that. Graham I wrote: [?] > I keep getting this error message from LC: > > "The chosen folder is not a valid iOS SDK for 5.0 and later. It must be one that ships with XCode 4.2 or later." My version of XCode is 4.2.1, BTW. > > I am not very clear what LC is looking for but I've tried choosing other parts of the structure with no result. > > So, something is missing or I'm doing something wrong. Since every member of this list who has worked on an IOS project must have passed this point, I feel an idiot. [?] From bobs at twft.com Mon Jan 9 11:42:37 2012 From: bobs at twft.com (Bob Sneidar) Date: Mon, 9 Jan 2012 08:42:37 -0800 Subject: SoCal LUG meeting: 2 February in Pasadena In-Reply-To: <4F0890AF.4050108@researchware.com> References: <4F0890AF.4050108@researchware.com> Message-ID: <6D7C13C8-B71F-4ABD-95F2-A5809EE8310C@twft.com> My Father is the president of the Railroad Club on Oahu. They have a full size box car they restored and built an HO scale digital system inside of. Very cool. He has a friend on the north shore, a retired Doctor named Jim Blateau who has an N scale western themed system that takes up his bottom floor, work still going on (and will be going on for the rest of the millennia apparently). They send their engines off to Switzerland to a company that re-gears them to be more like scale. These things fairly crawl! They have 5 stations where people can stand and control the different sections to do full hands off programs, dropping off cars, picking up others etc. I have pictures and can post them somewhere if you like. The N scale railroad was actually featured (or will be featured) in a national railroad magazine. Bob On Jan 7, 2012, at 10:36 AM, Paul Dupuis wrote: > I have a N-scale layout, modeling a generic New England (USA) setting, > though I haven't worked on it in perhaps 5 years (eyesight and time > being the excuses) > > -- > Paul Dupuis > Cofounder > Researchware, Inc. From bobs at twft.com Mon Jan 9 11:46:15 2012 From: bobs at twft.com (Bob Sneidar) Date: Mon, 9 Jan 2012 08:46:15 -0800 Subject: Trying to edit the script of field in one stack from a different (dialog) stack In-Reply-To: References: Message-ID: <9B77E7C3-41DC-4412-916D-7B5331C2BBB3@twft.com> If you have the long ID, then don't refer to it as "field theFieldID" because the long ID already contains the word "field". That may have been the problem. I have tripped over that before. When I use the long ID or any value that contains the object type, I call it something like theObject, so my script looks something like: get the script of theSourceObject It reads naturally that way. Bob On Jan 7, 2012, at 10:38 AM, Alan Gayne wrote: > on 6 Jan 2012 17:21:42 -0800, Bob Sneidar wrote: > >> Get the long ID of the field and work with that. >> >> Bob > > Bob, > > I was sure that I tried that several times before, and had gotten the same error. > > But when I tried it again; sure enough it worked! > > I must have previously missed something obvious, but I have no idea what that might have been. > > In any case, I greatly appreciate the assist. > > Thanks Bob. > > Kind regards, > ALAN GAYNE > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jan 9 11:51:09 2012 From: bobs at twft.com (Bob Sneidar) Date: Mon, 9 Jan 2012 08:51:09 -0800 Subject: What are the current LiveCode issues with the Mac App Store? In-Reply-To: References: Message-ID: Ick! Is this something that is going to be fixed in the future? How is Microsoft Office going to deal with that?? Bob On Jan 7, 2012, at 12:12 PM, Andrew Henshaw wrote: > The only issue Im aware of is the current livecode file dialogue will not work with sandboxed apps, this is required by the store after 1st March. > > > > > > On 7 Jan 2012, at 17:43, Bill Vlahos wrote: > >> I'm thinking of publishing InfoWallet in the Mac App Store. There is some re-architecting of the app that I know about and those are easily done but I'm wondering what the more obscure areas that might trip me up. >> >> How are people working with the Apple requirements of the App Store? >> >> What has been your experiences with the whole process? >> >> Thanks, >> Bill Vlahos >> _________________ >> InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Mon Jan 9 11:59:51 2012 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Mon, 9 Jan 2012 08:59:51 -0800 (PST) Subject: Zen of Computer Programming Message-ID: <1326128391945-4279111.post@n4.nabble.com> Hi all, Recently I was talking with one of my students from Macromedia FreeHand/Adobe Photoshop classes: http://www.facebook.com/media/set/?set=a.2733273854751.2150939.1344437396&type=1&l=7917ab7ac2 and he asked me if the following was true: "The best computer programmers could create a flawless program without the need to run this program in a computer." Well, (I said him), I read about a software developer named Bruno Delean who created his software namde "Live Picture" in this way... but it's not common. http://findarticles.com/p/articles/mi_m3065/is_n12_v23/ai_16090826/ "Live Picture's extraordinary performance is achieved by virtue of a radical new concept/technology called FITS (Functional Interpolating Transformation System), which was developed by Bruno Delean of Toulouse, France-based FITS Imaging. Legend has it that Delean wrote all of the FITS code by hand during a five-year sojourn in the French Alps, praticing a sort of Zen development. He's since come down from the mountain with a truly unique program." My question to all of you is, How many developers you know that could create almost flawless programs without running and debugging? What is their special gift? Thanks in advance! Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Zen-of-Computer-Programming-tp4279111p4279111.html Sent from the Revolution - User mailing list archive at Nabble.com. From bobs at twft.com Mon Jan 9 12:04:27 2012 From: bobs at twft.com (Bob Sneidar) Date: Mon, 9 Jan 2012 09:04:27 -0800 Subject: AltIDs In-Reply-To: <4F0A253A.8080407@fourthworld.com> References: <246192A8-BED4-44E7-BA8B-48E798E07499@comcast.net> <4F0A253A.8080407@fourthworld.com> Message-ID: <332C8DEE-5125-425C-A486-9EC1D40CC9C4@twft.com> Hmmm... this got me thinking about how to go about creating a new stack while maintaining image ID's. If you keep all the images on a single card, you should be able to loop through all the images on a card, store their ID's in some kind of array or variable, copy the card, new stack/paste card, restore all object ID's top down. Then any other card can be pasted in without having to relink their icons with the ID's the images would have gotten with the paste card command. Just a thought. Bob On Jan 8, 2012, at 3:22 PM, Richard Gaskin wrote: > David Epstein wrote: > >> To avoid conflicts with normal ids... > > If what ways have you had conflicts? What are you trying to do? > > There may be other ways to solve the core problem beyond dealing with > the ~2 billion limit on the ID range. > > -- > 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 m.schonewille at economy-x-talk.com Mon Jan 9 12:04:59 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Mon, 9 Jan 2012 18:04:59 +0100 Subject: Zen of Computer Programming In-Reply-To: <1326128391945-4279111.post@n4.nabble.com> References: <1326128391945-4279111.post@n4.nabble.com> Message-ID: I know one who actually does it and one who could with sufficient time. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! On 9 jan 2012, at 17:59, Alejandro Tejada wrote: > > My question to all of you is, > > How many developers you know that could create almost flawless > programs without running and debugging? > > What is their special gift? > > Thanks in advance! > > Al From bobs at twft.com Mon Jan 9 12:11:24 2012 From: bobs at twft.com (Bob Sneidar) Date: Mon, 9 Jan 2012 09:11:24 -0800 Subject: Rotate around Center of Mass In-Reply-To: <1325960136367-4273701.post@n4.nabble.com> References: <1325960136367-4273701.post@n4.nabble.com> Message-ID: Can you group it, then set the loc of the image to the center of the group plus or minus the horizontal and vertical distance to the point of distribution? The group should automatically change size to accommodate the relocated image and the group would then also be centered on the point of distribution. Just a thought, I might be wrong. Bob On Jan 7, 2012, at 10:15 AM, AcidJazz wrote: > Is there a way to rotate an image around it's center of mass? I teach > statistics, and one of the definitions of the mean is that it is the balance > point of a distribution. I'd like to actually show a distribution > "balancing" back and forth, or actually spinning around its mean. But, if > I take an image of a very skewed distribution of scores (long tail) and > tried to rotate it, it would rotate around the center of the /image/, which > would not necessarily be the mean of the distribution. I image that the > solution involves extending the size of the image so that it is now centered > on the mean, but without altering or moving the actual distribution. In > BlueMango's Clarify, after you take a snapshot, you can extend the size of > the image without stretching the picture. I would need a way to do that > programmatically so that the horizontal center is the mean of the > distribution. Any suggestions?? > > Mark > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Rotate-around-Center-of-Mass-tp4273701p4273701.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 scott at tactilemedia.com Mon Jan 9 12:12:02 2012 From: scott at tactilemedia.com (Scott Rossi) Date: Mon, 09 Jan 2012 09:12:02 -0800 Subject: Zen of Computer Programming In-Reply-To: <1326128391945-4279111.post@n4.nabble.com> Message-ID: I can't answer your question (my software has plenty of flaws), but I can offer this: Recently, the Dalai Lama went into a pizza shop and asked, "Can you make me one with everything?" Regards, Scott Rossi Creative Director Tactile Media, UX Design Recently, Alejandro Tejada wrote: > Hi all, > > Recently I was talking with one of my students from > Macromedia FreeHand/Adobe Photoshop classes: > http://www.facebook.com/media/set/?set=a.2733273854751.2150939.1344437396&type > =1&l=7917ab7ac2 > and he asked me if the following was true: > > "The best computer programmers could create a > flawless program without the need to run this > program in a computer." > > Well, (I said him), I read about a software developer > named Bruno Delean who created his software namde > "Live Picture" in this way... but it's not common. > > http://findarticles.com/p/articles/mi_m3065/is_n12_v23/ai_16090826/ > > "Live Picture's extraordinary performance is achieved by virtue of a > radical new concept/technology called FITS > (Functional Interpolating Transformation System), which was developed > by Bruno Delean of Toulouse, France-based FITS Imaging. > Legend has it that Delean wrote all of the FITS code by hand during a > five-year sojourn in the French Alps, praticing a sort of Zen development. > He's since come down from the mountain with a truly unique program." > > My question to all of you is, > > How many developers you know that could create almost flawless > programs without running and debugging? > > What is their special gift? > > Thanks in advance! > > Al From dan at clearvisiontech.com Mon Jan 9 12:21:13 2012 From: dan at clearvisiontech.com (Dan Friedman) Date: Mon, 9 Jan 2012 09:21:13 -0800 Subject: Caching on iOS In-Reply-To: References: Message-ID: <1485C166-E2C8-416F-8340-A828CFB82628@clearvisiontech.com> Hello... Does anyone know if there is a setting for caching on iOS? Here's what's happening: I post text to a file on a server (via ftp) using a simple "put" command in a LC project on my iPhone. The data IS writing to the server - I can verify that. However, if I re-read the data that was just written to the server (from within my app), I get the old version of the data. If I wait several hours (I haven't yet tried to figure out exactly how long), I get the correct version of the data. I have tried restarting the app and I tried restarting the device. The same thing happens on my iPad. But, it works perfectly from my desktop computer (which is on the same network). Any ideas? Thanks in advance, -Dan From ken at kencorey.com Mon Jan 9 12:21:42 2012 From: ken at kencorey.com (Ken Corey) Date: Mon, 09 Jan 2012 17:21:42 +0000 Subject: Zen of Computer Programming In-Reply-To: <1326128391945-4279111.post@n4.nabble.com> References: <1326128391945-4279111.post@n4.nabble.com> Message-ID: <4F0B2226.6000004@kencorey.com> I've been programming for a good long time now and I've only known one or two that could likely do it, but if I'm the one writing the paychecks, I'd *never* have paid them long enough to wrap their heads around the problem to do so. I've known lots of good programmers who got close enough, and were fast enough at debugging so it /seemed/ to be almost perfect, which I would have been willing to pay for. I've always believed in the project triangle: Pick any two: Cheap Fast Good (http://en.wikipedia.org/wiki/Project_triangle) -Ken On 09/01/2012 16:59, Alejandro Tejada wrote: > Hi all, > > Recently I was talking with one of my students from > Macromedia FreeHand/Adobe Photoshop classes: > http://www.facebook.com/media/set/?set=a.2733273854751.2150939.1344437396&type=1&l=7917ab7ac2 > and he asked me if the following was true: > > "The best computer programmers could create a > flawless program without the need to run this > program in a computer." > > Well, (I said him), I read about a software developer > named Bruno Delean who created his software namde > "Live Picture" in this way... but it's not common. > > http://findarticles.com/p/articles/mi_m3065/is_n12_v23/ai_16090826/ > > "Live Picture's extraordinary performance is achieved by virtue of a > radical new concept/technology called FITS > (Functional Interpolating Transformation System), which was developed > by Bruno Delean of Toulouse, France-based FITS Imaging. > Legend has it that Delean wrote all of the FITS code by hand during a > five-year sojourn in the French Alps, praticing a sort of Zen development. > He's since come down from the mountain with a truly unique program." > > My question to all of you is, > > How many developers you know that could create almost flawless > programs without running and debugging? > > What is their special gift? > > Thanks in advance! > > Al > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Zen-of-Computer-Programming-tp4279111p4279111.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 Mon Jan 9 12:34:06 2012 From: bobs at twft.com (Bob Sneidar) Date: Mon, 9 Jan 2012 09:34:06 -0800 Subject: Zen of Computer Programming In-Reply-To: <1326128391945-4279111.post@n4.nabble.com> References: <1326128391945-4279111.post@n4.nabble.com> Message-ID: <61447833-2C6E-4C99-97EE-BD471CD464A0@twft.com> Hmmm... I am not sure that I agree with this. Doesn't the whole thing beg the question, what do you mean by "the best programmers"? Just because someone has a kind of photographic memory that others do not possess, does not necessarily make him a good programmer in my opinion. He might just produce a flawless piece of digital crap for all you know, something that has no bugs but does nothing anyone needs or wants, or else does not do it in a way that is very intuitive to the lesser of the species, namely people like me. Also, consider the statement, "Legend has it that Delean wrote all of the FITS code by hand during a five-year sojourn in the French Alps, practicing a sort of Zen development. He's since come down from the mountain with a truly unique program." Well which is it? Did he actually do it, or is it the stuff of "Legend"? Is there any way to verify this? Could it just be brilliant PR? I suppose a highly functioning autism could produce this phenomenon in theory, but I don't think that someone who has it would be the best choice for producing software of general use. Just my opinion though. In other words, I've got me dou'ts. Bob On Jan 9, 2012, at 8:59 AM, Alejandro Tejada wrote: > Hi all, > > Recently I was talking with one of my students from > Macromedia FreeHand/Adobe Photoshop classes: > http://www.facebook.com/media/set/?set=a.2733273854751.2150939.1344437396&type=1&l=7917ab7ac2 > and he asked me if the following was true: > > "The best computer programmers could create a > flawless program without the need to run this > program in a computer." > > Well, (I said him), I read about a software developer > named Bruno Delean who created his software namde > "Live Picture" in this way... but it's not common. > > http://findarticles.com/p/articles/mi_m3065/is_n12_v23/ai_16090826/ > > "Live Picture's extraordinary performance is achieved by virtue of a > radical new concept/technology called FITS > (Functional Interpolating Transformation System), which was developed > by Bruno Delean of Toulouse, France-based FITS Imaging. > > > My question to all of you is, > > How many developers you know that could create almost flawless > programs without running and debugging? > > What is their special gift? > > Thanks in advance! > > Al > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Zen-of-Computer-Programming-tp4279111p4279111.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 coiin at verizon.net Mon Jan 9 12:34:12 2012 From: coiin at verizon.net (Colin Holgate) Date: Mon, 09 Jan 2012 12:34:12 -0500 Subject: Zen of Computer Programming In-Reply-To: References: Message-ID: You get that joke. I get that joke. The Dalai Lama doesn't though: http://www.youtube.com/watch?v=GogjFO8GNEo On Jan 9, 2012, at 12:12 PM, Scott Rossi wrote: > >Recently, the Dalai Lama went into a pizza shop and asked, "Can you make me > one with everything?" From stephenREVOLUTION2 at barncard.com Mon Jan 9 12:37:58 2012 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Mon, 9 Jan 2012 09:37:58 -0800 Subject: AltIDs In-Reply-To: <332C8DEE-5125-425C-A486-9EC1D40CC9C4@twft.com> References: <246192A8-BED4-44E7-BA8B-48E798E07499@comcast.net> <4F0A253A.8080407@fourthworld.com> <332C8DEE-5125-425C-A486-9EC1D40CC9C4@twft.com> Message-ID: if we're talking about image linking, why not just name the images, and just use the id of img "imagename" ?? On 9 January 2012 09:04, Bob Sneidar wrote: > Hmmm... this got me thinking about how to go about creating a new stack > while maintaining image ID's. If you keep all the images on a single card, > you should be able to loop through all the images on a card, store their > ID's in some kind of array or variable, copy the card, new stack/paste > card, restore all object ID's top down. Then any other card can be pasted > in without having to relink their icons with the ID's the images would have > gotten with the paste card command. > > Just a thought. > > Bob > > > On Jan 8, 2012, at 3:22 PM, Richard Gaskin wrote: > > > David Epstein wrote: > > > >> To avoid conflicts with normal ids... > > > > If what ways have you had conflicts? What are you trying to do? > > > > There may be other ways to solve the core problem beyond dealing with > > the ~2 billion limit on the ID range. > > > > -- > > 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Mon Jan 9 12:42:25 2012 From: pete at mollysrevenge.com (Pete) Date: Mon, 9 Jan 2012 09:42:25 -0800 Subject: Shell question In-Reply-To: References: <40503139734.20120108180619@ahsoftware.net> <157508266015.20120108193146@ahsoftware.net> Message-ID: OK, I got this working. In order to get the correct linefeed characters for Unix, I had to open the output file in binary mode. Once I did that, everything worked fine. Pete On Sun, Jan 8, 2012 at 11:00 PM, Pete wrote: > The command is in a variable, eg put shell(myCommand) into myResult. I'm > thinking it's something other than that though since even if I type the > command directly into Terminal with the stdin redirection, no output is > produced. > > sqlite3 has a .echo command which prints all the commands to stdin. If I > put that into the stdin file, what gets displayed is portions of each > command with no line breaks between them. It sure feels like some sort of > carriage return problem! > > Pete > > On Sun, Jan 8, 2012 at 7:31 PM, Mark Wieder wrote: > >> Pete- >> >> Sunday, January 8, 2012, 6:54:44 PM, you wrote: >> >> > Those commands all work fine when typed into the program by me but >> nothing >> > is written to the output file if I redirect stdin to a file that >> contains >> > them. >> >> Ah. In that case, are you putting quotes around the shell command? >> Works here for me. >> >> put shell("myprog < /Users/Pete/myfile.txt") into myResult >> >> -- >> -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 >> >> > > > -- > Pete > Molly's Revenge > > > -- Pete Molly's Revenge From roger.e.eller at sealedair.com Mon Jan 9 13:00:17 2012 From: roger.e.eller at sealedair.com (Roger Eller) Date: Mon, 9 Jan 2012 13:00:17 -0500 Subject: Caching on iOS In-Reply-To: <1485C166-E2C8-416F-8340-A828CFB82628@clearvisiontech.com> References: <1485C166-E2C8-416F-8340-A828CFB82628@clearvisiontech.com> Message-ID: On Mon, Jan 9, 2012 at 12:21 PM, Dan Friedman wrote: > Hello... > > Does anyone know if there is a setting for caching on iOS? Here's what's > happening: I post text to a file on a server (via ftp) using a simple > "put" command in a LC project on my iPhone. The data IS writing to the > server - I can verify that. However, if I re-read the data that was just > written to the server (from within my app), I get the old version of the > data. If I wait several hours (I haven't yet tried to figure out exactly > how long), I get the correct version of the data. I have tried restarting > the app and I tried restarting the device. The same thing happens on my > iPad. But, it works perfectly from my desktop computer (which is on the > same network). > > Any ideas? > > Thanks in advance, > -Dan > > It could simply be a network speed issue. Try a tiny text file so you can check the results quicker, then use a larger file. The actual transfer may be backgrounded on iOS. ~Roger From admin at FlexibleLearning.com Mon Jan 9 13:03:32 2012 From: admin at FlexibleLearning.com (FlexibleLearning) Date: Mon, 9 Jan 2012 18:03:32 -0000 Subject: Pick any Two In-Reply-To: Message-ID: Similar: On Budget On Time Features Hugh Senior FLCo Ken Corey wrote: I've always believed in the project triangle: Pick any two: Cheap Fast Good From rene.micout at numericable.com Mon Jan 9 13:04:11 2012 From: rene.micout at numericable.com (=?iso-8859-1?Q?Ren=E9_Micout?=) Date: Mon, 9 Jan 2012 19:04:11 +0100 Subject: Zen of Computer Programming In-Reply-To: <1326128391945-4279111.post@n4.nabble.com> References: <1326128391945-4279111.post@n4.nabble.com> Message-ID: This was in France in 1993 ! And it is not the really story... During his holidays in his granMother's house in French mountain "Pyr?n?es" he write 60 pages of math and algorithms. After his holidays he write the program in C++ on his computer... Sorry this page is in French : http://www.alquier.org/eerie/MagBesse/magb13/6.pdf Le 9 janv. 2012 ? 17:59, Alejandro Tejada a ?crit : > Hi all, > > Recently I was talking with one of my students from > Macromedia FreeHand/Adobe Photoshop classes: > http://www.facebook.com/media/set/?set=a.2733273854751.2150939.1344437396&type=1&l=7917ab7ac2 > and he asked me if the following was true: > > "The best computer programmers could create a > flawless program without the need to run this > program in a computer." > > Well, (I said him), I read about a software developer > named Bruno Delean who created his software namde > "Live Picture" in this way... but it's not common. > > http://findarticles.com/p/articles/mi_m3065/is_n12_v23/ai_16090826/ > > "Live Picture's extraordinary performance is achieved by virtue of a > radical new concept/technology called FITS > (Functional Interpolating Transformation System), which was developed > by Bruno Delean of Toulouse, France-based FITS Imaging. > Legend has it that Delean wrote all of the FITS code by hand during a > five-year sojourn in the French Alps, praticing a sort of Zen development. > He's since come down from the mountain with a truly unique program." > > My question to all of you is, > > How many developers you know that could create almost flawless > programs without running and debugging? > > What is their special gift? > > Thanks in advance! > > Al > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Zen-of-Computer-Programming-tp4279111p4279111.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 Mon Jan 9 13:18:56 2012 From: bobs at twft.com (Bob Sneidar) Date: Mon, 9 Jan 2012 10:18:56 -0800 Subject: Zen of Computer Programming In-Reply-To: References: Message-ID: Too funny! Bob On Jan 9, 2012, at 9:34 AM, Colin Holgate wrote: > You get that joke. I get that joke. The Dalai Lama doesn't though: > > http://www.youtube.com/watch?v=GogjFO8GNEo > > > On Jan 9, 2012, at 12:12 PM, Scott Rossi wrote: > >>> Recently, the Dalai Lama went into a pizza shop and asked, "Can you make me >> one with everything?" > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jan 9 13:20:02 2012 From: bobs at twft.com (Bob Sneidar) Date: Mon, 9 Jan 2012 10:20:02 -0800 Subject: AltIDs In-Reply-To: References: <246192A8-BED4-44E7-BA8B-48E798E07499@comcast.net> <4F0A253A.8080407@fourthworld.com> <332C8DEE-5125-425C-A486-9EC1D40CC9C4@twft.com> Message-ID: If I have it right, you wouldn't need to. The objects would be able to find their images without having to relink them all. Bob On Jan 9, 2012, at 9:37 AM, stephen barncard wrote: > if we're talking about image linking, why not just name the images, and > just use the id of img "imagename" ?? > > On 9 January 2012 09:04, Bob Sneidar wrote: > >> Hmmm... this got me thinking about how to go about creating a new stack >> while maintaining image ID's. If you keep all the images on a single card, >> you should be able to loop through all the images on a card, store their >> ID's in some kind of array or variable, copy the card, new stack/paste >> card, restore all object ID's top down. Then any other card can be pasted >> in without having to relink their icons with the ID's the images would have >> gotten with the paste card command. >> >> Just a thought. >> >> Bob >> >> >> On Jan 8, 2012, at 3:22 PM, Richard Gaskin wrote: >> >>> David Epstein wrote: >>> >>>> To avoid conflicts with normal ids... >>> >>> If what ways have you had conflicts? What are you trying to do? >>> >>> There may be other ways to solve the core problem beyond dealing with >>> the ~2 billion limit on the ID range. >>> >>> -- >>> 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 >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 pmbrig at gmail.com Mon Jan 9 14:02:16 2012 From: pmbrig at gmail.com (Peter M. Brigham, MD) Date: Mon, 9 Jan 2012 14:02:16 -0500 Subject: Zen of Computer Programming In-Reply-To: References: Message-ID: <2B9271FE-9D34-4110-A695-EB1A7C195F58@gmail.com> On Jan 9, 2012, at 12:12 PM, Scott Rossi wrote: > I can't answer your question (my software has plenty of flaws), but I can > offer this: > > Recently, the Dalai Lama went into a pizza shop and asked, "Can you make me > one with everything?" The rest of the joke goes: So the vendor makes him a deluxe pizza and the Dalai Lama hands him a $20 bill. After a moment he says, "Where's my change?" The vendor says, "Change comes from within!" -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From roger.e.eller at sealedair.com Mon Jan 9 14:59:00 2012 From: roger.e.eller at sealedair.com (Roger Eller) Date: Mon, 9 Jan 2012 14:59:00 -0500 Subject: the selection returns empty Message-ID: I am probably missing something simple, but if I select a line in a list field, then click a button that puts the selection into a variable, it works the first time. However, if focus changes to another object, but the selection is still visibly shown in the list field, the button now returns empty. How can I get my button to always return the visibly selected content of this specific list field? ~Roger From stephenREVOLUTION2 at barncard.com Mon Jan 9 14:59:28 2012 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Mon, 9 Jan 2012 11:59:28 -0800 Subject: AltIDs In-Reply-To: References: <246192A8-BED4-44E7-BA8B-48E798E07499@comcast.net> <4F0A253A.8080407@fourthworld.com> <332C8DEE-5125-425C-A486-9EC1D40CC9C4@twft.com> Message-ID: I've had image names fail where ids worked. I have no idea why. On 9 January 2012 10:20, Bob Sneidar wrote: > If I have it right, you wouldn't need to. The objects would be able to > find their images without having to relink them all. > > Bob > > > On Jan 9, 2012, at 9:37 AM, stephen barncard wrote: > > > if we're talking about image linking, why not just name the images, and > > just use the id of img "imagename" ?? > > > > On 9 January 2012 09:04, Bob Sneidar wrote: > > > >> Hmmm... this got me thinking about how to go about creating a new stack > >> while maintaining image ID's. If you keep all the images on a single > card, > >> you should be able to loop through all the images on a card, store their > >> ID's in some kind of array or variable, copy the card, new stack/paste > >> card, restore all object ID's top down. Then any other card can be > pasted > >> in without having to relink their icons with the ID's the images would > have > >> gotten with the paste card command. > >> > >> Just a thought. > >> > >> Bob > >> > >> > >> On Jan 8, 2012, at 3:22 PM, Richard Gaskin wrote: > >> > >>> David Epstein wrote: > >>> > >>>> To avoid conflicts with normal ids... > >>> > >>> If what ways have you had conflicts? What are you trying to do? > >>> > >>> There may be other ways to solve the core problem beyond dealing with > >>> the ~2 billion limit on the ID range. > >>> > >>> -- > >>> 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 > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 devin_asay at byu.edu Mon Jan 9 15:02:10 2012 From: devin_asay at byu.edu (Devin Asay) Date: Mon, 9 Jan 2012 20:02:10 +0000 Subject: the selection returns empty In-Reply-To: References: Message-ID: <581648A8-956C-41E0-88CE-C97F1D22E28F@byu.edu> Roger, For list fields use the hilitedLine(s) instead of the selection or the selectedLine. Devin On Jan 9, 2012, at 12:59 PM, Roger Eller wrote: > I am probably missing something simple, but if I select a line in a list > field, then click a button that puts the selection into a variable, it > works the first time. However, if focus changes to another object, but the > selection is still visibly shown in the list field, the button now returns > empty. > > How can I get my button to always return the visibly selected content of > this specific list field? > > ~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 Devin Asay Humanities Technology and Research Support Center Brigham Young University From roger.e.eller at sealedair.com Mon Jan 9 15:13:31 2012 From: roger.e.eller at sealedair.com (Roger Eller) Date: Mon, 9 Jan 2012 15:13:31 -0500 Subject: the selection returns empty In-Reply-To: <581648A8-956C-41E0-88CE-C97F1D22E28F@byu.edu> References: <581648A8-956C-41E0-88CE-C97F1D22E28F@byu.edu> Message-ID: On Mon, Jan 9, 2012 at 3:02 PM, Devin Asay wrote: > Roger, > > For list fields use the hilitedLine(s) instead of the selection or the > selectedLine. > > Devin > > Thanks! Back on track. :) ~Roger From dan at clearvisiontech.com Mon Jan 9 16:14:56 2012 From: dan at clearvisiontech.com (Dan Friedman) Date: Mon, 9 Jan 2012 13:14:56 -0800 Subject: Caching on iOS In-Reply-To: References: Message-ID: Roger, The file I am writing is tiny... about 75 bytes! More info... I posted the file then asked the application to download the file every thirty seconds. It is getting the older version of the file every time... It's been about 15 minutes so far and it's still getting the old file. On my desktop computer (on the same network) I see the new (correct) version of the file. Last night I launched the app (on the iPhone) and had it write the file. I then checked the file on the phone and it was wrong. I then left the app open and went to sleep. In the morning, I clicked "refresh" in my app and the new file was there! HUH???? -Dan > It could simply be a network speed issue. Try a tiny text file so you can > check the results quicker, then use a larger file. The actual transfer may > be backgrounded on iOS. > > ~Roger > > >> Hello... >> >> Does anyone know if there is a setting for caching on iOS? Here's what's happening: I post text to a file on a server (via ftp) using a simple "put" command in a LC project on my iPhone. The data IS writing to the server - I can verify that. However, if I re-read the data that was just written to the server (from within my app), I get the old version of the data. If I wait several hours (I haven't yet tried to figure out exactly how long), I get the correct version of the data. I have tried restarting the app and I tried restarting the device. The same thing happens on my iPad. But, it works perfectly from my desktop computer (which is on the same network). >> >> Any ideas? >> >> Thanks in advance, >> -Dan From roger.e.eller at sealedair.com Mon Jan 9 16:25:26 2012 From: roger.e.eller at sealedair.com (Roger Eller) Date: Mon, 9 Jan 2012 16:25:26 -0500 Subject: Caching on iOS In-Reply-To: References: Message-ID: On Mon, Jan 9, 2012 at 4:14 PM, Dan Friedman wrote: > Roger, > > The file I am writing is tiny... about 75 bytes! More info... I posted > the file then asked the application to download the file every thirty > seconds. It is getting the older version of the file every time... It's > been about 15 minutes so far and it's still getting the old file. On my > desktop computer (on the same network) I see the new (correct) version of > the file. > > Last night I launched the app (on the iPhone) and had it write the file. > I then checked the file on the phone and it was wrong. I then left the > app open and went to sleep. In the morning, I clicked "refresh" in my app > and the new file was there! > > HUH???? > > -Dan > > If you can post a snippet of your upload script (without credentials), I'm sure someone on this list will see the problem. ~Roger From mike at doub.com Mon Jan 9 16:33:01 2012 From: mike at doub.com (Michael Doub) Date: Mon, 9 Jan 2012 16:33:01 -0500 Subject: Second set of eyes needed. Message-ID: I have been trying to figure out why I have not been able to retrieve valid RGB values from an image. I decided to generate my own image so I would be able to track down my issue. I thought that would be straight forward, Several hrs later and i am still at an impasse. I am trying to understand why I the pixel data, that was just written seems to be corrupted. This occurs on the first pixel of the second row of pixels. Could someone take a look and point out where I am going wrong? Interestingly enough, if you comment out the check with the breakpoint you will get to see the image that seems to look just fine. Thanks Mike local tData on mouseUp BuildImage end mouseUp On BuildImage put empty into tData put 320 into W put 426 into L create image put it into tID set the width of tID to W set the height of tID to L put 1 into R put 1 into G put 0 into B repeat with y = 1 to L repeat with x =1 to W put binaryEncode("CCCC",0,R,G,B) into Pixel put Pixel after tData get getitback (L, x, y) if it <> Pixel then breakpoint end if add 1 to R if R = 256 then put 1 into R end repeat Add 1 to G put 1 into R if G = 256 then put 1 into G end repeat set the imageData of tID to tData end BuildImage function getitback W, xx, yy put ((yy - 1) * W ) + ((xx - 1) * 4) into myindex put charToNum(char myindex + 2 of tData) into RR put charToNum(char myindex + 3 of tData) into GG put charToNum(char myindex + 4 of tData) into BB put binaryEncode("CCCC",0,RR,GG,BB) into it return it end getitback From mike at doub.com Mon Jan 9 16:54:06 2012 From: mike at doub.com (Michael Doub) Date: Mon, 9 Jan 2012 16:54:06 -0500 Subject: Second set of eyes needed. In-Reply-To: References: Message-ID: <53ABC1D6-26D0-4E9E-93A4-303581CFF4D5@doub.com> getitback needs to be passed W not L (width not the length) but the problem still exists. On 2012-01-09, at 4:33 PM, Michael Doub wrote: > I have been trying to figure out why I have not been able to retrieve valid RGB values from an image. > I decided to generate my own image so I would be able to track down my issue. I thought that would > be straight forward, Several hrs later and i am still at an impasse. I am trying to understand why I > the pixel data, that was just written seems to be corrupted. This occurs on the first pixel of the second row > of pixels. > > Could someone take a look and point out where I am going wrong? Interestingly enough, if you comment > out the check with the breakpoint you will get to see the image that seems to look just fine. > > Thanks > Mike > > > > local tData > > on mouseUp > BuildImage > end mouseUp > > On BuildImage > put empty into tData > put 320 into W > put 426 into L > create image > put it into tID > set the width of tID to W > set the height of tID to L > put 1 into R > put 1 into G > put 0 into B > repeat with y = 1 to L > repeat with x =1 to W > put binaryEncode("CCCC",0,R,G,B) into Pixel > put Pixel after tData > get getitback (L, x, y) > if it <> Pixel then > breakpoint > end if > add 1 to R > if R = 256 then put 1 into R > end repeat > Add 1 to G > put 1 into R > if G = 256 then put 1 into G > end repeat > set the imageData of tID to tData > end BuildImage > > function getitback W, xx, yy > put ((yy - 1) * W ) + ((xx - 1) * 4) into myindex > put charToNum(char myindex + 2 of tData) into RR > put charToNum(char myindex + 3 of tData) into GG > put charToNum(char myindex + 4 of tData) into BB > put binaryEncode("CCCC",0,RR,GG,BB) into it > return it > end getitback > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mon Jan 9 16:58:19 2012 From: niggemann at uni-wh.de (BNig) Date: Mon, 9 Jan 2012 13:58:19 -0800 (PST) Subject: Rotate around Center of Mass In-Reply-To: <1326083889506-4277567.post@n4.nabble.com> References: <1325960136367-4273701.post@n4.nabble.com> <1326083889506-4277567.post@n4.nabble.com> Message-ID: <1326146299194-4280217.post@n4.nabble.com> Hi Mark, first thanks to Jim Hurley for his solution to turn the image around an arbitrary point. As always I would never have figured it out. This code is a slight adaption of Jim's code so you can put it into the script of an image and click on the image and the image will turn around the clickLoc. You can also send the image the command turnAroundPoint and a parameter with the coordinates of a point turnAroundPoint pNewXY ---------------------------------- on mouseUp put the clickLoc into tClick turnAroundPoint tClick end mouseUp on turnAroundPoint pClick put pClick into tClick set the angle of me to 0 put the loc of me into myLoc put the rect of me into tImgRect --Set the coor of the rotation Pt put item 1 of tClick into x0 put item 2 of tClick into y0 --Get the loc of the image put item 1 of myLoc into xC put item 2 of myLoc into yC --Get the distance between the roation pt and the image center put sqrt ( (xC - x0 )^2 + (yC - y0)^2 ) into L --Get the angle of the line from the rotation center to the image center put atan2(yC-y0, xC-x0) *180/pi into phi0 put 0 into tAngle repeat with i = 0 to 360 step 5 -- adjust stepsize to control speed lock screen set the angle of me to i put phi0 - i into phi set the loc of me to (x0 + L * cos(phi*pi/180)), (y0 + L * sin(phi*pi/180)) unlock screen wait 5 millisec with messages --or whatever end repeat set the angle of me to 0 set the rect of me to tImgRect end turnAroundPoint ------------------------------------------------ Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Rotate-around-Center-of-Mass-tp4273701p4280217.html Sent from the Revolution - User mailing list archive at Nabble.com. From mike at doub.com Mon Jan 9 17:28:24 2012 From: mike at doub.com (Michael Doub) Date: Mon, 9 Jan 2012 17:28:24 -0500 Subject: Second set of eyes needed. In-Reply-To: <53ABC1D6-26D0-4E9E-93A4-303581CFF4D5@doub.com> References: <53ABC1D6-26D0-4E9E-93A4-303581CFF4D5@doub.com> Message-ID: <4A8BE37A-7ADA-4EB4-8F0C-938D8BF246DE@doub.com> After taking a break for a while and coming back I found it. put ((yy - 1) * W ) + ((xx - 1) * 4) into myindex needs to be put ((yy - 1) * W * 4 ) + ((xx - 1) * 4) into myindex On 2012-01-09, at 4:54 PM, Michael Doub wrote: > getitback needs to be passed W not L (width not the length) but the problem still exists. > > On 2012-01-09, at 4:33 PM, Michael Doub wrote: > >> I have been trying to figure out why I have not been able to retrieve valid RGB values from an image. >> I decided to generate my own image so I would be able to track down my issue. I thought that would >> be straight forward, Several hrs later and i am still at an impasse. I am trying to understand why I >> the pixel data, that was just written seems to be corrupted. This occurs on the first pixel of the second row >> of pixels. >> >> Could someone take a look and point out where I am going wrong? Interestingly enough, if you comment >> out the check with the breakpoint you will get to see the image that seems to look just fine. >> >> Thanks >> Mike >> >> >> >> local tData >> >> on mouseUp >> BuildImage >> end mouseUp >> >> On BuildImage >> put empty into tData >> put 320 into W >> put 426 into L >> create image >> put it into tID >> set the width of tID to W >> set the height of tID to L >> put 1 into R >> put 1 into G >> put 0 into B >> repeat with y = 1 to L >> repeat with x =1 to W >> put binaryEncode("CCCC",0,R,G,B) into Pixel >> put Pixel after tData >> get getitback (L, x, y) >> if it <> Pixel then >> breakpoint >> end if >> add 1 to R >> if R = 256 then put 1 into R >> end repeat >> Add 1 to G >> put 1 into R >> if G = 256 then put 1 into G >> end repeat >> set the imageData of tID to tData >> end BuildImage >> >> function getitback W, xx, yy >> put ((yy - 1) * W ) + ((xx - 1) * 4) into myindex >> put charToNum(char myindex + 2 of tData) into RR >> put charToNum(char myindex + 3 of tData) into GG >> put charToNum(char myindex + 4 of tData) into BB >> put binaryEncode("CCCC",0,RR,GG,BB) into it >> return it >> end getitback >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Mon Jan 9 17:50:33 2012 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Mon, 9 Jan 2012 14:50:33 -0800 Subject: Second set of eyes needed. In-Reply-To: <4A8BE37A-7ADA-4EB4-8F0C-938D8BF246DE@doub.com> References: <53ABC1D6-26D0-4E9E-93A4-303581CFF4D5@doub.com> <4A8BE37A-7ADA-4EB4-8F0C-938D8BF246DE@doub.com> Message-ID: we're always glad to help. On 9 January 2012 14:28, Michael Doub wrote: > After taking a break for a while and coming back I found it. > > put ((yy - 1) * W ) + ((xx - 1) * 4) into myindex needs to be > > put ((yy - 1) * W * 4 ) + ((xx - 1) * 4) into myindex > > > > Stephen Barncard San Francisco Ca. USA more about sqb From stephenREVOLUTION2 at barncard.com Mon Jan 9 17:52:38 2012 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Mon, 9 Jan 2012 14:52:38 -0800 Subject: Second set of eyes needed. In-Reply-To: References: <53ABC1D6-26D0-4E9E-93A4-303581CFF4D5@doub.com> <4A8BE37A-7ADA-4EB4-8F0C-938D8BF246DE@doub.com> Message-ID: Just kidding - my point is, and this happens to me all the time, by the time I get the problem defined and stated on the list, the thought processes involved in explaining it usually enable the solution by myself. On 9 January 2012 14:50, stephen barncard wrote: > we're always glad to help. > > > On 9 January 2012 14:28, Michael Doub wrote: > >> After taking a break for a while and coming back I found it. >> >> put ((yy - 1) * W ) + ((xx - 1) * 4) into myindex needs to be >> >> put ((yy - 1) * W * 4 ) + ((xx - 1) * 4) into myindex >> >> >> >> Stephen Barncard > San Francisco Ca. USA > > more about sqb > > -- Stephen Barncard San Francisco Ca. USA more about sqb From bobs at twft.com Mon Jan 9 18:27:39 2012 From: bobs at twft.com (Bob Sneidar) Date: Mon, 9 Jan 2012 15:27:39 -0800 Subject: Second set of eyes needed. In-Reply-To: References: <53ABC1D6-26D0-4E9E-93A4-303581CFF4D5@doub.com> <4A8BE37A-7ADA-4EB4-8F0C-938D8BF246DE@doub.com> Message-ID: Many on the list will be very thankful indeed to know just how many times I had to close an email without saving because in the process of compiling all my information I discovered what I had done wrong. :-) Bob On Jan 9, 2012, at 2:52 PM, stephen barncard wrote: > Just kidding - my point is, and this happens to me all the time, by the > time I get the problem defined and stated on the list, the thought > processes involved in explaining it usually enable the solution by myself. > > On 9 January 2012 14:50, stephen barncard > wrote: > >> we're always glad to help. >> >> >> On 9 January 2012 14:28, Michael Doub wrote: >> >>> After taking a break for a while and coming back I found it. >>> >>> put ((yy - 1) * W ) + ((xx - 1) * 4) into myindex needs to be >>> >>> put ((yy - 1) * W * 4 ) + ((xx - 1) * 4) into myindex >>> >>> >>> >>> 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 jacque at hyperactivesw.com Mon Jan 9 18:35:40 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 09 Jan 2012 17:35:40 -0600 Subject: Second set of eyes needed. In-Reply-To: References: <53ABC1D6-26D0-4E9E-93A4-303581CFF4D5@doub.com> <4A8BE37A-7ADA-4EB4-8F0C-938D8BF246DE@doub.com> Message-ID: <4F0B79CC.8020307@hyperactivesw.com> On 1/9/12 5:27 PM, Bob Sneidar wrote: > Many on the list will be very thankful indeed to know just how many > times I had to close an email without saving because in the process > of compiling all my information I discovered what I had done wrong. > :-) The same thing happens with bug reports. Believe me, I know. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From mikekann at yahoo.com Mon Jan 9 18:55:01 2012 From: mikekann at yahoo.com (Michael Kann) Date: Mon, 9 Jan 2012 15:55:01 -0800 (PST) Subject: Zen of Computer Programming In-Reply-To: <1326128391945-4279111.post@n4.nabble.com> Message-ID: <1326153301.95511.YahooMailClassic@web161602.mail.bf1.yahoo.com> Alejandro, Now we know what Oetzi was doing in the Alps when he died. http://en.wikipedia.org/wiki/Oetzi --- On Mon, 1/9/12, Alejandro Tejada wrote: From: Alejandro Tejada Subject: Zen of Computer Programming To: use-revolution at lists.runrev.com Date: Monday, January 9, 2012, 10:59 AM Hi all, Recently I was talking with one of my students from Macromedia FreeHand/Adobe Photoshop classes: http://www.facebook.com/media/set/?set=a.2733273854751.2150939.1344437396&type=1&l=7917ab7ac2 and he asked me if the following was true: "The best computer programmers could create a flawless program without the need to run this program in a computer." Well, (I said him), I read about a software developer named Bruno Delean who created his software namde "Live Picture" in this way... but it's not common. http://findarticles.com/p/articles/mi_m3065/is_n12_v23/ai_16090826/ "Live Picture's extraordinary performance is achieved by virtue of a radical new concept/technology called FITS (Functional Interpolating Transformation System), which was developed by Bruno Delean of Toulouse, France-based FITS Imaging. Legend has it that Delean wrote all of the FITS code by hand during a five-year sojourn in the French Alps, praticing a sort of Zen development. He's since come down from the mountain with a truly unique program." My question to all of you is, How many developers you know that could create almost flawless programs without running and debugging? What is their special gift? Thanks in advance! Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Zen-of-Computer-Programming-tp4279111p4279111.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 bdrunrev at gmail.com Mon Jan 9 18:58:46 2012 From: bdrunrev at gmail.com (Bernard Devlin) Date: Mon, 9 Jan 2012 23:58:46 +0000 Subject: Zen of Computer Programming In-Reply-To: <2B9271FE-9D34-4110-A695-EB1A7C195F58@gmail.com> References: <2B9271FE-9D34-4110-A695-EB1A7C195F58@gmail.com> Message-ID: It's all about change. Who needs test-driven development when testing is development. On Mon, Jan 9, 2012 at 7:02 PM, Peter M. Brigham, MD wrote: > So the vendor makes him a deluxe pizza and the Dalai Lama hands him a $20 bill. After a moment he says, "Where's my change?" The vendor says, "Change comes from within!" From bdrunrev at gmail.com Mon Jan 9 19:01:53 2012 From: bdrunrev at gmail.com (Bernard Devlin) Date: Tue, 10 Jan 2012 00:01:53 +0000 Subject: Shell question In-Reply-To: References: <40503139734.20120108180619@ahsoftware.net> <157508266015.20120108193146@ahsoftware.net> Message-ID: Ah. The beauty of Livecode's OS X/Unix "return" substitutions. OS X is unix. Kind of. Until you shell out from Livecode. On Mon, Jan 9, 2012 at 5:42 PM, Pete wrote: > OK, I got this working. ?In order to get the correct linefeed characters > for Unix, From capellan2000 at gmail.com Mon Jan 9 20:06:17 2012 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Mon, 9 Jan 2012 17:06:17 -0800 (PST) Subject: Zen of Computer Programming In-Reply-To: References: <1326128391945-4279111.post@n4.nabble.com> <2B9271FE-9D34-4110-A695-EB1A7C195F58@gmail.com> Message-ID: <1326157577152-4280691.post@n4.nabble.com> Hi All, Many thoughful comments and funny replies! Thanks a lot for sharing your insights. So it is completely possible that exists programmers with skills like Mozart, who according to his biographers, could create a whole composition in his mind and then, sit down to transcript it. Then... a requisite for this "gift" should be an extensive and intensive practical experience in the programming language. And, at least, Ten years or more of daily practice... Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Zen-of-Computer-Programming-tp4279111p4280691.html Sent from the Revolution - User mailing list archive at Nabble.com. From pete at mollysrevenge.com Mon Jan 9 20:48:17 2012 From: pete at mollysrevenge.com (Pete) Date: Mon, 9 Jan 2012 17:48:17 -0800 Subject: Zen of Computer Programming In-Reply-To: <1326157577152-4280691.post@n4.nabble.com> References: <1326128391945-4279111.post@n4.nabble.com> <2B9271FE-9D34-4110-A695-EB1A7C195F58@gmail.com> <1326157577152-4280691.post@n4.nabble.com> Message-ID: I've read a statistic in various places that it takes 10,000 hours of practice to become a genius in some skill or other, always assuming you have the skill in the first place of course. Pete On Mon, Jan 9, 2012 at 5:06 PM, Alejandro Tejada wrote: > Hi All, > > Many thoughful comments and funny replies! > Thanks a lot for sharing your insights. > > So it is completely possible that exists > programmers with skills like Mozart, who > according to his biographers, could > create a whole composition in his mind > and then, sit down to transcript it. > > Then... a requisite for this "gift" should be > an extensive and intensive practical > experience in the programming language. > And, at least, Ten years or more of daily practice... > > Al > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Zen-of-Computer-Programming-tp4279111p4280691.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 > > -- Pete Molly's Revenge From pete at mollysrevenge.com Mon Jan 9 20:48:17 2012 From: pete at mollysrevenge.com (Pete) Date: Mon, 9 Jan 2012 17:48:17 -0800 Subject: Zen of Computer Programming In-Reply-To: <1326157577152-4280691.post@n4.nabble.com> References: <1326128391945-4279111.post@n4.nabble.com> <2B9271FE-9D34-4110-A695-EB1A7C195F58@gmail.com> <1326157577152-4280691.post@n4.nabble.com> Message-ID: I've read a statistic in various places that it takes 10,000 hours of practice to become a genius in some skill or other, always assuming you have the skill in the first place of course. Pete On Mon, Jan 9, 2012 at 5:06 PM, Alejandro Tejada wrote: > Hi All, > > Many thoughful comments and funny replies! > Thanks a lot for sharing your insights. > > So it is completely possible that exists > programmers with skills like Mozart, who > according to his biographers, could > create a whole composition in his mind > and then, sit down to transcript it. > > Then... a requisite for this "gift" should be > an extensive and intensive practical > experience in the programming language. > And, at least, Ten years or more of daily practice... > > Al > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Zen-of-Computer-Programming-tp4279111p4280691.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 > > -- Pete Molly's Revenge From pmbrig at gmail.com Mon Jan 9 21:15:01 2012 From: pmbrig at gmail.com (Peter M. Brigham, MD) Date: Mon, 9 Jan 2012 21:15:01 -0500 Subject: Zen of Computer Programming In-Reply-To: References: <1326128391945-4279111.post@n4.nabble.com> <2B9271FE-9D34-4110-A695-EB1A7C195F58@gmail.com> <1326157577152-4280691.post@n4.nabble.com> Message-ID: I think this comes from neuropsych research, and the proposition is that it takes 10,000 hours to master a field, whether music, math, coding, painting, gymnastics, whatever -- because that's how long it takes to rewire the brain in a fundamental way. 10,000 hours is 5 years full time work, 40h/week, 50 weeks a year. Genius -- that takes something extra, maybe a brain that's genetically suited to your field, plus something more mysterious.... There's a fascinating book by a guy name Doidge, called The Brain That Changes Itself, well worth reading. Nobody knows about what makes genius, though. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Jan 9, 2012, at 8:48 PM, Pete wrote: > I've read a statistic in various places that it takes 10,000 hours of > practice to become a genius in some skill or other, always assuming you > have the skill in the first place of course. > Pete > > On Mon, Jan 9, 2012 at 5:06 PM, Alejandro Tejada wrote: > >> Hi All, >> >> Many thoughful comments and funny replies! >> Thanks a lot for sharing your insights. >> >> So it is completely possible that exists >> programmers with skills like Mozart, who >> according to his biographers, could >> create a whole composition in his mind >> and then, sit down to transcript it. >> >> Then... a requisite for this "gift" should be >> an extensive and intensive practical >> experience in the programming language. >> And, at least, Ten years or more of daily practice... >> >> Al >> >> >> -- >> View this message in context: >> http://runtime-revolution.278305.n4.nabble.com/Zen-of-Computer-Programming-tp4279111p4280691.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 >> >> > > > -- > 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 pete at mollysrevenge.com Mon Jan 9 21:17:33 2012 From: pete at mollysrevenge.com (Pete) Date: Mon, 9 Jan 2012 18:17:33 -0800 Subject: LC database locking commands Message-ID: I see a revDatabaseCommit and a revDatabaseRollback command for databases but I don't see one that issues a BEGIN command. Not a big deal since I can issue one with revExecuteSQL but am I missing something or does LC not provide such a command? -- Pete Molly's Revenge From mwieder at ahsoftware.net Mon Jan 9 21:30:29 2012 From: mwieder at ahsoftware.net (Mark Wieder) Date: Mon, 9 Jan 2012 18:30:29 -0800 Subject: Second set of eyes needed. In-Reply-To: <4A8BE37A-7ADA-4EB4-8F0C-938D8BF246DE@doub.com> References: <53ABC1D6-26D0-4E9E-93A4-303581CFF4D5@doub.com> <4A8BE37A-7ADA-4EB4-8F0C-938D8BF246DE@doub.com> Message-ID: <48590989187.20120109183029@ahsoftware.net> Mike- Monday, January 9, 2012, 2:28:24 PM, you wrote: > put ((yy - 1) * W * 4 ) + ((xx - 1) * 4) into myindex ...and if I'm not wrong about this, that would be put (((yy - 1) * W) + xx - 1)* 4 into myindex -- -Mark Wieder mwieder at ahsoftware.net From katir at hindu.org Mon Jan 9 22:45:23 2012 From: katir at hindu.org (Sivakatirswami) Date: Mon, 09 Jan 2012 17:45:23 -1000 Subject: MP3 Tag Editor Message-ID: <4F0BB453.5020707@hindu.org> Has anyone tinkered with using LiveCode to edit MP3 tags? I could surely use it. Sivakatirswami From stephenREVOLUTION2 at barncard.com Mon Jan 9 23:30:54 2012 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Mon, 9 Jan 2012 20:30:54 -0800 Subject: MP3 Tag Editor In-Reply-To: <4F0BB453.5020707@hindu.org> References: <4F0BB453.5020707@hindu.org> Message-ID: Swami, yes, the late and recently mentioned Mark Smith made a well-documented stack for that purpose. It's been tested by me and it also works on Livecode server with no modifications. http://revonline2.runrev.com/stack/80/id3lib-v1-0-2 On 9 January 2012 19:45, Sivakatirswami wrote: > Has anyone tinkered with using LiveCode to edit MP3 tags? > > I could surely use it. > > 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 > -- Stephen Barncard San Francisco Ca. USA more about sqb From martyknapp at comcast.net Mon Jan 9 23:33:12 2012 From: martyknapp at comcast.net (Marty Knapp) Date: Mon, 09 Jan 2012 20:33:12 -0800 Subject: Sorting Advice Message-ID: <4F0BBF88.2010400@comcast.net> I have a list that I'm currently sorting as follows: --item 2 may be a word or a number --item 1 is a date sort the lines of myList by item 2 of each --sort any words alphabetically sort the lines of myList numeric by item 2 of each --sort the numbers (any words go to the top of the list in the order provided in the first step) sort the lines of myList dateTime by item 1 of each --sort by date While this gives me what I need, is there a faster way to do this? Thanks, Marty From stephenREVOLUTION2 at barncard.com Mon Jan 9 23:48:35 2012 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Mon, 9 Jan 2012 20:48:35 -0800 Subject: Sorting Advice In-Reply-To: <4F0BBF88.2010400@comcast.net> References: <4F0BBF88.2010400@comcast.net> Message-ID: I think one has to make multiple passes - the doc say for "sort container": *The sort container command is a stable sort. This means that if the sortKey for two items or lines is the same, sorting does not change their order, so you can do two successive sorts to create subcategories within the major sort categories.* * * * Tip: To create a custom sort order, use the eachkeyword to pass each line or item to a custom function. The valuereturned by the function is used as the sort key for that line or item. Note that it is not currently possible to debug custom sort functions, and doing so could make the IDE unstable. It is recommended to use logging messages instead.* On 9 January 2012 20:33, Marty Knapp wrote: > I have a list that I'm currently sorting as follows: > > --item 2 may be a word or a number > --item 1 is a date > > sort the lines of myList by item 2 of each --sort any words alphabetically > sort the lines of myList numeric by item 2 of each --sort the numbers (any > words go to the top of the list in the order provided in the first step) > sort the lines of myList dateTime by item 1 of each --sort by date > > While this gives me what I need, is there a faster way to do this? > > Thanks, > Marty > > ______________________________**_________________ > use-livecode mailing list > use-livecode 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 kray at sonsothunder.com Tue Jan 10 02:13:48 2012 From: kray at sonsothunder.com (Ken Ray) Date: Tue, 10 Jan 2012 01:13:48 -0600 Subject: [Bug 9604] Various issues regarding compatibility between LC system date formats and OS X date preferences In-Reply-To: References: Message-ID: <6436A9F3-9869-4A22-A7A7-94A3AC66C9DA@sonsothunder.com> On Jan 5, 2012, at 2:41 PM, Pete wrote: > There was a discussion recently on preventing SQL injections in LC. Here's > an email I got from the support center on a bug/enhancement concerning this. I've responded to this, Pete? Michael's comment is a bit misguided since the documentation even states that the format of the system date is based on the Date/Time control panel? Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From todd at geistinteractive.com Tue Jan 10 11:02:52 2012 From: todd at geistinteractive.com (Todd Geist) Date: Tue, 10 Jan 2012 08:02:52 -0800 Subject: Lunching an LiveCode iOS app from another app Message-ID: Hello, I need a way to Launch a LiveCode app on IOS from another app. This is often done with a custom URL scheme. Is there a way to get a Live Code app to use a custom url scheme? Thanks Todd From bobs at twft.com Tue Jan 10 11:17:35 2012 From: bobs at twft.com (Bob Sneidar) Date: Tue, 10 Jan 2012 08:17:35 -0800 Subject: LC database locking commands In-Reply-To: References: Message-ID: <6304399D-6430-4ADD-9D21-E2DF5E303E75@twft.com> I think you send it as a query. Odd that it is missing though... Bob On Jan 9, 2012, at 6:17 PM, Pete wrote: > I see a revDatabaseCommit and a revDatabaseRollback command for databases > but I don't see one that issues a BEGIN command. Not a big deal since I > can issue one with revExecuteSQL but am I missing something or does LC not > provide such a command? > > -- > 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 pete at mollysrevenge.com Tue Jan 10 11:54:25 2012 From: pete at mollysrevenge.com (Pete) Date: Tue, 10 Jan 2012 08:54:25 -0800 Subject: [Bug 9604] Various issues regarding compatibility between LC system date formats and OS X date preferences In-Reply-To: <6436A9F3-9869-4A22-A7A7-94A3AC66C9DA@sonsothunder.com> References: <6436A9F3-9869-4A22-A7A7-94A3AC66C9DA@sonsothunder.com> Message-ID: Thanks Ken. I responded to Michael on the qcc but probably not strongly enough. I didn't know a bug could be re-opned but I will do so. Pete On Mon, Jan 9, 2012 at 11:13 PM, Ken Ray wrote: > > On Jan 5, 2012, at 2:41 PM, Pete wrote: > > > There was a discussion recently on preventing SQL injections in LC. > Here's > > an email I got from the support center on a bug/enhancement concerning > this. > > I've responded to this, Pete? Michael's comment is a bit misguided since > the documentation even states that the format of the system date is based > on the Date/Time control panel? > > Ken Ray > Sons of Thunder Software, Inc. > Email: kray at sonsothunder.com > Web Site: http://www.sonsothunder.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 > > -- Pete Molly's Revenge From martyknapp at comcast.net Tue Jan 10 12:10:19 2012 From: martyknapp at comcast.net (Marty Knapp) Date: Tue, 10 Jan 2012 09:10:19 -0800 Subject: Sorting Advice In-Reply-To: References: <4F0BBF88.2010400@comcast.net> Message-ID: <4F0C70FB.2040006@comcast.net> OK, so I'm good. Just though I might be missing something. Thanks Stephen. Marty > I think one has to make multiple passes - the doc say for "sort container": > > *The sort container command is a stable sort. This means that if the > sortKey for two items or lines is the same, sorting does not change their > order, so you can do two successive sorts to create subcategories within > the major sort categories.* > * > * > * Tip: To create a custom sort order, use the eachkeyword to pass each line > or item to a custom function. The valuereturned by the function is used as > the sort key for that line or item. Note that it is not currently possible > to debug custom sort functions, and doing so could make the IDE unstable. > It is recommended to use logging messages instead.* > > > On 9 January 2012 20:33, Marty Knapp wrote: > >> I have a list that I'm currently sorting as follows: >> >> --item 2 may be a word or a number >> --item 1 is a date >> >> sort the lines of myList by item 2 of each --sort any words alphabetically >> sort the lines of myList numeric by item 2 of each --sort the numbers (any >> words go to the top of the list in the order provided in the first step) >> sort the lines of myList dateTime by item 1 of each --sort by date >> >> While this gives me what I need, is there a faster way to do this? >> >> Thanks, >> Marty From jhurley0305 at sbcglobal.net Tue Jan 10 12:10:19 2012 From: jhurley0305 at sbcglobal.net (Jim Hurley) Date: Tue, 10 Jan 2012 09:10:19 -0800 Subject: Rev Online--User samples broken? In-Reply-To: References: Message-ID: <9BC43E2B-6632-49B4-B4FB-732BFEC4F098@sbcglobal.net> Is Rev Online broken? It doesn't seem to be accepting user contributions. Also, the Browse feature recognizes ".rev" but not ".livecode" Jim Hurley From rene.micout at numericable.com Tue Jan 10 12:16:44 2012 From: rene.micout at numericable.com (=?iso-8859-1?Q?Ren=E9_Micout?=) Date: Tue, 10 Jan 2012 18:16:44 +0100 Subject: Rev Online--User samples broken? In-Reply-To: <9BC43E2B-6632-49B4-B4FB-732BFEC4F098@sbcglobal.net> References: <9BC43E2B-6632-49B4-B4FB-732BFEC4F098@sbcglobal.net> Message-ID: Hello, I writed that 9th december 2011 and the response : " Dear Ren? Micout, Thank you for writing to the help desk for LiveCode. This is an autoresponse. Your message has been received and assigned a ticket number. You should normally expect a response within 2 working days. During exceptionally busy periods it may take a little longer. In the meantime, you might want to check the LiveCode Lessons area in case your issue is addressed there: http://lessons.runrev.com Please do not reply to this email. Warm Regards The RunRev Robot You wrote: > Good evening, > I have some difficulties to upload a stack on RevOnline... > Can you look if there is some problem with it ? > Thank you > Ren? MicoutEmail has been scanned for viruses by Altman Technologies' email management > service - www.altman.co.uk/emailsystems " Nothing for now > [Ticket#2011120810003644] Le 10 janv. 2012 ? 18:10, Jim Hurley a ?crit : > Is Rev Online broken? It doesn't seem to be accepting user contributions. > > Also, the Browse feature recognizes ".rev" but not ".livecode" > > 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 devin_asay at byu.edu Tue Jan 10 12:40:45 2012 From: devin_asay at byu.edu (Devin Asay) Date: Tue, 10 Jan 2012 17:40:45 +0000 Subject: Rev Online--User samples broken? In-Reply-To: References: <9BC43E2B-6632-49B4-B4FB-732BFEC4F098@sbcglobal.net> Message-ID: I can confirm that Rev Online is down here, too. So are the user comments in the Dictionary in the IDE. IIRC they are on the same server. I've sent a note to support asking about it. Devin On Jan 10, 2012, at 10:16 AM, Ren? Micout wrote: > Hello, > I writed that 9th december 2011 and the response : > > " > Dear Ren? Micout, > Thank you for writing to the help desk for LiveCode. > This is an autoresponse. Your message has been received and assigned a ticket number. > You should normally expect a response within 2 working days. During exceptionally busy periods it may take a little longer. > In the meantime, you might want to check the LiveCode Lessons area in case your issue is addressed there: > http://lessons.runrev.com > Please do not reply to this email. > Warm Regards > The RunRev Robot > > You wrote: > >> Good evening, >> I have some difficulties to upload a stack on RevOnline... >> Can you look if there is some problem with it ? >> Thank you >> Ren? MicoutEmail has been scanned for viruses by Altman Technologies' email management >> service - www.altman.co.uk/emailsystems > " > > Nothing for now > [Ticket#2011120810003644] > > Le 10 janv. 2012 ? 18:10, Jim Hurley a ?crit : > >> Is Rev Online broken? It doesn't seem to be accepting user contributions. >> >> Also, the Browse feature recognizes ".rev" but not ".livecode" Devin Asay Humanities Technology and Research Support Center Brigham Young University From jacque at hyperactivesw.com Tue Jan 10 12:44:08 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 10 Jan 2012 11:44:08 -0600 Subject: Rev Online--User samples broken? In-Reply-To: <9BC43E2B-6632-49B4-B4FB-732BFEC4F098@sbcglobal.net> References: <9BC43E2B-6632-49B4-B4FB-732BFEC4F098@sbcglobal.net> Message-ID: <4F0C78E8.1040803@hyperactivesw.com> On 1/10/12 11:10 AM, Jim Hurley wrote: > Is Rev Online broken? It doesn't seem to be accepting user contributions. > > Also, the Browse feature recognizes ".rev" but not ".livecode" I've been effectively locked out for quite a while now. It won't even recognize my password any more, and resetting it didn't work. I have a bug report, which has been confirmed, but it doesn't specifically address user contributions. Anyone else having issues may want to add comments: -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From mike at doub.com Tue Jan 10 13:13:36 2012 From: mike at doub.com (Michael Doub) Date: Tue, 10 Jan 2012 13:13:36 -0500 Subject: Find nearest color in an RGB list Message-ID: <44C1336E-D994-41BA-AC78-3A0DD11478FC@doub.com> I have a list of RGB colors that represent different color samples. I need to create a function that will return the closest perceived RGB entry in the list when supplied a single RGB value. Is anyone aware of a library or some sample code that would help with this task? From searching I found the follow two suggestions for solving this problem. Neither are not intuitively obvious to the casual observer...namely me. ;-) 1) "Convert RGB to CIE Lab color space, then compute the distance in that space ( deltaE = sqrt(deltaL^2 + deltaA^2 + deltaB^2). Colors with the lowest deltaE are the most perceptually similar to each other." 2) "Convert to RGB to HSL and consider an HSL color value a vector and define a weighted modulus function for the vector like this: modulus = sqrt(a*H1*H1 + b*S1*S1 + c*L1*L1); where a,b,c are weights you should decide based on your visual definition of what creates a bigger difference in perceived color - a 1% change in Hue or a 1% change in Saturation. I would suggest you use a = b = 0.5 and c = 1 Finally, find out the range your modulus would take and define similar colors to be those which have their moduli very close to each other (say 5%)" Regards, Mike From pete at mollysrevenge.com Tue Jan 10 14:31:37 2012 From: pete at mollysrevenge.com (Pete) Date: Tue, 10 Jan 2012 11:31:37 -0800 Subject: Sorting Advice In-Reply-To: <4F0C70FB.2040006@comcast.net> References: <4F0BBF88.2010400@comcast.net> <4F0C70FB.2040006@comcast.net> Message-ID: Hi Marty, I'm not too familiar with the sort command but it sounds like you could use the each keyword and write a custom function to return the concatenated values of items 1 and 2 (zero padding item 2 so you could sort works on text), thus sorting in 1 pass. I have no idea whether it would be any quicker than two passes. Pete On Tue, Jan 10, 2012 at 9:10 AM, Marty Knapp wrote: > OK, so I'm good. Just though I might be missing something. Thanks Stephen. > > Marty > >> I think one has to make multiple passes - the doc say for "sort >> container": >> >> *The sort container command is a stable sort. This means that if the >> sortKey for two items or lines is the same, sorting does not change their >> order, so you can do two successive sorts to create subcategories within >> the major sort categories.* >> * >> * >> * Tip: To create a custom sort order, use the eachkeyword to pass each >> line >> or item to a custom function. The valuereturned by the function is used as >> the sort key for that line or item. Note that it is not currently possible >> to debug custom sort functions, and doing so could make the IDE unstable. >> It is recommended to use logging messages instead.* >> >> >> On 9 January 2012 20:33, Marty Knapp wrote: >> >> I have a list that I'm currently sorting as follows: >>> >>> --item 2 may be a word or a number >>> --item 1 is a date >>> >>> sort the lines of myList by item 2 of each --sort any words >>> alphabetically >>> sort the lines of myList numeric by item 2 of each --sort the numbers >>> (any >>> words go to the top of the list in the order provided in the first step) >>> sort the lines of myList dateTime by item 1 of each --sort by date >>> >>> While this gives me what I need, is there a faster way to do this? >>> >>> Thanks, >>> Marty >>> >> > ______________________________**_________________ > use-livecode mailing list > use-livecode 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 pete at mollysrevenge.com Tue Jan 10 14:43:20 2012 From: pete at mollysrevenge.com (Pete) Date: Tue, 10 Jan 2012 11:43:20 -0800 Subject: OS X Lion Message-ID: A while back there was a discussion on the changes in access privileges to some directories in Lion, I believe mainly to do the system Library directory. Yesterday, I went through the process of installing an LC app on Lion for the first time, and also experiencing Lion for the first time. I don't need to access the system Library directory but I do need to put a Preferences file in the user's Library/Preferences folder which I assume is still the place for preferences files to go. Pre-Lion, I would just click on the icon for my Home directory, then navigate to Library/Preferences in the Finder. In Lion, I could not find a home directory icon to click on, nor could I find an icon representing the computer's hard drive, either on the desktop or in any Finder windows that I could see. I should say I do not have a real installation process for this app, it's something I put together quickly for a friend, so I was simply copying files from a CD to his computer. We didn't have much time to do the install so I wasn't able to poke around Lion to see if there is a way for a user (a System Admin user of course) to get to the Library/Preferences folder. Hopefully someone can give me some guidance on this. I'm also left to wonder if my application will be able to access the preferences file even if I manage to put it into /Library/Preferences. Thanks, -- Pete Molly's Revenge From martyknapp at comcast.net Tue Jan 10 14:54:30 2012 From: martyknapp at comcast.net (Marty Knapp) Date: Tue, 10 Jan 2012 11:54:30 -0800 Subject: OS X Lion In-Reply-To: References: Message-ID: <4F0C9776.40808@comcast.net> Pete - Use the "Go" menu in the Finder, while holding down the option key - that makes it show in the menu. Marty > A while back there was a discussion on the changes in access privileges to > some directories in Lion, I believe mainly to do the system Library > directory. > > Yesterday, I went through the process of installing an LC app on Lion for > the first time, and also experiencing Lion for the first time. I don't > need to access the system Library directory but I do need to put a > Preferences file in the user's Library/Preferences folder which I assume is > still the place for preferences files to go. > > Pre-Lion, I would just click on the icon for my Home directory, then > navigate to Library/Preferences in the Finder. In Lion, I could not find a > home directory icon to click on, nor could I find an icon representing the > computer's hard drive, either on the desktop or in any Finder windows that > I could see. > > I should say I do not have a real installation process for this app, it's > something I put together quickly for a friend, so I was simply copying > files from a CD to his computer. We didn't have much time to do the > install so I wasn't able to poke around Lion to see if there is a way for a > user (a System Admin user of course) to get to the Library/Preferences > folder. > > Hopefully someone can give me some guidance on this. I'm also left to > wonder if my application will be able to access the preferences file even > if I manage to put it into /Library/Preferences. > > Thanks, > From m.schonewille at economy-x-talk.com Tue Jan 10 14:54:52 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Tue, 10 Jan 2012 20:54:52 +0100 Subject: OS X Lion In-Reply-To: References: Message-ID: <355C2FB4-7318-4208-BF46-1784F7354118@economy-x-talk.com> Pete, Press shift-command-G and enter /Library/Preferences or ~/Library/Preferences, press enter and you'll see the preferences folder. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! On 10 jan 2012, at 20:43, Pete wrote: > A while back there was a discussion on the changes in access privileges to > some directories in Lion, I believe mainly to do the system Library > directory. > > Yesterday, I went through the process of installing an LC app on Lion for > the first time, and also experiencing Lion for the first time. I don't > need to access the system Library directory but I do need to put a > Preferences file in the user's Library/Preferences folder which I assume is > still the place for preferences files to go. > > Pre-Lion, I would just click on the icon for my Home directory, then > navigate to Library/Preferences in the Finder. In Lion, I could not find a > home directory icon to click on, nor could I find an icon representing the > computer's hard drive, either on the desktop or in any Finder windows that > I could see. > > I should say I do not have a real installation process for this app, it's > something I put together quickly for a friend, so I was simply copying > files from a CD to his computer. We didn't have much time to do the > install so I wasn't able to poke around Lion to see if there is a way for a > user (a System Admin user of course) to get to the Library/Preferences > folder. > > Hopefully someone can give me some guidance on this. I'm also left to > wonder if my application will be able to access the preferences file even > if I manage to put it into /Library/Preferences. > > Thanks, > > -- > Pete > Molly's Revenge From form at nonsanity.com Tue Jan 10 15:03:12 2012 From: form at nonsanity.com (Nonsanity) Date: Tue, 10 Jan 2012 15:03:12 -0500 Subject: Find nearest color in an RGB list In-Reply-To: <44C1336E-D994-41BA-AC78-3A0DD11478FC@doub.com> References: <44C1336E-D994-41BA-AC78-3A0DD11478FC@doub.com> Message-ID: Both look like good suggestions for getting the closest color a human would think is a "match", but both involve converting Livecode's native RGB to another format. I may be wrong, but I don't think those conversions are available built-in. I'm sure functions have been written to do this many times, but it's not trivial to do from scratch. If you can get one, then the following code will still work - It'll just work better. (Replace the r, g, b variable names with the appropriate letters for clarity.) Depending on your use case, you may not need to be that human-accurate, in which case you can do the same calculation in RGB space. The square root calculation in your two solutions is a way to get the distance between any two points in three dimensional space. All three color formats have three values, so they can all be pictured as a cube of space with colors as points within that space. Your starting color is in there too, and you just have to check the distance from it to all the other color points, and return the shortest. I'm typing this in a mail program, so it is untested... function Distance3D( x1, y1, z1, x2, y2, z2 ) return sqrt( (x1-x2)*(x1-x2) + (y1-y2)*(y1-y2) + (z1-z2)*(z1-z2) ) end Distance3D function GetClosestColor( r, g, b ) put 99999 into ClosestDist put r &"," g &","& b into ClosestColor repeat for each line c of gColorList get Distance3D( r, g, b, item 1 of c, item 2 of c, item 3 of c ) if it < ClosestDist then put it into ClosestDist put c into ClosestColor end if end repeat return ClosestColor end GetClosestColor You'd have your colors in gColorList like this: 32,32,128 255,255,255 0,0,0 128,128,256 (etc) ~ Chris Innanen ~ Nonsanity On Tue, Jan 10, 2012 at 1:13 PM, Michael Doub wrote: > I have a list of RGB colors that represent different color samples. I > need to create a function that will return the closest perceived RGB entry > in the list when supplied a single RGB value. Is anyone aware of a library > or some sample code that would help with this task? > > From searching I found the follow two suggestions for solving this > problem. Neither are not intuitively obvious to the casual > observer...namely me. ;-) > > > 1) "Convert RGB to CIE Lab color space, then compute the distance in that > space ( deltaE = sqrt(deltaL^2 + deltaA^2 + deltaB^2). Colors with the > lowest deltaE are the most perceptually similar to each other." > > 2) "Convert to RGB to HSL and consider an HSL color value a vector and > define a weighted modulus function for the vector like this: > modulus = sqrt(a*H1*H1 + b*S1*S1 + c*L1*L1); where a,b,c are weights you > should decide based on your visual definition of what creates a bigger > difference in perceived color - a 1% change in Hue or a 1% change in > Saturation. I would suggest you use a = b = 0.5 and c = 1 Finally, find > out the range your modulus would take and define similar colors to be those > which have their moduli very close to each other (say 5%)" > > Regards, > Mike > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From mike at doub.com Tue Jan 10 15:31:00 2012 From: mike at doub.com (Michael Doub) Date: Tue, 10 Jan 2012 15:31:00 -0500 Subject: Find nearest color in an RGB list In-Reply-To: References: <44C1336E-D994-41BA-AC78-3A0DD11478FC@doub.com> Message-ID: This works like a charm! Thanks, Mike On 2012-01-10, at 3:03 PM, Nonsanity wrote: > Both look like good suggestions for getting the closest color a human would > think is a "match", but both involve converting Livecode's native RGB to > another format. I may be wrong, but I don't think those conversions are > available built-in. I'm sure functions have been written to do this many > times, but it's not trivial to do from scratch. If you can get one, then > the following code will still work - It'll just work better. (Replace the > r, g, b variable names with the appropriate letters for clarity.) > > Depending on your use case, you may not need to be that human-accurate, in > which case you can do the same calculation in RGB space. The square root > calculation in your two solutions is a way to get the distance between any > two points in three dimensional space. All three color formats have three > values, so they can all be pictured as a cube of space with colors as > points within that space. Your starting color is in there too, and you just > have to check the distance from it to all the other color points, and > return the shortest. > > I'm typing this in a mail program, so it is untested... > > function Distance3D( x1, y1, z1, x2, y2, z2 ) > return sqrt( (x1-x2)*(x1-x2) + (y1-y2)*(y1-y2) + (z1-z2)*(z1-z2) ) > end Distance3D > > function GetClosestColor( r, g, b ) > put 99999 into ClosestDist > put r &"," g &","& b into ClosestColor > repeat for each line c of gColorList > get Distance3D( r, g, b, item 1 of c, item 2 of c, item 3 of c ) > if it < ClosestDist then > put it into ClosestDist > put c into ClosestColor > end if > end repeat > return ClosestColor > end GetClosestColor > > > You'd have your colors in gColorList like this: > 32,32,128 > 255,255,255 > 0,0,0 > 128,128,256 > (etc) > > > ~ Chris Innanen > ~ Nonsanity > > > > On Tue, Jan 10, 2012 at 1:13 PM, Michael Doub wrote: > >> I have a list of RGB colors that represent different color samples. I >> need to create a function that will return the closest perceived RGB entry >> in the list when supplied a single RGB value. Is anyone aware of a library >> or some sample code that would help with this task? >> >> From searching I found the follow two suggestions for solving this >> problem. Neither are not intuitively obvious to the casual >> observer...namely me. ;-) >> >> >> 1) "Convert RGB to CIE Lab color space, then compute the distance in that >> space ( deltaE = sqrt(deltaL^2 + deltaA^2 + deltaB^2). Colors with the >> lowest deltaE are the most perceptually similar to each other." >> >> 2) "Convert to RGB to HSL and consider an HSL color value a vector and >> define a weighted modulus function for the vector like this: >> modulus = sqrt(a*H1*H1 + b*S1*S1 + c*L1*L1); where a,b,c are weights you >> should decide based on your visual definition of what creates a bigger >> difference in perceived color - a 1% change in Hue or a 1% change in >> Saturation. I would suggest you use a = b = 0.5 and c = 1 Finally, find >> out the range your modulus would take and define similar colors to be those >> which have their moduli very close to each other (say 5%)" >> >> Regards, >> Mike >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 bornstein at designeq.com Tue Jan 10 15:43:35 2012 From: bornstein at designeq.com (Howard Bornstein) Date: Tue, 10 Jan 2012 12:43:35 -0800 Subject: color picker in IOS Message-ID: How are people handling the need to present a color picker under IOS? AFAICT this option is not available through the IOS SDK. -- Regards, Howard Bornstein ----------------------- www.designeq.com From kray at sonsothunder.com Tue Jan 10 15:59:40 2012 From: kray at sonsothunder.com (Ken Ray) Date: Tue, 10 Jan 2012 14:59:40 -0600 Subject: Lunching an LiveCode iOS app from another app In-Reply-To: References: Message-ID: On Jan 10, 2012, at 10:02 AM, Todd Geist wrote: > Hello, > > I need a way to Launch a LiveCode app on IOS from another app. This is > often done with a custom URL scheme. Is there a way to get a Live Code app > to use a custom url scheme? There is on the desktop, but I don't know about iOS? on the desktop you'd add a custom URL protocol to the info.plist file of the standalone by adding this inside the first tag (I'm using a fictitious "MyApp" application here): CFBundleURLTypes CFBundleURLName MyApp URL CFBundleURLSchemes myapp LSIsAppleDefaultForScheme This would cause the MyApp application to launch whenever the url "myapp://" was executed. Not sure if this works on iOS, but perhaps you could try it? Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From pete at mollysrevenge.com Tue Jan 10 16:07:34 2012 From: pete at mollysrevenge.com (Pete) Date: Tue, 10 Jan 2012 13:07:34 -0800 Subject: OS X Lion In-Reply-To: <355C2FB4-7318-4208-BF46-1784F7354118@economy-x-talk.com> References: <355C2FB4-7318-4208-BF46-1784F7354118@economy-x-talk.com> Message-ID: Thanks Mark and Marty! Pete On Tue, Jan 10, 2012 at 11:54 AM, Mark Schonewille < m.schonewille at economy-x-talk.com> wrote: > Pete, > > Press shift-command-G and enter /Library/Preferences or > ~/Library/Preferences, press enter and you'll see the preferences folder. > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > Become our partner in sales http://qery.us/1bq Start selling Color > Converter today. 20% commission! > > On 10 jan 2012, at 20:43, Pete wrote: > > > A while back there was a discussion on the changes in access privileges > to > > some directories in Lion, I believe mainly to do the system Library > > directory. > > > > Yesterday, I went through the process of installing an LC app on Lion for > > the first time, and also experiencing Lion for the first time. I don't > > need to access the system Library directory but I do need to put a > > Preferences file in the user's Library/Preferences folder which I assume > is > > still the place for preferences files to go. > > > > Pre-Lion, I would just click on the icon for my Home directory, then > > navigate to Library/Preferences in the Finder. In Lion, I could not > find a > > home directory icon to click on, nor could I find an icon representing > the > > computer's hard drive, either on the desktop or in any Finder windows > that > > I could see. > > > > I should say I do not have a real installation process for this app, it's > > something I put together quickly for a friend, so I was simply copying > > files from a CD to his computer. We didn't have much time to do the > > install so I wasn't able to poke around Lion to see if there is a way > for a > > user (a System Admin user of course) to get to the Library/Preferences > > folder. > > > > Hopefully someone can give me some guidance on this. I'm also left to > > wonder if my application will be able to access the preferences file even > > if I manage to put it into /Library/Preferences. > > > > Thanks, > > > > -- > > 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 > > -- Pete Molly's Revenge From todd at geistinteractive.com Tue Jan 10 16:53:49 2012 From: todd at geistinteractive.com (Todd Geist) Date: Tue, 10 Jan 2012 13:53:49 -0800 Subject: Lunching an LiveCode iOS app from another app In-Reply-To: References: Message-ID: Thanks Ken, On Tue, Jan 10, 2012 at 12:59 PM, Ken Ray wrote: > > On Jan 10, 2012, at 10:02 AM, Todd Geist wrote: > > > Hello, > > > > I need a way to Launch a LiveCode app on IOS from another app. This is > > often done with a custom URL scheme. Is there a way to get a Live Code > app > > to use a custom url scheme? > > There is on the desktop, but I don't know about iOS? on the desktop you'd > add a custom URL protocol to the info.plist file of the standalone by > adding this inside the first tag (I'm using a fictitious "MyApp" > application here): > > CFBundleURLTypes > > > CFBundleURLName > MyApp URL > CFBundleURLSchemes > > myapp > > LSIsAppleDefaultForScheme > > > > > This would cause the MyApp application to launch whenever the url > "myapp://" was executed. Not sure if this works on iOS, but perhaps you > could try it? > > Ken Ray > Sons of Thunder Software, Inc. > Email: kray at sonsothunder.com > Web Site: http://www.sonsothunder.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 > -- Todd Geist (805) 419-9382 From mstuart at adaptcrm.com Tue Jan 10 17:39:43 2012 From: mstuart at adaptcrm.com (Mark Stuart) Date: Tue, 10 Jan 2012 14:39:43 -0800 Subject: Stack to read offline the LiveCode Forum Message-ID: Alejandro wrote: >> Does exists a LiveCode stack to read offline all the LiveCode forum postings? << Alejandro, if you go to this link, I mentioned that I had an application that reads the mail list. Currently, it doesn't have the offline feature, but if folk are interested in that, I would add it. http://lists.runrev.com/pipermail/use-livecode/2011-September/162079.htm l If you can't download the application, let me know and I'll email it directly to you. Regards, Mark Stuart From lan.kc.macmail at gmail.com Tue Jan 10 20:11:21 2012 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Wed, 11 Jan 2012 09:11:21 +0800 Subject: OS X Lion In-Reply-To: References: Message-ID: On Wed, Jan 11, 2012 at 3:43 AM, Pete wrote: > Pre-Lion, I would just click on the icon for my Home directory, then > navigate to Library/Preferences in the Finder. In Lion, I could not find a > home directory icon to click on, nor could I find an icon representing the > computer's hard drive, either on the desktop or in any Finder windows that > I could see. > > To get the Home directory and/or the Hard Drive to appear in the sidebar of the Finder window simply open the Finder's Preferences (not the System Preferences) and select your Home folder and Hard Drive - I guess Apple now thinks because people don't see these on the iPhone they don't want to see them on their desktop. Bizarrely, once you've got your HD in the sidebar you can navigate to your /Library folder and /System/Library folder but Apple still keeps the ~/Library folder hidden. To permanently reveal the ~/Library folder, in Terminal: chflags nohidden ~/Library HTH From niconiko at gmail.com Tue Jan 10 21:04:14 2012 From: niconiko at gmail.com (Nicolas Cueto) Date: Wed, 11 Jan 2012 11:04:14 +0900 Subject: standalone not quitting on Win7 Message-ID: Hello, A standalone can quit on pre-Win7 but not on Win7. Here's the relevant scripts for the card and the stack: on closeStackRequest lock messages -- MySql put revOpenDatabases() into myDatabases repeat for each item myBase in myDatabases revCloseDatabase myBase end repeat -- stop using stacks put the stacksInUse into myStacks repeat for each line myStack in myStacks stop using stack myStack end repeat -- stacks put the openStacks into myStacks put "message box,home,tool,Message Box,revTools,revMenubar" & comma & the short name of me into myDontClose repeat for each line myStack in myStacks if myStack is not among the items of myDontClose then close stack myStack end repeat -- messages put the pendingmessages into myMsgs repeat for each line myMsg in myMsgs cancel item 1 of myMsg end repeat set the backdrop to none unlock messages if the environment is not "development" then pass closeStackRequest end if end closeStackRequest on closeStack quit end closeStack Any ideas? Thanks. -- Nicolas Cueto From m.schonewille at economy-x-talk.com Tue Jan 10 21:17:10 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 11 Jan 2012 03:17:10 +0100 Subject: standalone not quitting on Win7 In-Reply-To: References: Message-ID: Hi Nicolas, That script looks familiar :-) Do you do any error checking in your standalone? If, for example, you're not including database drivers, revOpenDatabases() will cause an error and your app will not quit. You need to adjust your script a little by removing the irrelevant parts. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! On 11 jan 2012, at 03:04, Nicolas Cueto wrote: > Hello, > > A standalone can quit on pre-Win7 but not on Win7. > > Here's the relevant scripts for the card and the stack: > > on closeStackRequest > lock messages > -- MySql > put revOpenDatabases() into myDatabases > repeat for each item myBase in myDatabases > revCloseDatabase myBase > end repeat > -- stop using stacks > put the stacksInUse into myStacks > repeat for each line myStack in myStacks > stop using stack myStack > end repeat > -- stacks > put the openStacks into myStacks > put "message box,home,tool,Message Box,revTools,revMenubar" & comma > & the short name of me into myDontClose > repeat for each line myStack in myStacks > if myStack is not among the items of myDontClose then close stack myStack > end repeat > -- messages > put the pendingmessages into myMsgs > repeat for each line myMsg in myMsgs > cancel item 1 of myMsg > end repeat > set the backdrop to none > unlock messages > if the environment is not "development" then > pass closeStackRequest > end if > end closeStackRequest > > on closeStack > quit > end closeStack > > > Any ideas? Thanks. > > -- > Nicolas Cueto From niconiko at gmail.com Tue Jan 10 22:05:46 2012 From: niconiko at gmail.com (Nicolas Cueto) Date: Wed, 11 Jan 2012 12:05:46 +0900 Subject: standalone not quitting on Win7 In-Reply-To: References: Message-ID: Hi Mark, > That script looks familiar :-) Thought it might be yours. Knew it couldn't be mine -- somewhat over my head! And you were right. Now, after I removed the database drivers from Externals on my nonWin7 machine, the standalone won't close there either. Will verify this on my Win7 once I get home from work. Thanks! P.S. "Akemashite omedeto gozaimasu. Kotoshi mo yoroshiku onegaishimasu!" [The Japanese New Year's greeting, which must be stated the very first moment one happens to re-meet in January someone not only whom, because of their kindness or service in the previous year, one feels happily grateful towards, but also whom, in the months or even years to come, one realizes may again be obliged upon for help.] -- Nicolas Cueto From katir at hindu.org Tue Jan 10 22:44:31 2012 From: katir at hindu.org (Web Admin Himalayan Academy) Date: Tue, 10 Jan 2012 17:44:31 -1000 Subject: MP3 Tag Editor In-Reply-To: References: <4F0BB453.5020707@hindu.org> Message-ID: <4F0D059F.5050804@hindu.org> On Mon Jan 9 18:30:54 2012, stephen barncard wrote: > Swami, > yes, the late and recently mentioned Mark Smith made a well-documented > stack for that purpose. It's been tested by me and it also works on > Livecode server with no modifications. > > > http://revonline2.runrev.com/stack/80/id3lib-v1-0-2 > The Late Mark Smith? Hmm I missed his transition... Hope he is well after stepping through The Big Door. futsoft.futilism.com/revolutionstuff.html is no longer available, i really don't see any documentation in the stack itself, though some careful study of the rather awesomely impressive list of functions might work... do you have the documentation? can you send it to me off line? Sivakatirswami From katir at hindu.org Tue Jan 10 23:06:42 2012 From: katir at hindu.org (Sivakatirswami) Date: Tue, 10 Jan 2012 18:06:42 -1000 Subject: MP3 Tag Editor In-Reply-To: References: <4F0BB453.5020707@hindu.org> Message-ID: <4F0D0AD2.8070403@hindu.org> On Mon Jan 9 18:30:54 2012, stephen barncard wrote: > > Swami, > yes, the late and recently mentioned Mark Smith made a well-documented > stack for that purpose. It's been tested by me and it also works on > Livecode server with no modifications. > > > http://revonline2.runrev.com/stack/80/id3lib-v1-0-2 > Thanks Stephen! see my little baby music site here; dev.himalayanacademy.com/audio (revIgniter) The Late Mark Smith? Hmm I missed his transition... Hope he is well after stepping through The Big Door. Or perhaps he will come back soon and be join the next generation of LiveCoders. I got it... fantastic... and for those looking for documentation I found this in the archives: http://marksmith.on-rev.com/revstuff/files/ and the id3Lib.zip contains documentation. I recall now I used his UUID functions years ago. Looking at ID2.org is an eye opener... some incredibly awesome options and it looks the Mark's functions cover all frame options defined to date. saving lyrics with the song could be a real plus. Cheers Sivakatirswami From monte at sweattechnologies.com Tue Jan 10 23:13:42 2012 From: monte at sweattechnologies.com (Monte Goulding) Date: Wed, 11 Jan 2012 15:13:42 +1100 Subject: [ANN] mergZXing - iOS Barcode Reader External Message-ID: <9221DFC2-22C1-489E-B6C0-8CDA4F74D69B@sweattechnologies.com> Hi All Today I have released mergZXing my iOS Barcode Reader External for sale via my website http://goulding.ws/mergzxing for US$49. The external will also be available on the LiveCode marketplace ASAP. mergZXing currently supports reading barcodes in these formats: UPC-A and UPC-E EAN-8 and EAN-13 Code 39 Code 128 QR Code ITF Data Matrix As an added bonus I have also included mergAnswerColor which is a modal color picker external for iOS. -- Kind Regards, Monte Goulding M E R Goulding - Software Development Services From stephenREVOLUTION2 at barncard.com Tue Jan 10 23:50:45 2012 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Tue, 10 Jan 2012 20:50:45 -0800 Subject: MP3 Tag Editor In-Reply-To: <4F0D0AD2.8070403@hindu.org> References: <4F0BB453.5020707@hindu.org> <4F0D0AD2.8070403@hindu.org> Message-ID: Glad it worked out. I didn't check the stack I linked you to, I thought it had specs on the stack, like libJson. Who put Mark's ON-rev site back up? I thought it disappeared. Or is he an on-rev pioneer with a forever plan? yes I too was impressed with his strict adherence to specs in all his stacks. sqb On 10 January 2012 20:06, Sivakatirswami wrote: > http://marksmith.on-rev.com/**revstuff/files/id3Lib.zip -- Stephen Barncard San Francisco Ca. USA more about sqb From monte at sweattechnologies.com Wed Jan 11 00:30:26 2012 From: monte at sweattechnologies.com (Monte Goulding) Date: Wed, 11 Jan 2012 16:30:26 +1100 Subject: color picker in IOS In-Reply-To: References: Message-ID: <0B957961-F5A2-4FF7-9526-1D9D7BB7CEF2@sweattechnologies.com> Hi Howard I've written an external for iOS. It's a bonus when you buy mergZXing my iOS barcode reader external. See http://goulding.ws/merzxing Cheers Monte On 11/01/2012, at 7:43 AM, Howard Bornstein wrote: > How are people handling the need to present a color picker under IOS? > AFAICT this option is not available through the IOS SDK. > > -- > Regards, > > Howard Bornstein > ----------------------- > www.designeq.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 gwendalwood at cox.net Wed Jan 11 03:07:46 2012 From: gwendalwood at cox.net (gwendalwood at cox.net) Date: Wed, 11 Jan 2012 0:07:46 -0800 Subject: iOS print external problem Message-ID: <20120111030746.WRBBS.611261.imail@fed1rmwml205> Has anyone else found that the iOs HardCopy external has a problem dealing with two-sided printing? When two or more pages are printed from my iPad 2, it always prints two-sided to a two-sided capable printer even when the option is turned off in the pop-up dialog. Who is the author of the external or who could I contact for followup? From sc at sahores-conseil.com Wed Jan 11 03:22:33 2012 From: sc at sahores-conseil.com (Pierre Sahores) Date: Wed, 11 Jan 2012 09:22:33 +0100 Subject: standalone not quitting on Win7 In-Reply-To: References: Message-ID: <70C75600-AC53-4FA3-BC0A-61C4DEBCFF36@sahores-conseil.com> Did you try ? on closeStack wait 1 quit end closeStack Best, Le 11 janv. 2012 ? 03:04, Nicolas Cueto a ?crit : > on closeStack > quit > end closeStack > > > Any ideas? Thanks. > > -- > Nicolas Cueto -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com From mazzapaoloitaly at gmail.com Wed Jan 11 05:49:32 2012 From: mazzapaoloitaly at gmail.com (paolo mazza) Date: Wed, 11 Jan 2012 11:49:32 +0100 Subject: Regular expression to find the date In-Reply-To: References: Message-ID: Thank you all. You are the wizards of Regular Expressions! Both of these solutions work great. However, to me, a perfect solution would be a combination of the two, A Regular Expression that accept 05/01/2011 05-01-2011 05.01.2011 ... and also 11/9/2011 5/10/2011 ... as a date. Thank you very much. All the best Paolo Mazza From m.schonewille at economy-x-talk.com Wed Jan 11 06:35:02 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 11 Jan 2012 12:35:02 +0100 Subject: standalone not quitting on Win7 In-Reply-To: References: Message-ID: <474485D6-6941-4DB8-8FD0-1B45CFEBB086@economy-x-talk.com> Happy new year to you too, Nico-san! -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! On 11 jan 2012, at 04:05, Nicolas Cueto wrote: > > > P.S. "Akemashite omedeto gozaimasu. Kotoshi mo yoroshiku onegaishimasu!" > > [The Japanese New Year's greeting, which must be stated the very first > moment one happens to re-meet in January someone not only whom, > because of their kindness or service in the previous year, one feels > happily grateful towards, but also whom, in the months or even years > to come, one realizes may again be obliged upon for help.] > -- > Nicolas Cueto From m.schonewille at economy-x-talk.com Wed Jan 11 06:51:20 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 11 Jan 2012 12:51:20 +0100 Subject: standalone not quitting on Win7 In-Reply-To: <70C75600-AC53-4FA3-BC0A-61C4DEBCFF36@sahores-conseil.com> References: <70C75600-AC53-4FA3-BC0A-61C4DEBCFF36@sahores-conseil.com> Message-ID: <75DA5123-AACF-4F4F-B23B-8DEFD624D50A@economy-x-talk.com> Hi, The wait command blocks all other handlers and hence has no effect. Maybe you mean wait 1 with messages, but I don't think it matters. You can ignore the wait command. Also, I wouldn't put the quit command in the closeStack handler but in the closeStackRequest handler because the closeStack handler can't prevent a stack from closing but the closeStackRequest handler can. I wrote my script specifically because a simple quit command wouldn't do. Windows standalones tend to remain in memory if an external or database driver is still running or if a window wasn't closed and there are versions of Revolution (and maybe LiveCode but I wouldn't know because I always use my script) that crash if the quit command is executed while a backdrop is active. Usually, I don't run my script inside a closeStack(Request) handler. I have a separate handler for it, which I call from the quit menu item on Windows and from the shutdownRequest handler on Mac OS X. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! On 11 jan 2012, at 09:22, Pierre Sahores wrote: > Did you try ? > > on closeStack > wait 1 > quit > end closeStack > > Best, > > > Le 11 janv. 2012 ? 03:04, Nicolas Cueto a ?crit : > >> on closeStack >> quit >> end closeStack >> >> >> Any ideas? Thanks. >> >> -- >> Nicolas Cueto From th.douez at gmail.com Wed Jan 11 06:59:17 2012 From: th.douez at gmail.com (Thierry Douez) Date: Wed, 11 Jan 2012 12:59:17 +0100 Subject: Regular expression to find the date In-Reply-To: References: Message-ID: Hi Paolo, Both of these solutions work great. > However, to me, a perfect solution would be a combination of the two, > > A Regular Expression that accept > > 05/01/2011 > 05-01-2011 > 05.01.2011 > ... > and also > > 11/9/2011 > 5/10/2011 > ... > as a date. > If you need an optional '0' for one digit day and month, add a question mark after the 0 in the Regexp, like this : put "((0?[1-9]|[12][0-9]|3[01])[-/.](0?[1-9]|1[012])[-/.]((19|20)\d\d))" into myRegEx HTH, Thierry From m.schonewille at economy-x-talk.com Wed Jan 11 07:04:46 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 11 Jan 2012 13:04:46 +0100 Subject: [ANN] Installer Maker 1.7.2 In-Reply-To: References: Message-ID: <5AE4D324-21D4-4DF4-AD19-31D6189CC3C2@economy-x-talk.com> Hello, I made a small update to the Installer Maker Plugin. The new version is 1.7.2 and fixes two annoying bugs. This update is free for all owners of a valid license for 1.7.1. Go to http://qery.us/za to get it. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! From bobs at twft.com Wed Jan 11 11:30:41 2012 From: bobs at twft.com (Bob Sneidar) Date: Wed, 11 Jan 2012 08:30:41 -0800 Subject: [ANN] mergZXing - iOS Barcode Reader External In-Reply-To: <9221DFC2-22C1-489E-B6C0-8CDA4F74D69B@sweattechnologies.com> References: <9221DFC2-22C1-489E-B6C0-8CDA4F74D69B@sweattechnologies.com> Message-ID: <3D864B57-637E-42B8-B986-D95691099E8D@twft.com> Good job and good luck to you! Bob On Jan 10, 2012, at 8:13 PM, Monte Goulding wrote: > Hi All > > Today I have released mergZXing my iOS Barcode Reader External for sale via my website http://goulding.ws/mergzxing for US$49. > > The external will also be available on the LiveCode marketplace ASAP. > > mergZXing currently supports reading barcodes in these formats: > > UPC-A and UPC-E > EAN-8 and EAN-13 > Code 39 > Code 128 > QR Code > ITF > Data Matrix > As an added bonus I have also included mergAnswerColor which is a modal color picker external for iOS. > > -- > Kind Regards, > > Monte Goulding > M E R Goulding - Software Development Services > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jan 11 11:40:34 2012 From: bobs at twft.com (Bob Sneidar) Date: Wed, 11 Jan 2012 08:40:34 -0800 Subject: On-Rev down? Message-ID: I am trying to connect to On-Rev SQL database, and failing. Anyone else having problems? Bob From bonnmike at gmail.com Wed Jan 11 11:52:28 2012 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 11 Jan 2012 09:52:28 -0700 Subject: On-Rev down? In-Reply-To: References: Message-ID: My sites are working (odin) and I can log in to odins cpanel ok but there was some weirdness. Went to https://odin.on-rev.com:2083/login/ box pops up asking for username and password. Wouldn't let me log in. Failed miserably. Tried alternate passwords on the offchance I mis-remember. Nope. Hit cancel, box goes away, says I failed due to invalid username. Yet on the screen it shows the same username and a password box (web entry now, not popup auth box). Try my password. Poof, in. Anyone know what is up with this? The box that pops up appears to be a standard dialog that appears for network resource login credentials. Same box pops up for access to game academy materials. On Wed, Jan 11, 2012 at 9:40 AM, Bob Sneidar wrote: > I am trying to connect to On-Rev SQL database, and failing. Anyone else > having problems? > > 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 rdimola at evergreeninfo.net Wed Jan 11 11:55:54 2012 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 11 Jan 2012 11:55:54 -0500 Subject: On-Rev down? In-Reply-To: References: Message-ID: <004101ccd081$e20cccb0$a6266610$@net> I am having no problem connecting to my on-rev MySQL database. Ralph DiMola IT Director Evergreen Information Services Phone: 518-636-3998 Ex:11 Cell: 518-796-9332 -----Original Message----- From: use-livecode-bounces at lists.runrev.com [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Bob Sneidar Sent: Wednesday, January 11, 2012 11:41 AM To: How to use LiveCode Subject: On-Rev down? I am trying to connect to On-Rev SQL database, and failing. Anyone else having problems? 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 capellan2000 at gmail.com Wed Jan 11 11:57:38 2012 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Wed, 11 Jan 2012 08:57:38 -0800 (PST) Subject: Stack to read offline the LiveCode Forum In-Reply-To: References: <1325881246904-4270704.post@n4.nabble.com> Message-ID: <1326301058320-4286084.post@n4.nabble.com> Hi Mark, Mark Stuart-2 wrote > > Alejandro wrote: >>> > Does exists a LiveCode stack to read offline > all the LiveCode forum postings? > << > > Alejandro, if you go to this link, I mentioned that I had an application > that reads the mail list. > Currently, it doesn't have the offline feature, but if folk are > interested in that, I would add it. > > http://lists.runrev.com/pipermail/use-livecode/2011-September/162079.html > > If you can't download the application, let me know and I'll email it > directly to you. > Many thanks for the link. Actually, I am looking for a stack that could display the forum. Ideally, a single stack should display both, the forum and the mail list. Have a nice day! Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Stack-to-read-offline-the-LiveCode-Forum-tp4270704p4286084.html Sent from the Revolution - User mailing list archive at Nabble.com. From rdimola at evergreeninfo.net Wed Jan 11 12:06:51 2012 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 11 Jan 2012 12:06:51 -0500 Subject: On-Rev down? In-Reply-To: References: Message-ID: <004201ccd083$69ec2a80$3dc47f80$@net> I am having no problem connecting to the control panel either. Ralph DiMola IT Director Evergreen Information Services Phone: 518-636-3998 Ex:11 Cell: 518-796-9332 -----Original Message----- From: use-livecode-bounces at lists.runrev.com [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Bob Sneidar Sent: Wednesday, January 11, 2012 11:41 AM To: How to use LiveCode Subject: On-Rev down? I am trying to connect to On-Rev SQL database, and failing. Anyone else having problems? 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 sc at sahores-conseil.com Wed Jan 11 13:01:37 2012 From: sc at sahores-conseil.com (Pierre Sahores) Date: Wed, 11 Jan 2012 19:01:37 +0100 Subject: On-Rev down? In-Reply-To: References: Message-ID: <52875EE6-1020-4A38-BD0F-D9FA9BAC8999@sahores-conseil.com> loki is OK for me. Le 11 janv. 2012 ? 17:40, Bob Sneidar a ?crit : > I am trying to connect to On-Rev SQL database, and failing. Anyone else having problems? > > 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 -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com From bobs at twft.com Wed Jan 11 13:09:39 2012 From: bobs at twft.com (Bob Sneidar) Date: Wed, 11 Jan 2012 10:09:39 -0800 Subject: On-Rev down? In-Reply-To: References: Message-ID: <8E430BB2-7AFA-40A8-8C6E-B99D8B2860A3@twft.com> NVM it is something on this end. Still troubleshooting... Bob On Jan 11, 2012, at 8:52 AM, Mike Bonner wrote: > My sites are working (odin) and I can log in to odins cpanel ok but there > was some weirdness. Went to https://odin.on-rev.com:2083/login/ box pops > up asking for username and password. Wouldn't let me log in. Failed > miserably. Tried alternate passwords on the offchance I mis-remember. > Nope. Hit cancel, box goes away, says I failed due to invalid username. > Yet on the screen it shows the same username and a password box (web entry > now, not popup auth box). Try my password. Poof, in. > > Anyone know what is up with this? The box that pops up appears to be a > standard dialog that appears for network resource login credentials. Same > box pops up for access to game academy materials. > > On Wed, Jan 11, 2012 at 9:40 AM, Bob Sneidar wrote: > >> I am trying to connect to On-Rev SQL database, and failing. Anyone else >> having problems? >> >> 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 jhurley0305 at sbcglobal.net Wed Jan 11 13:36:45 2012 From: jhurley0305 at sbcglobal.net (Jim Hurley) Date: Wed, 11 Jan 2012 10:36:45 -0800 Subject: OT Password protection of RR server? In-Reply-To: References: Message-ID: <79480B64-4AFB-435F-8CC8-48947A77B9C9@sbcglobal.net> Mark, I finally got my password for cPanel from Heather and I plunged into password protecting a web page. Or so I thought. I assumed that a web address was a directory and I thought I was protecting a web page but turned out locking up much more. There is still one folder jamesphurley.com/District3 that I am locked out of. Is there a way in cPanel to unprotect a page? (It would be helpful to include this kind of info in the help link. Not any time soon, I afraid. I suspect that RR is bitten off more than they are able to chew at the moment. Witness the downtime on Rev OnLine User Samples.) Also, the page I use for my neighborhood association is lvrmna.on-rev.com At one point everyone in the neighborhood was locked out of that site due to a password protection I didn't realize I was making. Very embarrassing. A little knowledge is a dangerous thing. I recall in the beginning that my deal with RR was a web presence with the url jamesphurley.on-rev.com (I own a domain name jamesphurley.com) which they were able to shorten for me to jamesphurley.com. Is this just an alias for jamesphurley.on-rev.com? Is it possible through cPanel to shorten lvrmna.on-rev.com to simply lvrmna.com? I hate this stuff. I have no idea what's going on under the hood. Thanks, Jim Hurley > Mark, > > Thank you going into the details. They will be helpful when Heather returns information about my user name and password.. > > It has been months since I have used cPanel. > > Wish me luck. > > Jim Hurley > > >> >> Message: 24 >> Date: Tue, 27 Dec 2011 17:04:59 -0800 >> From: Mark Wieder >> To: How to use LiveCode >> Subject: As Matthias said, log on to on-rev's cPanel, then scroll down the page >> to the Security section and click on Password Protect Directories. >> You'll probably want to click on the public_html icon (not the text) >> to open it and then navigate your way down to the folder you want to >> protect. >> >> When you finally find the right one, click on its text (not its icon), >> then place a check in the checkbox to verify that you want to protect >> it and (optionally) set a name for the directory. Then enter a >> username and password (both are necessary to unlock the directory) and >> click Add/modify authorized user. You're done unless you want to add >> more user/password pairs. >> >> -- >> -Mark Wieder >> mwieder at ahsoftware.net >> Message-ID: <65943378687.20111227170459 at ahsoftware.net> >> Content-Type: text/plain; charset=us-ascii >> >> Jim- >> >> Tuesday, December 27, 2011, 11:03:52 AM, you wrote: >> >>> I would like to password protect a page. Is there anything about >>> the RR server that affects how that should be done? >> >> As Matthias said, log on to on-rev's cPanel, then scroll down the page >> to the Security section and click on Password Protect Directories. >> You'll probably want to click on the public_html icon (not the text) >> to open it and then navigate your way down to the folder you want to >> protect. >> >> When you finally find the right one, click on its text (not its icon), >> then place a check in the checkbox to verify that you want to protect >> it and (optionally) set a name for the directory. Then enter a >> username and password (both are necessary to unlock the directory) and >> click Add/modify authorized user. You're done unless you want to add >> more user/password pairs. >> >> -- >> -Mark Wieder >> mwieder at ahsoftware.net >> > From m.schonewille at economy-x-talk.com Wed Jan 11 13:43:54 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 11 Jan 2012 19:43:54 +0100 Subject: OT Password protection of RR server? In-Reply-To: <79480B64-4AFB-435F-8CC8-48947A77B9C9@sbcglobal.net> References: <79480B64-4AFB-435F-8CC8-48947A77B9C9@sbcglobal.net> Message-ID: <7490D880-26DF-4BFE-AFC1-0CEC850805F0@economy-x-talk.com> Hi Jim, The easy way to unprotect a page is to log in with FTP and remove the httpaccess file from the directory. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! On 11 jan 2012, at 19:36, Jim Hurley wrote: > Mark, > > I finally got my password for cPanel from Heather and I plunged into password protecting a web page. > > Or so I thought. I assumed that a web address was a directory and I thought I was protecting a web page but turned out locking up much more. > > There is still one folder jamesphurley.com/District3 that I am locked out of. Is there a way in cPanel to unprotect a page? (It would be helpful to include this kind of info in the help link. Not any time soon, I afraid. I suspect that RR is bitten off more than they are able to chew at the moment. Witness the downtime on Rev OnLine User Samples.) > > Also, the page I use for my neighborhood association is lvrmna.on-rev.com At one point everyone in the neighborhood was locked out of that site due to a password protection I didn't realize I was making. Very embarrassing. A little knowledge is a dangerous thing. > > I recall in the beginning that my deal with RR was a web presence with the url jamesphurley.on-rev.com (I own a domain name jamesphurley.com) which they were able to shorten for me to jamesphurley.com. Is this just an alias for jamesphurley.on-rev.com? Is it possible through cPanel to shorten lvrmna.on-rev.com to simply lvrmna.com? > > I hate this stuff. I have no idea what's going on under the hood. > > Thanks, > > Jim Hurley From jhurley0305 at sbcglobal.net Wed Jan 11 13:46:15 2012 From: jhurley0305 at sbcglobal.net (Jim Hurley) Date: Wed, 11 Jan 2012 10:46:15 -0800 Subject: Oops References: <79480B64-4AFB-435F-8CC8-48947A77B9C9@sbcglobal.net> Message-ID: <13C957C7-603E-462C-B9A5-D60F41C33FE9@sbcglobal.net> Oops. That last message of mine was intended for Mark, not the entire list. Jim Hurley From bonnmike at gmail.com Wed Jan 11 14:08:29 2012 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 11 Jan 2012 12:08:29 -0700 Subject: OT Password protection of RR server? In-Reply-To: <79480B64-4AFB-435F-8CC8-48947A77B9C9@sbcglobal.net> References: <79480B64-4AFB-435F-8CC8-48947A77B9C9@sbcglobal.net> Message-ID: If you want to look at the toplevel folder assigned to each of your domains you can go to cPanel and click domains. This is where you can add a domain or just adjust or see how things are set for existing domains. Your domain jamesphurley.com should be shown there. You can also look at "subdomains" IE modifications of your domain such as www.jamesphurley.com is a subdomain of jamesphurley.com . You can look at these assignments and create new ones if you go to subdomains in cpanel. If you wanted to have goodstuff.yourdomain.com and info.yourdomain.compoint at the same stuff, you just assign them to the same folder as a subdomain. I think www is set up that way by default. http://jamesphurley.on-rev.com/ should point to the public_html folder. Depending on how your addon domains were set up, their folders should probably be inside that public_html as subfolders. (Though I seem to have 1 that is NOT! If it can be messed up, I can do it!) If you want to set up Ivrmna as a domain and you own ivrmna.com or whatever you need to go to the place that you bought the domain name from and set the domain name servers for that name so that they point to the on-rev nameservers. Then in cPanel in on-rev add the domain name and get it all set up. I don't have any more domain names to set up at the moment or I'd give you a step by step, but it hopefully shouldn't be too bad. The nameservers for on-rev are NS1.ON-REV.COM and NS2.ON-REV.COM As was mentioned, there is probably an .htaccess file in your locked out folder. Using cpanel filenamager you can either remove it, or edit it to fix the problem. From bonnmike at gmail.com Wed Jan 11 14:08:59 2012 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 11 Jan 2012 12:08:59 -0700 Subject: Oops In-Reply-To: <13C957C7-603E-462C-B9A5-D60F41C33FE9@sbcglobal.net> References: <79480B64-4AFB-435F-8CC8-48947A77B9C9@sbcglobal.net> <13C957C7-603E-462C-B9A5-D60F41C33FE9@sbcglobal.net> Message-ID: oops, sorry for replying then :) On Wed, Jan 11, 2012 at 11:46 AM, Jim Hurley wrote: > Oops. > > That last message of mine was intended for Mark, not the entire list. > > 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 jhurley0305 at sbcglobal.net Wed Jan 11 14:11:25 2012 From: jhurley0305 at sbcglobal.net (Jim Hurley) Date: Wed, 11 Jan 2012 11:11:25 -0800 Subject: OT Password protection of RR server? In-Reply-To: References: Message-ID: <1066BF2F-F219-432F-A898-40FAA34A37DD@sbcglobal.net> Mark, Thanks Mark. I did as you suggested without results. I am trying to unprotect the url: jamesphurley.com/District3 but I still get this message: To view this page, you must log in to area ?District3? on jamesphurley.com:80. I have no idea what the :80 suffix means. District3 is a folder in my directory. Jim > > > Hi Jim, > > The easy way to unprotect a page is to log in with FTP and remove the httpaccess file from the directory. > > -- > Best regards, > > Mark Schonewille > > From bonnmike at gmail.com Wed Jan 11 14:14:18 2012 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 11 Jan 2012 12:14:18 -0700 Subject: OT Password protection of RR server? In-Reply-To: <1066BF2F-F219-432F-A898-40FAA34A37DD@sbcglobal.net> References: <1066BF2F-F219-432F-A898-40FAA34A37DD@sbcglobal.net> Message-ID: :80 just indicates that its the default http port. On Wed, Jan 11, 2012 at 12:11 PM, Jim Hurley wrote: > Mark, > > Thanks Mark. I did as you suggested without results. I am trying to > unprotect the url: > > jamesphurley.com/District3 > > but I still get this message: > > To view this page, you must log in to area ?District3? on > jamesphurley.com:80. > > I have no idea what the :80 suffix means. > > District3 is a folder in my directory. > > Jim > > > > > > > > Hi Jim, > > > > The easy way to unprotect a page is to log in with FTP and remove the > httpaccess file from the directory. > > > > -- > > Best regards, > > > > Mark Schonewille > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Wed Jan 11 14:14:28 2012 From: jhurley0305 at sbcglobal.net (Jim Hurley) Date: Wed, 11 Jan 2012 11:14:28 -0800 Subject: OT Password protection of RR server? In-Reply-To: References: Message-ID: <1CF7B31F-ACB3-478F-B2B1-CC92EA95422F@sbcglobal.net> P.S. Below the message (To view this page etc.) are the fields in which to enter a username and password. Jim > Mark, > > Thanks Mark. I did as you suggested without results. I am trying to unprotect the url: > > jamesphurley.com/District3 > > but I still get this message: > > To view this page, you must log in to area ?District3? on jamesphurley.com:80. > > I have no idea what the :80 suffix means. > > District3 is a folder in my directory. > > Jim > > >> >> >> Hi Jim, >> >> The easy way to unprotect a page is to log in with FTP and remove the httpaccess file from the directory. >> >> -- >> Best regards, >> >> Mark Schonewille >> > From warrenkuhl at gmail.com Wed Jan 11 14:15:24 2012 From: warrenkuhl at gmail.com (Warren Kuhl) Date: Wed, 11 Jan 2012 13:15:24 -0600 Subject: Group Question Message-ID: I want to add an object to a group (which is in another group). I am trying to do this from the message box. What is the syntax of this? Isn't it something like: In the example below, group 1 is in group 2. set the group of image "Imagexxx" to group "group1" of group2 "group 2" I thought I did this before, but I keep getting a error - token is not a property. Appreciate any help! Warren From klaus at major.on-rev.com Wed Jan 11 14:22:46 2012 From: klaus at major.on-rev.com (Klaus on-rev) Date: Wed, 11 Jan 2012 20:22:46 +0100 Subject: Group Question In-Reply-To: References: Message-ID: Hi Warren, Am 11.01.2012 um 20:15 schrieb Warren Kuhl: > I want to add an object to a group (which is in another group). I am > trying to do this from the message box. What is the syntax of this? > Isn't it something like: > > In the example below, group 1 is in group 2. > > set the group of image "Imagexxx" to group "group1" of group2 "group 2" > > I thought I did this before, but I keep getting a error - token is not > a property. "group" is not a property but a "container"! You can: ... copy img "nice one" of grp "gruppo uno" to grp "gruppo due" ... create img in grp "the one without any image yet" ... etc. > Appreciate any help! > Warren Best Klaus -- Klaus Major http://www.major-k.de klaus at major.on-rev.com From bobs at twft.com Wed Jan 11 14:34:43 2012 From: bobs at twft.com (Bob Sneidar) Date: Wed, 11 Jan 2012 11:34:43 -0800 Subject: Group Question In-Reply-To: References: Message-ID: <8D9B2792-A68C-4DCF-ABA6-78CE4227FA82@twft.com> Don't you mean: set the group of image "Imagexxx" to group "group1" of group "group 2" Also the names of the groups are not consistent. Typo? I do not think you have to use "of group "Group 2". Bob On Jan 11, 2012, at 11:15 AM, Warren Kuhl wrote: > I want to add an object to a group (which is in another group). I am > trying to do this from the message box. What is the syntax of this? > Isn't it something like: > > In the example below, group 1 is in group 2. > > set the group of image "Imagexxx" to group "group1" of group2 "group 2" > > I thought I did this before, but I keep getting a error - token is not > a property. > > Appreciate any help! > 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 andre at andregarzia.com Wed Jan 11 14:40:38 2012 From: andre at andregarzia.com (Andre Garzia) Date: Wed, 11 Jan 2012 17:40:38 -0200 Subject: [ANN] mergZXing - iOS Barcode Reader External In-Reply-To: <3D864B57-637E-42B8-B986-D95691099E8D@twft.com> References: <9221DFC2-22C1-489E-B6C0-8CDA4F74D69B@sweattechnologies.com> <3D864B57-637E-42B8-B986-D95691099E8D@twft.com> Message-ID: Just purchased it! will use 2D barcodes to label everything here...... now, if this cat stand still for couple minutes, I can tag him too.... Monte, thanks for the external! On Wed, Jan 11, 2012 at 2:30 PM, Bob Sneidar wrote: > Good job and good luck to you! > > Bob > > > On Jan 10, 2012, at 8:13 PM, Monte Goulding wrote: > > > Hi All > > > > Today I have released mergZXing my iOS Barcode Reader External for sale > via my website http://goulding.ws/mergzxing for US$49. > > > > The external will also be available on the LiveCode marketplace ASAP. > > > > mergZXing currently supports reading barcodes in these formats: > > > > UPC-A and UPC-E > > EAN-8 and EAN-13 > > Code 39 > > Code 128 > > QR Code > > ITF > > Data Matrix > > As an added bonus I have also included mergAnswerColor which is a modal > color picker external for iOS. > > > > -- > > Kind Regards, > > > > Monte Goulding > > M E R Goulding - Software Development Services > > _______________________________________________ > > use-livecode mailing list > > use-livecode 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. http://fon.nu -- minimalist url shortening service. From bobs at twft.com Wed Jan 11 14:54:46 2012 From: bobs at twft.com (Bob Sneidar) Date: Wed, 11 Jan 2012 11:54:46 -0800 Subject: Group Question In-Reply-To: References: Message-ID: I got the propertynames and pasted them into a text editor. I then searched for "group" and none of the things I found sound like they are properties you can set to add an object to a group. Bob On Jan 11, 2012, at 11:15 AM, Warren Kuhl wrote: > I want to add an object to a group (which is in another group). I am > trying to do this from the message box. What is the syntax of this? > Isn't it something like: > > In the example below, group 1 is in group 2. > > set the group of image "Imagexxx" to group "group1" of group2 "group 2" > > I thought I did this before, but I keep getting a error - token is not > a property. > > Appreciate any help! > 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 Wed Jan 11 14:56:44 2012 From: bobs at twft.com (Bob Sneidar) Date: Wed, 11 Jan 2012 11:56:44 -0800 Subject: [ANN] mergZXing - iOS Barcode Reader External In-Reply-To: References: <9221DFC2-22C1-489E-B6C0-8CDA4F74D69B@sweattechnologies.com> <3D864B57-637E-42B8-B986-D95691099E8D@twft.com> Message-ID: Taze him. That's what I do with my cat. Not to get him to stand still, just for entertainment. ;-) KIDDING! I'M KIDDING! Bob On Jan 11, 2012, at 11:40 AM, Andre Garzia wrote: > Just purchased it! will use 2D barcodes to label everything here...... now, > if this cat stand still for couple minutes, I can tag him too.... > > Monte, thanks for the external! > > On Wed, Jan 11, 2012 at 2:30 PM, Bob Sneidar wrote: > >> Good job and good luck to you! >> >> Bob >> >> >> On Jan 10, 2012, at 8:13 PM, Monte Goulding wrote: >> >>> Hi All >>> >>> Today I have released mergZXing my iOS Barcode Reader External for sale >> via my website http://goulding.ws/mergzxing for US$49. >>> >>> The external will also be available on the LiveCode marketplace ASAP. >>> >>> mergZXing currently supports reading barcodes in these formats: >>> >>> UPC-A and UPC-E >>> EAN-8 and EAN-13 >>> Code 39 >>> Code 128 >>> QR Code >>> ITF >>> Data Matrix >>> As an added bonus I have also included mergAnswerColor which is a modal >> color picker external for iOS. >>> >>> -- >>> Kind Regards, >>> >>> Monte Goulding >>> M E R Goulding - Software Development Services >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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. > http://fon.nu -- minimalist url shortening service. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bornstein at designeq.com Wed Jan 11 15:28:56 2012 From: bornstein at designeq.com (Howard Bornstein) Date: Wed, 11 Jan 2012 12:28:56 -0800 Subject: color picker in IOS In-Reply-To: <0B957961-F5A2-4FF7-9526-1D9D7BB7CEF2@sweattechnologies.com> References: <0B957961-F5A2-4FF7-9526-1D9D7BB7CEF2@sweattechnologies.com> Message-ID: Hi Monte, Congratulations on the release of mergzxing. I wish you success with it. :-) The image for the color-picker external seems to show that it takes up the entire iphone screen. Is there any way to specify a resize on it to take a lesser portion of the screen? I am currently rolling my own but wondered if you had thought of cutting the color picker loose from mergzxing and offering it separately. On Tue, Jan 10, 2012 at 9:30 PM, Monte Goulding wrote: > Hi Howard > > I've written an external for iOS. It's a bonus when you buy mergZXing my > iOS barcode reader external. See http://goulding.ws/merzxing > > Cheers > > Monte > > On 11/01/2012, at 7:43 AM, Howard Bornstein wrote: > > > How are people handling the need to present a color picker under IOS? > > AFAICT this option is not available through the IOS SDK. > > > > -- > > Regards, > > > > Howard Bornstein > > ----------------------- > > www.designeq.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 > -- Regards, Howard Bornstein ----------------------- www.designeq.com From form at nonsanity.com Wed Jan 11 15:39:30 2012 From: form at nonsanity.com (Nonsanity) Date: Wed, 11 Jan 2012 15:39:30 -0500 Subject: Find nearest color in an RGB list In-Reply-To: References: <44C1336E-D994-41BA-AC78-3A0DD11478FC@doub.com> Message-ID: Yeay! One always worries about code written IN the email... :) ~ Nonsanity On Tue, Jan 10, 2012 at 3:31 PM, Michael Doub wrote: > This works like a charm! > > Thanks, > Mike > > > > On 2012-01-10, at 3:03 PM, Nonsanity wrote: > > > Both look like good suggestions for getting the closest color a human > would > > think is a "match", but both involve converting Livecode's native RGB to > > another format. I may be wrong, but I don't think those conversions are > > available built-in. I'm sure functions have been written to do this many > > times, but it's not trivial to do from scratch. If you can get one, then > > the following code will still work - It'll just work better. (Replace the > > r, g, b variable names with the appropriate letters for clarity.) > > > > Depending on your use case, you may not need to be that human-accurate, > in > > which case you can do the same calculation in RGB space. The square root > > calculation in your two solutions is a way to get the distance between > any > > two points in three dimensional space. All three color formats have three > > values, so they can all be pictured as a cube of space with colors as > > points within that space. Your starting color is in there too, and you > just > > have to check the distance from it to all the other color points, and > > return the shortest. > > > > I'm typing this in a mail program, so it is untested... > > > > function Distance3D( x1, y1, z1, x2, y2, z2 ) > > return sqrt( (x1-x2)*(x1-x2) + (y1-y2)*(y1-y2) + (z1-z2)*(z1-z2) ) > > end Distance3D > > > > function GetClosestColor( r, g, b ) > > put 99999 into ClosestDist > > put r &"," g &","& b into ClosestColor > > repeat for each line c of gColorList > > get Distance3D( r, g, b, item 1 of c, item 2 of c, item 3 of c ) > > if it < ClosestDist then > > put it into ClosestDist > > put c into ClosestColor > > end if > > end repeat > > return ClosestColor > > end GetClosestColor > > > > > > You'd have your colors in gColorList like this: > > 32,32,128 > > 255,255,255 > > 0,0,0 > > 128,128,256 > > (etc) > > > > > > ~ Chris Innanen > > ~ Nonsanity > > > > > > > > On Tue, Jan 10, 2012 at 1:13 PM, Michael Doub wrote: > > > >> I have a list of RGB colors that represent different color samples. I > >> need to create a function that will return the closest perceived RGB > entry > >> in the list when supplied a single RGB value. Is anyone aware of a > library > >> or some sample code that would help with this task? > >> > >> From searching I found the follow two suggestions for solving this > >> problem. Neither are not intuitively obvious to the casual > >> observer...namely me. ;-) > >> > >> > >> 1) "Convert RGB to CIE Lab color space, then compute the distance in > that > >> space ( deltaE = sqrt(deltaL^2 + deltaA^2 + deltaB^2). Colors with the > >> lowest deltaE are the most perceptually similar to each other." > >> > >> 2) "Convert to RGB to HSL and consider an HSL color value a vector and > >> define a weighted modulus function for the vector like this: > >> modulus = sqrt(a*H1*H1 + b*S1*S1 + c*L1*L1); where a,b,c are weights > you > >> should decide based on your visual definition of what creates a bigger > >> difference in perceived color - a 1% change in Hue or a 1% change in > >> Saturation. I would suggest you use a = b = 0.5 and c = 1 Finally, find > >> out the range your modulus would take and define similar colors to be > those > >> which have their moduli very close to each other (say 5%)" > >> > >> Regards, > >> Mike > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode 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 Wed Jan 11 15:56:49 2012 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 11 Jan 2012 22:56:49 +0200 Subject: [OT] Going bananas with "The Desktop Experience" Message-ID: <4F0DF791.4040501@gmail.com> After the debacle of Ubuntu and its Unity desktop, the equally hot huffing and puffing about GNOME 3, and so on, I see that quite a few Linux people are jumping on the desktop environment bandwagon: http://unity.ubuntu.com/ http://www.gnome.org/gnome-3/ http://asturix.com/2012/01/asturix-4-released/ http://mashable.com/2010/05/02/google-bumptop/ http://wiki.sugarlabs.org/go/Welcome_to_the_Sugar_Labs_wiki I suppose, that sooner or later, our "friends" over at Redmond and the Apple Campus will decide to jump aboard too............... How, if at all, will this impact on how we deliver Livecode standalones to the punters? Richmond Mathewson. From revolution at derbrill.de Wed Jan 11 17:07:34 2012 From: revolution at derbrill.de (Malte Brill) Date: Wed, 11 Jan 2012 23:07:34 +0100 Subject: =?iso-8859-1?Q?=5BANN=5D_animationEngine_5_Manuel_en_fran=E7ais?= In-Reply-To: References: Message-ID: <6FC92C4A-C1D2-4BE0-9219-6056E9167FB9@derbrill.de> Bonjour ? tous les utilisateurs fran?ais d'animationEngine! Heureusement Ren? Micout traduit le manuel en fran?ais. Le lien est ici: http://derbrill.de/animationEngine/anim ... Manuel.pdf Merci encore Ren?! S'il vous pla?t excuser mon mauvais fran?ais. Je n'ai Google translate prises pour aider. J'esp?re que ce message a un sens. :-) Cordialement, Malte From revolution at derbrill.de Wed Jan 11 17:10:41 2012 From: revolution at derbrill.de (Malte Brill) Date: Wed, 11 Jan 2012 23:10:41 +0100 Subject: =?iso-8859-1?Q?Re=3A_=5BANN=5D_animationEngine_5_Manuel_en_fran?= =?iso-8859-1?Q?=E7ais?= In-Reply-To: References: Message-ID: Updated link: http://derbrill.de/animationEngine/animationEngine_5_Manuel.pdf Malte > Bonjour ? tous les utilisateurs fran?ais d'animationEngine! > Heureusement Ren? Micout traduit le manuel en fran?ais. Le lien est ici: http://derbrill.de/animationEngine/anim ... Manuel.pdf Merci encore Ren?! S'il vous pla?t excuser mon mauvais fran?ais. Je n'ai Google translate prises pour aider. J'esp?re que ce message a un sens. :-) > > Cordialement, > > Malte From monte at sweattechnologies.com Wed Jan 11 17:30:20 2012 From: monte at sweattechnologies.com (Monte Goulding) Date: Thu, 12 Jan 2012 09:30:20 +1100 Subject: color picker in IOS In-Reply-To: References: <0B957961-F5A2-4FF7-9526-1D9D7BB7CEF2@sweattechnologies.com> Message-ID: On 12/01/2012, at 7:28 AM, Howard Bornstein wrote: > Hi Monte, > > Congratulations on the release of mergzxing. I wish you success with it. :-) > > The image for the color-picker external seems to show that it takes up the > entire iphone screen. Is there any way to specify a resize on it to take a > lesser portion of the screen? > > I am currently rolling my own but wondered if you had thought of cutting > the color picker loose from mergzxing and offering it separately. > I think given it is a feature that it's not that hard to roll your own with then if you need any custom UI it's simpler to go that way. I've put it up as a separate purchase for US$9.95 at http://goulding.ws/merganswercolor Cheers Monte From monte at sweattechnologies.com Wed Jan 11 18:22:17 2012 From: monte at sweattechnologies.com (Monte Goulding) Date: Thu, 12 Jan 2012 10:22:17 +1100 Subject: [ANN] mergZXing 1.0.1 - iOS barcode reader external and mergAnswerColor Message-ID: Hi Everyone Just a small documentation bug. People that have already purchased should have received a notification already. I have also included mergBanner an iAd external (which won't be sold separately) to show the banner at the bottom of the screen as a bonus when purchasing mergZXing. mergAnswerColor is now being sold separately for US$9.95 in addition to being a bonus when purchasing mergZXing. Early bird pricing is still US$49 until further notice. -- Cheers Monte Goulding M E R Goulding - Software Development Services From rene.micout at numericable.com Wed Jan 11 19:19:09 2012 From: rene.micout at numericable.com (=?iso-8859-1?Q?Ren=E9_Micout?=) Date: Thu, 12 Jan 2012 01:19:09 +0100 Subject: =?iso-8859-1?Q?Re=3A_=5BANN=5D_animationEngine_5_Manuel_en_fran?= =?iso-8859-1?Q?=E7ais?= In-Reply-To: <6FC92C4A-C1D2-4BE0-9219-6056E9167FB9@derbrill.de> References: <6FC92C4A-C1D2-4BE0-9219-6056E9167FB9@derbrill.de> Message-ID: <283B4981-DEF2-4A70-9A21-AD8870A8DC39@numericable.com> Hello Malte, I think French readers of this list understand also English ! But if the French message is not strictly correct, it is understandable ! ;-) Ren? Le 11 janv. 2012 ? 23:07, Malte Brill a ?crit : > Bonjour ? tous les utilisateurs fran?ais d'animationEngine! > Heureusement Ren? Micout traduit le manuel en fran?ais. Le lien est ici: http://derbrill.de/animationEngine/anim ... Manuel.pdf Merci encore Ren?! S'il vous pla?t excuser mon mauvais fran?ais. Je n'ai Google translate prises pour aider. J'esp?re que ce message a un sens. :-) > > Cordialement, > > 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 pete at mollysrevenge.com Wed Jan 11 19:51:12 2012 From: pete at mollysrevenge.com (Pete) Date: Wed, 11 Jan 2012 16:51:12 -0800 Subject: Menu Builder Message-ID: After a gap of many months since last using the Menu Builder, I'm back to trying it again with not very auspicious results. In the first screen, I click the New button and on the next screen, give the menu a name and leave the give the menubar a name and uncheck the box "move objects down to accommodate menu bar" (I want the menu to be in the OS X menu bar). As soon as I click OK, all the controls on the open stack move up, some of them to be underneath the window title bar. Uhhh, I asked for them not to be moved down, not to be moved up! Last time I used the menu builder, I had major problems - every time I opened the stack, it's height increased by the height of the menu - incrementally. Never did get to the bottom of that, ended up setting the stack height by script to work around it. Is there another way to create OS X menu bar menus without using the menu builder? -- Pete Molly's Revenge From m.schonewille at economy-x-talk.com Wed Jan 11 19:57:22 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Thu, 12 Jan 2012 01:57:22 +0100 Subject: Menu Builder In-Reply-To: References: Message-ID: <257A3B4D-740C-45AA-B2FB-1CB0858AD822@economy-x-talk.com> Hi Pete, Why do you want a different way? The menu builder still is the easiest way to create a menu, even if it is unintuitive and buggy. Next time, just don't uncheck that checkbox :-) Surely, you can create a group, set the menubar of the stack to the name of that group and set the editmenus of your stack to true or false and adjust the locations of all other objects manually. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! On 12 jan 2012, at 01:51, Pete wrote: > After a gap of many months since last using the Menu Builder, I'm back to > trying it again with not very auspicious results. > > In the first screen, I click the New button and on the next screen, give > the menu a name and leave the give the menubar a name and uncheck the box > "move objects down to accommodate menu bar" (I want the menu to be in the > OS X menu bar). > > As soon as I click OK, all the controls on the open stack move up, some of > them to be underneath the window title bar. Uhhh, I asked for them not to > be moved down, not to be moved up! > > Last time I used the menu builder, I had major problems - every time I > opened the stack, it's height increased by the height of the menu - > incrementally. Never did get to the bottom of that, ended up setting the > stack height by script to work around it. > > Is there another way to create OS X menu bar menus without using the menu > builder? > > > -- > Pete > Molly's Revenge From pete at mollysrevenge.com Wed Jan 11 20:18:44 2012 From: pete at mollysrevenge.com (Pete) Date: Wed, 11 Jan 2012 17:18:44 -0800 Subject: Menu Builder In-Reply-To: <257A3B4D-740C-45AA-B2FB-1CB0858AD822@economy-x-talk.com> References: <257A3B4D-740C-45AA-B2FB-1CB0858AD822@economy-x-talk.com> Message-ID: HI Mark, I guess it's a case of "once bitten, twice shy". As mentioned, I had weird problems trying to use it last time around and now I can't get past the first screen without a problem so I just don't trust it. I didn't uncheck the box, it was already unchecked. I also tried checking it, which resulted in all my controls being moved down, which I don't want either. I'm building menus that will be displayed in the OS X menu bar, not within my stacks, so there is no need to move controls anywhere. If there's a way to create these menus manually by creating a group, I'm more than happy to do that to avoid the bugginess. IS ther a write up on that anywhere? Pete On Wed, Jan 11, 2012 at 4:57 PM, Mark Schonewille < m.schonewille at economy-x-talk.com> wrote: > Hi Pete, > > Why do you want a different way? The menu builder still is the easiest way > to create a menu, even if it is unintuitive and buggy. Next time, just > don't uncheck that checkbox :-) > > Surely, you can create a group, set the menubar of the stack to the name > of that group and set the editmenus of your stack to true or false and > adjust the locations of all other objects manually. > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > Become our partner in sales http://qery.us/1bq Start selling Color > Converter today. 20% commission! > > On 12 jan 2012, at 01:51, Pete wrote: > > > After a gap of many months since last using the Menu Builder, I'm back to > > trying it again with not very auspicious results. > > > > In the first screen, I click the New button and on the next screen, give > > the menu a name and leave the give the menubar a name and uncheck the box > > "move objects down to accommodate menu bar" (I want the menu to be in > the > > OS X menu bar). > > > > As soon as I click OK, all the controls on the open stack move up, some > of > > them to be underneath the window title bar. Uhhh, I asked for them not > to > > be moved down, not to be moved up! > > > > Last time I used the menu builder, I had major problems - every time I > > opened the stack, it's height increased by the height of the menu - > > incrementally. Never did get to the bottom of that, ended up setting the > > stack height by script to work around it. > > > > Is there another way to create OS X menu bar menus without using the menu > > builder? > > > > > > -- > > 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 > > -- Pete Molly's Revenge From bobs at twft.com Wed Jan 11 20:20:15 2012 From: bobs at twft.com (Bob Sneidar) Date: Wed, 11 Jan 2012 17:20:15 -0800 Subject: SQL Date Formatting Message-ID: Hi all. I am having F-I-TZ working with dates in mySQL. I WANT to store the dates as real dates, but mySQL formats them as yyyy-mm-dd. Livecode does no such thing and nothing I know how to do can get Livecode to work with dates in this format AS dates. It's no good for my present purposes to work with other formats. I query SQL and then drop the data into a datagrid with no custom formatting, and that is just the way it has to be. What I need is to tell Livecode to sue SLQ date formatting. I have no real hope, but if someone knows of a way to do that, I would appreciate it. I think what is really needed is a feature request for one more date format for the convert command: convert myDate to sqlDate. Bob From m.schonewille at economy-x-talk.com Wed Jan 11 20:28:47 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Thu, 12 Jan 2012 02:28:47 +0100 Subject: Menu Builder In-Reply-To: References: <257A3B4D-740C-45AA-B2FB-1CB0858AD822@economy-x-talk.com> Message-ID: <49B3EC91-6720-4E0F-86A9-B0403AE1F1EA@economy-x-talk.com> Hi Pete, If I keep that darn checkbox unchecked and do check the checkbox Set as stack Menu bar, then all is fine and the controls don't move up or down (actually they do move down by the same amount of pixels the card moves up). I don't know about a tutorial or something, but I rarely look at tutorials. There really isn't more to it than what I wrote in my previous e-mail, except that you need to make the group first and set its loc to 0,0 and then set the menubar of the stack and the editmenus. You also need to tweak the horizontal position and the text font and style to resemble the Windows menubar. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! On 12 jan 2012, at 02:18, Pete wrote: > HI Mark, > I guess it's a case of "once bitten, twice shy". As mentioned, I had weird > problems trying to use it last time around and now I can't get past the > first screen without a problem so I just don't trust it. > > I didn't uncheck the box, it was already unchecked. I also tried checking > it, which resulted in all my controls being moved down, which I don't want > either. > > I'm building menus that will be displayed in the OS X menu bar, not within > my stacks, so there is no need to move controls anywhere. > > If there's a way to create these menus manually by creating a group, I'm > more than happy to do that to avoid the bugginess. IS ther a write up on > that anywhere? > > Pete From bonnmike at gmail.com Wed Jan 11 20:50:36 2012 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 11 Jan 2012 18:50:36 -0700 Subject: SQL Date Formatting In-Reply-To: References: Message-ID: Can't try it but I believe you can do something like select field1, field2, DATE_FORMAT(yourdatefield,"%m/%d/%Y" from .... On Wed, Jan 11, 2012 at 6:20 PM, Bob Sneidar wrote: > Hi all. I am having F-I-TZ working with dates in mySQL. I WANT to store > the dates as real dates, but mySQL formats them as yyyy-mm-dd. Livecode > does no such thing and nothing I know how to do can get Livecode to work > with dates in this format AS dates. > > It's no good for my present purposes to work with other formats. I query > SQL and then drop the data into a datagrid with no custom formatting, and > that is just the way it has to be. What I need is to tell Livecode to sue > SLQ date formatting. I have no real hope, but if someone knows of a way to > do that, I would appreciate it. > > I think what is really needed is a feature request for one more date > format for the convert command: convert myDate to sqlDate. > > 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 Jan 11 20:53:27 2012 From: pete at mollysrevenge.com (Pete) Date: Wed, 11 Jan 2012 17:53:27 -0800 Subject: Menu Builder In-Reply-To: <49B3EC91-6720-4E0F-86A9-B0403AE1F1EA@economy-x-talk.com> References: <257A3B4D-740C-45AA-B2FB-1CB0858AD822@economy-x-talk.com> <49B3EC91-6720-4E0F-86A9-B0403AE1F1EA@economy-x-talk.com> Message-ID: Yes I just discovered that. If that checkbox had been on the same screen as the "move controls" checkbox, life would have been much simpler! So I'm now on the right track I think, but looks like I need to adjust some code which resizes windows in some circumstances. Pete On Wed, Jan 11, 2012 at 5:28 PM, Mark Schonewille < m.schonewille at economy-x-talk.com> wrote: > If I keep that darn checkbox unchecked and do check the checkbox Set as > stack Menu bar, then all is fine and the controls don't move up or down > (actually they do move down by the same amount of pixels the card moves up). -- Pete Molly's Revenge From warren at warrensweb.us Wed Jan 11 20:55:36 2012 From: warren at warrensweb.us (Warren Samples) Date: Wed, 11 Jan 2012 19:55:36 -0600 Subject: SQL Date Formatting In-Reply-To: References: Message-ID: <4F0E3D98.1070108@warrensweb.us> On 01/11/2012 07:20 PM, Bob Sneidar wrote: > Hi all. I am having F-I-TZ working with dates in mySQL. I WANT to store the dates as real dates, but mySQL formats them as yyyy-mm-dd. Livecode does no such thing and nothing I know how to do can get Livecode to work with dates in this format AS dates. > > It's no good for my present purposes to work with other formats. I query SQL and then drop the data into a datagrid with no custom formatting, and that is just the way it has to be. What I need is to tell Livecode to sue SLQ date formatting. I have no real hope, but if someone knows of a way to do that, I would appreciate it. > > I think what is really needed is a feature request for one more date format for the convert command: convert myDate to sqlDate. > > Bob Is the problem getting them from Livecode to mySQL or what mySQL returns from select? Can you set the date format in your select statement? http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html#function_date-format Warren From andre at andregarzia.com Wed Jan 11 20:57:13 2012 From: andre at andregarzia.com (Andre Garzia) Date: Wed, 11 Jan 2012 23:57:13 -0200 Subject: [ANN] Alpha Twitter Support Message-ID: Folks, I know this has been delayed forever but the time is upon us to have Twitter-enabled apps. During the last conference, I demoed a very simple twitter library but did not share it because it relied on some command line tools that were only available on Mac OS X. It took me a while to find the time and solution to create a cross-platform library but I think I've made it. It was my wish to polish, test and document it before releasing anything but I know some people here need this stuff, so if you are not afraid of bugs and diving into badly designed code, hop to http://hg.andregarzia.com/livecode-socialsuite and download a fresh copy of the repository. There will be three new files in it: lib.aag.outh.livecode - a simple OAuth 1.0 library. Just enough to work. lib.aag.twitter.livecode - a VERY ALPHA library for twitter. There is enough code there to update the user status. SimpleTweet.livecode - a simple example that posts to the user status. I need to test this library. I also need to document it and make it easier to use but that may take some time and I don't want to delay it anymore. To use this library you will need to register at http://dev.twitter.com to get your consumer key and secret. You will need to know OAuth and Twitter API to use this library. I will make it easier shortly but right now it is a very low level library (but hey, it works!) I only tested on the desktop but it should work with mobile too. This library is different than the facebook library. The fb library has some revBrowser/iphoneControl code in it to present the authorization screens. The current OAuth and Twitter combination of libraries has no such thing. You need to build your own browser window and pass the id to the library. I may or may not implement automatic browser creation but I thought it was best to release now than to wait for me to implement everything. Twitter API can answer in JSON and XML formats. You can use Mark Smith libJSON or my libJSON (Marks library is better) or you can use XML and be happy. The OAuth library is FOSS under the terms of the BSD license, so you can do whatever you want with it. The Twitter library is dual licensed. It can be used under the terms of GPLv2 or you can donate to me to have a commercial license to close your source. More details at my page http://andregarzia.com/page/socialsuite So be happy with your tweets. The next library being implemented is Dropbox, check this teaser: http://fon.nu/lc-dropbox Cheers andre -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. From stephenREVOLUTION2 at barncard.com Wed Jan 11 21:07:41 2012 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Wed, 11 Jan 2012 18:07:41 -0800 Subject: SQL Date Formatting In-Reply-To: References: Message-ID: Really, this is no big deal. You can either convert at the Livecode end, or if you don't need to sort by seconds, you could just make the date field as a plain text field. Also consider storing time as seconds in the database, which is sortable. The second handler I found useful too. function convertSQLTime pSQLtime -- converts from below format to seconds -- and DATEITEMS -- if date is bogus then this returns empty -- 2005-10-28 01:07:04 -- * the year -- * the month number -- * the day of the month -- * the hour in 24-hour time -- * the minute -- * the second get word 1 of pSQLTime set the itemDelimiter to "-" put item 1 of it & comma\ & item 2 of it & comma\ & item 3 of it & comma\ after tOut get word 2 of pSQLTime set the itemDelimiter to ":" put (item 1 of it) & comma\ & (item 2 of it) & comma\ & (item 3 of it) & comma\ & (5)\ after tOut convert tOut to seconds set the itemDelimiter to comma return tOut end convertSQLTime function PHPDateTimeName pOtherTime,pNums -- get unique number string - put -1 into pNums -- pNums can be a number that can be the char position to start truncation -- if pNums is empty then the PHP/sql formatted date is returned if pOtherTime is empty then put the long time into pOtherTime set the numberFormat to "00" convert pOtherTime to dateitems -- 2005,10,9,17,50,43,1 if pNums is not empty then get \ (item 1 of pOtherTime)+0 & (item 2 of pOtherTime)+0 & (item 3 of pOtherTime)+0 & \ (item 4 of pOtherTime)+0 & (item 5 of pOtherTime)+0 & (item 6 of pOtherTime)+0 else get \ (item 1 of pOtherTime)+0 & "-" & (item 2 of pOtherTime)+0 & "-" & (item 3 of pOtherTime)+0 && \ (item 4 of pOtherTime)+0 & ":" & (item 5 of pOtherTime)+0 & ":" & (item 6 of pOtherTime)+0 end if if pNums is a number then delete character pNums to -1 of it return it end PHPDateTimeName On 11 January 2012 17:20, Bob Sneidar wrote: > Hi all. I am having F-I-TZ working with dates in mySQL. I WANT to store > the dates as real dates, but mySQL formats them as yyyy-mm-dd. Livecode > does no such thing and nothing I know how to do can get Livecode to work > with dates in this format AS dates. > Stephen Barncard San Francisco Ca. USA more about sqb From stephenREVOLUTION2 at barncard.com Wed Jan 11 21:10:41 2012 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Wed, 11 Jan 2012 18:10:41 -0800 Subject: SQL Date Formatting In-Reply-To: References: Message-ID: Did I misunderstand your requirements, Bob? On 11 January 2012 18:07, stephen barncard wrote: > Really, this is no big deal. You can either convert at the Livecode end, > or if you don't need to sort by seconds, you could just make the date field > as a plain text field. Also consider storing time as seconds in the > database, which is sortable. > > The second handler I found useful too. > > function convertSQLTime pSQLtime > -- converts from below format to seconds > -- and DATEITEMS > -- if date is bogus then this returns empty > -- 2005-10-28 01:07:04 > -- * the year > -- * the month number > -- * the day of the month > -- * the hour in 24-hour time > -- * the minute > -- * the second > > get word 1 of pSQLTime > set the itemDelimiter to "-" > put item 1 of it & comma\ > & item 2 of it & comma\ > & item 3 of it & comma\ > after tOut > get word 2 of pSQLTime > set the itemDelimiter to ":" > put (item 1 of it) & comma\ > & (item 2 of it) & comma\ > & (item 3 of it) & comma\ > & (5)\ > after tOut > convert tOut to seconds > > return tOut > end convertSQLTime > > function PHPDateTimeName pOtherTime,pNums > -- get unique number string - put -1 into pNums > -- pNums can be a number that can be the char position to start > truncation > -- if pNums is empty then the PHP/sql formatted date is returned > if pOtherTime is empty then put the long time into pOtherTime > set the numberFormat to "00" > convert pOtherTime to dateitems -- 2005,10,9,17,50,43,1 > if pNums is not empty > then > get \ > (item 1 of pOtherTime)+0 & (item 2 of > pOtherTime)+0 & (item 3 of pOtherTime)+0 & \ > (item 4 of pOtherTime)+0 & (item 5 of > pOtherTime)+0 & (item 6 of pOtherTime)+0 > else > get \ > (item 1 of pOtherTime)+0 & "-" & (item 2 of > pOtherTime)+0 & "-" & (item 3 of pOtherTime)+0 && \ > (item 4 of pOtherTime)+0 & ":" & (item 5 of > pOtherTime)+0 & ":" & (item 6 of pOtherTime)+0 > end if > if pNums is a number then delete character pNums to -1 of it > return it > end PHPDateTimeName > > > > On 11 January 2012 17:20, Bob Sneidar wrote: > >> Hi all. I am having F-I-TZ working with dates in mySQL. I WANT to store >> the dates as real dates, but mySQL formats them as yyyy-mm-dd. Livecode >> does no such thing and nothing I know how to do can get Livecode to work >> with dates in this format AS dates. >> > > > Stephen Barncard > San Francisco Ca. USA > > more about sqb > > -- Stephen Barncard San Francisco Ca. USA more about sqb From bobs at twft.com Wed Jan 11 21:32:32 2012 From: bobs at twft.com (Bob Sneidar) Date: Wed, 11 Jan 2012 18:32:32 -0800 Subject: SQL Date Formatting In-Reply-To: References: Message-ID: ooooh... I get it. have SQL change the way IT looks at dates. Well that would work. Instead though I decided to bite the bullet and write two functions to convert to and from standard mySQL date format. Thanks for the info though I will probably use that elsewhere. Bob On Jan 11, 2012, at 5:50 PM, Mike Bonner wrote: > Can't try it but I believe you can do something like > > select field1, field2, DATE_FORMAT(yourdatefield,"%m/%d/%Y" from .... > > On Wed, Jan 11, 2012 at 6:20 PM, Bob Sneidar wrote: > >> Hi all. I am having F-I-TZ working with dates in mySQL. I WANT to store >> the dates as real dates, but mySQL formats them as yyyy-mm-dd. Livecode >> does no such thing and nothing I know how to do can get Livecode to work >> with dates in this format AS dates. >> >> It's no good for my present purposes to work with other formats. I query >> SQL and then drop the data into a datagrid with no custom formatting, and >> that is just the way it has to be. What I need is to tell Livecode to sue >> SLQ date formatting. I have no real hope, but if someone knows of a way to >> do that, I would appreciate it. >> >> I think what is really needed is a feature request for one more date >> format for the convert command: convert myDate to sqlDate. >> >> 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 Jan 11 21:33:41 2012 From: bobs at twft.com (Bob Sneidar) Date: Wed, 11 Jan 2012 18:33:41 -0800 Subject: SQL Date Formatting In-Reply-To: <4F0E3D98.1070108@warrensweb.us> References: <4F0E3D98.1070108@warrensweb.us> Message-ID: <7CEDC836-25CC-402C-BF2B-D8921DD4E96A@twft.com> I could massage the sql date format in my select statement, but I am trying to keep my select statements as simple as I can, so I have 2 functions that convert to and from the standard sql date format. Bob On Jan 11, 2012, at 5:55 PM, Warren Samples wrote: > On 01/11/2012 07:20 PM, Bob Sneidar wrote: >> Hi all. I am having F-I-TZ working with dates in mySQL. I WANT to store the dates as real dates, but mySQL formats them as yyyy-mm-dd. Livecode does no such thing and nothing I know how to do can get Livecode to work with dates in this format AS dates. >> >> It's no good for my present purposes to work with other formats. I query SQL and then drop the data into a datagrid with no custom formatting, and that is just the way it has to be. What I need is to tell Livecode to sue SLQ date formatting. I have no real hope, but if someone knows of a way to do that, I would appreciate it. >> >> I think what is really needed is a feature request for one more date format for the convert command: convert myDate to sqlDate. >> >> Bob > > Is the problem getting them from Livecode to mySQL or what mySQL returns from select? > > Can you set the date format in your select statement? > > http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html#function_date-format > > 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 Wed Jan 11 21:37:30 2012 From: bobs at twft.com (Bob Sneidar) Date: Wed, 11 Jan 2012 18:37:30 -0800 Subject: SQL Date Formatting In-Reply-To: References: Message-ID: No you are right about it being a choice of one or the other. My functions only convert dates, so they are a lot simpler than yours, and I don't do any error checking. I ended up converting all my sql columns to date type and presenting my users with the sql format date. I then use a date picker stack that Marty Knapp made and I improved on slightly to alter dates. I decided to not let users edit dates directly. This actually has the distinct advantage of not having to validate what the user enters. Bob On Jan 11, 2012, at 6:10 PM, stephen barncard wrote: > Did I misunderstand your requirements, Bob? > > On 11 January 2012 18:07, stephen barncard > wrote: > >> Really, this is no big deal. You can either convert at the Livecode end, >> or if you don't need to sort by seconds, you could just make the date field >> as a plain text field. Also consider storing time as seconds in the >> database, which is sortable. >> >> The second handler I found useful too. >> >> function convertSQLTime pSQLtime >> -- converts from below format to seconds >> -- and DATEITEMS >> -- if date is bogus then this returns empty >> -- 2005-10-28 01:07:04 >> -- * the year >> -- * the month number >> -- * the day of the month >> -- * the hour in 24-hour time >> -- * the minute >> -- * the second >> >> get word 1 of pSQLTime >> set the itemDelimiter to "-" >> put item 1 of it & comma\ >> & item 2 of it & comma\ >> & item 3 of it & comma\ >> after tOut >> get word 2 of pSQLTime >> set the itemDelimiter to ":" >> put (item 1 of it) & comma\ >> & (item 2 of it) & comma\ >> & (item 3 of it) & comma\ >> & (5)\ >> after tOut >> convert tOut to seconds >> >> return tOut >> end convertSQLTime >> >> function PHPDateTimeName pOtherTime,pNums >> -- get unique number string - put -1 into pNums >> -- pNums can be a number that can be the char position to start >> truncation >> -- if pNums is empty then the PHP/sql formatted date is returned >> if pOtherTime is empty then put the long time into pOtherTime >> set the numberFormat to "00" >> convert pOtherTime to dateitems -- 2005,10,9,17,50,43,1 >> if pNums is not empty >> then >> get \ >> (item 1 of pOtherTime)+0 & (item 2 of >> pOtherTime)+0 & (item 3 of pOtherTime)+0 & \ >> (item 4 of pOtherTime)+0 & (item 5 of >> pOtherTime)+0 & (item 6 of pOtherTime)+0 >> else >> get \ >> (item 1 of pOtherTime)+0 & "-" & (item 2 of >> pOtherTime)+0 & "-" & (item 3 of pOtherTime)+0 && \ >> (item 4 of pOtherTime)+0 & ":" & (item 5 of >> pOtherTime)+0 & ":" & (item 6 of pOtherTime)+0 >> end if >> if pNums is a number then delete character pNums to -1 of it >> return it >> end PHPDateTimeName >> >> >> >> On 11 January 2012 17:20, Bob Sneidar wrote: >> >>> Hi all. I am having F-I-TZ working with dates in mySQL. I WANT to store >>> the dates as real dates, but mySQL formats them as yyyy-mm-dd. Livecode >>> does no such thing and nothing I know how to do can get Livecode to work >>> with dates in this format AS dates. >>> >> >> >> 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 pete at mollysrevenge.com Wed Jan 11 21:53:32 2012 From: pete at mollysrevenge.com (Pete) Date: Wed, 11 Jan 2012 18:53:32 -0800 Subject: SQL Date Formatting In-Reply-To: References: Message-ID: Hi Bob, I guess it depends on what you mean by "real dates" SQL date fields are pretty specific as to their format, that's why you give them a type of DATE or DATETIME. It's just a case of adjusting your SELECT statement to use the functions that SQL provides to return the date in whatever format you want. In SQLite, SELECT strftime(DateField,'%m/%d/%Y') returns the date in US format. In mySQL, SELECT DATE_FORMAT(DateField,'%m/%d/%Y) Or you can select the field as is and convert it in LC: set the itemdelimiter to "/" put item 2 of myDate & "/" & item 3 of myDate & "/" & item 1 of myDate Pete On Wed, Jan 11, 2012 at 5:20 PM, Bob Sneidar wrote: > Hi all. I am having F-I-TZ working with dates in mySQL. I WANT to store > the dates as real dates, but mySQL formats them as yyyy-mm-dd. Livecode > does no such thing and nothing I know how to do can get Livecode to work > with dates in this format AS dates. > > It's no good for my present purposes to work with other formats. I query > SQL and then drop the data into a datagrid with no custom formatting, and > that is just the way it has to be. What I need is to tell Livecode to sue > SLQ date formatting. I have no real hope, but if someone knows of a way to > do that, I would appreciate it. > > I think what is really needed is a feature request for one more date > format for the convert command: convert myDate to sqlDate. > > 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 > > -- Pete Molly's Revenge From bobs at twft.com Wed Jan 11 21:55:46 2012 From: bobs at twft.com (Bob Sneidar) Date: Wed, 11 Jan 2012 18:55:46 -0800 Subject: Date intersection revisited Message-ID: <16835C28-7B57-42B0-90AE-65DD39FF5B28@twft.com> Hi all. A while ago someone asked how to phrase a query for date intersections. I have been struggling all day to come up with what is probably very simple logic for date intersections. For instance, I need to find all the reserved rooms whose dates fall within the selected dates of a new reservation. I came up with a way to do that. It's a bit more complicated than using the SQL between function because BETWEEN is inclusive, and if you think about it, it's fine if a new reservation falls on the departure day of an existing one. So given that startdate and enddate are SQL columns in a reservation database, and the literal dates are the new reservation start and end dates, I give you this where clause: (startdate >= "2012-1-11" AND startdate < "2012-1-14") OR (enddate > "2012-1-11" AND enddate <= "2012-1-14") This in effect allows new reservations to begin on the day another ends, or end on the day another begins. I don't know why this kind of logic comes so hard for me sometimes. I have to draw pictures to sort it out. At any rate, if I can prevent someone else from having to go through the mental hoops I did, then I feel I have contributed. Bob From pete at mollysrevenge.com Wed Jan 11 21:56:20 2012 From: pete at mollysrevenge.com (Pete) Date: Wed, 11 Jan 2012 18:56:20 -0800 Subject: Menu Builder In-Reply-To: References: <257A3B4D-740C-45AA-B2FB-1CB0858AD822@economy-x-talk.com> <49B3EC91-6720-4E0F-86A9-B0403AE1F1EA@economy-x-talk.com> Message-ID: Well, I guess back to square 1. What seemed to work (don't move controls, set as Stack menubar) now results in controls being moved up again. Pete On Wed, Jan 11, 2012 at 5:53 PM, Pete wrote: > Yes I just discovered that. If that checkbox had been on the same screen > as the "move controls" checkbox, life would have been much simpler! So I'm > now on the right track I think, but looks like I need to adjust some code > which resizes windows in some circumstances. > Pete > > > On Wed, Jan 11, 2012 at 5:28 PM, Mark Schonewille < > m.schonewille at economy-x-talk.com> wrote: > >> If I keep that darn checkbox unchecked and do check the checkbox Set as >> stack Menu bar, then all is fine and the controls don't move up or down >> (actually they do move down by the same amount of pixels the card moves up). > > > > > -- > Pete > Molly's Revenge > > > -- Pete Molly's Revenge From bobs at twft.com Wed Jan 11 21:58:08 2012 From: bobs at twft.com (Bob Sneidar) Date: Wed, 11 Jan 2012 18:58:08 -0800 Subject: Menu Builder In-Reply-To: References: Message-ID: <2D8EC300-7B5A-4491-A54C-1D5FEB842883@twft.com> What you can do is create a new stack, build your menu there, copy the text of the button it creates, then build on the fly when you open your stack. I think. I'm a little fuzzy about that. :-) Bob On Jan 11, 2012, at 4:51 PM, Pete wrote: > After a gap of many months since last using the Menu Builder, I'm back to > trying it again with not very auspicious results. > > In the first screen, I click the New button and on the next screen, give > the menu a name and leave the give the menubar a name and uncheck the box > "move objects down to accommodate menu bar" (I want the menu to be in the > OS X menu bar). > > As soon as I click OK, all the controls on the open stack move up, some of > them to be underneath the window title bar. Uhhh, I asked for them not to > be moved down, not to be moved up! > > Last time I used the menu builder, I had major problems - every time I > opened the stack, it's height increased by the height of the menu - > incrementally. Never did get to the bottom of that, ended up setting the > stack height by script to work around it. > > Is there another way to create OS X menu bar menus without using the menu > builder? > > > -- > 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 pete at mollysrevenge.com Wed Jan 11 22:55:55 2012 From: pete at mollysrevenge.com (Pete) Date: Wed, 11 Jan 2012 19:55:55 -0800 Subject: Date intersection revisited In-Reply-To: <16835C28-7B57-42B0-90AE-65DD39FF5B28@twft.com> References: <16835C28-7B57-42B0-90AE-65DD39FF5B28@twft.com> Message-ID: You can do this with sql functions too Bob. The sqlite date function has a modifier parameter, eg date(2011-1-11,'+ 1 DAY). MYSQL has the DATE_ADD and DATE_SUB functions which do the same thing. Pete On Wed, Jan 11, 2012 at 6:55 PM, Bob Sneidar wrote: > Hi all. A while ago someone asked how to phrase a query for date > intersections. I have been struggling all day to come up with what is > probably very simple logic for date intersections. For instance, I need to > find all the reserved rooms whose dates fall within the selected dates of a > new reservation. > > I came up with a way to do that. It's a bit more complicated than using > the SQL between function because BETWEEN is inclusive, and if you think > about it, it's fine if a new reservation falls on the departure day of an > existing one. > > So given that startdate and enddate are SQL columns in a reservation > database, and the literal dates are the new reservation start and end > dates, I give you this where clause: > > (startdate >= "2012-1-11" AND startdate < "2012-1-14") OR (enddate > > "2012-1-11" AND enddate <= "2012-1-14") > > This in effect allows new reservations to begin on the day another ends, > or end on the day another begins. I don't know why this kind of logic comes > so hard for me sometimes. I have to draw pictures to sort it out. At any > rate, if I can prevent someone else from having to go through the mental > hoops I did, then I feel I have contributed. > > 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 > > -- Pete Molly's Revenge From jacque at hyperactivesw.com Wed Jan 11 23:17:26 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 11 Jan 2012 22:17:26 -0600 Subject: Menu Builder In-Reply-To: References: Message-ID: <4F0E5ED6.50703@hyperactivesw.com> On 1/11/12 6:51 PM, Pete wrote: > In the first screen, I click the New button and on the next screen, give > the menu a name and leave the give the menubar a name and uncheck the box > "move objects down to accommodate menu bar" (I want the menu to be in the > OS X menu bar). > > As soon as I click OK, all the controls on the open stack move up, some of > them to be underneath the window title bar. Uhhh, I asked for them not to > be moved down, not to be moved up! > > Last time I used the menu builder, I had major problems - every time I > opened the stack, it's height increased by the height of the menu - > incrementally. Never did get to the bottom of that, ended up setting the > stack height by script to work around it. > > Is there another way to create OS X menu bar menus without using the menu > builder? I find the Menu Builder to be the easiest way to build menus and I use it all the time. I don't find it buggy at all, I think of it as one of the most convenient features LiveCode offers. But you do need to understand how it works, or it will *appear* buggy. What you describe is exactly what is supposed to happen. There's info on how LiveCode menus work here: What that mainly says is: to accomodate both Windows (where menus are on the card) and Mac (where menus are in the system menu bar,) LiveCode places your menu group at the top of the card and leaves it there on a Windows machine, or scrolls the card up and out of the way on a Mac. That places the top 26 pixels or so offscreen and out of sight on a Mac. It's a little like setting the scroll of the card to 26; the card top has moved up and out of the window bounds. When adding a new menu, you want blank space at the top of the card to allow room for the menu group. If you didn't create your menus first, you may have other objects already in the way. If so, they need to move down to accomodate the new group. If that's the case, you do want to check the box that moves everything down. If you've left room for the group already, skip that checkbox. It's a one-time relocation and very convenient when you decide in the middle of a project that you need a menubar on a screen where there are already objects in the way. I used to use a custom script for that until the Menu Builder came along. Whether or not you move your objects down, if the stack has the menu group assigned, the card will scroll upward on a Mac. All your objects will appear to move up when it does that. They haven't really moved; their locations are still the same. But now that the top of the card has moved out of view, the objects have moved along with it and appear to have changed positions. It's visual only. Menu builder is convenient, not only because it can create menus quickly, but because it can enter all those tedious switch/case scripts automatically. All I have to do after that is go in and fill in the working parts. It also lays out menu items in the right order so that Preferences and Help manage to show up in the right places cross-platform. You can toggle the scroll on and off on a Mac by toggling "preview as menu bar". This just sets the editmenus property of the stack to true, which unscrolls the card. (I often just type the command into the message box.) Unscrolling the card brings the menu group into view, showing it as it will look on Windows, and making it easy to select and edit button scripts or lay out other objects. When I'm done, I set the editmenus to false again and the menu bar scrolls back up out of the way and appears in the system menu. Tip: if you add a menu group late in development and need to move objects down to accomodate it, some objects may get pushed off the bottom of the card. You'll need to increase the stack height to adjust for the new locations. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Wed Jan 11 23:32:16 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 11 Jan 2012 22:32:16 -0600 Subject: Menu Builder In-Reply-To: <4F0E5ED6.50703@hyperactivesw.com> References: <4F0E5ED6.50703@hyperactivesw.com> Message-ID: <4F0E6250.9080703@hyperactivesw.com> > > As soon as I click OK, all the controls on the open stack move up, some of > them to be underneath the window title bar. Uhhh, I asked for them not to > be moved down, not to be moved up! Oh, forgot: you've probably designed your card with space at the top that you want to preserve. If so, then you do want to check the "move everything down" checkbox, so that when the card scrolls back up your objects will appear to be in the same relative positions as you originally had them. Make your stack 26 pixels taller to accomodate the new object locations. There's another trick if you don't want to use the menu builder. You can create a menu group and just hide it. It will still show in the system menu if the group is assigned as the stack's menu bar, but the scroll won't happen if the group is hidden. You'd need to script a command on openstack that checks the platform and shows the group if you plan to run the stack on Windows. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pepetoo at cox.net Wed Jan 11 23:41:13 2012 From: pepetoo at cox.net (Joe Lewis Wilkins) Date: Wed, 11 Jan 2012 20:41:13 -0800 Subject: Menu Builder In-Reply-To: <4F0E5ED6.50703@hyperactivesw.com> References: <4F0E5ED6.50703@hyperactivesw.com> Message-ID: <20A65092-BDBF-44D2-ADB0-2855D443828F@cox.net> Jacqi, Your explanation should appear on the "Menu Builder" Dialog from a Help Button thereon. It would save a lot of newbies gobs of hair follicles. I don't recall how many hours I've wasted coming to terms with these issues; in some instances scraping a project and starting all over again. Of course that happens from time to time anyway; and it's usually a good thing. (smile) Joe Wilkins On Jan 11, 2012, at 8:17 PM, J. Landman Gay wrote: > On 1/11/12 6:51 PM, Pete wrote: > >> In the first screen, I click the New button and on the next screen, give >> the menu a name and leave the give the menubar a name and uncheck the box >> "move objects down to accommodate menu bar" (I want the menu to be in the >> OS X menu bar). >> >> As soon as I click OK, all the controls on the open stack move up, some of >> them to be underneath the window title bar. Uhhh, I asked for them not to >> be moved down, not to be moved up! >> >> Last time I used the menu builder, I had major problems - every time I >> opened the stack, it's height increased by the height of the menu - >> incrementally. Never did get to the bottom of that, ended up setting the >> stack height by script to work around it. >> >> Is there another way to create OS X menu bar menus without using the menu >> builder? > > I find the Menu Builder to be the easiest way to build menus and I use it all the time. I don't find it buggy at all, I think of it as one of the most convenient features LiveCode offers. But you do need to understand how it works, or it will *appear* buggy. What you describe is exactly what is supposed to happen. > > There's info on how LiveCode menus work here: > > What that mainly says is: to accomodate both Windows (where menus are on the card) and Mac (where menus are in the system menu bar,) LiveCode places your menu group at the top of the card and leaves it there on a Windows machine, or scrolls the card up and out of the way on a Mac. That places the top 26 pixels or so offscreen and out of sight on a Mac. It's a little like setting the scroll of the card to 26; the card top has moved up and out of the window bounds. > > When adding a new menu, you want blank space at the top of the card to allow room for the menu group. If you didn't create your menus first, you may have other objects already in the way. If so, they need to move down to accomodate the new group. If that's the case, you do want to check the box that moves everything down. If you've left room for the group already, skip that checkbox. It's a one-time relocation and very convenient when you decide in the middle of a project that you need a menubar on a screen where there are already objects in the way. I used to use a custom script for that until the Menu Builder came along. > > Whether or not you move your objects down, if the stack has the menu group assigned, the card will scroll upward on a Mac. All your objects will appear to move up when it does that. They haven't really moved; their locations are still the same. But now that the top of the card has moved out of view, the objects have moved along with it and appear to have changed positions. It's visual only. > > Menu builder is convenient, not only because it can create menus quickly, but because it can enter all those tedious switch/case scripts automatically. All I have to do after that is go in and fill in the working parts. It also lays out menu items in the right order so that Preferences and Help manage to show up in the right places cross-platform. > > You can toggle the scroll on and off on a Mac by toggling "preview as menu bar". This just sets the editmenus property of the stack to true, which unscrolls the card. (I often just type the command into the message box.) Unscrolling the card brings the menu group into view, showing it as it will look on Windows, and making it easy to select and edit button scripts or lay out other objects. When I'm done, I set the editmenus to false again and the menu bar scrolls back up out of the way and appears in the system menu. > > Tip: if you add a menu group late in development and need to move objects down to accomodate it, some objects may get pushed off the bottom of the card. You'll need to increase the stack height to adjust for the new locations. > > -- > 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 Thu Jan 12 00:06:01 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 11 Jan 2012 23:06:01 -0600 Subject: Menu Builder In-Reply-To: <20A65092-BDBF-44D2-ADB0-2855D443828F@cox.net> References: <4F0E5ED6.50703@hyperactivesw.com> <20A65092-BDBF-44D2-ADB0-2855D443828F@cox.net> Message-ID: <4F0E6A39.2080601@hyperactivesw.com> On 1/11/12 10:41 PM, Joe Lewis Wilkins wrote: > Jacqi, > > Your explanation should appear on the "Menu Builder" Dialog from a > Help Button thereon. It would save a lot of newbies gobs of hair > follicles. Thanks. I thought it was in the User Guide but I just looked and couldn't find much. Once you "get it", everything falls into place. But you're right there needs to be something more specific in the docs about the overall idea. There's a whole scripting conference stack just about menus too: Jeanne DeVoto wrote it and she's an excellent documenter. I forgot to link to that in my other post. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at mollysrevenge.com Thu Jan 12 01:24:11 2012 From: pete at mollysrevenge.com (Pete) Date: Wed, 11 Jan 2012 22:24:11 -0800 Subject: Menu Builder In-Reply-To: <4F0E6A39.2080601@hyperactivesw.com> References: <4F0E5ED6.50703@hyperactivesw.com> <20A65092-BDBF-44D2-ADB0-2855D443828F@cox.net> <4F0E6A39.2080601@hyperactivesw.com> Message-ID: Thanks Jacque. Things appear to be working now but I have no idea what combination of things I did to make it happen, and I hate that. Your explanation and the links helped explain it all. As Joe said, if only this was in the User Guide, there'd be a lot less nervousness about using the menu builder. I'll go back to Mark's original comment in this thread - maybe it's not buggy once you understand it but it's definitely "unintuitive". I have one remaining issue to deal with and that has to do with some window resizing I do which now will have to take account of the menu group, probably differently on Windows than on OS X. Fortunately, the code to do the resizing is all in one handler so once I figure out whether to add the 26 pixels or subtract them, all should be OK. Pete On Wed, Jan 11, 2012 at 9:06 PM, J. Landman Gay wrote: > On 1/11/12 10:41 PM, Joe Lewis Wilkins wrote: > >> Jacqi, >> >> Your explanation should appear on the "Menu Builder" Dialog from a >> Help Button thereon. It would save a lot of newbies gobs of hair >> follicles. >> > > Thanks. I thought it was in the User Guide but I just looked and couldn't > find much. Once you "get it", everything falls into place. But you're right > there needs to be something more specific in the docs about the overall > idea. > > There's a whole scripting conference stack just about menus too: > tutorials/tutorials/online-**scripting-conferences/ > > > > Jeanne DeVoto wrote it and she's an excellent documenter. I forgot to link > to that in my other post. > > > -- > 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 > > -- Pete Molly's Revenge From pepetoo at cox.net Thu Jan 12 01:57:47 2012 From: pepetoo at cox.net (Joe Lewis Wilkins) Date: Wed, 11 Jan 2012 22:57:47 -0800 Subject: Menu Builder In-Reply-To: <4F0E6A39.2080601@hyperactivesw.com> References: <4F0E5ED6.50703@hyperactivesw.com> <20A65092-BDBF-44D2-ADB0-2855D443828F@cox.net> <4F0E6A39.2080601@hyperactivesw.com> Message-ID: <28062F15-A7F0-49A2-B2C1-54DFA537A151@cox.net> All of these suggestions are well and good; but, on my most recent project, I bi-passed the entire problem by creating my own menus on the cards for both the Mac and Windows versions of a much larger size so that I don't have to deal with the minuscule fonts normally used for Windows apps. This way they appear in 18 pt. Arial for both versions - and I can read them. It was a lot of work, but with my poor vision it was well worth it, and those I've shown it to agree with me. Personally, I'll never do things any other way now that I've gone this route. Anyone who would like a screen shot off-line just let me know. I haven't kept up with the web development, so I've yet to learn how to upload stuff so that others may download it. Joe Wilkins On Jan 11, 2012, at 9:06 PM, J. Landman Gay wrote: > On 1/11/12 10:41 PM, Joe Lewis Wilkins wrote: >> Jacqi, >> >> Your explanation should appear on the "Menu Builder" Dialog from a >> Help Button thereon. It would save a lot of newbies gobs of hair >> follicles. > > Thanks. I thought it was in the User Guide but I just looked and couldn't find much. Once you "get it", everything falls into place. But you're right there needs to be something more specific in the docs about the overall idea. > > There's a whole scripting conference stack just about menus too: > > > Jeanne DeVoto wrote it and she's an excellent documenter. I forgot to link to that in my other post. > > -- > 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 pete at mollysrevenge.com Thu Jan 12 02:10:06 2012 From: pete at mollysrevenge.com (Pete) Date: Wed, 11 Jan 2012 23:10:06 -0800 Subject: Menu Builder In-Reply-To: <4F0E6A39.2080601@hyperactivesw.com> References: <4F0E5ED6.50703@hyperactivesw.com> <20A65092-BDBF-44D2-ADB0-2855D443828F@cox.net> <4F0E6A39.2080601@hyperactivesw.com> Message-ID: OK, now on to the next step. Menus working fine, all scripted. Now I want to add a menu item to the File menu in certain circumstances. I coded a mouseDown handler in the button named "File" in my menu group to do this. It gets the text of the menu, adds the text for the new menu item to the end and puts it back into the menu's text property. New text never appears. Set a breakpoint at the start of the handler so I can check my logic, even inserted a breakpoint command. Never breaks. The menuPick is right there in the same script and it works fine so why doesn't mouseDown get handled? On Wed, Jan 11, 2012 at 9:06 PM, J. Landman Gay wrote: > On 1/11/12 10:41 PM, Joe Lewis Wilkins wrote: > >> Jacqi, >> >> Your explanation should appear on the "Menu Builder" Dialog from a >> Help Button thereon. It would save a lot of newbies gobs of hair >> follicles. >> > > Thanks. I thought it was in the User Guide but I just looked and couldn't > find much. Once you "get it", everything falls into place. But you're right > there needs to be something more specific in the docs about the overall > idea. > > There's a whole scripting conference stack just about menus too: > tutorials/tutorials/online-**scripting-conferences/ > > > > Jeanne DeVoto wrote it and she's an excellent documenter. I forgot to link > to that in my other post. > > > -- > 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 > > -- Pete Molly's Revenge From bill at bluewatermaritime.com Thu Jan 12 07:26:22 2012 From: bill at bluewatermaritime.com (william humphrey) Date: Thu, 12 Jan 2012 08:26:22 -0400 Subject: SQL Date Formatting In-Reply-To: References: Message-ID: I have to say something here. I struggled with date formats trying to make them all YYYY-MM-DD and you are trying to do something different. I think of the yyyy-mm-dd as "real" date. It is easily readable (as seconds aren't) and sorts perfectly. It is not one of the defaults for system date on the Mac though which does cause problems sometimes until you set it as a custom format. From pmbrig at gmail.com Thu Jan 12 09:00:43 2012 From: pmbrig at gmail.com (Peter M. Brigham, MD) Date: Thu, 12 Jan 2012 09:00:43 -0500 Subject: Menu Builder In-Reply-To: References: <4F0E5ED6.50703@hyperactivesw.com> <20A65092-BDBF-44D2-ADB0-2855D443828F@cox.net> <4F0E6A39.2080601@hyperactivesw.com> Message-ID: <062D6689-7225-40E3-A1D7-BFCD867CFC28@gmail.com> That approach should work fine -- I just tested it again on my system, and I use this kind of thing all the time to build menus on the fly. Maybe you could post your scripts so we could see what's going on? -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Jan 12, 2012, at 2:10 AM, Pete wrote: > OK, now on to the next step. Menus working fine, all scripted. > > Now I want to add a menu item to the File menu in certain circumstances. I > coded a mouseDown handler in the button named "File" in my menu group to do > this. It gets the text of the menu, adds the text for the new menu item to > the end and puts it back into the menu's text property. New text never > appears. Set a breakpoint at the start of the handler so I can check my > logic, even inserted a breakpoint command. Never breaks. The menuPick is > right there in the same script and it works fine so why doesn't mouseDown > get handled? > > On Wed, Jan 11, 2012 at 9:06 PM, J. Landman Gay wrote: > >> On 1/11/12 10:41 PM, Joe Lewis Wilkins wrote: >> >>> Jacqi, >>> >>> Your explanation should appear on the "Menu Builder" Dialog from a >>> Help Button thereon. It would save a lot of newbies gobs of hair >>> follicles. >>> >> >> Thanks. I thought it was in the User Guide but I just looked and couldn't >> find much. Once you "get it", everything falls into place. But you're right >> there needs to be something more specific in the docs about the overall >> idea. >> >> There's a whole scripting conference stack just about menus too: >> > tutorials/tutorials/online-**scripting-conferences/ >>> >> >> Jeanne DeVoto wrote it and she's an excellent documenter. I forgot to link >> to that in my other post. >> >> >> -- >> 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 >> >> > > > -- > 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 gcanyon+rev at gmail.com Thu Jan 12 10:56:15 2012 From: gcanyon+rev at gmail.com (Geoff Canyon Rev) Date: Thu, 12 Jan 2012 09:56:15 -0600 Subject: Menu Builder In-Reply-To: <4F0E6A39.2080601@hyperactivesw.com> References: <4F0E5ED6.50703@hyperactivesw.com> <20A65092-BDBF-44D2-ADB0-2855D443828F@cox.net> <4F0E6A39.2080601@hyperactivesw.com> Message-ID: One thing that I've often thought would make a lot of sense is to have an array of starter projects, from "Single window with menubar" to "splash screen with multiple document windows" etc. It seems like a small handful of these would save a lot of beginners (and the rest of us!) a lot of time. From mike at doub.com Thu Jan 12 11:34:21 2012 From: mike at doub.com (Michael Doub) Date: Thu, 12 Jan 2012 11:34:21 -0500 Subject: Crop Command Message-ID: Is it true the crop command is not supported in the mobile environment or is there a documentation error. I am hoping for documentation error. ;-) From jhurley0305 at sbcglobal.net Thu Jan 12 12:17:16 2012 From: jhurley0305 at sbcglobal.net (Jim Hurley) Date: Thu, 12 Jan 2012 09:17:16 -0800 Subject: OT Password protection of RR server? In-Reply-To: References: Message-ID: <91A0D2D7-265F-4F86-8E6F-F1BED0252D47@sbcglobal.net> Hi Mike, Thank you so much to taking the time to go into the details. This is an area which I am missing even the rudiments. I have just upgraded Fetch (my ftp client) and that gives me easy access to the directory files and what's in them. For example I did find the .htaccess file. So, you have given me much food for thought and I need to do some exploring. Thanks again. Jim Hurley > > Message: 6 > Date: Wed, 11 Jan 2012 12:08:29 -0700 > From: Mike Bonner > To: How to use LiveCode > Subject: Re: OT Password protection of RR server? > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > If you want to look at the toplevel folder assigned to each of your domains > you can go to cPanel and click domains. This is where you can add a domain > or just adjust or see how things are set for existing domains. Your domain > jamesphurley.com should be shown there. You can also look at "subdomains" > IE modifications of your domain such as www.jamesphurley.com is a subdomain > of jamesphurley.com . You can look at these assignments and create new ones > if you go to subdomains in cpanel. > > If you wanted to have goodstuff.yourdomain.com and > info.yourdomain.compoint at the same stuff, you just assign them to > the same folder as a > subdomain. I think www is set up that way by default. > > http://jamesphurley.on-rev.com/ should point to the public_html folder. > Depending on how your addon domains were set up, their folders should > probably be inside that public_html as subfolders. (Though I seem to have > 1 that is NOT! If it can be messed up, I can do it!) > > If you want to set up Ivrmna as a domain and you own ivrmna.com or > whatever you need to go to the place that you bought the domain name from > and set the domain name servers for that name so that they point to the > on-rev nameservers. Then in cPanel in on-rev add the domain name and get it > all set up. I don't have any more domain names to set up at the moment or > I'd give you a step by step, but it hopefully shouldn't be too bad. > The nameservers for on-rev are NS1.ON-REV.COM and NS2.ON-REV.COM > > As was mentioned, there is probably an .htaccess file in your locked out > folder. Using cpanel filenamager you can either remove it, or edit it to > fix the problem. > From bobs at twft.com Thu Jan 12 12:24:09 2012 From: bobs at twft.com (Bob Sneidar) Date: Thu, 12 Jan 2012 09:24:09 -0800 Subject: Date intersection revisited In-Reply-To: References: <16835C28-7B57-42B0-90AE-65DD39FF5B28@twft.com> Message-ID: <9D0B3E2F-2299-4A4E-8DA8-40921B6DDD8D@twft.com> Oh cool! Well then of course I would have to conditionally switch the query depending on the type of database I was using. The technique I am employing however precludes that to some degree. I am storing queries in properties using placeholder delimiters. Anything that comes between two percentage signs gets replaced with the value of it at runtime. This means I can insert a variable in a query like %theStartDate% and then programmatically replace it at runtime. It also means I can put things like %theRecordA["building"] & theRecordA["roomnumber"]% in the stored query and it will evaluate to the concatenated value at runtime. It is turning out to be a really powerful method, but I want to keep the stored queries from becoming too complex. I could also have used CONCAT(%theRecordA["building"]%,%theRecordA["roomnumber"%) I suppose, but there are lots of Livecode statements I can use that have no equivalent in SQL, and by using Livecode statements whenever I can I am not database type dependent. The goal is to give developers in the application framework I am developing in parallel to the app I am coding, a way to "hook" into their own code when building queries without having to hard code them. Bob On Jan 11, 2012, at 7:55 PM, Pete wrote: > You can do this with sql functions too Bob. The sqlite date function has a > modifier parameter, eg date(2011-1-11,'+ 1 DAY). MYSQL has the DATE_ADD > and DATE_SUB functions which do the same thing. > Pete From bobs at twft.com Thu Jan 12 12:29:55 2012 From: bobs at twft.com (Bob Sneidar) Date: Thu, 12 Jan 2012 09:29:55 -0800 Subject: SQL Date Formatting In-Reply-To: References: Message-ID: On Jan 11, 2012, at 6:53 PM, Pete wrote: > Hi Bob, > I guess it depends on what you mean by "real dates" SQL date fields are > pretty specific as to their format, that's why you give them a type of DATE > or DATETIME. It's just a case of adjusting your SELECT statement to use > the functions that SQL provides to return the date in whatever format you > want. > > > In SQLite, SELECT strftime(DateField,'%m/%d/%Y') returns the date in US > format. > > In mySQL, SELECT DATE_FORMAT(DateField,'%m/%d/%Y) > > Or you can select the field as is and convert it in LC: > > set the itemdelimiter to "/" > put item 2 of myDate & "/" & item 3 of myDate & "/" & item 1 of myDate That is essentially what I did in my fromSQLDate and toSQLDate functions. > > > Pete I wrote in another post (maybe I didn't send it) that I decided for simplicity's sake to keep the SQL dates the way they are, and present them to the user that way. I also decided to prevent the user from editing dates directly, instead opting for a date picker stack which provides a graphical date picker. This way the user cannot enter non-dates forcing me to validate the date fields. Simpler, cleaner, prettier. When I need to work with the dates in Livecode, I run the dates through my conversion functions first. It would just be nice to have an option in the convert command. No big deal though. Bob From pete at mollysrevenge.com Thu Jan 12 12:33:34 2012 From: pete at mollysrevenge.com (Pete) Date: Thu, 12 Jan 2012 09:33:34 -0800 Subject: Menu Builder In-Reply-To: <062D6689-7225-40E3-A1D7-BFCD867CFC28@gmail.com> References: <4F0E5ED6.50703@hyperactivesw.com> <20A65092-BDBF-44D2-ADB0-2855D443828F@cox.net> <4F0E6A39.2080601@hyperactivesw.com> <062D6689-7225-40E3-A1D7-BFCD867CFC28@gmail.com> Message-ID: Hi Peter, Yep, it should work, that's what's so frustrating. Even weirder still is that if I send a mouseDown message to the File button from the message box, everything works just fine, just not when I click on the File menu!!!!! The ironic thing about all this is that I really don't care if I have menus in this application or not. All the functionality in the menus is available by clicking buttons in a toolbar at the top of the main screen. I'm only putting them there because HIG says they should be there. Pete On Thu, Jan 12, 2012 at 6:00 AM, Peter M. Brigham, MD wrote: > That approach should work fine -- I just tested it again on my system, and > I use this kind of thing all the time to build menus on the fly. Maybe you > could post your scripts so we could see what's going on? > > -- Peter > > Peter M. Brigham > pmbrig at gmail.com > http://home.comcast.net/~pmbrig > > > On Jan 12, 2012, at 2:10 AM, Pete wrote: > > > OK, now on to the next step. Menus working fine, all scripted. > > > > Now I want to add a menu item to the File menu in certain circumstances. > I > > coded a mouseDown handler in the button named "File" in my menu group to > do > > this. It gets the text of the menu, adds the text for the new menu item > to > > the end and puts it back into the menu's text property. New text never > > appears. Set a breakpoint at the start of the handler so I can check my > > logic, even inserted a breakpoint command. Never breaks. The menuPick > is > > right there in the same script and it works fine so why doesn't mouseDown > > get handled? > > > > On Wed, Jan 11, 2012 at 9:06 PM, J. Landman Gay < > jacque at hyperactivesw.com>wrote: > > > >> On 1/11/12 10:41 PM, Joe Lewis Wilkins wrote: > >> > >>> Jacqi, > >>> > >>> Your explanation should appear on the "Menu Builder" Dialog from a > >>> Help Button thereon. It would save a lot of newbies gobs of hair > >>> follicles. > >>> > >> > >> Thanks. I thought it was in the User Guide but I just looked and > couldn't > >> find much. Once you "get it", everything falls into place. But you're > right > >> there needs to be something more specific in the docs about the overall > >> idea. > >> > >> There's a whole scripting conference stack just about menus too: > >> >> tutorials/tutorials/online-**scripting-conferences/< > http://www.runrev.com/developers/lessons-and-tutorials/tutorials/online-scripting-conferences/ > > > >>> > >> > >> Jeanne DeVoto wrote it and she's an excellent documenter. I forgot to > link > >> to that in my other post. > >> > >> > >> -- > >> 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< > 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 bobs at twft.com Thu Jan 12 12:34:49 2012 From: bobs at twft.com (Bob Sneidar) Date: Thu, 12 Jan 2012 09:34:49 -0800 Subject: SQL Date Formatting In-Reply-To: References: Message-ID: <6C9DAEC2-63FE-416C-AF24-64663A80F6B2@twft.com> I think (I will be corrected if I am wrong) that it is a Canadian format. I don't think it is a mac specific problem. I went through all the date formats on the Mac OS and found that Canada is the only country listed that formats the dates this way. I also think it makes a lot more sense. Bob On Jan 12, 2012, at 4:26 AM, william humphrey wrote: > I have to say something here. I struggled with date formats trying to make > them all YYYY-MM-DD and you are trying to do something different. I think > of the yyyy-mm-dd as "real" date. It is easily readable (as seconds aren't) > and sorts perfectly. It is not one of the defaults for system date on the > Mac though which does cause problems sometimes until you set it as a custom > format. > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jan 12 12:40:50 2012 From: bobs at twft.com (Bob Sneidar) Date: Thu, 12 Jan 2012 09:40:50 -0800 Subject: Menu Builder In-Reply-To: References: <4F0E5ED6.50703@hyperactivesw.com> <20A65092-BDBF-44D2-ADB0-2855D443828F@cox.net> <4F0E6A39.2080601@hyperactivesw.com> Message-ID: <2DB36D93-303E-42EB-8339-3194FB754DE5@twft.com> That is a great idea! Go, ye empowered of Livecode, and prosper! ;-) Bob On Jan 12, 2012, at 7:56 AM, Geoff Canyon Rev wrote: > One thing that I've often thought would make a lot of sense is to have an > array of starter projects, from "Single window with menubar" to "splash > screen with multiple document windows" etc. It seems like a small handful > of these would save a lot of beginners (and the rest of us!) a lot of time. > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jan 12 12:45:20 2012 From: pete at mollysrevenge.com (Pete) Date: Thu, 12 Jan 2012 09:45:20 -0800 Subject: Mac/Windows deployment module for 4.6.4 Message-ID: When I got 4.6.4 I somehow never upgraded the Mac/Windows deployment module. On the STore, everything is now 5.0. IS there some way to get the 4.6.4 deployment modules ro do I have to upgrade evereything to 5.0? -- Pete Molly's Revenge From bobs at twft.com Thu Jan 12 12:41:50 2012 From: bobs at twft.com (Bob Sneidar) Date: Thu, 12 Jan 2012 09:41:50 -0800 Subject: Menu Builder In-Reply-To: References: <4F0E5ED6.50703@hyperactivesw.com> <20A65092-BDBF-44D2-ADB0-2855D443828F@cox.net> <4F0E6A39.2080601@hyperactivesw.com> <062D6689-7225-40E3-A1D7-BFCD867CFC28@gmail.com> Message-ID: Just to check for the ridiculous, is it disabled? Bob On Jan 12, 2012, at 9:33 AM, Pete wrote: > Hi Peter, > Yep, it should work, that's what's so frustrating. Even weirder still is > that if I send a mouseDown message to the File button from the message box, > everything works just fine, just not when I click on the File menu!!!!! From jacque at hyperactivesw.com Thu Jan 12 13:16:38 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 12 Jan 2012 12:16:38 -0600 Subject: Menu Builder In-Reply-To: References: <4F0E5ED6.50703@hyperactivesw.com> <20A65092-BDBF-44D2-ADB0-2855D443828F@cox.net> <4F0E6A39.2080601@hyperactivesw.com> <062D6689-7225-40E3-A1D7-BFCD867CFC28@gmail.com> Message-ID: <4F0F2386.4090103@hyperactivesw.com> On 1/12/12 11:33 AM, Pete wrote: > Hi Peter, > Yep, it should work, that's what's so frustrating. Even weirder still is > that if I send a mouseDown message to the File button from the message box, > everything works just fine, just not when I click on the File menu!!!!! I'm pretty sure this is in the dictionary somewhere. On OS X, a mousedown is never sent to a menu button, only to the menu group. It's been that way forever and has something to do with what the engine needs to do to create a system menu (where there aren't really any "buttons" per se.) Move your mousedown handler into the menu group, do all menu changes in there, and it will work. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Thu Jan 12 13:20:03 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 12 Jan 2012 12:20:03 -0600 Subject: Menu Builder In-Reply-To: References: <4F0E5ED6.50703@hyperactivesw.com> <20A65092-BDBF-44D2-ADB0-2855D443828F@cox.net> <4F0E6A39.2080601@hyperactivesw.com> Message-ID: <4F0F2453.7030809@hyperactivesw.com> On 1/12/12 12:24 AM, Pete wrote: > I have one remaining issue to deal with and that has to do with some window > resizing I do which now will have to take account of the menu group, > probably differently on Windows than on OS X. Fortunately, the code to do > the resizing is all in one handler so once I figure out whether to add the > 26 pixels or subtract them, all should be OK. I'm not sure you'll really need to do this. The advantage of the native method is that is handles all the resizing on its own. The content area of your stack is always the same on any platform, the only difference is that on non-Mac platforms a menu it stuck on at the top. Is there a reason you need to resize? Your current scripts should work fine, all you need to do is a one-time adjustment during development to add a few pixels to the stack height and push your current objects down (if necessary.) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pmbrig at gmail.com Thu Jan 12 13:40:58 2012 From: pmbrig at gmail.com (Peter M. Brigham, MD) Date: Thu, 12 Jan 2012 13:40:58 -0500 Subject: Menu Builder In-Reply-To: <4F0F2386.4090103@hyperactivesw.com> References: <4F0E5ED6.50703@hyperactivesw.com> <20A65092-BDBF-44D2-ADB0-2855D443828F@cox.net> <4F0E6A39.2080601@hyperactivesw.com> <062D6689-7225-40E3-A1D7-BFCD867CFC28@gmail.com> <4F0F2386.4090103@hyperactivesw.com> Message-ID: On Jan 12, 2012, at 1:16 PM, J. Landman Gay wrote: > On 1/12/12 11:33 AM, Pete wrote: >> Hi Peter, >> Yep, it should work, that's what's so frustrating. Even weirder still is >> that if I send a mouseDown message to the File button from the message box, >> everything works just fine, just not when I click on the File menu!!!!! > > I'm pretty sure this is in the dictionary somewhere. On OS X, a mousedown is never sent to a menu button, only to the menu group... I assume this is true if and only if the menubutton is part a a group. On my system menubuttons that are not part of any group receive and respond to mousedowns just fine. The part about grouped buttons being treated differently is a good nugget to file away. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From pete at mollysrevenge.com Thu Jan 12 13:44:10 2012 From: pete at mollysrevenge.com (Pete) Date: Thu, 12 Jan 2012 10:44:10 -0800 Subject: Using Unix FIFO files Message-ID: Anyone tried to use FIFO files from within LC? I'd like to use them to communicate with a Unix process from LC but not having any luck I create two fifo files using the Unix mkfifo command. That works fine. The plan is to start the Unix process with the shell command, redirecting it's stdin to one of the fifo files and its stdout to the other fifo file, write a command to the stdin file, then read the output from the stdout file. No matter what order I do things in, LC hangs on either the put URL, get URL, or shell command to start the process. I think I'm probably out of luck but maybe someone who knows more about Unix than I can help? -- Pete Molly's Revenge From pete at mollysrevenge.com Thu Jan 12 13:49:34 2012 From: pete at mollysrevenge.com (Pete) Date: Thu, 12 Jan 2012 10:49:34 -0800 Subject: Menu Builder In-Reply-To: <4F0F2453.7030809@hyperactivesw.com> References: <4F0E5ED6.50703@hyperactivesw.com> <20A65092-BDBF-44D2-ADB0-2855D443828F@cox.net> <4F0E6A39.2080601@hyperactivesw.com> <4F0F2453.7030809@hyperactivesw.com> Message-ID: Hi Jacque, The way this app works is that everything happens within the scope of one stack. I have groups that get hidden or shown depending on what function the user selects so I adjust the height of the stack depending on which function/group is active by reference to the bottom of the group that is currently visible. Sorry, it's hard to explain clearly! I don't really need to change the way the stack height is calculated I guess, everything still works, just that the stack ends up being 26 pixels higher than it should. On Thu, Jan 12, 2012 at 10:20 AM, J. Landman Gay wrote: > On 1/12/12 12:24 AM, Pete wrote: > > I have one remaining issue to deal with and that has to do with some >> window >> resizing I do which now will have to take account of the menu group, >> probably differently on Windows than on OS X. Fortunately, the code to do >> the resizing is all in one handler so once I figure out whether to add the >> 26 pixels or subtract them, all should be OK. >> > > I'm not sure you'll really need to do this. The advantage of the native > method is that is handles all the resizing on its own. The content area of > your stack is always the same on any platform, the only difference is that > on non-Mac platforms a menu it stuck on at the top. > > Is there a reason you need to resize? Your current scripts should work > fine, all you need to do is a one-time adjustment during development to add > a few pixels to the stack height and push your current objects down (if > necessary.) > > > -- > 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 > > -- Pete Molly's Revenge From pete at mollysrevenge.com Thu Jan 12 14:01:24 2012 From: pete at mollysrevenge.com (Pete) Date: Thu, 12 Jan 2012 11:01:24 -0800 Subject: Menu Builder In-Reply-To: <4F0F2386.4090103@hyperactivesw.com> References: <4F0E5ED6.50703@hyperactivesw.com> <20A65092-BDBF-44D2-ADB0-2855D443828F@cox.net> <4F0E6A39.2080601@hyperactivesw.com> <062D6689-7225-40E3-A1D7-BFCD867CFC28@gmail.com> <4F0F2386.4090103@hyperactivesw.com> Message-ID: Yes, that fixed it, thank you! I searched the obvious places in the dictionary but couldn't find any reference to this, maybe I'll add a user comment to the mouseDown entry. I guess there are still a couple of issues I'll have to deal with. There's more than one menu I have to dynamically adjust so I need to figure out in the group's mouseDown handler which menu was clicked. I tried using the short name of me, the short name of the target, and the mouseControl but none of them tell me which button was clicked. How do I figure that out? The other issue is what needs to be done for Windows. I think I'm right in saying that the mouseDown event will reach the menu bar group if there is no mouseDown handler for the button itself - right? Pete On Thu, Jan 12, 2012 at 10:16 AM, J. Landman Gay wrote: > On 1/12/12 11:33 AM, Pete wrote: > >> Hi Peter, >> Yep, it should work, that's what's so frustrating. Even weirder still is >> that if I send a mouseDown message to the File button from the message >> box, >> everything works just fine, just not when I click on the File menu!!!!! >> > > I'm pretty sure this is in the dictionary somewhere. On OS X, a mousedown > is never sent to a menu button, only to the menu group. It's been that way > forever and has something to do with what the engine needs to do to create > a system menu (where there aren't really any "buttons" per se.) > > Move your mousedown handler into the menu group, do all menu changes in > there, and it 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 > > -- Pete Molly's Revenge From pete at mollysrevenge.com Thu Jan 12 14:20:12 2012 From: pete at mollysrevenge.com (Pete) Date: Thu, 12 Jan 2012 11:20:12 -0800 Subject: Menu Builder In-Reply-To: References: <4F0E5ED6.50703@hyperactivesw.com> <20A65092-BDBF-44D2-ADB0-2855D443828F@cox.net> <4F0E6A39.2080601@hyperactivesw.com> <062D6689-7225-40E3-A1D7-BFCD867CFC28@gmail.com> <4F0F2386.4090103@hyperactivesw.com> Message-ID: Yes, I believe the distinction is that these buttons are part of the mechanism to put menus in the OS X system menu bar, not regular buttons. Indeed, this is worth filing away. I have also entered a User Comment for the mouseDown event in the dictionary. Pete On Thu, Jan 12, 2012 at 10:40 AM, Peter M. Brigham, MD wrote: > On Jan 12, 2012, at 1:16 PM, J. Landman Gay wrote: > > > On 1/12/12 11:33 AM, Pete wrote: > >> Hi Peter, > >> Yep, it should work, that's what's so frustrating. Even weirder still > is > >> that if I send a mouseDown message to the File button from the message > box, > >> everything works just fine, just not when I click on the File menu!!!!! > > > > I'm pretty sure this is in the dictionary somewhere. On OS X, a > mousedown is never sent to a menu button, only to the menu group... > > I assume this is true if and only if the menubutton is part a a group. On > my system menubuttons that are not part of any group receive and respond to > mousedowns just fine. The part about grouped buttons being treated > differently is a good nugget to file away. > > -- 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 stephenREVOLUTION2 at barncard.com Thu Jan 12 14:21:10 2012 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Thu, 12 Jan 2012 11:21:10 -0800 Subject: Mac/Windows deployment module for 4.6.4 In-Reply-To: References: Message-ID: I think there is a pulldown menu for version in your account On 12 January 2012 09:45, Pete wrote: > When I got 4.6.4 I somehow never upgraded the Mac/Windows deployment > module. On the STore, everything is now 5.0. IS there some way to get the > 4.6.4 deployment modules ro do I have to upgrade evereything to 5.0? > > > -- > 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 > -- Stephen Barncard San Francisco Ca. USA more about sqb From bonnmike at gmail.com Thu Jan 12 14:32:05 2012 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 12 Jan 2012 12:32:05 -0700 Subject: Using Unix FIFO files In-Reply-To: References: Message-ID: Just did a small amount of reading on fifo (new stuff for me) looks like theres a blocking mode and a non-blocking mode. http://linux.die.net/man/7/fifo has a little bit of info on this, no real answer, but I wonder if thats part of the issue. If your process opens them in blocking mode, that might be part of the issue. I wonder if you should "open file for read" and "open file for write" to make this work better. IE open them with lc so you have your file handles, then start your shell process. (though unless you are backgrounding or disconnecting the shell process, I think its blocking which also might be part of the issue, so you might use "open process" to start the shell process also. Then, since you're redirecting your input and output from the started process you don't have to worry about opening the process for read, write, or update since you won't be reading or writing directly to it. As far as that goes, since the fifo files are only acting as pass-throughs, can you bipass the whole fifo thing and just "open process for update" and then read/write to and from it as necessary? Hopefully a heavier hitting unix-head will chime in, but maybe something here will point you towards an answer. On Thu, Jan 12, 2012 at 11:44 AM, Pete wrote: > Anyone tried to use FIFO files from within LC? I'd like to use them to > communicate with a Unix process from LC but not having any luck > > I create two fifo files using the Unix mkfifo command. That works fine. > The plan is to start the Unix process with the shell command, redirecting > it's stdin to one of the fifo files and its stdout to the other fifo file, > write a command to the stdin file, then read the output from the stdout > file. No matter what order I do things in, LC hangs on either the put URL, > get URL, or shell command to start the process. > > I think I'm probably out of luck but maybe someone who knows more about > Unix than I can help? > > > -- > 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 jacque at hyperactivesw.com Thu Jan 12 14:35:52 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 12 Jan 2012 13:35:52 -0600 Subject: Menu Builder In-Reply-To: References: <4F0E5ED6.50703@hyperactivesw.com> <20A65092-BDBF-44D2-ADB0-2855D443828F@cox.net> <4F0E6A39.2080601@hyperactivesw.com> <062D6689-7225-40E3-A1D7-BFCD867CFC28@gmail.com> <4F0F2386.4090103@hyperactivesw.com> Message-ID: <4F0F3618.6060700@hyperactivesw.com> On 1/12/12 12:40 PM, Peter M. Brigham, MD wrote: > I assume this is true if and only if the menubutton is part a a > group. On my system menubuttons that are not part of any group > receive and respond to mousedowns just fine. The part about grouped > buttons being treated differently is a good nugget to file away. It's even more specific than that. It only applies on OS X, and when the group is set as the stack's menubar, and when the menubar is displayed as the system menu. I.e., if editmenus is true (the card is not scrolled) then the buttons are visible and receive mousedown messages. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Thu Jan 12 14:38:27 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 12 Jan 2012 13:38:27 -0600 Subject: Menu Builder In-Reply-To: References: <4F0E5ED6.50703@hyperactivesw.com> <20A65092-BDBF-44D2-ADB0-2855D443828F@cox.net> <4F0E6A39.2080601@hyperactivesw.com> <4F0F2453.7030809@hyperactivesw.com> Message-ID: <4F0F36B3.8060909@hyperactivesw.com> On 1/12/12 12:49 PM, Pete wrote: > Hi Jacque, > The way this app works is that everything happens within the scope of one > stack. I have groups that get hidden or shown depending on what function > the user selects so I adjust the height of the stack depending on which > function/group is active by reference to the bottom of the group that is > currently visible. Sorry, it's hard to explain clearly! > > I don't really need to change the way the stack height is calculated I > guess, everything still works, just that the stack ends up being 26 pixels > higher than it should. I think I'd just let it do that, push all the objects down by 26 pixels (let the menubuilder do it if you want) and forget about it. All your resizing scripts should work the way they did before. Consider the top 26 pixels as non-content areas. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at mollysrevenge.com Thu Jan 12 14:39:09 2012 From: pete at mollysrevenge.com (Pete) Date: Thu, 12 Jan 2012 11:39:09 -0800 Subject: Mac/Windows deployment module for 4.6.4 In-Reply-To: References: Message-ID: Thanks, not sure how I missed that! On Thu, Jan 12, 2012 at 11:21 AM, stephen barncard < stephenREVOLUTION2 at barncard.com> wrote: > I think there is a pulldown menu for version in your account > > On 12 January 2012 09:45, Pete wrote: > > > When I got 4.6.4 I somehow never upgraded the Mac/Windows deployment > > module. On the STore, everything is now 5.0. IS there some way to get > the > > 4.6.4 deployment modules ro do I have to upgrade evereything to 5.0? > > > > > > -- > > 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 > > > > > > -- > > > > 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 > > -- Pete Molly's Revenge From jacque at hyperactivesw.com Thu Jan 12 14:43:17 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 12 Jan 2012 13:43:17 -0600 Subject: Menu Builder In-Reply-To: References: <4F0E5ED6.50703@hyperactivesw.com> <20A65092-BDBF-44D2-ADB0-2855D443828F@cox.net> <4F0E6A39.2080601@hyperactivesw.com> <062D6689-7225-40E3-A1D7-BFCD867CFC28@gmail.com> <4F0F2386.4090103@hyperactivesw.com> Message-ID: <4F0F37D5.8020404@hyperactivesw.com> On 1/12/12 1:01 PM, Pete wrote: > There's more than one menu I have to dynamically adjust so I need to figure > out in the group's mouseDown handler which menu was clicked. I tried using > the short name of me, the short name of the target, and the mouseControl > but none of them tell me which button was clicked. How do I figure that > out? I usually don't bother, though the "short name of the target" should work I'd think. I just set everything all at once. Some of my menu handlers are fairly long but they still run almost instantly. Manipulating menus is expensive, so it's a good idea to lock menus before changing things and then unlock menus at the end of the handler. on mousedown lock menus put blahblah into btn "file" of me put somethingelse into btn "edit" of me unlock menus end mousedown > > The other issue is what needs to be done for Windows. I think I'm right in > saying that the mouseDown event will reach the menu bar group if there is > no mouseDown handler for the button itself - right? Yes. Messages will pass through the hierarchy normally, so you get automatic cross-platform behavior. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobs at twft.com Thu Jan 12 15:00:51 2012 From: bobs at twft.com (Bob Sneidar) Date: Thu, 12 Jan 2012 12:00:51 -0800 Subject: Menu Builder In-Reply-To: <4F0F37D5.8020404@hyperactivesw.com> References: <4F0E5ED6.50703@hyperactivesw.com> <20A65092-BDBF-44D2-ADB0-2855D443828F@cox.net> <4F0E6A39.2080601@hyperactivesw.com> <062D6689-7225-40E3-A1D7-BFCD867CFC28@gmail.com> <4F0F2386.4090103@hyperactivesw.com> <4F0F37D5.8020404@hyperactivesw.com> Message-ID: Ooooh good tip on locking menus! Bob On Jan 12, 2012, at 11:43 AM, J. Landman Gay wrote: > On 1/12/12 1:01 PM, Pete wrote: > >> There's more than one menu I have to dynamically adjust so I need to figure >> out in the group's mouseDown handler which menu was clicked. I tried using >> the short name of me, the short name of the target, and the mouseControl >> but none of them tell me which button was clicked. How do I figure that >> out? > > I usually don't bother, though the "short name of the target" should work I'd think. I just set everything all at once. Some of my menu handlers are fairly long but they still run almost instantly. Manipulating menus is expensive, so it's a good idea to lock menus before changing things and then unlock menus at the end of the handler. > > on mousedown > lock menus > put blahblah into btn "file" of me > put somethingelse into btn "edit" of me > unlock menus > end mousedown > >> >> The other issue is what needs to be done for Windows. I think I'm right in >> saying that the mouseDown event will reach the menu bar group if there is >> no mouseDown handler for the button itself - right? > > Yes. Messages will pass through the hierarchy normally, so you get automatic cross-platform behavior. > > -- > 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 pete at mollysrevenge.com Thu Jan 12 15:14:37 2012 From: pete at mollysrevenge.com (Pete) Date: Thu, 12 Jan 2012 12:14:37 -0800 Subject: Using Unix FIFO files In-Reply-To: References: Message-ID: Thanks Mike. I think you're right about the blocking aspect of this. I did try using "open file" instead of get and put URL but got the same problem. I was hoping to avoid continually starting and stopping the process each time I need it but I typically only use it a few times in any run of the application so probably and this is getting way beyond my Unix knowledge so I think I'll just start and stop the process each time I need it. Pete On Thu, Jan 12, 2012 at 11:32 AM, Mike Bonner wrote: > Just did a small amount of reading on fifo (new stuff for me) looks like > theres a blocking mode and a non-blocking mode. > http://linux.die.net/man/7/fifo has a little bit of info on this, no real > answer, but I wonder if thats part of the issue. If your process opens them > in blocking mode, that might be part of the issue. I wonder if you should > "open file for read" and "open file for write" to make this work better. > IE open them with lc so you have your file handles, then start your shell > process. (though unless you are backgrounding or disconnecting the shell > process, I think its blocking which also might be part of the issue, so you > might use "open process" to start the shell process also. Then, since > you're redirecting your input and output from the started process you don't > have to worry about opening the process for read, write, or update since > you won't be reading or writing directly to it. > > As far as that goes, since the fifo files are only acting as pass-throughs, > can you bipass the whole fifo thing and just "open process for update" and > then read/write to and from it as necessary? > > Hopefully a heavier hitting unix-head will chime in, but maybe something > here will point you towards an answer. > > On Thu, Jan 12, 2012 at 11:44 AM, Pete wrote: > > > Anyone tried to use FIFO files from within LC? I'd like to use them to > > communicate with a Unix process from LC but not having any luck > > > > I create two fifo files using the Unix mkfifo command. That works fine. > > The plan is to start the Unix process with the shell command, > redirecting > > it's stdin to one of the fifo files and its stdout to the other fifo > file, > > write a command to the stdin file, then read the output from the stdout > > file. No matter what order I do things in, LC hangs on either the put > URL, > > get URL, or shell command to start the process. > > > > I think I'm probably out of luck but maybe someone who knows more about > > Unix than I can help? > > > > > > -- > > 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 pete at mollysrevenge.com Thu Jan 12 15:18:33 2012 From: pete at mollysrevenge.com (Pete) Date: Thu, 12 Jan 2012 12:18:33 -0800 Subject: Menu Builder In-Reply-To: <4F0F37D5.8020404@hyperactivesw.com> References: <4F0E5ED6.50703@hyperactivesw.com> <20A65092-BDBF-44D2-ADB0-2855D443828F@cox.net> <4F0E6A39.2080601@hyperactivesw.com> <062D6689-7225-40E3-A1D7-BFCD867CFC28@gmail.com> <4F0F2386.4090103@hyperactivesw.com> <4F0F37D5.8020404@hyperactivesw.com> Message-ID: Thanks Jacque. I did try the short name of the target and it returned the name of the menu bar group, as did the short name of me. After looking at the logic of what I'm trying to do, I think there's another place I can do the adjust the menu contents and drop the whole mouseDown approach. Feels cleaner that way. On Thu, Jan 12, 2012 at 11:43 AM, J. Landman Gay wrote: > On 1/12/12 1:01 PM, Pete wrote: > > There's more than one menu I have to dynamically adjust so I need to >> figure >> out in the group's mouseDown handler which menu was clicked. I tried >> using >> the short name of me, the short name of the target, and the mouseControl >> but none of them tell me which button was clicked. How do I figure that >> out? >> > > I usually don't bother, though the "short name of the target" should work > I'd think. I just set everything all at once. Some of my menu handlers are > fairly long but they still run almost instantly. Manipulating menus is > expensive, so it's a good idea to lock menus before changing things and > then unlock menus at the end of the handler. > > on mousedown > lock menus > put blahblah into btn "file" of me > put somethingelse into btn "edit" of me > unlock menus > end mousedown > > > >> The other issue is what needs to be done for Windows. I think I'm right >> in >> saying that the mouseDown event will reach the menu bar group if there is >> no mouseDown handler for the button itself - right? >> > > Yes. Messages will pass through the hierarchy normally, so you get > automatic cross-platform behavior. > > > -- > 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 > > -- Pete Molly's Revenge From pete at mollysrevenge.com Thu Jan 12 18:36:41 2012 From: pete at mollysrevenge.com (Pete) Date: Thu, 12 Jan 2012 15:36:41 -0800 Subject: Standalone Application Menu items Message-ID: How do I get items other than Preferences into the OS X application menu? -- Pete Molly's Revenge From bobs at twft.com Thu Jan 12 19:17:55 2012 From: bobs at twft.com (Bob Sneidar) Date: Thu, 12 Jan 2012 16:17:55 -0800 Subject: Standalone Application Menu items In-Reply-To: References: Message-ID: Not sure you can. The OS may prevent it. Bob On Jan 12, 2012, at 3:36 PM, Pete wrote: > How do I get items other than Preferences into the OS X application menu? > > > -- > 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 pete at mollysrevenge.com Thu Jan 12 21:04:27 2012 From: pete at mollysrevenge.com (Pete) Date: Thu, 12 Jan 2012 18:04:27 -0800 Subject: Standalone version information Message-ID: In the standalone settings, there's information about version (short long, Get info, etc). How do I get hold of this in the standalone to display it in the "About" screen? -- Pete Molly's Revenge From dglass at graymattercomputing.com Thu Jan 12 21:32:31 2012 From: dglass at graymattercomputing.com (David Glass) Date: Thu, 12 Jan 2012 18:32:31 -0800 Subject: SQL Date Formatting In-Reply-To: <6C9DAEC2-63FE-416C-AF24-64663A80F6B2@twft.com> References: <6C9DAEC2-63FE-416C-AF24-64663A80F6B2@twft.com> Message-ID: <4F0F97BF.2070206@graymattercomputing.com> It's an ISO standard format designed to be unambiguous. On 01/12/2012 9:34 AM, Bob Sneidar wrote: > I think (I will be corrected if I am wrong) that it is a Canadian > format. -- David Glass - Gray Matter Computing graymattercomputing.com Help Desk: http://www.graymattercomputing.com/helpdesk 559-303-4915 From 3mcgrath at comcast.net Thu Jan 12 23:10:59 2012 From: 3mcgrath at comcast.net (Thomas McGrath III) Date: Thu, 12 Jan 2012 23:10:59 -0500 Subject: FaceBook lesson and images Message-ID: <0053AB2F-69F1-45A7-9467-FB275A04B685@comcast.net> Has anyone taken the FB lesson on run rev any further. I am not up on using the data grid with images and would love to inspect how that is accomplished. Thanks -- Tom McGrath III http://lazyriver.on-rev.com 3mcgrath at comcast.net From sc at sahores-conseil.com Fri Jan 13 00:09:24 2012 From: sc at sahores-conseil.com (Pierre Sahores) Date: Fri, 13 Jan 2012 06:09:24 +0100 Subject: Perishable Press In-Reply-To: <14dae9340a93026d5904b656c0d1@google.com> References: <14dae9340a93026d5904b656c0d1@google.com> Message-ID: <4499E89A-F74C-4491-82D9-253469111E75@sahores-conseil.com> Useful and perfect to help us to protect our CGI / LC Server apps. I use it since v 4G ;-) > Perishable Press > > 5G Blacklist 2012 > Posted: 11 Jan 2012 12:47 PM PST > The 5G Blacklist helps reduce the number of malicious URL requests that hit your website. It?s one of many ways to improve the security of your site and protect against evil exploits, bad requests, and other nefarious garbage. > > After extensive beta testing, the 5G Blacklist/Firewall is solid and ready to help secure sites hosted on Apache servers. In addition to beta testing for the 5G, this is the 5th major update of my ?G?-series blacklists. Here is a quick overview of its evolution: > > > ? Ultimate htaccess Blacklist (Compressed Version) > ? 2G Blacklist: Closing the Door on Malicious Attacks > ? Perishable Press 3G Blacklist > ? The Perishable Press 4G Blacklist > ? 5G Firewall (Beta) > Along the way, I?ve explored a wide variety of different blacklist techniques. The 5G is the culmination of all these efforts, and will eventually be replaced by the imminent 6G Blacklist/Firewall. > > What it does > > The 5G Blacklist is a simple, flexible blacklist that checks all URI requests against a series of carefully constructed HTAccess directives. This happens quietly behind the scenes at the server level, saving resources for stuff like PHP and MySQL for all blocked requests. > > How it works > > Blacklists can block just about any part of a request: IP, user agent, request string, query string, referrer, and everything in between. But IP addresses change constantly, and user agents and referrers are easily spoofed. As discussed, request strings yield the best results: greater protection with fewer false positives. > > The 5G works beautifully with WordPress, and should help any site conserve bandwidth and server resources while protecting against malicious activity. > > How to use > > To install the 5G Firewall, append the following code to your site?s root .htaccess: > > # 5G BLACKLIST/FIREWALL > # @ http://perishablepress.com/5g-blacklist/ > > # 5G:[QUERY STRINGS] > > RewriteEngine On > RewriteBase / > RewriteCond %{QUERY_STRING} (environ|localhost|mosconfig|scanner) [NC,OR] > RewriteCond %{QUERY_STRING} (menu|mod|path|tag)\=\.?/? [NC,OR] > RewriteCond %{QUERY_STRING} boot\.ini [NC,OR] > RewriteCond %{QUERY_STRING} echo.*kae [NC,OR] > RewriteCond %{QUERY_STRING} etc/passwd [NC,OR] > RewriteCond %{QUERY_STRING} \=\\%27$ [NC,OR] > RewriteCond %{QUERY_STRING} \=\\\'$ [NC,OR] > RewriteCond %{QUERY_STRING} \.\./ [NC,OR] > RewriteCond %{QUERY_STRING} \? [NC,OR] > RewriteCond %{QUERY_STRING} \: [NC,OR] > RewriteCond %{QUERY_STRING} \[ [NC,OR] > RewriteCond %{QUERY_STRING} \] [NC] > RewriteRule .* - [F] > > > # 5G:[USER AGENTS] > > SetEnvIfNoCase User-Agent ^$ keep_out > SetEnvIfNoCase User-Agent (casper|cmsworldmap|diavol|dotbot) keep_out > SetEnvIfNoCase User-Agent (flicky|ia_archiver|jakarta|kmccrew) keep_out > SetEnvIfNoCase User-Agent (libwww|planetwork|pycurl|skygrid) keep_out > SetEnvIfNoCase User-Agent (purebot|comodo|feedfinder|turnit) keep_out > SetEnvIfNoCase User-Agent (zmeu|nutch|vikspider|binlar|sucker) keep_out > > Order Allow,Deny > Allow from all > Deny from env=keep_out > > > > # 5G:[REQUEST STRINGS] > > RedirectMatch 403 (https?|ftp|php)\:// > RedirectMatch 403 /(cgi|https?|ima|ucp)/ > RedirectMatch 403 /(Permanent|Better)$ > RedirectMatch 403 (\=\\\'|\=\\%27|/\\\'/?|\)\.css\()$ > RedirectMatch 403 (\,|//|\)\+|/\,/|\{0\}|\(/\(|\.\.\.|\+\+\+|\||\\\"\\\") > RedirectMatch 403 \.(cgi|asp|aspx|cfg|dll|exe|jsp|mdb|sql|ini|rar)$ > RedirectMatch 403 /(contac|fpw|install|pingserver|register)\.php$ > RedirectMatch 403 (base64|crossdomain|localhost|wwwroot|e107\_) > RedirectMatch 403 (eval\(|\_vti\_|\(null\)|echo.*kae|config\.xml) > RedirectMatch 403 \.well\-known/host\-meta > RedirectMatch 403 /function\.array\-rand > RedirectMatch 403 \)\;\$\(this\)\.html\( > RedirectMatch 403 proc/self/environ > RedirectMatch 403 msnbot\.htm\)\.\_ > RedirectMatch 403 /ref\.outcontrol > RedirectMatch 403 com\_cropimage > RedirectMatch 403 indonesia\.htm > RedirectMatch 403 \{\$itemURL\} > RedirectMatch 403 function\(\) > RedirectMatch 403 labels\.rdf > RedirectMatch 403 /playing.php > RedirectMatch 403 muieblackcat > > > # 5G:[BAD IPS] > > Order Allow,Deny > Allow from all > # uncomment/edit/repeat next line to block IPs > # Deny from 123.456.789 > > > That?s the golden ticket right there. The 5G Firewall is serious protection for your website: extensively tested, plug-n-play, and completely free. ?Grab, gulp, n go? as they say. For more information, see the beta article (and comments). > > Troubleshooting > > Remember, test thoroughly. If something stops working when the 5G is installed, try removing the 5G. If things start working normally again, you can either pass on the 5G or investigate further. Investigating further is straightforward using something like the halving method, where you remove chunks of the 5G until isolating and identifying the issue. Here is a quick example: > > ? I?ve installed the 5G, thanks Jeff. > ? Uh-oh, the page at http://example.com/indonesia.html stopped loading > ? Hmm, the URL contains the phrase ?indonesia?, so let?s check the 5G for it > ? Yep, there?s a rule that blocks indonesia\.htm > ? Removing that line resolves the issue, thanks me. > Is it okay to remove rules that are blocking your own pages? Yes, the only downside is that malicious requests that would have otherwise been blocked will now get through. The 5G will continue to block a massive volume of malicious requests ? it?ll just be a bit less effective. The protective effect is cumulative, not dependent on any one rule. So customization is encouraged. Once you dial it in, you?re all set. > > Disclaimer > > The 5G Firewall is provided ?as-is?, with the intention of helping site administrators protect their sites against bad requests and other malicious activity. The code is open and free to use and modify as long as the first two credit lines remain intact. By using this code you assume all risk & responsibility for anything that happens, whether good or bad. In short, use wisely, test thoroughly, don?t sue me. > > Learn more.. > > To learn more about the theory and development of the 5G Firewall, check out my articles on building the 3G, 4G and 5G Blacklist. A search for ?blacklist? in the sidebar should also yield many results. > > Happy securing! > > ? 2012 Perishable Press > > > You are subscribed to email updates from Perishable Press > To stop receiving these emails, you may unsubscribe now. Email delivery powered by Google > Google Inc., 20 West Kinzie, Chicago IL USA 60610 -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com From jacque at hyperactivesw.com Fri Jan 13 00:14:10 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 12 Jan 2012 23:14:10 -0600 Subject: Standalone version information In-Reply-To: References: Message-ID: <4F0FBDA2.5060201@hyperactivesw.com> On 1/12/12 8:04 PM, Pete wrote: > In the standalone settings, there's information about version (short long, > Get info, etc). How do I get hold of this in the standalone to display it > in the "About" screen? I usually just store the info as my own custom properties. LiveCode stores all the build info in a custom property set of the stack called cRevStandaloneSettings, but I don't think those get transfered to the final standalone, they are only used in the IDE for building the app. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at mollysrevenge.com Fri Jan 13 01:19:46 2012 From: pete at mollysrevenge.com (Pete) Date: Thu, 12 Jan 2012 22:19:46 -0800 Subject: Menu Builder In-Reply-To: <4F0F37D5.8020404@hyperactivesw.com> References: <4F0E5ED6.50703@hyperactivesw.com> <20A65092-BDBF-44D2-ADB0-2855D443828F@cox.net> <4F0E6A39.2080601@hyperactivesw.com> <062D6689-7225-40E3-A1D7-BFCD867CFC28@gmail.com> <4F0F2386.4090103@hyperactivesw.com> <4F0F37D5.8020404@hyperactivesw.com> Message-ID: Hi Jacque, Wanted to let you know that the issue of mouseDwon having to be at the group level is documented in the USer Guide so you remembered correctly! I also discovered today that 5.0.2 handles the moving of controls for system menu purposes differently than 4.6.4. Just upgraded to 5.0.2 and the first time I opened my stack, it was slightly higher than with 4.6.4. I tried it again in 4.6.4 and it opened slightly less high than it should have been! Pete On Thu, Jan 12, 2012 at 11:43 AM, J. Landman Gay wrote: > On 1/12/12 1:01 PM, Pete wrote: > > There's more than one menu I have to dynamically adjust so I need to >> figure >> out in the group's mouseDown handler which menu was clicked. I tried >> using >> the short name of me, the short name of the target, and the mouseControl >> but none of them tell me which button was clicked. How do I figure that >> out? >> > > I usually don't bother, though the "short name of the target" should work > I'd think. I just set everything all at once. Some of my menu handlers are > fairly long but they still run almost instantly. Manipulating menus is > expensive, so it's a good idea to lock menus before changing things and > then unlock menus at the end of the handler. > > on mousedown > lock menus > put blahblah into btn "file" of me > put somethingelse into btn "edit" of me > unlock menus > end mousedown > > > >> The other issue is what needs to be done for Windows. I think I'm right >> in >> saying that the mouseDown event will reach the menu bar group if there is >> no mouseDown handler for the button itself - right? >> > > Yes. Messages will pass through the hierarchy normally, so you get > automatic cross-platform behavior. > > > -- > 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 > > -- Pete Molly's Revenge From lan.kc.macmail at gmail.com Fri Jan 13 01:32:20 2012 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Fri, 13 Jan 2012 14:32:20 +0800 Subject: SQL Date Formatting In-Reply-To: References: Message-ID: On Fri, Jan 13, 2012 at 1:29 AM, Bob Sneidar wrote: When I need to work with the dates in Livecode, I run the dates through my > conversion functions first. It would just be nice to have an option in the > convert command. No big deal though. > > I appreciate you've already achieved a suitable solution, but for the next person that crosses this bridge it doesn't need to be as hard as you make out. Firstly, mySQL date format (yyyy-mm-dd hh:mm:ss) is one of the few sensible date/time formats out there as it sorts quickly an easily. As far as I'm concerned it is one of the few sensible date formats - LCs dateItems format being the other. Secondly, it is basically a one liner to get it ready for use by LCs convert command. A cursory glance at the above format will reveal it is exactly the same order as used by LCs dateItems, and as the LC Dictionary says, once you get date/times into dateItems (or seconds) they are invariant, this is super important because it means they are identical on everyone's system, regardless of OS, country they live, or individual preference. Brilliant! You could: put "2012-01-13 09:09:07" into tStore replace "-" with comma in tStore replace " " with comma in tStore replace ":" with comma in tStore put ",0" after tStore -- dateItems must total 7 and have your date/time now in LC dateItems format, but I like one liners so: put "2012-01-13 09:09:07" into tStore put replaceText(tStore,"[- :]",",") & ",0" into tStore -- trailing 0 to make up 7 items -- item 7 of dateItems can be 0 and LC will correct it when converted basically the [- :] is a regex expression to look for - or [space] or : then LC replaces each instance with a , Going the other way, turning LC dateItems in mySQL date/time is a one liner, although very long (split here for viewing pleasure) put the internet date into tStore --just to take a string that doesn't look anything like a mySQL date convert tStore to dateItems --one line conversion from dateItems to mySQL date below put item 1 of tStore & "-" & \ item 2 of tStore & "-" & \ item 3 of tStore & " " & \ item 4 of tStore & ":" & \ item 5 of tStore & ":" & \ item 6 of tStore into tStore -- everything rearranged nicely to go into mySQL Of course you are only working with dates and are not interested in times, but here again is the beauty of LCs convert command, dateItems and LC's forte - chunk expressions: put the "13/1/12" into tStore -- this NEEDS to match your system date so dd/mm/yy on mine -- in your case you'll need a string that matches your system date format convert tStore from system date to dateItems --automatically rearranges the order and adds the extra 2 digits to the year and 0s for hr,mm,sec (and a number representing the day of the week - brilliant) --one line conversion from dateItems to mySQL date below put item 1 of tStore & "-" & \ item 2 of tStore & "-" & \ item 3 of tStore & " " & \ item 4 of tStore & ":" & \ item 5 of tStore & ":" & \ item 6 of tStore into tStore -- everything rearranged nicely to go into mySQL put word 1 of tStore into tJustTheDate put word 2 of tStore into tJustTheTime A couple of things to note: 1) If you insert 2012-1-2 3:4:5 into mySQL it will not hiccup, it will automatically convert it to 2012-01-02 03:04:05 so don't bother creating a bunch of code to format the leading zeros. Nice. 2) As pointed out by Mike, you can pre-format the data using mySQLs DATE_FORMAT function - which will require you opening the mySQL manual, but here are two that will automatically output either a date and time to LC dateItems or just a date to LC dateItems: DATE_FORMAT(dateNtime,'%Y,%m,%e,%k,%i,%s,0') DATE_FORMAT(dateOnly,'%Y,%m,%e,0,0,0,0') I love LCs dateItems and how it does everything automatically: 3) I love the fact I don't have to take into account if a user is using mm/dd/yy format or dd-mm-yy format, once it converted to dateItems it's the same on EVERY system. 4) When working with dateItems there MUST be 7 items, the great thing is, if you don't know item 7 (the day of the week as a number) just use 0, when you convert it to another format LC will automatically correct it. 5) Want to know what the date is 235 days from now; add 235 to item 3 of dateItems, convert it to another format like long date and it's done for you. Subtract 123532 hours from item 4, 113958735937 minutes from item 5, etc etc it all just works. Even if you are just working with time, if you have to do any maths with it, adding a fictitious date and doing the maths with dateItems is a whole heap easier than the code to subtract 8762234 min from 4:34PM by any other method. 6) Are you doing simple comparisons, ie day before, after or the same? Then don't even bother with conversion; use mySQLs YEAR(), MONTH(), DAY(), HOUR(), MINUTE(), SECOND() functions and directly compare them to the appropriate item number in LC dateItems. Although LC does not provide a mySQL format as one of the inbuilt formats to convert to and from, the fact that dateItems is so cool,flexible, in the same order and just a one liner away from mySQL it really shouldn't provoke such F-I-TZ! HTH From pete at mollysrevenge.com Fri Jan 13 01:58:12 2012 From: pete at mollysrevenge.com (Pete) Date: Thu, 12 Jan 2012 22:58:12 -0800 Subject: Standalone version information In-Reply-To: <4F0FBDA2.5060201@hyperactivesw.com> References: <4F0FBDA2.5060201@hyperactivesw.com> Message-ID: Been prowling around a bit on this and I see that all those settings are in the plist file in the application bundle. I think I have an Applescript somewhere to pull data out of a plist file so I think I'll go that route. Not sure about WIndows though, presumably that stuff ends up in the registry somewhere? Pete On Thu, Jan 12, 2012 at 9:14 PM, J. Landman Gay wrote: > On 1/12/12 8:04 PM, Pete wrote: > >> In the standalone settings, there's information about version (short long, >> Get info, etc). How do I get hold of this in the standalone to display it >> in the "About" screen? >> > > I usually just store the info as my own custom properties. LiveCode stores > all the build info in a custom property set of the stack called > cRevStandaloneSettings, but I don't think those get transfered to the final > standalone, they are only used in the IDE for building the app. > > -- > 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 > > -- Pete Molly's Revenge From mazzapaoloitaly at gmail.com Fri Jan 13 05:16:26 2012 From: mazzapaoloitaly at gmail.com (paolo mazza) Date: Fri, 13 Jan 2012 11:16:26 +0100 Subject: Regular expression to find the date In-Reply-To: References: Message-ID: Thank you Thierry, it works very well. Now it accepts all a the date formats. All the best Paolo On Wed, Jan 11, 2012 at 12:59 PM, Thierry Douez wrote: > Hi Paolo, > > Both of these solutions work great. >> However, to me, ?a perfect solution would be a combination of the two, >> >> A Regular Expression that accept >> >> 05/01/2011 >> 05-01-2011 >> 05.01.2011 >> ... >> and also >> >> 11/9/2011 >> 5/10/2011 >> ... >> as a date. >> > > If you need an optional '0' for one digit day and month, add > a question mark after the 0 in the Regexp, like this : > > ? put > "((0?[1-9]|[12][0-9]|3[01])[-/.](0?[1-9]|1[012])[-/.]((19|20)\d\d))" ?into > myRegEx > > > HTH, > > Thierry > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bvlahos at mac.com Fri Jan 13 10:37:37 2012 From: bvlahos at mac.com (Bill Vlahos) Date: Fri, 13 Jan 2012 07:37:37 -0800 Subject: What are the current LiveCode issues with the Mac App Store? In-Reply-To: References: Message-ID: Bob, Yes the RunRev folks have commented before that this will be fixed in a future version but it is very frustrating that it isn't ready now. To get the new feature it requires a major change by RunRev in their environment but the new version should be able to do all the new things like the Lion scroll bars, full screen, etc. as well. I doubt Microsoft will ever release Office to the Mac App Store (I can't see them giving Apple 30% nor Apple wanting to have that huge a file to download) but they shouldn't have any problems complying with the requirement if they do. Bill Vlahos _________________ InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. On Jan 9, 2012, at 8:51 AM, Bob Sneidar wrote: > Ick! Is this something that is going to be fixed in the future? How is Microsoft Office going to deal with that?? > > Bob > > > On Jan 7, 2012, at 12:12 PM, Andrew Henshaw wrote: > >> The only issue Im aware of is the current livecode file dialogue will not work with sandboxed apps, this is required by the store after 1st March. >> >> >> >> >> >> On 7 Jan 2012, at 17:43, Bill Vlahos wrote: >> >>> I'm thinking of publishing InfoWallet in the Mac App Store. There is some re-architecting of the app that I know about and those are easily done but I'm wondering what the more obscure areas that might trip me up. >>> >>> How are people working with the Apple requirements of the App Store? >>> >>> What has been your experiences with the whole process? >>> >>> Thanks, >>> Bill Vlahos >>> _________________ >>> InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 kray at sonsothunder.com Fri Jan 13 12:07:20 2012 From: kray at sonsothunder.com (Ken Ray) Date: Fri, 13 Jan 2012 11:07:20 -0600 Subject: SQL Date Formatting In-Reply-To: References: Message-ID: > 3) I love the fact I don't have to take into account if a user is using > mm/dd/yy format or dd-mm-yy format, once it converted to dateItems it's the > same on EVERY system. Just a little 'gotcha' here - I've been doing A LOT with dates and times recently, and discovered that you either need to make sure the 'useSystemDate' is set to true in your code, OR make sure to add the "system" keyword in any format conversion, otherwise it assumes US-formatted dates (this is documented in Bug #9893 in Bugzilla). Here's an example: If you're in the UK, and it's June 1, 2011, and you don't have "useSystemDate" active, if you: put the short date --> 6/1/11 (US-formatted) put the short system date --> 01/06/2011 (UK-formatted) If you do this: put the short system date into tDate convert tDate to dateItems you get this: 2011,1,6,0,0,0,5 Which makes it *look* like it's reversing the month and day positions, but what's actually happening is the convert command hasn't been *told* that you're using a "system" date, so it attempts to convert "01/06/2011" as if it was a US date and ends up the way you see it here. To solve the problem you'd need to: put the short system date into tDate convert tDate from short system date to dateItems -- you can also do "system date" instead of "short system date" --> 2011,6,1,0,0,0,5 So it's very important when dealing with non-US dates that you turn "useSystemDate" on OR use the "system" keyword otherwise you'll end up with a lot of headaches? Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From pete at mollysrevenge.com Fri Jan 13 12:46:11 2012 From: pete at mollysrevenge.com (Pete) Date: Fri, 13 Jan 2012 09:46:11 -0800 Subject: SQL Date Formatting In-Reply-To: References: Message-ID: Thanks Kay and Ken for some great ideas and warnings on this whole date issue. Ken, thanks for the date conversion script you sent me a few months back, very useful. I saw a headline somewhere recently that there's a move afoot to start using a new calendar! Apparently every month will have 28 days so there'll be 13 of them and an extra day that's not part of any month at the end of the year... or the beginning of the year... or in between the years... Pete On Fri, Jan 13, 2012 at 9:07 AM, Ken Ray wrote: > > 3) I love the fact I don't have to take into account if a user is using > > mm/dd/yy format or dd-mm-yy format, once it converted to dateItems it's > the > > same on EVERY system. > > Just a little 'gotcha' here - I've been doing A LOT with dates and times > recently, and discovered that you either need to make sure the > 'useSystemDate' is set to true in your code, OR make sure to add the > "system" keyword in any format conversion, otherwise it assumes > US-formatted dates (this is documented in Bug #9893 in Bugzilla). Here's an > example: > > If you're in the UK, and it's June 1, 2011, and you don't have > "useSystemDate" active, if you: > > put the short date > --> 6/1/11 (US-formatted) > > put the short system date > --> 01/06/2011 (UK-formatted) > > If you do this: > > put the short system date into tDate > convert tDate to dateItems > > you get this: > > 2011,1,6,0,0,0,5 > > Which makes it *look* like it's reversing the month and day positions, but > what's actually happening is the convert command hasn't been *told* that > you're using a "system" date, so it attempts to convert "01/06/2011" as if > it was a US date and ends up the way you see it here. To solve the problem > you'd need to: > > put the short system date into tDate > convert tDate from short system date to dateItems -- you can also > do "system date" instead of "short system date" > --> 2011,6,1,0,0,0,5 > > So it's very important when dealing with non-US dates that you turn > "useSystemDate" on OR use the "system" keyword otherwise you'll end up with > a lot of headaches? > > > Ken Ray > Sons of Thunder Software, Inc. > Email: kray at sonsothunder.com > Web Site: http://www.sonsothunder.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 > > -- Pete Molly's Revenge From pete at mollysrevenge.com Fri Jan 13 12:51:43 2012 From: pete at mollysrevenge.com (Pete) Date: Fri, 13 Jan 2012 09:51:43 -0800 Subject: Application Menu (again) and RunRev attribution Message-ID: Didn't see any responses to my recent post about how to get items other than Preferences on to the OS X Application menu so posting again in hope of a positive response. I have 4 apps running on my Mac right now and everyone of them has extra items on the Application Menu, hopefully LC provides a way for us to do this. I am about to release my first commercial product written with Livecode and I'm wondering what the etiquette is, if any, regarding mentioning Livecode and RunRev in the About dialog, maybe something like "Built with Livecode from RunRev" plus a web address? -- Pete Molly's Revenge From warren at warrensweb.us Fri Jan 13 13:08:50 2012 From: warren at warrensweb.us (Warren Samples) Date: Fri, 13 Jan 2012 12:08:50 -0600 Subject: Application Menu (again) and RunRev attribution In-Reply-To: References: Message-ID: <4F107332.1020800@warrensweb.us> On 01/13/2012 11:51 AM, Pete wrote: > I am about to release my first commercial product written with Livecode and > I'm wondering what the etiquette is, if any, regarding mentioning Livecode > and RunRev in the About dialog, maybe something like "Built with Livecode > from RunRev" plus a web address? From the EULA: APPENDIX A - Required Copyright Notice You must include the following copyright notice where other such notices appear. In the event that such other notices do not appear in the Created Software, this notice must be placed in a reasonable location. Built with LiveCode. Portions (c)2000-2011 RunRev Ltd, All Rights Reserved Worldwide. We would like you to include the RunRev logo, as per the terms set on our website. However, unlike the Copyright notice above, you are not required to include the logo. I can't find the guidelines for using the images, but I saw them once and recall thinking it was a little formal and restricting, but it's their business :D Warren From guglielmo at braguglia.ch Fri Jan 13 13:09:08 2012 From: guglielmo at braguglia.ch (Guglielmo Braguglia) Date: Fri, 13 Jan 2012 19:09:08 +0100 Subject: Application Menu (again) and RunRev attribution In-Reply-To: References: Message-ID: <4F107344.6010501@braguglia.ch> Just read the EULA : http://www.runrev.com/company/livecode-license/ ... at the bottom of the page ;-) Guglielmo On 13.01.2012 18:51, Pete wrote: > ... omissis ... > > I am about to release my first commercial product written with Livecode and > I'm wondering what the etiquette is, if any, regarding mentioning Livecode > and RunRev in the About dialog, maybe something like "Built with Livecode > from RunRev" plus a web address? > > From jacque at hyperactivesw.com Fri Jan 13 13:28:11 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 13 Jan 2012 12:28:11 -0600 Subject: Application Menu (again) and RunRev attribution In-Reply-To: References: Message-ID: <4F1077BB.2040603@hyperactivesw.com> On 1/13/12 11:51 AM, Pete wrote: > Didn't see any responses to my recent post about how to get items other > than Preferences on to the OS X Application menu There's no way I know of. The About item is moved there automatically by the engine but I don't think there's a way to trick it into including anything else. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at mollysrevenge.com Fri Jan 13 14:00:43 2012 From: pete at mollysrevenge.com (Pete) Date: Fri, 13 Jan 2012 11:00:43 -0800 Subject: Application Menu (again) and RunRev attribution In-Reply-To: <4F107344.6010501@braguglia.ch> References: <4F107344.6010501@braguglia.ch> Message-ID: Than ks guys. Sorry, I should have read the EULA first but every time I read one of those things I'm reminded of a South Park episode about license agreements... On Fri, Jan 13, 2012 at 10:09 AM, Guglielmo Braguglia < guglielmo at braguglia.ch> wrote: > Just read the EULA : http://www.runrev.com/company/**livecode-license/... at the bottom of the page ;-) > > Guglielmo > > On 13.01.2012 18:51, Pete wrote: > >> ... omissis ... >> >> >> I am about to release my first commercial product written with Livecode >> and >> I'm wondering what the etiquette is, if any, regarding mentioning Livecode >> and RunRev in the About dialog, maybe something like "Built with Livecode >> from RunRev" plus a web address? >> >> >> > ______________________________**_________________ > use-livecode mailing list > use-livecode 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 pete at mollysrevenge.com Fri Jan 13 14:02:14 2012 From: pete at mollysrevenge.com (Pete) Date: Fri, 13 Jan 2012 11:02:14 -0800 Subject: Application Menu (again) and RunRev attribution In-Reply-To: <4F1077BB.2040603@hyperactivesw.com> References: <4F1077BB.2040603@hyperactivesw.com> Message-ID: Disappointed to hear that. I think I'll open a support ticket just to double check and enter an enhancement request if it proves to be true. Thanks, Pete On Fri, Jan 13, 2012 at 10:28 AM, J. Landman Gay wrote: > On 1/13/12 11:51 AM, Pete wrote: > >> Didn't see any responses to my recent post about how to get items other >> than Preferences on to the OS X Application menu >> > > There's no way I know of. The About item is moved there automatically by > the engine but I don't think there's a way to trick it into including > anything else. > > -- > 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 > > -- Pete Molly's Revenge From kray at sonsothunder.com Fri Jan 13 15:26:47 2012 From: kray at sonsothunder.com (Ken Ray) Date: Fri, 13 Jan 2012 14:26:47 -0600 Subject: SQL Date Formatting In-Reply-To: References: Message-ID: <5DBDB47C-9F15-4F9B-A0F6-71D7EA1BE517@sonsothunder.com> On 2012-01-13, at 11:46 AM, Pete wrote: > Thanks Kay and Ken for some great ideas and warnings on this whole date > issue. Ken, thanks for the date conversion script you sent me a few months > back, very useful. > > I saw a headline somewhere recently that there's a move afoot to start > using a new calendar! Apparently every month will have 28 days so there'll > be 13 of them and an extra day that's not part of any month at the end of > the year... or the beginning of the year... or in between the years? I'm just waiting for everyone to adopt the Metric Calendar: 100 seconds per minute 100 minutes per hour 10 hours per day 10 days per week 10 weeks per month 10 months per year :D Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From jhj at jhj.com Fri Jan 13 15:34:26 2012 From: jhj at jhj.com (Jerry Jensen) Date: Fri, 13 Jan 2012 12:34:26 -0800 Subject: SQL Date Formatting In-Reply-To: <5DBDB47C-9F15-4F9B-A0F6-71D7EA1BE517@sonsothunder.com> References: <5DBDB47C-9F15-4F9B-A0F6-71D7EA1BE517@sonsothunder.com> Message-ID: In the all-28 day months scheme, if months start on Sunday, every month would have a Friday the 13th. In the metric calendar, how many Friday the 13ths would there be? Would there even be Fridays? This year, there are 3 Friday the 13ths - in 13 weeks! I'm a-scared? Jerry Jensen On Jan 13, 2012, at 12:26 PM, Ken Ray wrote: > > On 2012-01-13, at 11:46 AM, Pete wrote: > >> Thanks Kay and Ken for some great ideas and warnings on this whole date >> issue. Ken, thanks for the date conversion script you sent me a few months >> back, very useful. >> >> I saw a headline somewhere recently that there's a move afoot to start >> using a new calendar! Apparently every month will have 28 days so there'll >> be 13 of them and an extra day that's not part of any month at the end of >> the year... or the beginning of the year... or in between the years? > > I'm just waiting for everyone to adopt the Metric Calendar: > > 100 seconds per minute > 100 minutes per hour > 10 hours per day > 10 days per week > 10 weeks per month > 10 months per year > > :D > > Ken Ray > Sons of Thunder Software, Inc. > Email: kray at sonsothunder.com > Web Site: http://www.sonsothunder.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 scott at tactilemedia.com Fri Jan 13 15:44:44 2012 From: scott at tactilemedia.com (Scott Rossi) Date: Fri, 13 Jan 2012 12:44:44 -0800 Subject: SQL Date Formatting In-Reply-To: Message-ID: None of this matters. http://www.greatdreams.com/end-world.htm :-) Regards, Scott Rossi Creative Director Tactile Media, UX Design Recently, Jerry Jensen wrote: > In the all-28 day months scheme, if months start on Sunday, every month would > have a Friday the 13th. > > In the metric calendar, how many Friday the 13ths would there be? Would there > even be Fridays? > > This year, there are 3 Friday the 13ths - in 13 weeks! > > I'm a-scared? > Jerry Jensen > > On Jan 13, 2012, at 12:26 PM, Ken Ray wrote: > >> >> On 2012-01-13, at 11:46 AM, Pete wrote: >> >>> Thanks Kay and Ken for some great ideas and warnings on this whole date >>> issue. Ken, thanks for the date conversion script you sent me a few months >>> back, very useful. >>> >>> I saw a headline somewhere recently that there's a move afoot to start >>> using a new calendar! Apparently every month will have 28 days so there'll >>> be 13 of them and an extra day that's not part of any month at the end of >>> the year... or the beginning of the year... or in between the years? >> >> I'm just waiting for everyone to adopt the Metric Calendar: >> >> 100 seconds per minute >> 100 minutes per hour >> 10 hours per day >> 10 days per week >> 10 weeks per month >> 10 months per year >> >> :D >> >> Ken Ray >> Sons of Thunder Software, Inc. >> Email: kray at sonsothunder.com >> Web Site: http://www.sonsothunder.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 Jan 13 15:48:11 2012 From: pete at mollysrevenge.com (Pete) Date: Fri, 13 Jan 2012 12:48:11 -0800 Subject: SQL Date Formatting In-Reply-To: <5DBDB47C-9F15-4F9B-A0F6-71D7EA1BE517@sonsothunder.com> References: <5DBDB47C-9F15-4F9B-A0F6-71D7EA1BE517@sonsothunder.com> Message-ID: I remember a calendar we had at work - two Saturdays, two Sundays (cause everyone loves weekends), no Mondays (cause everyone hates them), no Firdays (cause projects are always due on Fridays), Tuesday, Wednesday, Thursday were still there. Pete On Fri, Jan 13, 2012 at 12:26 PM, Ken Ray wrote: > > On 2012-01-13, at 11:46 AM, Pete wrote: > > > Thanks Kay and Ken for some great ideas and warnings on this whole date > > issue. Ken, thanks for the date conversion script you sent me a few > months > > back, very useful. > > > > I saw a headline somewhere recently that there's a move afoot to start > > using a new calendar! Apparently every month will have 28 days so > there'll > > be 13 of them and an extra day that's not part of any month at the end of > > the year... or the beginning of the year... or in between the years? > > I'm just waiting for everyone to adopt the Metric Calendar: > > 100 seconds per minute > 100 minutes per hour > 10 hours per day > 10 days per week > 10 weeks per month > 10 months per year > > :D > > Ken Ray > Sons of Thunder Software, Inc. > Email: kray at sonsothunder.com > Web Site: http://www.sonsothunder.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 > > -- Pete Molly's Revenge From stephenREVOLUTION2 at barncard.com Fri Jan 13 15:55:39 2012 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Fri, 13 Jan 2012 12:55:39 -0800 Subject: SQL Date Formatting In-Reply-To: References: Message-ID: VOLTAR WILL SAVE US - IGNORE ALIEN ORDERS On 13 January 2012 12:44, Scott Rossi wrote: > None of this matters. > > http://www.greatdreams.com/end-world.htm > > :-) > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX Design > > > > Stephen Barncard San Francisco Ca. USA more about sqb From alanira9 at mac.com Fri Jan 13 15:55:24 2012 From: alanira9 at mac.com (user) Date: Fri, 13 Jan 2012 15:55:24 -0500 Subject: Copy to Group problems Message-ID: <68A5B164-5F9D-42A2-BFDD-F3311978BC94@mac.com> Hi everyone, I have a script intended to add, name and position a label and field group (which I refer to as a "doublet) into a group that already has a number of such doublet groups. Here's the script: on addFldDoublet theGroup put the number of grps in grp theGroup into lastDoublet put the short name of grp lastDoublet of grp theGroup into lastName put the left of grp lastName into newLeft put (the bottom of grp lastName +2) into newTop put lastName into nextName set itemDelimiter to "_" add 10 to last item of nextName set itemDelimiter to "," copy grp lastName to grp theGroup set the name of the last grp to nextName answer the short name of the last grp -- confirms the correct name put the short name of the last grp into newGrp answer newGrp -- confirms the correct name set the left of grp newGrp to newLeft set the top of grp newGrp to newTop end addFldDoublet FYI - assume the name of grp lastDoublet is "DB_Doublet_160" Group newGrp is supposed to be "DB_Doublet_170" and this appears to be confirmed by the two "answer" commands I've inserted in the script to verify. But after the script runs, it turns out that the new group is also named "DB_Doublet_160" instead of "DB_Doublet_170" (which does not seem to exist, even though the second "answer" test shows that it did ), and the new group is positioned right on top of the old group, and not offset to to newTop as desired (2 pixels below the bottom of the old group. Anybody have any idea as to what is causing this script to not work as intended? Thanks in advance for your help in this matter. Kind regards, ALAN GAYNE From jhj at jhj.com Fri Jan 13 16:04:21 2012 From: jhj at jhj.com (Jerry Jensen) Date: Fri, 13 Jan 2012 13:04:21 -0800 Subject: SQL Date Formatting In-Reply-To: References: Message-ID: <230BDC6C-E185-41BC-9A61-CC2C1F01072F@jhj.com> Assuming AMPAR and OHMAR multiply successfully. On Jan 13, 2012, at 12:55 PM, stephen barncard wrote: > VOLTAR WILL SAVE US - IGNORE ALIEN ORDERS > > On 13 January 2012 12:44, Scott Rossi wrote: > >> None of this matters. >> >> http://www.greatdreams.com/end-world.htm >> >> :-) >> >> Regards, >> >> Scott Rossi >> Creative Director >> Tactile Media, UX Design >> >> >> >> > 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 scott at tactilemedia.com Fri Jan 13 16:04:54 2012 From: scott at tactilemedia.com (Scott Rossi) Date: Fri, 13 Jan 2012 13:04:54 -0800 Subject: SQL Date Formatting In-Reply-To: Message-ID: Apparently you didn't get the memo. Voltar blew us off. He's on vacation in Circinus We're on our own. Scott Rossi Creative Director Tactile Media, UX Design Recently, stephen barncard wrote: > VOLTAR WILL SAVE US - IGNORE ALIEN ORDERS > > On 13 January 2012 12:44, Scott Rossi wrote: > >> None of this matters. >> >> http://www.greatdreams.com/end-world.htm >> >> :-) >> >> Regards, >> >> Scott Rossi >> Creative Director >> Tactile Media, UX Design >> >> >> >> > Stephen Barncard > San Francisco Ca. USA From jacque at hyperactivesw.com Fri Jan 13 16:26:57 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 13 Jan 2012 15:26:57 -0600 Subject: SQL Date Formatting In-Reply-To: <5DBDB47C-9F15-4F9B-A0F6-71D7EA1BE517@sonsothunder.com> References: <5DBDB47C-9F15-4F9B-A0F6-71D7EA1BE517@sonsothunder.com> Message-ID: <4F10A1A1.5010809@hyperactivesw.com> On 1/13/12 2:26 PM, Ken Ray wrote: > I'm just waiting for everyone to adopt the Metric Calendar: > > 100 seconds per minute > 100 minutes per hour > 10 hours per day > 10 days per week > 10 weeks per month > 10 months per year Yes! More hours in a day! Been asking for that for years. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Fri Jan 13 16:36:16 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 13 Jan 2012 15:36:16 -0600 Subject: Copy to Group problems In-Reply-To: <68A5B164-5F9D-42A2-BFDD-F3311978BC94@mac.com> References: <68A5B164-5F9D-42A2-BFDD-F3311978BC94@mac.com> Message-ID: <4F10A3D0.9090902@hyperactivesw.com> On 1/13/12 2:55 PM, user wrote: > > on addFldDoublet theGroup > put the number of grps in grp theGroup into lastDoublet > put the short name of grp lastDoublet of grp theGroup into lastName > put the left of grp lastName into newLeft > put (the bottom of grp lastName +2) into newTop > put lastName into nextName > set itemDelimiter to "_" > add 10 to last item of nextName > set itemDelimiter to "," > copy grp lastName to grp theGroup > set the name of the last grp to nextName > answer the short name of the last grp -- confirms the correct name > put the short name of the last grp into newGrp > answer newGrp -- confirms the correct name > set the left of grp newGrp to newLeft > set the top of grp newGrp to newTop > end addFldDoublet > > FYI - assume the name of grp lastDoublet is "DB_Doublet_160" > > Group newGrp is supposed to be "DB_Doublet_170" and this appears to > be confirmed by the two "answer" commands I've inserted in the script > to verify. > > But after the script runs, it turns out that the new group is also > named "DB_Doublet_160" instead of "DB_Doublet_170" (which does not > seem to exist, even though the second "answer" test shows that it did > ), and the new group is positioned right on top of the old group, and > not offset to to newTop as desired (2 pixels below the bottom of the > old group. It should work. Are you seeing the label of the new group instead of its actual name? (Not the field label object, but label property of the group itself.) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ken at kencorey.com Fri Jan 13 16:38:05 2012 From: ken at kencorey.com (Ken Corey) Date: Fri, 13 Jan 2012 21:38:05 +0000 Subject: SQL Date Formatting In-Reply-To: <5DBDB47C-9F15-4F9B-A0F6-71D7EA1BE517@sonsothunder.com> References: <5DBDB47C-9F15-4F9B-A0F6-71D7EA1BE517@sonsothunder.com> Message-ID: <4F10A43D.8050605@kencorey.com> Great Scott! I used to think an hour of English class was a long time before! 3600 seconds vs 10000. Yikes. Our kids would hate us. -Ken On 13/01/2012 20:26, Ken Ray wrote: > I'm just waiting for everyone to adopt the Metric Calendar: > > 100 seconds per minute > 100 minutes per hour > 10 hours per day > 10 days per week > 10 weeks per month > 10 months per year From jacque at hyperactivesw.com Fri Jan 13 16:40:18 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 13 Jan 2012 15:40:18 -0600 Subject: Menu Builder In-Reply-To: References: <4F0E5ED6.50703@hyperactivesw.com> <20A65092-BDBF-44D2-ADB0-2855D443828F@cox.net> <4F0E6A39.2080601@hyperactivesw.com> <062D6689-7225-40E3-A1D7-BFCD867CFC28@gmail.com> <4F0F2386.4090103@hyperactivesw.com> <4F0F37D5.8020404@hyperactivesw.com> Message-ID: <4F10A4C2.3010903@hyperactivesw.com> On 1/13/12 12:19 AM, Pete wrote: > Hi Jacque, > Wanted to let you know that the issue of mouseDwon having to be at the > group level is documented in the USer Guide so you remembered correctly! > > I also discovered today that 5.0.2 handles the moving of controls for > system menu purposes differently than 4.6.4. Just upgraded to 5.0.2 and > the first time I opened my stack, it was slightly higher than with 4.6.4. > I tried it again in 4.6.4 and it opened slightly less high than it should > have been! It's good to know I'm not completely senile yet. There was an ancient bug in the engine for something like 12 years where the stack did not resize properly on Mac standalones. It finally got fixed recently. That's probably the difference you're seeing. In LiveCode earlier than 5.x the stack would cut off the bottom instead of resizing, it would make you crazy and required strange workarounds. You should build with 5.0+ where it's fixed. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobs at twft.com Fri Jan 13 16:46:41 2012 From: bobs at twft.com (Bob Sneidar) Date: Fri, 13 Jan 2012 13:46:41 -0800 Subject: SQL Date Formatting In-Reply-To: <5DBDB47C-9F15-4F9B-A0F6-71D7EA1BE517@sonsothunder.com> References: <5DBDB47C-9F15-4F9B-A0F6-71D7EA1BE517@sonsothunder.com> Message-ID: <47468500-7A94-431E-9DE1-6D84C8E4F3CF@twft.com> So, could you then say that an analog metric clock had too much time on it's hands? Bob On Jan 13, 2012, at 12:26 PM, Ken Ray wrote: > I'm just waiting for everyone to adopt the Metric Calendar: > > 100 seconds per minute > 100 minutes per hour > 10 hours per day > 10 days per week > 10 weeks per month > 10 months per year > > :D > > Ken Ray > Sons of Thunder Software, Inc. > Email: kray at sonsothunder.com > Web Site: http://www.sonsothunder.com/ From pete at mollysrevenge.com Fri Jan 13 16:47:51 2012 From: pete at mollysrevenge.com (Pete) Date: Fri, 13 Jan 2012 13:47:51 -0800 Subject: Copy to Group problems In-Reply-To: <68A5B164-5F9D-42A2-BFDD-F3311978BC94@mac.com> References: <68A5B164-5F9D-42A2-BFDD-F3311978BC94@mac.com> Message-ID: Not sure if you'll classify this as "help" but I've had problems in the past referring to "the last group" not returning what I considered to be the last group, although I can't explain what you see in your answer commands. The dictionary doesn't mention if the copy command returns the id of the copied control in the it variable - if it does, you could use that to refer to the newly copied group. I believe I ended up using the create command instead of copy, which does return the id in the it variable, and then making all my adjustments by referring to it. Good luck! On Fri, Jan 13, 2012 at 12:55 PM, user wrote: > Hi everyone, > > I have a script intended to add, name and position a label and field group > (which I refer to as a "doublet) into a group that already has a number of > such doublet groups. > > Here's the script: > > on addFldDoublet theGroup > put the number of grps in grp theGroup into lastDoublet > put the short name of grp lastDoublet of grp theGroup into lastName > put the left of grp lastName into newLeft > put (the bottom of grp lastName +2) into newTop > put lastName into nextName > set itemDelimiter to "_" > add 10 to last item of nextName > set itemDelimiter to "," > copy grp lastName to grp theGroup > set the name of the last grp to nextName > answer the short name of the last grp -- confirms the correct name > put the short name of the last grp into newGrp > answer newGrp -- confirms the correct name > set the left of grp newGrp to newLeft > set the top of grp newGrp to newTop > end addFldDoublet > > FYI - assume the name of grp lastDoublet is "DB_Doublet_160" > > Group newGrp is supposed to be "DB_Doublet_170" and this appears to be > confirmed by the two "answer" commands I've inserted in the script to > verify. > > But after the script runs, it turns out that the new group is also named > "DB_Doublet_160" instead of "DB_Doublet_170" (which does not seem to exist, > even though the second "answer" test shows that it did ), and the new group > is positioned right on top of the old group, and not offset to to newTop as > desired (2 pixels below the bottom of the old group. > > Anybody have any idea as to what is causing this script to not work as > intended? > > Thanks in advance for your help in this matter. > > Kind regards, > ALAN GAYNE > > _______________________________________________ > use-livecode mailing list > use-livecode 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 bobs at twft.com Fri Jan 13 17:47:47 2012 From: bobs at twft.com (Bob Sneidar) Date: Fri, 13 Jan 2012 14:47:47 -0800 Subject: Copy to Group problems In-Reply-To: References: <68A5B164-5F9D-42A2-BFDD-F3311978BC94@mac.com> Message-ID: Another possibility is to make sure none of your groups have "group" as a part of the short name (they do by default) and then check to see if any new group you *think* you have created is actually the one you want by making sure it's short name begins with the word "group". If not, loop through all the groups on a card until you find the new group. It's convoluted, but that should ensure that what you think you see is what you end up with. Bob On Jan 13, 2012, at 1:47 PM, Pete wrote: > Not sure if you'll classify this as "help" but I've had problems in the > past referring to "the last group" not returning what I considered to be > the last group, although I can't explain what you see in your answer > commands. > > The dictionary doesn't mention if the copy command returns the id of the > copied control in the it variable - if it does, you could use that to refer > to the newly copied group. > > I believe I ended up using the create command instead of copy, which does > return the id in the it variable, and then making all my adjustments by > referring to it. > > Good luck! > > On Fri, Jan 13, 2012 at 12:55 PM, user wrote: > >> Hi everyone, >> >> I have a script intended to add, name and position a label and field group >> (which I refer to as a "doublet) into a group that already has a number of >> such doublet groups. >> >> Here's the script: >> >> on addFldDoublet theGroup >> put the number of grps in grp theGroup into lastDoublet >> put the short name of grp lastDoublet of grp theGroup into lastName >> put the left of grp lastName into newLeft >> put (the bottom of grp lastName +2) into newTop >> put lastName into nextName >> set itemDelimiter to "_" >> add 10 to last item of nextName >> set itemDelimiter to "," >> copy grp lastName to grp theGroup >> set the name of the last grp to nextName >> answer the short name of the last grp -- confirms the correct name >> put the short name of the last grp into newGrp >> answer newGrp -- confirms the correct name >> set the left of grp newGrp to newLeft >> set the top of grp newGrp to newTop >> end addFldDoublet >> >> FYI - assume the name of grp lastDoublet is "DB_Doublet_160" >> >> Group newGrp is supposed to be "DB_Doublet_170" and this appears to be >> confirmed by the two "answer" commands I've inserted in the script to >> verify. >> >> But after the script runs, it turns out that the new group is also named >> "DB_Doublet_160" instead of "DB_Doublet_170" (which does not seem to exist, >> even though the second "answer" test shows that it did ), and the new group >> is positioned right on top of the old group, and not offset to to newTop as >> desired (2 pixels below the bottom of the old group. >> >> Anybody have any idea as to what is causing this script to not work as >> intended? >> >> Thanks in advance for your help in this matter. >> >> Kind regards, >> ALAN GAYNE >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 capellan2000 at gmail.com Fri Jan 13 19:46:27 2012 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Fri, 13 Jan 2012 16:46:27 -0800 (PST) Subject: Perishable Press In-Reply-To: <4499E89A-F74C-4491-82D9-253469111E75@sahores-conseil.com> References: <4499E89A-F74C-4491-82D9-253469111E75@sahores-conseil.com> Message-ID: <1326501987010-4293849.post@n4.nabble.com> "use wisely, test thoroughly, don?t sue me" Really Funny! :-D -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Re-Perishable-Press-tp4291413p4293849.html Sent from the Revolution - User mailing list archive at Nabble.com. From capellan2000 at gmail.com Fri Jan 13 20:08:26 2012 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Fri, 13 Jan 2012 17:08:26 -0800 (PST) Subject: Crop Command In-Reply-To: References: Message-ID: <1326503306341-4293898.post@n4.nabble.com> I do not use the mobile edition of Livecode, but a project for a desktop application required a small part of a picture, and instead of using crop, I end using a screenshot of the picture area. Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Crop-Command-tp4289565p4293898.html Sent from the Revolution - User mailing list archive at Nabble.com. From capellan2000 at gmail.com Fri Jan 13 20:16:54 2012 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Fri, 13 Jan 2012 17:16:54 -0800 (PST) Subject: [ANN] Alpha Twitter Support In-Reply-To: References: Message-ID: <1326503814655-4293913.post@n4.nabble.com> This looks amazing! :-D Congratulations Andre! If I was not so iliterate in web technology, I will be jumping on this. Still today, I have not learned to debug web applications and at the first error I am left out in the cold... How sad. Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-Alpha-Twitter-Support-tp4287582p4293913.html Sent from the Revolution - User mailing list archive at Nabble.com. From capellan2000 at gmail.com Fri Jan 13 20:17:51 2012 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Fri, 13 Jan 2012 17:17:51 -0800 (PST) Subject: [ANN] Alpha Twitter Support In-Reply-To: References: Message-ID: <1326503871847-4293915.post@n4.nabble.com> This looks amazing! :-D Congratulations Andre! If I was not so iliterate in web technology, I will be jumping on this. Still today, I have not learned to debug web applications and at the first error I am left out in the cold... How sad. Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-Alpha-Twitter-Support-tp4287582p4293915.html Sent from the Revolution - User mailing list archive at Nabble.com. From capellan2000 at gmail.com Fri Jan 13 20:20:29 2012 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Fri, 13 Jan 2012 17:20:29 -0800 (PST) Subject: FaceBook lesson and images In-Reply-To: <0053AB2F-69F1-45A7-9467-FB275A04B685@comcast.net> References: <0053AB2F-69F1-45A7-9467-FB275A04B685@comcast.net> Message-ID: <1326504029008-4293921.post@n4.nabble.com> Hi Thomas, Thomas McGrath III-2 wrote > > Has anyone taken the FB lesson on run rev any further. I am not up on > using the data grid with images and would love to inspect how that is > accomplished. > Could you post a link to this lesson? Thanks in advance! Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/FaceBook-lesson-and-images-tp4291357p4293921.html Sent from the Revolution - User mailing list archive at Nabble.com. From capellan2000 at gmail.com Fri Jan 13 20:26:08 2012 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Fri, 13 Jan 2012 17:26:08 -0800 (PST) Subject: [OT] Going bananas with "The Desktop Experience" In-Reply-To: <4F0DF791.4040501@gmail.com> References: <4F0DF791.4040501@gmail.com> Message-ID: <1326504368173-4293933.post@n4.nabble.com> Richmond, you always surprise us with your expresive and unexpected use of the language :-) http://www.urbandictionary.com/define.php?term=punter -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/OT-Going-bananas-with-The-Desktop-Experience-tp4286860p4293933.html Sent from the Revolution - User mailing list archive at Nabble.com. From pete at mollysrevenge.com Fri Jan 13 21:14:51 2012 From: pete at mollysrevenge.com (Pete) Date: Fri, 13 Jan 2012 18:14:51 -0800 Subject: Reading a standalone's info.plist file Message-ID: In a recent post, I discovered that many of the setting defined when building an OS X standalone are in the info.plist file within the application's Contents folder. Fortunately, the plist file is a text file not one of the more recent compiled ones so I've written a handler to get hold of the info because I want to use it to display in my app's About dialog. Right now, the path to the info.plist file is hard coded for testing purposes but when the standalone is running, how can I get hold of it's file path so I can get to the info.plist file? -- Pete Molly's Revenge From mark_powell at symantec.com Fri Jan 13 21:26:22 2012 From: mark_powell at symantec.com (Mark Powell) Date: Fri, 13 Jan 2012 18:26:22 -0800 Subject: VB Script Outlook, .display works but .send doesn't Message-ID: <3469AF22E7D82A46A12B6612437B8DF502A014F72F@TUS1XCHEVSPIN38.SYMC.SYMANTEC.COM> I have a LC stack that calls a VB Script to send email notifications via Outlook. I give the ability to send the mail blind (without proofing), and just opening the email for proofing, in which case the user must press the Send button in Outlook. I wrote this about two years ago leveraging from Ken Ray's excellent handlers, and it has performed flawlessly till yesterday. Now it works okay in non-blind mode (creating and displaying the mail), but not in blind mode (automatic send). I get this error: C:\Documents and Settings\..\My Documents\libVBS_temp.vbs(15,5) Microsoft Outlook: Outlook does not recognize one or more names The sole difference between the two handlers is that .send is replaced by .display at the end of the VB. My guess is that my IT has changed something on their corporate image that is preventing blind mail being sent like this. Anyone have any experience with this? Thanks in advance Mark From mwieder at ahsoftware.net Fri Jan 13 21:54:44 2012 From: mwieder at ahsoftware.net (Mark Wieder) Date: Fri, 13 Jan 2012 18:54:44 -0800 Subject: SQL Date Formatting In-Reply-To: <230BDC6C-E185-41BC-9A61-CC2C1F01072F@jhj.com> References: <230BDC6C-E185-41BC-9A61-CC2C1F01072F@jhj.com> Message-ID: <74123309250.20120113185444@ahsoftware.net> Jerry- Friday, January 13, 2012, 1:04:21 PM, you wrote: > Assuming AMPAR and OHMAR multiply successfully. -- -Mark Wieder mwieder at ahsoftware.net From mcgrath3 at mac.com Fri Jan 13 22:20:20 2012 From: mcgrath3 at mac.com (Thomas McGrath III) Date: Fri, 13 Jan 2012 22:20:20 -0500 Subject: FaceBook lesson and images In-Reply-To: <1326504029008-4293921.post@n4.nabble.com> References: <0053AB2F-69F1-45A7-9467-FB275A04B685@comcast.net> <1326504029008-4293921.post@n4.nabble.com> Message-ID: <0664F7DA-C722-457E-A771-95CF46350A1E@mac.com> Here ya go: http://lessons.runrev.com/s/lessons/m/4069/l/48805-accessing-facebook-api-s-using-livecode -- Tom McGrath III http://lazyriver.on-rev.com 3mcgrath at comcast.net On Jan 13, 2012, at 8:20 PM, Alejandro Tejada wrote: > Hi Thomas, > > > Thomas McGrath III-2 wrote >> >> Has anyone taken the FB lesson on run rev any further. I am not up on >> using the data grid with images and would love to inspect how that is >> accomplished. >> > > Could you post a link to this lesson? > > Thanks in advance! > > Al > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/FaceBook-lesson-and-images-tp4291357p4293921.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 kray at sonsothunder.com Fri Jan 13 22:33:10 2012 From: kray at sonsothunder.com (Ken Ray) Date: Fri, 13 Jan 2012 21:33:10 -0600 Subject: VB Script Outlook, .display works but .send doesn't In-Reply-To: <3469AF22E7D82A46A12B6612437B8DF502A014F72F@TUS1XCHEVSPIN38.SYMC.SYMANTEC.COM> References: <3469AF22E7D82A46A12B6612437B8DF502A014F72F@TUS1XCHEVSPIN38.SYMC.SYMANTEC.COM> Message-ID: <0A9CE298-496C-46DA-B34B-1C99F01FAEFB@sonsothunder.com> On Jan 13, 2012, at 8:26 PM, Mark Powell wrote: > I have a LC stack that calls a VB Script to send email notifications via Outlook. I give the ability to send the mail blind (without proofing), and just opening the email for proofing, in which case the user must press the Send button in Outlook. > > I wrote this about two years ago leveraging from Ken Ray's excellent handlers, and it has performed flawlessly till yesterday. Now it works okay in non-blind mode (creating and displaying the mail), but not in blind mode (automatic send). I get this error: > > C:\Documents and Settings\..\My Documents\libVBS_temp.vbs(15,5) Microsoft Outlook: > Outlook does not recognize one or more names > > The sole difference between the two handlers is that .send is replaced by .display at the end of the VB. > > My guess is that my IT has changed something on their corporate image that is preventing blind mail being sent like this. > > Anyone have any experience with this? I just looked this up, and the suggestion is to add "=" before the Response.To in your code. Here's the relevant URL: http://www.outlookcode.com/threads.aspx?forumid=2&messageid=29591 and thanks for the kudos! :D Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From kray at sonsothunder.com Fri Jan 13 22:33:10 2012 From: kray at sonsothunder.com (Ken Ray) Date: Fri, 13 Jan 2012 21:33:10 -0600 Subject: VB Script Outlook, .display works but .send doesn't In-Reply-To: <3469AF22E7D82A46A12B6612437B8DF502A014F72F@TUS1XCHEVSPIN38.SYMC.SYMANTEC.COM> References: <3469AF22E7D82A46A12B6612437B8DF502A014F72F@TUS1XCHEVSPIN38.SYMC.SYMANTEC.COM> Message-ID: <0A9CE298-496C-46DA-B34B-1C99F01FAEFB@sonsothunder.com> On Jan 13, 2012, at 8:26 PM, Mark Powell wrote: > I have a LC stack that calls a VB Script to send email notifications via Outlook. I give the ability to send the mail blind (without proofing), and just opening the email for proofing, in which case the user must press the Send button in Outlook. > > I wrote this about two years ago leveraging from Ken Ray's excellent handlers, and it has performed flawlessly till yesterday. Now it works okay in non-blind mode (creating and displaying the mail), but not in blind mode (automatic send). I get this error: > > C:\Documents and Settings\..\My Documents\libVBS_temp.vbs(15,5) Microsoft Outlook: > Outlook does not recognize one or more names > > The sole difference between the two handlers is that .send is replaced by .display at the end of the VB. > > My guess is that my IT has changed something on their corporate image that is preventing blind mail being sent like this. > > Anyone have any experience with this? I just looked this up, and the suggestion is to add "=" before the Response.To in your code. Here's the relevant URL: http://www.outlookcode.com/threads.aspx?forumid=2&messageid=29591 and thanks for the kudos! :D Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From alanira9 at mac.com Sat Jan 14 00:15:43 2012 From: alanira9 at mac.com (user) Date: Sat, 14 Jan 2012 00:15:43 -0500 Subject: Copy to Group problems Message-ID: Hi everyone, I have a script intended to add, name and position a label and field group (which I refer to as a "doublet) into a group that already has a number of such doublet groups. Here's the script: on addFldDoublet theGroup put the number of grps in grp theGroup into lastDoublet put the short name of grp lastDoublet of grp theGroup into lastName put the left of grp lastName into newLeft put (the bottom of grp lastName +2) into newTop put lastName into nextName set itemDelimiter to "_" add 10 to last item of nextName set itemDelimiter to "," copy grp lastName to grp theGroup set the name of the last grp to nextName answer the short name of the last grp -- confirms the correct name put the short name of the last grp into newGrp answer newGrp -- confirms the correct name set the left of grp newGrp to newLeft set the top of grp newGrp to newTop end addFldDoublet FYI - assume the name of grp lastDoublet is "DB_Doublet_160" Group newGrp is supposed to be "DB_Doublet_170" and this appears to be confirmed by the two "answer" commands I've inserted in the script to verify. But after the script runs, it turns out that the new group is also named "DB_Doublet_160" instead of "DB_Doublet_170" (which does not seem to exist, even though the second "answer" test shows that it did ), and the new group is positioned right on top of the old group, and not offset to to newTop as desired (2 pixels below the bottom of the old group. Anybody have any idea as to what is causing this script to not work as intended? Thanks in advance for your help in this matter. Kind regards, ALAN GAYNE From bvlahos at mac.com Sat Jan 14 00:26:37 2012 From: bvlahos at mac.com (Bill Vlahos) Date: Fri, 13 Jan 2012 21:26:37 -0800 Subject: ANN: I'll be on The Tech Night Owl Tomorrow Message-ID: <1C50724F-5C81-4D67-8E1C-6C9D5B3523C5@mac.com> Shameless plug. I'll be on Gene Steinberg's The Tech Night Owl (http://www.technightowl.com/) broadcast Saturday, January 14, 2012 talking about InfoWallet. During the interview he asked about how it works for multiple platforms and I was able to talk about LiveCode. Here is information about the show for those who might not be familiar. January 14, 2012: Meet the Night Owl himself, the incomparable Gene Steinberg, best-selling technology author and columnist. Get to know Gene, and discover his unique, thought-provoking viewpoints about the technology universe, from the always-fascinating happenings at Apple Inc. to consumer electronics, innovative products and overall trends in the tech industry. Each week, Gene speaks directly to the industry's movers and shakers, including corporate leaders, industry analysts, and discussion panels that feature the most respected tech journalists. On this week's all-star episode, veteran Mac author and troubleshooting expert Ted Landau discusses the prospects for an Apple integrated TV, and also details many of the problems with the first release of Apple's iCloud. Direct from the Consumer Electronics Show in Las Vegas, Avram Piltch, Online Editorial Director of Laptop magazine, discusses some of the hits and misses at the trade show. Bill Vlahos, creator of InfoWallet, discusses how his cross-platform "file cabinet" application can be used to easily organize, store, and access your most private information in one very secure location. You can also access our show's Podcast feed, now available at: http://www.technightowl.com/nightowl.xml Bill Vlahos _________________ InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. From jacque at hyperactivesw.com Sat Jan 14 01:11:30 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 14 Jan 2012 00:11:30 -0600 Subject: Reading a standalone's info.plist file In-Reply-To: References: Message-ID: <4F111C92.5000100@hyperactivesw.com> On 1/13/12 8:14 PM, Pete wrote: > Right now, the path to the info.plist file is hard coded for testing > purposes but when the standalone is running, how can I get hold of it's > file path so I can get to the info.plist file? For a desktop app, you could build a path relative to the mainstack. The plist would be one level up. Set the itemDelimiter to slash, get the filename of the mainstack, chop off the last two items, and put "info.plist" after that. But I don't know anyone who handles it that way. Generally the version info is just saved to the stack as a custom property where it can be read directly. Is there something in particular that you have to get from the plist file? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From richmondmathewson at gmail.com Sat Jan 14 02:40:56 2012 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 14 Jan 2012 09:40:56 +0200 Subject: [OT] Going bananas with "The Desktop Experience" In-Reply-To: <1326504368173-4293933.post@n4.nabble.com> References: <4F0DF791.4040501@gmail.com> <1326504368173-4293933.post@n4.nabble.com> Message-ID: <4F113188.6080209@gmail.com> On 01/14/2012 03:26 AM, Alejandro Tejada wrote: > Richmond, you always surprise us with > your expresive and unexpected use of > the language :-) > > http://www.urbandictionary.com/define.php?term=punter > In this context, definition number 2. > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/OT-Going-bananas-with-The-Desktop-Experience-tp4286860p4293933.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 ken at kencorey.com Sat Jan 14 04:26:55 2012 From: ken at kencorey.com (Ken Corey) Date: Sat, 14 Jan 2012 09:26:55 +0000 Subject: [OT] Going bananas with "The Desktop Experience" In-Reply-To: <4F0DF791.4040501@gmail.com> References: <4F0DF791.4040501@gmail.com> Message-ID: <4F114A5F.10309@kencorey.com> Are there many punters for LiveCode in Linux? Serious question. I've not tried to sell into that market, so I have no idea other than what I see in the press, but are Linux sales significant? I guess, since LiveCode makes it super easy to approach Linux users, why not? -Ken On 11/01/2012 20:56, Richmond wrote: > After the debacle of Ubuntu and its Unity desktop, the equally hot > huffing and puffing about GNOME 3, > and so on, I see that quite a few Linux people are jumping on the > desktop environment bandwagon: > [...] > I suppose, that sooner or later, our "friends" over at Redmond and the > Apple Campus will decide to jump > aboard too............... > > How, if at all, will this impact on how we deliver Livecode standalones > to the punters? From lan.kc.macmail at gmail.com Sat Jan 14 06:09:53 2012 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Sat, 14 Jan 2012 19:09:53 +0800 Subject: SQL Date Formatting In-Reply-To: References: Message-ID: On Sat, Jan 14, 2012 at 1:07 AM, Ken Ray wrote: > > Just a little 'gotcha' here - I've been doing A LOT with dates and times > recently, and discovered that you either need to make sure the > 'useSystemDate' is set to true in your code, OR make sure to add the > "system" keyword in any format conversion, otherwise it assumes > US-formatted dates (this is documented in Bug #9893 in Bugzilla). Here's an > example: > > Ken, nice catch, and I see looking into a bunch of my date/time manipulation functions that the very first line is: set the userSystemDate to true Obviously a long time back I read this Dictionary entry: Use the useSystemDate property to correctly format dates and times that > will be viewed by the user (for example, dates and times that are displayed > in a field). > and took it's advise and left LC to do all the conversion because I spend a lot of time displaying and retrieving date/time :-) I read Bug #9893 and agree with Ian's comment that this is not a bug, and appreciate, with understanding I didn't have before, that this is a 'feature' that can be exploited depending on what you are doing. If you are NOT displaying dates/times to a user*, then there is no need to set the userSystemDate, and regardless of OS, country or custom settings, internally LC will always use the US format. This WILL save code because now I know I don't need to worry about converting just to be sure which numbers are months, days and is it 12 or 24hr time. On the other hand, if I'm going to display the date/time or allow users to input them*, then ensuring the userSystemDate is set to true in every handler that deals with date/time, will allow LC to do it's thing and display date/time as the User expects to see them. * Working with the OS file system creation/modified/opened date/time would need the userSystemDate to be set to true. Thanks for the insight. From jrvalent at wisc.edu Sat Jan 14 09:07:01 2012 From: jrvalent at wisc.edu (Randolph Valentine) Date: Sat, 14 Jan 2012 08:07:01 -0600 Subject: Drag and drop filetype Message-ID: Hi, all. I've got a very basic question. After a file is drag-and-dropped, how can I determine WHAT the dropped item is referring to, e.g., a FOLDER or a FILE, and if a file, RELIABLY, what KIND of file (e.g., a doc or a wav)? There are a few old notes discussing this on the listserv, but since Livecode is constantly improving, I'm wondering where this stands now. I want to have a single application, by the way, that will run on EITHER Mac OSX or Windows XP-to-7. Thanks. rand From richmondmathewson at gmail.com Sat Jan 14 09:48:14 2012 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 14 Jan 2012 16:48:14 +0200 Subject: [OT] Going bananas with "The Desktop Experience" In-Reply-To: <4F114A5F.10309@kencorey.com> References: <4F0DF791.4040501@gmail.com> <4F114A5F.10309@kencorey.com> Message-ID: <4F1195AE.2070308@gmail.com> On 01/14/2012 11:26 AM, Ken Corey wrote: > Are there many punters for LiveCode in Linux? > > Serious question. I've not tried to sell into that market, so I have > no idea other than what I see in the press, but are Linux sales > significant? Linux sales area funny question, remember: 0. Linux and the word "sales" don't really sit all that happily together as (most) Linux distros and their developers work on an entirely different economic model: Free software, and paying for ancilliary services. 1. Most software for Linux is Open Source (i.e. Free). 2. I think that to break into a Linux market you have to develop an application that is unique (i.e. does not do what an open source application does already). 3. Because of #1 a large number of Linux users are reluctant to pay for software. 4. Linux usage is growing; whether it will ever overtake Microsoft Windows usage I don't know, but I think, in the foreseeable future, that is unlikely unless Microsoft make a really big co**-up. 5. Linux usage is gorwing most in areas where people do not have much by the way of\disposable income. > > I guess, since LiveCode makes it super easy Well, I'm not entirely sure about that. The Linux version (and, presumably, Linux standalones built on other platforms) lags behind the Mac and Windows versions. I am experiencing that with the way it scr*ws up badly with Unicode text in text boxes. > to approach Linux users, why not? > > -Ken > I certainly would not suddenly start going "all out" for a Linux market; what I would do (but am unable to do right now - see above) is offer finished software to run on Linux as well as Mac and MSW. Richmond. From mcgrath3 at mac.com Sat Jan 14 10:11:22 2012 From: mcgrath3 at mac.com (Thomas McGrath III) Date: Sat, 14 Jan 2012 10:11:22 -0500 Subject: Copy to Group problems In-Reply-To: References: Message-ID: Alan, nextName is not just a number, but text and a number and you are trying to do math on an item of it, so I don't think you can just add a number to it. Try: set itemDelimiter to "_" put last item of nextName into tLastNumber add 10 to tLastNumber put tLastNumber into last item of nextName in place of the line -- add 10 to last item of nextName Hope that helps -- Tom McGrath III http://lazyriver.on-rev.com 3mcgrath at comcast.net On Jan 14, 2012, at 12:15 AM, user wrote: > Hi everyone, > > I have a script intended to add, name and position a label and field group (which I refer to as a "doublet) into a group that already has a number of such doublet groups. > > Here's the script: > > on addFldDoublet theGroup > put the number of grps in grp theGroup into lastDoublet > put the short name of grp lastDoublet of grp theGroup into lastName > put the left of grp lastName into newLeft > put (the bottom of grp lastName +2) into newTop > put lastName into nextName > set itemDelimiter to "_" > add 10 to last item of nextName > set itemDelimiter to "," > copy grp lastName to grp theGroup > set the name of the last grp to nextName > answer the short name of the last grp -- confirms the correct name > put the short name of the last grp into newGrp > answer newGrp -- confirms the correct name > set the left of grp newGrp to newLeft > set the top of grp newGrp to newTop > end addFldDoublet > > FYI - assume the name of grp lastDoublet is "DB_Doublet_160" > > Group newGrp is supposed to be "DB_Doublet_170" and this appears to be confirmed by the two "answer" commands I've inserted in the script to verify. > > But after the script runs, it turns out that the new group is also named "DB_Doublet_160" instead of "DB_Doublet_170" (which does not seem to exist, even though the second "answer" test shows that it did ), and the new group is positioned right on top of the old group, and not offset to to newTop as desired (2 pixels below the bottom of the old group. > > Anybody have any idea as to what is causing this script to not work as intended? > > Thanks in advance for your help in this matter. > > Kind regards, > ALAN GAYNE > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jan 14 11:47:23 2012 From: mcgrath3 at mac.com (Thomas McGrath III) Date: Sat, 14 Jan 2012 11:47:23 -0500 Subject: Compass Lesson not working Message-ID: Dear Listers, There is a lesson at run rev for the Compass features on iOS, but I can't get the heading part to work. I down loaded the stack from revOnline and added my provisioning profile and then run it as is on my iPhone 4 (not 4S) with iOS 5.0.1 -- The location works just fine but the heading does not return any data. When I tap at "Test for Heading Support" I get a correct answer. But no heading information is returned after tapping "Start Heading?" or "Get Heading?" Lesson: http://lessons.runrev.com/s/lessons/m/4069/l/30379-how-do-i-get-the-location-and-use-the-digital-compass-in-ios Stack: http://revonline2.runrev.com/stack/599/Compass Can anyone else confirm this? I built my own stack as well and use the headingChanged and headingError at the card level and still can not get any data back. Thanks -- Tom McGrath III http://lazyriver.on-rev.com 3mcgrath at comcast.net From pete at mollysrevenge.com Sat Jan 14 12:09:51 2012 From: pete at mollysrevenge.com (Pete) Date: Sat, 14 Jan 2012 09:09:51 -0800 Subject: Reading a standalone's info.plist file In-Reply-To: <4F111C92.5000100@hyperactivesw.com> References: <4F111C92.5000100@hyperactivesw.com> Message-ID: Thanks Jacque. I just want to get the version info I put into the standalone settings when it was built. I guess I prefer to get it from the plist file because I know if I put it into a custom property, I will forget to do it at some point and then the version displayed in the Get Info window will be out of step with what's in my app's ABout dialog. Just don;t like storing the same information in two different places. I'm also planning to try coding a savingStandalone handler to get the version from the standalone settings and put it into a custom property. Pete On Fri, Jan 13, 2012 at 10:11 PM, J. Landman Gay wrote: > On 1/13/12 8:14 PM, Pete wrote: > > Right now, the path to the info.plist file is hard coded for testing >> purposes but when the standalone is running, how can I get hold of it's >> file path so I can get to the info.plist file? >> > > For a desktop app, you could build a path relative to the mainstack. The > plist would be one level up. Set the itemDelimiter to slash, get the > filename of the mainstack, chop off the last two items, and put > "info.plist" after that. > > But I don't know anyone who handles it that way. Generally the version > info is just saved to the stack as a custom property where it can be read > directly. Is there something in particular that you have to get from the > plist file? > > -- > 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 > > -- Pete Molly's Revenge From ambassador at fourthworld.com Sat Jan 14 12:15:02 2012 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 14 Jan 2012 09:15:02 -0800 Subject: ANN: I'll be on The Tech Night Owl Tomorrow In-Reply-To: <1C50724F-5C81-4D67-8E1C-6C9D5B3523C5@mac.com> References: <1C50724F-5C81-4D67-8E1C-6C9D5B3523C5@mac.com> Message-ID: <4F11B816.3070002@fourthworld.com> Bill Vlahos wrote: > Shameless plug. I'll be on Gene Steinberg's The Tech Night Owl (http://www.technightowl.com/) broadcast Saturday, January 14, 2012 talking about InfoWallet. During the interview he asked about how it works for multiple platforms and I was able to talk about LiveCode. Here is information about the show for those who might not be familiar. Nice gig, Bill. Congrats. I'll try to tune in this evening. Does he maintain recordings if I miss the session? -- 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 mark_powell at symantec.com Sat Jan 14 15:04:55 2012 From: mark_powell at symantec.com (Mark Powell) Date: Sat, 14 Jan 2012 12:04:55 -0800 Subject: VB Script Outlook, .display works but .send doesn't In-Reply-To: <0A9CE298-496C-46DA-B34B-1C99F01FAEFB@sonsothunder.com> References: <3469AF22E7D82A46A12B6612437B8DF502A014F72F@TUS1XCHEVSPIN38.SYMC.SYMANTEC.COM> <0A9CE298-496C-46DA-B34B-1C99F01FAEFB@sonsothunder.com> Message-ID: <3469AF22E7D82A46A12B6612437B8DF502A014F78D@TUS1XCHEVSPIN38.SYMC.SYMANTEC.COM> Thanks Ken, I will test that out! Mark I just looked this up, and the suggestion is to add "=" before the Response.To in your code. Here's the relevant URL: http://www.outlookcode.com/threads.aspx?forumid=2&messageid=29591 and thanks for the kudos! :D Ken Ray From dixonja at hotmail.co.uk Sat Jan 14 15:52:22 2012 From: dixonja at hotmail.co.uk (John Dixon) Date: Sat, 14 Jan 2012 20:52:22 +0000 Subject: Compass Lesson not working In-Reply-To: References: Message-ID: I can confirm that the location & compass features both work.... I sent a stack to your email address.. Dixie > There is a lesson at run rev for the Compass features on iOS, but I can't get the heading part to work. I down loaded the stack from revOnline and added my provisioning profile and then run it as is on my iPhone 4 (not 4S) with iOS 5.0.1 -- The location works just fine but the heading does not return any data. When I tap at "Test for Heading Support" I get a correct answer. But no heading information is returned after tapping "Start Heading?" or "Get Heading?" > > Lesson: > http://lessons.runrev.com/s/lessons/m/4069/l/30379-how-do-i-get-the-location-and-use-the-digital-compass-in-ios > > Stack: > http://revonline2.runrev.com/stack/599/Compass > > Can anyone else confirm this? > > I built my own stack as well and use the headingChanged and headingError at the card level and still can not get any data back. > > Thanks > > -- Tom McGrath III > http://lazyriver.on-rev.com > 3mcgrath at comcast.net From revolution at derbrill.de Sat Jan 14 17:02:23 2012 From: revolution at derbrill.de (Malte Brill) Date: Sat, 14 Jan 2012 23:02:23 +0100 Subject: Session strategies for liveCode server In-Reply-To: References: Message-ID: Hi all (and especially those using server) I would like to create a little web based thing using server that will require a login on some of the pages and would really like to have sessions there (until the browser closes, or the user logs out). What would be the best way to handle this? Cookies? Any other ideas? Did anyone write such a thing, without the need of adding heavy weight frameworks? Cheers, Malte From sc at sahores-conseil.com Sat Jan 14 17:12:59 2012 From: sc at sahores-conseil.com (Pierre Sahores) Date: Sat, 14 Jan 2012 23:12:59 +0100 Subject: Session strategies for liveCode server In-Reply-To: References: Message-ID: <07F56BA9-4AC7-4030-8533-B085FBD538CE@sahores-conseil.com> Hi Malte, Encoded data inside cookies + SQL stored sessions works well there. This two parts design is more secure than cookies or hidden without any SQL part in the process. Best, Le 14 janv. 2012 ? 23:02, Malte Brill a ?crit : > Hi all (and especially those using server) > > I would like to create a little web based thing using server that will require a login on some of the pages and would really like to have sessions there (until the browser closes, or the user logs out). > > What would be the best way to handle this? Cookies? Any other ideas? Did anyone write such a thing, without the need of adding heavy weight frameworks? > > 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 -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com From m.schonewille at economy-x-talk.com Sat Jan 14 17:12:57 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sat, 14 Jan 2012 23:12:57 +0100 Subject: Session strategies for liveCode server In-Reply-To: References: Message-ID: <22F1DD35-3697-4226-AA06-B15381A4A95D@economy-x-talk.com> Hi Malte, I use PHP, where you can define a session with session_start() and save info in the $_SESSION variable. PHP's session feature is really awesome (but I don't think regular PHP programmer realise how awesome it really is). I would expect Rev Server to have exactly the same feature. If not... then cookies are your only option. Good luck with that. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! On 14 jan 2012, at 23:02, Malte Brill wrote: > Hi all (and especially those using server) > > I would like to create a little web based thing using server that will require a login on some of the pages and would really like to have sessions there (until the browser closes, or the user logs out). > > What would be the best way to handle this? Cookies? Any other ideas? Did anyone write such a thing, without the need of adding heavy weight frameworks? > > Cheers, > > Malte From stephenREVOLUTION2 at barncard.com Sat Jan 14 17:17:33 2012 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Sat, 14 Jan 2012 14:17:33 -0800 Subject: Session strategies for liveCode server In-Reply-To: References: Message-ID: You can find some use of pw/user schemes in the examples below http://splash21.on-rev.com/ - complete CMS written in Livecode http://www.troz.net/onrev/ - Sarah - code for cookies and other goodies http://revigniter.com/ - Ralf Bitter's CMS On 14 January 2012 14:02, Malte Brill wrote: > Hi all (and especially those using server) > > I would like to create a little web based thing using server that will > require a login on some of the pages and would really like to have sessions > there (until the browser closes, or the user logs out). > > What would be the best way to handle this? Cookies? Any other ideas? Did > anyone write such a thing, without the need of adding heavy weight > frameworks? > > 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 > -- Stephen Barncard San Francisco Ca. USA more about sqb From stephenREVOLUTION2 at barncard.com Sat Jan 14 17:18:45 2012 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Sat, 14 Jan 2012 14:18:45 -0800 Subject: Session strategies for liveCode server In-Reply-To: <07F56BA9-4AC7-4030-8533-B085FBD538CE@sahores-conseil.com> References: <07F56BA9-4AC7-4030-8533-B085FBD538CE@sahores-conseil.com> Message-ID: Session Variables are available in the latest version of Livecode Server. (5) On 14 January 2012 14:12, Pierre Sahores wrote: > Hi Malte, > > Encoded data inside cookies + SQL stored sessions works well there. This > two parts design is more secure than cookies or hidden without any SQL part > in the process. > > Best, > > Le 14 janv. 2012 ? 23:02, Malte Brill a ?crit : > > > Hi all (and especially those using server) > > > > I would like to create a little web based thing using server that will > require a login on some of the pages and would really like to have sessions > there (until the browser closes, or the user logs out). > > > > What would be the best way to handle this? Cookies? Any other ideas? Did > anyone write such a thing, without the need of adding heavy weight > frameworks? > > > > 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 > > -- > Pierre Sahores > mobile : 06 03 95 77 70 > www.sahores-conseil.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 andre at andregarzia.com Sat Jan 14 18:26:37 2012 From: andre at andregarzia.com (Andre Garzia) Date: Sat, 14 Jan 2012 21:26:37 -0200 Subject: Session strategies for liveCode server In-Reply-To: References: <07F56BA9-4AC7-4030-8533-B085FBD538CE@sahores-conseil.com> Message-ID: Current LiveCode server has sessions just like PHP, actually I think they modeled it after PHP session. The most usual path is to store a unique id in a cookie and use this id to point to a session on disk or database. On Sat, Jan 14, 2012 at 8:18 PM, stephen barncard wrote: > Session Variables are available in the latest version of Livecode Server. > (5) > > On 14 January 2012 14:12, Pierre Sahores wrote: > >> Hi Malte, >> >> Encoded data inside cookies ?+ SQL stored sessions works well there. This >> two parts design is more secure than cookies or hidden without any SQL part >> in the process. >> >> Best, >> >> Le 14 janv. 2012 ? 23:02, Malte Brill a ?crit : >> >> > Hi all (and especially those using server) >> > >> > I would like to create a little web based thing using server that will >> require a login on some of the pages and would really like to have sessions >> there (until the browser closes, or the user logs out). >> > >> > What would be the best way to handle this? Cookies? Any other ideas? Did >> anyone write such a thing, without the need of adding heavy weight >> frameworks? >> > >> > 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 >> >> -- >> Pierre Sahores >> mobile : 06 03 95 77 70 >> www.sahores-conseil.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 ? > _______________________________________________ > use-livecode mailing list > use-livecode 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. http://fon.nu -- minimalist url shortening service. From jacque at hyperactivesw.com Sat Jan 14 18:30:38 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 14 Jan 2012 17:30:38 -0600 Subject: Drag and drop filetype In-Reply-To: References: Message-ID: <4F12101E.2030901@hyperactivesw.com> On 1/14/12 8:07 AM, Randolph Valentine wrote: > Hi, all. I've got a very basic question. After a file is drag-and-dropped, > how can I determine WHAT the dropped item is referring to, e.g., a FOLDER or > a FILE, and if a file, RELIABLY, what KIND of file (e.g., a doc or a wav)? See "dragData" in the dictionary. Write a dragDrop handler that checks the dragData["files"] and you can parse out the lines, which contain the file path(s) to the files that were dropped. This works cross platform. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From alex at tweedly.net Sat Jan 14 19:10:03 2012 From: alex at tweedly.net (Alex Tweedly) Date: Sun, 15 Jan 2012 00:10:03 +0000 Subject: Session strategies for liveCode server In-Reply-To: References: Message-ID: <4F12195B.9090503@tweedly.net> The example from splash21 works well for login/registration, etc. - but it was written for revserver pre-5.0, so he does his own cookie / local data to simulate sessions. Easier, if you can, to use the session support in 5.0 - but note that on-rev (at least on loki) does not yet support 5.0. (I've had an open suport ticket for 3 weeks asking when/if they will upgrade). And of course, unless you have an ssl certificate, you'll finish up sending passwords in cleartext; I've switched over to using facebook authentication (server-side) to avoid that; if you want a copy of the .lc files to do that, just let me know (they need a bit of tidying, otherwise I'd just sent them now :-) -- Alex. On 14/01/2012 22:17, stephen barncard wrote: > You can find some use of pw/user schemes in the examples below > > http://splash21.on-rev.com/ - complete CMS written in Livecode > > http://www.troz.net/onrev/ - Sarah - code for cookies and other > goodies > > http://revigniter.com/ - Ralf Bitter's CMS > > > > > > On 14 January 2012 14:02, Malte Brill wrote: > >> Hi all (and especially those using server) >> >> I would like to create a little web based thing using server that will >> require a login on some of the pages and would really like to have sessions >> there (until the browser closes, or the user logs out). >> >> What would be the best way to handle this? Cookies? Any other ideas? Did >> anyone write such a thing, without the need of adding heavy weight >> frameworks? >> >> 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 sundown at pacifier.com Sat Jan 14 19:48:19 2012 From: sundown at pacifier.com (-=>JB<=-) Date: Sat, 14 Jan 2012 16:48:19 -0800 Subject: Session strategies for liveCode server In-Reply-To: <4F12195B.9090503@tweedly.net> References: <4F12195B.9090503@tweedly.net> Message-ID: <33A38EAE-DAD1-4251-9E8F-57DA52F76D70@pacifier.com> I registered and tried to download but could never get it to verify my account when I would try to login. -=>JB<=- On Jan 14, 2012, at 4:10 PM, Alex Tweedly wrote: > The example from splash21 works well for login/registration, etc. - but it was written for revserver pre-5.0, so he does his own cookie / local data to simulate sessions. Easier, if you can, to use the session support in 5.0 - but note that on-rev (at least on loki) does not yet support 5.0. (I've had an open suport ticket for 3 weeks asking when/if they will upgrade). > > And of course, unless you have an ssl certificate, you'll finish up sending passwords in cleartext; I've switched over to using facebook authentication (server-side) to avoid that; if you want a copy of the lc files to do that, just let me know (they need a bit of tidying, otherwise I'd just sent them now :-) > > -- Alex. > > On 14/01/2012 22:17, stephen barncard wrote: >> You can find some use of pw/user schemes in the examples below >> >> http://splash21.on-rev.com/ - complete CMS written in Livecode >> >> http://www.troz.net/onrev/ - Sarah - code for cookies and other >> goodies >> >> http://revigniter.com/ - Ralf Bitter's CMS >> >> >> >> >> >> On 14 January 2012 14:02, Malte Brill wrote: >> >>> Hi all (and especially those using server) >>> >>> I would like to create a little web based thing using server that will >>> require a login on some of the pages and would really like to have sessions >>> there (until the browser closes, or the user logs out). >>> >>> What would be the best way to handle this? Cookies? Any other ideas? Did >>> anyone write such a thing, without the need of adding heavy weight >>> frameworks? >>> >>> 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 sundown at pacifier.com Sat Jan 14 19:51:38 2012 From: sundown at pacifier.com (-=>JB<=-) Date: Sat, 14 Jan 2012 16:51:38 -0800 Subject: Session strategies for liveCode server In-Reply-To: <4F12195B.9090503@tweedly.net> References: <4F12195B.9090503@tweedly.net> Message-ID: <890025C3-F956-49EA-B94A-BAD4341689DE@pacifier.com> After checking my email I see a email to activate the account and it works now. -=>JB<=- On Jan 14, 2012, at 4:10 PM, Alex Tweedly wrote: > The example from splash21 works well for login/registration, etc. - but it was written for revserver pre-5.0, so he does his own cookie / local data to simulate sessions. Easier, if you can, to use the session support in 5.0 - but note that on-rev (at least on loki) does not yet support 5.0. (I've had an open suport ticket for 3 weeks asking when/if they will upgrade). > > And of course, unless you have an ssl certificate, you'll finish up sending passwords in cleartext; I've switched over to using facebook authentication (server-side) to avoid that; if you want a copy of the lc files to do that, just let me know (they need a bit of tidying, otherwise I'd just sent them now :-) > > -- Alex. > > On 14/01/2012 22:17, stephen barncard wrote: >> You can find some use of pw/user schemes in the examples below >> >> http://splash21.on-rev.com/ - complete CMS written in Livecode >> >> http://www.troz.net/onrev/ - Sarah - code for cookies and other >> goodies >> >> http://revigniter.com/ - Ralf Bitter's CMS >> >> >> >> >> >> On 14 January 2012 14:02, Malte Brill wrote: >> >>> Hi all (and especially those using server) >>> >>> I would like to create a little web based thing using server that will >>> require a login on some of the pages and would really like to have sessions >>> there (until the browser closes, or the user logs out). >>> >>> What would be the best way to handle this? Cookies? Any other ideas? Did >>> anyone write such a thing, without the need of adding heavy weight >>> frameworks? >>> >>> 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 bvg at mac.com Sat Jan 14 19:58:00 2012 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Sun, 15 Jan 2012 01:58:00 +0100 Subject: Session strategies for liveCode server In-Reply-To: <890025C3-F956-49EA-B94A-BAD4341689DE@pacifier.com> References: <4F12195B.9090503@tweedly.net> <890025C3-F956-49EA-B94A-BAD4341689DE@pacifier.com> Message-ID: where is this session cookie handling documented? On 15.01.2012, at 01:51, -=>JB<=- wrote: > After checking my email I see a email to activate > the account and it works now. > > -=>JB<=- > > > > On Jan 14, 2012, at 4:10 PM, Alex Tweedly wrote: > >> The example from splash21 works well for login/registration, etc. - but it was written for revserver pre-5.0, so he does his own cookie / local data to simulate sessions. Easier, if you can, to use the session support in 5.0 - but note that on-rev (at least on loki) does not yet support 5.0. (I've had an open suport ticket for 3 weeks asking when/if they will upgrade). >> >> And of course, unless you have an ssl certificate, you'll finish up sending passwords in cleartext; I've switched over to using facebook authentication (server-side) to avoid that; if you want a copy of the lc files to do that, just let me know (they need a bit of tidying, otherwise I'd just sent them now :-) >> >> -- Alex. >> >> On 14/01/2012 22:17, stephen barncard wrote: >>> You can find some use of pw/user schemes in the examples below >>> >>> http://splash21.on-rev.com/ - complete CMS written in Livecode >>> >>> http://www.troz.net/onrev/ - Sarah - code for cookies and other >>> goodies >>> >>> http://revigniter.com/ - Ralf Bitter's CMS >>> >>> >>> >>> >>> >>> On 14 January 2012 14:02, Malte Brill wrote: >>> >>>> Hi all (and especially those using server) >>>> >>>> I would like to create a little web based thing using server that will >>>> require a login on some of the pages and would really like to have sessions >>>> there (until the browser closes, or the user logs out). >>>> >>>> What would be the best way to handle this? Cookies? Any other ideas? Did >>>> anyone write such a thing, without the need of adding heavy weight >>>> frameworks? >>>> >>>> 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 stephenREVOLUTION2 at barncard.com Sat Jan 14 20:04:43 2012 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Sat, 14 Jan 2012 17:04:43 -0800 Subject: Session strategies for liveCode server In-Reply-To: References: <4F12195B.9090503@tweedly.net> <890025C3-F956-49EA-B94A-BAD4341689DE@pacifier.com> Message-ID: In the notes that come with the 5.0 version. But you combined the two concepts. $_SESSION is an server global array in ram, not a cookie. sqb 2012/1/14 Bj?rnke von Gierke > where is this session cookie handling documented? > > > On 15.01.2012, at 01:51, -=>JB<=- wrote: > > > After checking my email I see a email to activate > > the account and it works now. > > > > -=>JB<=- > > > > > > > > On Jan 14, 2012, at 4:10 PM, Alex Tweedly wrote: > > > >> The example from splash21 works well for login/registration, etc. - but > it was written for revserver pre-5.0, so he does his own cookie / local > data to simulate sessions. Easier, if you can, to use the session support > in 5.0 - but note that on-rev (at least on loki) does not yet support 5.0. > (I've had an open suport ticket for 3 weeks asking when/if they will > upgrade). > >> > >> And of course, unless you have an ssl certificate, you'll finish up > sending passwords in cleartext; I've switched over to using facebook > authentication (server-side) to avoid that; if you want a copy of the lc > files to do that, just let me know (they need a bit of tidying, otherwise > I'd just sent them now :-) > >> > >> -- Alex. > >> > >> On 14/01/2012 22:17, stephen barncard wrote: > >>> You can find some use of pw/user schemes in the examples below > >>> > >>> http://splash21.on-rev.com/ - complete CMS written in Livecode > >>> > >>> http://www.troz.net/onrev/ - Sarah - code for cookies and other > >>> goodies > >>> > >>> http://revigniter.com/ - Ralf Bitter's CMS > >>> > >>> > >>> > >>> > >>> > >>> On 14 January 2012 14:02, Malte Brill wrote: > >>> > >>>> Hi all (and especially those using server) > >>>> > >>>> I would like to create a little web based thing using server that will > >>>> require a login on some of the pages and would really like to have > sessions > >>>> there (until the browser closes, or the user logs out). > >>>> > >>>> What would be the best way to handle this? Cookies? Any other ideas? > Did > >>>> anyone write such a thing, without the need of adding heavy weight > >>>> frameworks? > >>>> > >>>> 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 andre at andregarzia.com Sat Jan 14 20:04:41 2012 From: andre at andregarzia.com (Andre Garzia) Date: Sat, 14 Jan 2012 23:04:41 -0200 Subject: Session strategies for liveCode server In-Reply-To: References: <4F12195B.9090503@tweedly.net> <890025C3-F956-49EA-B94A-BAD4341689DE@pacifier.com> Message-ID: BvG, http://www.runrev.com/downloads/livecode/5_0_0/How_do_I_use_Sessions_on_LiveCode_Server.pdf =) 2012/1/14 Bj?rnke von Gierke : > where is this session cookie handling documented? > > > On 15.01.2012, at 01:51, -=>JB<=- wrote: > >> After checking my email I see a email to activate >> the account and it works now. >> >> -=>JB<=- >> >> >> >> On Jan 14, 2012, at 4:10 PM, Alex Tweedly wrote: >> >>> The example from splash21 works well for login/registration, etc. - but it was written for revserver pre-5.0, so he does his own cookie / local data to simulate sessions. Easier, if you can, to use the session support in 5.0 - but note that on-rev (at least on loki) does not yet support 5.0. (I've had an open suport ticket for 3 weeks asking when/if they will upgrade). >>> >>> And of course, unless you have an ssl certificate, you'll finish up sending passwords in cleartext; I've switched over to using facebook authentication (server-side) to avoid that; if you want a copy of the lc files to do that, just let me know (they need a bit of tidying, otherwise I'd just sent them now :-) >>> >>> -- Alex. >>> >>> On 14/01/2012 22:17, stephen barncard wrote: >>>> You can find some use of pw/user schemes ?in the examples below >>>> >>>> http://splash21.on-rev.com/ ? ?- complete CMS written in Livecode >>>> >>>> http://www.troz.net/onrev/ ? ? - ?Sarah ?- code for cookies and other >>>> goodies >>>> >>>> http://revigniter.com/ ? ? - Ralf Bitter's CMS >>>> >>>> >>>> >>>> >>>> >>>> On 14 January 2012 14:02, Malte Brill ?wrote: >>>> >>>>> Hi all (and especially those using server) >>>>> >>>>> I would like to create a little web based thing using server that will >>>>> require a login on some of the pages and would really like to have sessions >>>>> there (until the browser closes, or the user logs out). >>>>> >>>>> What would be the best way to handle this? Cookies? Any other ideas? Did >>>>> anyone write such a thing, without the need of adding heavy weight >>>>> frameworks? >>>>> >>>>> 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode 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. http://fon.nu -- minimalist url shortening service. From bvg at mac.com Sat Jan 14 20:18:41 2012 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Sun, 15 Jan 2012 02:18:41 +0100 Subject: Session strategies for liveCode server In-Reply-To: References: <4F12195B.9090503@tweedly.net> <890025C3-F956-49EA-B94A-BAD4341689DE@pacifier.com> Message-ID: <2D17D7CB-ADC1-428B-9E85-7470433A8F65@mac.com> I'm on on-rev. so for me there's no place to go for documentation at all, and altho there is a pdf that contains most stuff, it's usually out of date, unattainable or gets otherwise forgotten by RunRev. i'll mail them when i ever really need this, but i wish they'd put more effort on quality overall. On 15.01.2012, at 02:04, stephen barncard wrote: > In the notes that come with the 5.0 version. But you combined the two > concepts. > > $_SESSION is an server global array in ram, not a cookie. > > sqb > > 2012/1/14 Bj?rnke von Gierke > >> where is this session cookie handling documented? >> >> >> On 15.01.2012, at 01:51, -=>JB<=- wrote: >> >>> After checking my email I see a email to activate >>> the account and it works now. >>> >>> -=>JB<=- >>> >>> >>> >>> On Jan 14, 2012, at 4:10 PM, Alex Tweedly wrote: >>> >>>> The example from splash21 works well for login/registration, etc. - but >> it was written for revserver pre-5.0, so he does his own cookie / local >> data to simulate sessions. Easier, if you can, to use the session support >> in 5.0 - but note that on-rev (at least on loki) does not yet support 5.0. >> (I've had an open suport ticket for 3 weeks asking when/if they will >> upgrade). >>>> >>>> And of course, unless you have an ssl certificate, you'll finish up >> sending passwords in cleartext; I've switched over to using facebook >> authentication (server-side) to avoid that; if you want a copy of the lc >> files to do that, just let me know (they need a bit of tidying, otherwise >> I'd just sent them now :-) >>>> >>>> -- Alex. >>>> >>>> On 14/01/2012 22:17, stephen barncard wrote: >>>>> You can find some use of pw/user schemes in the examples below >>>>> >>>>> http://splash21.on-rev.com/ - complete CMS written in Livecode >>>>> >>>>> http://www.troz.net/onrev/ - Sarah - code for cookies and other >>>>> goodies >>>>> >>>>> http://revigniter.com/ - Ralf Bitter's CMS >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> On 14 January 2012 14:02, Malte Brill wrote: >>>>> >>>>>> Hi all (and especially those using server) >>>>>> >>>>>> I would like to create a little web based thing using server that will >>>>>> require a login on some of the pages and would really like to have >> sessions >>>>>> there (until the browser closes, or the user logs out). >>>>>> >>>>>> What would be the best way to handle this? Cookies? Any other ideas? >> Did >>>>>> anyone write such a thing, without the need of adding heavy weight >>>>>> frameworks? >>>>>> >>>>>> 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 >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 mwieder at ahsoftware.net Sat Jan 14 20:41:50 2012 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sat, 14 Jan 2012 17:41:50 -0800 Subject: Reading a standalone's info.plist file In-Reply-To: References: <4F111C92.5000100@hyperactivesw.com> Message-ID: <95205336078.20120114174150@ahsoftware.net> Pete- Saturday, January 14, 2012, 9:09:51 AM, you wrote: > I guess I prefer to get it from the > plist file because I know if I put it into a custom property, I will forget > to do it at some point and then the version displayed in the Get Info > window will be out of step with what's in my app's ABout dialog. That's the sort of thing the RunRevInteroperability Project set up the uRIP custom property array for. For my projects I store things in the stack custom properties like uRIP["version"] uRIP["date"] uRIP["author"] uRIP["description"] and then I have functions that retrieve those and populate my About box with them. http://tech.groups.yahoo.com/group/revInterop/ -- -Mark Wieder mwieder at ahsoftware.net From bvlahos at mac.com Sat Jan 14 20:53:06 2012 From: bvlahos at mac.com (Bill Vlahos) Date: Sat, 14 Jan 2012 17:53:06 -0800 Subject: ANN: I'll be on The Tech Night Owl Tomorrow In-Reply-To: <4F11B816.3070002@fourthworld.com> References: <1C50724F-5C81-4D67-8E1C-6C9D5B3523C5@mac.com> <4F11B816.3070002@fourthworld.com> Message-ID: Yes he does. You can get his podcasts via iTunes and, I'm sure, other ways too. Bill Vlahos _________________ InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. On Jan 14, 2012, at 9:15 AM, Richard Gaskin wrote: > Bill Vlahos wrote: > >> Shameless plug. I'll be on Gene Steinberg's The Tech Night Owl (http://www.technightowl.com/) broadcast Saturday, January 14, 2012 talking about InfoWallet. During the interview he asked about how it works for multiple platforms and I was able to talk about LiveCode. Here is information about the show for those who might not be familiar. > > Nice gig, Bill. Congrats. I'll try to tune in this evening. Does he maintain recordings if I miss the session? > > -- > 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 williamdesmet at gmail.com Sun Jan 15 05:00:54 2012 From: williamdesmet at gmail.com (William de Smet) Date: Sun, 15 Jan 2012 11:00:54 +0100 Subject: Anyone successfully used Testflightapp.com? Message-ID: Hi there, I found TestFlightapp.com on the web to let beta testers test your app. Has anyone any experience with this and successfully used it with an app made with Livecode? While uploading my app I get an error with which seems to be related with missing code from Xcode in the plist file. Any help is appreciated. greetings, William From m.schonewille at economy-x-talk.com Sun Jan 15 05:49:29 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sun, 15 Jan 2012 11:49:29 +0100 Subject: Anyone successfully used Testflightapp.com? In-Reply-To: References: Message-ID: <7BE2C61A-C41A-4782-A6B3-3E4E4531423D@economy-x-talk.com> Hi William, What's the error exactly? -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! On 15 jan 2012, at 11:00, William de Smet wrote: > Hi there, > > I found TestFlightapp.com on the web to let beta testers test your app. > Has anyone any experience with this and successfully used it with an app > made with Livecode? > > While uploading my app I get an error with which seems to be related with > missing code from Xcode in the plist file. > > Any help is appreciated. > > greetings, > > William > From williamdesmet at gmail.com Sun Jan 15 06:10:43 2012 From: williamdesmet at gmail.com (William de Smet) Date: Sun, 15 Jan 2012 12:10:43 +0100 Subject: Anyone successfully used Testflightapp.com? In-Reply-To: <7BE2C61A-C41A-4782-A6B3-3E4E4531423D@economy-x-talk.com> References: <7BE2C61A-C41A-4782-A6B3-3E4E4531423D@economy-x-talk.com> Message-ID: Hi Mark, I searched their forum and found the error: http://support.testflightapp.com/kb/common-questions/mismatched-ubiquitykvstore-identifier-value It even says on their site: Ensure you are using a Ad Hoc Distribution profile when building and that Xcode is using the correct profile. Building with a Development profile or an App Store Distribution profile will not work. I just thought I could make an app with the iOS Team provisioning profile from my Mac and upload that app. Maybe that is the problem. I guess I have to go through the Apple iOS Provisioning portal and make an Ad Hoc Distribution file? What do you think? groeten, William 2012/1/15 Mark Schonewille > Hi William, > > What's the error exactly? > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > Become our partner in sales http://qery.us/1bq Start selling Color > Converter today. 20% commission! > > On 15 jan 2012, at 11:00, William de Smet wrote: > > > Hi there, > > > > I found TestFlightapp.com on the web to let beta testers test your app. > > Has anyone any experience with this and successfully used it with an app > > made with Livecode? > > > > While uploading my app I get an error with which seems to be related with > > missing code from Xcode in the plist file. > > > > Any help is appreciated. > > > > 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 m.schonewille at economy-x-talk.com Sun Jan 15 06:42:13 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sun, 15 Jan 2012 12:42:13 +0100 Subject: Anyone successfully used Testflightapp.com? In-Reply-To: References: <7BE2C61A-C41A-4782-A6B3-3E4E4531423D@economy-x-talk.com> Message-ID: <297F8224-C9E8-4DC0-AA2C-B71B3E175664@economy-x-talk.com> Hi William, I add all my betatesters to my iOS team provisioning profile and build with that profile for ad hoc distribution. Might be wrong, but it works. Maybe you forgot to add your testers to that profile? If it doesn't work, just make a new ad hoc provisioning profile and add your tester's UDID's to that profile. That works too for me. According to the testflight.app website, you need to re-generate old profiles for your app to include the iCloud settings. The website doesn't tell whether you still need to do this if you don't want to use iCloud. Frankly, since you still need to fiddle with profiles, I don't think that TestFlight is easier than making your own test binary and putting it on your own server or Dropbox http://qery.us/u6 to share it with your testers. Now, what's the exact text of the error? -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! On 15 jan 2012, at 12:10, William de Smet wrote: > Hi Mark, > > I searched their forum and found the error: > http://support.testflightapp.com/kb/common-questions/mismatched-ubiquitykvstore-identifier-value > > It even says on their site: > Ensure you are using a Ad Hoc Distribution profile when building and that > Xcode is using the correct profile. > Building with a Development profile or an App Store Distribution profile > will not work. > > I just thought I could make an app with the iOS Team provisioning profile > from my Mac and upload that app. > Maybe that is the problem. I guess I have to go through the Apple iOS > Provisioning portal and make an Ad Hoc Distribution file? > > What do you think? > > > groeten, > > William > > > > 2012/1/15 Mark Schonewille > >> Hi William, >> >> What's the error exactly? >> >> -- >> Best regards, >> >> Mark Schonewille >> >> Economy-x-Talk Consulting and Software Engineering >> Homepage: http://economy-x-talk.com >> Twitter: http://twitter.com/xtalkprogrammer >> KvK: 50277553 >> >> Become our partner in sales http://qery.us/1bq Start selling Color >> Converter today. 20% commission! >> >> On 15 jan 2012, at 11:00, William de Smet wrote: >> >>> Hi there, >>> >>> I found TestFlightapp.com on the web to let beta testers test your app. >>> Has anyone any experience with this and successfully used it with an app >>> made with Livecode? >>> >>> While uploading my app I get an error with which seems to be related with >>> missing code from Xcode in the plist file. >>> >>> Any help is appreciated. >>> >>> 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 >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mike at doub.com Sun Jan 15 08:11:45 2012 From: mike at doub.com (Michael Doub) Date: Sun, 15 Jan 2012 08:11:45 -0500 Subject: Reliability of setProp/getProp Message-ID: <1066FC70-27AF-4E89-985E-6782147D0A3F@doub.com> Are there conditions where getProp/setProp should not be used? have seen multiple instances where the setProp message does not seem to be recieved. What is even more strange is the fact that sometimes it works then for no reason it stops. These constructs are much easer to use than sending messages to object, but they don't seem to be reliable. I am using 5.0.2. Is anyone else experiencing this funny behaviour? Could I be doing something to stimulate it? Regards, Mike From m.schonewille at economy-x-talk.com Sun Jan 15 08:26:19 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sun, 15 Jan 2012 14:26:19 +0100 Subject: Reliability of setProp/getProp In-Reply-To: <1066FC70-27AF-4E89-985E-6782147D0A3F@doub.com> References: <1066FC70-27AF-4E89-985E-6782147D0A3F@doub.com> Message-ID: <3F788FC4-3452-4D06-9630-320970F1D31A@economy-x-talk.com> Hi Mike, Custom properties are very useful and reliable but will cause problems if: 1) you use them to save text to be displayed on multiple platforms 2) you want to save them as part of your standalone Solve (1) by storing text as unicode but keep in mind that this may still not work on PowerMacs. Solve (2) by using a separate stack to solve custom properties and store the stack in a preferences folder, program data folder or in the documents folder. You can't use names of built-in properties for your own custom properties. Which object is the target and where are your getProp/setProp handlers stored? If custom properties suddenly stop working or show unexpected behaviour, you probably have a mistake in your scripts. Custom propreties are very reliable. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! On 15 jan 2012, at 14:11, Michael Doub wrote: > Are there conditions where getProp/setProp should not be used? have seen multiple instances where the setProp message does not seem to be recieved. What is even more strange is the fact that sometimes it works then for no reason it stops. > > These constructs are much easer to use than sending messages to object, but they don't seem to be reliable. I am using 5.0.2. > > Is anyone else experiencing this funny behaviour? Could I be doing something to stimulate it? > > Regards, > Mike > From mkoob at rogers.com Sun Jan 15 08:45:19 2012 From: mkoob at rogers.com (Martin Koob) Date: Sun, 15 Jan 2012 05:45:19 -0800 (PST) Subject: Session strategies for liveCode server In-Reply-To: <2D17D7CB-ADC1-428B-9E85-7470433A8F65@mac.com> References: <4F12195B.9090503@tweedly.net> <890025C3-F956-49EA-B94A-BAD4341689DE@pacifier.com> <2D17D7CB-ADC1-428B-9E85-7470433A8F65@mac.com> Message-ID: <1326635119304-4296900.post@n4.nabble.com> I use splash21 for sessions and it works well. I share your frustration Bj?rnke with the lack of documentation. There is a forum for on-rev but it is not active at all. http://forums.on-rev.com/ It would be helpful if RunRev staff would post updates there about things such as version changes to the On-rev Server or updates to the on-rev editor etc. I have tried to post a few things and respond to posts when I can but not many people use the forum. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Session-strategies-for-liveCode-server-tp4295781p4296900.html Sent from the Revolution - User mailing list archive at Nabble.com. From mike at doub.com Sun Jan 15 09:01:58 2012 From: mike at doub.com (Michael Doub) Date: Sun, 15 Jan 2012 09:01:58 -0500 Subject: Reliability of setProp/getProp In-Reply-To: <3F788FC4-3452-4D06-9630-320970F1D31A@economy-x-talk.com> References: <1066FC70-27AF-4E89-985E-6782147D0A3F@doub.com> <3F788FC4-3452-4D06-9630-320970F1D31A@economy-x-talk.com> Message-ID: <757660CF-558E-4C99-8E56-4B6BAC5C019E@doub.com> I have a group "Pointer" that is made of 2 graphic objects. Within the script of group "Pointer", I have: setprop thecolor newcolor getProp thecolor setprop finger newloc I am not using them to set any persistent state but to control the color and location of the object itself. When this behaviour starts, I am not able to set a breakpoints, but I can add put statements and that handlers are getting called, but NOT in the getProp/setProp handlers. This app has been working for sometime now until I started making changes in totally unrelated areas of the code. I have gone back to the original working version twice now, trying to carefully make changes and testing trying to isolate what introduces the problem. I have also noticed that the debugger is off by several lines if you try single stepping. Can stacks get corrupted? -= Mike On 2012-01-15, at 8:26 AM, Mark Schonewille wrote: > Hi Mike, > > Custom properties are very useful and reliable but will cause problems if: > 1) you use them to save text to be displayed on multiple platforms > 2) you want to save them as part of your standalone > > Solve (1) by storing text as unicode but keep in mind that this may still not work on PowerMacs. Solve (2) by using a separate stack to solve custom properties and store the stack in a preferences folder, program data folder or in the documents folder. > > You can't use names of built-in properties for your own custom properties. > > Which object is the target and where are your getProp/setProp handlers stored? > > If custom properties suddenly stop working or show unexpected behaviour, you probably have a mistake in your scripts. Custom propreties are very reliable. > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! > > On 15 jan 2012, at 14:11, Michael Doub wrote: > >> Are there conditions where getProp/setProp should not be used? have seen multiple instances where the setProp message does not seem to be recieved. What is even more strange is the fact that sometimes it works then for no reason it stops. >> >> These constructs are much easer to use than sending messages to object, but they don't seem to be reliable. I am using 5.0.2. >> >> Is anyone else experiencing this funny behaviour? Could I be doing something to stimulate it? >> >> Regards, >> Mike >> > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sun Jan 15 09:35:32 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sun, 15 Jan 2012 15:35:32 +0100 Subject: Reliability of setProp/getProp In-Reply-To: <757660CF-558E-4C99-8E56-4B6BAC5C019E@doub.com> References: <1066FC70-27AF-4E89-985E-6782147D0A3F@doub.com> <3F788FC4-3452-4D06-9630-320970F1D31A@economy-x-talk.com> <757660CF-558E-4C99-8E56-4B6BAC5C019E@doub.com> Message-ID: Hi Mike, The debugger is not reliable to begin with, but there might be a valid reason why you can't set a breakpoint, e.g. because that line is commented out. I don't understand "but I can add put statements... NOT in the getProp/setProp handlers". What do you mean? It is possible that you have a character in your script that messes things up, e.g. a NULL character or a return (rather than linefeed) character. Set the script to empty and retype. Don't copy-paste. You might also use a hex editor to find such characters and tools like BBEdit and TextWrangler allow you to see invisible characters. Surely, stacks can get corrupted, but I have seen this happen only once during the past few years. The reason was that the stack was moved from Windows to Mac and opened, while text fields and scripts were somehow not re-encoded. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! On 15 jan 2012, at 15:01, Michael Doub wrote: > I have a group "Pointer" that is made of 2 graphic objects. Within the script of group "Pointer", I have: > > setprop thecolor newcolor > getProp thecolor > setprop finger newloc > > I am not using them to set any persistent state but to control the color and location of the object itself. > > When this behaviour starts, I am not able to set a breakpoints, but I can add put statements and that handlers are getting called, but NOT in the getProp/setProp handlers. This app has been working for sometime now until I started making changes in totally unrelated areas of the code. I have gone back to the original working version twice now, trying to carefully make changes and testing trying to isolate what introduces the problem. > > I have also noticed that the debugger is off by several lines if you try single stepping. Can stacks get corrupted? > > -= Mike From bdrunrev at gmail.com Sun Jan 15 09:44:28 2012 From: bdrunrev at gmail.com (Bernard Devlin) Date: Sun, 15 Jan 2012 14:44:28 +0000 Subject: Reliability of setProp/getProp In-Reply-To: <757660CF-558E-4C99-8E56-4B6BAC5C019E@doub.com> References: <1066FC70-27AF-4E89-985E-6782147D0A3F@doub.com> <3F788FC4-3452-4D06-9630-320970F1D31A@economy-x-talk.com> <757660CF-558E-4C99-8E56-4B6BAC5C019E@doub.com> Message-ID: Are you locking the message path in some other handler (e.g. maybe one that is done with 'send in time'). That might explain intermittent behaviour. Also, there is a 'breakpoint' command that you can literally type as a line in your handler. I've often (like almost always) seen red dot breakpoints that will work the first time a piece of code is breakpointed, but will not work if a change is made to the script, and then the actions run again to get to that breakpoint. However, the 'breakpoint' command has never not worked for me. Bernard On Sun, Jan 15, 2012 at 2:01 PM, Michael Doub wrote: > I have a group "Pointer" that is made of 2 graphic objects. ?Within the script of group "Pointer", I have: > > setprop thecolor newcolor > getProp thecolor > setprop finger newloc > > I am not using them to set any persistent state but to control the color and location of the object itself. > > When this behaviour starts, I am not able to set a breakpoints, From songe at agate.plala.or.jp Sun Jan 15 09:58:35 2012 From: songe at agate.plala.or.jp (Jonathan Scott) Date: Sun, 15 Jan 2012 23:58:35 +0900 Subject: Unicode Question Message-ID: Hello, I usual lurk here. I do have a question though. I don't seem to be able to find an answer anywhere. I'll appreciate whatever help I can get. I'm trying to make an option button that has Japanese characters in it. It will be a self-updating directory button for a stack where each option is a product in an inventory database. The person using it will be Japanese, so using Japanese is a necessity. So far, I've been able get it to work by putting the contents of one field that contains a product name after another field. Then when all of the product names are in it, I put the contents of that field into the option button. It works in that all of the names go in, but I haven't been able to find a carriage return character that I can insert between the product names that works. It will work in the field, but when I then put it into the option button a lot of strange characters show up between the product names rather than a carriage return. And yes, I know about setting the unicodetext of a field. I also know about setting useunicode to true and then trying to put it in with numtochar. So far, no luck. If anyone has any other ideas, I'd love to hear them. Thank you. From m.schonewille at economy-x-talk.com Sun Jan 15 10:13:47 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sun, 15 Jan 2012 16:13:47 +0100 Subject: Unicode Question In-Reply-To: References: Message-ID: Hi Jonathan, This works for me: on mouseUp set the textFont of btn 2 to "Lucida Grande,Unicode" set the text of btn 2 to the unicodetext of fld 1 --replacetext(the unicodetext of fld 1,uniencode(cr),cr) end mouseUp I'm not sure whether menus get confused if the line delimiter is actuall NULL & cr instead of just cr, but it doesn't seem to matter (much). -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! On 15 jan 2012, at 15:58, Jonathan Scott wrote: > Hello, > I usual lurk here. I do have a question though. I don't seem to be able to find an answer anywhere. I'll appreciate whatever help I can get. > > I'm trying to make an option button that has Japanese characters in it. It will be a self-updating directory button for a stack where each option is a product in an inventory database. The person using it will be Japanese, so using Japanese is a necessity. > So far, I've been able get it to work by putting the contents of one field that contains a product name after another field. Then when all of the product names are in it, I put the contents of that field into the option button. It works in that all of the names go in, but I haven't been able to find a carriage return character that I can insert between the product names that works. It will work in the field, but when I then put it into the option button a lot of strange characters show up between the product names rather than a carriage return. > > And yes, I know about setting the unicodetext of a field. I also know about setting useunicode to true and then trying to put it in with numtochar. So far, no luck. > If anyone has any other ideas, I'd love to hear them. > > Thank you. From coiin at verizon.net Sun Jan 15 10:16:51 2012 From: coiin at verizon.net (Colin Holgate) Date: Sun, 15 Jan 2012 10:16:51 -0500 Subject: Anyone successfully used Testflightapp.com? In-Reply-To: References: Message-ID: <39DCFAC1-6C71-4A4F-96B4-56D621D3DDBD@verizon.net> I use this program: http://itunes.apple.com/us/app/betabuilder-for-ios-apps/id415348946?mt=12 Some days I have it open all day. It uses the same basic trick as testflightapp, only you deploy the files it makes to your own server. That works well with Flash apps, I can publish a new version and only have to click one button to deploy the new files. It also doesn't have to be an ad hoc version, any IPA file will work. Which brings us to what might be the issue you're seeing. LiveCode doesn't make IPA files, it makes APP files. I dare say that testflightapp also need IPA files. What I do in that case is to drag the APP into iTunes, which makes the IPA file, replacing the old one. I then do my single click in BetaBuilder to deploy the new one. For testflightapp you would right-click on the app in iTunes and reveal the IPA in Finder, and then use that as the file to give to testflightapp.com. The site has a lot of management tools that may be useful, but each of your testers has to have an account with them, and install a special testflight provisioning file. The uploading you take will take longer than if you just deployed files to your own server. On Friday I added one more device to my account, that took my 100th slot! Even so I can quickly make an app and post it, that will work on all 100 devices, without anyone having to sign up to anything. From williamdesmet at gmail.com Sun Jan 15 11:07:26 2012 From: williamdesmet at gmail.com (William de Smet) Date: Sun, 15 Jan 2012 17:07:26 +0100 Subject: Anyone successfully used Testflightapp.com? In-Reply-To: <39DCFAC1-6C71-4A4F-96B4-56D621D3DDBD@verizon.net> References: <39DCFAC1-6C71-4A4F-96B4-56D621D3DDBD@verizon.net> Message-ID: @Mark and Colin: I just bought BetaBuilder and that is very easy to use and works perfectly. Thanks! greetings, William 2012/1/15 Colin Holgate > I use this program: > > http://itunes.apple.com/us/app/betabuilder-for-ios-apps/id415348946?mt=12 > > Some days I have it open all day. It uses the same basic trick as > testflightapp, only you deploy the files it makes to your own server. > > That works well with Flash apps, I can publish a new version and only have > to click one button to deploy the new files. It also doesn't have to be an > ad hoc version, any IPA file will work. > > Which brings us to what might be the issue you're seeing. LiveCode doesn't > make IPA files, it makes APP files. I dare say that testflightapp also need > IPA files. What I do in that case is to drag the APP into iTunes, which > makes the IPA file, replacing the old one. I then do my single click in > BetaBuilder to deploy the new one. For testflightapp you would right-click > on the app in iTunes and reveal the IPA in Finder, and then use that as the > file to give to testflightapp.com. > > The site has a lot of management tools that may be useful, but each of > your testers has to have an account with them, and install a special > testflight provisioning file. The uploading you take will take longer than > if you just deployed files to your own server. > > On Friday I added one more device to my account, that took my 100th slot! > Even so I can quickly make an app and post it, that will work on all 100 > devices, without anyone having to sign up to anything. > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sun Jan 15 11:40:32 2012 From: mcgrath3 at mac.com (Thomas McGrath III) Date: Sun, 15 Jan 2012 11:40:32 -0500 Subject: Compass Lesson not working In-Reply-To: References: Message-ID: <1E1F3FB6-B251-4B38-A1C0-AD5F5CA78A25@mac.com> Thanks John, Your stacks works perfectly on my iphone4. Side by side the stack from the runrev lesson does not work and yours does work. I even copied my get current location script to your stack and it works there. You use the headingChanged and locationChanged and the lesson stack does not, but I still can't figure out what else is different so that yours works in initializing the compass??? Still looking. Thanks again, -- Tom McGrath III http://lazyriver.on-rev.com 3mcgrath at comcast.net On Jan 14, 2012, at 3:52 PM, John Dixon wrote: > > I can confirm that the location & compass features both work.... > I sent a stack to your email address.. > > Dixie > >> There is a lesson at run rev for the Compass features on iOS, but I can't get the heading part to work. I down loaded the stack from revOnline and added my provisioning profile and then run it as is on my iPhone 4 (not 4S) with iOS 5.0.1 -- The location works just fine but the heading does not return any data. When I tap at "Test for Heading Support" I get a correct answer. But no heading information is returned after tapping "Start Heading?" or "Get Heading?" >> >> Lesson: >> http://lessons.runrev.com/s/lessons/m/4069/l/30379-how-do-i-get-the-location-and-use-the-digital-compass-in-ios >> >> Stack: >> http://revonline2.runrev.com/stack/599/Compass >> >> Can anyone else confirm this? >> >> I built my own stack as well and use the headingChanged and headingError at the card level and still can not get any data back. >> >> Thanks >> >> -- 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 mike at doub.com Sun Jan 15 11:45:19 2012 From: mike at doub.com (Michael Doub) Date: Sun, 15 Jan 2012 11:45:19 -0500 Subject: Reliability of setProp/getProp In-Reply-To: References: <1066FC70-27AF-4E89-985E-6782147D0A3F@doub.com> <3F788FC4-3452-4D06-9630-320970F1D31A@economy-x-talk.com> <757660CF-558E-4C99-8E56-4B6BAC5C019E@doub.com> Message-ID: > I don't understand "but I can add put statements... NOT in the getProp/setProp handlers". What do you mean? When I was not able to set a breakpoint. I started to selectively include "Put xxx" so I could track the progress of app. I included put statement in both the handlers and in the setProp script. I do not see any output from the put statement that is in the setProp script. > Surely, stacks can get corrupted, but I have seen this happen only once during the past few years. The reason was that the stack was moved from Windows to Mac and opened, while text fields and scripts were somehow not re-encoded. Ah ha. A new clue. This stack WAS moved to a windows system and brought back to mac! On 2012-01-15, at 9:35 AM, Mark Schonewille wrote: > Hi Mike, > > The debugger is not reliable to begin with, but there might be a valid reason why you can't set a breakpoint, e.g. because that line is commented out. > > I don't understand "but I can add put statements... NOT in the getProp/setProp handlers". What do you mean? > > It is possible that you have a character in your script that messes things up, e.g. a NULL character or a return (rather than linefeed) character. Set the script to empty and retype. Don't copy-paste. You might also use a hex editor to find such characters and tools like BBEdit and TextWrangler allow you to see invisible characters. > > Surely, stacks can get corrupted, but I have seen this happen only once during the past few years. The reason was that the stack was moved from Windows to Mac and opened, while text fields and scripts were somehow not re-encoded. > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! > > On 15 jan 2012, at 15:01, Michael Doub wrote: > >> I have a group "Pointer" that is made of 2 graphic objects. Within the script of group "Pointer", I have: >> >> setprop thecolor newcolor >> getProp thecolor >> setprop finger newloc >> >> I am not using them to set any persistent state but to control the color and location of the object itself. >> >> When this behaviour starts, I am not able to set a breakpoints, but I can add put statements and that handlers are getting called, but NOT in the getProp/setProp handlers. This app has been working for sometime now until I started making changes in totally unrelated areas of the code. I have gone back to the original working version twice now, trying to carefully make changes and testing trying to isolate what introduces the problem. >> >> I have also noticed that the debugger is off by several lines if you try single stepping. Can stacks get corrupted? >> >> -= Mike > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mike at doub.com Sun Jan 15 11:56:29 2012 From: mike at doub.com (Michael Doub) Date: Sun, 15 Jan 2012 11:56:29 -0500 Subject: Reliability of setProp/getProp In-Reply-To: References: <1066FC70-27AF-4E89-985E-6782147D0A3F@doub.com> <3F788FC4-3452-4D06-9630-320970F1D31A@economy-x-talk.com> <757660CF-558E-4C99-8E56-4B6BAC5C019E@doub.com> Message-ID: TextWrangler found Gremlins! Once removed, all seems to be back to normal. Mark, many thanks! Regards, Mike On 2012-01-15, at 11:45 AM, Michael Doub wrote: >> I don't understand "but I can add put statements... NOT in the getProp/setProp handlers". What do you mean? > > > When I was not able to set a breakpoint. I started to selectively include "Put xxx" so I could track the progress of app. I included put statement in both the handlers and in the setProp script. > I do not see any output from the put statement that is in the setProp script. > >> Surely, stacks can get corrupted, but I have seen this happen only once during the past few years. The reason was that the stack was moved from Windows to Mac and opened, while text fields and scripts were somehow not re-encoded. > > Ah ha. A new clue. This stack WAS moved to a windows system and brought back to mac! > > > > On 2012-01-15, at 9:35 AM, Mark Schonewille wrote: > >> Hi Mike, >> >> The debugger is not reliable to begin with, but there might be a valid reason why you can't set a breakpoint, e.g. because that line is commented out. >> >> I don't understand "but I can add put statements... NOT in the getProp/setProp handlers". What do you mean? >> >> It is possible that you have a character in your script that messes things up, e.g. a NULL character or a return (rather than linefeed) character. Set the script to empty and retype. Don't copy-paste. You might also use a hex editor to find such characters and tools like BBEdit and TextWrangler allow you to see invisible characters. >> >> Surely, stacks can get corrupted, but I have seen this happen only once during the past few years. The reason was that the stack was moved from Windows to Mac and opened, while text fields and scripts were somehow not re-encoded. >> >> -- >> Best regards, >> >> Mark Schonewille >> >> Economy-x-Talk Consulting and Software Engineering >> Homepage: http://economy-x-talk.com >> Twitter: http://twitter.com/xtalkprogrammer >> KvK: 50277553 >> >> Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! >> >> On 15 jan 2012, at 15:01, Michael Doub wrote: >> >>> I have a group "Pointer" that is made of 2 graphic objects. Within the script of group "Pointer", I have: >>> >>> setprop thecolor newcolor >>> getProp thecolor >>> setprop finger newloc >>> >>> I am not using them to set any persistent state but to control the color and location of the object itself. >>> >>> When this behaviour starts, I am not able to set a breakpoints, but I can add put statements and that handlers are getting called, but NOT in the getProp/setProp handlers. This app has been working for sometime now until I started making changes in totally unrelated areas of the code. I have gone back to the original working version twice now, trying to carefully make changes and testing trying to isolate what introduces the problem. >>> >>> I have also noticed that the debugger is off by several lines if you try single stepping. Can stacks get corrupted? >>> >>> -= Mike >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 mike at doub.com Sun Jan 15 11:59:59 2012 From: mike at doub.com (Michael Doub) Date: Sun, 15 Jan 2012 11:59:59 -0500 Subject: Reliability of setProp/getProp In-Reply-To: References: <1066FC70-27AF-4E89-985E-6782147D0A3F@doub.com> <3F788FC4-3452-4D06-9630-320970F1D31A@economy-x-talk.com> <757660CF-558E-4C99-8E56-4B6BAC5C019E@doub.com> Message-ID: <62439F5E-631F-4533-A267-D2F509D875D6@doub.com> Thanks Bernard, I know that I am not locking messages as I have not learned when and when not to do such a thing. Another on my list of things to learn about. I have started using the hard breakpoints. Regards, Mike On 2012-01-15, at 9:44 AM, Bernard Devlin wrote: > Are you locking the message path in some other handler (e.g. maybe one > that is done with 'send in time'). That might explain intermittent > behaviour. > > Also, there is a 'breakpoint' command that you can literally type as a > line in your handler. I've often (like almost always) seen red dot > breakpoints that will work the first time a piece of code is > breakpointed, but will not work if a change is made to the script, and > then the actions run again to get to that breakpoint. However, the > 'breakpoint' command has never not worked for me. > > Bernard > > On Sun, Jan 15, 2012 at 2:01 PM, Michael Doub wrote: >> I have a group "Pointer" that is made of 2 graphic objects. Within the script of group "Pointer", I have: >> >> setprop thecolor newcolor >> getProp thecolor >> setprop finger newloc >> >> I am not using them to set any persistent state but to control the color and location of the object itself. >> >> When this behaviour starts, I am not able to set a breakpoints, > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sun Jan 15 12:06:25 2012 From: mcgrath3 at mac.com (Thomas McGrath III) Date: Sun, 15 Jan 2012 12:06:25 -0500 Subject: Compass Lesson not working In-Reply-To: References: Message-ID: <517FB3A4-BB89-41C2-8FAC-32F82489831C@mac.com> John, There must be something different about the lessons stack. On the forums a few people have also had problems running it. I added all of my code to your stack and used your methods and all works great. I created a new stack and copied all of your elements and code and mine and it works great. I copied all of your code to the Lessons stack and no compass. Very strange indeed. -- Tom McGrath III http://lazyriver.on-rev.com 3mcgrath at comcast.net On Jan 14, 2012, at 3:52 PM, John Dixon wrote: > > I can confirm that the location & compass features both work.... > I sent a stack to your email address.. > > Dixie > >> There is a lesson at run rev for the Compass features on iOS, but I can't get the heading part to work. I down loaded the stack from revOnline and added my provisioning profile and then run it as is on my iPhone 4 (not 4S) with iOS 5.0.1 -- The location works just fine but the heading does not return any data. When I tap at "Test for Heading Support" I get a correct answer. But no heading information is returned after tapping "Start Heading?" or "Get Heading?" >> >> Lesson: >> http://lessons.runrev.com/s/lessons/m/4069/l/30379-how-do-i-get-the-location-and-use-the-digital-compass-in-ios >> >> Stack: >> http://revonline2.runrev.com/stack/599/Compass >> >> Can anyone else confirm this? >> >> I built my own stack as well and use the headingChanged and headingError at the card level and still can not get any data back. >> >> Thanks >> >> -- 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 gregory.lypny at videotron.ca Sun Jan 15 12:20:51 2012 From: gregory.lypny at videotron.ca (Gregory Lypny) Date: Sun, 15 Jan 2012 12:20:51 -0500 Subject: Getting the Date and Time From a Remote Computer Message-ID: Hello everyone, Is there a LiveCode handler that can be used to get the date and time from a remote Mac that has a static IP address? Regards, Gregory From bonnmike at gmail.com Sun Jan 15 12:31:21 2012 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 15 Jan 2012 10:31:21 -0700 Subject: Getting the Date and Time From a Remote Computer In-Reply-To: References: Message-ID: The easiest way I can think of would be to have the web server running and a page that returns the date and time. Alternatively you might be able to turn on the ntp server for your mac and then talk to that. I'm sure there are other ways too, but these are off the top of my head real quick. On Sun, Jan 15, 2012 at 10:20 AM, Gregory Lypny wrote: > Hello everyone, > > Is there a LiveCode handler that can be used to get the date and time from > a remote Mac that has a static IP address? > > Regards, > > Gregory > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sun Jan 15 12:31:41 2012 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Sun, 15 Jan 2012 09:31:41 -0800 Subject: Getting the Date and Time From a Remote Computer In-Reply-To: References: Message-ID: not too hard if you write a small app to live on the remote mac. Check out "sockets" in the dictionary and download Chatrev to see how they're used. http://bjoernke.com/index.irev?target=chatrev On 15 January 2012 09:20, Gregory Lypny wrote: > Hello everyone, > > Is there a LiveCode handler that can be used to get the date and time from > a remote Mac that has a static IP address? > > Regards, > > Gregory > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Sun Jan 15 12:53:44 2012 From: dunbarx at aol.com (dunbarx at aol.com) Date: Sun, 15 Jan 2012 12:53:44 -0500 (EST) Subject: Sorting Advice In-Reply-To: References: <4F0BBF88.2010400@comcast.net><4F0C70FB.2040006@comcast.net> Message-ID: <8CEA1C5C1D43FE6-1BE4-11F88@webmail-m026.sysops.aol.com> There is a more compact way. Read the notes in the dictionary about "sort". You may concatenate the sortKeys. This will at least reduce the command to a single line. Not sure if it is faster, though. Craig Newman -----Original Message----- From: Pete To: How to use LiveCode Sent: Tue, Jan 10, 2012 9:33 am Subject: Re: Sorting Advice Hi Marty, I'm not too familiar with the sort command but it sounds like you could use the each keyword and write a custom function to return the concatenated values of items 1 and 2 (zero padding item 2 so you could sort works on text), thus sorting in 1 pass. I have no idea whether it would be any quicker than two passes. Pete On Tue, Jan 10, 2012 at 9:10 AM, Marty Knapp wrote: > OK, so I'm good. Just though I might be missing something. Thanks Stephen. > > Marty > >> I think one has to make multiple passes - the doc say for "sort >> container": >> >> *The sort container command is a stable sort. This means that if the >> sortKey for two items or lines is the same, sorting does not change their >> order, so you can do two successive sorts to create subcategories within >> the major sort categories.* >> * >> * >> * Tip: To create a custom sort order, use the eachkeyword to pass each >> line >> or item to a custom function. The valuereturned by the function is used as >> the sort key for that line or item. Note that it is not currently possible >> to debug custom sort functions, and doing so could make the IDE unstable. >> It is recommended to use logging messages instead.* >> >> >> On 9 January 2012 20:33, Marty Knapp wrote: >> >> I have a list that I'm currently sorting as follows: >>> >>> --item 2 may be a word or a number >>> --item 1 is a date >>> >>> sort the lines of myList by item 2 of each --sort any words >>> alphabetically >>> sort the lines of myList numeric by item 2 of each --sort the numbers >>> (any >>> words go to the top of the list in the order provided in the first step) >>> sort the lines of myList dateTime by item 1 of each --sort by date >>> >>> While this gives me what I need, is there a faster way to do this? >>> >>> Thanks, >>> Marty >>> >> > ______________________________**_________________ > use-livecode mailing list > use-livecode 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 mwieder at ahsoftware.net Sun Jan 15 12:54:11 2012 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sun, 15 Jan 2012 09:54:11 -0800 Subject: Session strategies for liveCode server In-Reply-To: <1326635119304-4296900.post@n4.nabble.com> References: <4F12195B.9090503@tweedly.net> <890025C3-F956-49EA-B94A-BAD4341689DE@pacifier.com> <2D17D7CB-ADC1-428B-9E85-7470433A8F65@mac.com> <1326635119304-4296900.post@n4.nabble.com> Message-ID: <34263676187.20120115095411@ahsoftware.net> Martin- Sunday, January 15, 2012, 5:45:19 AM, you wrote: > It would be helpful if RunRev staff would post updates there about things > such as version changes to the On-rev Server or updates to the on-rev editor > etc. I have tried to post a few things and respond to posts when I can but > not many people use the forum. I forgot there was a forum there. Had to hunt around for my login information so I could get back in. I see the last announcement was over two years ago. At least PMs are allowed, which is more than I can say for the other forum board. -- -Mark Wieder mwieder at ahsoftware.net From mwieder at ahsoftware.net Sun Jan 15 13:01:17 2012 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sun, 15 Jan 2012 10:01:17 -0800 Subject: Reliability of setProp/getProp In-Reply-To: References: <1066FC70-27AF-4E89-985E-6782147D0A3F@doub.com> <3F788FC4-3452-4D06-9630-320970F1D31A@economy-x-talk.com> <757660CF-558E-4C99-8E56-4B6BAC5C019E@doub.com> Message-ID: <107264102812.20120115100117@ahsoftware.net> Mark- Sunday, January 15, 2012, 6:35:32 AM, you wrote: > Surely, stacks can get corrupted, but I have seen this happen > only once during the past few years. The reason was that the stack > was moved from Windows to Mac and opened, while text fields and > scripts were somehow not re-encoded. I have a corrupted stack which I have archived and treasure dearly because it's the only one I have ever seen. -- -Mark Wieder mwieder at ahsoftware.net From mwieder at ahsoftware.net Sun Jan 15 13:02:00 2012 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sun, 15 Jan 2012 10:02:00 -0800 Subject: Reliability of setProp/getProp In-Reply-To: References: <1066FC70-27AF-4E89-985E-6782147D0A3F@doub.com> <3F788FC4-3452-4D06-9630-320970F1D31A@economy-x-talk.com> <757660CF-558E-4C99-8E56-4B6BAC5C019E@doub.com> Message-ID: <146264146093.20120115100200@ahsoftware.net> Mike- Sunday, January 15, 2012, 8:56:29 AM, you wrote: > TextWrangler found Gremlins! Once removed, all seems to be back to normal. Yay! -- -Mark Wieder mwieder at ahsoftware.net From mcgrath3 at mac.com Sun Jan 15 13:08:18 2012 From: mcgrath3 at mac.com (Thomas McGrath III) Date: Sun, 15 Jan 2012 13:08:18 -0500 Subject: Determine 180 degree turn using compass Message-ID: <3B55C011-6A6A-4529-9D17-E218155E20CE@mac.com> OK, this is for the math experts here. Using a working Compass app I would like to determine when the phone is turned around from an initial starting point. So I am working out the best ways to do this. 1. Start by capturing the start heading 2. Store that in a global 3. Store that the start heading has been set 4. Using headingChanged capture the currentHeading at intervals 5. Check the new currentHeading against the start heading 6. If enough of a difference is detected then count that as a lap 7. Set the new currentHeading as the global heading 8. Using headingChanged capture the currentHeading at intervals 9. Repeat until stopped 10. return total lap count So this seems straight forward (if I haven't missed anything) And if I start at 10 degrees and turn right 170 now I am at 180. Good. I just subtract 10 from 180 and I know I have turned at least 170 degrees and can count that as a lap (give or take) BUT then the new starting point may not be right since I might be mid turn when the interval fires. And if the starting point is say 10 and I turn left 170 degrees and now I am at 200 and 10 - 200 is -190 but I have not really turned -190 but only 170 and again this may be incorrect based on when the sample interval was fired. So, It looks to me like I need to come up with a better way to estimate the general direction I am starting from and a better way to set the intervals. As well as figuring out the right way to handle the compass degrees when they pass 0/360. I have never had to do this before and would like some advice and feedback on what/how to get there. So far I started with this code after starting the compass heading capture: global myLapCountNumber on headingChanged put iphoneCurrentHeading() into tHeading lapCount tHeading["heading"] end headingChanged on lapCount pNum if pNum is not "" then if myLapCountNumber is not "" then if pNum > myLapCountNumber then if pNum - myLapCountNumber > 150 then answer pNum && "-" && myLapCountNumber && "= Lap Right +" put pNum into myLapCountNumber end if else -- pNum is less than myLapCountNumber if myLapCountNumber - pNum > 150 then answer myLapCountNumber && "-" && pNum && "= Lap Left -" put pNum into myLapCountNumber end if end if else put 0 into myLapCountNumber -- Needs changed to a sampling of the general direction end if end if end lapCount -- Tom McGrath III http://lazyriver.on-rev.com 3mcgrath at comcast.net From dunbarx at aol.com Sun Jan 15 13:24:20 2012 From: dunbarx at aol.com (dunbarx at aol.com) Date: Sun, 15 Jan 2012 13:24:20 -0500 (EST) Subject: Copy to Group problems In-Reply-To: References: <68A5B164-5F9D-42A2-BFDD-F3311978BC94@mac.com> Message-ID: <8CEA1CA08634EFD-1BE4-121AC@webmail-m026.sysops.aol.com> The keyword "last"is not stable with groups. I think this is the only object where this breaks down. See the dictionary.The workaround uses the "templateGroup": The "last" keyword is not stable when referring to groups. So if one creates several groups, referencing the "last" group may not return the group actual ly created last. Using the "templateGroup" is a workaround, since when creating a new group one can, for example, set the name of the templateGroup to something unique, and be able to find the last group by name. Also, trapping the "newGroup" message with an appropriate script can be used to find the last group. This is not an issue with other objects, Craig Newman -----Original Message----- From: Pete To: How to use LiveCode Sent: Fri, Jan 13, 2012 11:49 am Subject: Re: Copy to Group problems Not sure if you'll classify this as "help" but I've had problems in the past referring to "the last group" not returning what I considered to be the last group, although I can't explain what you see in your answer commands. The dictionary doesn't mention if the copy command returns the id of the copied control in the it variable - if it does, you could use that to refer to the newly copied group. I believe I ended up using the create command instead of copy, which does return the id in the it variable, and then making all my adjustments by referring to it. Good luck! On Fri, Jan 13, 2012 at 12:55 PM, user wrote: > Hi everyone, > > I have a script intended to add, name and position a label and field group > (which I refer to as a "doublet) into a group that already has a number of > such doublet groups. > > Here's the script: > > on addFldDoublet theGroup > put the number of grps in grp theGroup into lastDoublet > put the short name of grp lastDoublet of grp theGroup into lastName > put the left of grp lastName into newLeft > put (the bottom of grp lastName +2) into newTop > put lastName into nextName > set itemDelimiter to "_" > add 10 to last item of nextName > set itemDelimiter to "," > copy grp lastName to grp theGroup > set the name of the last grp to nextName > answer the short name of the last grp -- confirms the correct name > put the short name of the last grp into newGrp > answer newGrp -- confirms the correct name > set the left of grp newGrp to newLeft > set the top of grp newGrp to newTop > end addFldDoublet > > FYI - assume the name of grp lastDoublet is "DB_Doublet_160" > > Group newGrp is supposed to be "DB_Doublet_170" and this appears to be > confirmed by the two "answer" commands I've inserted in the script to > verify. > > But after the script runs, it turns out that the new group is also named > "DB_Doublet_160" instead of "DB_Doublet_170" (which does not seem to exist, > even though the second "answer" test shows that it did ), and the new group > is positioned right on top of the old group, and not offset to to newTop as > desired (2 pixels below the bottom of the old group. > > Anybody have any idea as to what is causing this script to not work as > intended? > > Thanks in advance for your help in this matter. > > Kind regards, > ALAN GAYNE > > _______________________________________________ > use-livecode mailing list > use-livecode 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 jacque at hyperactivesw.com Sun Jan 15 13:43:00 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 15 Jan 2012 12:43:00 -0600 Subject: Anyone successfully used Testflightapp.com? In-Reply-To: References: Message-ID: <4F131E34.3000401@hyperactivesw.com> On 1/15/12 4:00 AM, William de Smet wrote: > Hi there, > > I found TestFlightapp.com on the web to let beta testers test your app. > Has anyone any experience with this and successfully used it with an app > made with Livecode? > > While uploading my app I get an error with which seems to be related with > missing code from Xcode in the plist file. Stay tuned for a native LiveCode solution. ;) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at mollysrevenge.com Sun Jan 15 13:58:08 2012 From: pete at mollysrevenge.com (Pete) Date: Sun, 15 Jan 2012 10:58:08 -0800 Subject: Reading a standalone's info.plist file In-Reply-To: <95205336078.20120114174150@ahsoftware.net> References: <4F111C92.5000100@hyperactivesw.com> <95205336078.20120114174150@ahsoftware.net> Message-ID: Thanks Mark, I will take a look at the uRIP docs. However, I still prefer to get the version and copyright info I want from the info.plist. I just have this aversion to storing the same information in multiple places, especially if any of them have to be maintained manually. I know myself well enough to know that I WILL forget to update them! I plan on trying some code in a savingStandalone handler to get hold ot he version/copyright from the cRevStandalone custom property set and store it in my own custom properties. Meantime, grabbing the info from info.plist works just fine on OS X, just need to figure out where the equivalent location for it is under WIndows. Pete On Sat, Jan 14, 2012 at 5:41 PM, Mark Wieder wrote: > Pete- > > Saturday, January 14, 2012, 9:09:51 AM, you wrote: > > > I guess I prefer to get it from the > > plist file because I know if I put it into a custom property, I will > forget > > to do it at some point and then the version displayed in the Get Info > > window will be out of step with what's in my app's ABout dialog. > > That's the sort of thing the RunRevInteroperability Project set up the > uRIP custom property array for. For my projects I store things in the > stack custom properties like > > uRIP["version"] > uRIP["date"] > uRIP["author"] > uRIP["description"] > > and then I have functions that retrieve those and populate my About > box with them. > > http://tech.groups.yahoo.com/group/revInterop/ > > -- > -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 > > -- Pete Molly's Revenge From gregory.lypny at videotron.ca Sun Jan 15 14:02:17 2012 From: gregory.lypny at videotron.ca (Gregory Lypny) Date: Sun, 15 Jan 2012 14:02:17 -0500 Subject: Getting the Date and Time From a Remote Computer In-Reply-To: References: Message-ID: Thanks Mike and Stephen, I?ll give your suggestions a try. Gregory On Sun, Jan 15, 2012, at 1:00 PM, Mike Bonner wrote: > The easiest way I can think of would be to have the web server running and > a page that returns the date and time. Alternatively you might be able to > turn on the ntp server for your mac and then talk to that. > > I'm sure there are other ways too, but these are off the top of my head > real quick. And Stephen BarnCard wrote: > not too hard if you write a small app to live on the remote mac. Check out > "sockets" in the dictionary and download Chatrev to see how they're used. > > http://bjoernke.com/index.irev?target=chatrev > > On Sun, Jan 15, 2012 at 10:20 AM, Gregory Lypny > wrote: > >> Hello everyone, >> >> Is there a LiveCode handler that can be used to get the date and time from >> a remote Mac that has a static IP address? >> >> Regards, >> >> Gregory From bonnmike at gmail.com Sun Jan 15 14:07:59 2012 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 15 Jan 2012 12:07:59 -0700 Subject: Getting the Date and Time From a Remote Computer In-Reply-To: References: Message-ID: Had one more though in the same vein. I think Andre has a stack that is a basic http server. It would probably be easy to modify it so that the server itself could return your time/date info as well as any other system info you wanted to be able to get at remotely. And since it does its thing like a standard web server a simple get URL could do the job from your client app. On Sun, Jan 15, 2012 at 12:02 PM, Gregory Lypny wrote: > Thanks Mike and Stephen, > > I?ll give your suggestions a try. > > Gregory > > > On Sun, Jan 15, 2012, at 1:00 PM, Mike Bonner wrote: > > > The easiest way I can think of would be to have the web server running > and > > a page that returns the date and time. Alternatively you might be able > to > > turn on the ntp server for your mac and then talk to that. > > > > I'm sure there are other ways too, but these are off the top of my head > > real quick. > > And Stephen BarnCard wrote: > > > not too hard if you write a small app to live on the remote mac. Check > out > > "sockets" in the dictionary and download Chatrev to see how they're used. > > > > http://bjoernke.com/index.irev?target=chatrev > > > > > > > > On Sun, Jan 15, 2012 at 10:20 AM, Gregory Lypny > > wrote: > > > >> Hello everyone, > >> > >> Is there a LiveCode handler that can be used to get the date and time > from > >> a remote Mac that has a static IP address? > >> > >> Regards, > >> > >> Gregory > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sun Jan 15 14:52:33 2012 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 15 Jan 2012 12:52:33 -0700 Subject: Getting the Date and Time From a Remote Computer In-Reply-To: References: Message-ID: Yep the revonrockets and http stack by Andre works great and already has a sample of returning the time. It works great. The time example uses a .rev stack as a cgi. (look in the stacks folder) The stack script has examples of how to use the cgi stack. Currently it has a method for getting the internet time, but its easy to add your own for long time, long date, etc. Whatever you need. This means leaving the http stack running on the remote machine but it is so easy and works so well that its most likely worth it. If you want the stack and the rev on rockets stuff thats with it you can grab it here. http://www.andregarzia.com/download/revhttp.zip From capellan2000 at gmail.com Sun Jan 15 18:27:57 2012 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Sun, 15 Jan 2012 15:27:57 -0800 (PST) Subject: Compass Lesson not working In-Reply-To: References: Message-ID: <1326670077497-4298050.post@n4.nabble.com> Hi Thomas, Thomas McGrath III-3 wrote > > There is a lesson at run rev for the Compass features on iOS, > but I can't get the heading part to work. > [snip] > Could you post a comment at the end of the lesson, about your findings? In this way, others developers would know about this problem. By the way, I looked for the author name, but could not find it. Did I miss his/her name on the lesson page? Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Compass-Lesson-not-working-tp4295148p4298050.html Sent from the Revolution - User mailing list archive at Nabble.com. From stephenREVOLUTION2 at barncard.com Sun Jan 15 18:51:03 2012 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Sun, 15 Jan 2012 15:51:03 -0800 Subject: PHP and Livecode Server living together on Dreamhost. Message-ID: Hi Gang, I host many livecode-driven sites on *Dreamhost* using the * .htaccess*method, thanks to refinements developed by Andre Garzia a few months back. This way I don't have to touch Apache, and can't because it's a shared server. We couldn't get it to work on the VPS server there, as DH virtualize a lot of Apache stuff. So I put a short file at the top of every domain folder. this (along with another .htaccess file in cgi-bin) allows Livecode Server to run: Options +ExecCGI FollowSymLinks AddHandler livecode-script .lc .irev DirectoryIndex index.irev index.lc index.php index.html Action livecode-script /cgi-bin/livecode-server/livecode-server This is a modification of a script provided in the docs. however this script seems to disallow the running of php scripts at the same time. When this top *.htaccess *script is removed then PHP works. Is there something I'm missing? Surely it's something I said. thanks in advance for any help. sqb -- Stephen Barncard San Francisco Ca. USA more about sqb From jmyepes at mac.com Sun Jan 15 19:27:09 2012 From: jmyepes at mac.com (JosepM) Date: Sun, 15 Jan 2012 16:27:09 -0800 (PST) Subject: [Datagrid] Don't scroll to edit the cell Message-ID: <1326673629946-4298151.post@n4.nabble.com> Hi, I detected one weird issue with the datagrid. I have a datagrid with many cols, all editable. Some of these col left outside the visible area, so the user must scroll to the column and double-click to edit the content. If I edit the last columns the datagrid don't move the show the entire cell, I can see the editable cell active (with the blue border) but not the entire cell so I move the scroll, then the datagrid jump the the first column. So never I can edit the columns that left outside the visible area. Any idea? Salut, Josep M -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Datagrid-Don-t-scroll-to-edit-the-cell-tp4298151p4298151.html Sent from the Revolution - User mailing list archive at Nabble.com. From harrison at all-auctions.com Sun Jan 15 19:44:09 2012 From: harrison at all-auctions.com (Rick Harrison) Date: Sun, 15 Jan 2012 19:44:09 -0500 Subject: BinaryEncode In-Reply-To: References: Message-ID: <962B660D-C512-40DD-BD2B-BD004C915185@all-auctions.com> I was trying some tests with binary numbers. If I put in "w" and convert it to binary I get "01110111" which is correct. If I then write it out to a file, and read it back in again and then convert it back I get "01110111" correctly, but when converted to a character I get a "_" which is completely wrong. Thanks, Rick Code follows: set the defaultFolder to specialFolderPath ("desktop") put "w" into varText answer "varText = " & varText repeat for each char tChar in varText put charToNum(tChar) into theNum put baseConvert(theNum,10,2) into tBaseConverted put char -8 to -1 of ("00000000" & tBaseConverted ) into tBaseConverted put tBaseConverted into tConverted end repeat answer "tConverted = " & tConverted put binaryencode("a*",tConverted) into VarBinaryCodedResult put the defaultFolder & "/" & "TestFile" into TestFileName open file TestFileName for binary write write VarBinaryCodedResult to file TestFileName close file TestFileName open file TestFileName for binary read read from file TestFileName until EOF close file TestFileName put it into VarTestFileData put binaryDecode(a8,VarTestFileData,VarDecoded) into VarDisplayData answer "VarDecoded = " & VarDecoded answer "VarDisplayData = " & VarDisplayData put the numToChar of VarDecoded into CharToDisplay answer "CharToDisplay = " & CharToDisplay From capellan2000 at gmail.com Sun Jan 15 20:23:12 2012 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Sun, 15 Jan 2012 17:23:12 -0800 (PST) Subject: Zen of Computer Programming In-Reply-To: References: <1326128391945-4279111.post@n4.nabble.com> Message-ID: <1326676992367-4298242.post@n4.nabble.com> Hi Ren? Ren? Micout-2 wrote > > This was in France in 1993 ! > And it is not the really story... > During his holidays in his granMother's house in French mountain > "Pyr?n?es" > he write 60 pages of math and algorithms. After his holidays he write the > program in C++ on his computer... > Sorry this page is in French : > http://www.alquier.org/eerie/MagBesse/magb13/6.pdf > Many Thanks for posting a link to this document! Hmmm... so this legend was only a marketing trick. Who could have know at that time? I found interesting that this article starts talking about the Quantel workstation. http://en.wikipedia.org/wiki/Quantel_Paintbox Look at this famous sample of work created in a Quantel Paintbox: http://queenvinyls.files.wordpress.com/2007/12/the-miracle.jpg Quantel tried, without sucess, to stop Adobe from selling Photoshop. Just like Apple is trying to stop Samsung (their hardware partner) and many others Tech companies have tried in their moment: IBM vs. Compaq... Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Zen-of-Computer-Programming-tp4279111p4298242.html Sent from the Revolution - User mailing list archive at Nabble.com. From mikekann at yahoo.com Sun Jan 15 21:28:45 2012 From: mikekann at yahoo.com (Michael Kann) Date: Sun, 15 Jan 2012 18:28:45 -0800 (PST) Subject: BinaryEncode In-Reply-To: <962B660D-C512-40DD-BD2B-BD004C915185@all-auctions.com> Message-ID: <1326680925.4614.YahooMailClassic@web161605.mail.bf1.yahoo.com> Rick, You obviously know much more about binary numbers than I do, but I'll give it a try. I think that the essence of the problem is demonstrated in the following snippet: on mouseUp put numToChar("01110111") into x put numToChar(119) into y put x && y into fld 1 end mouseUp fld 1 will then contain "_ w" --- On Sun, 1/15/12, Rick Harrison wrote: From: Rick Harrison Subject: BinaryEncode To: "How to use LiveCode" Date: Sunday, January 15, 2012, 6:44 PM I was trying some tests with binary numbers. If I put in "w" and convert it to binary I get "01110111" which is correct.? If I then write it out to a file, and read it back in again and then convert it back I get "01110111" correctly, but when converted to a character I get a "_" which is completely wrong. Thanks, Rick Code follows: set the defaultFolder to specialFolderPath ("desktop") ???put "w" into varText ???answer "varText = " & varText? ? ???repeat for each char tChar in varText ? ? ? ? ???put charToNum(tChar) into theNum ? ? ? ? ???put baseConvert(theNum,10,2) into tBaseConverted ? ? ? ? ???put char -8 to -1 of ("00000000" & tBaseConverted ) into tBaseConverted ? ? ? ? ???put tBaseConverted into tConverted ? ???end repeat ? ???answer "tConverted = " & tConverted??? ???put binaryencode("a*",tConverted) into VarBinaryCodedResult ???put the defaultFolder & "/" & "TestFile" into TestFileName? ???open file TestFileName for binary write ???write VarBinaryCodedResult to file TestFileName ???close file TestFileName??? ???open file TestFileName for binary read ???read from file TestFileName until EOF ???close file TestFileName ? ? put it into VarTestFileData? ? ? put binaryDecode(a8,VarTestFileData,VarDecoded) into VarDisplayData ? ? answer "VarDecoded = " & VarDecoded ? ? answer "VarDisplayData = " & VarDisplayData ? ? put the numToChar of VarDecoded into CharToDisplay ? ? answer "CharToDisplay = " & CharToDisplay _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From mikekann at yahoo.com Sun Jan 15 21:33:45 2012 From: mikekann at yahoo.com (Michael Kann) Date: Sun, 15 Jan 2012 18:33:45 -0800 (PST) Subject: PHP and Livecode Server living together on Dreamhost. In-Reply-To: Message-ID: <1326681225.86819.YahooMailClassic@web161601.mail.bf1.yahoo.com> -- You might have to let php in on the fun in the following line: AddHandler livecode-script .lc .irev http://www.webmasterworld.com/php/3127670.htm --- On Sun, 1/15/12, stephen barncard wrote: From: stephen barncard Subject: PHP and Livecode Server living together on Dreamhost. To: "How to use LiveCode" Date: Sunday, January 15, 2012, 5:51 PM Hi Gang, I host many livecode-driven sites on *Dreamhost* using the * .htaccess*method, thanks to refinements developed by Andre Garzia a few months back. This way I don't have to touch Apache, and can't because it's a shared server. We couldn't get it to work on the VPS server there, as DH virtualize a lot of Apache stuff. So I put a short file at the top of every domain folder. this (along with another .htaccess file in cgi-bin) allows Livecode Server to run: Options +ExecCGI FollowSymLinks AddHandler livecode-script .lc .irev DirectoryIndex index.irev index.lc index.php index.html Action livecode-script /cgi-bin/livecode-server/livecode-server This is a modification of a script provided in the docs. however this script seems to disallow the running of php scripts at the same time. When this top *.htaccess *script is removed then PHP works. Is there something I'm missing? Surely it's something I said. thanks in advance for any help. 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 mikekann at yahoo.com Sun Jan 15 21:50:03 2012 From: mikekann at yahoo.com (Michael Kann) Date: Sun, 15 Jan 2012 18:50:03 -0800 (PST) Subject: PHP and Livecode Server living together on Dreamhost. In-Reply-To: Message-ID: <1326682203.96269.YahooMailClassic@web161602.mail.bf1.yahoo.com> Stephen, It looks like you just stack up AddHandler statements for each language: AddHandler livecode-script .lc .irev AddHandler php-cgi .php -- good webpage http://www.askapache.com/htaccess/ultimate-htaccess-file-sample.html Mike --- On Sun, 1/15/12, stephen barncard wrote: From: stephen barncard Subject: PHP and Livecode Server living together on Dreamhost. To: "How to use LiveCode" Date: Sunday, January 15, 2012, 5:51 PM Hi Gang, I host many livecode-driven sites on *Dreamhost* using the * .htaccess*method, thanks to refinements developed by Andre Garzia a few months back. This way I don't have to touch Apache, and can't because it's a shared server. We couldn't get it to work on the VPS server there, as DH virtualize a lot of Apache stuff. So I put a short file at the top of every domain folder. this (along with another .htaccess file in cgi-bin) allows Livecode Server to run: Options +ExecCGI FollowSymLinks AddHandler livecode-script .lc .irev DirectoryIndex index.irev index.lc index.php index.html Action livecode-script /cgi-bin/livecode-server/livecode-server This is a modification of a script provided in the docs. however this script seems to disallow the running of php scripts at the same time. When this top *.htaccess *script is removed then PHP works. Is there something I'm missing? Surely it's something I said. thanks in advance for any help. 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 Sun Jan 15 21:50:59 2012 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Sun, 15 Jan 2012 18:50:59 -0800 Subject: PHP and Livecode Server living together on Dreamhost. In-Reply-To: <1326681225.86819.YahooMailClassic@web161601.mail.bf1.yahoo.com> References: <1326681225.86819.YahooMailClassic@web161601.mail.bf1.yahoo.com> Message-ID: Thanks Michael - that did the trick. This saved me a lot of searching... I guess making any statement would wipe out params set at a higher level. Hierarchal - like css. this works all around - everybody's happy Options +ExecCGI FollowSymLinks AddHandler livecode-script .lc .irev AddHandler php5-script php htm html DirectoryIndex index.irev index.lc index.php index.html Action livecode-script /cgi-bin/livecode-server/livecode-server On 15 January 2012 18:33, Michael Kann wrote: > -- You might have to let php in on the fun in the following line: > AddHandler livecode-script .lc .irev > > http://www.webmasterworld.com/php/3127670.htm > > --- On Sun, 1/15/12, stephen barncard > wrote: > > From: stephen barncard > Subject: PHP and Livecode Server living together on Dreamhost. > To: "How to use LiveCode" > Date: Sunday, January 15, 2012, 5:51 PM > > Hi Gang, > > I host many livecode-driven sites on *Dreamhost* using the * > .htaccess*method, thanks to refinements developed by Andre Garzia a > few months back. > This way I don't have to touch Apache, and can't because it's a shared > server. We couldn't get it to work on the VPS server there, as DH > virtualize a lot of Apache stuff. > > So I put a short file at the top of every domain folder. this (along with > another .htaccess file in cgi-bin) allows Livecode Server to run: > > Options +ExecCGI FollowSymLinks > AddHandler livecode-script .lc .irev > DirectoryIndex index.irev index.lc index.php index.html > Action livecode-script /cgi-bin/livecode-server/livecode-server > > This is a modification of a script provided in the docs. > > however this script seems to disallow the running of php scripts at the > same time. > When this top *.htaccess *script is removed then PHP works. > > Is there something I'm missing? > Surely it's something I said. > > > thanks in advance for any help. > > sqb > -- > > > > Stephen Barncard San Francisco Ca. USA more about sqb From stephenREVOLUTION2 at barncard.com Sun Jan 15 22:17:38 2012 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Sun, 15 Jan 2012 19:17:38 -0800 Subject: PHP and Livecode Server living together on Dreamhost. In-Reply-To: <1326682203.96269.YahooMailClassic@web161602.mail.bf1.yahoo.com> References: <1326682203.96269.YahooMailClassic@web161602.mail.bf1.yahoo.com> Message-ID: going into my script scrapbook - thanks On 15 January 2012 18:50, Michael Kann wrote: > Stephen, > > It looks like you just stack up AddHandler statements for each language: > > AddHandler livecode-script .lc .irev > AddHandler php-cgi .php > > -- good webpage > http://www.askapache.com/htaccess/ultimate-htaccess-file-sample.html > > Mike > Stephen Barncard San Francisco Ca. USA more about sqb From mikekann at yahoo.com Sun Jan 15 22:39:53 2012 From: mikekann at yahoo.com (Michael Kann) Date: Sun, 15 Jan 2012 19:39:53 -0800 (PST) Subject: BinaryEncode In-Reply-To: <1326680925.4614.YahooMailClassic@web161605.mail.bf1.yahoo.com> Message-ID: <1326685193.40350.YahooMailClassic@web161603.mail.bf1.yahoo.com> Rick, A little more explanation. The numToChar function takes an integer. In your case if you feed the function the integer 119 then it spits out "w" -- which is what you want. At the end of your script you ended up with "01110111", which is the way we "spell" the binary number 119 -- using ones and zeroes. But the numToChar function only works on integers, not the ones and zeroes. So you need one more conversion step to get back to the integer before you use the numToChar function. It looks like if you feed the numToChar nonsense, you get nonsense back without any warning. Mike on mouseUp put numToChar("01110111") into x put numToChar(119) into y put x && y into fld 1 end mouseUp fld 1 will then contain "_ w" --- On Sun, 1/15/12, Rick Harrison wrote: From: Rick Harrison Subject: BinaryEncode To: "How to use LiveCode" Date: Sunday, January 15, 2012, 6:44 PM I was trying some tests with binary numbers. If I put in "w" and convert it to binary I get "01110111" which is correct.? If I then write it out to a file, and read it back in again and then convert it back I get "01110111" correctly, but when converted to a character I get a "_" which is completely wrong. Thanks, Rick Code follows: set the defaultFolder to specialFolderPath ("desktop") ???put "w" into varText ???answer "varText = " & varText? ? ???repeat for each char tChar in varText ? ? ? ? ???put charToNum(tChar) into theNum ? ? ? ? ???put baseConvert(theNum,10,2) into tBaseConverted ? ? ? ? ???put char -8 to -1 of ("00000000" & tBaseConverted ) into tBaseConverted ? ? ? ? ???put tBaseConverted into tConverted ? ???end repeat ? ???answer "tConverted = " & tConverted??? ???put binaryencode("a*",tConverted) into VarBinaryCodedResult ???put the defaultFolder & "/" & "TestFile" into TestFileName? ???open file TestFileName for binary write ???write VarBinaryCodedResult to file TestFileName ???close file TestFileName??? ???open file TestFileName for binary read ???read from file TestFileName until EOF ???close file TestFileName ? ? put it into VarTestFileData? ? ? put binaryDecode(a8,VarTestFileData,VarDecoded) into VarDisplayData ? ? answer "VarDecoded = " & VarDecoded ? ? answer "VarDisplayData = " & VarDisplayData ? ? put the numToChar of VarDecoded into CharToDisplay ? ? answer "CharToDisplay = " & CharToDisplay _______________________________________________ use-livecode mailing list use-livecode 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 Sun Jan 15 22:53:55 2012 From: andre at andregarzia.com (Andre Garzia) Date: Mon, 16 Jan 2012 01:53:55 -0200 Subject: PHP and Livecode Server living together on Dreamhost. In-Reply-To: References: <1326681225.86819.YahooMailClassic@web161601.mail.bf1.yahoo.com> Message-ID: On Mon, Jan 16, 2012 at 12:50 AM, stephen barncard wrote: > Thanks Michael - that did the trick. ?This saved me a lot of searching... > I guess making any statement would wipe out params set at a higher level. > Hierarchal - like css. > this works all around - everybody's happy > > Options +ExecCGI FollowSymLinks > AddHandler livecode-script .lc .irev > AddHandler php5-script php htm html > DirectoryIndex index.irev index.lc index.php index.html WARNING!!!!! NEVER EVER do: AddHandler php5-script php htm html This will allow execution of PHP code inside HTML files, you don't want that. Use: AddHandler php5-script php So that only PHP files ending in .php can execute PHP code. With the former, you open yourself to potential security hazards. > Action livecode-script /cgi-bin/livecode-server/livecode-server > > > On 15 January 2012 18:33, Michael Kann wrote: > >> -- You might have to let php in on the fun in the following line: >> AddHandler livecode-script .lc .irev >> >> http://www.webmasterworld.com/php/3127670.htm >> >> --- On Sun, 1/15/12, stephen barncard >> wrote: >> >> From: stephen barncard >> Subject: PHP and Livecode Server living together on Dreamhost. >> To: "How to use LiveCode" >> Date: Sunday, January 15, 2012, 5:51 PM >> >> Hi Gang, >> >> I host many livecode-driven sites on *Dreamhost* using the * >> .htaccess*method, thanks to refinements developed by Andre Garzia a >> few months back. >> This way I don't have to touch Apache, and can't because it's a shared >> server. We couldn't get it to work on the VPS server there, as DH >> virtualize a lot of Apache stuff. >> >> So I put a short file at the top of every domain folder. this (along with >> another .htaccess file in cgi-bin) allows Livecode Server to run: >> >> Options +ExecCGI FollowSymLinks >> AddHandler livecode-script .lc .irev >> DirectoryIndex index.irev index.lc index.php index.html >> Action livecode-script /cgi-bin/livecode-server/livecode-server >> >> This is a modification of a script provided in the docs. >> >> however this script seems to disallow the running of php scripts at the >> same time. >> When this top *.htaccess *script is removed then PHP works. >> >> Is there something I'm missing? >> Surely it's something I said. >> >> >> thanks in advance for any help. >> >> 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 -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. From revdev at pdslabs.net Sun Jan 15 23:42:03 2012 From: revdev at pdslabs.net (Phil Davis) Date: Sun, 15 Jan 2012 20:42:03 -0800 Subject: [on-rev] LC cron jobs? Message-ID: <4F13AA9B.4080208@pdslabs.net> Hi folks, Have you succeeded in using a .lc script as the thing to be run in a cron job on the on-rev server? I tried it but am apparently not holding my mouth right. I get a syntax error on line 1: the " References: <1326685193.40350.YahooMailClassic@web161603.mail.bf1.yahoo.com> Message-ID: <7DB386F3-894A-481A-9CD8-CAC406622E4D@all-auctions.com> Hi Michael, Ok, I'll try to put in that missing step. Thank you for taking a look at the code, and making your suggestion for the correction. Rick On Jan 15, 2012, at 10:39 PM, Michael Kann wrote: > Rick, > > A little more explanation. The numToChar function takes an integer. In your case if you feed the function the integer 119 then it spits out "w" -- which is what you want. At the end of your script you ended up with "01110111", which is the way we "spell" the binary number 119 -- using ones and zeroes. But the numToChar function only works on integers, not the ones and zeroes. So you need one more conversion step to get back to the integer before you use the numToChar function. > > It looks like if you feed the numToChar nonsense, you get nonsense back without any warning. > > Mike > > > on mouseUp > put numToChar("01110111") into x > put numToChar(119) into y > put x && y into fld 1 > end mouseUp > > fld 1 will then contain "_ w" > From kray at sonsothunder.com Sun Jan 15 23:59:16 2012 From: kray at sonsothunder.com (Ken Ray) Date: Sun, 15 Jan 2012 22:59:16 -0600 Subject: Determine 180 degree turn using compass In-Reply-To: <3B55C011-6A6A-4529-9D17-E218155E20CE@mac.com> References: <3B55C011-6A6A-4529-9D17-E218155E20CE@mac.com> Message-ID: <37D2A7DE-7A35-4075-ACE5-FCF6CF784FF3@sonsothunder.com> > And if the starting point is say 10 and I turn left 170 degrees and now I am at 200 and 10 - 200 is -190 but I have not really turned -190 but only 170 and again this may be incorrect based on when the sample interval was fired. Actually -190 *is* 170, if you approach it as "if the number is negative, then subtract abs(it) from 360": if tDegrees < 0 then put (360 - tDegrees) into tDegrees :D Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From kray at sonsothunder.com Mon Jan 16 00:00:38 2012 From: kray at sonsothunder.com (Ken Ray) Date: Sun, 15 Jan 2012 23:00:38 -0600 Subject: Determine 180 degree turn using compass In-Reply-To: <37D2A7DE-7A35-4075-ACE5-FCF6CF784FF3@sonsothunder.com> References: <3B55C011-6A6A-4529-9D17-E218155E20CE@mac.com> <37D2A7DE-7A35-4075-ACE5-FCF6CF784FF3@sonsothunder.com> Message-ID: <4911317D-AF5B-4EE7-A2D7-9389A9170AC3@sonsothunder.com> On Jan 15, 2012, at 10:59 PM, Ken Ray wrote: >> And if the starting point is say 10 and I turn left 170 degrees and now I am at 200 and 10 - 200 is -190 but I have not really turned -190 but only 170 and again this may be incorrect based on when the sample interval was fired. > > Actually -190 *is* 170, if you approach it as "if the number is negative, then subtract abs(it) from 360": > > if tDegrees < 0 then put (360 - tDegrees) into tDegrees Whoops! I meant: if tDegrees < 0 then put (360 - abs(tDegrees)) into tDegrees Sorry about that? Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From mazzapaoloitaly at gmail.com Mon Jan 16 00:51:24 2012 From: mazzapaoloitaly at gmail.com (Paolo Mazza) Date: Mon, 16 Jan 2012 06:51:24 +0100 Subject: Access data from images in the roll Message-ID: <6DB4715D-3AE9-4EA0-BAC9-C9E25BD1B779@gmail.com> How to access data (date time and position) from images in the iphone image roll? Any idea? Thanks a lot Paolo Mazza From m.schonewille at economy-x-talk.com Mon Jan 16 05:51:06 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Mon, 16 Jan 2012 11:51:06 +0100 Subject: [on-rev] LC cron jobs? In-Reply-To: <4F13AA9B.4080208@pdslabs.net> References: <4F13AA9B.4080208@pdslabs.net> Message-ID: <13F34A1C-B17C-43CF-834E-E9FE2E9B6E49@economy-x-talk.com> Hi Phil, A cron job needs a correct terminal command. If you can type it in your terminal (e.g. over ssh) and don't need to enter a password and other additional information then you can also use it as a cron job. I wonder if it would work if you start your script with #!/path/to/lc/server A cgi script should include a path too: #!/path/to/cgi/engine put "hello world" -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! On 16 jan 2012, at 05:42, Phil Davis wrote: > Hi folks, > > Have you succeeded in using a .lc script as the thing to be run in a cron job on the on-rev server? I tried it but am apparently not holding my mouth right. I get a syntax error on line 1: the " > I even reverted to trying to run a .cgi script with Rev 3.5 as the engine and no joy there either. > > Thanks for any wisdom you may share on the subject. > > -- > Phil Davis From andre at andregarzia.com Mon Jan 16 06:16:15 2012 From: andre at andregarzia.com (Andre Garzia) Date: Mon, 16 Jan 2012 09:16:15 -0200 Subject: [on-rev] LC cron jobs? In-Reply-To: <13F34A1C-B17C-43CF-834E-E9FE2E9B6E49@economy-x-talk.com> References: <4F13AA9B.4080208@pdslabs.net> <13F34A1C-B17C-43CF-834E-E9FE2E9B6E49@economy-x-talk.com> Message-ID: You can also create a lc script and call it with curl such as curl http://myserver/mycron.lc This way, you don't need to know the path to the engine. On Mon, Jan 16, 2012 at 8:51 AM, Mark Schonewille wrote: > Hi Phil, > > A cron job needs a correct terminal command. If you can type it in your terminal (e.g. over ssh) and don't need to enter a password and other additional information then you can also use it as a cron job. I wonder if it would work if you start your script with > > #!/path/to/lc/server > > > A cgi script should include a path too: > > #!/path/to/cgi/engine > put "hello world" > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! > > On 16 jan 2012, at 05:42, Phil Davis wrote: > >> Hi folks, >> >> Have you succeeded in using a .lc script as the thing to be run in a cron job on the on-rev server? I tried it but am apparently not holding my mouth right. I get a syntax error on line 1: the "> >> I even reverted to trying to run a .cgi script with Rev 3.5 as the engine and no joy there either. >> >> Thanks for any wisdom you may share on the subject. >> >> -- >> Phil Davis > > > _______________________________________________ > use-livecode mailing list > use-livecode 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. http://fon.nu -- minimalist url shortening service. From revolution at derbrill.de Mon Jan 16 09:15:16 2012 From: revolution at derbrill.de (Malte Brill) Date: Mon, 16 Jan 2012 15:15:16 +0100 Subject: Session strategies for liveCode server In-Reply-To: References: Message-ID: <06D9A627-970A-4CD0-9450-450E7242CE46@derbrill.de> Thank you all for the feedback. This is on a LAN and I will be able to use the 5.x engine there, so it seems $_session will be my friend. Will need to put a little work into it. Alex, facebook authentication sounds interesting, however, will not be something I can do for this project. for others however, I am more than interested :-) All the best, Malte From pmbrig at gmail.com Mon Jan 16 09:20:34 2012 From: pmbrig at gmail.com (Peter M. Brigham, MD) Date: Mon, 16 Jan 2012 09:20:34 -0500 Subject: Determine 180 degree turn using compass In-Reply-To: <4911317D-AF5B-4EE7-A2D7-9389A9170AC3@sonsothunder.com> References: <3B55C011-6A6A-4529-9D17-E218155E20CE@mac.com> <37D2A7DE-7A35-4075-ACE5-FCF6CF784FF3@sonsothunder.com> <4911317D-AF5B-4EE7-A2D7-9389A9170AC3@sonsothunder.com> Message-ID: ... or just: if tDegrees < 0 then put (360 + tDegrees) into tDegrees or, with no conditional at all: put (360 + tDegrees) wrap 360 into tDegrees -- works for all values, positive or negative -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Jan 16, 2012, at 12:00 AM, Ken Ray wrote: > > On Jan 15, 2012, at 10:59 PM, Ken Ray wrote: > >>> And if the starting point is say 10 and I turn left 170 degrees and now I am at 200 and 10 - 200 is -190 but I have not really turned -190 but only 170 and again this may be incorrect based on when the sample interval was fired. >> >> Actually -190 *is* 170, if you approach it as "if the number is negative, then subtract abs(it) from 360": >> >> if tDegrees < 0 then put (360 - tDegrees) into tDegrees > > Whoops! I meant: > > if tDegrees < 0 then put (360 - abs(tDegrees)) into tDegrees > > Sorry about that? > > > Ken Ray > Sons of Thunder Software, Inc. > Email: kray at sonsothunder.com > Web Site: http://www.sonsothunder.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 WSUMNER at dom.wustl.edu Mon Jan 16 09:31:26 2012 From: WSUMNER at dom.wustl.edu (Sumner, Walt) Date: Mon, 16 Jan 2012 08:31:26 -0600 Subject: Determine 180 degree turn using compass Message-ID: Tim, Does a lap potentially include a figure 8? You will be on the same heading twice per lap in a figure 8, but you could monitor the sweep of headings to capture that possibility. Maybe a lap requires a reasonable progression through southern, eastern, northern, and western headings. --WS Message: 3 Date: Sun, 15 Jan 2012 13:08:18 -0500 From: Thomas McGrath III To: How to use LiveCode Subject: Determine 180 degree turn using compass Message-ID: <3B55C011-6A6A-4529-9D17-E218155E20CE at mac.com> Content-Type: text/plain; CHARSET=US-ASCII OK, this is for the math experts here. Using a working Compass app I would like to determine when the phone is turned around from an initial starting point. So I am working out the best ways to do this. 1. Start by capturing the start heading 2. Store that in a global 3. Store that the start heading has been set 4. Using headingChanged capture the currentHeading at intervals 5. Check the new currentHeading against the start heading 6. If enough of a difference is detected then count that as a lap 7. Set the new currentHeading as the global heading 8. Using headingChanged capture the currentHeading at intervals 9. Repeat until stopped 10. return total lap count So this seems straight forward (if I haven't missed anything) And if I start at 10 degrees and turn right 170 now I am at 180. Good. I just subtract 10 from 180 and I know I have turned at least 170 degrees and can count that as a lap (give or take) BUT then the new starting point may not be right since I might be mid turn when the interval fires. And if the starting point is say 10 and I turn left 170 degrees and now I am at 200 and 10 - 200 is -190 but I have not really turned -190 but only 170 and again this may be incorrect based on when the sample interval was fired. So, It looks to me like I need to come up with a better way to estimate the general direction I am starting from and a better way to set the intervals. As well as figuring out the right way to handle the compass degrees when they pass 0/360. I have never had to do this before and would like some advice and feedback on what/how to get there. So far I started with this code after starting the compass heading capture: global myLapCountNumber on headingChanged put iphoneCurrentHeading() into tHeading lapCount tHeading["heading"] end headingChanged on lapCount pNum if pNum is not "" then if myLapCountNumber is not "" then if pNum > myLapCountNumber then if pNum - myLapCountNumber > 150 then answer pNum && "-" && myLapCountNumber && "= Lap Right +" put pNum into myLapCountNumber end if else -- pNum is less than myLapCountNumber if myLapCountNumber - pNum > 150 then answer myLapCountNumber && "-" && pNum && "= Lap Left -" put pNum into myLapCountNumber end if end if else put 0 into myLapCountNumber -- Needs changed to a sampling of the general direction end if end if end lapCount -- Tom McGrath III http://lazyriver.on-rev.com 3mcgrath at comcast.net From bonnmike at gmail.com Mon Jan 16 09:38:36 2012 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 16 Jan 2012 07:38:36 -0700 Subject: [on-rev] LC cron jobs? In-Reply-To: References: <4F13AA9B.4080208@pdslabs.net> <13F34A1C-B17C-43CF-834E-E9FE2E9B6E49@economy-x-talk.com> Message-ID: If you don't want toe first line #! to output you can do another method. Use a shell script with #!/bin/bash (wherever bash resides) then /path/to/livecode scripttorun Otherwise (unless they've changed things in the recent versions) lc will output the #! line as part of the output. On Mon, Jan 16, 2012 at 4:16 AM, Andre Garzia wrote: > You can also create a lc script and call it with curl such as > > curl http://myserver/mycron.lc > > This way, you don't need to know the path to the engine. > > On Mon, Jan 16, 2012 at 8:51 AM, Mark Schonewille > wrote: > > Hi Phil, > > > > A cron job needs a correct terminal command. If you can type it in your > terminal (e.g. over ssh) and don't need to enter a password and other > additional information then you can also use it as a cron job. I wonder if > it would work if you start your script with > > > > #!/path/to/lc/server > > > > > > A cgi script should include a path too: > > > > #!/path/to/cgi/engine > > put "hello world" > > > > -- > > Best regards, > > > > Mark Schonewille > > > > Economy-x-Talk Consulting and Software Engineering > > Homepage: http://economy-x-talk.com > > Twitter: http://twitter.com/xtalkprogrammer > > KvK: 50277553 > > > > Become our partner in sales http://qery.us/1bq Start selling Color > Converter today. 20% commission! > > > > On 16 jan 2012, at 05:42, Phil Davis wrote: > > > >> Hi folks, > >> > >> Have you succeeded in using a .lc script as the thing to be run in a > cron job on the on-rev server? I tried it but am apparently not holding my > mouth right. I get a syntax error on line 1: the " .lc and .cgi as the file extension with equal non-success. > >> > >> I even reverted to trying to run a .cgi script with Rev 3.5 as the > engine and no joy there either. > >> > >> Thanks for any wisdom you may share on the subject. > >> > >> -- > >> Phil Davis > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode 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. > http://fon.nu -- minimalist url shortening service. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From iowahengst at mac.com Mon Jan 16 09:52:59 2012 From: iowahengst at mac.com (Randy Hengst) Date: Mon, 16 Jan 2012 08:52:59 -0600 Subject: Visual Effects in LC 5.0.2 Message-ID: Hi All, I'm playing around with visual effects. Can anyone tell me why the below won't work for the mouseUp when both handlers are placed in the same button? on mouseDown lock screen for visual effect set the visible of graphic "Chip02" to not the visible of graphic "Chip02" unlock screen with visual effect "dissolve" fast end mouseDown on mouseUp lock screen for visual effect set the visible of graphic "Chip01" to not the visible of graphic "Chip01" unlock screen with visual effect "dissolve" fast end mouseUp be well, randy hengst From mikekann at yahoo.com Mon Jan 16 10:10:44 2012 From: mikekann at yahoo.com (Michael Kann) Date: Mon, 16 Jan 2012 07:10:44 -0800 (PST) Subject: Visual Effects in LC 5.0.2 In-Reply-To: Message-ID: <1326726644.4451.YahooMailClassic@web161605.mail.bf1.yahoo.com> Randy, I'm using 4.0 and it works if you use lock screen instead of lock screen for visible effect Mike --- On Mon, 1/16/12, Randy Hengst wrote: From: Randy Hengst Subject: Visual Effects in LC 5.0.2 To: "How to use Revolution" Date: Monday, January 16, 2012, 8:52 AM Hi All, I'm playing around with visual effects. Can anyone tell me why the below won't work for the mouseUp when both handlers are placed in the same button? on mouseDown ???lock screen for visual effect ???set the visible of graphic "Chip02" to not the visible of graphic "Chip02" ???unlock screen with visual effect "dissolve" fast end mouseDown on mouseUp ???lock screen for visual effect ???set the visible of graphic "Chip01" to not the visible of graphic "Chip01" ???unlock screen with visual effect "dissolve" fast end mouseUp be well, randy hengst _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From iowahengst at mac.com Mon Jan 16 10:40:28 2012 From: iowahengst at mac.com (Randy Hengst) Date: Mon, 16 Jan 2012 09:40:28 -0600 Subject: Visual Effects in LC 5.0.2 In-Reply-To: <1326726644.4451.YahooMailClassic@web161605.mail.bf1.yahoo.com> References: <1326726644.4451.YahooMailClassic@web161605.mail.bf1.yahoo.com> Message-ID: Mike, It works in 5.0.2 that way, too. But, then you can't use visual effects. In fact, the visual effect in the mouseDown is blocking the entire mouseUp. Doesn't seem to matter what's in the mouseUp? it's not carried out unless you hold the button down until the entire visual effect is completed. Is there some sort of "wait until" that works with visual effects? wait until visual effect is done ? doesn't work It seems to be an issue with visual effect? even this in the mouseDown blocks the mouseUp on mouseDown switch (the visible of graphic "Chip02") case "true" hide graphic "Chip02" with visual effect "dissolve" fast break case "false" show graphic "Chip02" with visual effect "dissolve" fast break end switch end mouseDown be well, randy ----- On Jan 16, 2012, at 9:10 AM, Michael Kann wrote: > Randy, > > I'm using 4.0 and it works if you use > > lock screen > > instead of > > lock screen for visible effect > > Mike > > > > --- On Mon, 1/16/12, Randy Hengst wrote: > > From: Randy Hengst > Subject: Visual Effects in LC 5.0.2 > To: "How to use Revolution" > Date: Monday, January 16, 2012, 8:52 AM > > Hi All, > > I'm playing around with visual effects. Can anyone tell me why the below won't work for the mouseUp when both handlers are placed in the same button? > > on mouseDown > lock screen for visual effect > set the visible of graphic "Chip02" to not the visible of graphic "Chip02" > unlock screen with visual effect "dissolve" fast > end mouseDown > > on mouseUp > lock screen for visual effect > set the visible of graphic "Chip01" to not the visible of graphic "Chip01" > unlock screen with visual effect "dissolve" fast > end mouseUp > > be well, > randy hengst > _______________________________________________ > use-livecode mailing list > use-livecode 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 gregory.lypny at videotron.ca Mon Jan 16 11:02:27 2012 From: gregory.lypny at videotron.ca (Gregory Lypny) Date: Mon, 16 Jan 2012 11:02:27 -0500 Subject: Getting the Date and Time From a Remote Computer In-Reply-To: References: Message-ID: <91849792-DB58-4865-B00E-773D17A8DB53@videotron.ca> Thanks again, Mike! Much obliged. Gregory On Mon, Jan 16, 2012, at 6:16 AM, use-livecode-request at lists.runrev.com wrote: > Message: 9 > Date: Sun, 15 Jan 2012 12:52:33 -0700 > From: Mike Bonner > To: How to use LiveCode > Subject: Re: Getting the Date and Time From a Remote Computer > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > Yep the revonrockets and http stack by Andre works great and already has a > sample of returning the time. It works great. The time example uses a .rev > stack as a cgi. (look in the stacks folder) The stack script has examples > of how to use the cgi stack. Currently it has a method for getting the > internet time, but its easy to add your own for long time, long date, etc. > Whatever you need. > > This means leaving the http stack running on the remote machine but it is > so easy and works so well that its most likely worth it. If you want the > stack and the rev on rockets stuff thats with it you can grab it here. > http://www.andregarzia.com/download/revhttp.zip > From bobs at twft.com Mon Jan 16 14:14:36 2012 From: bobs at twft.com (Bob Sneidar) Date: Mon, 16 Jan 2012 11:14:36 -0800 Subject: mySQL integer types Message-ID: Hi all. I am a little bit concerned with defining integer types. The manual defines INT as using 4 bytes for storage, for a maximum of 4294967296 values. However, I read somewhere (possibly here) that for auto incrementing keys I should use int(64) the maximum allowed. Does that mean that my storage for these values will use 64 bytes for each record? That seems like overkill of overkill. I do however want to ensure that no matter how long my application runs I will never exceed the maximum value in an auto-incrementing column. There has to be some kind of balance here. Any ideas? I have tried looking for information on ways to reset the AI value of a table, but it seems by all accounts this is not allowed. I had hoped that if I did so, mySQL would simply find the lowest unused value each time, but I guess it doesn't work that way. I can do that myself with a query, but the simple way would be to make sure I have enough values that I will never run out. Bob From niggemann at uni-wh.de Mon Jan 16 14:16:54 2012 From: niggemann at uni-wh.de (BNig) Date: Mon, 16 Jan 2012 11:16:54 -0800 (PST) Subject: Visual Effects in LC 5.0.2 In-Reply-To: References: Message-ID: <1326741414072-4301101.post@n4.nabble.com> Hi Randy, the mouseUP does not get sent while the visual effect is in progress. As one can see in the Message Watcher. If that qualifies as a bug I don't know. if you really want to have the effects on mouseDown and the next effect when the mouse is up then the only workaround I found is this: ---------------------- on mouseDown lock screen for visual effect set the visible of graphic "Chip02" to not the visible of graphic "Chip02" unlock screen with visual effect "dissolve" fast send toggleGrc to me in 10 milliseconds end mouseDown on toggleGrc if the mouse is up then lock screen for visual effect set the visible of graphic "Chip01" to not the visible of graphic "Chip01" unlock screen with visual effect "dissolve" fast else if toggleGrc is not in the pendingMessages then send toggleGrc to me in 100 milliseconds -- adjust if necessary end if end if end toggleGrc ------------------------ note: no mouseUp handler. Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Visual-Effects-in-LC-5-0-2-tp4299735p4301101.html Sent from the Revolution - User mailing list archive at Nabble.com. From toncardona at mac.com Mon Jan 16 14:28:27 2012 From: toncardona at mac.com (=?iso-8859-1?Q?Melit=F3n_Cardona_Torres?=) Date: Mon, 16 Jan 2012 20:28:27 +0100 Subject: macToIso Message-ID: <48213F9B-0373-4E71-A958-29FCE26EDBFB@mac.com> In a program designed to teach Spanish orthography to children (and a few adults), I have six fields that contain those chars: ? ? ? ? ? ? (accented vowels). They are supposed to be moved ans dropped into words that lack the right accents. It works fine on Mac. The Dictionary states that: "LiveCode automatically translates text in fields and scripts, as well as the names of custom properties, into the appropriate character set when you move a stack from one platform to another." Could you explain why those fields appear empty when I compile in Windows? What am I doing wrong and what do you recommend me to do? Thanks in advance, Ton From bobs at twft.com Mon Jan 16 14:30:54 2012 From: bobs at twft.com (Bob Sneidar) Date: Mon, 16 Jan 2012 11:30:54 -0800 Subject: mySQL integer types Message-ID: Upon further investigation, I see that the number supplied as an "argument" to the data type is the actual number of digits or significant bits. I guess for my purposes bigint is all I will need for things like uniqueid's. I can write an overflow function at some point that will use vacated numbers. I do not think my app will ever have 18,446,744,073,709,551,615 of anything! :-) (What is that anyway, 18+ quintillion??) Bob > Hi all. > > I am a little bit concerned with defining integer types. The manual defines INT as using 4 bytes for storage, for a maximum of 4294967296 values. However, I read somewhere (possibly here) that for auto incrementing keys I should use int(64) the maximum allowed. Does that mean that my storage for these values will use 64 bytes for each record? That seems like overkill of overkill. > > I do however want to ensure that no matter how long my application runs I will never exceed the maximum value in an auto-incrementing column. There has to be some kind of balance here. Any ideas? I have tried looking for information on ways to reset the AI value of a table, but it seems by all accounts this is not allowed. I had hoped that if I did so, mySQL would simply find the lowest unused value each time, but I guess it doesn't work that way. > > I can do that myself with a query, but the simple way would be to make sure I have enough values that I will never run out. > > Bob > > > > From revdev at pdslabs.net Mon Jan 16 14:32:37 2012 From: revdev at pdslabs.net (Phil Davis) Date: Mon, 16 Jan 2012 11:32:37 -0800 Subject: [on-rev] LC cron jobs? In-Reply-To: References: <4F13AA9B.4080208@pdslabs.net> <13F34A1C-B17C-43CF-834E-E9FE2E9B6E49@economy-x-talk.com> Message-ID: <4F147B55.5060902@pdslabs.net> Thanks so much guys! I went with Andre's 'curl' suggestion since I don't know the path to the livecode server engine. Phil On 1/16/12 6:38 AM, Mike Bonner wrote: > If you don't want toe first line #! to output you can do another method. > Use a shell script with #!/bin/bash (wherever bash resides) > then /path/to/livecode scripttorun > > Otherwise (unless they've changed things in the recent versions) lc will > output the #! line as part of the output. > > On Mon, Jan 16, 2012 at 4:16 AM, Andre Garzia wrote: > >> You can also create a lc script and call it with curl such as >> >> curl http://myserver/mycron.lc >> >> This way, you don't need to know the path to the engine. >> >> On Mon, Jan 16, 2012 at 8:51 AM, Mark Schonewille >> wrote: >>> Hi Phil, >>> >>> A cron job needs a correct terminal command. If you can type it in your >> terminal (e.g. over ssh) and don't need to enter a password and other >> additional information then you can also use it as a cron job. I wonder if >> it would work if you start your script with >>> #!/path/to/lc/server >>> >>> >>> A cgi script should include a path too: >>> >>> #!/path/to/cgi/engine >>> put "hello world" >>> >>> -- >>> Best regards, >>> >>> Mark Schonewille >>> >>> Economy-x-Talk Consulting and Software Engineering >>> Homepage: http://economy-x-talk.com >>> Twitter: http://twitter.com/xtalkprogrammer >>> KvK: 50277553 >>> >>> Become our partner in sales http://qery.us/1bq Start selling Color >> Converter today. 20% commission! >>> On 16 jan 2012, at 05:42, Phil Davis wrote: >>> >>>> Hi folks, >>>> >>>> Have you succeeded in using a .lc script as the thing to be run in a >> cron job on the on-rev server? I tried it but am apparently not holding my >> mouth right. I get a syntax error on line 1: the "> .lc and .cgi as the file extension with equal non-success. >>>> I even reverted to trying to run a .cgi script with Rev 3.5 as the >> engine and no joy there either. >>>> Thanks for any wisdom you may share on the subject. >>>> >>>> -- >>>> Phil Davis >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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. >> http://fon.nu -- minimalist url shortening service. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 alanira9 at mac.com Mon Jan 16 15:17:09 2012 From: alanira9 at mac.com (user) Date: Mon, 16 Jan 2012 15:17:09 -0500 Subject: Copy to Group problems - solved! Message-ID: <0FBD99C3-34A0-42A9-8BA7-5AE7E848EB35@mac.com> First of all, thanks to all of you who offered advice on this problem, with special thanks to Craig Newman for definitively pointing out that "The "last" keyword is not stable when referring to groups." - apparently a LC bug After doing a little exploring through the dictionary for a workaround, I discarded the "copy" and "create" options (both not dependable, but for different reasons), but found that the "clone" command works just fine, as it puts the long id of the newly created group into the "it" variable, after which it was a piece of cake to rename and reposition the new group. No "newGroup" handler required this time around, but some sort of "newObject" handler might be helpful under other circumstances. Here's the working code, which is quite straightforward, AND WORKS! on addFldDoublet theGroup put the number of grps in grp theGroup into lastDoublet put the short name of grp lastDoublet of grp theGroup into lastName put the left of grp lastName into newLeft put (the bottom of grp lastName -6) into newTop put lastName into nextName set itemDelimiter to "_" add 10 to last item of nextName set itemDelimiter to "," clone grp lastName set the name of it to nextName -- The clone command places the long id property of the newly created object in the it variable. set the left of grp nextName to newLeft set the top of grp nextName to newTop end addFldDoublet Knowing that the "last" keyword was the problem did the trick, and I'm not likely to waste time in the future trying to directly reference a "last" object until I'm sure the bug has been fixed. But the truth is that it was the combined input of all who offered their advice that put me on the correct track to solving this one, and I am grateful for kind assistance. Regards, Alan Gayne From janschenkel at yahoo.com Mon Jan 16 15:18:01 2012 From: janschenkel at yahoo.com (Jan Schenkel) Date: Mon, 16 Jan 2012 12:18:01 -0800 (PST) Subject: mySQL integer types In-Reply-To: References: Message-ID: <1326745081.92363.YahooMailNeo@web65403.mail.ac4.yahoo.com> INT(64) is a 64-bits integer, so 8 instead of 64 bytes :-) Still, that limit should keep you safe for some time to come... 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: Bob Sneidar To: How to use LiveCode Sent: Monday, January 16, 2012 8:14 PM Subject: mySQL integer types Hi all. I am a little bit concerned with defining integer types. The manual defines INT as using 4 bytes for storage, for a maximum of 4294967296 values. However, I read somewhere (possibly here) that for auto incrementing keys I should use int(64) the maximum allowed. Does that mean that my storage for these values will use 64 bytes for each record? That seems like overkill of overkill. I do however want to ensure that no matter how long my application runs I will never exceed the maximum value in an auto-incrementing column. There has to be some kind of balance here. Any ideas? I have tried looking for information on ways to reset the AI value of a table, but it seems by all accounts this is not allowed. I had hoped that if I did so, mySQL would simply find the lowest unused value each time, but I guess it doesn't work that way. I can do that myself with a query, but the simple way would be to make sure I have enough values that I will never run out. 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 iowahengst at mac.com Mon Jan 16 15:26:41 2012 From: iowahengst at mac.com (Randy Hengst) Date: Mon, 16 Jan 2012 14:26:41 -0600 Subject: Visual Effects in LC 5.0.2 In-Reply-To: <1326741414072-4301101.post@n4.nabble.com> References: <1326741414072-4301101.post@n4.nabble.com> Message-ID: <7C254C0D-9107-4210-80FB-218AD6890734@mac.com> Hi Bernd I like your idea? I simply placed everything in the mouseDown as the workaround. Don't know if it's a bug or not. be well, randy ------- On Jan 16, 2012, at 1:16 PM, BNig wrote: > Hi Randy, > > the mouseUP does not get sent while the visual effect is in progress. As one > can see in the Message Watcher. > If that qualifies as a bug I don't know. > > if you really want to have the effects on mouseDown and the next effect when > the mouse is up then the only workaround I found is this: > > ---------------------- > on mouseDown > lock screen for visual effect > set the visible of graphic "Chip02" to not the visible of graphic > "Chip02" > unlock screen with visual effect "dissolve" fast > send toggleGrc to me in 10 milliseconds > end mouseDown > > on toggleGrc > if the mouse is up then > lock screen for visual effect > set the visible of graphic "Chip01" to not the visible of graphic > "Chip01" > unlock screen with visual effect "dissolve" fast > else > if toggleGrc is not in the pendingMessages then > send toggleGrc to me in 100 milliseconds -- adjust if necessary > end if > end if > end toggleGrc > ------------------------ > note: no mouseUp handler. > > > Kind regards > Bernd > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Visual-Effects-in-LC-5-0-2-tp4299735p4301101.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 pete at mollysrevenge.com Mon Jan 16 15:56:50 2012 From: pete at mollysrevenge.com (Pete) Date: Mon, 16 Jan 2012 12:56:50 -0800 Subject: mySQL integer types In-Reply-To: References: Message-ID: Hi Bob, Int(64) refers to the external display of a column, not its internal storage space. As you mentioned INT takes 4 bytes of storage but its external display format can be up 10 chars. I guess if you're really concerned about it, you could use BIGINT but there is no theoretical software limit to the number of rows in a mySQL table (maybe hardware would determine it) so you can make it highly unlikely that you'll run out of primary key values but not impossible! In SQLite, if you define an INTEGER PRIMARY KEY column with AUTOINCREMENT keyword, primary key values are always allocated as the next highest value for the table, but if you omit the AUTOINCREMENT, then values freed up by deleted rows may get assigned. I don't know if this is how mySQL works. Resetting the autoincrement value of a table seems like it would be extremely dangerous and possibly corrupt your database. Pete On Mon, Jan 16, 2012 at 11:14 AM, Bob Sneidar wrote: > Hi all. > > I am a little bit concerned with defining integer types. The manual > defines INT as using 4 bytes for storage, for a maximum of 4294967296 > values. However, I read somewhere (possibly here) that for auto > incrementing keys I should use int(64) the maximum allowed. Does that mean > that my storage for these values will use 64 bytes for each record? That > seems like overkill of overkill. > > I do however want to ensure that no matter how long my application runs I > will never exceed the maximum value in an auto-incrementing column. There > has to be some kind of balance here. Any ideas? I have tried looking for > information on ways to reset the AI value of a table, but it seems by all > accounts this is not allowed. I had hoped that if I did so, mySQL would > simply find the lowest unused value each time, but I guess it doesn't work > that way. > > I can do that myself with a query, but the simple way would be to make > sure I have enough values that I will never run out. > > 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 > > -- Pete Molly's Revenge From mark.rauterkus at gmail.com Mon Jan 16 16:12:23 2012 From: mark.rauterkus at gmail.com (Mark Rauterkus) Date: Mon, 16 Jan 2012 16:12:23 -0500 Subject: Subject: RE: Determine 180 degree turn using compass Message-ID: Hi, Almost all of my laps are on a straight line. Back and forth we go. Swimmers in a pool. Mark R -- -- Ta. Mark Rauterkus Mark.Rauterkus at gmail.com http://Rauterkus.blogspot.com http://FixPA.wikia.com http://CLOH.wikia.com 412 298 3432 = cell From bobs at twft.com Mon Jan 16 16:25:00 2012 From: bobs at twft.com (Bob Sneidar) Date: Mon, 16 Jan 2012 13:25:00 -0800 Subject: mySQL integer types In-Reply-To: References: Message-ID: On Jan 16, 2012, at 12:56 PM, Pete wrote: > In SQLite, if you define an INTEGER PRIMARY KEY column with AUTOINCREMENT > keyword, primary key values are always allocated as the next highest value > for the table, but if you omit the AUTOINCREMENT, then values freed up by > deleted rows may get assigned. I don't know if this is how mySQL works. It's my understanding that a primary key MUST be AI in mySQL. A friend of mine gave me a query that will find the next available value in a column of numbers: put "select l." & theColumnName & " + 1 as start" & cr & \ "from " & theTable & " as l" & cr & \ "left outer join " & theTable & " as r on l." & theColumnName & \ " + 1 = r." & theColumnName & cr & \ "where r." & theColumnName & " is null;" into theSQL I do not pretend to know what that means. But it works! I know you can update a primary key with something other than the next incremental value, so long as it is unique. I suppose if you lock the table first, get the next unique value, update the primary key, unlock the table, then select with that primary key, that would accomplish the same thing, but I believe that the next incremental value gets updated anyway, so if you use that method, you can't go back to allowing mySQL to increment without a gap in your sequence. In other words it's a one way street, and I am not sure that mySQL won't still throw an error anyways once it reaches it's max on the value, so the point may be moot. Bob From jacque at hyperactivesw.com Mon Jan 16 16:28:22 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 16 Jan 2012 15:28:22 -0600 Subject: Copy to Group problems - solved! In-Reply-To: <0FBD99C3-34A0-42A9-8BA7-5AE7E848EB35@mac.com> References: <0FBD99C3-34A0-42A9-8BA7-5AE7E848EB35@mac.com> Message-ID: <4F149676.40805@hyperactivesw.com> On 1/16/12 2:17 PM, user wrote: > First of all, thanks to all of you who offered advice on this > problem, with special thanks to Craig Newman for definitively > pointing out that "The "last" keyword is not stable when referring to > groups." - apparently a LC bug I'm not sure it's really a bug. I think the "last" keyword refers to the highest-numbered object. If you put an object into a group, it won't be the highest number unless the enclosing group is also the highest numbered object. I don't have authoritative info about that, but that's how it's behaving. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From stephenREVOLUTION2 at barncard.com Mon Jan 16 17:07:15 2012 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Mon, 16 Jan 2012 14:07:15 -0800 Subject: mySQL integer types In-Reply-To: References: Message-ID: I remember in Trevor's original DB abstraction library (before SQL Yoga) he used a manual indexing method, instead using a special table of indexes for each table that is used. That allowed the changing the actual value of the keys if needed. Automatic indexing is a feature that is not mandatory, but convenient. On 16 January 2012 13:25, Bob Sneidar wrote: > On Jan 16, 2012, at 12:56 PM, Pete wrote: > > > In SQLite, if you define an INTEGER PRIMARY KEY column with AUTOINCREMENT > > keyword, primary key values are always allocated as the next highest > value > > for the table, but if you omit the AUTOINCREMENT, then values freed up by > > deleted rows may get assigned. I don't know if this is how mySQL works. > > It's my understanding that a primary key MUST be AI in mySQL. A friend of > mine gave me a query that will find the next available value in a column of > numbers: > > put "select l." & theColumnName & " + 1 as start" & cr & \ > "from " & theTable & " as l" & cr & \ > "left outer join " & theTable & " as r on l." & theColumnName & > \ > " + 1 = r." & theColumnName & cr & \ > "where r." & theColumnName & " is null;" into theSQL > > I do not pretend to know what that means. But it works! I know you can > update a primary key with something other than the next incremental value, > so long as it is unique. I suppose if you lock the table first, get the > next unique value, update the primary key, unlock the table, then select > with that primary key, that would accomplish the same thing, but I believe > that the next incremental value gets updated anyway, so if you use that > method, you can't go back to allowing mySQL to increment without a gap in > your sequence. In other words it's a one way street, and I am not sure that > mySQL won't still throw an error anyways once it reaches it's max on the > value, so the point may be moot. > > 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 > -- Stephen Barncard San Francisco Ca. USA more about sqb From mwieder at ahsoftware.net Mon Jan 16 18:13:11 2012 From: mwieder at ahsoftware.net (Mark Wieder) Date: Mon, 16 Jan 2012 15:13:11 -0800 Subject: Copy to Group problems - solved! In-Reply-To: <4F149676.40805@hyperactivesw.com> References: <0FBD99C3-34A0-42A9-8BA7-5AE7E848EB35@mac.com> <4F149676.40805@hyperactivesw.com> Message-ID: <39369216718.20120116151311@ahsoftware.net> Jacque- Monday, January 16, 2012, 1:28:22 PM, you wrote: > I'm not sure it's really a bug. I think the "last" keyword refers to the > highest-numbered object. If you put an object into a group, it won't be > the highest number unless the enclosing group is also the highest > numbered object. English is such a weird language. Yes, "last" in this case refers to the group with the highest number (layer) rather than the last-created of last-referenced group. So it's not a bug per se (note that the "last" object is only not the last-referenced one if it was created inside a group, and then only if it's not the object of its type in that group with the highest-numbered layer), but just an ambiguity of natural language processing. -- -Mark Wieder mwieder at ahsoftware.net From alanira9 at mac.com Mon Jan 16 18:17:06 2012 From: alanira9 at mac.com (Alan Gayne) Date: Mon, 16 Jan 2012 18:17:06 -0500 Subject: CommandKeyDown whichKey - how do I easily reference keypad numbers on Mac Message-ID: Greetings listMates, I've got a series of similar keyboard shortcuts that are called by a "commandKeyDown whichKey" combination, where "whichKey" is intended to be a number. on commandKeyDown whichKey switch whichKey case "1" (do stuff) break case "2" (do other stuff) break (and so forth) end switch end commandKeyDown No issue at all when "whichKey" is one of the numbers at the top of the QUERTY keyboard, but when I try to use the commandKeyDown number combination using the numbers on the extended keyboard keypad it didn't work. So I checked which key was being returned for each of these keys, and got "65436" for keypad number 1, "65433" for keypad number 2, etc. Now I can certainly script responses for each of the strange (to me) whichKey parameters coming off the keypad, but it would be a bit of a kludge, and it seems to me that there must be an easy way to make these keys return the numbers printed on each key, and which are typed every time I press one of these keys. I'm on a 2011 iMac with extended keyboard running Snow Leopard 10.6.8 but I'd also like these shortcuts to work properly on a Windows desktop keyboard. Anybody know the trick to making this work easy? Thanks in advance for your help in this matter. Kind regards, Alan Gayne From bobs at twft.com Mon Jan 16 19:25:40 2012 From: bobs at twft.com (Bob Sneidar) Date: Mon, 16 Jan 2012 16:25:40 -0800 Subject: Copy to Group problems - solved! In-Reply-To: <4F149676.40805@hyperactivesw.com> References: <0FBD99C3-34A0-42A9-8BA7-5AE7E848EB35@mac.com> <4F149676.40805@hyperactivesw.com> Message-ID: OIC not the "last object that was created" but the "last object in the numbered list of objects"! I think you may be right about that! Bob On Jan 16, 2012, at 1:28 PM, J. Landman Gay wrote: > On 1/16/12 2:17 PM, user wrote: >> First of all, thanks to all of you who offered advice on this >> problem, with special thanks to Craig Newman for definitively >> pointing out that "The "last" keyword is not stable when referring to >> groups." - apparently a LC bug > > I'm not sure it's really a bug. I think the "last" keyword refers to the highest-numbered object. If you put an object into a group, it won't be the highest number unless the enclosing group is also the highest numbered object. > > I don't have authoritative info about that, but that's how it's behaving. > > -- > 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 Mon Jan 16 19:28:55 2012 From: bobs at twft.com (Bob Sneidar) Date: Mon, 16 Jan 2012 16:28:55 -0800 Subject: CommandKeyDown whichKey - how do I easily reference keypad numbers on Mac In-Reply-To: References: Message-ID: I have found that key handling can be iffy for keys not part of the normal characters. For instance, someone was having issues with the arrowKey message. It only seems to be generated with one or two of the arrow keys. People in your situation end up using rawKeyDown and figuring out what those key ID's are. Bob On Jan 16, 2012, at 3:17 PM, Alan Gayne wrote: > Greetings listMates, > > I've got a series of similar keyboard shortcuts that are called by a "commandKeyDown whichKey" combination, where "whichKey" is intended to be a number. > > on commandKeyDown whichKey > switch whichKey > case "1" > (do stuff) > break > case "2" > (do other stuff) > break > > (and so forth) > end switch > end commandKeyDown > > No issue at all when "whichKey" is one of the numbers at the top of the QUERTY keyboard, but when I try to use the commandKeyDown number combination using the numbers on the extended keyboard keypad it didn't work. > > So I checked which key was being returned for each of these keys, and got "65436" for keypad number 1, "65433" for keypad number 2, etc. > > Now I can certainly script responses for each of the strange (to me) whichKey parameters coming off the keypad, but it would be a bit of a kludge, and it seems to me that there must be an easy way to make these keys return the numbers printed on each key, and which are typed every time I press one of these keys. > > I'm on a 2011 iMac with extended keyboard running Snow Leopard 10.6.8 but I'd also like these shortcuts to work properly on a Windows desktop keyboard. > > Anybody know the trick to making this work easy? > > Thanks in advance for your help in this matter. > > Kind regards, > Alan Gayne > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jan 16 22:26:54 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 16 Jan 2012 21:26:54 -0600 Subject: CommandKeyDown whichKey - how do I easily reference keypad numbers on Mac In-Reply-To: References: Message-ID: <4F14EA7E.7060104@hyperactivesw.com> On Jan 16, 2012, at 3:17 PM, Alan Gayne wrote: > No issue at all when "whichKey" is one of the numbers at the top of > the QUERTY keyboard, but when I try to use the commandKeyDown number > combination using the numbers on the extended keyboard keypad it > didn't work. You could do a quick translation at the top of the commandkeydown handler and then proceed as usual: on commandkeydown whichKey put itemoffset(whichKey,"65436,65433,65435,65430,65437,65432,65429,65431,65434") into tNum if tNum > 0 then put tNum into which switch whichKey case 1 etc... -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Tue Jan 17 00:09:59 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 16 Jan 2012 23:09:59 -0600 Subject: CommandKeyDown whichKey - how do I easily reference keypad numbers on Mac In-Reply-To: <4F14EA7E.7060104@hyperactivesw.com> References: <4F14EA7E.7060104@hyperactivesw.com> Message-ID: <4F1502A7.4090004@hyperactivesw.com> On 1/16/12 9:26 PM, J. Landman Gay wrote: > On Jan 16, 2012, at 3:17 PM, Alan Gayne wrote: > >> No issue at all when "whichKey" is one of the numbers at the top of >> the QUERTY keyboard, but when I try to use the commandKeyDown number >> combination using the numbers on the extended keyboard keypad it >> didn't work. > > You could do a quick translation at the top of the commandkeydown > handler and then proceed as usual: > > on commandkeydown whichKey > put > itemoffset(whichKey,"65436,65433,65435,65430,65437,65432,65429,65431,65434") > into tNum > if tNum > 0 then put tNum into which > switch whichKey > case 1 > etc... > I forgot zero. If you need it: put itemoffset(whichKey,"65438,65436,65433,65435,65430,65437,65432,65429,65431,65434") into tNum if tNum > 0 then put tNum-1 into whichKey -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From lan.kc.macmail at gmail.com Tue Jan 17 00:39:58 2012 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Tue, 17 Jan 2012 13:39:58 +0800 Subject: Determine 180 degree turn using compass In-Reply-To: <3B55C011-6A6A-4529-9D17-E218155E20CE@mac.com> References: <3B55C011-6A6A-4529-9D17-E218155E20CE@mac.com> Message-ID: Hi Thomas, To me, determining laps by heading seems to be very inaccurate, but I don't fully understand your requirements. The only thing I suggest is using the 'accuracy' value as returned by the iPhoneCurrentHeading() function rather than your current fixed value of 150. If the number is very low, then you might be able to set a number much closer to 180 and more accurately determine your laps. i.e. put 175 - tHeading["accuracy"] into tDegreesForLap If the number is very large (and I'm sure I've seen the compass out by 45 degrees) you might wish to quit your program or at least advise the user that the app is unlikely to respond as expected. HTH From keith.clarke at clarkeandclarke.co.uk Tue Jan 17 04:04:36 2012 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Tue, 17 Jan 2012 09:04:36 +0000 Subject: Copy to Group problems - solved! In-Reply-To: References: <0FBD99C3-34A0-42A9-8BA7-5AE7E848EB35@mac.com> <4F149676.40805@hyperactivesw.com> Message-ID: That's an interesting distinction, especially as it's often the case that both are true when creating new objects - the last (most recent) becomes the last (highest numbered). The fallacy of the first rule is only proven when a new object is created and forced down the 'recency' scale - by placing it in an older (and hence lower numbered) group. Just out of interest, can the language recognise 'most recent' in any way - i.e. do objects get a time/date stamp behind the scenes (as standard) as well as a number? Best, Keith.. On 17 Jan 2012, at 00:25, Bob Sneidar wrote: > OIC not the "last object that was created" but the "last object in the numbered list of objects"! I think you may be right about that! > > Bob > > > On Jan 16, 2012, at 1:28 PM, J. Landman Gay wrote: > >> On 1/16/12 2:17 PM, user wrote: >>> First of all, thanks to all of you who offered advice on this >>> problem, with special thanks to Craig Newman for definitively >>> pointing out that "The "last" keyword is not stable when referring to >>> groups." - apparently a LC bug >> >> I'm not sure it's really a bug. I think the "last" keyword refers to the highest-numbered object. If you put an object into a group, it won't be the highest number unless the enclosing group is also the highest numbered object. >> >> I don't have authoritative info about that, but that's how it's behaving. >> >> -- >> 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 ambassador at fourthworld.com Tue Jan 17 09:54:06 2012 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 17 Jan 2012 06:54:06 -0800 Subject: Copy to Group problems - solved! In-Reply-To: References: Message-ID: <4F158B8E.9070908@fourthworld.com> FWIW, I submitted a request some time ago to the RQCC to have "it" contain the long ID of the newly-created object whenever a command creates one: This is currently done with the "create" command (with the exception of "create folder", as noted in that report), but other commands which create objects could benefit from this enhancement, such as those which create groups ("group", "copy"). -- 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 Jan 17 13:15:27 2012 From: bobs at twft.com (Bob Sneidar) Date: Tue, 17 Jan 2012 10:15:27 -0800 Subject: set tool not working? Message-ID: <789534B1-140E-46ED-B8E4-DAF0DE391AD4@twft.com> Hi all. This just started happening to me. If I use: set the tool to "Browse" I get an error, but if I use: choose browse tool that works! The dictionary says the first form works, and it did until today sometime! Weird! I know, I know, "Don't do that" right? Bob From jacque at hyperactivesw.com Tue Jan 17 13:27:01 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 17 Jan 2012 12:27:01 -0600 Subject: set tool not working? In-Reply-To: <789534B1-140E-46ED-B8E4-DAF0DE391AD4@twft.com> References: <789534B1-140E-46ED-B8E4-DAF0DE391AD4@twft.com> Message-ID: <4F15BD75.9070703@hyperactivesw.com> On 1/17/12 12:15 PM, Bob Sneidar wrote: > Hi all. This just started happening to me. If I use: > > set the tool to "Browse" > > I get an error, but if I use: > > choose browse tool > > that works! set the tool to "browse tool" -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobs at twft.com Tue Jan 17 13:54:00 2012 From: bobs at twft.com (Bob Sneidar) Date: Tue, 17 Jan 2012 10:54:00 -0800 Subject: set tool not working? In-Reply-To: <4F15BD75.9070703@hyperactivesw.com> References: <789534B1-140E-46ED-B8E4-DAF0DE391AD4@twft.com> <4F15BD75.9070703@hyperactivesw.com> Message-ID: <02A596ED-BD9A-481E-9783-AAE833791A1D@twft.com> Aye and not to make a big deal of it because it's not, the dictionary states: When setting the tool property, you can omit the word "tool". If I recall correctly (and that is by no means assured) I have had the problem either way, except I was setting the tool to "Pointer Tool". Well there is a workaround, but I think this may be a minor bug with setting tools. the Choose command is the way I will go then. Bob On Jan 17, 2012, at 10:27 AM, J. Landman Gay wrote: > On 1/17/12 12:15 PM, Bob Sneidar wrote: >> Hi all. This just started happening to me. If I use: >> >> set the tool to "Browse" >> >> I get an error, but if I use: >> >> choose browse tool >> >> that works! > > set the tool to "browse tool" > > -- > 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 dunbarx at aol.com Tue Jan 17 14:06:03 2012 From: dunbarx at aol.com (dunbarx at aol.com) Date: Tue, 17 Jan 2012 14:06:03 -0500 (EST) Subject: set tool not working? In-Reply-To: <4F15BD75.9070703@hyperactivesw.com> References: <789534B1-140E-46ED-B8E4-DAF0DE391AD4@twft.com> <4F15BD75.9070703@hyperactivesw.com> Message-ID: <8CEA3623147683F-2424-6555@webmail-d129.sysops.aol.com> Hmmm. The short form: set the tool to "browse", works for me. The dictionary (in the "tool" property entry) says: ...followed by the word "tool" But it also says you can: ...omit the word "tool" Of the two entry examples, one contains "tool", the other does not. Craig -----Original Message----- From: J. Landman Gay To: How to use LiveCode Sent: Tue, Jan 17, 2012 8:29 am Subject: Re: set tool not working? On 1/17/12 12:15 PM, Bob Sneidar wrote: > Hi all. This just started happening to me. If I use: > > set the tool to "Browse" > > I get an error, but if I use: > > choose browse tool > > that works! set the tool to "browse tool" -- 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 Tue Jan 17 14:31:30 2012 From: bobs at twft.com (Bob Sneidar) Date: Tue, 17 Jan 2012 11:31:30 -0800 Subject: set tool not working? In-Reply-To: <8CEA3623147683F-2424-6555@webmail-d129.sysops.aol.com> References: <789534B1-140E-46ED-B8E4-DAF0DE391AD4@twft.com> <4F15BD75.9070703@hyperactivesw.com> <8CEA3623147683F-2424-6555@webmail-d129.sysops.aol.com> Message-ID: <3269E464-ADA0-4FFA-8043-11BC077AF681@twft.com> Right which is why I was stunned to find that after having it work for months of development that it was causing a problem. Of course it was in a script that I don't use often so I cannot really say how long it has been this way. I am using 5.02. I think some kind of bug has crept in somewhere. Bob On Jan 17, 2012, at 11:06 AM, DunbarX at aol.com wrote: > Hmmm. > > > The short form: set the tool to "browse", works for me. > > > > The dictionary (in the "tool" property entry) says: ...followed by the word "tool" > > > But it also says you can: ...omit the word "tool" > > > Of the two entry examples, one contains "tool", the other does not. > > > Craig > > > > -----Original Message----- > From: J. Landman Gay > To: How to use LiveCode > Sent: Tue, Jan 17, 2012 8:29 am > Subject: Re: set tool not working? > > > On 1/17/12 12:15 PM, Bob Sneidar wrote: >> Hi all. This just started happening to me. If I use: >> >> set the tool to "Browse" >> >> I get an error, but if I use: >> >> choose browse tool >> >> that works! > > set the tool to "browse tool" > > -- > 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 bobs at twft.com Tue Jan 17 14:35:26 2012 From: bobs at twft.com (Bob Sneidar) Date: Tue, 17 Jan 2012 11:35:26 -0800 Subject: Another oddity Message-ID: <90BE6637-B5EB-4A00-807D-3DFFBCAC4732@twft.com> I just discovered an oddity with checkboxes. In the browse tool, if you right click a checkbox it does not change it's hilite, but if you right click it does! This has screwed me up with contextual menus because I modify them to add validations to objects among other things, and I was a bit shocked to find the value changing. Again no big deal, but I cannot imagine this is designed to work this way. If others are seeing the same behavior I will post a bug report. Bob From pete at mollysrevenge.com Tue Jan 17 14:47:06 2012 From: pete at mollysrevenge.com (Pete) Date: Tue, 17 Jan 2012 11:47:06 -0800 Subject: mySQL integer types In-Reply-To: References: Message-ID: Hi Bob, I don't think that's true. I think you can have it not autoincrement and supply the primary key value yourself when you insert a row. In fact, you have to do that if the primary key is one of the text data types since autoincrement doesn't make any sense in that context. Pete On Mon, Jan 16, 2012 at 1:25 PM, Bob Sneidar wrote: > It's my understanding that a primary key MUST be AI in mySQL. A friend of > mine gave me a query that will find the next available value in a column of > numbers: -- Pete Molly's Revenge From bobs at twft.com Tue Jan 17 15:11:30 2012 From: bobs at twft.com (Bob Sneidar) Date: Tue, 17 Jan 2012 12:11:30 -0800 Subject: mySQL integer types In-Reply-To: References: Message-ID: <9FBC6439-9518-4A38-9E17-0C88513875B2@twft.com> Oh right duh that makes sense. I have no idea where I got that. Bob On Jan 17, 2012, at 11:47 AM, Pete wrote: > Hi Bob, > I don't think that's true. I think you can have it not autoincrement and > supply the primary key value yourself when you insert a row. In fact, you > have to do that if the primary key is one of the text data types since > autoincrement doesn't make any sense in that context. > Pete > > On Mon, Jan 16, 2012 at 1:25 PM, Bob Sneidar wrote: > >> It's my understanding that a primary key MUST be AI in mySQL. A friend of >> mine gave me a query that will find the next available value in a column of >> numbers: > > > > > -- > 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 bobs at twft.com Tue Jan 17 15:16:56 2012 From: bobs at twft.com (Bob Sneidar) Date: Tue, 17 Jan 2012 12:16:56 -0800 Subject: Another oddity Message-ID: <7D37C1C7-9677-4A53-86EE-8AE823713AD0@twft.com> > I just discovered an oddity with checkboxes. In the browse tool, if you right click a checkbox it does not change it's hilite, but if you right click it does! This has screwed me up with contextual menus because I modify them to add validations to objects among other things, and I was a bit shocked to find the value changing. > > Again no big deal, but I cannot imagine this is designed to work this way. If others are seeing the same behavior I will post a bug report. > > Bob Okay after experimenting with this a bit here is what I came up with: using the browse tool: left clicking toggles the hilite right clicking does NOT toggle the hilite (as you would expect) using the pointer tool: left clicking does NOT toggle the hilite (as you would expect) right clicking toggles the hilite on mouseDown but once you select something from the menu or else click away, it sets the hilite off. In either case, with the pointer tool, right clicking leaves the checkbox with the hilite off. This is NOT what I would expect. This can be a real beatch when developing. Bob From cmsheffield at me.com Tue Jan 17 15:27:23 2012 From: cmsheffield at me.com (Chris Sheffield) Date: Tue, 17 Jan 2012 13:27:23 -0700 Subject: iOS: performance issues with visual effects Message-ID: <77476FC2-2D6C-4308-8F8D-6FF424A5B9C6@me.com> Working on an iPad app that uses visual effects in a few places to make things a little more pleasing for the user. But I'm noticing some strange lags between the time I tap and the time the effect actually happens. For example, in one place I have a text field set up with several different "links". The user taps a link, and then a "window" pops up to show a definition of the tapped word and play an audio file. When I show/hide the "window" I'm using a dissolve visual effect: show/hide group "window" with visual effect dissolve very fast The effect happens, but sometimes there is a 2 or 3 second delay between the tap on the screen and the change on the screen. There is some code that runs inside a linkClicked handler before the group is shown, but nothing that should take that long. And if I remove the visual effect, the "window" displays almost instantly. Something is occurring as part of displaying the visual effect that is taking longer than expected. So the question is, is there anything I can do to improve this? I've already set the layerMode to "dynamic" where appropriate, but this doesn't seem to make much difference in this case. Maybe I haven't set the property on the correct objects? Some visual effects seem to work just fine, like the basic push and reveal effects. But I have also noticed this somewhat with the curl effects. Has anyone else experienced this? Any suggestions to improve performance? Currently working on an iPad 1, btw. Thanks, Chris -- Chris Sheffield Read Naturally, Inc. www.readnaturally.com From martyknapp at comcast.net Tue Jan 17 15:36:51 2012 From: martyknapp at comcast.net (Marty Knapp) Date: Tue, 17 Jan 2012 12:36:51 -0800 Subject: Scrolling a Datagrid Message-ID: <4F15DBE3.4080507@comcast.net> I have a "form" datagrid that I want to enhance the scrolling on. It's an adaptation of the stack "ExpandingRow.rev" from the Datagrid lesson, "How do I create rows that can expand/contract?" I have two things I want to accomplish: 1) Be able to scroll so that lines don't get partially cut off from view as you scroll. In other words, I want it to scroll in increments of the height of the records. 2) When I expand a record it sometimes works well and other time will move (scroll) in such a way as to cut off part of the row, when there's room in the window for it to show. Does that make sense? Thanks for any input, Marty From williamdesmet at gmail.com Tue Jan 17 16:14:51 2012 From: williamdesmet at gmail.com (William de Smet) Date: Tue, 17 Jan 2012 22:14:51 +0100 Subject: iOS: performance issues with visual effects In-Reply-To: <77476FC2-2D6C-4308-8F8D-6FF424A5B9C6@me.com> References: <77476FC2-2D6C-4308-8F8D-6FF424A5B9C6@me.com> Message-ID: Hi Chris, I am experiencing the same thing (iPad 1) here with LC 5.02. I just use: visual effect push left go cd "start" There is no delay in the IDE but there is with an compiled app on iOS 5. Sadly I don't have an solution :-( ......... groeten, William 2012/1/17 Chris Sheffield > > Working on an iPad app that uses visual effects in a few places to make things a little more pleasing for the user. But I'm noticing some strange lags between the time I tap and the time the effect actually happens. > > For example, in one place I have a text field set up with several different "links". The user taps a link, and then a "window" pops up to show a definition of the tapped word and play an audio file. When I show/hide the "window" I'm using a dissolve visual effect: > > ? ? ? ?show/hide group "window" with visual effect dissolve very fast > > The effect happens, but sometimes there is a 2 or 3 second delay between the tap on the screen and the change on the screen. There is some code that runs inside a linkClicked handler before the group is shown, but nothing that should take that long. And if I remove the visual effect, the "window" displays almost instantly. Something is occurring as part of displaying the visual effect that is taking longer than expected. > > So the question is, is there anything I can do to improve this? I've already set the layerMode to "dynamic" where appropriate, but this doesn't seem to make much difference in this case. Maybe I haven't set the property on the correct objects? Some visual effects seem to work just fine, like the basic push and reveal effects. But I have also noticed this somewhat with the curl effects. Has anyone else experienced this? Any suggestions to improve performance? > > Currently working on an iPad 1, btw. > > Thanks, > Chris > > -- > Chris Sheffield > Read Naturally, Inc. > www.readnaturally.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 iowahengst at mac.com Tue Jan 17 16:30:23 2012 From: iowahengst at mac.com (Randy Hengst) Date: Tue, 17 Jan 2012 15:30:23 -0600 Subject: iOS: performance issues with visual effects In-Reply-To: <77476FC2-2D6C-4308-8F8D-6FF424A5B9C6@me.com> References: <77476FC2-2D6C-4308-8F8D-6FF424A5B9C6@me.com> Message-ID: Chris, I've not had that problem with visual effects? I've had problems with code not being called after an effect. However, I have had trouble with audio causing a delay that "sounds" like the problem you're having. Just for my curiosity, have you tried removing the audio call and leaving everything else? be well, randy ----- On Jan 17, 2012, at 2:27 PM, Chris Sheffield wrote: > Working on an iPad app that uses visual effects in a few places to make things a little more pleasing for the user. But I'm noticing some strange lags between the time I tap and the time the effect actually happens. > > For example, in one place I have a text field set up with several different "links". The user taps a link, and then a "window" pops up to show a definition of the tapped word and play an audio file. When I show/hide the "window" I'm using a dissolve visual effect: > > show/hide group "window" with visual effect dissolve very fast > > The effect happens, but sometimes there is a 2 or 3 second delay between the tap on the screen and the change on the screen. There is some code that runs inside a linkClicked handler before the group is shown, but nothing that should take that long. And if I remove the visual effect, the "window" displays almost instantly. Something is occurring as part of displaying the visual effect that is taking longer than expected. > > So the question is, is there anything I can do to improve this? I've already set the layerMode to "dynamic" where appropriate, but this doesn't seem to make much difference in this case. Maybe I haven't set the property on the correct objects? Some visual effects seem to work just fine, like the basic push and reveal effects. But I have also noticed this somewhat with the curl effects. Has anyone else experienced this? Any suggestions to improve performance? > > Currently working on an iPad 1, btw. > > Thanks, > Chris > > -- > Chris Sheffield > Read Naturally, Inc. > www.readnaturally.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 henshaw at me.com Tue Jan 17 16:32:11 2012 From: henshaw at me.com (Andrew Henshaw) Date: Tue, 17 Jan 2012 21:32:11 +0000 Subject: iOS: performance issues with visual effects In-Reply-To: References: <77476FC2-2D6C-4308-8F8D-6FF424A5B9C6@me.com> Message-ID: <8AF35891-C04C-44EB-9462-99729CE780AD@me.com> Have you tried firing it off touchstart instead of touchend or mouseup. I find that gains a little performance. On 17 Jan 2012, at 21:14, William de Smet wrote: > Hi Chris, > > I am experiencing the same thing (iPad 1) here with LC 5.02. > > I just use: > visual effect push left > go cd "start" > > There is no delay in the IDE but there is with an compiled app on iOS 5. > Sadly I don't have an solution :-( ......... > > > groeten, > > William > > > > 2012/1/17 Chris Sheffield >> >> Working on an iPad app that uses visual effects in a few places to make things a little more pleasing for the user. But I'm noticing some strange lags between the time I tap and the time the effect actually happens. >> >> For example, in one place I have a text field set up with several different "links". The user taps a link, and then a "window" pops up to show a definition of the tapped word and play an audio file. When I show/hide the "window" I'm using a dissolve visual effect: >> >> show/hide group "window" with visual effect dissolve very fast >> >> The effect happens, but sometimes there is a 2 or 3 second delay between the tap on the screen and the change on the screen. There is some code that runs inside a linkClicked handler before the group is shown, but nothing that should take that long. And if I remove the visual effect, the "window" displays almost instantly. Something is occurring as part of displaying the visual effect that is taking longer than expected. >> >> So the question is, is there anything I can do to improve this? I've already set the layerMode to "dynamic" where appropriate, but this doesn't seem to make much difference in this case. Maybe I haven't set the property on the correct objects? Some visual effects seem to work just fine, like the basic push and reveal effects. But I have also noticed this somewhat with the curl effects. Has anyone else experienced this? Any suggestions to improve performance? >> >> Currently working on an iPad 1, btw. >> >> Thanks, >> Chris >> >> -- >> Chris Sheffield >> Read Naturally, Inc. >> www.readnaturally.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 tsj at unimelb.edu.au Tue Jan 17 19:04:15 2012 From: tsj at unimelb.edu.au (Terry Judd) Date: Wed, 18 Jan 2012 00:04:15 +0000 Subject: network error 'previous request not completed' Message-ID: <0705783F-F76A-4597-9F7C-8780CECF7074@unimelb.edu.au> I'm experiencing a serious connectivity problem that appears to start with the error 'error Previous request not completed', usually in response to a post request, and ends with LC being pretty much totally unresponsive to any network requests. In the IDE this can sometimes (but not always) be rectified by calling resetAll but in our application, the only solution is to quit the app and start again. The post request are via https but I'm not sure whether that's a factor. One of my beta testers is having real problems with this (on multiple platforms) but I'm unable to replicate the problem on my setup at the moment. The socketTimeoutInterval is set to 5000 but when the error occurs it will repeatedly occur no matter how long you wait between requests (once the error occurs network connectivity is pretty much broken). Anyone have any ideas as to what may be occurring? I really need to squash this problem/bug ASAP. Terry... Dr Terry Judd Senior Lecturer in Medical Education Medical Eduction Unit Faculty of Medicine, Dentistry & Health Sciences The University of Melbourne From pete at mollysrevenge.com Tue Jan 17 19:06:47 2012 From: pete at mollysrevenge.com (Pete) Date: Tue, 17 Jan 2012 16:06:47 -0800 Subject: Include an image in the text of a label? Message-ID: Is there any way to include an image in the text of label control? -- Pete Molly's Revenge From bonnmike at gmail.com Tue Jan 17 19:21:21 2012 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 17 Jan 2012 17:21:21 -0700 Subject: Include an image in the text of a label? In-Reply-To: References: Message-ID: Look at imagesource you can "set the imagesource of char 1 of field "yourfield" to "\path\to\image" On Tue, Jan 17, 2012 at 5:06 PM, Pete wrote: > Is there any way to include an image in the text of label control? > > > -- > 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 jacque at hyperactivesw.com Tue Jan 17 19:26:11 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 17 Jan 2012 18:26:11 -0600 Subject: iOS: performance issues with visual effects In-Reply-To: <77476FC2-2D6C-4308-8F8D-6FF424A5B9C6@me.com> References: <77476FC2-2D6C-4308-8F8D-6FF424A5B9C6@me.com> Message-ID: <4F1611A3.30105@hyperactivesw.com> On 1/17/12 2:27 PM, Chris Sheffield wrote: > show/hide group "window" with visual effect dissolve very fast > > The effect happens, but sometimes there is a 2 or 3 second delay > between the tap on the screen and the change on the screen. I wonder if it would be faster if you use the new syntax: lock screen for visual effect show/hide group unlock screen with visual effect... -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bonnmike at gmail.com Tue Jan 17 19:26:12 2012 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 17 Jan 2012 17:26:12 -0700 Subject: Include an image in the text of a label? In-Reply-To: References: Message-ID: DOH set the imagesource of char 1 of field "yourfield to "binfile:\path\to\image\file.jpg" -- forgot binfile. On Tue, Jan 17, 2012 at 5:21 PM, Mike Bonner wrote: > Look at imagesource > > you can "set the imagesource of char 1 of field "yourfield" to > "\path\to\image" > > > On Tue, Jan 17, 2012 at 5:06 PM, Pete wrote: > >> Is there any way to include an image in the text of label control? >> >> >> -- >> 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 jacque at hyperactivesw.com Tue Jan 17 19:31:59 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 17 Jan 2012 18:31:59 -0600 Subject: network error 'previous request not completed' In-Reply-To: <0705783F-F76A-4597-9F7C-8780CECF7074@unimelb.edu.au> References: <0705783F-F76A-4597-9F7C-8780CECF7074@unimelb.edu.au> Message-ID: <4F1612FF.8000702@hyperactivesw.com> On 1/17/12 6:04 PM, Terry Judd wrote: > I'm experiencing a serious connectivity problem that appears to start > with the error 'error Previous request not completed', usually in > response to a post request, and ends with LC being pretty much > totally unresponsive to any network requests. In the IDE this can > sometimes (but not always) be rectified by calling resetAll but in > our application, the only solution is to quit the app and start > again. The post request are via https but I'm not sure whether that's > a factor. One of my beta testers is having real problems with this > (on multiple platforms) but I'm unable to replicate the problem on my > setup at the moment. > > The socketTimeoutInterval is set to 5000 but when the error occurs it > will repeatedly occur no matter how long you wait between requests > (once the error occurs network connectivity is pretty much broken). There's a discussion in the forums that seems related. I did some tests today and got very inconsistent results; about 2/3 of the time I got return values from the POST and the rest of the time I get empty in both the result and in "it". I tinkered with the timeout interval but it didn't help. The forum discussion centers around iOS, but I did all my tests in the IDE. The forum discussion is here: -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at mollysrevenge.com Tue Jan 17 19:54:03 2012 From: pete at mollysrevenge.com (Pete) Date: Tue, 17 Jan 2012 16:54:03 -0800 Subject: Include an image in the text of a label? In-Reply-To: References: Message-ID: Excellent, thanks Mike. On Tue, Jan 17, 2012 at 4:26 PM, Mike Bonner wrote: > DOH > > set the imagesource of char 1 of field "yourfield to > "binfile:\path\to\image\file.jpg" -- forgot binfile. > > On Tue, Jan 17, 2012 at 5:21 PM, Mike Bonner wrote: > > > Look at imagesource > > > > you can "set the imagesource of char 1 of field "yourfield" to > > "\path\to\image" > > > > > > On Tue, Jan 17, 2012 at 5:06 PM, Pete wrote: > > > >> Is there any way to include an image in the text of label control? > >> > >> > >> -- > >> 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 > >> > > > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 tsj at unimelb.edu.au Tue Jan 17 20:09:39 2012 From: tsj at unimelb.edu.au (Terry Judd) Date: Wed, 18 Jan 2012 01:09:39 +0000 Subject: network error 'previous request not completed' Message-ID: <8351BEB4-0EA5-412D-AA42-8676D7E53711@unimelb.edu.au> Thanks Jacqui - I think that's a separate issue. I occasionally get those empty results as well and have ways of working around them - the big difference is that unlike the 'previous request not completed' error they don't break subsequent network connections. I've added a network activity log (libURLSetLogField) for my beta tester - hopefully that will shed some light on the issue. If anyone has personal experience of this issue I'd be keen to hear about it. Terry... On 18/01/2012, at 11:31 AM, J. Landman Gay wrote: On 1/17/12 6:04 PM, Terry Judd wrote: I'm experiencing a serious connectivity problem that appears to start with the error 'error Previous request not completed', usually in response to a post request, and ends with LC being pretty much totally unresponsive to any network requests. In the IDE this can sometimes (but not always) be rectified by calling resetAll but in our application, the only solution is to quit the app and start again. The post request are via https but I'm not sure whether that's a factor. One of my beta testers is having real problems with this (on multiple platforms) but I'm unable to replicate the problem on my setup at the moment. The socketTimeoutInterval is set to 5000 but when the error occurs it will repeatedly occur no matter how long you wait between requests (once the error occurs network connectivity is pretty much broken). There's a discussion in the forums that seems related. I did some tests today and got very inconsistent results; about 2/3 of the time I got return values from the POST and the rest of the time I get empty in both the result and in "it". I tinkered with the timeout interval but it didn't help. Dr Terry Judd Senior Lecturer in Medical Education Medical Eduction Unit Faculty of Medicine, Dentistry & Health Sciences The University of Melbourne From bobs at twft.com Tue Jan 17 20:30:37 2012 From: bobs at twft.com (Bob Sneidar) Date: Tue, 17 Jan 2012 17:30:37 -0800 Subject: network error 'previous request not completed' In-Reply-To: <8351BEB4-0EA5-412D-AA42-8676D7E53711@unimelb.edu.au> References: <8351BEB4-0EA5-412D-AA42-8676D7E53711@unimelb.edu.au> Message-ID: <015ED499-801F-4447-A636-122BDAE51FC0@twft.com> Now if only we could get a command like that for when Livecode gets into a weird state and won't respond to anything! Bob On Jan 17, 2012, at 5:09 PM, Terry Judd wrote: > In the IDE this can > sometimes (but not always) be rectified by calling resetAll From tsj at unimelb.edu.au Wed Jan 18 02:08:42 2012 From: tsj at unimelb.edu.au (Terry Judd) Date: Wed, 18 Jan 2012 07:08:42 +0000 Subject: critical socket error Message-ID: More last minute network woes! I'm now having problems connecting to a particular server from an app but not from the IDE. From the app the connection info looks like this... socket selected: cats.medicine.unimelb.edu.au:443|6927 GET /api/announcements/?username=tsj2&api_key=####&date=2000-01-01%20AM HTTP/1.1 Host: cats.medicine.unimelb.edu.au User-Agent: LiveCode (MacOS) socket error cats.medicine.unimelb.edu.au:443|6927 application verification failure ...nothing is returned and the socket doesn't appear to close. However, from the IDE I get this... socket selected: cats.medicine.unimelb.edu.au:443|6928 GET /api/announcements/?username=tsj2&api_key=####&date=2000-01-01%20AM HTTP/1.1 Host: cats.medicine.unimelb.edu.au User-Agent: LiveCode (MacOS) HTTP/1.1 200 OK Date: Wed, 18 Jan 2012 06:58:53 GMT Server: Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.3 X-Powered-By: PHP/5.3.5 Content-Length: 12 Content-Type: text/html ...and the socket closes after a bit. Now, it's a secure connection and I've got the 'SSL and Encryption' library selected in the standalone builder. I've also included a .pem file with the necessary certificates (I know this works because I'm connecting to another secure server on a different subdomain - cc.medicine.unimelb.edu.au rather than cats.medicine.unimelb.edu.au - actually I think both of these subdomains are hosted on the same server). Any ideas on where I might be going wrong? Terry... Dr Terry Judd Senior Lecturer in Medical Education Medical Eduction Unit Faculty of Medicine, Dentistry & Health Sciences The University of Melbourne From phil at liverpool.ac.uk Wed Jan 18 03:15:25 2012 From: phil at liverpool.ac.uk (Phil Jimmieson) Date: Wed, 18 Jan 2012 08:15:25 +0000 Subject: network error 'previous request not completed' In-Reply-To: <8351BEB4-0EA5-412D-AA42-8676D7E53711@unimelb.edu.au> References: <8351BEB4-0EA5-412D-AA42-8676D7E53711@unimelb.edu.au> Message-ID: <2BFD8F4F-BB31-4218-92BA-5589765050AF@liverpool.ac.uk> Hi folks, I'm still using LiveCode 4.6.4 on one laptop (OS X Lion) and I have a program which retrieves data using put URL (via http) which has been occasionally showing the problem you describe. Once its broken the only solution seems to be to restart LiveCode. I tried resetall, which unfortunately also killed Remo, but didn't otherwise seem to help. I'm also using PowerDebug alongside Remo. Do you use any of these plugins? On 18 Jan 2012, at 01:09, Terry Judd wrote: > Thanks Jacqui - I think that's a separate issue. I occasionally get those empty results as well and have ways of working around them - the big difference is that unlike the 'previous request not completed' error they don't break subsequent network connections. I've added a network activity log (libURLSetLogField) for my beta tester - hopefully that will shed some light on the issue. > > If anyone has personal experience of this issue I'd be keen to hear about it. > > Terry... > > On 18/01/2012, at 11:31 AM, J. Landman Gay wrote: > > On 1/17/12 6:04 PM, Terry Judd wrote: > I'm experiencing a serious connectivity problem that appears to start > with the error 'error Previous request not completed', usually in > response to a post request, and ends with LC being pretty much > totally unresponsive to any network requests. In the IDE this can > sometimes (but not always) be rectified by calling resetAll but in > our application, the only solution is to quit the app and start > again. The post request are via https but I'm not sure whether that's > a factor. One of my beta testers is having real problems with this > (on multiple platforms) but I'm unable to replicate the problem on my > setup at the moment. > > The socketTimeoutInterval is set to 5000 but when the error occurs it > will repeatedly occur no matter how long you wait between requests > (once the error occurs network connectivity is pretty much broken). > > There's a discussion in the forums that seems related. I did some tests today and got very inconsistent results; about 2/3 of the time I got return values from the POST and the rest of the time I get empty in both the result and in "it". I tinkered with the timeout interval but it didn't help. > > > Dr Terry Judd > Senior Lecturer in Medical Education > Medical Eduction Unit > Faculty of Medicine, Dentistry & Health Sciences > 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 -- Phil Jimmieson phil at liverpool.ac.uk (UK) 0151 795 4236 (Mobile) 07976 983164 Computer Science Dept., Liverpool University, Ashton Building, Ashton Street Liverpool L69 3BX http://www.csc.liv.ac.uk/~phil/ I used to sit on a special medical board... ...but now I use this ointment. From sc at sahores-conseil.com Wed Jan 18 03:16:31 2012 From: sc at sahores-conseil.com (Pierre Sahores) Date: Wed, 18 Jan 2012 09:16:31 +0100 Subject: critical socket error In-Reply-To: References: Message-ID: <114934F8-9B36-42EE-8244-76727715489C@sahores-conseil.com> Did you try in testing different sockettimoutinterval values ? HTH, Le 18 janv. 2012 ? 08:08, Terry Judd a ?crit : > More last minute network woes! I'm now having problems connecting to a particular server from an app but not from the IDE. From the app the connection info looks like this... > > socket selected: cats.medicine.unimelb.edu.au:443|6927 > GET /api/announcements/?username=tsj2&api_key=####&date=2000-01-01%20AM HTTP/1.1 > Host: cats.medicine.unimelb.edu.au > User-Agent: LiveCode (MacOS) > socket error cats.medicine.unimelb.edu.au:443|6927 > application verification failure > > ...nothing is returned and the socket doesn't appear to close. However, from the IDE I get this... > > socket selected: cats.medicine.unimelb.edu.au:443|6928 > GET /api/announcements/?username=tsj2&api_key=####&date=2000-01-01%20AM HTTP/1.1 > Host: cats.medicine.unimelb.edu.au > User-Agent: LiveCode (MacOS) > HTTP/1.1 200 OK > Date: Wed, 18 Jan 2012 06:58:53 GMT > Server: Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.3 > X-Powered-By: PHP/5.3.5 > Content-Length: 12 > Content-Type: text/html > > ...and the socket closes after a bit. > > Now, it's a secure connection and I've got the 'SSL and Encryption' library selected in the standalone builder. I've also included a .pem file with the necessary certificates (I know this works because I'm connecting to another secure server on a different subdomain - cc.medicine.unimelb.edu.au rather than cats.medicine.unimelb.edu.au - actually I think both of these subdomains are hosted on the same server). > > Any ideas on where I might be going wrong? > > Terry... > > Dr Terry Judd > Senior Lecturer in Medical Education > Medical Eduction Unit > Faculty of Medicine, Dentistry & Health Sciences > 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 -- Pierre Sahores mobile : 06 03 95 77 70 www.widestep.fr : la premi?re solution saas de d?veloppement s?mantique sans programmation From tsj at unimelb.edu.au Wed Jan 18 04:05:58 2012 From: tsj at unimelb.edu.au (Terry Judd) Date: Wed, 18 Jan 2012 09:05:58 +0000 Subject: network error 'previous request not completed' In-Reply-To: <2BFD8F4F-BB31-4218-92BA-5589765050AF@liverpool.ac.uk> References: <8351BEB4-0EA5-412D-AA42-8676D7E53711@unimelb.edu.au> <2BFD8F4F-BB31-4218-92BA-5589765050AF@liverpool.ac.uk> Message-ID: On 18/01/2012, at 07:15 PM, Phil Jimmieson wrote: Hi folks, I'm still using LiveCode 4.6.4 on one laptop (OS X Lion) and I have a program which retrieves data using put URL (via http) which has been occasionally showing the problem you describe. Once its broken the only solution seems to be to restart LiveCode. I tried resetall, which unfortunately also killed Remo, but didn't otherwise seem to help. I'm also using PowerDebug alongside Remo. Do you use any of these plugins? Hi Phil - no plugins in use here, same result though, once it breaks the only solution is to restart LC (I'm on 4.6.4 as well). Terry... On 18 Jan 2012, at 01:09, Terry Judd wrote: Thanks Jacqui - I think that's a separate issue. I occasionally get those empty results as well and have ways of working around them - the big difference is that unlike the 'previous request not completed' error they don't break subsequent network connections. I've added a network activity log (libURLSetLogField) for my beta tester - hopefully that will shed some light on the issue. If anyone has personal experience of this issue I'd be keen to hear about it. Terry... On 18/01/2012, at 11:31 AM, J. Landman Gay wrote: On 1/17/12 6:04 PM, Terry Judd wrote: I'm experiencing a serious connectivity problem that appears to start with the error 'error Previous request not completed', usually in response to a post request, and ends with LC being pretty much totally unresponsive to any network requests. In the IDE this can sometimes (but not always) be rectified by calling resetAll but in our application, the only solution is to quit the app and start again. The post request are via https but I'm not sure whether that's a factor. One of my beta testers is having real problems with this (on multiple platforms) but I'm unable to replicate the problem on my setup at the moment. The socketTimeoutInterval is set to 5000 but when the error occurs it will repeatedly occur no matter how long you wait between requests (once the error occurs network connectivity is pretty much broken). There's a discussion in the forums that seems related. I did some tests today and got very inconsistent results; about 2/3 of the time I got return values from the POST and the rest of the time I get empty in both the result and in "it". I tinkered with the timeout interval but it didn't help. Dr Terry Judd Senior Lecturer in Medical Education Medical Eduction Unit Faculty of Medicine, Dentistry & Health Sciences 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 -- Phil Jimmieson phil at liverpool.ac.uk (UK) 0151 795 4236 (Mobile) 07976 983164 Computer Science Dept., Liverpool University, Ashton Building, Ashton Street Liverpool L69 3BX http://www.csc.liv.ac.uk/~phil/ I used to sit on a special medical board... ...but now I use this ointment. _______________________________________________ use-livecode mailing list use-livecode 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 Eduction Unit Faculty of Medicine, Dentistry & Health Sciences The University of Melbourne From tsj at unimelb.edu.au Wed Jan 18 04:15:21 2012 From: tsj at unimelb.edu.au (Terry Judd) Date: Wed, 18 Jan 2012 09:15:21 +0000 Subject: critical socket error In-Reply-To: <114934F8-9B36-42EE-8244-76727715489C@sahores-conseil.com> References: <114934F8-9B36-42EE-8244-76727715489C@sahores-conseil.com> Message-ID: Hi Pierre - pretty sure it's not a timeout problem. The socketTimeoutInterval is set to 5000 and the socket error is returned almost instantaneously. It seems like it is a certificate problem after all. If I set libURLSetSSLVerification to false then it works in the app as well. The weird thing is that if works in the IDE without having to do this - it's as if the IDE is locating and handling the certificate correctly but the app isn't, even though the .pem file contains the right stuff and is loaded (if you don't load the .pem file then I can't connect to either of the servers). I'm stumped and am close to just setting libURLSetSSLVerification to false and forgetting about the .pem file altogether. My understanding from previous discussions around this is that my app's transactions will still be secure even if I do this (is that right?) but I would feel more comfortable if this stuff just worked! Terry... On 18/01/2012, at 07:16 PM, Pierre Sahores wrote: Did you try in testing different sockettimoutinterval values ? HTH, Le 18 janv. 2012 ? 08:08, Terry Judd a ?crit : More last minute network woes! I'm now having problems connecting to a particular server from an app but not from the IDE. From the app the connection info looks like this... socket selected: cats.medicine.unimelb.edu.au:443|6927 GET /api/announcements/?username=tsj2&api_key=####&date=2000-01-01%20AM HTTP/1.1 Host: cats.medicine.unimelb.edu.au User-Agent: LiveCode (MacOS) socket error cats.medicine.unimelb.edu.au:443|6927 application verification failure ...nothing is returned and the socket doesn't appear to close. However, from the IDE I get this... socket selected: cats.medicine.unimelb.edu.au:443|6928 GET /api/announcements/?username=tsj2&api_key=####&date=2000-01-01%20AM HTTP/1.1 Host: cats.medicine.unimelb.edu.au User-Agent: LiveCode (MacOS) HTTP/1.1 200 OK Date: Wed, 18 Jan 2012 06:58:53 GMT Server: Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.3 X-Powered-By: PHP/5.3.5 Content-Length: 12 Content-Type: text/html ...and the socket closes after a bit. Now, it's a secure connection and I've got the 'SSL and Encryption' library selected in the standalone builder. I've also included a .pem file with the necessary certificates (I know this works because I'm connecting to another secure server on a different subdomain - cc.medicine.unimelb.edu.au rather than cats.medicine.unimelb.edu.au - actually I think both of these subdomains are hosted on the same server). Any ideas on where I might be going wrong? Terry... Dr Terry Judd Senior Lecturer in Medical Education Medical Eduction Unit Faculty of Medicine, Dentistry & Health Sciences 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 -- Pierre Sahores mobile : 06 03 95 77 70 www.widestep.fr : la premi?re solution saas de d?veloppement s?mantique sans programmation _______________________________________________ use-livecode mailing list use-livecode 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 Eduction Unit Faculty of Medicine, Dentistry & Health Sciences The University of Melbourne From bvg at mac.com Wed Jan 18 04:18:24 2012 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Wed, 18 Jan 2012 10:18:24 +0100 Subject: [ANN] ChatRev version 1.3b4 Message-ID: <30A46E84-7E1D-4793-9D39-1184818E78B2@mac.com> Hello As you might know, there's a LC based chat going on 24/7, and altho not very full, it's always welcoming to everyone. Because I am moving to a different place, I had to change a small thing in the client, so that the location change for the server goes trough smoothly. In addition, I have added a "disconnect" button to the interface, for even quicker flee reflexes when your question has been answered by Mark or me. Finally, I removed some cruft that was disabled, for which useless buttons and fields still lingered. Download it from my page: Stack: http://www.bjoernke.com/chatrev/chatrev1.3b4.rev Standalone: http://www.bjoernke.com/chatrev/chatrevosx.zip http://www.bjoernke.com/chatrev/chatrevwin.zip Learn more about ChatRev: http://www.bjoernke.com/chatrev/ Have fun Bj?rnke From richmondmathewson at gmail.com Wed Jan 18 09:58:37 2012 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 18 Jan 2012 16:58:37 +0200 Subject: Log in to RevOnline Message-ID: <4F16DE1D.6060504@gmail.com> tried to, found I had forgotten my password, so did the "lost password" thing using my e-mail address, waiting, waiting, waiting...................... any bright ideas chaps? Richmond. From matthias_livecode_150811 at m-r-d.de Wed Jan 18 10:05:21 2012 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Wed, 18 Jan 2012 16:05:21 +0100 Subject: Log in to RevOnline In-Reply-To: <4F16DE1D.6060504@gmail.com> References: <4F16DE1D.6060504@gmail.com> Message-ID: <0CA74FBE-F61B-48FA-8F20-D97DEBC77340@m-r-d.de> Hi Richmond, how about sending an email to support at runrev.com ? ;) Matthias Am 18.01.2012 um 15:58 schrieb Richmond: > tried to, > > found I had forgotten my password, so did the "lost password" thing > using my e-mail address, waiting, waiting, waiting...................... > > any bright ideas chaps? > > 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 cmsheffield at me.com Wed Jan 18 10:14:56 2012 From: cmsheffield at me.com (Chris Sheffield) Date: Wed, 18 Jan 2012 08:14:56 -0700 Subject: iOS: performance issues with visual effects In-Reply-To: <4F1611A3.30105@hyperactivesw.com> References: <77476FC2-2D6C-4308-8F8D-6FF424A5B9C6@me.com> <4F1611A3.30105@hyperactivesw.com> Message-ID: <47ABF336-ECE2-4F0F-BA29-BFB4C1F1B8C4@me.com> Yes, it is slightly faster using this method. It still seems slower than it should be, however. I'm really not sure if there's anything that can be done. It may just be the nature of using these particular effects on this particular hardware. I would imagine an iPad 2 would perform a bit better. I may have to compromise and use other effects. Thanks, Chris -- Chris Sheffield Read Naturally, Inc. www.readnaturally.com On Jan 17, 2012, at 5:26 PM, J. Landman Gay wrote: > On 1/17/12 2:27 PM, Chris Sheffield wrote: > >> show/hide group "window" with visual effect dissolve very fast >> >> The effect happens, but sometimes there is a 2 or 3 second delay >> between the tap on the screen and the change on the screen. > > I wonder if it would be faster if you use the new syntax: > > lock screen for visual effect > show/hide group > unlock screen with visual effect... > > -- > 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 richmondmathewson at gmail.com Wed Jan 18 10:37:57 2012 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 18 Jan 2012 17:37:57 +0200 Subject: Log in to RevOnline In-Reply-To: <0CA74FBE-F61B-48FA-8F20-D97DEBC77340@m-r-d.de> References: <4F16DE1D.6060504@gmail.com> <0CA74FBE-F61B-48FA-8F20-D97DEBC77340@m-r-d.de> Message-ID: <4F16E755.3070602@gmail.com> On 01/18/2012 05:05 PM, Matthias Rebbe wrote: > Hi Richmond, > > how about sending an email to support at runrev.com ? ;) Thanks. > > Matthias > > > Am 18.01.2012 um 15:58 schrieb Richmond: > >> tried to, >> >> found I had forgotten my password, so did the "lost password" thing >> using my e-mail address, waiting, waiting, waiting...................... >> >> any bright ideas chaps? >> >> 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 jacque at hyperactivesw.com Wed Jan 18 10:45:20 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 18 Jan 2012 09:45:20 -0600 Subject: Log in to RevOnline In-Reply-To: <4F16DE1D.6060504@gmail.com> References: <4F16DE1D.6060504@gmail.com> Message-ID: <4F16E910.8010009@hyperactivesw.com> On 1/18/12 8:58 AM, Richmond wrote: > tried to, > > found I had forgotten my password, so did the "lost password" thing > using my e-mail address, waiting, waiting, waiting...................... > > any bright ideas chaps? I'm locked out too, and requesting a password reset does nothing. I reported it in QCC, it's been verified, but no fix yet. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From richmondmathewson at gmail.com Wed Jan 18 11:05:15 2012 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 18 Jan 2012 18:05:15 +0200 Subject: While Rome burns......... Message-ID: <4F16EDBB.8090907@gmail.com> Well, perhaps not; but RevOnline is being a bit hopeless. So, the "How I wasted my time over the New Year Holidays" stack is now available for those with similar time to waste here: http://andregarzia.on-rev.com/richmond/STUFF/POO.rev.zip Go on, I dare you; you never know, you might be able to think "I knew how to do that already" and feel a warm surge of smugness . . . :) Love and good wishes for 2012, Richmond Mathewson. From m.schonewille at economy-x-talk.com Wed Jan 18 11:33:52 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 18 Jan 2012 17:33:52 +0100 Subject: While Rome burns......... In-Reply-To: <4F16EDBB.8090907@gmail.com> References: <4F16EDBB.8090907@gmail.com> Message-ID: <1B8F9D90-6390-47DC-9F04-560C3E28CB57@economy-x-talk.com> Hi, If RevOnline doesn't work for you, you could also use Dropbox http://qery.us/u6 to publish your stacks. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 18 jan 2012, at 17:05, Richmond wrote: > Well, perhaps not; but RevOnline is being a bit hopeless. > > So, the "How I wasted my time over the New Year Holidays" stack is now available for > those with similar time to waste here: > > http://andregarzia.on-rev.com/richmond/STUFF/POO.rev.zip > > Go on, I dare you; you never know, you might be able to think > "I knew how to do that already" and feel a warm surge of smugness . . . :) > > Love and good wishes for 2012, Richmond Mathewson. From pete at mollysrevenge.com Wed Jan 18 13:36:45 2012 From: pete at mollysrevenge.com (Pete) Date: Wed, 18 Jan 2012 10:36:45 -0800 Subject: Datagrid Column editing Message-ID: I have a datagrid with three columns in it, col1 is not editable, col2 contains an option menu and is also marked as not editable, col3 is a normal text column and is editable. If I double click on a cell in col3 to edit it, change the contents, then press tab, the cursor stays in the col3 cell. I would have expected it to move to the next row of the datagrid, probably because I'm used to seeing spreadsheets and word processing tables work that way. I can probably figure out how to make this work by writing some code in a custom column behavior but thought I would check first to see if there is some hidden datagrid property that makes this happen. -- Pete Molly's Revenge From effendi at wanadoo.fr Wed Jan 18 15:02:28 2012 From: effendi at wanadoo.fr (Francis Nugent Dixon) Date: Wed, 18 Jan 2012 21:02:28 +0100 Subject: Subject: While Bome Rurns......... In-Reply-To: References: Message-ID: Richard, From an Irish man to a Scots man ..... So I thought " What a load of B****cks", and then poured myself a Jameson. Things looked a bit better, so I poured myself a second Jameson. This time, I thought "This is totally useless". "I wonder why he tasted my wime !" Then I had another Jameson.......... I am not under the affluence of incohol, as some tinkle peep I am, but I am gebinning to assepriate your little siece of poftware. You should moo door ot these groprams. Bome might be rurning, but Jameson mill wake your woftsare gropram asbolutey nascifating 1 -Gest Berards SanFris From richmondmathewson at gmail.com Wed Jan 18 15:16:20 2012 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 18 Jan 2012 22:16:20 +0200 Subject: Subject: While Bome Rurns......... In-Reply-To: References: Message-ID: <4F172894.5080305@gmail.com> On 01/18/2012 10:02 PM, Francis Nugent Dixon wrote: > Richard, > > From an Irish man to a Scots man ..... > > So I thought " What a load of B****cks", > and then poured myself a Jameson. > Things looked a bit better, so I poured > myself a second Jameson. > > This time, I thought "This is totally useless". > "I wonder why he tasted my wime !" > > Then I had another Jameson.......... > > I am not under the affluence of incohol, as > some tinkle peep I am, but I am gebinning to > assepriate your little siece of poftware. > > You should moo door ot these groprams. > > Bome might be rurning, but Jameson mill wake > your woftsare gropram asbolutey nascifating 1 > > -Gest Berards > > SanFris > > Love and kisses, King Nuther Kupp the second. > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Wed Jan 18 15:17:50 2012 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 18 Jan 2012 22:17:50 +0200 Subject: While Rome burns......... In-Reply-To: <4F16EDBB.8090907@gmail.com> References: <4F16EDBB.8090907@gmail.com> Message-ID: <4F1728EE.6010405@gmail.com> On 01/18/2012 06:05 PM, Richmond wrote: > Well, perhaps not; but RevOnline is being a bit hopeless. > > So, the "How I wasted my time over the New Year Holidays" stack is now > available for > those with similar time to waste here: > > http://andregarzia.on-rev.com/richmond/STUFF/POO.rev.zip > > Go on, I dare you; you never know, you might be able to think > "I knew how to do that already" and feel a warm surge of smugness . . > . :) > > Love and good wishes for 2012, Richmond Mathewson. Notwithstanding the New Year foolishness, this stack does present some graphic fun; and I am especially proud of the "points-and-lines". From dunbarx at aol.com Wed Jan 18 17:20:39 2012 From: dunbarx at aol.com (dunbarx at aol.com) Date: Wed, 18 Jan 2012 17:20:39 -0500 (EST) Subject: Find oddity? In-Reply-To: <4F158B8E.9070908@fourthworld.com> References: <4F158B8E.9070908@fourthworld.com> Message-ID: <8CEA4468B0C2EFD-2424-14B76@webmail-d129.sysops.aol.com> In good ol' HC, if you have a field somewhere with text (someText) in it, and a button that contains: on mouseUp find someText end mouseUp The text is found, and a box is drawn around it. If you press the button again the box disappears for a moment, and then is redrawn. This is known as finding once more. In LC, however, the second find makes the box disappear altogether, You can get it back if you find for a third time. (or fifth, etc.) Annoying, unless it is just me and mine. Craig Newman From bobs at twft.com Wed Jan 18 17:47:39 2012 From: bobs at twft.com (Bob Sneidar) Date: Wed, 18 Jan 2012 14:47:39 -0800 Subject: Datagrid Column editing In-Reply-To: References: Message-ID: Not that I have found. I had the same problem trying to use a datagrid as a spreadsheet. For one, hitting return in a spreadsheet will go to the cell below. In a datagrid, it doesn't. Also, you can scroll down as far as you like (within limits) in a spreadsheet, but a datagrid will only scroll as far as there is actual data, and you have to code a way to add new records. Simply clicking in the empty space below the last row does nothing. There are lots of ways that datagrids do not act like spreadsheets. It begs the question, is there room for another datagrid type? We have tables and we have forms. How about a third type? Spreadsheet? Just a thot... Bob On Jan 18, 2012, at 10:36 AM, Pete wrote: > I have a datagrid with three columns in it, col1 is not editable, col2 > contains an option menu and is also marked as not editable, col3 is a > normal text column and is editable. > > If I double click on a cell in col3 to edit it, change the contents, then > press tab, the cursor stays in the col3 cell. I would have expected it to > move to the next row of the datagrid, probably because I'm used to seeing > spreadsheets and word processing tables work that way. > > I can probably figure out how to make this work by writing some code in a > custom column behavior but thought I would check first to see if there is > some hidden datagrid property that makes this happen. > > > -- > 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 pmbrig at gmail.com Wed Jan 18 18:17:20 2012 From: pmbrig at gmail.com (Peter M. Brigham, MD) Date: Wed, 18 Jan 2012 18:17:20 -0500 Subject: Find oddity? In-Reply-To: <8CEA4468B0C2EFD-2424-14B76@webmail-d129.sysops.aol.com> References: <4F158B8E.9070908@fourthworld.com> <8CEA4468B0C2EFD-2424-14B76@webmail-d129.sysops.aol.com> Message-ID: <5BAB57BF-9F3B-4B62-8CCA-0D2E24EF8007@gmail.com> The old HC behavior is what I see on LC. However, if the text string is in a hidden field for which the dontsearch property = false, you will not see the find box in that field, then if you find again and the next find is in a searchable visible field, the box will appear again. You may have to set the dontsearch property of various fields in the mouseup handler before you perform the find in order not to confuse things for the user. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Jan 18, 2012, at 5:20 PM, DunbarX at aol.com wrote: > > > In good ol' HC, if you have a field somewhere with text (someText) in it, and a button that contains: > > > on mouseUp > find someText > end mouseUp > > > The text is found, and a box is drawn around it. If you press the button again > the box disappears for a moment, and then is redrawn. This is known as finding once more. > > > In LC, however, the second find makes the box disappear altogether, You can get it back if you find > for a third time. (or fifth, etc.) > > > Annoying, unless it is just me and mine. > > > Craig Newman > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jan 18 19:52:10 2012 From: andre at andregarzia.com (Andre Garzia) Date: Wed, 18 Jan 2012 22:52:10 -0200 Subject: looking for new iOS device, anyone recommends iPod Touch? Message-ID: Hey Folks, My iPhone 3G is showing its age. I use it only for testing and it is getting hard to test new stuff in it. The system is just too slow. For example, I built a little arkanoid clone here, it runs fine on my iPad and my Nexus S but it is unusable on my iPhone 3G, even after setting the acceleratedRendeding property to true and setting the layermode of the single moving entity to dynamic. It is really slow. I don't need an extra phone, I already have the iPhone 3G and Nexus S (and my favorite, the Palm Pre 2). So I am thinking about buying an iPod Touch to serve as my testing device for iOS. Anyone here has some feedback or advise for me? Thanks in advance! Andre PS: IMHO WebOS is the greatest system ever. -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. From gerry.orkin at gmail.com Wed Jan 18 19:59:15 2012 From: gerry.orkin at gmail.com (Gerry Orkin) Date: Thu, 19 Jan 2012 11:59:15 +1100 Subject: looking for new iOS device, anyone recommends iPod Touch? In-Reply-To: References: Message-ID: I use one (and an iPhone 4s). The touch doesn't have a GPS chip - otherwise it's a great testing device for the price :) g On 19/01/2012, at 11:52 AM, Andre Garzia wrote: > So I am thinking about buying an > iPod Touch to serve as my testing device for iOS. Anyone here has some > feedback or advise for me? From m.schonewille at economy-x-talk.com Wed Jan 18 20:02:44 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Thu, 19 Jan 2012 02:02:44 +0100 Subject: looking for new iOS device, anyone recommends iPod Touch? In-Reply-To: References: Message-ID: Hi Andre, If you have an iPad, you can run iPhone apps on it. Why buy an additional device if you don't need a phone? If it is because you want another cool device, then buy the iPhone 4S :-) -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 19 jan 2012, at 01:52, Andre Garzia wrote: > Hey Folks, > > My iPhone 3G is showing its age. I use it only for testing and it is > getting hard to test new stuff in it. The system is just too slow. For > example, I built a little arkanoid clone here, it runs fine on my iPad > and my Nexus S but it is unusable on my iPhone 3G, even after setting > the acceleratedRendeding property to true and setting the layermode of > the single moving entity to dynamic. It is really slow. > > I don't need an extra phone, I already have the iPhone 3G and Nexus S > (and my favorite, the Palm Pre 2). So I am thinking about buying an > iPod Touch to serve as my testing device for iOS. Anyone here has some > feedback or advise for me? > > Thanks in advance! > Andre > PS: IMHO WebOS is the greatest system ever. > From andre at andregarzia.com Wed Jan 18 20:17:35 2012 From: andre at andregarzia.com (Andre Garzia) Date: Wed, 18 Jan 2012 23:17:35 -0200 Subject: looking for new iOS device, anyone recommends iPod Touch? In-Reply-To: References: Message-ID: Hello Mark and Gerry, Gerry: Can't iPod touch use A-GPS? Thakns for the reply Mark: Thanks for the reply. I want to run iPhone apps in iPhone resolutions, not on an iPad =) The iPhone 4S costs about 1400 USD here in Brazil, too expensive for me. The iPod touch is cheaper, costing about 350 USD. And yes, we pay huge taxes here, about 60% on import =( I can't run my current software in iPhone 3G. Actually, I don't know if developers are still supporting iPhone 3G... Cheers andre On Wed, Jan 18, 2012 at 11:02 PM, Mark Schonewille wrote: > Hi Andre, > > If you have an iPad, you can run iPhone apps on it. Why buy an additional device if you don't need a phone? If it is because you want another cool device, then buy the iPhone 4S :-) > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za > > On 19 jan 2012, at 01:52, Andre Garzia wrote: > >> Hey Folks, >> >> My iPhone 3G is showing its age. I use it only for testing and it is >> getting hard to test new stuff in it. The system is just too slow. For >> example, I built a little arkanoid clone here, it runs fine on my iPad >> and my Nexus S but it is unusable on my iPhone 3G, even after setting >> the acceleratedRendeding property to true and setting the layermode of >> the single moving entity to dynamic. It is really slow. >> >> I don't need an extra phone, I already have the iPhone 3G and Nexus S >> (and my favorite, the Palm Pre 2). So I am thinking about buying an >> iPod Touch to serve as my testing device for iOS. Anyone here has some >> feedback or advise for me? >> >> Thanks in advance! >> Andre >> PS: IMHO WebOS is the greatest system ever. >> > > > _______________________________________________ > use-livecode mailing list > use-livecode 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. http://fon.nu -- minimalist url shortening service. From userev at canelasoftware.com Wed Jan 18 20:19:04 2012 From: userev at canelasoftware.com (Mark Talluto) Date: Wed, 18 Jan 2012 17:19:04 -0800 Subject: looking for new iOS device, anyone recommends iPod Touch? In-Reply-To: References: Message-ID: On Jan 18, 2012, at 4:52 PM, Andre Garzia wrote: > Hey Folks, > > My iPhone 3G is showing its age. I use it only for testing and it is > getting hard to test new stuff in it. The system is just too slow. For > example, I built a little arkanoid clone here, it runs fine on my iPad > and my Nexus S but it is unusable on my iPhone 3G, even after setting > the acceleratedRendeding property to true and setting the layermode of > the single moving entity to dynamic. It is really slow. > > I don't need an extra phone, I already have the iPhone 3G and Nexus S > (and my favorite, the Palm Pre 2). So I am thinking about buying an > iPod Touch to serve as my testing device for iOS. Anyone here has some > feedback or advise for me? > Macrumors.com says you should feel good about buying the current touch as it was just refreshed by Apple. http://buyersguide.macrumors.com/#iPod_Touch Best regards, Mark Talluto http://www.canelasoftware.com From pete at mollysrevenge.com Wed Jan 18 20:19:40 2012 From: pete at mollysrevenge.com (Pete) Date: Wed, 18 Jan 2012 17:19:40 -0800 Subject: Datagrid Column editing In-Reply-To: References: Message-ID: Folks, In case anyone needs to do this, here's how. Put an OpenNextFieldEditor into your custom column behavior for the datagrid. This message is sent by the datagrid library when the user presses the tab key in a column that is being edited. If it is handled then the datagrid does not carry out its default action which is to move the the next editable column in the same row. The trick is to send an EditCell message to the datagrid with the column name and line number of the cell you want to open for editing next. Which cell that is will depend on your app of course but if you determine that you are in the last editable column of the current row, it's pretty easy to figure out the first editable cell of the next row and send the appropriate EditCell message. Pete On Wed, Jan 18, 2012 at 10:36 AM, Pete wrote: > I have a datagrid with three columns in it, col1 is not editable, col2 > contains an option menu and is also marked as not editable, col3 is a > normal text column and is editable. > > If I double click on a cell in col3 to edit it, change the contents, then > press tab, the cursor stays in the col3 cell. I would have expected it to > move to the next row of the datagrid, probably because I'm used to seeing > spreadsheets and word processing tables work that way. > > I can probably figure out how to make this work by writing some code in a > custom column behavior but thought I would check first to see if there is > some hidden datagrid property that makes this happen. > > > -- > Pete > Molly's Revenge > > > -- Pete Molly's Revenge From coiin at verizon.net Wed Jan 18 20:27:33 2012 From: coiin at verizon.net (Colin Holgate) Date: Wed, 18 Jan 2012 20:27:33 -0500 Subject: Find oddity? In-Reply-To: <5BAB57BF-9F3B-4B62-8CCA-0D2E24EF8007@gmail.com> References: <4F158B8E.9070908@fourthworld.com> <8CEA4468B0C2EFD-2424-14B76@webmail-d129.sysops.aol.com> <5BAB57BF-9F3B-4B62-8CCA-0D2E24EF8007@gmail.com> Message-ID: If you had 2000 letters, then a gap, and another 2000 letters, and you tried to find the gap, would that be "2001, a Space Oddity"? From coiin at verizon.net Wed Jan 18 20:32:02 2012 From: coiin at verizon.net (Colin Holgate) Date: Wed, 18 Jan 2012 20:32:02 -0500 Subject: looking for new iOS device, anyone recommends iPod Touch? In-Reply-To: References: Message-ID: <0CF92BBB-F84F-40D3-B12A-2A49A118A9BE@verizon.net> I think that your thinking is wrong! The 3GS does remarkably well, more or less the same as the iPhone 4 (which has four times the pixels, but only twice the CPU speed). Make your things work well on the 3GS, then it will work fine on recent devices. On Jan 18, 2012, at 7:52 PM, Andre Garzia wrote: > Anyone here has some > feedback or advise for me? From andre at andregarzia.com Wed Jan 18 20:37:50 2012 From: andre at andregarzia.com (Andre Garzia) Date: Wed, 18 Jan 2012 23:37:50 -0200 Subject: looking for new iOS device, anyone recommends iPod Touch? In-Reply-To: <0CF92BBB-F84F-40D3-B12A-2A49A118A9BE@verizon.net> References: <0CF92BBB-F84F-40D3-B12A-2A49A118A9BE@verizon.net> Message-ID: Colin, What settings are you using for the compositor stuff on the 3GS? Cheers andre On Wed, Jan 18, 2012 at 11:32 PM, Colin Holgate wrote: > I think that your thinking is wrong! The 3GS does remarkably well, more or less the same as the iPhone 4 (which has four times the pixels, but only twice the CPU speed). Make your things work well on the 3GS, then it will work fine on recent devices. > > > On Jan 18, 2012, at 7:52 PM, Andre Garzia wrote: > >> Anyone here has some >> feedback or advise for me? > > _______________________________________________ > use-livecode mailing list > use-livecode 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. http://fon.nu -- minimalist url shortening service. From andre at andregarzia.com Wed Jan 18 20:38:52 2012 From: andre at andregarzia.com (Andre Garzia) Date: Wed, 18 Jan 2012 23:38:52 -0200 Subject: looking for new iOS device, anyone recommends iPod Touch? In-Reply-To: <0CF92BBB-F84F-40D3-B12A-2A49A118A9BE@verizon.net> References: <0CF92BBB-F84F-40D3-B12A-2A49A118A9BE@verizon.net> Message-ID: On Wed, Jan 18, 2012 at 11:32 PM, Colin Holgate wrote: > I think that your thinking is wrong! The 3GS does remarkably well, more or less the same as the iPhone 4 (which has four times the pixels, but only twice the CPU speed). Make your things work well on the 3GS, then it will work fine on recent devices. Colin, Thanks for the reply. The 3GS is way more powerful than the 3G (It has double the RAM). What compositor settings are you using? Cheers andre -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. From coiin at verizon.net Wed Jan 18 21:06:56 2012 From: coiin at verizon.net (Colin Holgate) Date: Wed, 18 Jan 2012 21:06:56 -0500 Subject: looking for new iOS device, anyone recommends iPod Touch? In-Reply-To: References: <0CF92BBB-F84F-40D3-B12A-2A49A118A9BE@verizon.net> Message-ID: I haven't got back into composting lately. I was going to try the new 5.02 approach. From andre at andregarzia.com Wed Jan 18 21:16:02 2012 From: andre at andregarzia.com (Andre Garzia) Date: Thu, 19 Jan 2012 00:16:02 -0200 Subject: looking for new iOS device, anyone recommends iPod Touch? In-Reply-To: References: <0CF92BBB-F84F-40D3-B12A-2A49A118A9BE@verizon.net> Message-ID: On Thu, Jan 19, 2012 at 12:06 AM, Colin Holgate wrote: > I haven't got back into composting lately. I was going to try the new 5.02 approach. > Colin, Thanks. I changed some stuff here and now it is usable but it is half the speed of my iPad =( for games this is a big hit... Anyone here has successful stories about using accelerated graphics on iPhone 3G? Cheers 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 -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. From dunbarx at aol.com Wed Jan 18 21:16:59 2012 From: dunbarx at aol.com (dunbarx at aol.com) Date: Wed, 18 Jan 2012 21:16:59 -0500 (EST) Subject: Find oddity? In-Reply-To: <5BAB57BF-9F3B-4B62-8CCA-0D2E24EF8007@gmail.com> References: <4F158B8E.9070908@fourthworld.com><8CEA4468B0C2EFD-2424-14B76@webmail-d129.sysops.aol.com> <5BAB57BF-9F3B-4B62-8CCA-0D2E24EF8007@gmail.com> Message-ID: <8CEA4678EED7FE5-1CBC-DE3C@webmail-d054.sysops.aol.com> Peter. I am the user. It isn't hidden fields with strange properties that I cannot see, it is naked ones I can. I made a new stack, placed one field and one button. Put some text into the field. Are you seeing continued find boxes? I am using LC 4.5.3. Just playing around: on mouseup repeat 5 find myText wait 30 end repeat end mouseup "Find" box winks in and out. Craig Newman -----Original Message----- From: Peter M. Brigham, MD To: How to use LiveCode Sent: Wed, Jan 18, 2012 1:19 pm Subject: Re: Find oddity? The old HC behavior is what I see on LC. However, if the text string is in a hidden field for which the dontsearch property = false, you will not see the find box in that field, then if you find again and the next find is in a searchable visible field, the box will appear again. You may have to set the dontsearch property of various fields in the mouseup handler before you perform the find in order not to confuse things for the user. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Jan 18, 2012, at 5:20 PM, DunbarX at aol.com wrote: > > > In good ol' HC, if you have a field somewhere with text (someText) in it, and a button that contains: > > > on mouseUp > find someText > end mouseUp > > > The text is found, and a box is drawn around it. If you press the button again > the box disappears for a moment, and then is redrawn. This is known as finding once more. > > > In LC, however, the second find makes the box disappear altogether, You can get it back if you find > for a third time. (or fifth, etc.) > > > Annoying, unless it is just me and mine. > > > Craig Newman > > _______________________________________________ > use-livecode mailing list > use-livecode 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 elementarysoftware.com Wed Jan 18 21:17:38 2012 From: scott at elementarysoftware.com (Scott Morrow) Date: Wed, 18 Jan 2012 18:17:38 -0800 Subject: looking for new iOS device, anyone recommends iPod Touch? In-Reply-To: References: Message-ID: <9ACB43FF-6C37-4576-B3F5-A00BF3ABA91A@elementarysoftware.com> ditto Scott Morrow Elementary Software (Now with 20% less chalk dust!) web http://elementarysoftware.com/ email scott at elementarysoftware.com office 1-800-615-0867 ------------------------------------------------------ On Jan 18, 2012, at 4:59 PM, Gerry Orkin wrote: > I use one (and an iPhone 4s). The touch doesn't have a GPS chip - otherwise it's a great testing device for the price :) > > g > > On 19/01/2012, at 11:52 AM, Andre Garzia wrote: > >> So I am thinking about buying an >> iPod Touch to serve as my testing device for iOS. Anyone here has some >> feedback or advise for me? > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jan 18 21:37:57 2012 From: pete at mollysrevenge.com (Pete) Date: Wed, 18 Jan 2012 18:37:57 -0800 Subject: Datagrid Column editing In-Reply-To: References: Message-ID: I did find a way to do some of the things you mentioned Bob (see my post in this thread). I think the autoadd of a new row in the datagrid could easily be implemented in the OpenNextFieldEditor by checking if you are on the last column of the last row, calling AddData to add another row, then sending EditKey to the first editable column of the new row. Not sure about the return key moving down one row You might be able to trap the returnInField message the dgLibrary handles it but passes it down the message path after it has done its thing. There's no way I'd want to try making a datagrid behave like even the simplest spreadsheet but you can probably mimic some of a spreadsheet's navigation tools. Pete On Wed, Jan 18, 2012 at 2:47 PM, Bob Sneidar wrote: > Not that I have found. I had the same problem trying to use a datagrid as > a spreadsheet. For one, hitting return in a spreadsheet will go to the cell > below. In a datagrid, it doesn't. Also, you can scroll down as far as you > like (within limits) in a spreadsheet, but a datagrid will only scroll as > far as there is actual data, and you have to code a way to add new records. > Simply clicking in the empty space below the last row does nothing. > > There are lots of ways that datagrids do not act like spreadsheets. It > begs the question, is there room for another datagrid type? We have tables > and we have forms. How about a third type? Spreadsheet? Just a thot... > > Bob > > > On Jan 18, 2012, at 10:36 AM, Pete wrote: > > > I have a datagrid with three columns in it, col1 is not editable, col2 > > contains an option menu and is also marked as not editable, col3 is a > > normal text column and is editable. > > > > If I double click on a cell in col3 to edit it, change the contents, then > > press tab, the cursor stays in the col3 cell. I would have expected it > to > > move to the next row of the datagrid, probably because I'm used to seeing > > spreadsheets and word processing tables work that way. > > > > I can probably figure out how to make this work by writing some code in a > > custom column behavior but thought I would check first to see if there is > > some hidden datagrid property that makes this happen. > > > > > > -- > > 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 pete at mollysrevenge.com Wed Jan 18 21:41:32 2012 From: pete at mollysrevenge.com (Pete) Date: Wed, 18 Jan 2012 18:41:32 -0800 Subject: looking for new iOS device, anyone recommends iPod Touch? In-Reply-To: References: <0CF92BBB-F84F-40D3-B12A-2A49A118A9BE@verizon.net> Message-ID: Ummm, "composting" or "compositing" :-) Surely 5.0.2 isn't that bad! On Wed, Jan 18, 2012 at 6:06 PM, Colin Holgate wrote: > I haven't got back into composting lately -- Pete Molly's Revenge From jhj at jhj.com Wed Jan 18 21:44:27 2012 From: jhj at jhj.com (Jerry Jensen) Date: Wed, 18 Jan 2012 18:44:27 -0800 Subject: looking for new iOS device, anyone recommends iPod Touch? In-Reply-To: References: <0CF92BBB-F84F-40D3-B12A-2A49A118A9BE@verizon.net> Message-ID: On Jan 18, 2012, at 6:06 PM, Colin Holgate wrote: > I haven't got back into composting lately. I was going to try the new 5.02 approach. In San Francisco everybody has to have a separate bin for that, by ordinance. From lan.kc.macmail at gmail.com Wed Jan 18 22:04:22 2012 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Thu, 19 Jan 2012 11:04:22 +0800 Subject: Find oddity? In-Reply-To: <8CEA4678EED7FE5-1CBC-DE3C@webmail-d054.sysops.aol.com> References: <4F158B8E.9070908@fourthworld.com> <8CEA4468B0C2EFD-2424-14B76@webmail-d129.sysops.aol.com> <5BAB57BF-9F3B-4B62-8CCA-0D2E24EF8007@gmail.com> <8CEA4678EED7FE5-1CBC-DE3C@webmail-d054.sysops.aol.com> Message-ID: Hi Craig, Basically confirmed in 5.0.2 but after a little further investigation I've discovered this is a feature, not a bug. I added 2 fields to a new stack, one for the text, the other to display which loop of the repeat I was in - handler below: on mouseUp put empty into fld "Field2" --loop readout field repeat with x = 1 to 5 find "oddity" put x & "," after fld "Field2" wait 60 end repeat end mouseUp For only 1 instance of the word to be found, it was as you say, the displayed blinked, but for multiple instances it sort of worked, and then didn't, I thought it was random until I discovered that when ever the Find got to the end of the text it sort of missed a beat before it started again. So to clarify, in 5.0.2 on my machine, on a single card, with multiple fields, the Find command sequentially finds all instances of the text, and boxes all of them, but once at the last instance if the Find command is issued again, the Box is removed and no find occurs, if you then issue the Find command again it starts at the beginning. Looking at the Dictionary this is sort of explained. I believe this is similar to other software I use which typically comes up with a dialog to say you've reached the end of the document do you want to start again. With the Find command you could test for "not found", the result of the find command is empty if it finds the text, otherwise it returns "not found", at which point you present a dialogue asking if you want to start at the beginning. HTH On Thu, Jan 19, 2012 at 10:16 AM, wrote: > Peter. > > > I am the user. > > > It isn't hidden fields with strange properties that I cannot see, it is > naked ones I can. I made a new stack, placed one field and one button. Put > some text into the field. > > > Are you seeing continued find boxes? I am using LC 4.5.3. > > > Just playing around: > > > on mouseup > repeat 5 > find myText > wait 30 > end repeat > end mouseup > > > "Find" box winks in and out. > > > Craig Newman > > > > -----Original Message----- > From: Peter M. Brigham, MD > To: How to use LiveCode > Sent: Wed, Jan 18, 2012 1:19 pm > Subject: Re: Find oddity? > > > The old HC behavior is what I see on LC. However, if the text string is in > a > hidden field for which the dontsearch property = false, you will not see > the > find box in that field, then if you find again and the next find is in a > searchable visible field, the box will appear again. You may have to set > the > dontsearch property of various fields in the mouseup handler before you > perform > the find in order not to confuse things for the user. > > -- Peter > > Peter M. Brigham > pmbrig at gmail.com > http://home.comcast.net/~pmbrig > > On Jan 18, 2012, at 5:20 PM, DunbarX at aol.com wrote: > > > > > > > In good ol' HC, if you have a field somewhere with text (someText) in > it, and > a button that contains: > > > > > > on mouseUp > > find someText > > end mouseUp > > > > > > The text is found, and a box is drawn around it. If you press the button > again > > the box disappears for a moment, and then is redrawn. This is known as > finding > once more. > > > > > > In LC, however, the second find makes the box disappear altogether, You > can > get it back if you find > > for a third time. (or fifth, etc.) > > > > > > Annoying, unless it is just me and mine. > > > > > > Craig Newman > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode 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 mwieder at ahsoftware.net Wed Jan 18 22:14:34 2012 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 18 Jan 2012 19:14:34 -0800 Subject: Jolt Award Message-ID: <135556499718.20120118191434@ahsoftware.net> All- This was noticed on the forum today. Hasn't been any word from the team yet about it, maybe they're still off celebrating... http://drdobbs.com/joltawards/232301291?pgno=4 -- -Mark Wieder mwieder at ahsoftware.net From alex at harryscollar.com Wed Jan 18 22:55:02 2012 From: alex at harryscollar.com (Alex Shaw) Date: Thu, 19 Jan 2012 13:55:02 +1000 Subject: Record audio on ios or android In-Reply-To: <135556499718.20120118191434@ahsoftware.net> References: <135556499718.20120118191434@ahsoftware.net> Message-ID: <4F179416.2080807@harryscollar.com> Hi What's the best way to record audio on ios or android with Livecode? The dictionary says the 'record audio' command only works on mac & pc desktops. regards alex From jacque at hyperactivesw.com Wed Jan 18 23:16:52 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 18 Jan 2012 22:16:52 -0600 Subject: Find oddity? In-Reply-To: References: <4F158B8E.9070908@fourthworld.com> <8CEA4468B0C2EFD-2424-14B76@webmail-d129.sysops.aol.com> <5BAB57BF-9F3B-4B62-8CCA-0D2E24EF8007@gmail.com> Message-ID: <4F179934.1020204@hyperactivesw.com> On 1/18/12 7:27 PM, Colin Holgate wrote: > If you had 2000 letters, then a gap, and another 2000 letters, and > you tried to find the gap, would that be "2001, a Space Oddity"? Just how long have you been waiting to use that line? Say goodnight, Colin. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Wed Jan 18 23:20:13 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 18 Jan 2012 22:20:13 -0600 Subject: looking for new iOS device, anyone recommends iPod Touch? In-Reply-To: References: Message-ID: <4F1799FD.1000809@hyperactivesw.com> On 1/18/12 6:52 PM, Andre Garzia wrote: > I don't need an extra phone, I already have the iPhone 3G and Nexus S > (and my favorite, the Palm Pre 2). So I am thinking about buying an > iPod Touch to serve as my testing device for iOS. Anyone here has some > feedback or advise for me? I'd get an iPad. iPhone apps are shown at normal resolution on them, they're small and in the middle of the screen. You would have a device for both resolutions that way. iPads aren't cheap though. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From coiin at verizon.net Wed Jan 18 23:25:05 2012 From: coiin at verizon.net (Colin Holgate) Date: Wed, 18 Jan 2012 23:25:05 -0500 Subject: Find oddity? In-Reply-To: <4F179934.1020204@hyperactivesw.com> References: <4F158B8E.9070908@fourthworld.com> <8CEA4468B0C2EFD-2424-14B76@webmail-d129.sysops.aol.com> <5BAB57BF-9F3B-4B62-8CCA-0D2E24EF8007@gmail.com> <4F179934.1020204@hyperactivesw.com> Message-ID: <758C51D1-DB21-4375-8E3C-768192F95483@verizon.net> Most of the day, but I wanted other more helpful answers to appear first. On Jan 18, 2012, at 11:16 PM, J. Landman Gay wrote: > > Just how long have you been waiting to use that line? From lan.kc.macmail at gmail.com Wed Jan 18 23:31:12 2012 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Thu, 19 Jan 2012 12:31:12 +0800 Subject: Jolt Award In-Reply-To: <135556499718.20120118191434@ahsoftware.net> References: <135556499718.20120118191434@ahsoftware.net> Message-ID: Hmmm, Maybe they are celebrating, then again the line: Still, for those developers looking for an incredibly fast mobile > application prototyping tool > sort of puts a fizzer on things. I don't think RunRev want to be known as a prototyping tool, for the real job to be done by a real tool, so hopefully they are nose to grindstone working on sorting out those "native widgets and resource files" so there is no "main criticism". On Thu, Jan 19, 2012 at 11:14 AM, Mark Wieder wrote: > All- > > This was noticed on the forum today. Hasn't been any word from the > team yet about it, maybe they're still off celebrating... > > http://drdobbs.com/joltawards/232301291?pgno=4 > > -- > -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 monte at sweattechnologies.com Wed Jan 18 23:39:47 2012 From: monte at sweattechnologies.com (Monte Goulding) Date: Thu, 19 Jan 2012 15:39:47 +1100 Subject: Record audio on ios or android In-Reply-To: <4F179416.2080807@harryscollar.com> References: <135556499718.20120118191434@ahsoftware.net> <4F179416.2080807@harryscollar.com> Message-ID: <6F265F5C-6019-46FE-9D21-6BAEF5A164D5@sweattechnologies.com> There's an audio recorder external in the iOS SDK. Cheers Monte On 19/01/2012, at 2:55 PM, Alex Shaw wrote: > Hi > > What's the best way to record audio on ios or android with Livecode? > > The dictionary says the 'record audio' command only works on mac & pc desktops. > > regards > 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 smudge.andy at googlemail.com Thu Jan 19 01:30:16 2012 From: smudge.andy at googlemail.com (AndyP) Date: Wed, 18 Jan 2012 22:30:16 -0800 (PST) Subject: Jolt Award In-Reply-To: <135556499718.20120118191434@ahsoftware.net> References: <135556499718.20120118191434@ahsoftware.net> Message-ID: <1326954616144-4309283.post@n4.nabble.com> Hi Mark, This was announced in newsletter 126. http://www.runrev.com/newsletter/january/issue126/newsletter1.php http://www.runrev.com/newsletter/january/issue126/newsletter1.php If they are still celebrating then it's a damn good party...hic! ----- 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.4.1 released 26/08/2011) -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Jolt-Award-tp4309008p4309283.html Sent from the Revolution - User mailing list archive at Nabble.com. From stephenREVOLUTION2 at barncard.com Thu Jan 19 02:35:07 2012 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Wed, 18 Jan 2012 23:35:07 -0800 Subject: looking for new iOS device, anyone recommends iPod Touch? In-Reply-To: <0CF92BBB-F84F-40D3-B12A-2A49A118A9BE@verizon.net> References: <0CF92BBB-F84F-40D3-B12A-2A49A118A9BE@verizon.net> Message-ID: yeah, but the 3G is now officially a dog. I curse mine every day. Many of the apps on mine (Like Huffington Post) crash or stall. That old processor just doesn't cut it anymore. It works fine as an iPod or a phone but the other stuff is just glacial. Have you tried to find any cases or other accessories for the 3G? You won't - they're all for the 4 now. It's over. Good spare phone though. I've been clinging to my original 'all you an eat' plan, but I guess I'll bite the bullet and re-up for a free 3Gs and use that until the 5 comes out. On 18 January 2012 17:32, Colin Holgate wrote: > I think that your thinking is wrong! The 3GS does remarkably well, more or > less the same as the iPhone 4 (which has four times the pixels, but only > twice the CPU speed). Make your things work well on the 3GS, then it will > work fine on recent devices. > > > On Jan 18, 2012, at 7:52 PM, Andre Garzia wrote: > > > Anyone here has some > > feedback or advise for me? > > _______________________________________________ > use-livecode mailing list > use-livecode 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 m.schonewille at economy-x-talk.com Thu Jan 19 05:18:16 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Thu, 19 Jan 2012 11:18:16 +0100 Subject: Jolt Award In-Reply-To: References: <135556499718.20120118191434@ahsoftware.net> Message-ID: <6FA1B69F-1117-448B-A503-279AA674ED68@economy-x-talk.com> Exactly my thoughts, Kay! -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 19 jan 2012, at 05:31, Kay C Lan wrote: > > sort of puts a fizzer on things. I don't think RunRev want to be known as a > prototyping tool, for the real job to be done by a real tool, so hopefully > they are nose to grindstone working on sorting out those "native widgets > and resource files" so there is no "main criticism". From tkuypers at telenet.be Thu Jan 19 05:20:01 2012 From: tkuypers at telenet.be (tkuypers at telenet.be) Date: Thu, 19 Jan 2012 11:20:01 +0100 Subject: revBrowser & sound Message-ID: Maybe somewhat silly, but who can shed a light on this. My favorite radiostation switched from an iTunes stream to a webstream for their internet broadcast. This means I need to open my browser all the time to listen to the music and it's kinda annoying to always have their website open when surfing the internet, accidentally closing my music when closing to many windows. So having some spare time, I created a very basic stack and added a revBrowser object and a start/stop button. Easy as LiveCode is, it took me less then 3 minutes to show the correct page, but I can't hear any music :-( The URL I need to use is http://q-music.be/sites/q-music.be/themes/qmusic/luister_live.php?quality=laag Anyone any idea or suggestions? Met vriendelijke groeten, Warm Regards, Ton Kuypers +32 (0) 477 739 530 Aardbemden 11 ? B-2400 ? Mol ? Belgium www.publishingtools4u.com From matthias_livecode_150811 at m-r-d.de Thu Jan 19 09:04:14 2012 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Thu, 19 Jan 2012 15:04:14 +0100 Subject: revBrowser & sound In-Reply-To: References: Message-ID: <9691D378-859D-4732-8D69-4C4DA0062BE1@m-r-d.de> Ton, i am pretty sure, that this is not want you want to hear. I do not use revBrowser anymore, because it is not possible to create reliable apps with it. That is not a complaint, just a fact. But if you are on Mac you could try Jerry Daniels RodeoAppMaker instead, which is able to create a browser app for specific URLs. http://rodeoapps.com/Capture-Your-Web-Workflow-in-an-App/ It can create Apps with multiple URL, so you can switch between the sessions. Nice feature. You just have to pay 1$ once, and you can create as many desktop apps as you want. Another nice tool for such things is Fluid (4,99$). http://fluidapp.com/ You can try it for free. The nice thing with that is, that you can pin the created app to the status bar and that you can resize the window to very small size. That is not possible with RodeoAppmaker. Fluid apps are licensed to you, so you are not allowed to share them. RodeoAppMaker apps can be shared. I use both tools from time to time. Tried to create a similar tool with livecode, but ran into some serious problems with websites that open new windows by javascript. So that makes revBrowser usesless at least under Mac. And it is not fixable yet. Runrev says that there is a problem with webKit reporting no value back. Why the Fluid / RodeoMaker created apps do work with such websites? I don?t know. But they work. So give that tools a try. Regards, Matthias Am 19.01.2012 um 11:20 schrieb tkuypers at telenet.be: > Maybe somewhat silly, but who can shed a light on this. > > My favorite radiostation switched from an iTunes stream to a webstream for their internet broadcast. > This means I need to open my browser all the time to listen to the music and it's kinda annoying to always have their website open when surfing the internet, accidentally closing my music when closing to many windows. > > So having some spare time, I created a very basic stack and added a revBrowser object and a start/stop button. > Easy as LiveCode is, it took me less then 3 minutes to show the correct page, but I can't hear any music :-( > > The URL I need to use is http://q-music.be/sites/q-music.be/themes/qmusic/luister_live.php?quality=laag > > Anyone any idea or suggestions? > > > Met vriendelijke groeten, > Warm Regards, > > > Ton Kuypers > +32 (0) 477 739 530 > > Aardbemden 11 ? B-2400 ? Mol ? Belgium > www.publishingtools4u.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 henshaw at me.com Thu Jan 19 09:10:38 2012 From: henshaw at me.com (Andrew Henshaw) Date: Thu, 19 Jan 2012 14:10:38 +0000 Subject: looking for new iOS device, anyone recommends iPod Touch? In-Reply-To: References: Message-ID: Hi Andre, I lucky enough to have them all, and id agree the original 3G is now too slow. I keep it so I can test the worst case, but its slow. If you have an original iPad however, Id just use that and compile the app as an iPhone only app to force it to emulate the iPhone. Its almost identical in performance to the 4, while the 4s and iPad 2 are faster, but if you have something working well on the iPad then it will work ok on the others. Ive only tested on the iPod touch as its my nieces, but it seems very similar to the iPhone 4. You can test the retina graphics in the simulator to make sure they lay out correctly, there is really no need to get another device. Now Android is another story completely! Andy On 19 Jan 2012, at 00:52, Andre Garzia wrote: > Hey Folks, > > My iPhone 3G is showing its age. I use it only for testing and it is > getting hard to test new stuff in it. The system is just too slow. For > example, I built a little arkanoid clone here, it runs fine on my iPad > and my Nexus S but it is unusable on my iPhone 3G, even after setting > the acceleratedRendeding property to true and setting the layermode of > the single moving entity to dynamic. It is really slow. > > I don't need an extra phone, I already have the iPhone 3G and Nexus S > (and my favorite, the Palm Pre 2). So I am thinking about buying an > iPod Touch to serve as my testing device for iOS. Anyone here has some > feedback or advise for me? > > Thanks in advance! > Andre > PS: IMHO WebOS is the greatest system ever. > > -- > http://www.andregarzia.com -- All We Do Is Code. > http://fon.nu -- minimalist url shortening service. > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Jan 19 10:02:53 2012 From: revolution at derbrill.de (Malte Brill) Date: Thu, 19 Jan 2012 16:02:53 +0100 Subject: Session strategies for liveCode server In-Reply-To: References: Message-ID: <0A1ECBD4-ED00-4555-9251-5F82B576A676@derbrill.de> Anyone, pretty please? Andre, Stephen? I just do not get it. I have a login form now and that one calls a liveCode script to validate the user and start a session: start" else include "login.html" end if end if ?> As soon as I click the start link the session appears to have died. $_SESSION is empty. It does not have keys either... References: <9691D378-859D-4732-8D69-4C4DA0062BE1@m-r-d.de> Message-ID: Got it to work with on win 7, livecode 5.0.2 using revbrowser but a script error pops up. The stream still works for me though. the script error does NOT show when using a regular old browser. Like Andre, i've had a mixed bag with revbrowser. A few things work smashingly well, then theres everything else. From mwieder at ahsoftware.net Thu Jan 19 11:36:56 2012 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 19 Jan 2012 08:36:56 -0800 Subject: Jolt Award In-Reply-To: References: <135556499718.20120118191434@ahsoftware.net> Message-ID: <46604641812.20120119083656@ahsoftware.net> Kay- Wednesday, January 18, 2012, 8:31:12 PM, you wrote: > sort of puts a fizzer on things. I don't think RunRev want to be known as a > prototyping tool, for the real job to be done by a real tool, so hopefully > they are nose to grindstone working on sorting out those "native widgets > and resource files" so there is no "main criticism". Native widgets would be nice on the desktop, too, but I'm not holding my breath. -- -Mark Wieder mwieder at ahsoftware.net From mwieder at ahsoftware.net Thu Jan 19 11:39:11 2012 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 19 Jan 2012 08:39:11 -0800 Subject: Jolt Award In-Reply-To: <1326954616144-4309283.post@n4.nabble.com> References: <135556499718.20120118191434@ahsoftware.net> <1326954616144-4309283.post@n4.nabble.com> Message-ID: <72604776609.20120119083911@ahsoftware.net> AndyP- Wednesday, January 18, 2012, 10:30:16 PM, you wrote: > Hi Mark, > This was announced in newsletter 126. That's funny. I never even looked at the front page of the newsletter, just went straight for the articles. I wonder what else I've been missing? -- -Mark Wieder mwieder at ahsoftware.net From rdimola at evergreeninfo.net Thu Jan 19 12:05:43 2012 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Thu, 19 Jan 2012 12:05:43 -0500 Subject: Android Orientation change artifacts In-Reply-To: References: <9691D378-859D-4732-8D69-4C4DA0062BE1@m-r-d.de> Message-ID: <000901ccd6cc$948e54d0$bdaafe70$@net> When running on the device, I receive the resizestack message. I resize and move all controls on the card then pass the message. When the screen in redrawn in the new orientation there is 1 or 2 pixel wide random noise to the right from top to bottom of all images(most but not all of the time). My understanding is that the resizestack message is fired off before the screen is redrawn and the orientationchanged message is sent after the redraw. This is the same kind of artifacts I saw back in my early LC days when I resized controls in the openCard message instead of the preopencard message. Note: The same resize/move controls code is used in my preopencard and there are no problems or noise. If I turn it to landscape and move among cards, no problem. If I turn it to portrait and move among cards, no problem. Problem is just when you change orientation. I tried locking the screen, moving controls and then unlocking it in the resizestack and that did not help. Am I using the correct message to resize controls when the device changes its orientation? Ralph DiMola IT Director Evergreen Information Services From dunbarx at aol.com Thu Jan 19 12:34:51 2012 From: dunbarx at aol.com (dunbarx at aol.com) Date: Thu, 19 Jan 2012 12:34:51 -0500 (EST) Subject: Find oddity? In-Reply-To: References: <4F158B8E.9070908@fourthworld.com><8CEA4468B0C2EFD-2424-14B76@webmail-d129.sysops.aol.com><5BAB57BF-9F3B-4B62-8CCA-0D2E24EF8007@gmail.com><8CEA4678EED7FE5-1CBC-DE3C@webmail-d054.sysops.aol.com> Message-ID: <8CEA4E7C8B15A0F-238C-40EC@webmail-d129.sysops.aol.com> Kay. Interesting, but I did not mean to cloud the issue. I was just fooling around, So you do see that, with a single instance of text in a field, successive find commands will alternately box and then unbox the foundtext? To me, this is a bug. Craig -----Original Message----- From: Kay C Lan To: How to use LiveCode Sent: Wed, Jan 18, 2012 5:06 pm Subject: Re: Find oddity? Hi Craig, Basically confirmed in 5.0.2 but after a little further investigation I've discovered this is a feature, not a bug. I added 2 fields to a new stack, one for the text, the other to display which loop of the repeat I was in - handler below: on mouseUp put empty into fld "Field2" --loop readout field repeat with x = 1 to 5 find "oddity" put x & "," after fld "Field2" wait 60 end repeat end mouseUp For only 1 instance of the word to be found, it was as you say, the displayed blinked, but for multiple instances it sort of worked, and then didn't, I thought it was random until I discovered that when ever the Find got to the end of the text it sort of missed a beat before it started again. So to clarify, in 5.0.2 on my machine, on a single card, with multiple fields, the Find command sequentially finds all instances of the text, and boxes all of them, but once at the last instance if the Find command is issued again, the Box is removed and no find occurs, if you then issue the Find command again it starts at the beginning. Looking at the Dictionary this is sort of explained. I believe this is similar to other software I use which typically comes up with a dialog to say you've reached the end of the document do you want to start again. With the Find command you could test for "not found", the result of the find command is empty if it finds the text, otherwise it returns "not found", at which point you present a dialogue asking if you want to start at the beginning. HTH On Thu, Jan 19, 2012 at 10:16 AM, wrote: > Peter. > > > I am the user. > > > It isn't hidden fields with strange properties that I cannot see, it is > naked ones I can. I made a new stack, placed one field and one button. Put > some text into the field. > > > Are you seeing continued find boxes? I am using LC 4.5.3. > > > Just playing around: > > > on mouseup > repeat 5 > find myText > wait 30 > end repeat > end mouseup > > > "Find" box winks in and out. > > > Craig Newman > > > > -----Original Message----- > From: Peter M. Brigham, MD > To: How to use LiveCode > Sent: Wed, Jan 18, 2012 1:19 pm > Subject: Re: Find oddity? > > > The old HC behavior is what I see on LC. However, if the text string is in > a > hidden field for which the dontsearch property = false, you will not see > the > find box in that field, then if you find again and the next find is in a > searchable visible field, the box will appear again. You may have to set > the > dontsearch property of various fields in the mouseup handler before you > perform > the find in order not to confuse things for the user. > > -- Peter > > Peter M. Brigham > pmbrig at gmail.com > http://home.comcast.net/~pmbrig > > On Jan 18, 2012, at 5:20 PM, DunbarX at aol.com wrote: > > > > > > > In good ol' HC, if you have a field somewhere with text (someText) in > it, and > a button that contains: > > > > > > on mouseUp > > find someText > > end mouseUp > > > > > > The text is found, and a box is drawn around it. If you press the button > again > > the box disappears for a moment, and then is redrawn. This is known as > finding > once more. > > > > > > In LC, however, the second find makes the box disappear altogether, You > can > get it back if you find > > for a third time. (or fifth, etc.) > > > > > > Annoying, unless it is just me and mine. > > > > > > Craig Newman > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode 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 Thu Jan 19 13:45:35 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 19 Jan 2012 12:45:35 -0600 Subject: Find oddity? In-Reply-To: <8CEA4E7C8B15A0F-238C-40EC@webmail-d129.sysops.aol.com> References: <4F158B8E.9070908@fourthworld.com><8CEA4468B0C2EFD-2424-14B76@webmail-d129.sysops.aol.com><5BAB57BF-9F3B-4B62-8CCA-0D2E24EF8007@gmail.com><8CEA4678EED7FE5-1CBC-DE3C@webmail-d054.sysops.aol.com> <8CEA4E7C8B15A0F-238C-40EC@webmail-d129.sysops.aol.com> Message-ID: <4F1864CF.6090606@hyperactivesw.com> On 1/19/12 11:34 AM, dunbarx at aol.com wrote: > Kay. > > > Interesting, but I did not mean to cloud the issue. I was just fooling around, > > > So you do see that, with a single instance of text in a field, successive find commands will alternately box and then unbox the foundtext? > > > To me, this is a bug. It's intentional behavior to overcome the limitations HC had with the same command. In HC you had to store the initial find location and then check every subsequent find against that to see if you had wrapped around to the beginning. The LiveCode engine improved on that and has always had the behavior it has now. When there are no more hits, the box is removed and the result contains "not found". The next instance of find will start again at the beginning and continue boxing found text until there is no more; at that point the box disappears again. In LiveCode, you don't need to store the found location or cross reference anything. Just check the result and if it isn't empty, you've found all instances. You don't even need to remove the box, it's automatic. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at mollysrevenge.com Thu Jan 19 14:00:40 2012 From: pete at mollysrevenge.com (Pete) Date: Thu, 19 Jan 2012 11:00:40 -0800 Subject: Jolt Award In-Reply-To: <46604641812.20120119083656@ahsoftware.net> References: <135556499718.20120118191434@ahsoftware.net> <46604641812.20120119083656@ahsoftware.net> Message-ID: I agree. Speaking from the perspective of a Mac user, it's impossible to build an app whose ui doesn't look dated. On Thu, Jan 19, 2012 at 8:36 AM, Mark Wieder wrote: > Native widgets would be nice on the desktop, too, but I'm not holding > my breath. > -- Pete Molly's Revenge From pepetoo at cox.net Thu Jan 19 14:17:15 2012 From: pepetoo at cox.net (Joe Lewis Wilkins) Date: Thu, 19 Jan 2012 11:17:15 -0800 Subject: Jolt Award In-Reply-To: References: <135556499718.20120118191434@ahsoftware.net> <46604641812.20120119083656@ahsoftware.net> Message-ID: Speaking from the perspective of someone who likes to get work done: I feel that too many innovations in the user interface can be a major turn-off. My favorite CAD program uses many of the same tools that were a part of the original MacDraw program; greatly enhanced and more powerful, but much the same. So I get work done without learning a bunch of new stuff all the time. Hey there are lots of people out there like me and familiarity is a strong factor in "acceptance". When I first became enchanted with the Mac it was largely because all of the apps that came out were similar enough so that I already knew how to use 90% of a new one. Even LC, has adhered to this approach (mostly). When it doesn't is when I start disliking it. I've begun to "dislike" a lot of things in many apps. Even LC. Give me a break. I'm pushing 80. (smile) IMHO, Joe Wilkins Architect and sometimes programmer On Jan 19, 2012, at 11:00 AM, Pete wrote: > I agree. Speaking from the perspective of a Mac user, it's impossible to > build an app whose ui doesn't look dated. > > On Thu, Jan 19, 2012 at 8:36 AM, Mark Wieder wrote: > >> Native widgets would be nice on the desktop, too, but I'm not holding >> my breath. >> > > > > -- > 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 stephenREVOLUTION2 at barncard.com Thu Jan 19 14:18:50 2012 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Thu, 19 Jan 2012 11:18:50 -0800 Subject: Jolt Award In-Reply-To: References: <135556499718.20120118191434@ahsoftware.net> <46604641812.20120119083656@ahsoftware.net> Message-ID: Wait a minute - *Livecode at Macworld*? this is great news...and now a good reason to go... When was the last time LIvecode were there? 2003 - I was there - (a little booth in the developers section) and met Jacque for the first time. Some young guy was there too... was that Kevin? I think I bought Dan's book at that show... so long ago.... wow... Stephen Barncard San Francisco Ca. USA more about sqb From richmondmathewson at gmail.com Thu Jan 19 14:34:20 2012 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 19 Jan 2012 21:34:20 +0200 Subject: [Ticket#2012011810000736] Re: RevOnline In-Reply-To: <1326996566.843454.095663786.514532.6@secure.runrev.com> References: <4F16E792.4080709@gmail.com> <1326985904.300864.570997612.514532.6@secure.runrev.com> <4F185542.9010403@gmail.com> <1326996566.843454.095663786.514532.6@secure.runrev.com> Message-ID: <4F18703C.4020900@gmail.com> Dear Heather, Thanks for your swift reply. > Dear Richmond, > > OK, define "didnae wark". 'define' is perhaps the wrong word here, as it didnae wark. Possibly 'explain how it didnae wark' wid be better . . . :) > What happened when you tried? 1. I clicked on "Log In" in the top right-hand corner of the RevOnline stack. 2. I entered my e-mail address in the "Email" text box at the top of the Log In substack. 3. I clicked on the blue text "Forgot your password/" at the bottom of the Log In substack. 4. "Forgot your password/" changed from blue to a rather charming purple. 5. Nothing else.............................................. > Did you get any kind of > email? Any error message? Nothing at all: RunRev 4.5 Beta: Ubuntu-Linux 11.10 "Resetting password . . .": RunRev 4.0 Ubuntu-Linux 11.10 - and the message is persistent (i.e. doesn't go away). Force-quit RunRev 4.0 as got cheesed-off waiting. > What version of LiveCode are you using and on what > platform/OS? > > This is one password I cannot reset or retrieve, so we'll have to try and debug it. It seems, from the Use-List, I am not the only one with this problem. However, having scrieved that, I have just received an automated new password using RunRev 4.0 .... Let me see if it works............. it DOES; so, the following are possible interpretations of what happened: 1. I was a bit glaikit expecting a Beta version to work in that respect. 2. Something a bit odd has happened between RR 4.0 and later versions of RR/LC. Certainly I shall post this on the Use-List and see what those who are using later versions that 4.5, and supposedly have been having problems, have to say on the subject. Thanks very much for your help. All the best to all of you in Edinburgh, Richmond Mathewson. From richmondmathewson at gmail.com Thu Jan 19 14:42:27 2012 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 19 Jan 2012 21:42:27 +0200 Subject: Jolt Award In-Reply-To: References: <135556499718.20120118191434@ahsoftware.net> <46604641812.20120119083656@ahsoftware.net> Message-ID: <4F187223.70308@gmail.com> On 01/19/2012 09:17 PM, Joe Lewis Wilkins wrote: > Speaking from the perspective of someone who likes to get work done: I feel that too many innovations in the user interface can be a major turn-off. This is why I still use Appleworks 6 for Macintosh as my Primary Word-Processor, and "fairly shabby" AbiWord on Linux. It is also why Livecode should keep its UI as it is; rather than muck around with it, why not offer a series of alternatives (err . . . 'skins'), so choices can be made by the end-users, rather than another of the Apple/Microsoft One-size-fits-all phenomenon things? > My favorite CAD program uses many of the same tools that were a part of the original MacDraw program; greatly enhanced and more powerful, but much the same. So I get work done without learning a bunch of new stuff all the time. > > Hey there are lots of people out there like me and familiarity is a strong factor in "acceptance". When I first became enchanted with the Mac it was largely because all of the apps that came out were similar enough so that I already knew how to use 90% of a new one. Even LC, has adhered to this approach (mostly). When it doesn't is when I start disliking it. I've begun to "dislike" a lot of things in many apps. Even LC. Give me a break. I'm pushing 80. (smile) > > IMHO, > > Joe Wilkins > Architect and sometimes programmer > > On Jan 19, 2012, at 11:00 AM, Pete wrote: > >> I agree. Speaking from the perspective of a Mac user, it's impossible to >> build an app whose ui doesn't look dated. >> >> On Thu, Jan 19, 2012 at 8:36 AM, Mark Wieder wrote: >> >>> Native widgets would be nice on the desktop, too, but I'm not holding >>> my breath. >>> >> >> >> -- >> 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 > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mikekann at yahoo.com Thu Jan 19 14:47:04 2012 From: mikekann at yahoo.com (Michael Kann) Date: Thu, 19 Jan 2012 11:47:04 -0800 (PST) Subject: Session strategies for liveCode server In-Reply-To: <0A1ECBD4-ED00-4555-9251-5F82B576A676@derbrill.de> Message-ID: <1327002424.17871.YahooMailClassic@web161605.mail.bf1.yahoo.com> Malte, You've probably got this running by now, which I've failed to do. But I'll make a suggestion anyway. Perhaps some headers are being sent out before the line "start session". If that is the case then it won't work. Let us know if you untangle it. Mike --- On Thu, 1/19/12, Malte Brill wrote: From: Malte Brill Subject: Re: Session strategies for liveCode server To: use-livecode at lists.runrev.com Date: Thursday, January 19, 2012, 9:02 AM Anyone, pretty please? Andre, Stephen? I just do not get it. I have a login form now and that one calls a liveCode script to validate the user and start a session: start" ??? else ??? ??? include "login.html" ??? end if end if ?> As soon as I click the start link the session appears to have died. $_SESSION is empty. It does not have keys either... Message-ID: <1327002674.19012.YahooMailClassic@web161601.mail.bf1.yahoo.com> Malte, Here's the working code for php, if that helps. Notice that session_start() comes before anything else, including WORKING CODE: ------------------------------------ --- On Thu, 1/19/12, Malte Brill wrote: From: Malte Brill Subject: Re: Session strategies for liveCode server To: use-livecode at lists.runrev.com Date: Thursday, January 19, 2012, 9:02 AM Anyone, pretty please? Andre, Stephen? I just do not get it. I have a login form now and that one calls a liveCode script to validate the user and start a session: start" ??? else ??? ??? include "login.html" ??? end if end if ?> As soon as I click the start link the session appears to have died. $_SESSION is empty. It does not have keys either... I had a look at the Jolt thing. As it says, Livecode is good for prototyping insofar as one can get something working very very quickly indeed in Livecode. What I fail to understand, is, having bothered to take the trouble to build a "prototype" in Livecode (especially one that does all that you want it to), what possible advantage can there be to then move to some other language/RAD/whatever to build "the real thing" when you already have it in Livecode? Surely all that 'prototyping' really is, is another way of saying 'alpha version', and, surely what one does with an alpha version, is one refines it, tweaks it, polishes it, and generally poshes it up until one has, through various beta cycles of development, a finished product? ------------------------slightly tendentious simile follows-------------------------- If I carve a motor car out of soap it is, in some way a 'prototype' (i.e. it superficially resembles the exterior of what I intend my car to look like), although it stands no chance of being refined to anything more than shampoo. Running up a 'prototype' in Livecode is most definitely NOT at all like carving a model of a projected car out of soap. A prototype in Livecode is far more like a set of wheels, a chassis and an engine; from which one can go on to develop the whole car. --------------------------------------end of that one------------------------------------- Presumably the only people who are going to get offended by the word 'prototype' are the ones stuck in the cars of soap mentality, which I very much doubt most computer developers are. Richmond. From pete at mollysrevenge.com Thu Jan 19 15:15:39 2012 From: pete at mollysrevenge.com (Pete) Date: Thu, 19 Jan 2012 12:15:39 -0800 Subject: Jolt Award In-Reply-To: References: <135556499718.20120118191434@ahsoftware.net> <46604641812.20120119083656@ahsoftware.net> Message-ID: I don't disagree with you, just saying that there are users out there who, consciously or unconsciously, judge part of the quality of an app by the "state-of-the-art-ness" of its ui. Apple and Microsoft will continue to evolve their user interface whether we like it or not. A prime example of that is the new scrollbar look in Lion. Personally, I prefer the old look but as time goes by, people will expect their apps to use the new scrollbar. Pete On Thu, Jan 19, 2012 at 11:17 AM, Joe Lewis Wilkins wrote: > Speaking from the perspective of someone who likes to get work done: I > feel that too many innovations in the user interface can be a major > turn-off. My favorite CAD program uses many of the same tools that were a > part of the original MacDraw program; greatly enhanced and more powerful, > but much the same. So I get work done without learning a bunch of new stuff > all the time. > > Hey there are lots of people out there like me and familiarity is a strong > factor in "acceptance". When I first became enchanted with the Mac it was > largely because all of the apps that came out were similar enough so that I > already knew how to use 90% of a new one. Even LC, has adhered to this > approach (mostly). When it doesn't is when I start disliking it. I've begun > to "dislike" a lot of things in many apps. Even LC. Give me a break. I'm > pushing 80. (smile) > > IMHO, > > Joe Wilkins > Architect and sometimes programmer > > On Jan 19, 2012, at 11:00 AM, Pete wrote: > > > I agree. Speaking from the perspective of a Mac user, it's impossible to > > build an app whose ui doesn't look dated. > > > > On Thu, Jan 19, 2012 at 8:36 AM, Mark Wieder > wrote: > > > >> Native widgets would be nice on the desktop, too, but I'm not holding > >> my breath. > >> > > > > > > > > -- > > 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 pepetoo at cox.net Thu Jan 19 15:22:06 2012 From: pepetoo at cox.net (Joe Lewis Wilkins) Date: Thu, 19 Jan 2012 12:22:06 -0800 Subject: Prototyping In-Reply-To: <4F1878BB.4010906@gmail.com> References: <4F1878BB.4010906@gmail.com> Message-ID: I used to do "prototypes" with HC and then code the apps in VisualBasic and FutureBasic (very compatible); however, had I "done the prototypes" in LC, which was not available at the time, I would have continued, as Richmond suggests, tweaking and improving the Code until I had the Windows and Mac apps. This was back in 1990. We've come a long way since then. (sigh!) Joe Wilkins On Jan 19, 2012, at 12:10 PM, Richmond wrote: > I had a look at the Jolt thing. > > As it says, Livecode is good for prototyping insofar as one can get something working > very very quickly indeed in Livecode. > > What I fail to understand, is, having bothered to take the trouble to build a "prototype" > in Livecode (especially one that does all that you want it to), what possible advantage > can there be to then move to some other language/RAD/whatever to build "the real thing" > when you already have it in Livecode? > > Surely all that 'prototyping' really is, is another way of saying 'alpha version', > > and, surely what one does with an alpha version, is one refines it, tweaks it, polishes it, > and generally poshes it up until one has, through various beta cycles of development, > a finished product? > > ------------------------slightly tendentious simile follows-------------------------- > > If I carve a motor car out of soap it is, in some way a 'prototype' (i.e. it superficially resembles > the exterior of what I intend my car to look like), although it stands no chance of being refined > to anything more than shampoo. > > Running up a 'prototype' in Livecode is most definitely NOT at all like carving a model of > a projected car out of soap. A prototype in Livecode is far more like a set of wheels, a chassis > and an engine; from which one can go on to develop the whole car. > > --------------------------------------end of that one------------------------------------- > > Presumably the only people who are going to get offended by the word 'prototype' are > the ones stuck in the cars of soap mentality, which I very much doubt most computer > developers are. > > Richmond. > From pepetoo at cox.net Thu Jan 19 15:27:24 2012 From: pepetoo at cox.net (Joe Lewis Wilkins) Date: Thu, 19 Jan 2012 12:27:24 -0800 Subject: Jolt Award In-Reply-To: References: <135556499718.20120118191434@ahsoftware.net> <46604641812.20120119083656@ahsoftware.net> Message-ID: <16FDDA92-E4D2-4D52-812C-A456842B0545@cox.net> Hey Pete. Obviously you're right. I remember how much I hated System 8.0 when it first came out. It's the "old dog/new tricks" thing again. Wait until my book "Death is a Myth?" comes out. Will people continue to die once they understand that they don't have to? Please no response to this on the list. Joe Wilkins On Jan 19, 2012, at 12:15 PM, Pete wrote: > I don't disagree with you, just saying that there are users out there who, > consciously or unconsciously, judge part of the quality of an app by the > "state-of-the-art-ness" of its ui. > > Apple and Microsoft will continue to evolve their user interface whether we > like it or not. A prime example of that is the new scrollbar look in Lion. > Personally, I prefer the old look but as time goes by, people will expect > their apps to use the new scrollbar. > > Pete > > > On Thu, Jan 19, 2012 at 11:17 AM, Joe Lewis Wilkins wrote: > >> Speaking from the perspective of someone who likes to get work done: I >> feel that too many innovations in the user interface can be a major >> turn-off. My favorite CAD program uses many of the same tools that were a >> part of the original MacDraw program; greatly enhanced and more powerful, >> but much the same. So I get work done without learning a bunch of new stuff >> all the time. >> >> Hey there are lots of people out there like me and familiarity is a strong >> factor in "acceptance". When I first became enchanted with the Mac it was >> largely because all of the apps that came out were similar enough so that I >> already knew how to use 90% of a new one. Even LC, has adhered to this >> approach (mostly). When it doesn't is when I start disliking it. I've begun >> to "dislike" a lot of things in many apps. Even LC. Give me a break. I'm >> pushing 80. (smile) >> >> IMHO, >> >> Joe Wilkins >> Architect and sometimes programmer >> >> On Jan 19, 2012, at 11:00 AM, Pete wrote: >> >>> I agree. Speaking from the perspective of a Mac user, it's impossible to >>> build an app whose ui doesn't look dated. >>> >>> On Thu, Jan 19, 2012 at 8:36 AM, Mark Wieder >> wrote: >>> >>>> Native widgets would be nice on the desktop, too, but I'm not holding >>>> my breath. >>>> >>> >>> >>> >>> -- >>> 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 >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 tkuypers at telenet.be Thu Jan 19 15:45:20 2012 From: tkuypers at telenet.be (tkuypers at telenet.be) Date: Thu, 19 Jan 2012 21:45:20 +0100 Subject: revBrowser & sound In-Reply-To: <9691D378-859D-4732-8D69-4C4DA0062BE1@m-r-d.de> References: <9691D378-859D-4732-8D69-4C4DA0062BE1@m-r-d.de> Message-ID: <01C186BE-E5F3-4534-A929-DAA88D3A4441@telenet.be> Hi Matthias, Just tried RodeoApps, but the same thing happens... The page is loaded, but no sound... I guess it must be a Mac-oddity :-( Met vriendelijke groeten, Warm Regards, Ton Kuypers +32 (0) 477 739 530 Aardbemden 11 ? B-2400 ? Mol ? Belgium www.publishingtools4u.com From tsj at unimelb.edu.au Thu Jan 19 15:46:38 2012 From: tsj at unimelb.edu.au (Terry Judd) Date: Thu, 19 Jan 2012 20:46:38 +0000 Subject: revBrowser & sound In-Reply-To: References: <9691D378-859D-4732-8D69-4C4DA0062BE1@m-r-d.de>, Message-ID: <00D3BC44-849A-46F7-8AAE-E7740B13FBA5@unimelb.edu.au> On 20/01/2012, at 2:08 AM, "Mike Bonner" wrote: > Got it to work with on win 7, livecode 5.0.2 using revbrowser but a script > error pops up. The stream still works for me though. the script error does > NOT show when using a regular old browser. > > Like Andre, i've had a mixed bag with revbrowser. A few things work > smashingly well, then theres everything else. Agreed - it's almost a great add-on, but script errors on Win and an inability to deal with popups on Mac severely restrict its usability. Terry... > From revolution at derbrill.de Thu Jan 19 15:54:44 2012 From: revolution at derbrill.de (Malte Brill) Date: Thu, 19 Jan 2012 21:54:44 +0100 Subject: Session strategies for liveCode server In-Reply-To: References: Message-ID: Michael, thanks for getting back! I am afraid I do not have it working yet. :-( I now tried this: And always get a session counter of 1. Maybe I must solve this differently. :-( Cheers, Malte From warren at warrensweb.us Thu Jan 19 16:14:44 2012 From: warren at warrensweb.us (Warren Samples) Date: Thu, 19 Jan 2012 15:14:44 -0600 Subject: revBrowser & sound In-Reply-To: References: Message-ID: <4F1887C4.1000300@warrensweb.us> On 01/19/2012 04:20 AM, tkuypers at telenet.be wrote: > it's kinda annoying to always have their website open when surfing the internet, accidentally closing my music when closing to many windows. Can't you just open it in it's own window and hide/minimize it? Park it on another desktop/workspace? That would keep it safe from inadvertent closing. If you have a habit of quitting the browser to close windows, then maybe you could install a browser that you only use foe this purpose, again putting the window on a workspace you aren't using. Warren From dunbarx at aol.com Thu Jan 19 16:24:13 2012 From: dunbarx at aol.com (dunbarx at aol.com) Date: Thu, 19 Jan 2012 16:24:13 -0500 (EST) Subject: Find oddity? In-Reply-To: <4F1864CF.6090606@hyperactivesw.com> References: <4F158B8E.9070908@fourthworld.com><8CEA4468B0C2EFD-2424-14B76@webmail-d129.sysops.aol.com><5BAB57BF-9F3B-4B62-8CCA-0D2E24EF8007@gmail.com><8CEA4678EED7FE5-1CBC-DE3C@webmail-d054.sysops.aol.com><8CEA4E7C8B15A0F-238C-40EC@webmail-d129.sysops.aol.com> <4F1864CF.6090606@hyperactivesw.com> Message-ID: <8CEA507D3030135-238C-6B94@webmail-d129.sysops.aol.com> Jacque. I see what you are saying. This business of "stopping at the end" even if there is only one instance of text to be found in only one field. But it still means that LC, knowing that if there is boxed text somewhere, and no other text in a different location forthcoming, decides to, at least on the surface, ignore the second find command. I understand that prudent monitoring of "the result" will allow one to distinguish the difference. We need an autoFindtFromTop property (heck, every other conceivable property exists natively). It seems to me far more intuitive and logical that it would find and box that text again. HC does this. Old-fashioned as it may be. Perhaps "the result" should read "end of the world". I can live with it. Craig -----Original Message----- From: J. Landman Gay To: How to use LiveCode Sent: Thu, Jan 19, 2012 8:47 am Subject: Re: Find oddity? On 1/19/12 11:34 AM, dunbarx at aol.com wrote: > Kay. > > > Interesting, but I did not mean to cloud the issue. I was just fooling around, > > > So you do see that, with a single instance of text in a field, successive find commands will alternately box and then unbox the foundtext? > > > To me, this is a bug. It's intentional behavior to overcome the limitations HC had with the same command. In HC you had to store the initial find location and then check every subsequent find against that to see if you had wrapped around to the beginning. The LiveCode engine improved on that and has always had the behavior it has now. When there are no more hits, the box is removed and the result contains "not found". The next instance of find will start again at the beginning and continue boxing found text until there is no more; at that point the box disappears again. In LiveCode, you don't need to store the found location or cross reference anything. Just check the result and if it isn't empty, you've found all instances. You don't even need to remove the box, it's automatic. -- 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 Thu Jan 19 16:28:27 2012 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 19 Jan 2012 13:28:27 -0800 Subject: revBrowser & sound In-Reply-To: <00D3BC44-849A-46F7-8AAE-E7740B13FBA5@unimelb.edu.au> References: <9691D378-859D-4732-8D69-4C4DA0062BE1@m-r-d.de>, <00D3BC44-849A-46F7-8AAE-E7740B13FBA5@unimelb.edu.au> Message-ID: <148622132875.20120119132827@ahsoftware.net> Terry- Thursday, January 19, 2012, 12:46:38 PM, you wrote: > Agreed - it's almost a great add-on, but ... severely restrict its > usability. ...and linux... -- -Mark Wieder mwieder at ahsoftware.net From tsj at unimelb.edu.au Thu Jan 19 16:36:49 2012 From: tsj at unimelb.edu.au (Terry Judd) Date: Thu, 19 Jan 2012 21:36:49 +0000 Subject: revBrowser & sound In-Reply-To: <148622132875.20120119132827@ahsoftware.net> References: <9691D378-859D-4732-8D69-4C4DA0062BE1@m-r-d.de>, <00D3BC44-849A-46F7-8AAE-E7740B13FBA5@unimelb.edu.au> <148622132875.20120119132827@ahsoftware.net> Message-ID: <65D72516-ABB7-4E6A-9E4F-6D0C10E40074@unimelb.edu.au> On 20/01/2012, at 08:28 AM, Mark Wieder wrote: Terry- Thursday, January 19, 2012, 12:46:38 PM, you wrote: Agreed - it's almost a great add-on, but ... severely restrict its usability. ...and linux... Linux? What's that ? ;) -- -Mark Wieder mwieder at ahsoftware.net Dr Terry Judd Senior Lecturer in Medical Education Medical Eduction Unit Faculty of Medicine, Dentistry & Health Sciences The University of Melbourne From mwieder at ahsoftware.net Thu Jan 19 16:38:00 2012 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 19 Jan 2012 13:38:00 -0800 Subject: Prototyping In-Reply-To: <4F1878BB.4010906@gmail.com> References: <4F1878BB.4010906@gmail.com> Message-ID: <93622705328.20120119133800@ahsoftware.net> Richmond- Thursday, January 19, 2012, 12:10:35 PM, you wrote: > What I fail to understand, is, having bothered to take the trouble to > build a "prototype" > in Livecode (especially one that does all that you want it to), what > possible advantage > can there be to then move to some other language/RAD/whatever to build > "the real thing" > when you already have it in Livecode? I think that's exactly the point where we might quibble with the language in the article - LC isn't a build-it-once-and-then-toss-it sort of prototyping tool the way that Balsamiq is. -- -Mark Wieder mwieder at ahsoftware.net From richmondmathewson at gmail.com Thu Jan 19 16:42:10 2012 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 19 Jan 2012 23:42:10 +0200 Subject: Prototyping In-Reply-To: <93622705328.20120119133800@ahsoftware.net> References: <4F1878BB.4010906@gmail.com> <93622705328.20120119133800@ahsoftware.net> Message-ID: <4F188E32.6030500@gmail.com> On 01/19/2012 11:38 PM, Mark Wieder wrote: > Richmond- > > Thursday, January 19, 2012, 12:10:35 PM, you wrote: > >> What I fail to understand, is, having bothered to take the trouble to >> build a "prototype" >> in Livecode (especially one that does all that you want it to), what >> possible advantage >> can there be to then move to some other language/RAD/whatever to build >> "the real thing" >> when you already have it in Livecode? > I think that's exactly the point where we might quibble with the > language in the article - LC isn't a build-it-once-and-then-toss-it > sort of prototyping tool the way that Balsamiq is. > Pardon my ignorance; err . . . I thought "Balsamiq" was a type of murky vinegar . . . :) From scott at tactilemedia.com Thu Jan 19 16:52:28 2012 From: scott at tactilemedia.com (Scott Rossi) Date: Thu, 19 Jan 2012 13:52:28 -0800 Subject: Jolt Award In-Reply-To: Message-ID: Recently, Pete wrote: > Speaking from the perspective of a Mac user, it's impossible to > build an app whose ui doesn't look dated. Maybe not 100% impossible -- an alternative is to go custom: http://tmtools.tactilemedia.com/tmcontrol Regards, Scott Rossi Creative Director Tactile Media, UX Design From richmondmathewson at gmail.com Thu Jan 19 16:57:45 2012 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 19 Jan 2012 23:57:45 +0200 Subject: Prototyping In-Reply-To: <93622705328.20120119133800@ahsoftware.net> References: <4F1878BB.4010906@gmail.com> <93622705328.20120119133800@ahsoftware.net> Message-ID: <4F1891D9.6010604@gmail.com> On 01/19/2012 11:38 PM, Mark Wieder wrote: > Richmond- > > Thursday, January 19, 2012, 12:10:35 PM, you wrote: > >> What I fail to understand, is, having bothered to take the trouble to >> build a "prototype" >> in Livecode (especially one that does all that you want it to), what >> possible advantage >> can there be to then move to some other language/RAD/whatever to build >> "the real thing" >> when you already have it in Livecode? > I think that's exactly the point where we might quibble with the > language in the article - LC isn't a build-it-once-and-then-toss-it > sort of prototyping tool the way that Balsamiq is. > http://www.balsamiq.com/ "Mockups reproduces the experience of sketching interfaces on a whiteboard, but using your computer, so they're easier to share, modify, and get honest feedback on." What a load of cod! Note the loaded language; "get honest feedback" - and what, pray tell, will make feedback their way, in some way, more honest than, say, my scribbling something with a pencil and paper in a restaurant? "Wireframes made with Mockups look like sketches, so stakeholders won't get distracted by little details, and can focus on what's really important instead." Umm....yummy. let's paraphrase that: 'Whatevers made with our product look like sketches, so suckers only see what you want them to see, rather than staring developing ideas that are a pain in the bum to what you are pushing.' ----------------------------- Mind you, I do like their "kitchen tablecloth" background graphic . . . :) However, I am not going to buy into something on the basis of some cod-language and a rather nice check design. ----------------------------- "People love us, and we love them back!" seriously odd language for a website pushing software. Why does it make me think of 'Village People' in what Dame Edna Everage terms 'a spooky sort of way'? "Mockups runs on Windows, Mac, and Linux via Adobe Air" This should serve as a merry warning to RunRev about dependency on other people's stuff (which may, after all, go bottom-up at a moment's notice); read "Quicktime dependency" here guys. --------------------------- Above all; what on earth is the point of buying something that is, in its own words, a fancy way of producing a whiteboard diagram, when Livecode can "go the whole hog"? And, come to think of it, I've got two 3 metre by 2 metre whiteboards in my school that I can draw all over until the cows come home. From pete at mollysrevenge.com Thu Jan 19 17:22:06 2012 From: pete at mollysrevenge.com (Pete) Date: Thu, 19 Jan 2012 14:22:06 -0800 Subject: Jolt Award In-Reply-To: References: Message-ID: Hi SCott, You're right of course, it is possible to go custom and tmcontrol no doubt provides a good way of doing that. Just seems like there are so many controls in OS X now that aren't present in Livecode that it would be a huge amount of work to make custom versions of them all ( at least for a graphically-challenged person such as myself!) - I wouldn't have a clue where to start with the aforementioned Lion style scroll bars for example. It goes a little beyond controls also. I recently discovered that LC does not provide any way to add items to the OS X menubar Application menu (other than Preferences). Not good. I've entered an enhancement request at the QCC for that one. Pete On Thu, Jan 19, 2012 at 1:52 PM, Scott Rossi wrote: > Recently, Pete wrote: > > > Speaking from the perspective of a Mac user, it's impossible to > > build an app whose ui doesn't look dated. > > Maybe not 100% impossible -- an alternative is to go custom: > > http://tmtools.tactilemedia.com/tmcontrol > > 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 > > -- Pete Molly's Revenge From bobs at twft.com Thu Jan 19 18:46:20 2012 From: bobs at twft.com (Bob Sneidar) Date: Thu, 19 Jan 2012 15:46:20 -0800 Subject: Prototyping In-Reply-To: <4F1891D9.6010604@gmail.com> References: <4F1878BB.4010906@gmail.com> <93622705328.20120119133800@ahsoftware.net> <4F1891D9.6010604@gmail.com> Message-ID: <16329DAA-BC60-4948-A38A-AC8BC7AEAE8A@twft.com> I think they are saying that someone who you are face to face with, looking at your mockup might be inclined to flatter you, whereas someone behind the anonymity of the digital firewall could be more honest in their criticism than otherwise. Not saying I agree, just saying that might be the thought. Bob On Jan 19, 2012, at 1:57 PM, Richmond wrote: > "Mockups reproduces the experience of sketching interfaces on a whiteboard, but using > your computer, so they're easier to share, modify, and get honest feedback on." > > What a load of cod! > > Note the loaded language; "get honest feedback" - and what, pray tell, will make feedback > their way, in some way, more honest than, say, my scribbling something with a pencil and paper > in a restaurant? From dunbarx at aol.com Thu Jan 19 18:56:41 2012 From: dunbarx at aol.com (dunbarx at aol.com) Date: Thu, 19 Jan 2012 18:56:41 -0500 (EST) Subject: Beating the dock In-Reply-To: <16329DAA-BC60-4948-A38A-AC8BC7AEAE8A@twft.com> References: <4F1878BB.4010906@gmail.com><93622705328.20120119133800@ahsoftware.net><4F1891D9.6010604@gmail.com> <16329DAA-BC60-4948-A38A-AC8BC7AEAE8A@twft.com> Message-ID: <8CEA51D1FD86F3D-238C-8465@webmail-d129.sysops.aol.com> In HC, I am used to hitting Cmd-Tab one, two or three times to select tools. In OSX, Cmd-Tab selects a ghost dock that plops down right in front of the screen. It is supposed to be a shortcut. LC cannot see the commandKeyDown message when Cmd-Tab is pressed, though it catches other combinations. The OS catches it first. Anyone know how to turn this off? I already know where the dock is. Thanks, Craig Newman From bobs at twft.com Thu Jan 19 19:06:05 2012 From: bobs at twft.com (Bob Sneidar) Date: Thu, 19 Jan 2012 16:06:05 -0800 Subject: Jolt Award In-Reply-To: References: Message-ID: I have likened LC to a constructor set before, something like Legos. To make special things, you need special bricks. (Your native widgets) You do not get to make the special thing you want unless you have the special bricks you need, or else can cheese some other bricks together in a kludge of some sort. And until they make the special brick for your special thing, that is the way it is. This is the tradeoff (IMHO) between development with a Livecode style of environment, and something like C++ or Java. If the special thing you need doesn't exists with Java or C++ you just make one. Those languages are more like a bunch of raw materials and a large garage with just about every crafting tool ever made. Now here's the thing. You could do the same thing with Livecode! If you don't have what you need, use C++ to create your special thing as an extension of Livecode! If you can. If you cannot, then that is why you are using Livecode, is it not? Because Livecode is the thing you CAN do? That is the boat I am in. That is the boat a great many of us are in. As an example, I find myself both extremely grateful for the Datagrid and at the same time somewhat put out. It isn't very like the thing I wanted when I biched so much about needing a table object, but it is a DAM sight better that having to kludge my own together using the other "bricks". In the final analysis, I find that I have to be content with what is provided, because after all, Legos... erm I mean Livecode is all I know. I have to make the assessment for each project whether or not Livecode has the bricks I want, or whether I can kludge something together, or whether I have to simply pass. To RunRev's credit, I RARELY think of something I simply cannot do, because there are no bricks to do it. And take heart: There are enough really talented developers among us that if what you want doesn't exist, bich about it enough like I do and someone will make one! :-) (Thank you Jerry, Trevor, Sarah and everyone else who's names I cannot remember because I am getting daft). I now have the bricks I need. Bob On Jan 19, 2012, at 2:22 PM, Pete wrote: > It goes a little beyond controls also. I recently discovered that LC does > not provide any way to add items to the OS X menubar Application menu > (other than Preferences). Not good. I've entered an enhancement request > at the QCC for that one. > > Pete From bobs at twft.com Thu Jan 19 19:17:22 2012 From: bobs at twft.com (Bob Sneidar) Date: Thu, 19 Jan 2012 16:17:22 -0800 Subject: Beating the dock In-Reply-To: <8CEA51D1FD86F3D-238C-8465@webmail-d129.sysops.aol.com> References: <4F1878BB.4010906@gmail.com><93622705328.20120119133800@ahsoftware.net><4F1891D9.6010604@gmail.com> <16329DAA-BC60-4948-A38A-AC8BC7AEAE8A@twft.com> <8CEA51D1FD86F3D-238C-8465@webmail-d129.sysops.aol.com> Message-ID: <00AAEC56-C7CC-44CF-ABD2-10341C712D34@twft.com> http://raamdev.com/2007/replace-os-x-commandtab-with-witch/ I just googled it. Google is your friend. Bob On Jan 19, 2012, at 3:56 PM, DunbarX at aol.com wrote: > > > In HC, I am used to hitting Cmd-Tab one, two or three times to select tools. In OSX, Cmd-Tab selects a ghost dock that > plops down right in front of the screen. It is supposed to be a shortcut. > > > LC cannot see the commandKeyDown message when Cmd-Tab is pressed, though it catches other combinations. > The OS catches it first. Anyone know how to turn this off? I already know where the dock is. > > > Thanks, > > > Craig Newman > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jan 19 19:43:37 2012 From: coiin at verizon.net (Colin Holgate) Date: Thu, 19 Jan 2012 19:43:37 -0500 Subject: Beating the dock In-Reply-To: <8CEA51D1FD86F3D-238C-8465@webmail-d129.sysops.aol.com> References: <4F1878BB.4010906@gmail.com><93622705328.20120119133800@ahsoftware.net><4F1891D9.6010604@gmail.com> <16329DAA-BC60-4948-A38A-AC8BC7AEAE8A@twft.com> <8CEA51D1FD86F3D-238C-8465@webmail-d129.sysops.aol.com> Message-ID: You do know that it's not just a local version of the Dock? You can command-tab or shift-tab cycle through the apps, you can quit any one of them without having to switch to the app first. You can use the mouse to select which of the apps you're trying to switch to or quit. The old advantage of HyperCard that you could switch between the different kinds of tools isn't needed in LC, because any kind of object can be selected with the Edit tool. And you have command-9 and command0 as a keyboard way to switch between tools. From lan.kc.macmail at gmail.com Thu Jan 19 20:43:52 2012 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Fri, 20 Jan 2012 09:43:52 +0800 Subject: Jolt Award In-Reply-To: References: Message-ID: Hi Bob, Everything you say if perfectly valid, and believe me, I'm only now starting to comprehend how incomprehensible the task is that RunRev have chosen;-) to make a multi-platform RAD. I really feel for the company when, after enormous amounts of manpower have transformed HyperCard into something, that as far as I'm concerned, pulls rabbits out of hats, but none of this black magic is mentioned, the press focus on the UI that is clunky so all LC is good for is prototyping. IMO I think the VERY opinionated views of this thread about what a UI should be go along way in explaining why Apple products have been so successful. They are NEVER top spec, in some cases arguable low spec, but they are priced over top spec and this seems to be justifiable by the commonly agreed characteristic that the User Interface/Experience is so: seamless, fluid, intuitive, smooth, gorgeous, natural, effortless - and at least a dozen other superlatives that the press boys can come up with. UI is extremely important to us, even emotional, Richmond wants to go back to Claris '97 it made such a connection with him ;-) Fact is, today, Claris '97 isn't going to cut it, the youth of today, in 20 years will be lamenting whatever happened to the good ole Angry Birds '11 UI. Today's UI is what today's UI is and apart from the few Scott Rossi's out there who can do a better job, for us mere mortals it would be nice to able to use today's UI rather than last decade's UI. A 15 yr old at the school my wife works at, has two games in the iApp Store. He's no whizz kid, it would appear that the only people that have bought his game are his mates and probably every family member, BUT, I guess he's been programming for less than 2 years and yet everything UI is native - looks native, feels native. I've been scripting since HC came out, and yet I can't get native. Sure, I could go Xcode, and I have dipped my toes in a couple of times, only to find the temperature frigid - it would also reinforce the sentiment that LC is for prototyping. RunRev have won me over, they have no worries there, I'll keep coming back, xTalk and scripting gels with the way my brain function - or doesn't function more to the point. I do appreciate all the magic they do, even if I only comprehend a scratch on the surface of the many hurdles they face. It's been discussed many times what made HC so popular, and maybe it was the fact that it was just another Apple paradigm - it wasn't top spec, you could get to half of the Mac's processes, but it's UI was 100% Mac, so what you could do with it, it looked right, felt right and you connected with it. My original comment stands, I'd really like to see RunRev cross the "native widget and resource file" hurdle. From dunbarx at aol.com Thu Jan 19 20:45:22 2012 From: dunbarx at aol.com (dunbarx at aol.com) Date: Thu, 19 Jan 2012 20:45:22 -0500 (EST) Subject: Beating the dock In-Reply-To: References: <4F1878BB.4010906@gmail.com><93622705328.20120119133800@ahsoftware.net><4F1891D9.6010604@gmail.com><16329DAA-BC60-4948-A38A-AC8BC7AEAE8A@twft.com><8CEA51D1FD86F3D-238C-8465@webmail-d129.sysops.aol.com> Message-ID: <8CEA52C4E4912C4-1318-68A1@webmail-d054.sysops.aol.com> Colin. It is just long-learned fingering. I am constantly (nearly) doing this. Bob: Ugh. I will just learn to unlearn old habits instead of installing new software. I was just hoping it was a feature I could disable. I never use Cmd-Tab. Craig -----Original Message----- From: Colin Holgate To: How to use LiveCode Sent: Thu, Jan 19, 2012 2:45 pm Subject: Re: Beating the dock You do know that it's not just a local version of the Dock? You can command-tab or shift-tab cycle through the apps, you can quit any one of them without having to switch to the app first. You can use the mouse to select which of the apps you're trying to switch to or quit. The old advantage of HyperCard that you could switch between the different kinds of tools isn't needed in LC, because any kind of object can be selected with the Edit tool. And you have command-9 and command0 as a keyboard way to switch between tools. _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From lan.kc.macmail at gmail.com Thu Jan 19 21:11:50 2012 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Fri, 20 Jan 2012 10:11:50 +0800 Subject: Find oddity? In-Reply-To: <8CEA507D3030135-238C-6B94@webmail-d129.sysops.aol.com> References: <4F158B8E.9070908@fourthworld.com> <8CEA4468B0C2EFD-2424-14B76@webmail-d129.sysops.aol.com> <5BAB57BF-9F3B-4B62-8CCA-0D2E24EF8007@gmail.com> <8CEA4678EED7FE5-1CBC-DE3C@webmail-d054.sysops.aol.com> <8CEA4E7C8B15A0F-238C-40EC@webmail-d129.sysops.aol.com> <4F1864CF.6090606@hyperactivesw.com> <8CEA507D3030135-238C-6B94@webmail-d129.sysops.aol.com> Message-ID: On Fri, Jan 20, 2012 at 5:24 AM, wrote: > I understand that prudent monitoring of "the result" will allow one to > distinguish the difference. We need an autoFindtFromTop property (heck, > every other conceivable property exists natively). > > With all respect I don't agree. A quick check of a couple of other apps I have all behave the same, where ever the cursor is the Find command starts from there, proceeds to the bottom and if there is no instance found they ask if you want to start from the beginning. A couple have a check box in the Find dialogue where you can specify to start the search from the beginning. This would appear to be simple enough to script into LC if it is behaviour that you think is necessary for your particular app: Surely there is no difference between: set the imaginaryAutoFindFromTop of this stack to true --your find script follows and select before the text of fld 1 your find script follows except the first requires RunRev to devote resources to it and the second doesn't. The LC Find behaviour is quite logical and behaves has described in the Dictionary, although agreed it could be explained better. From pete at mollysrevenge.com Thu Jan 19 21:23:26 2012 From: pete at mollysrevenge.com (Pete) Date: Thu, 19 Jan 2012 18:23:26 -0800 Subject: Jolt Award In-Reply-To: References: Message-ID: So how would you characterise your view Kay? VERY opinionated or only MILDLY so? Just curious... On Thu, Jan 19, 2012 at 5:43 PM, Kay C Lan wrote: > IMO I think the VERY opinionated views of this thread about what a UI > should be go along way in explaining why Apple products have been so > successful. They are NEVER top spec, in some cases arguable low spec, but > they are priced over top spec and this seems to be justifiable by the > commonly agreed characteristic that the User Interface/Experience is so: > seamless, fluid, intuitive, smooth, gorgeous, natural, effortless - and at > least a dozen other superlatives that the press boys can come up with > -- Pete Molly's Revenge From jacque at hyperactivesw.com Thu Jan 19 21:37:19 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 19 Jan 2012 20:37:19 -0600 Subject: Beating the dock In-Reply-To: <8CEA52C4E4912C4-1318-68A1@webmail-d054.sysops.aol.com> References: <4F1878BB.4010906@gmail.com><93622705328.20120119133800@ahsoftware.net><4F1891D9.6010604@gmail.com><16329DAA-BC60-4948-A38A-AC8BC7AEAE8A@twft.com><8CEA51D1FD86F3D-238C-8465@webmail-d129.sysops.aol.com> <8CEA52C4E4912C4-1318-68A1@webmail-d054.sysops.aol.com> Message-ID: <4F18D35F.1030000@hyperactivesw.com> On 1/19/12 7:45 PM, dunbarx at aol.com wrote: > > Ugh. I will just learn to unlearn old habits instead of installing > new software. I was just hoping it was a feature I could disable. I > never use Cmd-Tab. Like you, I was hard-coded to Cmd-tab. I know LiveCode has its own shortcuts for changing tools but they're on the wrong side of the keyboard for me and I never could get used to them. They're difficult to type, my right hand is usually on the mouse. So I wrote a frontscript that traps Control-tab and changes tools. It's inserted as part of my developer library that launches via a plugin every time the IDE starts up. That was easier for me, I only had to re-learn where my left thumb should go. Been using it since MetaCard. You can't change the Cmd-tab shortcut, the OS intercepts it before LiveCode even knows it happened. But you can control-tab instead. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From lan.kc.macmail at gmail.com Thu Jan 19 21:39:19 2012 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Fri, 20 Jan 2012 10:39:19 +0800 Subject: Prototyping In-Reply-To: <4F1878BB.4010906@gmail.com> References: <4F1878BB.4010906@gmail.com> Message-ID: On Fri, Jan 20, 2012 at 4:10 AM, Richmond wrote: > > What I fail to understand, is, having bothered to take the trouble to > build a "prototype" > in Livecode (especially one that does all that you want it to), what > possible advantage > can there be to then move to some other language/RAD/whatever to build > "the real thing" > when you already have it in Livecode? > > Unfortunately your car making is a good analogy because at the top of the list of things you don't get from LC that you'd get from Xcode for instance would be speed. Make me a 64bit multi-threaded app in LC and maybe the prototypers will go away. Games immediately come to mind. I'm sure you could quickly prototype them on LC, but for those graphically intensive behemoths, LC hasn't got a chance. And talking of threads, returning to the thread from whence this came, if I NEED a particular iOS UI widget that LC doesn't have, should I tender out and hope to find the one or two LC GUI gurus who can create a simile, or tender out to the hoards of iOS programmers out there and get it native. The answer probably depends on my budget, the audience for my app, and expected ROI. I imagine there are few people on this List who have something that LC can't do which they wish it could, I seem to remember someone wanting to edit the Application Menu. For most of use, we might be able to live with that limitation, and do without. For other, it may be a must have feature, which means they have to finish their project in another language. From lan.kc.macmail at gmail.com Thu Jan 19 21:41:53 2012 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Fri, 20 Jan 2012 10:41:53 +0800 Subject: Jolt Award In-Reply-To: References: Message-ID: Is there one above VERY ;-) On Fri, Jan 20, 2012 at 10:23 AM, Pete wrote: > So how would you characterise your view Kay? VERY opinionated or only > MILDLY so? Just curious... > > On Thu, Jan 19, 2012 at 5:43 PM, Kay C Lan > wrote: > > > IMO I think the VERY opinionated views of this thread about what a UI > > should be go along way in explaining why Apple products have been so > > successful. They are NEVER top spec, in some cases arguable low spec, but > > they are priced over top spec and this seems to be justifiable by the > > commonly agreed characteristic that the User Interface/Experience is so: > > seamless, fluid, intuitive, smooth, gorgeous, natural, effortless - and > at > > least a dozen other superlatives that the press boys can come up with > > > > > > -- > 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 mwieder at ahsoftware.net Thu Jan 19 22:07:51 2012 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 19 Jan 2012 19:07:51 -0800 Subject: Prototyping In-Reply-To: <4F1891D9.6010604@gmail.com> References: <4F1878BB.4010906@gmail.com> <93622705328.20120119133800@ahsoftware.net> <4F1891D9.6010604@gmail.com> Message-ID: <71642499859.20120119190751@ahsoftware.net> Richmond- Thursday, January 19, 2012, 1:57:45 PM, you wrote: > Note the loaded language; "get honest feedback" - and what, pray tell, > will make feedback > their way, in some way, more honest than, say, my scribbling something > with a pencil and paper > in a restaurant? I have a hard time seeing what you're scribbling over there. > "Wireframes made with Mockups look like sketches, so stakeholders won't > get distracted by > little details, and can focus on what's really important instead." Here's the basic idea: clients get a bit pushed out of shape when you deliver them a prototype that looks too much like a finished product. You end up arguing a lot over "that's not what I wanted" even though all you're presenting is a first draft of some ideas. If you present them instead with something that more resembles something scribbled on the back of an envelope it's less threatening to their mindset. You're giving them a chance to be more open to suggesting changes without getting defensive. They can also, as the quote mentioned, think more about what the application is supposed to do instead of what color this button should be or the fact that that field should be moved over two pixels. You can wow them with the eye candy later on. We use it at work to share mockups during the initial phases of specifying an application before committing to a full development effort. ...and I have a start at a Balsamiq-to-LC converter in the wings so that you can turn your scribbled ideas into a working stack. So there. -- -Mark Wieder mwieder at ahsoftware.net From mwieder at ahsoftware.net Thu Jan 19 22:11:35 2012 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 19 Jan 2012 19:11:35 -0800 Subject: Prototyping In-Reply-To: <93622705328.20120119133800@ahsoftware.net> References: <4F1878BB.4010906@gmail.com> <93622705328.20120119133800@ahsoftware.net> Message-ID: <124642724328.20120119191135@ahsoftware.net> And speaking of prototyping, I'd really be remiss if I didn't mention Keynotopia: -- -Mark Wieder mwieder at ahsoftware.net From bobs at twft.com Thu Jan 19 22:21:53 2012 From: bobs at twft.com (Bob Sneidar) Date: Thu, 19 Jan 2012 19:21:53 -0800 Subject: Prototyping In-Reply-To: <71642499859.20120119190751@ahsoftware.net> References: <4F1878BB.4010906@gmail.com> <93622705328.20120119133800@ahsoftware.net> <4F1891D9.6010604@gmail.com> <71642499859.20120119190751@ahsoftware.net> Message-ID: <717F9729-7FBB-43E2-ACFB-AEE5262F3B8E@twft.com> Whoa! Is there yet another Padawan among us? ;-) seriously though, how cool would that be? Sent from my iPad On Jan 19, 2012, at 7:07 PM, Mark Wieder wrote: > Richmond- > > Thursday, January 19, 2012, 1:57:45 PM, you wrote: > >> Note the loaded language; "get honest feedback" - and what, pray tell, >> will make feedback >> their way, in some way, more honest than, say, my scribbling something >> with a pencil and paper >> in a restaurant? > > I have a hard time seeing what you're scribbling over there. > >> "Wireframes made with Mockups look like sketches, so stakeholders won't >> get distracted by >> little details, and can focus on what's really important instead." > > Here's the basic idea: clients get a bit pushed out of shape when you > deliver them a prototype that looks too much like a finished product. > You end up arguing a lot over "that's not what I wanted" even though > all you're presenting is a first draft of some ideas. If you present > them instead with something that more resembles something scribbled on > the back of an envelope it's less threatening to their mindset. You're > giving them a chance to be more open to suggesting changes without > getting defensive. > > They can also, as the quote mentioned, think more about what the > application is supposed to do instead of what color this button should > be or the fact that that field should be moved over two pixels. You > can wow them with the eye candy later on. > > We use it at work to share mockups during the initial phases of > specifying an application before committing to a full development > effort. > > ...and I have a start at a Balsamiq-to-LC converter in the wings so > that you can turn your scribbled ideas into a working stack. So there. > > -- > -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 tsj at unimelb.edu.au Fri Jan 20 00:18:57 2012 From: tsj at unimelb.edu.au (Terry Judd) Date: Fri, 20 Jan 2012 05:18:57 +0000 Subject: OSX 10.7 app corruption issue Message-ID: I'm getting reports from a beta tester that a Mac app that is deployed on a USB stick is becoming corrupted after being run under 10.7 (runs fine on 10.6) - apparently the problem has been replicated a number of time. I don't have`10.7 installed to test this out myself. Any ideas on what might be occurring (something to do with file access?) and how I should go about addressing it? The app is built with 4.6.4 and consists of a stub application that load a series of livecode stacks (some are library stacks and a couple have data written to them). It also can be used to launch a whole bunch of other apps (mostly Director apps) that are installed on the USB stick. Terry... Dr Terry Judd Senior Lecturer in Medical Education Medical Eduction Unit Faculty of Medicine, Dentistry & Health Sciences The University of Melbourne From pete at mollysrevenge.com Fri Jan 20 00:43:47 2012 From: pete at mollysrevenge.com (Pete) Date: Thu, 19 Jan 2012 21:43:47 -0800 Subject: Prototyping In-Reply-To: <124642724328.20120119191135@ahsoftware.net> References: <4F1878BB.4010906@gmail.com> <93622705328.20120119133800@ahsoftware.net> <124642724328.20120119191135@ahsoftware.net> Message-ID: Wow! The icons alone are worth the price. On Thu, Jan 19, 2012 at 7:11 PM, Mark Wieder wrote: > And speaking of prototyping, I'd really be remiss if I didn't mention > Keynotopia: > > < > http://keynotopia.com/keynotopia-3-0-pixel-perfect-components-and-royalty-free-icons/?utm_source=Keynotopia&utm_campaign=cd5bef1c10-Keynotopia_V3&utm_medium=email > > > > -- > -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 > > -- Pete Molly's Revenge From tsj at unimelb.edu.au Fri Jan 20 00:50:58 2012 From: tsj at unimelb.edu.au (Terry Judd) Date: Fri, 20 Jan 2012 05:50:58 +0000 Subject: OSX 10.7 app corruption issue In-Reply-To: References: Message-ID: More info - it's just the Livecode app that is affected. After it's run on 10.7 it ceases to work on either 10.6. or 10.7 and has lost it's app icon. Trying to get hold of a copy of the corrupted app so I can have a look inside the app folder. Terry... On 20/01/2012, at 04:18 PM, Terry Judd wrote: I'm getting reports from a beta tester that a Mac app that is deployed on a USB stick is becoming corrupted after being run under 10.7 (runs fine on 10.6) - apparently the problem has been replicated a number of time. I don't have`10.7 installed to test this out myself. Any ideas on what might be occurring (something to do with file access?) and how I should go about addressing it? The app is built with 4.6.4 and consists of a stub application that load a series of livecode stacks (some are library stacks and a couple have data written to them). It also can be used to launch a whole bunch of other apps (mostly Director apps) that are installed on the USB stick. Terry... Dr Terry Judd Senior Lecturer in Medical Education Medical Eduction Unit Faculty of Medicine, Dentistry & Health Sciences 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 Eduction Unit Faculty of Medicine, Dentistry & Health Sciences The University of Melbourne From tsj at unimelb.edu.au Fri Jan 20 00:58:14 2012 From: tsj at unimelb.edu.au (Terry Judd) Date: Fri, 20 Jan 2012 05:58:14 +0000 Subject: Prototyping In-Reply-To: References: <4F1878BB.4010906@gmail.com> <93622705328.20120119133800@ahsoftware.net> <124642724328.20120119191135@ahsoftware.net> Message-ID: <2CD9E63E-F463-4759-BAE5-F9089070942F@unimelb.edu.au> Ooh, I like the look of this. Thanks for the link Mark. Terry... On 20/01/2012, at 04:43 PM, Pete wrote: Wow! The icons alone are worth the price. On Thu, Jan 19, 2012 at 7:11 PM, Mark Wieder > wrote: And speaking of prototyping, I'd really be remiss if I didn't mention Keynotopia: < http://keynotopia.com/keynotopia-3-0-pixel-perfect-components-and-royalty-free-icons/?utm_source=Keynotopia&utm_campaign=cd5bef1c10-Keynotopia_V3&utm_medium=email -- -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 -- 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 Dr Terry Judd Senior Lecturer in Medical Education Medical Eduction Unit Faculty of Medicine, Dentistry & Health Sciences The University of Melbourne From tsj at unimelb.edu.au Fri Jan 20 01:20:17 2012 From: tsj at unimelb.edu.au (Terry Judd) Date: Fri, 20 Jan 2012 06:20:17 +0000 Subject: OSX 10.7 app corruption issue In-Reply-To: References: Message-ID: <830E1A9D-173D-4CE2-B064-B93255C76C95@unimelb.edu.au> Right - lot's of things appear to have gone missing from the corrupted app. The original file/folder structure looks like this... Curriculum Connect.app Contents MacOS revpdpprinter.bundle Externals revbrowser.bundle revdb.bundle revxml.bundle revzip.bundle Database_drivers dbmysql.bundle dbodbc.bundle dbsqlite.bundle Curriculum Connect (3.2 MB) Resources (lots of stuff in here) Info.plist PkgInfo but the corrupted copy looks like this... Curriculum Connect.app MacOS Curriculum Connect (2.1 MB) Info.plist Looks like a bomb has gone off in there. Any ideas? I'm supposed to be deploying this to a whole bunch of users first thing next week. Terry... On 20/01/2012, at 04:50 PM, Terry Judd wrote: > More info - it's just the Livecode app that is affected. After it's run on 10.7 it ceases to work on either 10.6. or 10.7 and has lost it's app icon. Trying to get hold of a copy of the corrupted app so I can have a look inside the app folder. > > Terry... > > > On 20/01/2012, at 04:18 PM, Terry Judd wrote: > > I'm getting reports from a beta tester that a Mac app that is deployed on a USB stick is becoming corrupted after being run under 10.7 (runs fine on 10.6) - apparently the problem has been replicated a number of time. I don't have`10.7 installed to test this out myself. Any ideas on what might be occurring (something to do with file access?) and how I should go about addressing it? > > The app is built with 4.6.4 and consists of a stub application that load a series of livecode stacks (some are library stacks and a couple have data written to them). It also can be used to launch a whole bunch of other apps (mostly Director apps) that are installed on the USB stick. > > Terry... > > Dr Terry Judd > Senior Lecturer in Medical Education > Medical Eduction Unit > Faculty of Medicine, Dentistry & Health Sciences > 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 Eduction Unit > Faculty of Medicine, Dentistry & Health Sciences > 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 Eduction Unit Faculty of Medicine, Dentistry & Health Sciences The University of Melbourne From pete at mollysrevenge.com Fri Jan 20 01:25:19 2012 From: pete at mollysrevenge.com (Pete) Date: Thu, 19 Jan 2012 22:25:19 -0800 Subject: Application quit on OS X Message-ID: It seems that when you close the main stack window in an LC standalone application on OS X, the application terminates. That doesn't seem like normal behavior for an OS X application, at least not the ones I'm familiar with. Maybe there's no right or wrong on this and it's a function of the application functionality? -- Pete Molly's Revenge From mwieder at ahsoftware.net Fri Jan 20 01:27:53 2012 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 19 Jan 2012 22:27:53 -0800 Subject: Prototyping In-Reply-To: References: <4F1878BB.4010906@gmail.com> <93622705328.20120119133800@ahsoftware.net> <124642724328.20120119191135@ahsoftware.net> Message-ID: <177654502859.20120119222753@ahsoftware.net> Pete- Thursday, January 19, 2012, 9:43:47 PM, you wrote: > Wow! The icons alone are worth the price. I'm a happy customer. Amir keeps making this better and the updates are free and it looks great. -- -Mark Wieder mwieder at ahsoftware.net From mwieder at ahsoftware.net Fri Jan 20 02:02:14 2012 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 19 Jan 2012 23:02:14 -0800 Subject: best 404 ever Message-ID: <176656563625.20120119230214@ahsoftware.net> All- Now that boingboing's back online they've got a pointer to the best 404 page ever: http://kvartirakrasivo.ru/404/index.php -- -Mark Wieder mwieder at ahsoftware.net From revolution at derbrill.de Fri Jan 20 02:56:59 2012 From: revolution at derbrill.de (Malte Brill) Date: Fri, 20 Jan 2012 08:56:59 +0100 Subject: Session strategies for liveCode server In-Reply-To: References: Message-ID: <7F67CE21-3FEC-4056-BCC2-6BD6B57B36EE@derbrill.de> Thanks to sturgis from the forums I got it working now. The missing link was that the session needs to be stopped before the script terminates. This is a working example: Happy camper now. :-) Cheers, Malte From keith at gulfbreezeortholab.com Fri Jan 20 04:48:33 2012 From: keith at gulfbreezeortholab.com (Keith (Gulf Breeze Ortho Lab)) Date: Fri, 20 Jan 2012 03:48:33 -0600 Subject: Trying to delete a file via FTP Message-ID: <446CE51CB57D4FD7AE88E765270435CE@KeithPC> Hi All, I am playing with FTP and am successfully able to upload a file to my shared server... No problem. However, when I try the following command to delete the file after uploading, it does not work: put "file.txt" into delFile constant FTPHOST = "ftp.mydomain.com" put the urlencode of "test at mydomain.com" into FTPUSER put the urlencode of "test" into FTPPASS get libURLftpCommand("DELE "&delFile,FTPHOST,FTPUSER,FTPPASS) Also, when add the following line to my code: answer libURLftpCommand("HELP",ftp.mydomain.com) I get the following error message: 421 Can't change directory to /var/ftp/ [/] What am I missing here? Do I need to include the full path? FYI: The ftp account I am accessing is a basic account that I added via my cPanel... (It is a single directory on my server... This is not the main FTP account for my Web hosting account.) Thanks! - Boo From m.schonewille at economy-x-talk.com Fri Jan 20 05:09:17 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Fri, 20 Jan 2012 11:09:17 +0100 Subject: Application quit on OS X In-Reply-To: References: Message-ID: <378B894B-6B78-4971-9139-34FD85158807@economy-x-talk.com> Hi Pete, This is correct behaviour. You'r be very surprised if you close the last window on Windows and your app continues running but is completely inaccessible. You'd also be surprised of your standalone behaved differently on Mac. Moreoever, without a window, you need a menubar with a Quit menu item, but which stack is going to provide the menubar if you just closed the last window? To work around this, you could add a hidden window with a defaultMenubar or use a closeStackRequest handler to warn the user that the application will quit. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 20 jan 2012, at 07:25, Pete wrote: > It seems that when you close the main stack window in an LC standalone > application on OS X, the application terminates. That doesn't seem like > normal behavior for an OS X application, at least not the ones I'm familiar > with. Maybe there's no right or wrong on this and it's a function of the > application functionality? > From m.schonewille at economy-x-talk.com Fri Jan 20 05:11:26 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Fri, 20 Jan 2012 11:11:26 +0100 Subject: OSX 10.7 app corruption issue In-Reply-To: <830E1A9D-173D-4CE2-B064-B93255C76C95@unimelb.edu.au> References: <830E1A9D-173D-4CE2-B064-B93255C76C95@unimelb.edu.au> Message-ID: Hi Terry, Is the tester running from the memory stack? Tell him to copy the app to the application folder and try again. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 20 jan 2012, at 07:20, Terry Judd wrote: > Right - lot's of things appear to have gone missing from the corrupted app. > > The original file/folder structure looks like this... > > Curriculum Connect.app > Contents > MacOS > revpdpprinter.bundle > Externals > revbrowser.bundle > revdb.bundle > revxml.bundle > revzip.bundle > Database_drivers > dbmysql.bundle > dbodbc.bundle > dbsqlite.bundle > Curriculum Connect (3.2 MB) > Resources (lots of stuff in here) > Info.plist > PkgInfo > > but the corrupted copy looks like this... > > Curriculum Connect.app > MacOS > Curriculum Connect (2.1 MB) > Info.plist > > Looks like a bomb has gone off in there. > > Any ideas? I'm supposed to be deploying this to a whole bunch of users first thing next week. > > Terry... > > On 20/01/2012, at 04:50 PM, Terry Judd wrote: > >> More info - it's just the Livecode app that is affected. After it's run on 10.7 it ceases to work on either 10.6. or 10.7 and has lost it's app icon. Trying to get hold of a copy of the corrupted app so I can have a look inside the app folder. >> >> Terry... >> >> >> On 20/01/2012, at 04:18 PM, Terry Judd wrote: >> >> I'm getting reports from a beta tester that a Mac app that is deployed on a USB stick is becoming corrupted after being run under 10.7 (runs fine on 10.6) - apparently the problem has been replicated a number of time. I don't have`10.7 installed to test this out myself. Any ideas on what might be occurring (something to do with file access?) and how I should go about addressing it? >> >> The app is built with 4.6.4 and consists of a stub application that load a series of livecode stacks (some are library stacks and a couple have data written to them). It also can be used to launch a whole bunch of other apps (mostly Director apps) that are installed on the USB stick. >> >> Terry... From keith at gulfbreezeortholab.com Fri Jan 20 05:25:20 2012 From: keith at gulfbreezeortholab.com (Keith (Gulf Breeze Ortho Lab)) Date: Fri, 20 Jan 2012 04:25:20 -0600 Subject: Trying to delete a file via FTP In-Reply-To: <446CE51CB57D4FD7AE88E765270435CE@KeithPC> References: <446CE51CB57D4FD7AE88E765270435CE@KeithPC> Message-ID: <1A43CC012EF344DE84B0363117D3EE89@KeithPC> Okay, please disregard my previous message... Figured it out... The username and password should not be urlencoded: get libURLftpCommand("DELE "&delFile,"ftp.mydomain.com","test at mydomain.com","test") Cheers! - Boo -----Original Message----- From: Keith (Gulf Breeze Ortho Lab) Sent: Friday, January 20, 2012 3:48 AM To: How to use LiveCode Subject: Trying to delete a file via FTP Hi All, I am playing with FTP and am successfully able to upload a file to my shared server... No problem. However, when I try the following command to delete the file after uploading, it does not work: put "file.txt" into delFile constant FTPHOST = "ftp.mydomain.com" put the urlencode of "test at mydomain.com" into FTPUSER put the urlencode of "test" into FTPPASS get libURLftpCommand("DELE "&delFile,FTPHOST,FTPUSER,FTPPASS) Also, when add the following line to my code: answer libURLftpCommand("HELP",ftp.mydomain.com) I get the following error message: 421 Can't change directory to /var/ftp/ [/] What am I missing here? Do I need to include the full path? FYI: The ftp account I am accessing is a basic account that I added via my cPanel... (It is a single directory on my server... This is not the main FTP account for my Web hosting account.) Thanks! - Boo _______________________________________________ use-livecode mailing list use-livecode at 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 Fri Jan 20 07:10:18 2012 From: tsj at unimelb.edu.au (Terry Judd) Date: Fri, 20 Jan 2012 12:10:18 +0000 Subject: OSX 10.7 app corruption issue In-Reply-To: References: <830E1A9D-173D-4CE2-B064-B93255C76C95@unimelb.edu.au>, Message-ID: Hi Mark - yes, the app is being run from the stick - it's designed to be portable so the user can run it on various shared computers across the university (the stick has both Mac and Win versions of a range of apps installed). Is there a limitation on 10.7 that would prevent us from doing this? Terry... On 20/01/2012, at 9:13 PM, "Mark Schonewille" wrote: > Hi Terry, > > Is the tester running from the memory stack? Tell him to copy the app to the application folder and try again. > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za > > On 20 jan 2012, at 07:20, Terry Judd wrote: > >> Right - lot's of things appear to have gone missing from the corrupted app. >> >> The original file/folder structure looks like this... >> >> Curriculum Connect.app >> Contents >> MacOS >> revpdpprinter.bundle >> Externals >> revbrowser.bundle >> revdb.bundle >> revxml.bundle >> revzip.bundle >> Database_drivers >> dbmysql.bundle >> dbodbc.bundle >> dbsqlite.bundle >> Curriculum Connect (3.2 MB) >> Resources (lots of stuff in here) >> Info.plist >> PkgInfo >> >> but the corrupted copy looks like this... >> >> Curriculum Connect.app >> MacOS >> Curriculum Connect (2.1 MB) >> Info.plist >> >> Looks like a bomb has gone off in there. >> >> Any ideas? I'm supposed to be deploying this to a whole bunch of users first thing next week. >> >> Terry... >> >> On 20/01/2012, at 04:50 PM, Terry Judd wrote: >> >>> More info - it's just the Livecode app that is affected. After it's run on 10.7 it ceases to work on either 10.6. or 10.7 and has lost it's app icon. Trying to get hold of a copy of the corrupted app so I can have a look inside the app folder. >>> >>> Terry... >>> >>> >>> On 20/01/2012, at 04:18 PM, Terry Judd wrote: >>> >>> I'm getting reports from a beta tester that a Mac app that is deployed on a USB stick is becoming corrupted after being run under 10.7 (runs fine on 10.6) - apparently the problem has been replicated a number of time. I don't have`10.7 installed to test this out myself. Any ideas on what might be occurring (something to do with file access?) and how I should go about addressing it? >>> >>> The app is built with 4.6.4 and consists of a stub application that load a series of livecode stacks (some are library stacks and a couple have data written to them). It also can be used to launch a whole bunch of other apps (mostly Director apps) that are installed on the USB stick. >>> >>> 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 > From devin_asay at byu.edu Fri Jan 20 11:07:45 2012 From: devin_asay at byu.edu (Devin Asay) Date: Fri, 20 Jan 2012 16:07:45 +0000 Subject: best 404 ever In-Reply-To: <176656563625.20120119230214@ahsoftware.net> References: <176656563625.20120119230214@ahsoftware.net> Message-ID: Wow! Way to Much Free Time on Their Hands. Translation, in case anyone's interested: Jaga KvartiraKrasivo.ru (which translates to ApartmentBeautiful.ru) It was no accident that you ended up here!!! Forget work and come dance with Moldavian guest workers. P.S. No guest workers were harmed in the production of this film. On Jan 20, 2012, at 12:02 AM, Mark Wieder wrote: > All- > > Now that boingboing's back online they've got a pointer to the best > 404 page ever: > > http://kvartirakrasivo.ru/404/index.php > > -- > -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 Devin Asay Humanities Technology and Research Support Center Brigham Young University From bobs at twft.com Fri Jan 20 11:48:44 2012 From: bobs at twft.com (Bob Sneidar) Date: Fri, 20 Jan 2012 08:48:44 -0800 Subject: Application quit on OS X In-Reply-To: References: Message-ID: <589D6FF8-CA23-4DB3-A2F4-7CC3E7F0AD30@twft.com> If you take the splash stack approach and hide the splash stack before launching the actual app stack, it won't do that. But you would have to have some way of launching the app stack again, like a system menu in the splash stack. Bob On Jan 19, 2012, at 10:25 PM, Pete wrote: > It seems that when you close the main stack window in an LC standalone > application on OS X, the application terminates. That doesn't seem like > normal behavior for an OS X application, at least not the ones I'm familiar > with. Maybe there's no right or wrong on this and it's a function of the > application functionality? > > > -- > 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 bdrunrev at gmail.com Fri Jan 20 11:57:09 2012 From: bdrunrev at gmail.com (Bernard Devlin) Date: Fri, 20 Jan 2012 16:57:09 +0000 Subject: rTree author Message-ID: Hi folks, does anyone have contact information for this gentleman? I posted a comment on his site a while back and never received a reply. http://www.tapirsoft.com/index.php?option=com_jdownloads&view=viewcategory&catid=1&Itemid=3 And there is a post in the RunRev forum that requires his attention. http://forums.runrev.com/viewtopic.php?f=51&t=10726 I've seen him answer other posts there in a very good way, and I'm hoping he's just busy rather than unwell. The last release of the rTree Workbench was in October. I bought a license for rTree 1.5 back in the summer because I wanted to encourage him. I've since started using it, and I like what he's done. I know that the plans for rTree 2.0 (as mentioned in a Livecode newsletter) might require major re-working, and that might have been a bigger project than he envisioned (we've all been there!) That might explain his recent silence. Bernard From bobs at twft.com Fri Jan 20 11:58:01 2012 From: bobs at twft.com (Bob Sneidar) Date: Fri, 20 Jan 2012 08:58:01 -0800 Subject: Prototyping In-Reply-To: References: <4F1878BB.4010906@gmail.com> <93622705328.20120119133800@ahsoftware.net> <124642724328.20120119191135@ahsoftware.net> Message-ID: <5B66170C-78BB-4DA4-A1C9-D88D7382CFBE@twft.com> Well hey howdy! But how would you get those items (say the calendar object) into LC? I quote: "All elements are designed from scratch in Keynote and PowerPoint (no images!) and are fully customizable and editable without needing additional tools." Sure I could take screen shots. I can do that without buying anything. I am not sure I get this. Bob On Jan 19, 2012, at 9:43 PM, Pete wrote: > Wow! The icons alone are worth the price. > > On Thu, Jan 19, 2012 at 7:11 PM, Mark Wieder wrote: > >> And speaking of prototyping, I'd really be remiss if I didn't mention >> Keynotopia: >> >> < >> http://keynotopia.com/keynotopia-3-0-pixel-perfect-components-and-royalty-free-icons/?utm_source=Keynotopia&utm_campaign=cd5bef1c10-Keynotopia_V3&utm_medium=email >>> >> >> -- >> -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 >> >> > > > -- > 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 bobs at twft.com Fri Jan 20 12:01:23 2012 From: bobs at twft.com (Bob Sneidar) Date: Fri, 20 Jan 2012 09:01:23 -0800 Subject: best 404 ever In-Reply-To: <176656563625.20120119230214@ahsoftware.net> References: <176656563625.20120119230214@ahsoftware.net> Message-ID: <78A52BD7-4D81-48AB-B945-D9B2E27E342A@twft.com> I get blank screen. I am probably being blocked by a content filter. :-) Bob On Jan 19, 2012, at 11:02 PM, Mark Wieder wrote: > All- > > Now that boingboing's back online they've got a pointer to the best > 404 page ever: > > http://kvartirakrasivo.ru/404/index.php > > -- > -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 Fri Jan 20 12:10:45 2012 From: warren at warrensweb.us (Warren Samples) Date: Fri, 20 Jan 2012 11:10:45 -0600 Subject: best 404 ever In-Reply-To: <78A52BD7-4D81-48AB-B945-D9B2E27E342A@twft.com> References: <176656563625.20120119230214@ahsoftware.net> <78A52BD7-4D81-48AB-B945-D9B2E27E342A@twft.com> Message-ID: <4F19A015.6050505@warrensweb.us> On 01/20/2012 11:01 AM, Bob Sneidar wrote: > I get blank screen. I am probably being blocked by a content filter.:-) > > Bob It's done in Flash From m.schonewille at economy-x-talk.com Fri Jan 20 12:12:04 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Fri, 20 Jan 2012 18:12:04 +0100 Subject: rTree author In-Reply-To: References: Message-ID: <70A39DEB-B6BB-4DD6-9F7C-668E1E25B652@economy-x-talk.com> Hi Bernard, Did you reply the question above the e-mail form? There is some contact info available from whois http://qery.us/whois.php?u=tapirsoft.com and you could ask RunRev support for more info. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 20 jan 2012, at 17:57, Bernard Devlin wrote: > Hi folks, does anyone have contact information for this gentleman? I > posted a comment on his site a while back and never received a reply. > > http://www.tapirsoft.com/index.php?option=com_jdownloads&view=viewcategory&catid=1&Itemid=3 > > And there is a post in the RunRev forum that requires his attention. > > http://forums.runrev.com/viewtopic.php?f=51&t=10726 > > I've seen him answer other posts there in a very good way, and I'm > hoping he's just busy rather than unwell. The last release of the > rTree Workbench was in October. > > I bought a license for rTree 1.5 back in the summer because I wanted > to encourage him. I've since started using it, and I like what he's > done. I know that the plans for rTree 2.0 (as mentioned in a Livecode > newsletter) might require major re-working, and that might have been a > bigger project than he envisioned (we've all been there!) That might > explain his recent silence. > > Bernard From coiin at verizon.net Fri Jan 20 12:13:24 2012 From: coiin at verizon.net (Colin Holgate) Date: Fri, 20 Jan 2012 12:13:24 -0500 Subject: best 404 ever In-Reply-To: <78A52BD7-4D81-48AB-B945-D9B2E27E342A@twft.com> References: <176656563625.20120119230214@ahsoftware.net> <78A52BD7-4D81-48AB-B945-D9B2E27E342A@twft.com> Message-ID: <9D197053-C41D-48DF-A534-FD07E2734668@verizon.net> It does use Flash. Or maybe you failed to find the 404 page, and got into an infinite loop? On Jan 20, 2012, at 12:01 PM, Bob Sneidar wrote: > I get blank screen. I am probably being blocked by a content filter. :-) From bobs at twft.com Fri Jan 20 12:15:18 2012 From: bobs at twft.com (Bob Sneidar) Date: Fri, 20 Jan 2012 09:15:18 -0800 Subject: rTree author In-Reply-To: References: Message-ID: <2D2A2B5B-696C-4B62-A480-C8043357415F@twft.com> Hmmm... I was thinking of trying to create a command that converted the output of Trevor's printkeys() function back into an array. I wonder if rTree could help? The format of printkeys() is: 1 firstkey: Some text secondkey: Some other text 2 firstkey: Yet more text secondkey: Okay this is the last of the text Bob On Jan 20, 2012, at 8:57 AM, Bernard Devlin wrote: > Hi folks, does anyone have contact information for this gentleman? I > posted a comment on his site a while back and never received a reply. > > http://www.tapirsoft.com/index.php?option=com_jdownloads&view=viewcategory&catid=1&Itemid=3 > > And there is a post in the RunRev forum that requires his attention. > > http://forums.runrev.com/viewtopic.php?f=51&t=10726 > > I've seen him answer other posts there in a very good way, and I'm > hoping he's just busy rather than unwell. The last release of the > rTree Workbench was in October. > > I bought a license for rTree 1.5 back in the summer because I wanted > to encourage him. I've since started using it, and I like what he's > done. I know that the plans for rTree 2.0 (as mentioned in a Livecode > newsletter) might require major re-working, and that might have been a > bigger project than he envisioned (we've all been there!) That might > explain his recent silence. > > Bernard > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jan 20 12:23:08 2012 From: pete at mollysrevenge.com (Pete) Date: Fri, 20 Jan 2012 09:23:08 -0800 Subject: Application quit on OS X In-Reply-To: <378B894B-6B78-4971-9139-34FD85158807@economy-x-talk.com> References: <378B894B-6B78-4971-9139-34FD85158807@economy-x-talk.com> Message-ID: I have to respectfully disagree Mark, this isn't correct behavior. Haven't used Windows for a long time but one of the major differences between it and OS X is that there is a system menubar at the top of the workspace on a Mac, not at the top of every application window. So you can close all the windows for an application and the application's menu bar is still there at the top of the screen, including a Quit item on the Application menu. As far as I can tell, all Mac applications work this way. Closing the last open window in the app and quitting it are two different activities. Even the Livecode IDE works that way on a Mac. You're right that I would be surprised if a Windows app somehow stayed open when you closed it's last open window for the reasons you mentioned but I am surprised that my Mac application behaves that way. I guess I will have to research the various messages that are sent when an application wants to quit and see if there's a way to prevent it. Just seems odd that I have to write code to handle something that is standard behavior on a Mac. Pete On Fri, Jan 20, 2012 at 2:09 AM, Mark Schonewille < m.schonewille at economy-x-talk.com> wrote: > Hi Pete, > > This is correct behaviour. You'r be very surprised if you close the last > window on Windows and your app continues running but is completely > inaccessible. You'd also be surprised of your standalone behaved > differently on Mac. Moreoever, without a window, you need a menubar with a > Quit menu item, but which stack is going to provide the menubar if you just > closed the last window? > > To work around this, you could add a hidden window with a defaultMenubar > or use a closeStackRequest handler to warn the user that the application > will quit. > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > Download the Installer Maker Plugin 1.7 for LiveCode here > http://qery.us/za > > On 20 jan 2012, at 07:25, Pete wrote: > > > It seems that when you close the main stack window in an LC standalone > > application on OS X, the application terminates. That doesn't seem like > > normal behavior for an OS X application, at least not the ones I'm > familiar > > with. Maybe there's no right or wrong on this and it's a function of the > > application functionality? > > > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 matthias_livecode_150811 at m-r-d.de Fri Jan 20 12:49:52 2012 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Fri, 20 Jan 2012 18:49:52 +0100 Subject: rTree author In-Reply-To: References: Message-ID: <0F4B2AAC-E673-4555-BB82-1B2E99615A2C@m-r-d.de> > > http://forums.runrev.com/viewtopic.php?f=51&t=10726 > Hmm, his last visit or better say his last login into the forum was on the 6th November last year. Keep fingers crossed that he is well. Matthias > I've seen him answer other posts there in a very good way, and I'm > hoping he's just busy rather than unwell. The last release of the > rTree Workbench was in October. > > I bought a license for rTree 1.5 back in the summer because I wanted > to encourage him. I've since started using it, and I like what he's > done. I know that the plans for rTree 2.0 (as mentioned in a Livecode > newsletter) might require major re-working, and that might have been a > bigger project than he envisioned (we've all been there!) That might > explain his recent silence. > > Bernard > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Jan 20 12:53:10 2012 From: warren at warrensweb.us (Warren Samples) Date: Fri, 20 Jan 2012 11:53:10 -0600 Subject: Application quit on OS X In-Reply-To: References: <378B894B-6B78-4971-9139-34FD85158807@economy-x-talk.com> Message-ID: <4F19AA06.9040400@warrensweb.us> On 01/20/2012 11:23 AM, Pete wrote: > As far as I can tell, all Mac applications work this way.. This is not correct. It depends on what kind of application it is. Most work this way but several utilities do not. I have seen some discussion of this elsewhere, although I can't recall where, and I think Apple has issued its official opinion on this which does allow for this behavior. One could use the closestack message to open a dialog with a menubar, which ask the user if they would like to open another window or quit the app, or some other option appropriate for the app. Warren From bobs at twft.com Fri Jan 20 12:57:04 2012 From: bobs at twft.com (Bob Sneidar) Date: Fri, 20 Jan 2012 09:57:04 -0800 Subject: best 404 ever In-Reply-To: <4F19A015.6050505@warrensweb.us> References: <176656563625.20120119230214@ahsoftware.net> <78A52BD7-4D81-48AB-B945-D9B2E27E342A@twft.com> <4F19A015.6050505@warrensweb.us> Message-ID: <29D3778E-B4C6-40BD-821B-93B8F4931C74@twft.com> I have flash installed. Our website uses it extensively. Dunno what is going on. Bob On Jan 20, 2012, at 9:10 AM, Warren Samples wrote: > On 01/20/2012 11:01 AM, Bob Sneidar wrote: >> I get blank screen. I am probably being blocked by a content filter.:-) >> >> Bob > > It's done in Flash > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jan 20 12:57:23 2012 From: coiin at verizon.net (Colin Holgate) Date: Fri, 20 Jan 2012 12:57:23 -0500 Subject: Application quit on OS X In-Reply-To: <4F19AA06.9040400@warrensweb.us> References: <378B894B-6B78-4971-9139-34FD85158807@economy-x-talk.com> <4F19AA06.9040400@warrensweb.us> Message-ID: <7BD07EF9-38B0-45D2-8D94-BBAC14C30E00@verizon.net> System Preferences is an example of an app that quits when you close the window. On Jan 20, 2012, at 12:53 PM, Warren Samples wrote: > On 01/20/2012 11:23 AM, Pete wrote: >> As far as I can tell, all Mac applications work this way.. > > > This is not correct. It depends on what kind of application it is. Most work this way but several utilities do not. I have seen some discussion of this elsewhere, although I can't recall where, and I think Apple has issued its official opinion on this which does allow for this behavior. From jacque at hyperactivesw.com Fri Jan 20 13:14:06 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 20 Jan 2012 12:14:06 -0600 Subject: Application quit on OS X In-Reply-To: References: <378B894B-6B78-4971-9139-34FD85158807@economy-x-talk.com> Message-ID: <4F19AEEE.2030604@hyperactivesw.com> On 1/20/12 11:23 AM, Pete wrote: > As far as I can tell, all Mac applications work this way. Closing the last > open window in the app and quitting it are two different activities. Even > the Livecode IDE works that way on a Mac. Apple says that if your app has only a single window and is a utility (I think, can't exact recall), the app should quit when the window is closed. System Preferences works that way. But for most of us, that doesn't apply. The fix is to open an invisible "anchor" stack, either with its vis set to false, or just placed offscreen. You don't need to do that on any OS other than Mac, because everybody else expects the app to quit when the last window is closed. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From revolution at derbrill.de Fri Jan 20 13:50:21 2012 From: revolution at derbrill.de (Malte Brill) Date: Fri, 20 Jan 2012 19:50:21 +0100 Subject: rTree author In-Reply-To: References: Message-ID: <9044D95B-F42D-44A5-B161-8DB79AA71ED4@derbrill.de> We were having a quick chat on phone 2 weeks back. But I also did not hear from Mats since. Let's hope he is just busy. All the best, Malte From bdrunrev at gmail.com Fri Jan 20 14:23:16 2012 From: bdrunrev at gmail.com (Bernard Devlin) Date: Fri, 20 Jan 2012 19:23:16 +0000 Subject: rTree author In-Reply-To: <9044D95B-F42D-44A5-B161-8DB79AA71ED4@derbrill.de> References: <9044D95B-F42D-44A5-B161-8DB79AA71ED4@derbrill.de> Message-ID: Thanks Malte. Fingers crossed. Bernard On Fri, Jan 20, 2012 at 6:50 PM, Malte Brill wrote: > We were having a quick chat on phone 2 weeks back. But I also did not hear from Mats since. Let's hope he is just busy. From martyknapp at comcast.net Fri Jan 20 14:28:24 2012 From: martyknapp at comcast.net (Marty Knapp) Date: Fri, 20 Jan 2012 11:28:24 -0800 Subject: [OT] Visual Basic programmer needed Message-ID: <4F19C058.2090501@comcast.net> I know a number of you program in languages other than LC, so thought I would post this here. I have a friend who is looking for someone to do some Visual Basic programming for some test equipment that he's building. If you're interested or know someone proficient, please contact me off list and I will get your info to my friend. Thanks, Marty Knapp From andre at andregarzia.com Fri Jan 20 14:28:24 2012 From: andre at andregarzia.com (Andre Garzia) Date: Fri, 20 Jan 2012 17:28:24 -0200 Subject: rTree author In-Reply-To: References: <9044D95B-F42D-44A5-B161-8DB79AA71ED4@derbrill.de> Message-ID: I hope the author is all right. Now, on a related topic. Anyone here has feedback on the different tree-view controls available. I have experience with the data tree but no experience with rTree and I think there are other similar controls available. Can anyone comment on their personal choice and experience? Cheers andre On Fri, Jan 20, 2012 at 5:23 PM, Bernard Devlin wrote: > Thanks Malte. Fingers crossed. > > Bernard > > On Fri, Jan 20, 2012 at 6:50 PM, Malte Brill > wrote: > > We were having a quick chat on phone 2 weeks back. But I also did not > hear from Mats since. Let's hope he is just busy. > > _______________________________________________ > use-livecode mailing list > use-livecode 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. http://fon.nu -- minimalist url shortening service. From bobs at twft.com Fri Jan 20 14:38:20 2012 From: bobs at twft.com (Bob Sneidar) Date: Fri, 20 Jan 2012 11:38:20 -0800 Subject: Printkeys() To Array Message-ID: <20FC5F6A-F3C5-492B-A00C-19CCE34A001E@twft.com> Hi all. I have been thinking practically since I first saw the printKeys() function how cool it would be to be able to take the output of the printKeys function, work with the text using things like filter and replace, and then recreate the array again. I thought it would be a real pain in the arse, but as it turns out it was really simple. I give you PKtoArray()!! on mouseUp pMouseBtnNo put "Some text" into myArray[1][firstkey] put "Some other text" into myArray[1][secondkey] put "Yet more text" into myArray[2][firstkey] put "Okay this the last of the text" into myArray[2][secondkey] put "No really this time!" into myArray[3] put "Actually I lied." into myArray[4][firstkey][theLie] put printkeys(myArray) into thePrintKeys put PKToArray(thePrintKeys) into theNewArrayA breakpoint end mouseUp function PKToArray thePrintKeys put 0 into theOldKeyCount put empty into theValue put the itemdelimiter into theOldDelim set the itemdelimiter to space repeat for each line theLine in thePrintKeys put the number of chars of theLine into count1 put word 1 to -1 of theLine into theLine put the number of chars of theLine into count2 put ((count1 - count2)) /5 +1 into theNewKeyCount if the last char of word 1 of theLine is ":" then put word 2 to -1 of theLine into theValue put char 1 to -2 of the first word of theLine into theKey else put theLine into theKey end if if theNewKeyCount >= theOldKeyCount then put "[" & theKey & "]" into item theNewKeyCount of theKeyList else put "[" & theKey & "]" into item theNewKeyCount to -1 of theKeyList end if if the last char of word 1 of theLine is ":" then put "put " & quote & theValue & quote & " into theNewArray" & theKeyList into theCommand do theCommand put empty into theValue end if put theNewKeyCount into theOldKeyCount end repeat set the itemdelimiter to theOldDelim return theNewArrayA end PKToArray Why you say? Lets say you have an array that you want to delete one key from, say in this case all the secondkey keys. You would have to loop through all the keys deleting each instance of secondkey. OR... you could use printKeys(), filter the output without "*secondkey*" and pass the result to PKToArray. Or maybe you want to change a key name? replace "secondkey" with "key2" in thePrintKeys. You get the picture. Sometimes manipulating text is WAAAAY simpler than manipulating arrays. This can help. Enjoy. Bob From pete at mollysrevenge.com Fri Jan 20 15:00:55 2012 From: pete at mollysrevenge.com (Pete) Date: Fri, 20 Jan 2012 12:00:55 -0800 Subject: Application quit on OS X In-Reply-To: <4F19AEEE.2030604@hyperactivesw.com> References: <378B894B-6B78-4971-9139-34FD85158807@economy-x-talk.com> <4F19AEEE.2030604@hyperactivesw.com> Message-ID: Thanks Jaccue. So I can't use a closeStack or shutdown message handler to control this? Pete On Fri, Jan 20, 2012 at 10:14 AM, J. Landman Gay wrote: > On 1/20/12 11:23 AM, Pete wrote: > > As far as I can tell, all Mac applications work this way. Closing the >> last >> open window in the app and quitting it are two different activities. Even >> the Livecode IDE works that way on a Mac. >> > > Apple says that if your app has only a single window and is a utility (I > think, can't exact recall), the app should quit when the window is closed. > System Preferences works that way. But for most of us, that doesn't apply. > > The fix is to open an invisible "anchor" stack, either with its vis set to > false, or just placed offscreen. You don't need to do that on any OS other > than Mac, because everybody else expects the app to quit when the last > window is closed. > > -- > 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 > > -- Pete Molly's Revenge From revolution at derbrill.de Fri Jan 20 15:06:23 2012 From: revolution at derbrill.de (Malte Brill) Date: Fri, 20 Jan 2012 21:06:23 +0100 Subject: rTree author In-Reply-To: References: Message-ID: <897DDF9E-8032-4D49-969D-63278FB79F38@derbrill.de> Hey Andre, > Can anyone comment on their personal choice and experience? I have used iMed, dataTree and rTree (and will continue using rTree). iMed had a very good API, but does not seem to be actively maintained anymore. Really good MVC model. The licensing always put me a bit off to use it for my own projects, thus I was only using that as a consultant for another company. Code was rather stable, the developer was always a bit slow to react on bugs. Huge amounts of data are a little problematic. dataTree I used in one of my projects. A solid tree for basic needs. It is not customizable enough for my taste. It does not handle huge amounts of data too well. rTree (and I must admit I am using an alpha of a future version) Well, what can I say. This thing is huge. I am not impressed easiely. But it totally blew me away. The release version is good. What is in the future of this library is big, but I promised not to say more. I am both impressed by the library and Mats as a person. He has been very responsive. He implemented things for me that make this the fastest tree I could not have written myself. I just love it. Cheers, Malte From m.schonewille at economy-x-talk.com Fri Jan 20 15:46:12 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Fri, 20 Jan 2012 21:46:12 +0100 Subject: Application quit on OS X In-Reply-To: References: <378B894B-6B78-4971-9139-34FD85158807@economy-x-talk.com> <4F19AEEE.2030604@hyperactivesw.com> Message-ID: <6F174D21-0C42-48DF-8EC3-87AC1181A2DC@economy-x-talk.com> Hi Pete, I think I already explained that you can use the closeStackRequest message. There's also the shutdownRequest message. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 20 jan 2012, at 21:00, Pete wrote: > Thanks Jaccue. So I can't use a closeStack or shutdown message handler to > control this? > Pete > > On Fri, Jan 20, 2012 at 10:14 AM, J. Landman Gay > wrote: > >> On 1/20/12 11:23 AM, Pete wrote: >> >> As far as I can tell, all Mac applications work this way. Closing the >>> last >>> open window in the app and quitting it are two different activities. Even >>> the Livecode IDE works that way on a Mac. >>> >> >> Apple says that if your app has only a single window and is a utility (I >> think, can't exact recall), the app should quit when the window is closed. >> System Preferences works that way. But for most of us, that doesn't apply. >> >> The fix is to open an invisible "anchor" stack, either with its vis set to >> false, or just placed offscreen. You don't need to do that on any OS other >> than Mac, because everybody else expects the app to quit when the last >> window is closed. >> >> -- >> 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 >> >> > > > -- > 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 jacque at hyperactivesw.com Fri Jan 20 15:52:27 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 20 Jan 2012 14:52:27 -0600 Subject: Application quit on OS X In-Reply-To: References: <378B894B-6B78-4971-9139-34FD85158807@economy-x-talk.com> <4F19AEEE.2030604@hyperactivesw.com> Message-ID: <4F19D40B.7090602@hyperactivesw.com> On 1/20/12 2:00 PM, Pete wrote: > Thanks Jaccue. So I can't use a closeStack or shutdown message handler to > control this? > Pete Old habits die hard so I've always used the dummy stack method. But now that you mention it, yes, I think you could trap the closeStackRequest message. That would be easier and smarter too. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From mike at doub.com Fri Jan 20 16:19:54 2012 From: mike at doub.com (Michael Doub) Date: Fri, 20 Jan 2012 16:19:54 -0500 Subject: Printkeys() To Array In-Reply-To: <20FC5F6A-F3C5-492B-A00C-19CCE34A001E@twft.com> References: <20FC5F6A-F3C5-492B-A00C-19CCE34A001E@twft.com> Message-ID: <68BAA209-65B8-4E80-88CA-46BD391B1429@doub.com> Bob, what is the printKeys function? I am not finding it in the dictionary. Is it some library? I like the concept that you are describing it could be useful. -= Mike On 2012-01-20, at 2:38 PM, Bob Sneidar wrote: > printKeys From bobs at twft.com Fri Jan 20 16:36:01 2012 From: bobs at twft.com (Bob Sneidar) Date: Fri, 20 Jan 2012 13:36:01 -0800 Subject: Printkeys() To Array In-Reply-To: <68BAA209-65B8-4E80-88CA-46BD391B1429@doub.com> References: <20FC5F6A-F3C5-492B-A00C-19CCE34A001E@twft.com> <68BAA209-65B8-4E80-88CA-46BD391B1429@doub.com> Message-ID: <9F047C6D-ED4A-463F-A4F7-5EB4C17425B0@twft.com> printKeys() is a function included with sqlYoga, but Trevor was kind enough to make it public domain. It converts an array to text in the format: firstkey secondkey thirdkey: This is the actual data fourthkey: This is some more data Bob On Jan 20, 2012, at 1:19 PM, Michael Doub wrote: > Bob, what is the printKeys function? I am not finding it in the dictionary. Is it some library? > > I like the concept that you are describing it could be useful. > > > -= Mike > > > > > On 2012-01-20, at 2:38 PM, Bob Sneidar wrote: > >> printKeys > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jan 20 16:37:57 2012 From: bobs at twft.com (Bob Sneidar) Date: Fri, 20 Jan 2012 13:37:57 -0800 Subject: Printkeys() To Array Message-ID: I have an update. I didn't account for the fact that keys can be multiple words. This updated function should do the trick. function PKToArray thePrintKeys put 0 into theOldKeyCount put empty into theValue put the itemdelimiter into theOldDelim set the itemdelimiter to space repeat for each line theLine in thePrintKeys put the number of chars of theLine into count1 put word 1 to -1 of theLine into theLine put the number of chars of theLine into count2 put ((count1 - count2)) /5 +1 into theNewKeyCount put offset(":", theLine) into theChar if theChar <> 0 then put char theChar +2 to -1 of theLine into theValue put char 1 to theChar -1 of theLine into theKey else put theLine into theKey end if if theNewKeyCount >= theOldKeyCount then put "[" & theKey & "]" into item theNewKeyCount of theKeyList else put "[" & theKey & "]" into item theNewKeyCount to -1 of theKeyList end if if theChar <> 0 then put "put " & quote & theValue & quote & " into theNewArray" & theKeyList into theCommand do theCommand put empty into theValue end if put theNewKeyCount into theOldKeyCount end repeat set the itemdelimiter to theOldDelim return theNewArrayA end PKToArray From bobs at twft.com Fri Jan 20 16:43:19 2012 From: bobs at twft.com (Bob Sneidar) Date: Fri, 20 Jan 2012 13:43:19 -0800 Subject: Printkeys() To Array Message-ID: <4DA992EE-4B2D-45F9-96BE-72A49C3EB965@twft.com> Note to self: ALWAYS debug first. THIS will work. > I have an update. I didn't account for the fact that keys can be multiple words. This updated function should do the trick. function PKToArray thePrintKeys put 0 into theOldKeyCount put empty into theValue put the itemdelimiter into theOldDelim set the itemdelimiter to space repeat for each line theLine in thePrintKeys put the number of chars of theLine into count1 put word 1 to -1 of theLine into theLine put the number of chars of theLine into count2 put ((count1 - count2)) /5 +1 into theNewKeyCount put offset(":", theLine) into theChar if theChar <> 0 then put char theChar +2 to -1 of theLine into theValue put char 1 to theChar -1 of theLine into theKey else put theLine into theKey end if if theNewKeyCount >= theOldKeyCount then put "[" & theKey & "]" into item theNewKeyCount of theKeyList else put "[" & theKey & "]" into item theNewKeyCount to -1 of theKeyList end if if theChar <> 0 then put "put " & quote & theValue & quote & " into theNewArray" & theKeyList into theCommand do theCommand put empty into theValue end if put theNewKeyCount into theOldKeyCount end repeat set the itemdelimiter to theOldDelim return theNewArray end PKToArray From pete at mollysrevenge.com Fri Jan 20 17:00:05 2012 From: pete at mollysrevenge.com (Pete) Date: Fri, 20 Jan 2012 14:00:05 -0800 Subject: Application quit on OS X In-Reply-To: <4F19D40B.7090602@hyperactivesw.com> References: <378B894B-6B78-4971-9139-34FD85158807@economy-x-talk.com> <4F19AEEE.2030604@hyperactivesw.com> <4F19D40B.7090602@hyperactivesw.com> Message-ID: OK, thanks Mark and Jacque. It sounds like the shutdownRequest message will do the job - if I don't pass it, the application should stay open. I'll have to figure out how to deal with the user selecting Quit from the Application menu, or the user shutting down their computer since I really do need to quit then. Plus there are some cryptic comments in the dictionary about "some care required" to implement this correctly by installing a library or backscript. This just seems overly complicated to deal with a pretty standard way of working for OS X applications. Pete On Fri, Jan 20, 2012 at 12:52 PM, J. Landman Gay wrote: > On 1/20/12 2:00 PM, Pete wrote: > >> Thanks Jaccue. So I can't use a closeStack or shutdown message handler to >> control this? >> Pete >> > > Old habits die hard so I've always used the dummy stack method. But now > that you mention it, yes, I think you could trap the closeStackRequest > message. That would be easier and smarter too. > > > -- > 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 > > -- Pete Molly's Revenge From scott at tactilemedia.com Fri Jan 20 18:04:25 2012 From: scott at tactilemedia.com (Scott Rossi) Date: Fri, 20 Jan 2012 15:04:25 -0800 Subject: Retrieve irev Value in Javascript? Message-ID: Does anyone have a simple example of using Javascript to pull a value from an irev script? ?I've been able to get irev implementations to work using iframes and simple functions, but retrieving a value with Javascript has been elusive. Thanks & Regards, Scott Rossi Creative Director Tactile Media, UX Design From mike at doub.com Fri Jan 20 18:10:29 2012 From: mike at doub.com (Michael Doub) Date: Fri, 20 Jan 2012 18:10:29 -0500 Subject: Printkeys() To Array In-Reply-To: <9F047C6D-ED4A-463F-A4F7-5EB4C17425B0@twft.com> References: <20FC5F6A-F3C5-492B-A00C-19CCE34A001E@twft.com> <68BAA209-65B8-4E80-88CA-46BD391B1429@doub.com> <9F047C6D-ED4A-463F-A4F7-5EB4C17425B0@twft.com> Message-ID: <0840FB56-9540-4F4C-95D3-313A97C3E229@doub.com> How does one get it? On 2012-01-20, at 4:36 PM, Bob Sneidar wrote: > printKeys() is a function included with sqlYoga, but Trevor was kind enough to make it public domain. It converts an array to text in the format: > > firstkey > secondkey > thirdkey: This is the actual data > fourthkey: This is some more data > > Bob > > > On Jan 20, 2012, at 1:19 PM, Michael Doub wrote: > >> Bob, what is the printKeys function? I am not finding it in the dictionary. Is it some library? >> >> I like the concept that you are describing it could be useful. >> >> >> -= Mike >> >> >> >> >> On 2012-01-20, at 2:38 PM, Bob Sneidar wrote: >> >>> printKeys >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Fri Jan 20 19:08:04 2012 From: ray at linkit.com (Ray Horsley) Date: Fri, 20 Jan 2012 18:08:04 -0600 Subject: Help with API Methods In-Reply-To: <0840FB56-9540-4F4C-95D3-313A97C3E229@doub.com> References: <20FC5F6A-F3C5-492B-A00C-19CCE34A001E@twft.com> <68BAA209-65B8-4E80-88CA-46BD391B1429@doub.com> <9F047C6D-ED4A-463F-A4F7-5EB4C17425B0@twft.com> <0840FB56-9540-4F4C-95D3-313A97C3E229@doub.com> Message-ID: <2B42E865-43EF-469F-AC90-7B3F5F2FA87F@LinkIt.Com> Greetings, I need some help to become fluent in maintaining and writing API methods in C# which will access data in a Microsoft Sequel Server standard edition database. I'm working in Visual Studio 2010. I envision working with somebody fluent in these areas via Webex sessions for about an hour a day for at least a month at which time our work could go in any number of different directions. Anybody interested/available? Ray Horsley LinkIt! Software 1-877-546-5484 ext. 1226 From pete at mollysrevenge.com Fri Jan 20 18:24:16 2012 From: pete at mollysrevenge.com (Pete) Date: Fri, 20 Jan 2012 15:24:16 -0800 Subject: Printkeys() To Array In-Reply-To: <0840FB56-9540-4F4C-95D3-313A97C3E229@doub.com> References: <20FC5F6A-F3C5-492B-A00C-19CCE34A001E@twft.com> <68BAA209-65B8-4E80-88CA-46BD391B1429@doub.com> <9F047C6D-ED4A-463F-A4F7-5EB4C17425B0@twft.com> <0840FB56-9540-4F4C-95D3-313A97C3E229@doub.com> Message-ID: It's part of the datagrid library so everyone has it, not just SQLYoga customers. Pete On Fri, Jan 20, 2012 at 3:10 PM, Michael Doub wrote: > How does one get it? > > > On 2012-01-20, at 4:36 PM, Bob Sneidar wrote: > > > printKeys() is a function included with sqlYoga, but Trevor was kind > enough to make it public domain. It converts an array to text in the format: > > > > firstkey > > secondkey > > thirdkey: This is the actual data > > fourthkey: This is some more data > > > > Bob > > > > > > On Jan 20, 2012, at 1:19 PM, Michael Doub wrote: > > > >> Bob, what is the printKeys function? I am not finding it in the > dictionary. Is it some library? > >> > >> I like the concept that you are describing it could be useful. > >> > >> > >> -= Mike > >> > >> > >> > >> > >> On 2012-01-20, at 2:38 PM, Bob Sneidar wrote: > >> > >>> printKeys > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode 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 > > -- Pete Molly's Revenge From bobs at twft.com Fri Jan 20 18:44:36 2012 From: bobs at twft.com (Bob Sneidar) Date: Fri, 20 Jan 2012 15:44:36 -0800 Subject: Printkeys() To Array In-Reply-To: References: <20FC5F6A-F3C5-492B-A00C-19CCE34A001E@twft.com> <68BAA209-65B8-4E80-88CA-46BD391B1429@doub.com> <9F047C6D-ED4A-463F-A4F7-5EB4C17425B0@twft.com> <0840FB56-9540-4F4C-95D3-313A97C3E229@doub.com> Message-ID: <4D1D13A7-A441-4AB3-8EDD-12FE228B34F5@twft.com> Whoops my bad. You can always test it: put "This is a test" into myArray[1];put printKeys(myArray) Bob On Jan 20, 2012, at 3:24 PM, Pete wrote: > It's part of the datagrid library so everyone has it, not just SQLYoga > customers. > Pete > > On Fri, Jan 20, 2012 at 3:10 PM, Michael Doub wrote: > >> How does one get it? >> >> >> On 2012-01-20, at 4:36 PM, Bob Sneidar wrote: >> >>> printKeys() is a function included with sqlYoga, but Trevor was kind >> enough to make it public domain. It converts an array to text in the format: >>> >>> firstkey >>> secondkey >>> thirdkey: This is the actual data >>> fourthkey: This is some more data >>> >>> Bob >>> >>> >>> On Jan 20, 2012, at 1:19 PM, Michael Doub wrote: >>> >>>> Bob, what is the printKeys function? I am not finding it in the >> dictionary. Is it some library? >>>> >>>> I like the concept that you are describing it could be useful. >>>> >>>> >>>> -= Mike >>>> >>>> >>>> >>>> >>>> On 2012-01-20, at 2:38 PM, Bob Sneidar wrote: >>>> >>>>> printKeys >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode 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 >> >> > > > -- > 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 pete at mollysrevenge.com Fri Jan 20 21:44:50 2012 From: pete at mollysrevenge.com (Pete) Date: Fri, 20 Jan 2012 18:44:50 -0800 Subject: Printkeys() To Array In-Reply-To: <20FC5F6A-F3C5-492B-A00C-19CCE34A001E@twft.com> References: <20FC5F6A-F3C5-492B-A00C-19CCE34A001E@twft.com> Message-ID: Hi Bob, I might be misunderstanding your example below but you can delete a key from an array along with all its subkeys with "delete theArray[thekey]". Is that what you meant? On Fri, Jan 20, 2012 at 11:38 AM, Bob Sneidar wrote: > Why you say? Lets say you have an array that you want to delete one key > from, say in this case all the secondkey keys. You would have to loop > through all the keys deleting each instance of secondkey. -- Pete Molly's Revenge From bobs at twft.com Fri Jan 20 22:20:19 2012 From: bobs at twft.com (Bob Sneidar) Date: Fri, 20 Jan 2012 19:20:19 -0800 Subject: Printkeys() To Array In-Reply-To: References: <20FC5F6A-F3C5-492B-A00C-19CCE34A001E@twft.com> Message-ID: Yes you can. But imagine an array with 10,000 keys. Wouldn't it be nice to be able to delete all the subkeys named "myKey" in that array with just one command? (ok 3 to be honest) Or how about renaming all of a certain key or subkey? I have yet to find a command for that. Those are just two examples of how this could be useful. What if all I cared about in an array were all the keys named "emailaddress" but I wanted to put them into their own array? Once it's all in text form I can use filter on it, but then it's not an array anymore. Another way to use it is this: Say you had a numbered array, but the thing you were handing the array off to only cared about the elements at the second level and beyond. You could probably come up with a regex to eliminate all the lines beginning with a number, then convert your string data back to an array again. I ran into that with sqlYoga. Some data types use numbered arrays where others don't. Ever tried to combine two arrays? Add one array to the other? How about subtract one array from another? Convert both using printKeys(), do your string magic, then convert it back to an array again. Sure you could write repeat loops to do all that, but this makes it simple and clean. The drawback of course is that your array cannot contain anything but values. No graphics, sounds etc. I could be over-thinking things again because of too much coffee, but I'm drinking beer now and the idea still seems cool to me. ;-) Bob On Jan 20, 2012, at 6:44 PM, Pete wrote: > Hi Bob, > I might be misunderstanding your example below but you can delete a key > from an array along with all its subkeys with "delete theArray[thekey]". > Is that what you meant? > > On Fri, Jan 20, 2012 at 11:38 AM, Bob Sneidar wrote: > >> Why you say? Lets say you have an array that you want to delete one key >> from, say in this case all the secondkey keys. You would have to loop >> through all the keys deleting each instance of secondkey. > > > > > -- > 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 jacque at hyperactivesw.com Fri Jan 20 22:39:11 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 20 Jan 2012 21:39:11 -0600 Subject: Application quit on OS X In-Reply-To: References: <378B894B-6B78-4971-9139-34FD85158807@economy-x-talk.com> <4F19AEEE.2030604@hyperactivesw.com> <4F19D40B.7090602@hyperactivesw.com> Message-ID: <4F1A335F.6090907@hyperactivesw.com> On 1/20/12 4:00 PM, Pete wrote: > OK, thanks Mark and Jacque. It sounds like the shutdownRequest message > will do the job - if I don't pass it, the application should stay open. > I'll have to figure out how to deal with the user selecting Quit from the > Application menu, or the user shutting down their computer since I really > do need to quit then. I think it would be better to use closeStackRequest. That message is only sent when the user manually clicks in the close box, so you don't need to worry about your existing scripts. The handler can check to see if the target stack is the last stack open and if the OS is Mac. If so, don't close. That way you don't need to worry about quitting from the menu or shutdown. > This just seems overly complicated to deal with a pretty standard way of > working for OS X applications. It helps to remember that it's actually the Mac that is out of synch with the rest of the world in this respect. But if you trap that one message you should be okay and it should be pretty easy. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Fri Jan 20 22:46:00 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 20 Jan 2012 21:46:00 -0600 Subject: OSX 10.7 app corruption issue In-Reply-To: <830E1A9D-173D-4CE2-B064-B93255C76C95@unimelb.edu.au> References: <830E1A9D-173D-4CE2-B064-B93255C76C95@unimelb.edu.au> Message-ID: <4F1A34F8.7040900@hyperactivesw.com> On 1/20/12 12:20 AM, Terry Judd wrote: > Right - lot's of things appear to have gone missing from the corrupted app. > > The original file/folder structure looks like this... > > Curriculum Connect.app > Contents > MacOS > revpdpprinter.bundle > Externals > revbrowser.bundle > revdb.bundle > revxml.bundle > revzip.bundle > Database_drivers > dbmysql.bundle > dbodbc.bundle > dbsqlite.bundle > Curriculum Connect (3.2 MB) > Resources (lots of stuff in here) > Info.plist > PkgInfo > > but the corrupted copy looks like this... > > Curriculum Connect.app > MacOS > Curriculum Connect (2.1 MB) > Info.plist > > Looks like a bomb has gone off in there. That's really odd. Do you have any handlers that delete files? Could there be a path issue, so that your app's files are getting removed instead of the intended ones? When your user said it ran fine in 10.6, was he running from a USB drive there too? If your scripts don't specifically account for external drives, the default folder will be the one containing your standalone inside the bundle. If you have any recursive file deletion handlers, that could be the cause. It's a long shot but it's all I can think of. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at mollysrevenge.com Sat Jan 21 00:57:35 2012 From: pete at mollysrevenge.com (Pete) Date: Fri, 20 Jan 2012 21:57:35 -0800 Subject: Application quit on OS X In-Reply-To: <4F1A335F.6090907@hyperactivesw.com> References: <378B894B-6B78-4971-9139-34FD85158807@economy-x-talk.com> <4F19AEEE.2030604@hyperactivesw.com> <4F19D40B.7090602@hyperactivesw.com> <4F1A335F.6090907@hyperactivesw.com> Message-ID: On Fri, Jan 20, 2012 at 7:39 PM, J. Landman Gay wrote: > On 1/20/12 4:00 PM, Pete wrote: > >> OK, thanks Mark and Jacque. It sounds like the shutdownRequest message >> will do the job - if I don't pass it, the application should stay open. >> I'll have to figure out how to deal with the user selecting Quit from the >> Application menu, or the user shutting down their computer since I really >> do need to quit then. >> > > I think it would be better to use closeStackRequest. That message is only > sent when the user manually clicks in the close box, so you don't need to > worry about your existing scripts. The handler can check to see if the > target stack is the last stack open and if the OS is Mac. If so, don't > close. That way you don't need to worry about quitting from the menu or > shutdown. The problem is, I want toc lose the stack but leave the application running. If I pass closeStackRequest, I believe the app will quit (Standalone) and if I don't pass it, the window will stay open, neither of which is what I need to happen. But maybe I can close the stack in the script and not pass the message and that won't quit the application, I'll try that. > > > This just seems overly complicated to deal with a pretty standard way of >> working for OS X applications. >> > > It helps to remember that it's actually the Mac that is out of synch with > the rest of the world in this respect. But if you trap that one message you > should be okay and it should be pretty easy. Well, I guess no it doesn't help to remember that :-) Doesn't really matter if the Mac is out of synch or not, Livecode's default should be what is the most common behavior for the platform whether it's out of synch or not. But that's OK, there MAY be a way round it with closeStackRequest. > > -- > 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 > > -- Pete Molly's Revenge From jacque at hyperactivesw.com Sat Jan 21 01:06:40 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 21 Jan 2012 00:06:40 -0600 Subject: Application quit on OS X In-Reply-To: References: <378B894B-6B78-4971-9139-34FD85158807@economy-x-talk.com> <4F19AEEE.2030604@hyperactivesw.com> <4F19D40B.7090602@hyperactivesw.com> <4F1A335F.6090907@hyperactivesw.com> Message-ID: <4F1A55F0.3050203@hyperactivesw.com> On 1/20/12 11:57 PM, Pete wrote: > The problem is, I want toc lose the stack but leave the application > running. If I pass closeStackRequest, I believe the app will quit > (Standalone) and if I don't pass it, the window will stay open, neither of > which is what I need to happen. But maybe I can close the stack in the > script and not pass the message and that won't quit the application, I'll > try that. Instead of closing the last window, try hiding it. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From sc at sahores-conseil.com Sat Jan 21 03:30:32 2012 From: sc at sahores-conseil.com (Pierre Sahores) Date: Sat, 21 Jan 2012 09:30:32 +0100 Subject: Retrieve irev Value in Javascript? In-Reply-To: References: Message-ID: <20F85FFF-4D7C-4149-9D0C-4497CD25546A@sahores-conseil.com> Scott, One simple way to go is to add one of the following AJAX functions to your code to let it interact as needed with the irev part of your app : 1.- without using the JQuery framework : function sendPostData(url, data) { // sans jquery ok : deb // var xhr_object = null; if (window.XMLHttpRequest) { xhr_object = new XMLHttpRequest(); } // Safari, Gecko & W3C else if (window.ActiveXObject) { xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); } // Internet Explorer >= 6 else if (window.ActiveXObject) { xhr_object = new ActiveXObject("Msxml2.XMLHTTP"); } // Internet Explorer < 6 else { alert("Votre navigateur est trop ancien pour les connexions AJAX..."); return; } // AJAX non support? if (xhr_object) { xhr_object.onreadystatechange=function() { if (xhr_object.readyState == 4) { if (xhr_object.status == 200) { eval(xhr_object.responseText); } } } } else { return false ; } xhr_object.open("POST", url, true); // true = asynchrone xhr_object.setRequestHeader('Content-Type','application/x-www-form-urlencoded'); xhr_object.send(data); return true; // sans jquery ok : fin // } 2.- in using the JQuery framework : function postCaltoWSPG(datas) { if (datas != '') { $.ajax({ type: "POST", url: 'http://www.example.com/yourscript.irev', data: 'yourpostitemname=' + datas, dataType: 'text', async: 'true', error: function() { alert('Echec du push AJAX.'); } }); } else { alert("donnees absentes !"); } } Best & Regards, Le 21 janv. 2012 ? 00:04, Scott Rossi a ?crit : > Does anyone have a simple example of using Javascript to pull a value from an irev script? I've been able to get irev implementations to work using iframes and simple functions, but retrieving a value with Javascript has been elusive. > > 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 -- Pierre Sahores mobile : 06 03 95 77 70 www.widestep.fr : la premi?re solution saas de d?veloppement s?mantique sans programmation From scott at tactilemedia.com Sat Jan 21 03:50:24 2012 From: scott at tactilemedia.com (Scott Rossi) Date: Sat, 21 Jan 2012 00:50:24 -0800 Subject: Retrieve irev Value in Javascript? In-Reply-To: <20F85FFF-4D7C-4149-9D0C-4497CD25546A@sahores-conseil.com> Message-ID: Thanks Pierre. I came across both of your scripts after posting my message, only to realize they won't work for me because my page that is calling the irev script is not located on the irev server. And apparently XMLHttpRequest doesn't work across domains. Unfortunately I have no control over the server where the my page is stored, and no access to any standard server functions. Is there something else I can try to retrieve irev script result remotely? Thanks & Regards, Scott Rossi Creative Director Tactile Media, UX Design Recently, Pierre Sahores wrote: > Scott, > > One simple way to go is to add one of the following AJAX functions to your > code to let it interact as needed with the irev part of your app : > > 1.- without using the JQuery framework : > > function sendPostData(url, data) { > // sans jquery ok : deb // > var xhr_object = null; > if (window.XMLHttpRequest) { xhr_object = new XMLHttpRequest(); } // > Safari, Gecko & W3C > else if (window.ActiveXObject) { xhr_object = new > ActiveXObject("Microsoft.XMLHTTP"); } // Internet Explorer >= 6 > else if (window.ActiveXObject) { xhr_object = new > ActiveXObject("Msxml2.XMLHTTP"); } // Internet Explorer < 6 > else { alert("Votre navigateur est trop ancien pour les connexions AJAX..."); > return; } // AJAX non support? > if (xhr_object) > { xhr_object.onreadystatechange=function() > { if (xhr_object.readyState == 4) > { if (xhr_object.status == 200) > { eval(xhr_object.responseText); } > } } } > else { return false ; } > xhr_object.open("POST", url, true); // true = asynchrone > > xhr_object.setRequestHeader('Content-Type','application/x-www-form-urlencoded' > ); > xhr_object.send(data); > return true; > // sans jquery ok : fin // > } > > 2.- in using the JQuery framework : > > function postCaltoWSPG(datas) { > if (datas != '') > { > $.ajax({ > type: "POST", url: 'http://www.example.com/yourscript.irev', data: > 'yourpostitemname=' + datas, dataType: 'text', > async: 'true', error: function() { alert('Echec du push AJAX.'); } > }); > } > else { alert("donnees absentes !"); } > } > > Best & Regards, > > Le 21 janv. 2012 ? 00:04, Scott Rossi a ?crit : > >> Does anyone have a simple example of using Javascript to pull a value from an >> irev script? I've been able to get irev implementations to work using >> iframes and simple functions, but retrieving a value with Javascript has been >> elusive. >> >> 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 > > -- > Pierre Sahores > mobile : 06 03 95 77 70 > www.widestep.fr : la premi?re solution saas de d?veloppement s?mantique sans > programmation > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From sc at sahores-conseil.com Sat Jan 21 06:41:34 2012 From: sc at sahores-conseil.com (Pierre Sahores) Date: Sat, 21 Jan 2012 12:41:34 +0100 Subject: Retrieve irev Value in Javascript? In-Reply-To: References: Message-ID: <7E1031C6-ECBF-4947-800D-7F72016BBA2C@sahores-conseil.com> Le 21 janv. 2012 ? 09:50, Scott Rossi a ?crit : > > I came across both of your scripts after posting my message, only to realize > they won't work for me because my page that is calling the irev script is > not located on the irev server. And apparently XMLHttpRequest doesn't work > across domains. Unwanted at least and set so by web security guys > > Unfortunately I have no control over the server where the my page is stored, > and no access to any standard server functions. Is there something else I > can try to retrieve irev script result remotely? Sounds not clear to me Server A Server B How are dispatched the files involved in the process ? Is your project related to a revPlugin app ? XMLHTTPRequest, cookies, REST GET on hidden form data are the choices we can compose with to exchange vars values in between lc/irev and js. It must be a way to go in your case too... > > Thanks & Regards, > > Scott Rossi > Creative Director > Tactile Media, UX Design -- Pierre Sahores mobile : 06 03 95 77 70 www.widestep.fr : la premi?re solution saas de d?veloppement s?mantique sans programmation From richmondmathewson at gmail.com Sat Jan 21 07:53:20 2012 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 21 Jan 2012 14:53:20 +0200 Subject: Opening a Supercard file in Livecode? Message-ID: <4F1AB540.6000508@gmail.com> Does anybody know whether this is possible? From peterwawood at gmail.com Sat Jan 21 09:31:41 2012 From: peterwawood at gmail.com (Peter W A Wood) Date: Sat, 21 Jan 2012 22:31:41 +0800 Subject: Retrieve irev Value in Javascript? In-Reply-To: References: Message-ID: Scott I believe one way around the "same-origin" issue is to return a valid JavaScript script (basically date in JSON format) and dynamically generated a script tag for it. This is known as JSON-P. Most of the JavaScript frameworks have JSON-P support. JQuery seems to be the most popular ( http://api.jquery.com/jQuery.getJSON/ ). This dojo tutorial may be more help to get you started though ( http://dojotoolkit.org/documentation/tutorials/1.7/jsonp/ ). Hope this helps. Peter On 21 Jan 2012, at 16:50, Scott Rossi wrote: > Thanks Pierre. > > I came across both of your scripts after posting my message, only to realize > they won't work for me because my page that is calling the irev script is > not located on the irev server. And apparently XMLHttpRequest doesn't work > across domains. > > Unfortunately I have no control over the server where the my page is stored, > and no access to any standard server functions. Is there something else I > can try to retrieve irev script result remotely? > > Thanks & Regards, > > Scott Rossi > Creative Director > Tactile Media, UX Design > > > > Recently, Pierre Sahores wrote: > >> Scott, >> >> One simple way to go is to add one of the following AJAX functions to your >> code to let it interact as needed with the irev part of your app : >> >> 1.- without using the JQuery framework : >> >> function sendPostData(url, data) { >> // sans jquery ok : deb // >> var xhr_object = null; >> if (window.XMLHttpRequest) { xhr_object = new XMLHttpRequest(); } // >> Safari, Gecko & W3C >> else if (window.ActiveXObject) { xhr_object = new >> ActiveXObject("Microsoft.XMLHTTP"); } // Internet Explorer >= 6 >> else if (window.ActiveXObject) { xhr_object = new >> ActiveXObject("Msxml2.XMLHTTP"); } // Internet Explorer < 6 >> else { alert("Votre navigateur est trop ancien pour les connexions AJAX..."); >> return; } // AJAX non support? >> if (xhr_object) >> { xhr_object.onreadystatechange=function() >> { if (xhr_object.readyState == 4) >> { if (xhr_object.status == 200) >> { eval(xhr_object.responseText); } >> } } } >> else { return false ; } >> xhr_object.open("POST", url, true); // true = asynchrone >> >> xhr_object.setRequestHeader('Content-Type','application/x-www-form-urlencoded' >> ); >> xhr_object.send(data); >> return true; >> // sans jquery ok : fin // >> } >> >> 2.- in using the JQuery framework : >> >> function postCaltoWSPG(datas) { >> if (datas != '') >> { >> $.ajax({ >> type: "POST", url: 'http://www.example.com/yourscript.irev', data: >> 'yourpostitemname=' + datas, dataType: 'text', >> async: 'true', error: function() { alert('Echec du push AJAX.'); } >> }); >> } >> else { alert("donnees absentes !"); } >> } >> >> Best & Regards, >> >> Le 21 janv. 2012 ? 00:04, Scott Rossi a ?crit : >> >>> Does anyone have a simple example of using Javascript to pull a value from an >>> irev script? I've been able to get irev implementations to work using >>> iframes and simple functions, but retrieving a value with Javascript has been >>> elusive. >>> >>> 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 >> >> -- >> Pierre Sahores >> mobile : 06 03 95 77 70 >> www.widestep.fr : la premi?re solution saas de d?veloppement s?mantique sans >> programmation >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Sat Jan 21 12:17:54 2012 From: pete at mollysrevenge.com (Pete) Date: Sat, 21 Jan 2012 09:17:54 -0800 Subject: Application quit on OS X In-Reply-To: <4F1A55F0.3050203@hyperactivesw.com> References: <378B894B-6B78-4971-9139-34FD85158807@economy-x-talk.com> <4F19AEEE.2030604@hyperactivesw.com> <4F19D40B.7090602@hyperactivesw.com> <4F1A335F.6090907@hyperactivesw.com> <4F1A55F0.3050203@hyperactivesw.com> Message-ID: Good idea, thanks Jacque. On Fri, Jan 20, 2012 at 10:06 PM, J. Landman Gay wrote: > On 1/20/12 11:57 PM, Pete wrote: > > The problem is, I want toc lose the stack but leave the application >> running. If I pass closeStackRequest, I believe the app will quit >> (Standalone) and if I don't pass it, the window will stay open, neither of >> which is what I need to happen. But maybe I can close the stack in the >> script and not pass the message and that won't quit the application, I'll >> try that. >> > > Instead of closing the last window, try hiding 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 > > -- Pete Molly's Revenge From pete at mollysrevenge.com Sat Jan 21 12:43:41 2012 From: pete at mollysrevenge.com (Pete) Date: Sat, 21 Jan 2012 09:43:41 -0800 Subject: Windows Special Folders Message-ID: The link in the dictionary to a web page that explains CSIDLs is broken. Can anyone point me to a source for this info? I'm interested in general but specifically I'm wondering what the Windows convention is for files that on a Mac would go in either ~/Library/Application Support and ~/Library/Preferences. Thanks, -- Pete Molly's Revenge From jacque at hyperactivesw.com Sat Jan 21 13:11:31 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 21 Jan 2012 12:11:31 -0600 Subject: Opening a Supercard file in Livecode? In-Reply-To: <4F1AB540.6000508@gmail.com> References: <4F1AB540.6000508@gmail.com> Message-ID: <4F1AFFD3.4050905@hyperactivesw.com> On 1/21/12 6:53 AM, Richmond wrote: > Does anybody know whether this is possible? No, not possible. You could export the scripts in SC, rebuild the stack in LiveCode, and paste the scripts into the new stack. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at mollysrevenge.com Sat Jan 21 14:24:18 2012 From: pete at mollysrevenge.com (Pete) Date: Sat, 21 Jan 2012 11:24:18 -0800 Subject: Almost there! Message-ID: Hi Jacque, I think I have everything working fine with Zygodact but things are not quite right if the user buys the product before the demo has expired so lookin g for your guidance on that. Right now, I only call zygodact if the demo has expired. I also provide a way for the user to bring up the register stack directly to enter a license code. That means even after a valid license code has been entered, the software will still think it's in demo mode, will announce itself as such and won't call zygodact until the demo period has expired. I can see tow possible ways around this. First one is to always call zygodact. I've customised the register stack to announce that the product is running in demo mode (plus the number of days remaining) or in licensed mode, and also a link to buy the product so that has the advantage of nagging the user to buy it every time they run it. But I'd need a button in the register stack to allow the user to continue in demo mode and I have the impression it's not possible to get out of the register stack unless you enter either a valid license code or quit. Is that correct? The other way is to check for the presence of the zygodact preferences stack and call zygodact if it is present before the demo expiration check is done. Sounds like this is probably the way to go but thought I would check with you since I'm sure this must have come up before. One other thing I'm not 100% sure of is the note in the docs about the Standalone preference to select inclusions manually. I see that option but I don;t see any way to select an inclusion other than the standard LC libraries. Am I missing something? Thanks Jacque, -- Pete Molly's Revenge From matthias_livecode_150811 at m-r-d.de Sat Jan 21 14:24:49 2012 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Sat, 21 Jan 2012 20:24:49 +0100 Subject: Windows Special Folders In-Reply-To: References: Message-ID: <7E4BCD7E-9216-4BAE-AAC1-5731DBE9FDC3@m-r-d.de> Pete, the link in the dictionary works for me http://vbnet.mvps.org/index.html?code/browse/csidlversions.htm Regards, Matthias Am 21.01.2012 um 18:43 schrieb Pete: > The link in the dictionary to a web page that explains CSIDLs is broken. > Can anyone point me to a source for this info? > > I'm interested in general but specifically I'm wondering what the Windows > convention is for files that on a Mac would go in either > ~/Library/Application Support and ~/Library/Preferences. > > Thanks, > -- > 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 pete at mollysrevenge.com Sat Jan 21 14:50:00 2012 From: pete at mollysrevenge.com (Pete) Date: Sat, 21 Jan 2012 11:50:00 -0800 Subject: Windows Special Folders In-Reply-To: <7E4BCD7E-9216-4BAE-AAC1-5731DBE9FDC3@m-r-d.de> References: <7E4BCD7E-9216-4BAE-AAC1-5731DBE9FDC3@m-r-d.de> Message-ID: Thanks Matthias, that link does seem to work, must have copy/pasted wrong. Am I right in choosing the APPDATA (0x001A) folder as the place to store Preferences files? Pete On Sat, Jan 21, 2012 at 11:24 AM, Matthias Rebbe < matthias_livecode_150811 at m-r-d.de> wrote: > Pete, > > the link in the dictionary works for me > > http://vbnet.mvps.org/index.html?code/browse/csidlversions.htm > > Regards, > > Matthias > > > Am 21.01.2012 um 18:43 schrieb Pete: > > > The link in the dictionary to a web page that explains CSIDLs is broken. > > Can anyone point me to a source for this info? > > > > I'm interested in general but specifically I'm wondering what the Windows > > convention is for files that on a Mac would go in either > > ~/Library/Application Support and ~/Library/Preferences. > > > > Thanks, > > -- > > 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 sc at sahores-conseil.com Sat Jan 21 14:50:32 2012 From: sc at sahores-conseil.com (Pierre Sahores) Date: Sat, 21 Jan 2012 20:50:32 +0100 Subject: Retrieve irev Value in Javascript? In-Reply-To: References: Message-ID: <480D0D3E-44CB-4477-ADA4-1EF64F102B71@sahores-conseil.com> In case of JSON, we have to remember the swiss-made Mark Smith libJson 1.0.1b contribution. In memory... Thanks to him Pierre Le 21 janv. 2012 ? 15:31, Peter W A Wood a ?crit : > Scott > > I believe one way around the "same-origin" issue is to return a valid JavaScript script (basically date in JSON format) and dynamically generated a script tag for it. This is known as JSON-P. > > Most of the JavaScript frameworks have JSON-P support. JQuery seems to be the most popular ( http://api.jquery.com/jQuery.getJSON/ ). This dojo tutorial may be more help to get you started though ( http://dojotoolkit.org/documentation/tutorials/1.7/jsonp/ ). > > Hope this helps. > > Peter > > > On 21 Jan 2012, at 16:50, Scott Rossi wrote: > >> Thanks Pierre. >> >> I came across both of your scripts after posting my message, only to realize >> they won't work for me because my page that is calling the irev script is >> not located on the irev server. And apparently XMLHttpRequest doesn't work >> across domains. >> >> Unfortunately I have no control over the server where the my page is stored, >> and no access to any standard server functions. Is there something else I >> can try to retrieve irev script result remotely? >> >> Thanks & Regards, >> >> Scott Rossi >> Creative Director >> Tactile Media, UX Design >> >> >> >> Recently, Pierre Sahores wrote: >> >>> Scott, >>> >>> One simple way to go is to add one of the following AJAX functions to your >>> code to let it interact as needed with the irev part of your app : >>> >>> 1.- without using the JQuery framework : >>> >>> function sendPostData(url, data) { >>> // sans jquery ok : deb // >>> var xhr_object = null; >>> if (window.XMLHttpRequest) { xhr_object = new XMLHttpRequest(); } // >>> Safari, Gecko & W3C >>> else if (window.ActiveXObject) { xhr_object = new >>> ActiveXObject("Microsoft.XMLHTTP"); } // Internet Explorer >= 6 >>> else if (window.ActiveXObject) { xhr_object = new >>> ActiveXObject("Msxml2.XMLHTTP"); } // Internet Explorer < 6 >>> else { alert("Votre navigateur est trop ancien pour les connexions AJAX..."); >>> return; } // AJAX non support? >>> if (xhr_object) >>> { xhr_object.onreadystatechange=function() >>> { if (xhr_object.readyState == 4) >>> { if (xhr_object.status == 200) >>> { eval(xhr_object.responseText); } >>> } } } >>> else { return false ; } >>> xhr_object.open("POST", url, true); // true = asynchrone >>> >>> xhr_object.setRequestHeader('Content-Type','application/x-www-form-urlencoded' >>> ); >>> xhr_object.send(data); >>> return true; >>> // sans jquery ok : fin // >>> } >>> >>> 2.- in using the JQuery framework : >>> >>> function postCaltoWSPG(datas) { >>> if (datas != '') >>> { >>> $.ajax({ >>> type: "POST", url: 'http://www.example.com/yourscript.irev', data: >>> 'yourpostitemname=' + datas, dataType: 'text', >>> async: 'true', error: function() { alert('Echec du push AJAX.'); } >>> }); >>> } >>> else { alert("donnees absentes !"); } >>> } >>> >>> Best & Regards, >>> >>> Le 21 janv. 2012 ? 00:04, Scott Rossi a ?crit : >>> >>>> Does anyone have a simple example of using Javascript to pull a value from an >>>> irev script? I've been able to get irev implementations to work using >>>> iframes and simple functions, but retrieving a value with Javascript has been >>>> elusive. >>>> >>>> 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 >>> >>> -- >>> Pierre Sahores >>> mobile : 06 03 95 77 70 >>> www.widestep.fr : la premi?re solution saas de d?veloppement s?mantique sans >>> programmation >>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 -- Pierre Sahores mobile : 06 03 95 77 70 www.widestep.fr : la premi?re solution saas de d?veloppement s?mantique sans programmation From richmondmathewson at gmail.com Sat Jan 21 15:11:30 2012 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 21 Jan 2012 22:11:30 +0200 Subject: Constrained grab Message-ID: <4F1B1BF2.5090701@gmail.com> I have a "blob" that contains this script: on mouseDown grab me end mouseDown so I can move the "blob" around . . . HOWEVER I want to somehow constrain the GRAB so that I can only drag the "blob" laterally. [Don't blame me; blame George Brackett . . . ] Richmond. From matthias_livecode_150811 at m-r-d.de Sat Jan 21 15:11:23 2012 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Sat, 21 Jan 2012 21:11:23 +0100 Subject: Windows Special Folders In-Reply-To: References: <7E4BCD7E-9216-4BAE-AAC1-5731DBE9FDC3@m-r-d.de> Message-ID: Yes APPDATA\{DeveloperName\AppName is the place where to store application settings. Am 21.01.2012 um 20:50 schrieb Pete: > Thanks Matthias, that link does seem to work, must have copy/pasted wrong. > > Am I right in choosing the APPDATA (0x001A) folder as the place to store > Preferences files? > > Pete > > On Sat, Jan 21, 2012 at 11:24 AM, Matthias Rebbe < > matthias_livecode_150811 at m-r-d.de> wrote: > >> Pete, >> >> the link in the dictionary works for me >> >> http://vbnet.mvps.org/index.html?code/browse/csidlversions.htm >> >> Regards, >> >> Matthias >> >> >> Am 21.01.2012 um 18:43 schrieb Pete: >> >>> The link in the dictionary to a web page that explains CSIDLs is broken. >>> Can anyone point me to a source for this info? >>> >>> I'm interested in general but specifically I'm wondering what the Windows >>> convention is for files that on a Mac would go in either >>> ~/Library/Application Support and ~/Library/Preferences. >>> >>> Thanks, >>> -- >>> 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 >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 bobs at twft.com Sat Jan 21 15:25:21 2012 From: bobs at twft.com (Bob Sneidar) Date: Sat, 21 Jan 2012 12:25:21 -0800 Subject: Opening a Supercard file in Livecode? In-Reply-To: <4F1AFFD3.4050905@hyperactivesw.com> References: <4F1AB540.6000508@gmail.com> <4F1AFFD3.4050905@hyperactivesw.com> Message-ID: This is a great example of the application of reducing a stack to a text file which defines a stack, which has been discussed in this forum before. Trouble is, there isn't a huge demand for it. Bob Sneidar IT Manager Calvary Chapel CM Sent from iPhone On Jan 21, 2012, at 10:11, "J. Landman Gay" wrote: > On 1/21/12 6:53 AM, Richmond wrote: >> Does anybody know whether this is possible? > > No, not possible. You could export the scripts in SC, rebuild the stack in LiveCode, and paste the scripts into the new 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 pete at mollysrevenge.com Sat Jan 21 15:29:22 2012 From: pete at mollysrevenge.com (Pete) Date: Sat, 21 Jan 2012 12:29:22 -0800 Subject: Windows Special Folders In-Reply-To: References: <7E4BCD7E-9216-4BAE-AAC1-5731DBE9FDC3@m-r-d.de> Message-ID: Thanks. On Sat, Jan 21, 2012 at 12:11 PM, Matthias Rebbe < matthias_livecode_150811 at m-r-d.de> wrote: > Yes APPDATA\{DeveloperName\AppName is the place where to store > application settings. > > > Am 21.01.2012 um 20:50 schrieb Pete: > > > Thanks Matthias, that link does seem to work, must have copy/pasted > wrong. > > > > Am I right in choosing the APPDATA (0x001A) folder as the place to store > > Preferences files? > > > > Pete > > > > On Sat, Jan 21, 2012 at 11:24 AM, Matthias Rebbe < > > matthias_livecode_150811 at m-r-d.de> wrote: > > > >> Pete, > >> > >> the link in the dictionary works for me > >> > >> http://vbnet.mvps.org/index.html?code/browse/csidlversions.htm > >> > >> Regards, > >> > >> Matthias > >> > >> > >> Am 21.01.2012 um 18:43 schrieb Pete: > >> > >>> The link in the dictionary to a web page that explains CSIDLs is > broken. > >>> Can anyone point me to a source for this info? > >>> > >>> I'm interested in general but specifically I'm wondering what the > Windows > >>> convention is for files that on a Mac would go in either > >>> ~/Library/Application Support and ~/Library/Preferences. > >>> > >>> Thanks, > >>> -- > >>> 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 > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 bobs at twft.com Sat Jan 21 15:30:20 2012 From: bobs at twft.com (Bob Sneidar) Date: Sat, 21 Jan 2012 12:30:20 -0800 Subject: Constrained grab In-Reply-To: <4F1B1BF2.5090701@gmail.com> References: <4F1B1BF2.5090701@gmail.com> Message-ID: Richmond has been imbibing again... Bob Sneidar IT Manager Calvary Chapel CM Sent from iPhone On Jan 21, 2012, at 12:11, Richmond wrote: > I have a "blob" that contains this script: > > on mouseDown > grab me > end mouseDown > > so I can move the "blob" around . . . > > HOWEVER I want to somehow constrain the GRAB so that I can only drag the "blob" laterally. > > [Don't blame me; blame George Brackett . . . ] > > 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 jacque at hyperactivesw.com Sat Jan 21 15:39:49 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 21 Jan 2012 14:39:49 -0600 Subject: Windows Special Folders In-Reply-To: References: <7E4BCD7E-9216-4BAE-AAC1-5731DBE9FDC3@m-r-d.de> Message-ID: <4F1B2295.8020507@hyperactivesw.com> On 1/21/12 1:50 PM, Pete wrote: > Am I right in choosing the APPDATA (0x001A) folder as the place to store > Preferences files? Bookmark Ken's fantastic site resource: And then look at this entry, which I depend on constantly: This is a wonderful effort, for which I'm very grateful. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From richmondmathewson at gmail.com Sat Jan 21 16:27:02 2012 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 21 Jan 2012 23:27:02 +0200 Subject: Constrained grab In-Reply-To: References: <4F1B1BF2.5090701@gmail.com> Message-ID: <4F1B2DA6.5080102@gmail.com> On 01/21/2012 10:30 PM, Bob Sneidar wrote: > Richmond has been imbibing again... > > Not so: on mouseDown set the idleRate to 0 grab me end mouseDown on mouseStillDown set the loc of me to (item 1 of the loc of me, 250) end mouseStillDown try it! admittedly one's object does perform a slightly drunken wobble . . . :) From pete at mollysrevenge.com Sat Jan 21 16:45:50 2012 From: pete at mollysrevenge.com (Pete) Date: Sat, 21 Jan 2012 13:45:50 -0800 Subject: Windows Special Folders In-Reply-To: <4F1B2295.8020507@hyperactivesw.com> References: <7E4BCD7E-9216-4BAE-AAC1-5731DBE9FDC3@m-r-d.de> <4F1B2295.8020507@hyperactivesw.com> Message-ID: Indeed, VERY useful stuff! Thanks Ken (and Jacque for pointing me to it). On Sat, Jan 21, 2012 at 12:39 PM, J. Landman Gay wrote: > On 1/21/12 1:50 PM, Pete wrote: > > Am I right in choosing the APPDATA (0x001A) folder as the place to store >> Preferences files? >> > > Bookmark Ken's fantastic site resource: > > > > > And then look at this entry, which I depend on constantly: > > > > > > This is a wonderful effort, for which I'm very grateful. > > -- > 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 > > -- Pete Molly's Revenge From dunbarx at aol.com Sat Jan 21 17:18:12 2012 From: dunbarx at aol.com (dunbarx at aol.com) Date: Sat, 21 Jan 2012 17:18:12 -0500 (EST) Subject: Constrained grab In-Reply-To: <4F1B1BF2.5090701@gmail.com> References: <4F1B1BF2.5090701@gmail.com> Message-ID: <8CEA6A1B2C53D1A-1318-112BC@webmail-d054.sysops.aol.com> Drinking aside, get item 2 of the loc of your target object on mouseEnter. Put it into a custom prop of that object. Write a mouseMove handler that sets the loc of the target to item 1 of the mouseLoc & "," & the property. Craig -----Original Message----- From: Richmond To: How to use LiveCode Sent: Sat, Jan 21, 2012 10:14 am Subject: Constrained grab I have a "blob" that contains this script: on mouseDown grab me end mouseDown so I can move the "blob" around . . . HOWEVER I want to somehow constrain the GRAB so that I can only drag the "blob" laterally. [Don't blame me; blame George Brackett . . . ] 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 m.schonewille at economy-x-talk.com Sat Jan 21 18:14:26 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sun, 22 Jan 2012 00:14:26 +0100 Subject: StdOut on Windows Message-ID: <0796A58D-43E1-4A80-9C1F-6F5EC36B814E@economy-x-talk.com> Hi, I have to make a small utility for a visually impaired person. Since LiveCode is completely incompatible with any screenreader, contrary to RealStudio, which is fully compatible with most screenreaders, I was thinking about creating a command line utility before deciding to do this project in RealStudio. For such a command line utility to work, I need to write to stdOut. Guess what... stdOut doesn't work either on Windows. Almost 7 years ago, someone reported this as a bug http://qery.us/1hv but nothing happened meanwhile. My question is whether anyone has found a workaround to make LiveCode return a value in the DOS prompt. No piping to text files, no speech or other alternative, I need LiveCode to write to stdOut or otherwise return a value in the DOS prompt. Has anyone managed to do 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 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za From charles at buchwald.ca Sat Jan 21 21:03:14 2012 From: charles at buchwald.ca (Charles E Buchwald) Date: Sat, 21 Jan 2012 20:03:14 -0600 Subject: iOS Scrolling: Setting the scroll values In-Reply-To: <4F1B2295.8020507@hyperactivesw.com> References: <7E4BCD7E-9216-4BAE-AAC1-5731DBE9FDC3@m-r-d.de> <4F1B2295.8020507@hyperactivesw.com> Message-ID: <5C0BEFA5-8B3F-44D4-88A9-FCC4FFBAE498@buchwald.ca> Hi List, I'm having a hard time figuring out how to set the scroll of an iOS scroller. I have big image "Map" and a 20 x 20 graphic named "Marker" in the scrolling group. I'd like to set the scrolling of the such that "Marker" is centered in the window when the card opens. So I thought to do it like this.... global sScrollerId on scrollToLocation iphoneControlSet sScrollerId, "hScroll", 0 put the left of grc "Marker" - (the width of this stack / 2) - (the width of grc "Marker" / 2) into tNewHScroll iphoneControlSet sScrollerId, "hScroll", tNewHScroll end scrollToLocation I put this in a button script to test it, and repeated button presses toggle between 2 different scroll values, one of which is correct. If I put it in an openCard handler, sometimes it works and sometimes it doesn't. Any idea what I am missing? Thanks, - Charles -- Charles E. Buchwald http://buchwald.ca From bobs at twft.com Sat Jan 21 23:02:31 2012 From: bobs at twft.com (Bob Sneidar) Date: Sat, 21 Jan 2012 20:02:31 -0800 Subject: Constrained grab In-Reply-To: <4F1B2DA6.5080102@gmail.com> References: <4F1B1BF2.5090701@gmail.com> <4F1B2DA6.5080102@gmail.com> Message-ID: <2A306574-C51B-4C0E-BE88-64252A9CC3E8@twft.com> Oh, it was the blob that threw me. I was certain that LC did not provide a "blob" object. :-) Bob On Jan 21, 2012, at 1:27 PM, Richmond wrote: > On 01/21/2012 10:30 PM, Bob Sneidar wrote: >> Richmond has been imbibing again... >> >> > > Not so: > > on mouseDown > set the idleRate to 0 > grab me > end mouseDown > > on mouseStillDown > set the loc of me to (item 1 of the loc of me, 250) > end mouseStillDown > > try it! > > admittedly one's object does perform a slightly drunken wobble . . . :) > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jan 21 23:04:24 2012 From: bobs at twft.com (Bob Sneidar) Date: Sat, 21 Jan 2012 20:04:24 -0800 Subject: Windows Special Folders In-Reply-To: <4F1B2295.8020507@hyperactivesw.com> References: <7E4BCD7E-9216-4BAE-AAC1-5731DBE9FDC3@m-r-d.de> <4F1B2295.8020507@hyperactivesw.com> Message-ID: <80D2E017-485F-45CF-B1F9-011714AD5D64@twft.com> Duly bookmarked. Dang we have some talented people on this list! Bob On Jan 21, 2012, at 12:39 PM, J. Landman Gay wrote: > On 1/21/12 1:50 PM, Pete wrote: > >> Am I right in choosing the APPDATA (0x001A) folder as the place to store >> Preferences files? > > Bookmark Ken's fantastic site resource: > > > And then look at this entry, which I depend on constantly: > > > > This is a wonderful effort, for which I'm very grateful. > > -- > 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 bvlahos at mac.com Sun Jan 22 00:52:47 2012 From: bvlahos at mac.com (Bill Vlahos) Date: Sat, 21 Jan 2012 21:52:47 -0800 Subject: How do I send variables from substack to mainstack? Message-ID: I have a handler (importPds) on a card in the main stack that I want to send data to from a substack. I set the calling stack name to a global CallingStack. vMap and fSource are variables to pass back to the importPds handler on the card. The following line from an open substack gives an error. send importPds vMap fSource to card "Notes" of stack CallingStack in 0 seconds How can I send variables vMap and fSource to the handler importPds on the card of the calling stack? Thanks, Bill Vlahos _________________ InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. From dunbarx at aol.com Sun Jan 22 01:16:40 2012 From: dunbarx at aol.com (dunbarx at aol.com) Date: Sun, 22 Jan 2012 01:16:40 -0500 (EST) Subject: How do I send variables from substack to mainstack? In-Reply-To: References: Message-ID: <8CEA6E489BFB3EC-1318-129E9@webmail-d054.sysops.aol.com> Just syntax. send "importPds vMap,fSource" to card "Notes" of stack "CallingStack" in 0 seconds messages and their parameters take the form: message param1,param2,param3,etc. LC has to be able to evaluate the argument(s) of the "send" command to follow this form. Craig Newman -----Original Message----- From: Bill Vlahos To: How to use LiveCode Sent: Sat, Jan 21, 2012 7:55 pm Subject: How do I send variables from substack to mainstack? I have a handler (importPds) on a card in the main stack that I want to send data to from a substack. I set the calling stack name to a global CallingStack. vMap and fSource are variables to pass back to the importPds handler on the card. The following line from an open substack gives an error. send importPds vMap fSource to card "Notes" of stack CallingStack in 0 seconds How can I send variables vMap and fSource to the handler importPds on the card of the calling stack? Thanks, Bill Vlahos _________________ InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. _______________________________________________ use-livecode mailing list use-livecode at 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 Jan 22 02:34:33 2012 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 22 Jan 2012 09:34:33 +0200 Subject: Constrained grab In-Reply-To: <2A306574-C51B-4C0E-BE88-64252A9CC3E8@twft.com> References: <4F1B1BF2.5090701@gmail.com> <4F1B2DA6.5080102@gmail.com> <2A306574-C51B-4C0E-BE88-64252A9CC3E8@twft.com> Message-ID: <4F1BBC09.5030509@gmail.com> On 01/22/2012 06:02 AM, Bob Sneidar wrote: > Oh, it was the blob that threw me. I was certain that LC did not provide a "blob" object. :-) No, it doesn't; hence the quotes. I was using an image that, in a fit of creativity, I called "blob". > > Bob > > > On Jan 21, 2012, at 1:27 PM, Richmond wrote: > >> On 01/21/2012 10:30 PM, Bob Sneidar wrote: >>> Richmond has been imbibing again... >>> >>> >> Not so: >> >> on mouseDown >> set the idleRate to 0 >> grab me >> end mouseDown >> >> on mouseStillDown >> set the loc of me to (item 1 of the loc of me, 250) >> end mouseStillDown >> >> try it! >> >> admittedly one's object does perform a slightly drunken wobble . . . :) >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 bvlahos at mac.com Sun Jan 22 02:57:20 2012 From: bvlahos at mac.com (Bill Vlahos) Date: Sat, 21 Jan 2012 23:57:20 -0800 Subject: How do I send variables from substack to mainstack? In-Reply-To: <8CEA6E489BFB3EC-1318-129E9@webmail-d054.sysops.aol.com> References: <8CEA6E489BFB3EC-1318-129E9@webmail-d054.sysops.aol.com> Message-ID: <5C34C1D1-C628-4BFD-B52E-808E43A4C120@mac.com> Craig, Perfect. Thank you. Bill Vlahos On Jan 21, 2012, at 10:16 PM, dunbarx at aol.com wrote: > Just syntax. > > > send "importPds vMap,fSource" to card "Notes" of stack "CallingStack" in 0 seconds > > > messages and their parameters take the form: message param1,param2,param3,etc. > > > LC has to be able to evaluate the argument(s) of the "send" command to follow this form. > > > Craig Newman > > > -----Original Message----- > From: Bill Vlahos > To: How to use LiveCode > Sent: Sat, Jan 21, 2012 7:55 pm > Subject: How do I send variables from substack to mainstack? > > > I have a handler (importPds) on a card in the main stack that I want to send > data to from a substack. > > I set the calling stack name to a global CallingStack. > > vMap and fSource are variables to pass back to the importPds handler on the > card. > > The following line from an open substack gives an error. > send importPds vMap fSource to card "Notes" of stack CallingStack in 0 seconds > > How can I send variables vMap and fSource to the handler importPds on the card > of the calling stack? > > Thanks, > Bill Vlahos > _________________ > InfoWallet (http://www.infowallet.com) is about keeping your important life > information with you, accessible, and secure. > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 m.schonewille at economy-x-talk.com Sun Jan 22 07:20:17 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sun, 22 Jan 2012 13:20:17 +0100 Subject: iOS Scrolling: Setting the scroll values In-Reply-To: <5C0BEFA5-8B3F-44D4-88A9-FCC4FFBAE498@buchwald.ca> References: <7E4BCD7E-9216-4BAE-AAC1-5731DBE9FDC3@m-r-d.de> <4F1B2295.8020507@hyperactivesw.com> <5C0BEFA5-8B3F-44D4-88A9-FCC4FFBAE498@buchwald.ca> Message-ID: <1BCD42B7-3E53-4276-B175-6664DCB8724C@economy-x-talk.com> Hi Charles, Since the iPhone scroller is invisible, you can always set the hScroll and the vScroll to 0 whenever your card opens. Use the regular LiveCode properties to reset the scroll values and positions of your objects whenever your card opens. If you set both the scroll of the iPhone object and the LiveCode controls to 0, you're sure that everything matches. Now you can catch the scrollerDidScroll message. After resetting positions and scroll values, all you do is changing the scrolls of groups and iPhone scrollers: set the hscroll of grp x to 20 iPhoneControlSet sScrollerID,"hScroll",20 Btw you need to make sure that the dimensions of the iPhoneConrol's rect are equal to the formattedHeight and formattedWidth of the group or field that you're trying to scroll. If you want to scroll your marker horizontally, you could use transparent picture that's twice as wide as the screen, group it and then set the width of the group to the width of your screen. Now you can set the hScroll to half the formattedWidth to center the picture. It is probably easiest if you set the margins of the group(s) to 0. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 22 jan 2012, at 03:03, Charles E Buchwald wrote: > Hi List, > I'm having a hard time figuring out how to set the scroll of an iOS scroller. > I have big image "Map" and a 20 x 20 graphic named "Marker" in the scrolling group. > I'd like to set the scrolling of the such that "Marker" is centered in the window when the card opens. > So I thought to do it like this.... > > global sScrollerId > on scrollToLocation > iphoneControlSet sScrollerId, "hScroll", 0 > put the left of grc "Marker" - (the width of this stack / 2) - (the width of grc "Marker" / 2) into tNewHScroll > iphoneControlSet sScrollerId, "hScroll", tNewHScroll > end scrollToLocation > > I put this in a button script to test it, and repeated button presses toggle between 2 different scroll values, one of which is correct. > If I put it in an openCard handler, sometimes it works and sometimes it doesn't. > > Any idea what I am missing? > > Thanks, > - Charles > > -- > Charles E. Buchwald > http://buchwald.ca From mike at doub.com Sun Jan 22 08:16:29 2012 From: mike at doub.com (Michael Doub) Date: Sun, 22 Jan 2012 08:16:29 -0500 Subject: Scrolling and multiTouch Message-ID: <424D7E6C-A5E9-4F0F-8329-AD961CC82EF2@doub.com> I am trying to understand how multitouch scrolling and selection work together. Here is the problem I am trying to solve: 1) the user takes a picture where the picture is larger than the screen. 2) the user needs to both scroll the picture and resize it with pinch to zoom 3) once the correct part of the image is in the screen, a selection needs to be made to capture the color of a specific part of the image. 4) then match this color to a non-rgb color pallet Well I have the number 1 and 4 parts of the app working. Does anyone have an example of how to manage scrolling and pinch to zoom? I don't know how to do this yet but I am thinking that I need to set up the scroller to match the image after the picture is taken then when a multitouch is detected disable the scroller, then resize the image and then reinitialize the scroller. I am not sure how to go about getting into "Selection" mode. I would like to avoid having a special mode, but don't have any ideas how to separate selection from scrolling. Any examples or advise would be welcome. Regards, Mike From mike at doub.com Sun Jan 22 08:36:00 2012 From: mike at doub.com (Michael Doub) Date: Sun, 22 Jan 2012 08:36:00 -0500 Subject: StdOut on Windows In-Reply-To: <0796A58D-43E1-4A80-9C1F-6F5EC36B814E@economy-x-talk.com> References: <0796A58D-43E1-4A80-9C1F-6F5EC36B814E@economy-x-talk.com> Message-ID: Hi Mark, I thought that if you ran a headless version of livecode that normal put statements go to stdout. This seems to be what is happening when I look at the cgi tutorial: http://www.hyperactivesw.com/cgitutorial/tutorialtoc.html I may not be understanding your question properly. -= Mike On 2012-01-21, at 6:14 PM, Mark Schonewille wrote: > Hi, > > I have to make a small utility for a visually impaired person. Since LiveCode is completely incompatible with any screenreader, contrary to RealStudio, which is fully compatible with most screenreaders, I was thinking about creating a command line utility before deciding to do this project in RealStudio. For such a command line utility to work, I need to write to stdOut. Guess what... stdOut doesn't work either on Windows. Almost 7 years ago, someone reported this as a bug http://qery.us/1hv but nothing happened meanwhile. My question is whether anyone has found a workaround to make LiveCode return a value in the DOS prompt. No piping to text files, no speech or other alternative, I need LiveCode to write to stdOut or otherwise return a value in the DOS prompt. Has anyone managed to do 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 > > Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sun Jan 22 08:41:30 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sun, 22 Jan 2012 14:41:30 +0100 Subject: StdOut on Windows In-Reply-To: References: <0796A58D-43E1-4A80-9C1F-6F5EC36B814E@economy-x-talk.com> Message-ID: Hi Mike, This doesn't seem to work on Windows. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 22 jan 2012, at 14:36, Michael Doub wrote: > Hi Mark, > > I thought that if you ran a headless version of livecode that normal put statements go to stdout. This seems to be what is happening when I look at the cgi tutorial: > > http://www.hyperactivesw.com/cgitutorial/tutorialtoc.html > > I may not be understanding your question properly. > > -= Mike From livfoss at mac.com Sun Jan 22 09:45:40 2012 From: livfoss at mac.com (Graham Samuel) Date: Sun, 22 Jan 2012 15:45:40 +0100 Subject: Navigating XML in LiveCode Message-ID: For no special reason I have never used XML, either in LiveCode or anywhere else. Now I'm scripting an app that calls for a tiny database containing a number of similarly structured records (probably not more than 50), with all the values essentially text or numbers easily expressible as text. XML seems a good fit for this, but there are some odd bits I can't understand despite reading Sarah Reichelt's useful tutorial and looking at the LiveCode dictionary and the User Guide. The issue is this - suppose I want to add a node to my data structure before I have any data (attributes or node contents) to put into it: for example in an employee list, I want to create an node as a member of a set of nodes all with that name - I may want to add subnodes too at the moment of creation, but that's not the real issue. My next step will be to make that particular instance of unique by giving it an attribute like say "EmployeeID" with a unique value. The problem is that I can't apparently do this in one step, although I would like to, so as to make sure that my new node can immediately be identified, searched for etc. First I have to create the node, and afterwards I want to add my attribute. But how can I find it? I suppose I could search for a node that hasn't got an "EmployeeID" attribute yet, or I could parse the whole structure to find the last node at that level, but both these methods seems kind of crude. Is there some way to keep track of the last node created, similar to LiveCode's feature within the creation of new objects? If there is, I can't find it. Or maybe I'm just thinking about it in the wrong way. Any help would be appreciated, as ever. Graham From mikekann at yahoo.com Sun Jan 22 10:46:14 2012 From: mikekann at yahoo.com (Michael Kann) Date: Sun, 22 Jan 2012 07:46:14 -0800 (PST) Subject: Navigating XML in LiveCode In-Reply-To: Message-ID: <1327247174.79987.YahooMailClassic@web161601.mail.bf1.yahoo.com> Graham, Without giving away any trade secrets, could you describe where the data is stored and how it will be displayed? Mike --- On Sun, 1/22/12, Graham Samuel wrote: From: Graham Samuel Subject: Navigating XML in LiveCode To: use-livecode at lists.runrev.com Date: Sunday, January 22, 2012, 8:45 AM For no special reason I have never used XML, either in LiveCode or anywhere else. Now I'm scripting an app that calls for a tiny database containing a number of similarly structured records (probably not more than 50), with all the values essentially text or numbers easily expressible as text. XML seems a good fit for this, but there are some odd bits I can't understand despite reading Sarah Reichelt's useful tutorial and looking at the LiveCode dictionary and the User Guide. The issue is this - suppose I want to add a node to my data structure before I have any data (attributes or node contents) to put into it: for example in an employee list, I want to create an node as a member of a set of nodes all with that name - I may want to add subnodes too at the moment of creation, but that's not the real issue. My next step will be to make that particular instance of unique by giving it an attribute like say "EmployeeID" with a unique value. The problem is that I can't apparently do this in one step, although I would like to, so as to make sure that my new node can immediately be identified, searched for etc. First I have to create the node, and afterwards I want to add my attribute. But how can I find it? I suppose I could search for a node that hasn't got an "EmployeeID" attribute yet, or I could parse the whole structure to find the last node at that level, but both these methods seems kind of crude. Is there some way to keep track of the last node created, similar to LiveCode's feature within the creation of new objects? If there is, I can't find it. Or maybe I'm just thinking about it in the wrong way. Any help would be appreciated, as ever. Graham _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From bryan at deepfoo.com Sun Jan 22 12:07:37 2012 From: bryan at deepfoo.com (Bryan McCormick) Date: Sun, 22 Jan 2012 12:07:37 -0500 Subject: Detecting frame changes efficiently Message-ID: <4F1C4259.1000808@deepfoo.com> I have to cobble something together which is not normally my thing, a video app that doesn't do a bunch. What it does need to do though is detect when there has been a significant change in frame. I would need to be able to threshold this for significance, so I would need to know that xyz percentage of the frame has changed. I might not want the app to trigger unless there has been a 90 percent change, something like that though I am not sure yet how high that rate is going to have to be. I will probably sample smaller frame elements to try to keep it lighter on overhead. My approach was to do this not with 2 frames but with 3 sampled over a few seconds so that there would be a higher confidence that the change isn't just frame a lighting change or something that is transient. I already can do bit by bit stuff, but that is super super slow. I was using RGB compares. Does anyone have any ideas about how to do it faster? I was hoping there might be some method to do it by rows in a still image grabbed from the stream. Importantly, I am grabbing the images off as stills and storing them, then overwriting as the sample time window passes. Thoughts? From revmaillist at positivme.com Sun Jan 22 12:33:43 2012 From: revmaillist at positivme.com (Thunder) Date: Sun, 22 Jan 2012 09:33:43 -0800 (PST) Subject: StdOut on Windows In-Reply-To: <0796A58D-43E1-4A80-9C1F-6F5EC36B814E@economy-x-talk.com> References: <0796A58D-43E1-4A80-9C1F-6F5EC36B814E@economy-x-talk.com> Message-ID: <1327253623358-4318696.post@n4.nabble.com> *User Guide.pdf - Search for stdout* Output to Standard Out (stdOut or the Console on Mac OS X) The stdOut is a useful place to log messages. Unlike the Message Box, it is easy to log a sequence of events which you can then scroll back to review later on. It also has the advantage of being external to LiveCode so using it does not interfere with your application window layering or focus in any way. *The stdOut is only available on Linux, Unix or Mac OS X systems.* */<------ No windows /* On Mac OS X, it can be accessed by opening the Console application, located in the Utilities folder within Applications. The syntax to write something to stdOut or the Console is: write tMessage & return to stdout. --------------------------------------------------------------------------------------------------------- Search for *stdout in the dictionary* indicates that windows *is *supported under : *Supported Operating Systems* --------------------------------------------------------------------------------------------------------- ..so...should it work on windows ... or not ? (LiveCode 5.0.1) Mark Schonewille-3 wrote > > workaround ....... > ...sorry , no. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/StdOut-on-Windows-tp4317135p4318696.html Sent from the Revolution - User mailing list archive at Nabble.com. From m.schonewille at economy-x-talk.com Sun Jan 22 12:47:18 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sun, 22 Jan 2012 18:47:18 +0100 Subject: StdOut on Windows In-Reply-To: <1327253623358-4318696.post@n4.nabble.com> References: <0796A58D-43E1-4A80-9C1F-6F5EC36B814E@economy-x-talk.com> <1327253623358-4318696.post@n4.nabble.com> Message-ID: <005599B2-446A-4856-B03E-7FC9D701E80C@economy-x-talk.com> Nothing new there. I know for a fact that it doesn't work on Windows and am looking for a good trick. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 22 jan 2012, at 18:33, Thunder wrote: > *User Guide.pdf - Search for stdout* > > Output to Standard Out (stdOut or the Console on Mac OS X) > The stdOut is a useful place to log messages. Unlike the Message Box, it is > easy to log a > sequence of events which you can then scroll back to review later on. It > also has the > advantage of being external to LiveCode so using it does not interfere with > your > application window layering or focus in any way. > > *The stdOut is only available on Linux, Unix or Mac OS X systems.* > */<------ No windows /* > > On Mac OS X, it can be accessed by opening the Console > application, located in the Utilities folder within Applications. > The syntax to write something to stdOut or the Console is: > write tMessage & return to stdout. > > --------------------------------------------------------------------------------------------------------- > > Search for *stdout in the dictionary* indicates that windows *is *supported > under : *Supported Operating Systems* > > --------------------------------------------------------------------------------------------------------- > > ..so...should it work on windows ... or not ? > > (LiveCode 5.0.1) > > > > > Mark Schonewille-3 wrote >> >> workaround ....... >> > > ...sorry , no. From coiin at verizon.net Sun Jan 22 12:49:25 2012 From: coiin at verizon.net (Colin Holgate) Date: Sun, 22 Jan 2012 17:49:25 +0000 Subject: Detecting frame changes efficiently In-Reply-To: <4F1C4259.1000808@deepfoo.com> References: <4F1C4259.1000808@deepfoo.com> Message-ID: <5D448043-7A5E-4765-92CA-CE783A5569D9@verizon.net> Perhaps scaling the video to be 1x1 might work. Then just watch the color of that one pixel. If it changes dramatically it was probably a scene change. From bonnmike at gmail.com Sun Jan 22 13:28:08 2012 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 22 Jan 2012 11:28:08 -0700 Subject: StdOut on Windows In-Reply-To: <005599B2-446A-4856-B03E-7FC9D701E80C@economy-x-talk.com> References: <0796A58D-43E1-4A80-9C1F-6F5EC36B814E@economy-x-talk.com> <1327253623358-4318696.post@n4.nabble.com> <005599B2-446A-4856-B03E-7FC9D701E80C@economy-x-talk.com> Message-ID: Hey, not sure this is an acceptable method but.. If you have control of the target system and can install unxutils, then you can build a standalone that does a "write whatever to stdout" If you run it with the -ui parameters, as you've seen nothing appears on screen. But if you pipe to cat, viola' It works. timeout -ui |cat I had noticed in the console logs that SOMETHING was occuring (an error crops up when a livecode app that does stdout is run) and on a whim did a redirect to a file and the file actually did end up with the stuff from stdout. (timeout > tempfile) so figured being able to pipe it to a well mannered utility like cat might work. The cool thing is that once unxutils are installed you then have access to grep, agrep and lots of other nifty things. If you want to check out these utils they can be found at * http://unxutils.sourceforge.net/* On Sun, Jan 22, 2012 at 10:47 AM, Mark Schonewille < m.schonewille at economy-x-talk.com> wrote: > Nothing new there. I know for a fact that it doesn't work on Windows and > am looking for a good trick. > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > Download the Installer Maker Plugin 1.7 for LiveCode here > http://qery.us/za > > On 22 jan 2012, at 18:33, Thunder wrote: > > > *User Guide.pdf - Search for stdout* > > > > Output to Standard Out (stdOut or the Console on Mac OS X) > > The stdOut is a useful place to log messages. Unlike the Message Box, it > is > > easy to log a > > sequence of events which you can then scroll back to review later on. It > > also has the > > advantage of being external to LiveCode so using it does not interfere > with > > your > > application window layering or focus in any way. > > > > *The stdOut is only available on Linux, Unix or Mac OS X systems.* > > */<------ No windows /* > > > > On Mac OS X, it can be accessed by opening the Console > > application, located in the Utilities folder within Applications. > > The syntax to write something to stdOut or the Console is: > > write tMessage & return to stdout. > > > > > --------------------------------------------------------------------------------------------------------- > > > > Search for *stdout in the dictionary* indicates that windows *is > *supported > > under : *Supported Operating Systems* > > > > > --------------------------------------------------------------------------------------------------------- > > > > ..so...should it work on windows ... or not ? > > > > (LiveCode 5.0.1) > > > > > > > > > > Mark Schonewille-3 wrote > >> > >> workaround ....... > >> > > > > ...sorry , no. > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sun Jan 22 13:35:19 2012 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 22 Jan 2012 11:35:19 -0700 Subject: StdOut on Windows In-Reply-To: References: <0796A58D-43E1-4A80-9C1F-6F5EC36B814E@economy-x-talk.com> <1327253623358-4318696.post@n4.nabble.com> <005599B2-446A-4856-B03E-7FC9D701E80C@economy-x-talk.com> Message-ID: Hmm also works with standard put, but still have to pipe it to cat or whatever. Without -u the writing to stdout works when piped to cat, and the put doesn't. including the -u makes the put command work also On Sun, Jan 22, 2012 at 11:28 AM, Mike Bonner wrote: > Hey, not sure this is an acceptable method but.. If you have control of > the target system and can install unxutils, then you can build a standalone > that does a "write whatever to stdout" > > If you run it with the -ui parameters, as you've seen nothing appears on > screen. But if you pipe to cat, viola' It works. > > timeout -ui |cat > > I had noticed in the console logs that SOMETHING was occuring (an error > crops up when a livecode app that does stdout is run) and on a whim did a > redirect to a file and the file actually did end up with the stuff from > stdout. > (timeout > tempfile) so figured being able to pipe it to a well mannered > utility like cat might work. > > The cool thing is that once unxutils are installed you then have access to > grep, agrep and lots of other nifty things. > If you want to check out these utils they can be found at * > http://unxutils.sourceforge.net/* > > On Sun, Jan 22, 2012 at 10:47 AM, Mark Schonewille < > m.schonewille at economy-x-talk.com> wrote: > >> Nothing new there. I know for a fact that it doesn't work on Windows and >> am looking for a good trick. >> >> -- >> Best regards, >> >> Mark Schonewille >> >> Economy-x-Talk Consulting and Software Engineering >> Homepage: http://economy-x-talk.com >> Twitter: http://twitter.com/xtalkprogrammer >> KvK: 50277553 >> >> Download the Installer Maker Plugin 1.7 for LiveCode here >> http://qery.us/za >> >> On 22 jan 2012, at 18:33, Thunder wrote: >> >> > *User Guide.pdf - Search for stdout* >> > >> > Output to Standard Out (stdOut or the Console on Mac OS X) >> > The stdOut is a useful place to log messages. Unlike the Message Box, >> it is >> > easy to log a >> > sequence of events which you can then scroll back to review later on. It >> > also has the >> > advantage of being external to LiveCode so using it does not interfere >> with >> > your >> > application window layering or focus in any way. >> > >> > *The stdOut is only available on Linux, Unix or Mac OS X systems.* >> > */<------ No windows /* >> > >> > On Mac OS X, it can be accessed by opening the Console >> > application, located in the Utilities folder within Applications. >> > The syntax to write something to stdOut or the Console is: >> > write tMessage & return to stdout. >> > >> > >> --------------------------------------------------------------------------------------------------------- >> > >> > Search for *stdout in the dictionary* indicates that windows *is >> *supported >> > under : *Supported Operating Systems* >> > >> > >> --------------------------------------------------------------------------------------------------------- >> > >> > ..so...should it work on windows ... or not ? >> > >> > (LiveCode 5.0.1) >> > >> > >> > >> > >> > Mark Schonewille-3 wrote >> >> >> >> workaround ....... >> >> >> > >> > ...sorry , no. >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 Sun Jan 22 13:46:16 2012 From: mcgrath3 at mac.com (Thomas McGrath III) Date: Sun, 22 Jan 2012 13:46:16 -0500 Subject: Scrolling and multiTouch In-Reply-To: <424D7E6C-A5E9-4F0F-8329-AD961CC82EF2@doub.com> References: <424D7E6C-A5E9-4F0F-8329-AD961CC82EF2@doub.com> Message-ID: Mike, Take a look at the scrolling a group lesson online: -- http://lessons.runrev.com/s/lessons/m/4071/l/44421-How-to-create-a-scrolling-group-using-the-improved-graphics-architecture And then take a look at the pinch lesson online: -- http://lessons.runrev.com/s/lessons/m/4069/l/11509-how-do-i-implement-a-multi-touch-pinch-motion HTHs -- Tom McGrath III http://lazyriver.on-rev.com 3mcgrath at comcast.net On Jan 22, 2012, at 8:16 AM, Michael Doub wrote: > I am trying to understand how multitouch scrolling and selection work together. Here is the problem I am trying to solve: > > 1) the user takes a picture where the picture is larger than the screen. > 2) the user needs to both scroll the picture and resize it with pinch to zoom > 3) once the correct part of the image is in the screen, a selection needs to be made to capture the > color of a specific part of the image. > 4) then match this color to a non-rgb color pallet > > > Well I have the number 1 and 4 parts of the app working. Does anyone have an example of how to > manage scrolling and pinch to zoom? > > I don't know how to do this yet but I am thinking that I need to set up the scroller to match the image after the picture is taken then when > a multitouch is detected disable the scroller, then resize the image and then reinitialize the scroller. I am not sure > how to go about getting into "Selection" mode. I would like to avoid having a special mode, but don't > have any ideas how to separate selection from scrolling. > > Any examples or advise would be welcome. > > Regards, > Mike > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From kray at sonsothunder.com Sun Jan 22 13:49:30 2012 From: kray at sonsothunder.com (Ken Ray) Date: Sun, 22 Jan 2012 12:49:30 -0600 Subject: StdOut on Windows In-Reply-To: References: <0796A58D-43E1-4A80-9C1F-6F5EC36B814E@economy-x-talk.com> <1327253623358-4318696.post@n4.nabble.com> <005599B2-446A-4856-B03E-7FC9D701E80C@economy-x-talk.com> Message-ID: On Jan 22, 2012, at 12:28 PM, Mike Bonner wrote: > If you run it with the -ui parameters, as you've seen nothing appears on > screen. But if you pipe to cat, viola' It works. If you don't have cat, you can pipe it to 'more' as well, and that works (although after a delay). My code: on startup write "Hello" & cr to stdOut quit end startup I called the standalone "cmdlinetest" so when I ran this in the command window: cmdlinetest | more if put "Hello" into the current command window (after a second delay though). Just FYI, Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From mcgrath3 at mac.com Sun Jan 22 13:57:37 2012 From: mcgrath3 at mac.com (Thomas McGrath III) Date: Sun, 22 Jan 2012 13:57:37 -0500 Subject: Pinch and Rotate Message-ID: I was playing around with the "Pinch to Zoom an object" lesson at: http://lessons.runrev.com/s/lessons/m/4069/l/11509-how-do-i-implement-a-multi-touch-pinch-motion And I wanted to add rotate to it as well so that I could pinch and rotate at the same time. I ran into a big wall (called Math I think) in trying to rotate based on how far from the original start point and wether I was rotating left or right. My solution works for the most part but it is not optimal or very clean and wanted to invite others to take a stab at it: I stated with the Pinch lesson stack and changed the GRAPHIC to an IMAGE and then modified the script to come up with this solution. This script goes into the card script and the card has an image named "square" on it. I edited it and added the rotateimage handler; local sTouchArray, sFRAMEWIDTH, sFRAMEHEIGHT on touchStart pId, pX, pY put the width of image "square" into sFRAMEWIDTH put the height of image "square" into sFRAMEHEIGHT end touchStart on touchEnd pId delete variable sTouchArray[pId] end touchEnd on touchMove pId, pX, pY if sTouchArray[pId]["startloc"] is empty then put (pX & comma & pY) into sTouchArray[pId]["startloc"] end if put (pX & comma & pY) into sTouchArray[pId]["currentloc"] if the number of lines of the keys of sTouchArray is 2 then # First lets get the data out of the array put line 1 of the keys of sTouchArray into tPointOne put line 2 of the keys of sTouchArray into tPointTwo # First lets calculate the size of the picture base on the distance # between the two touch points put sTouchArray[tPointOne]["startloc"] into tStartLoc1 put sTouchArray[tPointTwo]["startloc"] into tStartLoc2 put sTouchArray[tPointOne]["currentLoc"] into tCurrentLoc1 if tStartLoc1 is not empty and tStartLoc2 is not empty then put resizeDistance(tStartLoc1, tStartLoc2) into tStartDistance put resizeDistance(sTouchArray[tPointOne]["currentloc"], sTouchArray[tPointTwo]["currentloc"]) into tCurrentDistance resizeimage tStartDistance, tCurrentDistance if item 2 of tStartLoc1 < item 2 of tCurrentLoc1 then rotateimage "left", item 2 of tStartLoc1, item 2 of tCurrentLoc1 else rotateimage "right", item 2 of tStartLoc1, item 2 of tCurrentLoc1 end if end if end if end touchMove function resizeDistance pLoc1, pLoc2 local dy, dx, tDistance put item 2 of pLoc1 - item 2 of pLoc2 into dy put item 1 of pLoc1 - item 1 of pLoc2 into dx put sqrt((dy*dy) + (dx*dx)) into tDistance return tDistance end resizeDistance on rotateimage pAngle pStart pNew if pAngle contains "left" then put pStart - pNew into tDistance set the angle of image "square" to tDistance else put pNew - pStart into tDistance set the angle of image "square" to (- tDistance) end if unlock screen end rotateimage on resizeimage pStartDistance, pNewDistance # Work out the percentage change between the old and new image put round((pNewDistance / pStartDistance) * 100) into tPercentage # Store the original location of the image put the loc of image "square" into tLoc # Calculate the new width and height set the width of image "square" to round(sFRAMEWIDTH * (tPercentage / 100)) set the height of image "square" to round(sFRAMEHEIGHT * (tPercentage / 100)) set the loc of image "square" to tLoc unlock screen end resize image -- Tom McGrath III http://lazyriver.on-rev.com 3mcgrath at comcast.net From bonnmike at gmail.com Sun Jan 22 13:58:18 2012 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 22 Jan 2012 11:58:18 -0700 Subject: StdOut on Windows In-Reply-To: References: <0796A58D-43E1-4A80-9C1F-6F5EC36B814E@economy-x-talk.com> <1327253623358-4318696.post@n4.nabble.com> <005599B2-446A-4856-B03E-7FC9D701E80C@economy-x-talk.com> Message-ID: Yeah I've seen random delays too. Sometimes its lightning fast, other times as you say up to about a second delay. Kinda strange. On Sun, Jan 22, 2012 at 11:49 AM, Ken Ray wrote: > > On Jan 22, 2012, at 12:28 PM, Mike Bonner wrote: > > > If you run it with the -ui parameters, as you've seen nothing appears on > > screen. But if you pipe to cat, viola' It works. > > If you don't have cat, you can pipe it to 'more' as well, and that works > (although after a delay). My code: > > on startup > write "Hello" & cr to stdOut > quit > end startup > > I called the standalone "cmdlinetest" so when I ran this in the command > window: > > cmdlinetest | more > > if put "Hello" into the current command window (after a second delay > though). > > Just FYI, > > Ken Ray > Sons of Thunder Software, Inc. > Email: kray at sonsothunder.com > Web Site: http://www.sonsothunder.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 Sun Jan 22 13:59:49 2012 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 22 Jan 2012 11:59:49 -0700 Subject: StdOut on Windows In-Reply-To: References: <0796A58D-43E1-4A80-9C1F-6F5EC36B814E@economy-x-talk.com> <1327253623358-4318696.post@n4.nabble.com> <005599B2-446A-4856-B03E-7FC9D701E80C@economy-x-talk.com> Message-ID: Hmm ok, first run its low, after that it seems to be reliably fast (and don't know why I didn't remember "more") so I wonder if its a matter of diskaccess and cache. Recent run = superfast rerun. On Sun, Jan 22, 2012 at 11:58 AM, Mike Bonner wrote: > Yeah I've seen random delays too. Sometimes its lightning fast, other > times as you say up to about a second delay. Kinda strange. > > > On Sun, Jan 22, 2012 at 11:49 AM, Ken Ray wrote: > >> >> On Jan 22, 2012, at 12:28 PM, Mike Bonner wrote: >> >> > If you run it with the -ui parameters, as you've seen nothing appears on >> > screen. But if you pipe to cat, viola' It works. >> >> If you don't have cat, you can pipe it to 'more' as well, and that works >> (although after a delay). My code: >> >> on startup >> write "Hello" & cr to stdOut >> quit >> end startup >> >> I called the standalone "cmdlinetest" so when I ran this in the command >> window: >> >> cmdlinetest | more >> >> if put "Hello" into the current command window (after a second delay >> though). >> >> Just FYI, >> >> Ken Ray >> Sons of Thunder Software, Inc. >> Email: kray at sonsothunder.com >> Web Site: http://www.sonsothunder.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 pete at mollysrevenge.com Sun Jan 22 14:06:52 2012 From: pete at mollysrevenge.com (Pete) Date: Sun, 22 Jan 2012 11:06:52 -0800 Subject: Navigating XML in LiveCode In-Reply-To: References: Message-ID: Hi Graham, I'll say upfront that I'm not familiar with XML so I'm really suggesting an alternative rather than answering your question. Have you thought about using LC arrays rather than XML for this? LC arrays are lightning fast to access and I think would work great for a small dataset like this. The major key of your array could be the EmployeeID with subkeys holding the various data values associated with the employee. With that type of structure and assuming you know the employee id up front, you would create your employee "node" with: put theEmpID into theArray["EmployeeID"] After that, you could populate the details with statements like: put "John Doe" into theArray[theEmpID]["EmployeeName"] etc.... Pete On Sun, Jan 22, 2012 at 6:45 AM, Graham Samuel wrote: > For no special reason I have never used XML, either in LiveCode or > anywhere else. Now I'm scripting an app that calls for a tiny database > containing a number of similarly structured records (probably not more than > 50), with all the values essentially text or numbers easily expressible as > text. XML seems a good fit for this, but there are some odd bits I can't > understand despite reading Sarah Reichelt's useful tutorial and looking at > the LiveCode dictionary and the User Guide. > > The issue is this - suppose I want to add a node to my data structure > before I have any data (attributes or node contents) to put into it: for > example in an employee list, I want to create an node as > a member of a set of nodes all with that name - I may want to add subnodes > too at the moment of creation, but that's not the real issue. > > My next step will be to make that particular instance of > unique by giving it an attribute like say "EmployeeID" with a unique value. > The problem is that I can't apparently do this in one step, although I > would like to, so as to make sure that my new node can immediately be > identified, searched for etc. First I have to create the node, and > afterwards I want to add my attribute. But how can I find it? I suppose I > could search for a node that hasn't got an "EmployeeID" attribute yet, or I > could parse the whole structure to find the last node at that level, but > both these methods seems kind of crude. Is there some way to keep track of > the last node created, similar to LiveCode's feature within the creation of > new objects? If there is, I can't find it. Or maybe I'm just thinking about > it in the wrong way. > > Any help would be appreciated, as ever. > > Graham > > _______________________________________________ > use-livecode mailing list > use-livecode 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 mcgrath3 at mac.com Sun Jan 22 14:07:14 2012 From: mcgrath3 at mac.com (Thomas McGrath III) Date: Sun, 22 Jan 2012 14:07:14 -0500 Subject: Pinch and Rotate In-Reply-To: References: Message-ID: <9B1D94E0-37D3-4FC7-8F3F-CC17CA988EA1@mac.com> I also added a resizeQuality to the "on touchMove" handler: set the resizeQuality of image "square" to "best" -- Tom McGrath III http://lazyriver.on-rev.com 3mcgrath at comcast.net On Jan 22, 2012, at 1:57 PM, Thomas McGrath III wrote: > > I was playing around with the "Pinch to Zoom an object" lesson at: http://lessons.runrev.com/s/lessons/m/4069/l/11509-how-do-i-implement-a-multi-touch-pinch-motion > > And I wanted to add rotate to it as well so that I could pinch and rotate at the same time. I ran into a big wall (called Math I think) in trying to rotate based on how far from the original start point and wether I was rotating left or right. > > My solution works for the most part but it is not optimal or very clean and wanted to invite others to take a stab at it: > > I stated with the Pinch lesson stack and changed the GRAPHIC to an IMAGE and then modified the script to come up with this solution. This script goes into the card script and the card has an image named "square" on it. I edited it and added the rotateimage handler; > > local sTouchArray, sFRAMEWIDTH, sFRAMEHEIGHT > > on touchStart pId, pX, pY > put the width of image "square" into sFRAMEWIDTH > put the height of image "square" into sFRAMEHEIGHT > end touchStart > > on touchEnd pId > delete variable sTouchArray[pId] > end touchEnd > > on touchMove pId, pX, pY set the resizeQuality of image "square" to "best" > if sTouchArray[pId]["startloc"] is empty then > put (pX & comma & pY) into sTouchArray[pId]["startloc"] > end if > > put (pX & comma & pY) into sTouchArray[pId]["currentloc"] > > if the number of lines of the keys of sTouchArray is 2 then > # First lets get the data out of the array > put line 1 of the keys of sTouchArray into tPointOne > put line 2 of the keys of sTouchArray into tPointTwo > > # First lets calculate the size of the picture base on the distance > # between the two touch points > put sTouchArray[tPointOne]["startloc"] into tStartLoc1 > put sTouchArray[tPointTwo]["startloc"] into tStartLoc2 > put sTouchArray[tPointOne]["currentLoc"] into tCurrentLoc1 > if tStartLoc1 is not empty and tStartLoc2 is not empty then > put resizeDistance(tStartLoc1, tStartLoc2) into tStartDistance > put resizeDistance(sTouchArray[tPointOne]["currentloc"], sTouchArray[tPointTwo]["currentloc"]) into tCurrentDistance > resizeimage tStartDistance, tCurrentDistance > if item 2 of tStartLoc1 < item 2 of tCurrentLoc1 then > rotateimage "left", item 2 of tStartLoc1, item 2 of tCurrentLoc1 > else > rotateimage "right", item 2 of tStartLoc1, item 2 of tCurrentLoc1 > end if > end if > end if > end touchMove > > function resizeDistance pLoc1, pLoc2 > local dy, dx, tDistance > put item 2 of pLoc1 - item 2 of pLoc2 into dy > put item 1 of pLoc1 - item 1 of pLoc2 into dx > put sqrt((dy*dy) + (dx*dx)) into tDistance > return tDistance > end resizeDistance > > on rotateimage pAngle pStart pNew > if pAngle contains "left" then > put pStart - pNew into tDistance > set the angle of image "square" to tDistance > else > put pNew - pStart into tDistance > set the angle of image "square" to (- tDistance) > end if > unlock screen > end rotateimage > > on resizeimage pStartDistance, pNewDistance > # Work out the percentage change between the old and new image > put round((pNewDistance / pStartDistance) * 100) into tPercentage > > # Store the original location of the image > put the loc of image "square" into tLoc > > # Calculate the new width and height > set the width of image "square" to round(sFRAMEWIDTH * (tPercentage / 100)) > set the height of image "square" to round(sFRAMEHEIGHT * (tPercentage / 100)) > > set the loc of image "square" to tLoc > unlock screen > end resize image > > > -- 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 mike at doub.com Sun Jan 22 15:01:10 2012 From: mike at doub.com (Michael Doub) Date: Sun, 22 Jan 2012 15:01:10 -0500 Subject: Pinch and Rotate In-Reply-To: <9B1D94E0-37D3-4FC7-8F3F-CC17CA988EA1@mac.com> References: <9B1D94E0-37D3-4FC7-8F3F-CC17CA988EA1@mac.com> Message-ID: Many thanks Thomas. This is a big help. Did you do any experiments with doing pinch to zoom and scrolling? I am wondering the relationship between the scroller messages and the touch messages. We have three properties that are of interest: canCancelTouches, delayTouches and scrollingEnabled. After reading the documentation for the live code scroller that makes specific reference to apples documentation of their scroller implementation, it appears that live code did not implement the section of the apple implementation that allows the scroller to control the resizing of the underlying content. Further reinforced by the fact that there are lessons for how to do object resizing managing the multiple touches. Can anyone confirm that my understanding is correct? Thanks Mike On 2012-01-22, at 2:07 PM, Thomas McGrath III wrote: > I also added a resizeQuality to the "on touchMove" handler: > > set the resizeQuality of image "square" to "best" > > > -- Tom McGrath III > http://lazyriver.on-rev.com > 3mcgrath at comcast.net > > On Jan 22, 2012, at 1:57 PM, Thomas McGrath III wrote: > >> >> I was playing around with the "Pinch to Zoom an object" lesson at: http://lessons.runrev.com/s/lessons/m/4069/l/11509-how-do-i-implement-a-multi-touch-pinch-motion >> >> And I wanted to add rotate to it as well so that I could pinch and rotate at the same time. I ran into a big wall (called Math I think) in trying to rotate based on how far from the original start point and wether I was rotating left or right. >> >> My solution works for the most part but it is not optimal or very clean and wanted to invite others to take a stab at it: >> >> I stated with the Pinch lesson stack and changed the GRAPHIC to an IMAGE and then modified the script to come up with this solution. This script goes into the card script and the card has an image named "square" on it. I edited it and added the rotateimage handler; >> >> local sTouchArray, sFRAMEWIDTH, sFRAMEHEIGHT >> >> on touchStart pId, pX, pY >> put the width of image "square" into sFRAMEWIDTH >> put the height of image "square" into sFRAMEHEIGHT >> end touchStart >> >> on touchEnd pId >> delete variable sTouchArray[pId] >> end touchEnd >> >> on touchMove pId, pX, pY > set the resizeQuality of image "square" to "best" > >> if sTouchArray[pId]["startloc"] is empty then >> put (pX & comma & pY) into sTouchArray[pId]["startloc"] >> end if >> >> put (pX & comma & pY) into sTouchArray[pId]["currentloc"] >> >> if the number of lines of the keys of sTouchArray is 2 then >> # First lets get the data out of the array >> put line 1 of the keys of sTouchArray into tPointOne >> put line 2 of the keys of sTouchArray into tPointTwo >> >> # First lets calculate the size of the picture base on the distance >> # between the two touch points >> put sTouchArray[tPointOne]["startloc"] into tStartLoc1 >> put sTouchArray[tPointTwo]["startloc"] into tStartLoc2 >> put sTouchArray[tPointOne]["currentLoc"] into tCurrentLoc1 >> if tStartLoc1 is not empty and tStartLoc2 is not empty then >> put resizeDistance(tStartLoc1, tStartLoc2) into tStartDistance >> put resizeDistance(sTouchArray[tPointOne]["currentloc"], sTouchArray[tPointTwo]["currentloc"]) into tCurrentDistance >> resizeimage tStartDistance, tCurrentDistance >> if item 2 of tStartLoc1 < item 2 of tCurrentLoc1 then >> rotateimage "left", item 2 of tStartLoc1, item 2 of tCurrentLoc1 >> else >> rotateimage "right", item 2 of tStartLoc1, item 2 of tCurrentLoc1 >> end if >> end if >> end if >> end touchMove >> >> function resizeDistance pLoc1, pLoc2 >> local dy, dx, tDistance >> put item 2 of pLoc1 - item 2 of pLoc2 into dy >> put item 1 of pLoc1 - item 1 of pLoc2 into dx >> put sqrt((dy*dy) + (dx*dx)) into tDistance >> return tDistance >> end resizeDistance >> >> on rotateimage pAngle pStart pNew >> if pAngle contains "left" then >> put pStart - pNew into tDistance >> set the angle of image "square" to tDistance >> else >> put pNew - pStart into tDistance >> set the angle of image "square" to (- tDistance) >> end if >> unlock screen >> end rotateimage >> >> on resizeimage pStartDistance, pNewDistance >> # Work out the percentage change between the old and new image >> put round((pNewDistance / pStartDistance) * 100) into tPercentage >> >> # Store the original location of the image >> put the loc of image "square" into tLoc >> >> # Calculate the new width and height >> set the width of image "square" to round(sFRAMEWIDTH * (tPercentage / 100)) >> set the height of image "square" to round(sFRAMEHEIGHT * (tPercentage / 100)) >> >> set the loc of image "square" to tLoc >> unlock screen >> end resize image >> >> >> -- 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 bvlahos at mac.com Sun Jan 22 15:34:39 2012 From: bvlahos at mac.com (Bill Vlahos) Date: Sun, 22 Jan 2012 12:34:39 -0800 Subject: Looking for beta testers import of passwords to InfoWallet Message-ID: <7046B6BC-687E-41AD-A31D-354769107D48@mac.com> I'm looking for people to test the import of passwords into InfoWallet from tab-delimited or comma-delimited(csv) text files. These would be files exported from whatever existing password management program you might be using. If you are interested and don't already have a license for InfoWallet, simply download the trial version from the web site and send me an email so that I can send you the new update. The trial version doesn't have any limits on the number of records so it will work fine for this test. As an incentive to test this today (January 22, 2012), anyone who can test and send me the results today will get a free license for InfoWallet. Bill Vlahos _________________ InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. From m.schonewille at economy-x-talk.com Sun Jan 22 15:43:07 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sun, 22 Jan 2012 21:43:07 +0100 Subject: StdOut on Windows In-Reply-To: References: <0796A58D-43E1-4A80-9C1F-6F5EC36B814E@economy-x-talk.com> <1327253623358-4318696.post@n4.nabble.com> <005599B2-446A-4856-B03E-7FC9D701E80C@economy-x-talk.com> Message-ID: <887A603A-0339-4A9B-A469-F869ED0455FC@economy-x-talk.com> Hi Mike, This might be interesting for in-house solutions, but not for people who need to be able to use my software "out of the box". I'll keep this in mind though. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 22 jan 2012, at 19:28, Mike Bonner wrote: > Hey, not sure this is an acceptable method but.. If you have control of the > target system and can install unxutils, then you can build a standalone > that does a "write whatever to stdout" > > If you run it with the -ui parameters, as you've seen nothing appears on > screen. But if you pipe to cat, viola' It works. > > timeout -ui |cat > > I had noticed in the console logs that SOMETHING was occuring (an error > crops up when a livecode app that does stdout is run) and on a whim did a > redirect to a file and the file actually did end up with the stuff from > stdout. > (timeout > tempfile) so figured being able to pipe it to a well mannered > utility like cat might work. > > The cool thing is that once unxutils are installed you then have access to > grep, agrep and lots of other nifty things. > If you want to check out these utils they can be found at * > http://unxutils.sourceforge.net/* From m.schonewille at economy-x-talk.com Sun Jan 22 16:02:56 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sun, 22 Jan 2012 22:02:56 +0100 Subject: StdOut on Windows In-Reply-To: References: <0796A58D-43E1-4A80-9C1F-6F5EC36B814E@economy-x-talk.com> <1327253623358-4318696.post@n4.nabble.com> <005599B2-446A-4856-B03E-7FC9D701E80C@economy-x-talk.com> Message-ID: <4AE1BBBC-4C4F-4DF7-B8A8-A33469259C5A@economy-x-talk.com> Thanks Ken, That works. Not ideal, but definitely better than piping to a file. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 22 jan 2012, at 19:49, Ken Ray wrote: > > On Jan 22, 2012, at 12:28 PM, Mike Bonner wrote: > >> If you run it with the -ui parameters, as you've seen nothing appears on >> screen. But if you pipe to cat, viola' It works. > > If you don't have cat, you can pipe it to 'more' as well, and that works (although after a delay). My code: > > on startup > write "Hello" & cr to stdOut > quit > end startup > > I called the standalone "cmdlinetest" so when I ran this in the command window: > > cmdlinetest | more > > if put "Hello" into the current command window (after a second delay though). > > Just FYI, > > Ken Ray > Sons of Thunder Software, Inc. > Email: kray at sonsothunder.com > Web Site: http://www.sonsothunder.com/ From bonnmike at gmail.com Sun Jan 22 16:04:54 2012 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 22 Jan 2012 14:04:54 -0700 Subject: StdOut on Windows In-Reply-To: <887A603A-0339-4A9B-A469-F869ED0455FC@economy-x-talk.com> References: <0796A58D-43E1-4A80-9C1F-6F5EC36B814E@economy-x-talk.com> <1327253623358-4318696.post@n4.nabble.com> <005599B2-446A-4856-B03E-7FC9D701E80C@economy-x-talk.com> <887A603A-0339-4A9B-A469-F869ED0455FC@economy-x-talk.com> Message-ID: Someone who can write in C could probably just whip up a teeny app in c that takes stdin and immedietly sends it to stdout (like more, but without the paging features) that could be incorporated with your apps. Its still an ugly workaround though. Have a batch file for execution that handles the piping and takes params (also would have to be included with your app.) ## batch file yourstackfile -ui %1 %2 %3 | yourlittlecprog Of course all this is much uglier than oh say.. having a stdout that works. Probably still too convoluted for a production answer. On Sun, Jan 22, 2012 at 1:43 PM, Mark Schonewille < m.schonewille at economy-x-talk.com> wrote: > Hi Mike, > > This might be interesting for in-house solutions, but not for people who > need to be able to use my software "out of the box". I'll keep this in mind > though. > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > Download the Installer Maker Plugin 1.7 for LiveCode here > http://qery.us/za > > On 22 jan 2012, at 19:28, Mike Bonner wrote: > > > Hey, not sure this is an acceptable method but.. If you have control of > the > > target system and can install unxutils, then you can build a standalone > > that does a "write whatever to stdout" > > > > If you run it with the -ui parameters, as you've seen nothing appears on > > screen. But if you pipe to cat, viola' It works. > > > > timeout -ui |cat > > > > I had noticed in the console logs that SOMETHING was occuring (an error > > crops up when a livecode app that does stdout is run) and on a whim did a > > redirect to a file and the file actually did end up with the stuff from > > stdout. > > (timeout > tempfile) so figured being able to pipe it to a well mannered > > utility like cat might work. > > > > The cool thing is that once unxutils are installed you then have access > to > > grep, agrep and lots of other nifty things. > > If you want to check out these utils they can be found at * > > http://unxutils.sourceforge.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 m.schonewille at economy-x-talk.com Sun Jan 22 16:08:52 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sun, 22 Jan 2012 22:08:52 +0100 Subject: StdOut on Windows In-Reply-To: References: <0796A58D-43E1-4A80-9C1F-6F5EC36B814E@economy-x-talk.com> <1327253623358-4318696.post@n4.nabble.com> <005599B2-446A-4856-B03E-7FC9D701E80C@economy-x-talk.com> <887A603A-0339-4A9B-A469-F869ED0455FC@economy-x-talk.com> Message-ID: <91473AD2-DBFD-4F96-913C-F407CDAA0DEE@economy-x-talk.com> Yeah, thanks Mike, but I'm aware of all that. While stdOut doesn't work, there are still plenty of ways to get to the output, but I wish I could find a way o actually make stdOut 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 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 22 jan 2012, at 22:04, Mike Bonner wrote: > Someone who can write in C could probably just whip up a teeny app in c > that takes stdin and immedietly sends it to stdout (like more, but without > the paging features) that could be incorporated with your apps. Its still > an ugly workaround though. > > Have a batch file for execution that handles the piping and takes params > (also would have to be included with your app.) > > > > ## batch file > yourstackfile -ui %1 %2 %3 | yourlittlecprog > > Of course all this is much uglier than oh say.. having a stdout that works. > Probably still too convoluted for a production answer. From rjearp at hotmail.com Sun Jan 22 16:20:53 2012 From: rjearp at hotmail.com (Bob Earp) Date: Sun, 22 Jan 2012 13:20:53 -0800 Subject: Opening a Supercard file in Livecode? Message-ID: Far be it for me to question your wisdom here Jacque, but are you sure this is true for Rev (not LC) ? I went from HC to SC to ToolBook and then Rev, and at the time of looking at Rev, I can remember one of the enticements for moving was the ability to import HC & SC into Rev. I knew a bunch of guys at Allegiant back then, and thought that the SC format was not that different from HC, and very similar to MetaCard. I also seem to remember somebody writing a translator from TB to Rev, which basically dumped a text file description of every object with their scripts, and then built a stack from that in Rev. The only problem was that Rev did things so much better in some areas, most of the time it was more beneficial to rebuild the TB project into a new Rev stack, and only use the valuable stuff like media. Then again, maybe I'm just getting old and my memory is playing tricks ;-) best, Bob... > From: "J. Landman Gay" > To: How to use LiveCode > Subject: Re: Opening a Supercard file in Livecode? > Message-ID: <4F1AFFD3.4050905 at hyperactivesw.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > On 1/21/12 6:53 AM, Richmond wrote: >> Does anybody know whether this is possible? > > No, not possible. You could export the scripts in SC, rebuild the stack > in LiveCode, and paste the scripts into the new stack. Bob Earp White Rock, British Columbia. From stephenREVOLUTION2 at barncard.com Sun Jan 22 16:38:05 2012 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Sun, 22 Jan 2012 13:38:05 -0800 Subject: Opening a Supercard file in Livecode? In-Reply-To: References: Message-ID: I'm sure it's possible but the exceptions would take a lot of work and is just not worth the time vs re-creating with the superior Livecode capability. One will always end up with a better functioning app this way. On 22 January 2012 13:20, Bob Earp wrote: > Far be it for me to question your wisdom here Jacque, but are you sure > this is true for Rev (not LC) ? > > I went from HC to SC to ToolBook and then Rev, and at the time of looking > at Rev, I can remember one of the enticements for moving was the ability to > import HC & SC into Rev. I knew a bunch of guys at Allegiant back then, > and thought that the SC format was not that different from HC, and very > similar to MetaCard. > > I also seem to remember somebody writing a translator from TB to Rev, > which basically dumped a text file description of every object with their > scripts, and then built a stack from that in Rev. The only problem was that > Rev did things so much better in some areas, most of the time it was more > beneficial to rebuild the TB project into a new Rev stack, and only use > the valuable stuff like media. > > Then again, maybe I'm just getting old and my memory is playing tricks ;-) > > best, Bob... > > > From: "J. Landman Gay" > > To: How to use LiveCode > > Subject: Re: Opening a Supercard file in Livecode? > > Message-ID: <4F1AFFD3.4050905 at hyperactivesw.com> > > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > > > On 1/21/12 6:53 AM, Richmond wrote: > >> Does anybody know whether this is possible? > > > > No, not possible. You could export the scripts in SC, rebuild the stack > > in LiveCode, and paste the scripts into the new stack. > > > > Bob Earp > White Rock, British Columbia. > > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 m.schonewille at economy-x-talk.com Sun Jan 22 16:41:14 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sun, 22 Jan 2012 22:41:14 +0100 Subject: Opening a Supercard file in Livecode? In-Reply-To: References: Message-ID: <91070DB5-591F-4D73-A04E-CA24011E3B63@economy-x-talk.com> Hi Bob, There used to be a SuperCard-to-MetaCard converter. -- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com Download Color Converter at http://www.color-converter.com Op 22-jan-2012, om 22:20 heeft Bob Earp het volgende geschreven: > Far be it for me to question your wisdom here Jacque, but are you > sure this is true for Rev (not LC) ? > > I went from HC to SC to ToolBook and then Rev, and at the time of > looking at Rev, I can remember one of the enticements for moving > was the ability to import HC & SC into Rev. I knew a bunch of guys > at Allegiant back then, and thought that the SC format was not that > different from HC, and very similar to MetaCard. > > I also seem to remember somebody writing a translator from TB to > Rev, which basically dumped a text file description of every object > with their scripts, and then built a stack from that in Rev. The > only problem was that Rev did things so much better in some areas, > most of the time it was more beneficial to rebuild the TB project > into a new Rev stack, and only use the valuable stuff like media. > > Then again, maybe I'm just getting old and my memory is playing > tricks ;-) > > best, Bob... From stephenREVOLUTION2 at barncard.com Sun Jan 22 16:52:10 2012 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Sun, 22 Jan 2012 13:52:10 -0800 Subject: Opening a Supercard file in Livecode? In-Reply-To: <91070DB5-591F-4D73-A04E-CA24011E3B63@economy-x-talk.com> References: <91070DB5-591F-4D73-A04E-CA24011E3B63@economy-x-talk.com> Message-ID: Still, was it smart enough to figure out 'binary' features of Livecode that give speed and performance such as "repeat for each", etc. and multi-dimensional Arrays and the UI features such as the datagrid ? The 'translation' could end up being a convoluted mess, hard to debug/understand. And there is so much more to Livecode now than what was available in Metacard. I think most here would agree for anything but the most basic stacks that it's still better to do a translation by hand. It could always be done, but is it worth the time? On 22 January 2012 13:41, Mark Schonewille wrote: > Hi Bob, > > There used to be a SuperCard-to-MetaCard converter. > > -- > > Economy-x-Talk > Consultancy and Software Engineering > http://economy-x-talk.com > > Download Color Converter at http://www.color-converter.com > > Op 22-jan-2012, om 22:20 heeft Bob Earp het volgende geschreven: > > > Far be it for me to question your wisdom here Jacque, but are you sure >> this is true for Rev (not LC) ? >> >> I went from HC to SC to ToolBook and then Rev, and at the time of looking >> at Rev, I can remember one of the enticements for moving was the ability to >> import HC & SC into Rev. I knew a bunch of guys at Allegiant back then, >> and thought that the SC format was not that different from HC, and very >> similar to MetaCard. >> >> I also seem to remember somebody writing a translator from TB to Rev, >> which basically dumped a text file description of every object with their >> scripts, and then built a stack from that in Rev. The only problem was that >> Rev did things so much better in some areas, most of the time it was more >> beneficial to rebuild the TB project into a new Rev stack, and only use >> the valuable stuff like media. >> >> Then again, maybe I'm just getting old and my memory is playing tricks ;-) >> >> best, 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 > -- Stephen Barncard San Francisco Ca. USA more about sqb From jacque at hyperactivesw.com Sun Jan 22 17:14:36 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 22 Jan 2012 16:14:36 -0600 Subject: Opening a Supercard file in Livecode? In-Reply-To: References: Message-ID: <4F1C8A4C.6010800@hyperactivesw.com> On 1/22/12 3:20 PM, Bob Earp wrote: > Far be it for me to question your wisdom here Jacque, but are you > sure this is true for Rev (not LC) ? Your memory is correct, there used to be a converter back in the early days. It worked with SC 3.0. It was abandoned after the next SC update broke it and as the two engines diverged. Today there's nothing available. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jhj at jhj.com Sun Jan 22 17:16:33 2012 From: jhj at jhj.com (Jerry Jensen) Date: Sun, 22 Jan 2012 14:16:33 -0800 Subject: Opening a Supercard file in Livecode? In-Reply-To: References: <91070DB5-591F-4D73-A04E-CA24011E3B63@economy-x-talk.com> Message-ID: <9611AF26-EED8-4022-BDD3-C153581D4E4D@jhj.com> Always take advantage of a good excuse to rewrite your code. The first pancake is never the best one! On Jan 22, 2012, at 1:52 PM, stephen barncard wrote: > Still, was it smart enough to figure out 'binary' features of Livecode that > give speed and performance such as "repeat for each", etc. and > multi-dimensional Arrays and the UI features such as the datagrid ? > > The 'translation' could end up being a convoluted mess, hard to > debug/understand. And there is so much more to Livecode now than what was > available in Metacard. > > I think most here would agree for anything but the most basic stacks that > it's still better to do a translation by hand. > > It could always be done, but is it worth the time? > > On 22 January 2012 13:41, Mark Schonewille > wrote: > >> Hi Bob, >> >> There used to be a SuperCard-to-MetaCard converter. >> >> -- >> >> Economy-x-Talk >> Consultancy and Software Engineering >> http://economy-x-talk.com >> >> Download Color Converter at http://www.color-converter.com >> >> Op 22-jan-2012, om 22:20 heeft Bob Earp het volgende geschreven: >> >> >> Far be it for me to question your wisdom here Jacque, but are you sure >>> this is true for Rev (not LC) ? >>> >>> I went from HC to SC to ToolBook and then Rev, and at the time of looking >>> at Rev, I can remember one of the enticements for moving was the ability to >>> import HC & SC into Rev. I knew a bunch of guys at Allegiant back then, >>> and thought that the SC format was not that different from HC, and very >>> similar to MetaCard. >>> >>> I also seem to remember somebody writing a translator from TB to Rev, >>> which basically dumped a text file description of every object with their >>> scripts, and then built a stack from that in Rev. The only problem was that >>> Rev did things so much better in some areas, most of the time it was more >>> beneficial to rebuild the TB project into a new Rev stack, and only use >>> the valuable stuff like media. >>> >>> Then again, maybe I'm just getting old and my memory is playing tricks ;-) >>> >>> best, 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 >> > > > > -- > > > > 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 rjearp at hotmail.com Sun Jan 22 18:13:51 2012 From: rjearp at hotmail.com (Bob Earp) Date: Sun, 22 Jan 2012 15:13:51 -0800 Subject: Opening a Supercard file in Livecode? Message-ID: Further to my last post on this, I checked with my good friend Ian Gordon who I worked with on this stuff, and we think the path was SC to MetaCard to Rev to LiveCode. Unfortunately we don't have a sample to prove this !! Over the next week I will try to resurrect an old Quadra to get a SC project off of it, and try to do a conversion. Maybe somebody at RunRev can shed some light on the matter, but they'd have to be old school to remember this ;-) best, Bob... Bob Earp White Rock, British Columbia. From pete at mollysrevenge.com Sun Jan 22 18:19:25 2012 From: pete at mollysrevenge.com (Pete) Date: Sun, 22 Jan 2012 15:19:25 -0800 Subject: Opening a Supercard file in Livecode? In-Reply-To: References: <91070DB5-591F-4D73-A04E-CA24011E3B63@economy-x-talk.com> Message-ID: Probably not worth the time/payback as a translation tool but how about as part of a version control system? VC systems almost always have a function that will list the differences between two versions of code, but it's hard to that with LC since everything is buried in the stack file. If there was a way to export a stack file to some sort of text format, comparisons become possible, not only for scripts but for objects added/deleted/changed/etc. Pete On Sun, Jan 22, 2012 at 1:52 PM, stephen barncard < stephenREVOLUTION2 at barncard.com> wrote: > Still, was it smart enough to figure out 'binary' features of Livecode that > give speed and performance such as "repeat for each", etc. and > multi-dimensional Arrays and the UI features such as the datagrid ? > > The 'translation' could end up being a convoluted mess, hard to > debug/understand. And there is so much more to Livecode now than what was > available in Metacard. > > I think most here would agree for anything but the most basic stacks that > it's still better to do a translation by hand. > > It could always be done, but is it worth the time? > > On 22 January 2012 13:41, Mark Schonewille < > m.schonewille at economy-x-talk.com > > wrote: > > > Hi Bob, > > > > There used to be a SuperCard-to-MetaCard converter. > > > > -- > > > > Economy-x-Talk > > Consultancy and Software Engineering > > http://economy-x-talk.com > > > > Download Color Converter at http://www.color-converter.com > > > > Op 22-jan-2012, om 22:20 heeft Bob Earp het volgende geschreven: > > > > > > Far be it for me to question your wisdom here Jacque, but are you sure > >> this is true for Rev (not LC) ? > >> > >> I went from HC to SC to ToolBook and then Rev, and at the time of > looking > >> at Rev, I can remember one of the enticements for moving was the > ability to > >> import HC & SC into Rev. I knew a bunch of guys at Allegiant back then, > >> and thought that the SC format was not that different from HC, and very > >> similar to MetaCard. > >> > >> I also seem to remember somebody writing a translator from TB to Rev, > >> which basically dumped a text file description of every object with > their > >> scripts, and then built a stack from that in Rev. The only problem was > that > >> Rev did things so much better in some areas, most of the time it was > more > >> beneficial to rebuild the TB project into a new Rev stack, and only use > >> the valuable stuff like media. > >> > >> Then again, maybe I'm just getting old and my memory is playing tricks > ;-) > >> > >> best, 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< > 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 > > -- Pete Molly's Revenge From bvlahos at mac.com Sun Jan 22 18:31:25 2012 From: bvlahos at mac.com (Bill Vlahos) Date: Sun, 22 Jan 2012 15:31:25 -0800 Subject: Looking for beta testers import of passwords to InfoWallet In-Reply-To: <7046B6BC-687E-41AD-A31D-354769107D48@mac.com> References: <7046B6BC-687E-41AD-A31D-354769107D48@mac.com> Message-ID: Thanks to the beta testers they discovered a problem that I don't know how to fix?unicode. If the text file contains german umlaute ?,?,?. And these characters are not imported correctly. The ? (u umlaut) for example becomes ?? Here is the code: on mouseUp answer file "Import Password Text File" with type "Text|txt" if it is not empty then put "file:" & it into vPathToFile put URL vPathToFile into fSource examineImport fSource else exit mouseUp end if end mouseUp on examineImport vPasswords put vPasswords into field "fPasswords" end examineImport Any ideas? Thanks, Bill Vlahos _________________ InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. On Jan 22, 2012, at 12:34 PM, Bill Vlahos wrote: > I'm looking for people to test the import of passwords into InfoWallet from tab-delimited or comma-delimited(csv) text files. These would be files exported from whatever existing password management program you might be using. > > If you are interested and don't already have a license for InfoWallet, simply download the trial version from the web site and send me an email so that I can send you the new update. The trial version doesn't have any limits on the number of records so it will work fine for this test. > > As an incentive to test this today (January 22, 2012), anyone who can test and send me the results today will get a free license for InfoWallet. > > Bill Vlahos > _________________ > InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mark.rauterkus at gmail.com Sun Jan 22 19:07:00 2012 From: mark.rauterkus at gmail.com (Mark Rauterkus) Date: Sun, 22 Jan 2012 19:07:00 -0500 Subject: What about Apple's new ebook app and text book efforts? Message-ID: Hi, Anyone watching the news this week about Apple's ebook and text book apps and endeavors? Seeking input as to how that might play with LC. Thanks. Mark Rauterkus Mark at Rauterkus.com -- -- Ta. Mark Rauterkus Mark.Rauterkus at gmail.com http://Rauterkus.blogspot.com http://FixPA.wikia.com http://CLOH.wikia.com 412 298 3432 = cell From kray at sonsothunder.com Sun Jan 22 19:39:28 2012 From: kray at sonsothunder.com (Ken Ray) Date: Sun, 22 Jan 2012 18:39:28 -0600 Subject: Opening a Supercard file in Livecode? In-Reply-To: <91070DB5-591F-4D73-A04E-CA24011E3B63@economy-x-talk.com> References: <91070DB5-591F-4D73-A04E-CA24011E3B63@economy-x-talk.com> Message-ID: <6009EC37-B0C2-4F5E-8C3E-8DF856668531@sonsothunder.com> On Jan 22, 2012, at 3:41 PM, Mark Schonewille wrote: > Hi Bob, > > There used to be a SuperCard-to-MetaCard converter. Yes, I created it back in 2007 and I still have it - it converted SuperCard filed to XML and then XML to MetaCard (which was before Revolution and LiveCode). Given that it's 5 years old, it's not likely to work well, but if anyone wants a copy to try let me know. Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From mwieder at ahsoftware.net Sun Jan 22 20:21:38 2012 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sun, 22 Jan 2012 17:21:38 -0800 Subject: Navigating XML in LiveCode In-Reply-To: References: Message-ID: <194895329343.20120122172138@ahsoftware.net> Graham- Sunday, January 22, 2012, 6:45:40 AM, you wrote: > For no special reason I have never used XML, either in LiveCode > or anywhere else. Now I'm scripting an app that calls for a tiny > database containing a number of similarly structured records > (probably not more than 50), with all the values essentially text or > numbers easily expressible as text. XML seems a good fit for this, > but there are some odd bits I can't understand despite reading Sarah > Reichelt's useful tutorial and looking at the LiveCode dictionary > and the User Guide. Let me take a step back and look at this from a different angle (hey- the mixed metaphor worked!)... >From what you're describing, I'd say that XML is *not* a good fit for this. XML is a good medium for transporting data from one format to another, or from one application to another. I wouldn't describe it as a good way to store data internally: it's slow and bulky and has some of the problems you're starting to deal with. A database might be a good choice here (depends on what "similarly" structured means) or an internal array structure might meet your needs. If you need to export the data to something else then maybe XML would be something worth discussing. -- -Mark Wieder mwieder at ahsoftware.net From revdev at pdslabs.net Sun Jan 22 20:28:55 2012 From: revdev at pdslabs.net (Phil Davis) Date: Sun, 22 Jan 2012 17:28:55 -0800 Subject: Looking for beta testers import of passwords to InfoWallet In-Reply-To: References: <7046B6BC-687E-41AD-A31D-354769107D48@mac.com> Message-ID: <4F1CB7D7.4070802@pdslabs.net> Hi Bill, What happens if you get the file using "binfile" instead of "file"? And then you might have to monkey with unidecode() or something. I bet Devin Asay can tell you in his sleep. Seems to me "binfile" would prevent any char translation, though it would also prevent line-ending translations. Best - Phil Davis On 1/22/12 3:31 PM, Bill Vlahos wrote: > Thanks to the beta testers they discovered a problem that I don't know how to fix?unicode. > > If the text file contains german umlaute ?,?,?. And these characters are not imported correctly. The ? (u umlaut) for example becomes ?? > > Here is the code: > on mouseUp > answer file "Import Password Text File" with type "Text|txt" > if it is not empty then > put "file:"& it into vPathToFile > put URL vPathToFile into fSource > examineImport fSource > else > exit mouseUp > end if > end mouseUp > > on examineImport vPasswords > put vPasswords into field "fPasswords" > end examineImport > > Any ideas? > > Thanks, > Bill Vlahos > _________________ > InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. > > On Jan 22, 2012, at 12:34 PM, Bill Vlahos wrote: > >> I'm looking for people to test the import of passwords into InfoWallet from tab-delimited or comma-delimited(csv) text files. These would be files exported from whatever existing password management program you might be using. >> >> If you are interested and don't already have a license for InfoWallet, simply download the trial version from the web site and send me an email so that I can send you the new update. The trial version doesn't have any limits on the number of records so it will work fine for this test. >> >> As an incentive to test this today (January 22, 2012), anyone who can test and send me the results today will get a free license for InfoWallet. >> >> Bill Vlahos >> _________________ >> InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 mwieder at ahsoftware.net Sun Jan 22 20:30:41 2012 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sun, 22 Jan 2012 17:30:41 -0800 Subject: StdOut on Windows In-Reply-To: <4AE1BBBC-4C4F-4DF7-B8A8-A33469259C5A@economy-x-talk.com> References: <0796A58D-43E1-4A80-9C1F-6F5EC36B814E@economy-x-talk.com> <1327253623358-4318696.post@n4.nabble.com> <005599B2-446A-4856-B03E-7FC9D701E80C@economy-x-talk.com> <4AE1BBBC-4C4F-4DF7-B8A8-A33469259C5A@economy-x-talk.com> Message-ID: <197895871750.20120122173041@ahsoftware.net> Mark- Sunday, January 22, 2012, 1:02:56 PM, you wrote: > That works. Not ideal, but definitely better than piping to a file. Just curious about what you find so heinous about piping to a file. At any rate, welcome to the world of Windows. When you write a Windows program you can define it as a console app or a windows app. A console app expects stdout to go to a console window, and you have to include the C runtime library with the program or link it dynamically to a specific version of the CRT dll. If you don't supply a console window you can still pipe stdout to another program or file. If, on the other hand, you write a windows app then stdout goes to the screen. The engine for LiveCode, Runrev, Metacard is written as a console app, so any stdout output can be easily captured by other programs but not to the screen unless you manage the redirection or piping yourself. You can't change this. Not without changing the engine. -- -Mark Wieder mwieder at ahsoftware.net From bvlahos at mac.com Sun Jan 22 20:35:25 2012 From: bvlahos at mac.com (Bill Vlahos) Date: Sun, 22 Jan 2012 17:35:25 -0800 Subject: Looking for beta testers import of passwords to InfoWallet In-Reply-To: <4F1CB7D7.4070802@pdslabs.net> References: <7046B6BC-687E-41AD-A31D-354769107D48@mac.com> <4F1CB7D7.4070802@pdslabs.net> Message-ID: <58F5E717-EE41-4012-A809-4BFC3FD81428@mac.com> Phil, Binfile doesn't make any difference. I did monkey with the unicode settings and they were unpredictable. For 8bit unicode the text all came in as special characters. If the text file was 16 bit then it looked OK except it didn't parse correctly into the table. Some of the cells had both their information and the next one in the same cell. Of course I also don't know how to tell what the file is and I think most files are 8bit. Gee, this is so close but I'm stumped. Bill Vlahos _________________ InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. On Jan 22, 2012, at 5:28 PM, Phil Davis wrote: > Hi Bill, > > What happens if you get the file using "binfile" instead of "file"? And then you might have to monkey with unidecode() or something. I bet Devin Asay can tell you in his sleep. > > Seems to me "binfile" would prevent any char translation, though it would also prevent line-ending translations. > > Best - > Phil Davis > > > On 1/22/12 3:31 PM, Bill Vlahos wrote: >> Thanks to the beta testers they discovered a problem that I don't know how to fix?unicode. >> >> If the text file contains german umlaute ?,?,?. And these characters are not imported correctly. The ? (u umlaut) for example becomes ?? >> >> Here is the code: >> on mouseUp >> answer file "Import Password Text File" with type "Text|txt" >> if it is not empty then >> put "file:"& it into vPathToFile >> put URL vPathToFile into fSource >> examineImport fSource >> else >> exit mouseUp >> end if >> end mouseUp >> >> on examineImport vPasswords >> put vPasswords into field "fPasswords" >> end examineImport >> >> Any ideas? >> >> Thanks, >> Bill Vlahos >> _________________ >> InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. >> >> On Jan 22, 2012, at 12:34 PM, Bill Vlahos wrote: >> >>> I'm looking for people to test the import of passwords into InfoWallet from tab-delimited or comma-delimited(csv) text files. These would be files exported from whatever existing password management program you might be using. >>> >>> If you are interested and don't already have a license for InfoWallet, simply download the trial version from the web site and send me an email so that I can send you the new update. The trial version doesn't have any limits on the number of records so it will work fine for this test. >>> >>> As an incentive to test this today (January 22, 2012), anyone who can test and send me the results today will get a free license for InfoWallet. >>> >>> Bill Vlahos >>> _________________ >>> InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sun Jan 22 21:04:37 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Mon, 23 Jan 2012 03:04:37 +0100 Subject: StdOut on Windows In-Reply-To: <197895871750.20120122173041@ahsoftware.net> References: <0796A58D-43E1-4A80-9C1F-6F5EC36B814E@economy-x-talk.com> <1327253623358-4318696.post@n4.nabble.com> <005599B2-446A-4856-B03E-7FC9D701E80C@economy-x-talk.com> <4AE1BBBC-4C4F-4DF7-B8A8-A33469259C5A@economy-x-talk.com> <197895871750.20120122173041@ahsoftware.net> Message-ID: <9CD8060C-53A3-427F-B63E-B231D1332548@economy-x-talk.com> Hi Mark, I would like to find a solution that works for every blind person. This is either a screen reader or running the app from the command line with as few options and additional commands as possible. I hope that RunRev decides to change the engine to make it compatible with screen readers, just like RealStudio. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 23 jan 2012, at 02:30, Mark Wieder wrote: > Mark- > > Sunday, January 22, 2012, 1:02:56 PM, you wrote: > >> That works. Not ideal, but definitely better than piping to a file. > > Just curious about what you find so heinous about piping to a file. > > At any rate, welcome to the world of Windows. When you write a Windows > program you can define it as a console app or a windows app. A console > app expects stdout to go to a console window, and you have to include > the C runtime library with the program or link it dynamically to a > specific version of the CRT dll. If you don't supply a console window > you can still pipe stdout to another program or file. If, on the other > hand, you write a windows app then stdout goes to the screen. > > The engine for LiveCode, Runrev, Metacard is written as a console app, > so any stdout output can be easily captured by other programs but not > to the screen unless you manage the redirection or piping yourself. > You can't change this. Not without changing the engine. > > -- > -Mark Wieder > mwieder at ahsoftware.net From revdev at pdslabs.net Sun Jan 22 21:54:54 2012 From: revdev at pdslabs.net (Phil Davis) Date: Sun, 22 Jan 2012 18:54:54 -0800 Subject: Looking for beta testers import of passwords to InfoWallet In-Reply-To: <58F5E717-EE41-4012-A809-4BFC3FD81428@mac.com> References: <7046B6BC-687E-41AD-A31D-354769107D48@mac.com> <4F1CB7D7.4070802@pdslabs.net> <58F5E717-EE41-4012-A809-4BFC3FD81428@mac.com> Message-ID: <4F1CCBFE.8080301@pdslabs.net> I wonder what the data would look like if you used a shell() command (or some other non-LC-code means - via a process maybe) to read it. Like so: on mouseUp answer file "Import Password Text File" with type "Text|txt" if it is not empty then switch the platform case "Win32" replace "/" with "\" in it put shell("type" && quote & it & quote) into fSource break default put shell("cat" && quote & it & quote) into fSource break end switch examineImport fSource else exit mouseUp end if end mouseUp Phil On 1/22/12 5:35 PM, Bill Vlahos wrote: > Phil, > > Binfile doesn't make any difference. I did monkey with the unicode settings and they were unpredictable. For 8bit unicode the text all came in as special characters. If the text file was 16 bit then it looked OK except it didn't parse correctly into the table. Some of the cells had both their information and the next one in the same cell. > > Of course I also don't know how to tell what the file is and I think most files are 8bit. > > Gee, this is so close but I'm stumped. > > Bill Vlahos > _________________ > InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. > > On Jan 22, 2012, at 5:28 PM, Phil Davis wrote: > >> Hi Bill, >> >> What happens if you get the file using "binfile" instead of "file"? And then you might have to monkey with unidecode() or something. I bet Devin Asay can tell you in his sleep. >> >> Seems to me "binfile" would prevent any char translation, though it would also prevent line-ending translations. >> >> Best - >> Phil Davis >> >> >> On 1/22/12 3:31 PM, Bill Vlahos wrote: >>> Thanks to the beta testers they discovered a problem that I don't know how to fix?unicode. >>> >>> If the text file contains german umlaute ?,?,?. And these characters are not imported correctly. The ? (u umlaut) for example becomes ?? >>> >>> Here is the code: >>> on mouseUp >>> answer file "Import Password Text File" with type "Text|txt" >>> if it is not empty then >>> put "file:"& it into vPathToFile >>> put URL vPathToFile into fSource >>> examineImport fSource >>> else >>> exit mouseUp >>> end if >>> end mouseUp >>> >>> on examineImport vPasswords >>> put vPasswords into field "fPasswords" >>> end examineImport >>> >>> Any ideas? >>> >>> Thanks, >>> Bill Vlahos >>> _________________ >>> InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. >>> >>> On Jan 22, 2012, at 12:34 PM, Bill Vlahos wrote: >>> >>>> I'm looking for people to test the import of passwords into InfoWallet from tab-delimited or comma-delimited(csv) text files. These would be files exported from whatever existing password management program you might be using. >>>> >>>> If you are interested and don't already have a license for InfoWallet, simply download the trial version from the web site and send me an email so that I can send you the new update. The trial version doesn't have any limits on the number of records so it will work fine for this test. >>>> >>>> As an incentive to test this today (January 22, 2012), anyone who can test and send me the results today will get a free license for InfoWallet. >>>> >>>> Bill Vlahos >>>> _________________ >>>> InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode 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 >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 m.schonewille at economy-x-talk.com Sun Jan 22 22:00:48 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Mon, 23 Jan 2012 04:00:48 +0100 Subject: Looking for beta testers import of passwords to InfoWallet In-Reply-To: References: <7046B6BC-687E-41AD-A31D-354769107D48@mac.com> Message-ID: <411F61F3-F7F9-49E8-B73A-7673ECCC709A@economy-x-talk.com> Bill, on mouseUp answer file "Import Password Text File" with type "Text|txt" if it is not empty then put "binfile:" & it into vPathToFile put URL vPathToFile into fSource put unidecode(uniencode(fSource,"UTF8")) into fSource examineImport fSource else exit mouseUp end if end mouseUp on examineImport vPasswords put vPasswords into field "fPasswords" end examineImport -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 23 jan 2012, at 00:31, Bill Vlahos wrote: > Thanks to the beta testers they discovered a problem that I don't know how to fix?unicode. > > If the text file contains german umlaute ?,?,?. And these characters are not imported correctly. The ? (u umlaut) for example becomes ?? > > Here is the code: > on mouseUp > answer file "Import Password Text File" with type "Text|txt" > if it is not empty then > put "file:" & it into vPathToFile > put URL vPathToFile into fSource > examineImport fSource > else > exit mouseUp > end if > end mouseUp > > on examineImport vPasswords > put vPasswords into field "fPasswords" > end examineImport > > Any ideas? > > Thanks, > Bill Vlahos From jacque at hyperactivesw.com Sun Jan 22 22:12:20 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 22 Jan 2012 21:12:20 -0600 Subject: Opening a Supercard file in Livecode? In-Reply-To: <6009EC37-B0C2-4F5E-8C3E-8DF856668531@sonsothunder.com> References: <91070DB5-591F-4D73-A04E-CA24011E3B63@economy-x-talk.com> <6009EC37-B0C2-4F5E-8C3E-8DF856668531@sonsothunder.com> Message-ID: <4F1CD014.1060601@hyperactivesw.com> On 1/22/12 6:39 PM, Ken Ray wrote: > > On Jan 22, 2012, at 3:41 PM, Mark Schonewille wrote: > >> Hi Bob, >> >> There used to be a SuperCard-to-MetaCard converter. > > Yes, I created it back in 2007 and I still have it - it converted > SuperCard filed to XML and then XML to MetaCard (which was before > Revolution and LiveCode). Given that it's 5 years old, it's not > likely to work well, but if anyone wants a copy to try let me know. Was that the same one that RR was distributing? I remember when it broke. I told Kevin, and he updated it. Or I thought he did -- maybe he passed it to you. Were there two? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bvlahos at mac.com Sun Jan 22 22:16:01 2012 From: bvlahos at mac.com (Bill Vlahos) Date: Sun, 22 Jan 2012 19:16:01 -0800 Subject: Looking for beta testers import of passwords to InfoWallet In-Reply-To: <411F61F3-F7F9-49E8-B73A-7673ECCC709A@economy-x-talk.com> References: <7046B6BC-687E-41AD-A31D-354769107D48@mac.com> <411F61F3-F7F9-49E8-B73A-7673ECCC709A@economy-x-talk.com> Message-ID: Mark, Perfect. That's it! Coincidentally I also found it in the notes section for Open File by rodney at oceanbrowser.com: > If you are reading in a text file (for example) which contains high ascii values (such as curly quotes - numToChar(210) ) you will find that these are displayed as garbage in the variable watcher, or if you set directly to the field contents. > > The solution is to encode and decode the content: > > #tData contains your data read in from file > put uniDecode(uniEncode(tData, "UTF8")) into tData > > (All credit to Dave Cragg and Devin Assay for this tip) Thank you, Bill Vlahos _________________ InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. On Jan 22, 2012, at 7:00 PM, Mark Schonewille wrote: > Bill, > > on mouseUp > answer file "Import Password Text File" with type "Text|txt" > if it is not empty then > put "binfile:" & it into vPathToFile > put URL vPathToFile into fSource > put unidecode(uniencode(fSource,"UTF8")) into fSource > examineImport fSource > else > exit mouseUp > end if > end mouseUp > > on examineImport vPasswords > put vPasswords into field "fPasswords" > end examineImport > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za > > On 23 jan 2012, at 00:31, Bill Vlahos wrote: > >> Thanks to the beta testers they discovered a problem that I don't know how to fix?unicode. >> >> If the text file contains german umlaute ?,?,?. And these characters are not imported correctly. The ? (u umlaut) for example becomes ?? >> >> Here is the code: >> on mouseUp >> answer file "Import Password Text File" with type "Text|txt" >> if it is not empty then >> put "file:" & it into vPathToFile >> put URL vPathToFile into fSource >> examineImport fSource >> else >> exit mouseUp >> end if >> end mouseUp >> >> on examineImport vPasswords >> put vPasswords into field "fPasswords" >> end examineImport >> >> Any ideas? >> >> Thanks, >> Bill Vlahos > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From johnpatten at me.com Sun Jan 22 22:38:40 2012 From: johnpatten at me.com (JOHN PATTEN) Date: Sun, 22 Jan 2012 19:38:40 -0800 Subject: What about Apple's new ebook app and text book efforts? In-Reply-To: References: Message-ID: Who needs it if you have LiveCode? You would not need to be tied to Apple ULA in terms of their iAuthor format, etc. Or, am I missing something? What would be great is if LiveCode of a LiveCode developer turned around and created templates for the newbie LiveCoders to publish their eTextBooks in a style similar to Apple's tool. The the ability to zoom in and out of an image, play videos, and create image slide shows embedded in a window is not copyrighted yet, is it? Cheers! On Jan 22, 2012, at 4:07 PM, Mark Rauterkus wrote: > Hi, > > Anyone watching the news this week about Apple's ebook and text book apps > and endeavors? > > Seeking input as to how that might play with LC. > > Thanks. > > Mark Rauterkus > Mark at Rauterkus.com > > -- > -- > Ta. > > > Mark Rauterkus Mark.Rauterkus at gmail.com > http://Rauterkus.blogspot.com > http://FixPA.wikia.com > http://CLOH.wikia.com > 412 298 3432 = cell > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bvlahos at mac.com Sun Jan 22 22:40:20 2012 From: bvlahos at mac.com (Bill Vlahos) Date: Sun, 22 Jan 2012 19:40:20 -0800 Subject: Looking for beta testers import of passwords to InfoWallet In-Reply-To: References: <7046B6BC-687E-41AD-A31D-354769107D48@mac.com> <411F61F3-F7F9-49E8-B73A-7673ECCC709A@economy-x-talk.com> Message-ID: <09C2FD9D-393D-4739-9ACF-6FBAB69E26EA@mac.com> How do you guys know this stuff? Awesome. Bill On Jan 22, 2012, at 7:16 PM, Bill Vlahos wrote: > Mark, > > Perfect. That's it! > > Coincidentally I also found it in the notes section for Open File by rodney at oceanbrowser.com: >> If you are reading in a text file (for example) which contains high ascii values (such as curly quotes - numToChar(210) ) you will find that these are displayed as garbage in the variable watcher, or if you set directly to the field contents. >> >> The solution is to encode and decode the content: >> >> #tData contains your data read in from file >> put uniDecode(uniEncode(tData, "UTF8")) into tData >> >> (All credit to Dave Cragg and Devin Assay for this tip) From kray at sonsothunder.com Sun Jan 22 22:51:09 2012 From: kray at sonsothunder.com (Ken Ray) Date: Sun, 22 Jan 2012 21:51:09 -0600 Subject: Opening a Supercard file in Livecode? In-Reply-To: <4F1CD014.1060601@hyperactivesw.com> References: <91070DB5-591F-4D73-A04E-CA24011E3B63@economy-x-talk.com> <6009EC37-B0C2-4F5E-8C3E-8DF856668531@sonsothunder.com> <4F1CD014.1060601@hyperactivesw.com> Message-ID: <888E73FE-164E-42C0-BB80-66F7C32538E6@sonsothunder.com> On Jan 22, 2012, at 9:12 PM, J. Landman Gay wrote: > On 1/22/12 6:39 PM, Ken Ray wrote: >> >> On Jan 22, 2012, at 3:41 PM, Mark Schonewille wrote: >> >>> Hi Bob, >>> >>> There used to be a SuperCard-to-MetaCard converter. >> >> Yes, I created it back in 2007 and I still have it - it converted >> SuperCard filed to XML and then XML to MetaCard (which was before >> Revolution and LiveCode). Given that it's 5 years old, it's not >> likely to work well, but if anyone wants a copy to try let me know. > > Was that the same one that RR was distributing? I remember when it broke. I told Kevin, and he updated it. Or I thought he did -- maybe he passed it to you. Were there two? There must have been - I don't think the one I had ever made it into RR's hands (although it's been a while so maybe it's my memory). Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From pete at mollysrevenge.com Mon Jan 23 00:47:17 2012 From: pete at mollysrevenge.com (Pete) Date: Sun, 22 Jan 2012 21:47:17 -0800 Subject: What about Apple's new ebook app and text book efforts? In-Reply-To: References: Message-ID: I wouldn't be surprised if it was. I believe one of the accusations from Apple in their case against HTC was that tapping a phone number in a message and having the phone dial the number was copyright infringement. Intellectual property law astounds me some times. Pete On Sun, Jan 22, 2012 at 7:38 PM, JOHN PATTEN wrote: > The the ability to zoom in and out of an image, play videos, and create > image slide shows embedded in a window is not copyrighted yet, is it? > -- Pete Molly's Revenge From pete at mollysrevenge.com Mon Jan 23 00:55:43 2012 From: pete at mollysrevenge.com (Pete) Date: Sun, 22 Jan 2012 21:55:43 -0800 Subject: Developing on Mac, standalone on Windows Message-ID: I just compiled and ran my fist standalone on Windows and I'm finally realising the benefits of developing cross platform applications with LC. I was pretty amazed when everything I developed on my Mac just ran as expected on Windows! The on;y problem I need to address concerns fonts. I have a very few controls that depend on font size to correctly position themselves around other, non-textobjects and it seems that LC's default font on WIndows is different than on a Mac, or at least the font size/spacing is. I left the font and size blank in almost all of my controls' text formatting options but perhaps I need to name a specific font to have things line up correctly on OS X and Windows? -- Pete Molly's Revenge From pete at mollysrevenge.com Mon Jan 23 01:01:46 2012 From: pete at mollysrevenge.com (Pete) Date: Sun, 22 Jan 2012 22:01:46 -0800 Subject: Opening a Supercard file in Livecode? In-Reply-To: References: <91070DB5-591F-4D73-A04E-CA24011E3B63@economy-x-talk.com> Message-ID: Apologies if this is a duplicate post byt I didn't see my original reply make it to the list. I'm wondering if it might be worth the time if this was done as part of a version control system rather than as a convertor? The VC systems I've used alway have a way of comparing two code files and spitting out the differences between them. That's hard to do for LC because everything is buried in the structure of the stack.. If there was a way to export all the details of a stack to some sort of text format, it would make it a lot simpler to compare two versions of a stack file and show what changes were made to stacks, card, controls, and scripts. Pete On Sun, Jan 22, 2012 at 1:52 PM, stephen barncard < stephenREVOLUTION2 at barncard.com> wrote: > I think most here would agree for anything but the most basic stacks that > it's still better to do a translation by hand. > > It could always be done, but is it worth the time? > -- Pete Molly's Revenge From jacque at hyperactivesw.com Mon Jan 23 02:35:26 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 23 Jan 2012 01:35:26 -0600 Subject: What about Apple's new ebook app and text book efforts? In-Reply-To: References: Message-ID: <4F1D0DBE.6010809@hyperactivesw.com> On 1/22/12 11:47 PM, Pete wrote: > I wouldn't be surprised if it was. I believe one of the accusations from > Apple in their case against HTC was that tapping a phone number in a > message and having the phone dial the number was copyright infringement. > Intellectual property law astounds me some times. They've patented our genes now too. I don't own my DNA any more. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From dave.cragg at lacscentre.co.uk Mon Jan 23 05:26:15 2012 From: dave.cragg at lacscentre.co.uk (Dave Cragg) Date: Mon, 23 Jan 2012 10:26:15 +0000 Subject: Looking for beta testers import of passwords to InfoWallet In-Reply-To: References: <7046B6BC-687E-41AD-A31D-354769107D48@mac.com> <411F61F3-F7F9-49E8-B73A-7673ECCC709A@economy-x-talk.com> Message-ID: <4472D4FB-9E54-4130-9852-8012C112F665@lacscentre.co.uk> On 23 Jan 2012, at 03:16, Bill Vlahos wrote: > put uniDecode(uniEncode(tData, "UTF8")) into tData Bill, Using this approach assumes that the original text is either UTF-8 encoded or that it is plain ASCII with no "funny" characters with a charToNum value above 127. I don't think it will work if the original text contains "funny" characters and the encoding is something such as Latin-1 or Mac Roman. It wasn't clear from your original mail whether that was a possibility. Dave From bvlahos at mac.com Mon Jan 23 09:43:21 2012 From: bvlahos at mac.com (Bill Vlahos) Date: Mon, 23 Jan 2012 06:43:21 -0800 Subject: Looking for beta testers import of passwords to InfoWallet In-Reply-To: <4472D4FB-9E54-4130-9852-8012C112F665@lacscentre.co.uk> References: <7046B6BC-687E-41AD-A31D-354769107D48@mac.com> <411F61F3-F7F9-49E8-B73A-7673ECCC709A@economy-x-talk.com> <4472D4FB-9E54-4130-9852-8012C112F665@lacscentre.co.uk> Message-ID: Dave, Thanks for the comments. I won't actually know what the source of the text files will be. The most common examples will be as export files from any other password management program on Mac or Windows like 1Password, etc. or as a Save As CSV from Excel. Bill Vlahos _________________ InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. On Jan 23, 2012, at 2:26 AM, Dave Cragg wrote: > > On 23 Jan 2012, at 03:16, Bill Vlahos wrote: > >> put uniDecode(uniEncode(tData, "UTF8")) into tData > > Bill, > > Using this approach assumes that the original text is either UTF-8 encoded or that it is plain ASCII with no "funny" characters with a charToNum value above 127. I don't think it will work if the original text contains "funny" characters and the encoding is something such as Latin-1 or Mac Roman. It wasn't clear from your original mail whether that was a possibility. > > 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 From lfredricks at proactive-intl.com Mon Jan 23 10:21:33 2012 From: lfredricks at proactive-intl.com (Lynn Fredricks) Date: Mon, 23 Jan 2012 07:21:33 -0800 Subject: What about Apple's new ebook app and text book efforts? In-Reply-To: References: Message-ID: > Anyone watching the news this week about Apple's ebook and > text book apps and endeavors? > > Seeking input as to how that might play with LC. Last week, my other publishing business changed our monthly 3D seminar to include how to incorporate 3D content from Shade into iBooks made with author. From a technical perspective, it's a very attractive tool, and its kind of cool how easy it is to incorporate 3D stuff. On the other hand, I think the business model is flawed, at least for Apple: http://www.lynnfredricks.com/2012/01/19/ibooks-2-ibooks-author-attractive-bu t-frightening-solution-to-educational-publishing/ Also, the licensing terms are rather evil. http://www.zdnet.com/blog/bott/apples-mind-bogglingly-greedy-and-evil-licens e-agreement/4360 I can live with a closed garden platform as a private citizen - its my choice and, although it's a business model I don't entirely like, its not unlike the business model of most console game companies. On the other hand, I am totally opposed to the platform being used in publicly funded education until the platform and the file format are open. There are simply too many costs and too much ownership by Apple. What I do think is very possible is that Apple will open the way for a cheaper solution based on Android and ePUB 3 - although its not necessarily a native "LC" format, the power of LC to work with text based anything could result some extremely powerful publishing tools. Best regards, Lynn Fredricks Mirye Software Publishing http://www.mirye.com From kray at sonsothunder.com Mon Jan 23 11:10:38 2012 From: kray at sonsothunder.com (Ken Ray) Date: Mon, 23 Jan 2012 10:10:38 -0600 Subject: Developing on Mac, standalone on Windows In-Reply-To: References: Message-ID: On Jan 22, 2012, at 11:55 PM, Pete wrote: > I just compiled and ran my fist standalone on Windows and I'm finally > realising the benefits of developing cross platform applications with LC. > I was pretty amazed when everything I developed on my Mac just ran as > expected on Windows! > > The on;y problem I need to address concerns fonts. I have a very few > controls that depend on font size to correctly position themselves around > other, non-textobjects and it seems that LC's default font on WIndows is > different than on a Mac, or at least the font size/spacing is. > > I left the font and size blank in almost all of my controls' text > formatting options but perhaps I need to name a specific font to have > things line up correctly on OS X and Windows? Are you setting font names anywhere in your app or are you defaulting to the system fonts for everything? There are generally three schools of thought on font/platform management: 1) Use LC's built in property profiles. It's been a long time since I used them, and I came up with my own solution, so I don't really know the pros and cons. (Maybe someone else could fill this in?) 2) Pick a font that will be on all your target systems, and set the font of your stack(s) to that font, allowing it to be inherited by all cards and card objects. - Pros: Easy to set up and implement - Cons: Significant limitations on font choices; your controls will not end up being displayed in OS-compliant fonts; every control that has a separate style (like bold) will break the inheritance and you'll have to set those manually. 3) Set the font for your controls by hand, based on platform. - Pros: More control over what's happening; can apply the same text attributes to multiple objects by code without having to set individual properties on the controls (unless you want to) - Cons: Takes a little time to code and set up I have been using for a long time a frontscript that traps 'preOpenCard', and then just runs through the controls on the card in a repeat loop, setting the appropriate text attributes. For those controls that need custom styling (like bold, etc.), I check a custom property set and apply the styles/sizes/colors if it has them. Here's a scaled-down example of what I mean: -- Frontscript on preOpenCard repeat with x = 1 to the number of controls of this card put the customProperties["uTextAttribs"] of control x of this card into tAttribsA put "font,style,size,color" into tAttribs repeat for each item tAttrib in tAttribs if tAttribsA[tAttrib] <> "" then do "set the text" & tAttrib && "of control x of this card to tAttribsA[tAttrib]" else do "set the text" & tAttrib && "of control x of this card to TextAttribs(tAttrib)" end if end repeat end repeat pass preOpenCard end preOpenCard function TextAttribs pAttrib put "font,style,size,color" into tAttribs switch (the platform) case "MacOS" put "Lucida Grande,plain,12,black" into tSysAttribs break case "Win32" if (word 2 of the systemVersion) > 5.1 then put "Segoe UI,plain,12,black" into tSysAttribs else put "Tahoma,plain,11,black" into tSysAttribs end if break end switch return item (itemOffset(pAttrib,tAttribs)) of tSysAttribs end TextAttribs Obviously this doesn't handle a bunch of situations, isn't optimized, and is primarily meant to give you an idea how this can work. But LC is so fast that even with dozens of controls, the time to set the properties is not noticeable. Hope this helps, Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From livfoss at mac.com Mon Jan 23 11:34:24 2012 From: livfoss at mac.com (Graham Samuel) Date: Mon, 23 Jan 2012 17:34:24 +0100 Subject: Navigating XML in LiveCode In-Reply-To: References: Message-ID: Pete - thanks for your reply (the only one so far - are there no XML users on the list??). I understand that arrays would do the job, since the array structure in LC can be extended at will rather than having to be declared before use, although I'm not sure about a structure where some 'nodes' were missing - say in the employee database, if someone didn't have some characteristic like a parking slot etc then I would not want to create a null record just because some members of the employee set need one. I know that this missing out of unwanted nodes works really well in XML. However the real reason that I'm trying to go down the XML route is that I need this data to persist and I don't want the overhead of storing it in a stack rather than just keeping a trivial amount of text which furthermore could be easily examined/edited by non-LC programs. When one looks at examples of XML, such as the one by Sarah Reichelt at http://www.troz.net/rev/ I notice that people tend to use employee lists and the like; but so far I haven't found a very clear explanation of how you get attributes into new nodes at a stroke, which is my problem. (In fact I'm not really doing an employee database, but the concept is very similar.) I suppose more generally I'm trying to understand if XML is suitable for this kind of data structure, where there are several nodes identical or similar in structure but containing different data. It looks ideal to me, but the difficulty of finding the last item you added, and of adding attributes at creation time, is giving me doubts. But maybe I'm just confused. Graham On Sun, 22 Jan 2012 11:06:52 -0800, Pete wrote: > > Hi Graham, > I'll say upfront that I'm not familiar with XML so I'm really suggesting an > alternative rather than answering your question. > > Have you thought about using LC arrays rather than XML for this? LC arrays > are lightning fast to access and I think would work great for a small > dataset like this. > > The major key of your array could be the EmployeeID with subkeys holding > the various data values associated with the employee. With that type of > structure and assuming you know the employee id up front, you would create > your employee "node" with: > > put theEmpID into theArray["EmployeeID"] > > After that, you could populate the details with statements like: > > put "John Doe" into theArray[theEmpID]["EmployeeName"] etc.... > > Pete > > > > > > On Sun, Jan 22, 2012 at 6:45 AM, Graham Samuel wrote: > >> For no special reason I have never used XML, either in LiveCode or >> anywhere else. Now I'm scripting an app that calls for a tiny database >> containing a number of similarly structured records (probably not more than >> 50), with all the values essentially text or numbers easily expressible as >> text. XML seems a good fit for this, but there are some odd bits I can't >> understand despite reading Sarah Reichelt's useful tutorial and looking at >> the LiveCode dictionary and the User Guide. >> >> The issue is this - suppose I want to add a node to my data structure >> before I have any data (attributes or node contents) to put into it: for >> example in an employee list, I want to create an node as >> a member of a set of nodes all with that name - I may want to add subnodes >> too at the moment of creation, but that's not the real issue. >> >> My next step will be to make that particular instance of >> unique by giving it an attribute like say "EmployeeID" with a unique value. >> The problem is that I can't apparently do this in one step, although I >> would like to, so as to make sure that my new node can immediately be >> identified, searched for etc. First I have to create the node, and >> afterwards I want to add my attribute. But how can I find it? I suppose I >> could search for a node that hasn't got an "EmployeeID" attribute yet, or I >> could parse the whole structure to find the last node at that level, but >> both these methods seems kind of crude. Is there some way to keep track of >> the last node created, similar to LiveCode's feature within the creation of >> new objects? If there is, I can't find it. Or maybe I'm just thinking about >> it in the wrong way. >> >> Any help would be appreciated, as ever. >> >> Graham > From warren at warrensweb.us Mon Jan 23 11:37:45 2012 From: warren at warrensweb.us (Warren Samples) Date: Mon, 23 Jan 2012 10:37:45 -0600 Subject: Developing on Mac, standalone on Windows In-Reply-To: References: Message-ID: <4F1D8CD9.5020603@warrensweb.us> On 01/22/2012 11:55 PM, Pete wrote: > I just compiled and ran my fist standalone on Windows and I'm finally > realising the benefits of developing cross platform applications with LC. > I was pretty amazed when everything I developed on my Mac just ran as > expected on Windows! > > The on;y problem I need to address concerns fonts. I have a very few > controls that depend on font size to correctly position themselves around > other, non-textobjects and it seems that LC's default font on WIndows is > different than on a Mac, or at least the font size/spacing is. > > I left the font and size blank in almost all of my controls' text > formatting options but perhaps I need to name a specific font to have > things line up correctly on OS X and Windows? > > > -- Pete Molly's Revenge It may be worth the time to build a small app that lets you play with things like font choice and size, and text margins and run it as a standalone - margins and alignment are not always the same in a standalone as in the IDE - in whatever platforms (and various versions of these OSs!) you want to deploy in. It can be fairly simple and not really all that time consuming but may be very illuminating and helpful. This would leave you the ability to confidently set such things conditionally. Warren From ambassador at fourthworld.com Mon Jan 23 12:03:28 2012 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 23 Jan 2012 09:03:28 -0800 Subject: Launcher strategies Message-ID: <4F1D92E0.2050807@fourthworld.com> At the SoCal Linux Expo yesterday I ran into fellow LiveCode dev Todd Cranston-Cuebas, and over lunch we were brainstorming solutions to a problem he has and one option is something that's near and dear to the hearts of many xTalkers: a custom launcher UI. The idea is to present an alternative to the desktop for computers used in a specialized setting, so that the only options available are the ones the UI provides. Making these sorts of things was a popular hobby among many HyperCard fans, and it's not hard to do and reasonably useful as a startup app. But there's a problem with making this sort of kiosk-style launcher: It's too easy to launch an app and then have it go behind the launcher if they click on the launcher window. Ideally there would be some sort of stay-behind window property, sort of the opposite of a stay-in-front palette, but I know of know way to do that. Anyone here have an external or other solution for making a stay-in-back window in Mac, Win and Linux? Extra bonus points: what x-plat methods are there for trapping things like Cmd-Tab to prevent switching out of this sort of kiosk mode? TIA - -- 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 francois.chaplais at mines-paristech.fr Mon Jan 23 12:14:33 2012 From: francois.chaplais at mines-paristech.fr (=?iso-8859-1?Q?Fran=E7ois_Chaplais?=) Date: Mon, 23 Jan 2012 18:14:33 +0100 Subject: Launcher strategies In-Reply-To: <4F1D92E0.2050807@fourthworld.com> References: <4F1D92E0.2050807@fourthworld.com> Message-ID: <6FD4A825-14DE-4637-B6AB-92A8CFCCD643@mines-paristech.fr> On the mac, I use for my kid on the mac the simplified finder (on 10.3.9) with access to a limited number of apps (which I have chose). No access to hard drives, folders, etc.. Very foolproof. Le 23 janv. 2012 ? 18:03, Richard Gaskin a ?crit : > At the SoCal Linux Expo yesterday I ran into fellow LiveCode dev Todd Cranston-Cuebas, and over lunch we were brainstorming solutions to a problem he has and one option is something that's near and dear to the hearts of many xTalkers: a custom launcher UI. > > The idea is to present an alternative to the desktop for computers used in a specialized setting, so that the only options available are the ones the UI provides. > > Making these sorts of things was a popular hobby among many HyperCard fans, and it's not hard to do and reasonably useful as a startup app. > > But there's a problem with making this sort of kiosk-style launcher: > > It's too easy to launch an app and then have it go behind the launcher if they click on the launcher window. > > Ideally there would be some sort of stay-behind window property, sort of the opposite of a stay-in-front palette, but I know of know way to do that. > > Anyone here have an external or other solution for making a stay-in-back window in Mac, Win and Linux? > > Extra bonus points: what x-plat methods are there for trapping things like Cmd-Tab to prevent switching out of this sort of kiosk mode? > > TIA - > > -- > 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 andre at andregarzia.com Mon Jan 23 12:23:43 2012 From: andre at andregarzia.com (Andre Garzia) Date: Mon, 23 Jan 2012 15:23:43 -0200 Subject: Launcher strategies In-Reply-To: <4F1D92E0.2050807@fourthworld.com> References: <4F1D92E0.2050807@fourthworld.com> Message-ID: Richard, Long time ago, I built a simple kiosk external that would prevent the user from CMD+TABing out of the application. I know something similar can be built for windows too, maybe even with vbscript. For linux, I have no clue but just launching XOrg with no panels and just loading your app, the user will have no where to go. =) On Mon, Jan 23, 2012 at 3:03 PM, Richard Gaskin wrote: > At the SoCal Linux Expo yesterday I ran into fellow LiveCode dev Todd > Cranston-Cuebas, and over lunch we were brainstorming solutions to a > problem he has and one option is something that's near and dear to the > hearts of many xTalkers: a custom launcher UI. > > The idea is to present an alternative to the desktop for computers used in > a specialized setting, so that the only options available are the ones the > UI provides. > > Making these sorts of things was a popular hobby among many HyperCard > fans, and it's not hard to do and reasonably useful as a startup app. > > But there's a problem with making this sort of kiosk-style launcher: > > It's too easy to launch an app and then have it go behind the launcher if > they click on the launcher window. > > Ideally there would be some sort of stay-behind window property, sort of > the opposite of a stay-in-front palette, but I know of know way to do that. > > Anyone here have an external or other solution for making a stay-in-back > window in Mac, Win and Linux? > > Extra bonus points: what x-plat methods are there for trapping things > like Cmd-Tab to prevent switching out of this sort of kiosk mode? > > TIA - > > -- > 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 > -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. From camm29 at tesco.net Mon Jan 23 12:28:21 2012 From: camm29 at tesco.net (Camm) Date: Mon, 23 Jan 2012 17:28:21 +0000 (UTC) Subject: Getting Text from another open application window Message-ID: <394892401.510117.1327339701827.JavaMail.root@md01.topaz.synacor.com> Hi , I have a windows (non-livecode) application that displays text data from?a test instrument?, is it possible for livecode to import the displayed data realtime?for decoding etc. Regards Camm From ambassador at fourthworld.com Mon Jan 23 12:48:58 2012 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 23 Jan 2012 09:48:58 -0800 Subject: Opening a Supercard file in Livecode? In-Reply-To: <9611AF26-EED8-4022-BDD3-C153581D4E4D@jhj.com> References: <9611AF26-EED8-4022-BDD3-C153581D4E4D@jhj.com> Message-ID: <4F1D9D8A.3030008@fourthworld.com> Jerry Jensen wrote: > Always take advantage of a good excuse to rewrite your code. The first pancake is never the best one! Well said. The SC->Rev converter RunRev used to offer was okay but not completely bug-free, and Ken's was more complete but it was so long ago and SC has added so many objects since then that I don't know how valuable either converter would be today. But even with the best possible converter, Stephen pointed out the weakness with such an approach: at best you're using only the features that intersect between the two tools, so you'll never get an optimal LiveCode solution with an automated converter. I've done enough SC->Rev conversions over the years that I'm fully convinced that automation is not the most productive thing to do. Seductive perhaps, but not productive. You just miss too many opportunities to streamline objects and code for LiveCode-specific ways of doing things that it's almost always a better investment of time to use the SC version only as an inspiration for making a native LiveCode version from scratch. As for XML version control: It's possible to write an XML description of a stack and reproduce it with complete fidelity. In fact, the ability to set the ID of any object was added specifically to support such efforts, and I believe such a project is in development now to help LC devs use standard version control systems for larger projects. But it's a lot of work and a lot of time spent on the version control process that could be spent on product features, so the cost/benefit analysis should be done carefully for the project at hand. In my own projects I usually have teams of between 3 and 5 devs, and we usually assign stacks to programmers according to their skills and interest so there's rarely any overlap. In fact, the largest xTalk project I ever managed had 20 devs building a CBT system for a Fortune 500 company and we still used only a stack-based check-in/check-out. One of the attractions to more granular version control is the ability to have multiple devs working on the same objects simultaneously. But is that something you really want to do? That seems more of a project management problem than a technical one, raising questions about optimal skillset usage more than simple workflow management. Factoring a project into UI stacks, library stacks, and other stack-based components can make it easy to manage teams of the size we commonly see with LiveCode projects, using simple with-the-grain methods of stack-based check-in/check-out like Magic Carpet and similar solutions. Stacks aren't the ideal dividing line for all project management, but for the sort of stuff we see in this community they often provide a clean and simple solution that makes keeping things on track a breeze. -- 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 Mon Jan 23 13:08:44 2012 From: bobs at twft.com (Bob Sneidar) Date: Mon, 23 Jan 2012 10:08:44 -0800 Subject: Navigating XML in LiveCode In-Reply-To: References: Message-ID: <2F3703FE-2004-424E-A5F9-16EEC2A29445@twft.com> Doesn't Livecode have a complete XML Library? I just searched for XML in the dictionary and came up with a host of commands. I bet studying these would shed some light on what needs to be done. Also, perhaps looking at a simple XML file would benefit you. Many Apple prefs files are XML I think. Bob On Jan 23, 2012, at 8:34 AM, Graham Samuel wrote: > Pete - thanks for your reply (the only one so far - are there no XML users on the list??). I understand that arrays would do the job, since the array structure in LC can be extended at will rather than having to be declared before use, although I'm not sure about a structure where some 'nodes' were missing - say in the employee database, if someone didn't have some characteristic like a parking slot etc then I would not want to create a null record just because some members of the employee set need one. I know that this missing out of unwanted nodes works really well in XML. > > However the real reason that I'm trying to go down the XML route is that I need this data to persist and I don't want the overhead of storing it in a stack rather than just keeping a trivial amount of text which furthermore could be easily examined/edited by non-LC programs. When one looks at examples of XML, such as the one by Sarah Reichelt at > > http://www.troz.net/rev/ > > I notice that people tend to use employee lists and the like; but so far I haven't found a very clear explanation of how you get attributes into new nodes at a stroke, which is my problem. (In fact I'm not really doing an employee database, but the concept is very similar.) > > I suppose more generally I'm trying to understand if XML is suitable for this kind of data structure, where there are several nodes identical or similar in structure but containing different data. It looks ideal to me, but the difficulty of finding the last item you added, and of adding attributes at creation time, is giving me doubts. But maybe I'm just confused. > > Graham > > On Sun, 22 Jan 2012 11:06:52 -0800, Pete wrote: >> >> Hi Graham, >> I'll say upfront that I'm not familiar with XML so I'm really suggesting an >> alternative rather than answering your question. >> >> Have you thought about using LC arrays rather than XML for this? LC arrays >> are lightning fast to access and I think would work great for a small >> dataset like this. >> >> The major key of your array could be the EmployeeID with subkeys holding >> the various data values associated with the employee. With that type of >> structure and assuming you know the employee id up front, you would create >> your employee "node" with: >> >> put theEmpID into theArray["EmployeeID"] >> >> After that, you could populate the details with statements like: >> >> put "John Doe" into theArray[theEmpID]["EmployeeName"] etc.... >> >> Pete >> >> >> >> >> >> On Sun, Jan 22, 2012 at 6:45 AM, Graham Samuel wrote: >> >>> For no special reason I have never used XML, either in LiveCode or >>> anywhere else. Now I'm scripting an app that calls for a tiny database >>> containing a number of similarly structured records (probably not more than >>> 50), with all the values essentially text or numbers easily expressible as >>> text. XML seems a good fit for this, but there are some odd bits I can't >>> understand despite reading Sarah Reichelt's useful tutorial and looking at >>> the LiveCode dictionary and the User Guide. >>> >>> The issue is this - suppose I want to add a node to my data structure >>> before I have any data (attributes or node contents) to put into it: for >>> example in an employee list, I want to create an node as >>> a member of a set of nodes all with that name - I may want to add subnodes >>> too at the moment of creation, but that's not the real issue. >>> >>> My next step will be to make that particular instance of >>> unique by giving it an attribute like say "EmployeeID" with a unique value. >>> The problem is that I can't apparently do this in one step, although I >>> would like to, so as to make sure that my new node can immediately be >>> identified, searched for etc. First I have to create the node, and >>> afterwards I want to add my attribute. But how can I find it? I suppose I >>> could search for a node that hasn't got an "EmployeeID" attribute yet, or I >>> could parse the whole structure to find the last node at that level, but >>> both these methods seems kind of crude. Is there some way to keep track of >>> the last node created, similar to LiveCode's feature within the creation of >>> new objects? If there is, I can't find it. Or maybe I'm just thinking about >>> it in the wrong way. >>> >>> Any help would be appreciated, as ever. >>> >>> Graham >> > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mon Jan 23 13:09:59 2012 From: stgoldberg at aol.com (stgoldberg at aol.com) Date: Mon, 23 Jan 2012 13:09:59 -0500 (EST) Subject: What about Apple's new ebook app and text book efforts? Message-ID: <8CEA8115A98ECC3-1640-6989@web-mmc-d09.sysops.aol.com> Apple's description of how to add information to the new iBooks Author includes the ability to quickly attach "widgets" to the interactive eBook. The question is whether such widgets can be created in LiveCode. If this is not possible, just how difficult would it be to create from scratch an eBook template using LC alone? Stephen Goldberg President, MedMaster Publishing Co. www.medmaster.net Who needs it if you have LiveCode? You would not need to be tied to Apple ULA in terms of their iAuthor format, etc. Or, am I missing something? What would be great is if LiveCode of a LiveCode developer turned around and created templates for the newbie LiveCoders to publish their eTextBooks in a style similar to Apple's tool. The the ability to zoom in and out of an image, play videos, and create image slide shows embedded in a window is not copyrighted yet, is it? Cheers! On Jan 22, 2012, at 4:07 PM, Mark Rauterkus wrote: > Hi, > Anyone watching the news this week about Apple's ebook and text book apps > and endeavors? > Seeking input as to how that might play with LC. > Thanks. > Mark Rauterkus > Mark at Rauterkus.com From stephenREVOLUTION2 at barncard.com Mon Jan 23 13:11:41 2012 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Mon, 23 Jan 2012 10:11:41 -0800 Subject: Getting Text from another open application window In-Reply-To: <394892401.510117.1327339701827.JavaMail.root@md01.topaz.synacor.com> References: <394892401.510117.1327339701827.JavaMail.root@md01.topaz.synacor.com> Message-ID: Most professional test instruments have some kind of interface - does the test device have any serial or IEEE interface? Livecode really can't grok the data space of another application. The application must provide an API or some kind of hardware interface. If it's a Macintosh application, check and see if it has an Applescript dictionary. You can use the Applescript script editor to examine the app in question. If there is one, you will see the definitions and can do a "Do as Applescript". For instance, I built a mute button in Livecode to control Skype and iTunes at the same time. On 23 January 2012 09:28, Camm wrote: > > > Hi , > > > > I have a windows (non-livecode) application that displays text data from a > test instrument , is it possible for livecode to import the displayed data > realtime for decoding etc. > > > > > > > > Regards > > Camm > _______________________________________________ > use-livecode mailing list > use-livecode 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 Jan 23 13:12:58 2012 From: bobs at twft.com (Bob Sneidar) Date: Mon, 23 Jan 2012 10:12:58 -0800 Subject: Developing on Mac, standalone on Windows In-Reply-To: References: Message-ID: <40E651D0-FA9F-4FFE-AEDE-D1CF070759B6@twft.com> In the app I am writing now, I am going to have to face this issue. My solution was going to be choosing fonts that either exist on both platforms, or installing the ones that are not. I REALLY like the Belgium font for headers and what not, so my intention is to install it on Windows in some kind of custom app installer if it doesn't already exist. I should run a test soon to see how that will play. Bob On Jan 22, 2012, at 9:55 PM, Pete wrote: > I just compiled and ran my fist standalone on Windows and I'm finally > realising the benefits of developing cross platform applications with LC. > I was pretty amazed when everything I developed on my Mac just ran as > expected on Windows! > > The on;y problem I need to address concerns fonts. I have a very few > controls that depend on font size to correctly position themselves around > other, non-textobjects and it seems that LC's default font on WIndows is > different than on a Mac, or at least the font size/spacing is. > > I left the font and size blank in almost all of my controls' text > formatting options but perhaps I need to name a specific font to have > things line up correctly on OS X and Windows? > > > -- > 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 kray at sonsothunder.com Mon Jan 23 13:15:13 2012 From: kray at sonsothunder.com (Ken Ray) Date: Mon, 23 Jan 2012 12:15:13 -0600 Subject: Navigating XML in LiveCode In-Reply-To: References: Message-ID: On Jan 23, 2012, at 10:34 AM, Graham Samuel wrote: > Pete - thanks for your reply (the only one so far - are there no XML users on the list??). Sorry, Graham? was a bit busy before to respond. > I notice that people tend to use employee lists and the like; but so far I haven't found a very clear explanation of how you get attributes into new nodes at a stroke, which is my problem. (In fact I'm not really doing an employee database, but the concept is very similar.) You can't do that in one go; you'd need to use three commands/functions: revInsertXMLNode (or revAddXMLNode) -- to create a new XML node in the tree revXMLNumberOfChildren -- to count the number of "employee" nodes there are either before or after you create the new node revSetXMLAttribute -- to set the attribute on the new node you created. > I suppose more generally I'm trying to understand if XML is suitable for this kind of data structure, where there are several nodes identical or similar in structure but containing different data. It looks ideal to me, but the difficulty of finding the last item you added, and of adding attributes at creation time, is giving me doubts. But maybe I'm just confused. So suppose you had a simple XML tree like this that was in the variable "tMyXML": and you want to add a new employee. If you're using the revXML external, you'd first load the XML and parse it and get a 'tree ID', which is the indicator for the XML document you're using: put revCreateXMLTree(tMyXML,false,true,false) into tTreeID Next, you want to use that tree to add a node, like this: put "/root/employees" into tRootNode -- makes it easier to work with put revXMLNumberOfChildren(tTreeID, tRootNode,"employee") into tNodeCount -- which is "1" in our case revInsertXMLNode tTreeID, (tRootNode & "/employee[" & tNodeCount & "]"),"employee","","after" -- Now the new node is added as "employee[2]" (which is the same as "tNodeCount+1") put tNodeCount+1 into tNewNum -- Set the attributes: revSetXMLAttribute tTreeID,(tRootNode & "/employee[" & tNewNum & "]"),"firstName","Graham" revSetXMLAttribute tTreeID,(tRootNode & "/employee[" & tNewNum & "]"),"lastName","Samuel" If you're using my script-only stsXMLLibrary, you'd do this: put "/root/employees" into tRootNode -- makes it easier to work with put stsXML_LoadData(tMyXML) into tDocID put stsXML_AppendChild(tDocID & tRootNode,"ELEM","employee") into tNewNodeID get stsXML_SetAttribute(tNewNodeID,"firstName","Graham") get stsXML_SetAttribute(tNewNodeID,"lastName","Samuel") It's a bit of a pain, but that's XML for you? and don't forget to add error checking after each command/function call just to make sure your XML isn't returning errors. Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From kray at sonsothunder.com Mon Jan 23 13:25:11 2012 From: kray at sonsothunder.com (Ken Ray) Date: Mon, 23 Jan 2012 12:25:11 -0600 Subject: Navigating XML in LiveCode In-Reply-To: References: Message-ID: <97E2782A-E062-40B4-ADDA-8387C4F6E6B6@sonsothunder.com> > If you're using my script-only stsXMLLibrary, you'd do this: > > put "/root/employees" into tRootNode -- makes it easier to work with > put stsXML_LoadData(tMyXML) into tDocID > put stsXML_AppendChild(tDocID & tRootNode,"ELEM","employee") into tNewNodeID > get stsXML_SetAttribute(tNewNodeID,"firstName","Graham") > get stsXML_SetAttribute(tNewNodeID,"lastName","Samuel") Whoops! Sorry, forgot a param on the last two lines? it should have been: get stsXML_SetAttribute(tNewNodeID,"firstName","Graham",true) get stsXML_SetAttribute(tNewNodeID,"lastName","Samuel",true) Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From pete at mollysrevenge.com Mon Jan 23 13:55:31 2012 From: pete at mollysrevenge.com (Pete) Date: Mon, 23 Jan 2012 10:55:31 -0800 Subject: Developing on Mac, standalone on Windows In-Reply-To: References: Message-ID: Thanks Ken and Warren. In 99% of cases, the font, size, style, etc are left at whatever LC's default is, which sounds like the system font for the platform. I like the idea of having a small test application to find the best solution for this, plus thanks Ken for the frontscript and other ideas. I'll be trying out all this stuff in the next couple of days. Pete On Mon, Jan 23, 2012 at 8:10 AM, Ken Ray wrote: > > On Jan 22, 2012, at 11:55 PM, Pete wrote: > > > I just compiled and ran my fist standalone on Windows and I'm finally > > realising the benefits of developing cross platform applications with LC. > > I was pretty amazed when everything I developed on my Mac just ran as > > expected on Windows! > > > > The on;y problem I need to address concerns fonts. I have a very few > > controls that depend on font size to correctly position themselves around > > other, non-textobjects and it seems that LC's default font on WIndows is > > different than on a Mac, or at least the font size/spacing is. > > > > I left the font and size blank in almost all of my controls' text > > formatting options but perhaps I need to name a specific font to have > > things line up correctly on OS X and Windows? > > Are you setting font names anywhere in your app or are you defaulting to > the system fonts for everything? There are generally three schools of > thought on font/platform management: > > 1) Use LC's built in property profiles. It's been a long time since I used > them, and I came up with my own solution, so I don't really know the pros > and cons. (Maybe someone else could fill this in?) > > 2) Pick a font that will be on all your target systems, and set the font > of your stack(s) to that font, allowing it to be inherited by all cards and > card objects. > - Pros: Easy to set up and implement > - Cons: Significant limitations on font choices; your controls will > not end up being displayed in OS-compliant fonts; every control that has a > separate style (like bold) will break the inheritance and you'll have to > set those manually. > > 3) Set the font for your controls by hand, based on platform. > - Pros: More control over what's happening; can apply the same text > attributes to multiple objects by code without having to set individual > properties on the controls (unless you want to) > - Cons: Takes a little time to code and set up > > I have been using for a long time a frontscript that traps 'preOpenCard', > and then just runs through the controls on the card in a repeat loop, > setting the appropriate text attributes. For those controls that need > custom styling (like bold, etc.), I check a custom property set and apply > the styles/sizes/colors if it has them. Here's a scaled-down example of > what I mean: > > -- Frontscript > on preOpenCard > repeat with x = 1 to the number of controls of this card > put the customProperties["uTextAttribs"] of control x of this card into > tAttribsA > put "font,style,size,color" into tAttribs > repeat for each item tAttrib in tAttribs > if tAttribsA[tAttrib] <> "" then > do "set the text" & tAttrib && "of control x of this card to > tAttribsA[tAttrib]" > else > do "set the text" & tAttrib && "of control x of this card to > TextAttribs(tAttrib)" > end if > end repeat > end repeat > pass preOpenCard > end preOpenCard > > function TextAttribs pAttrib > put "font,style,size,color" into tAttribs > switch (the platform) > case "MacOS" > put "Lucida Grande,plain,12,black" into tSysAttribs > break > case "Win32" > if (word 2 of the systemVersion) > 5.1 then > put "Segoe UI,plain,12,black" into tSysAttribs > else > put "Tahoma,plain,11,black" into tSysAttribs > end if > break > end switch > return item (itemOffset(pAttrib,tAttribs)) of tSysAttribs > end TextAttribs > > Obviously this doesn't handle a bunch of situations, isn't optimized, and > is primarily meant to give you an idea how this can work. But LC is so fast > that even with dozens of controls, the time to set the properties is not > noticeable. > > Hope this helps, > > Ken Ray > Sons of Thunder Software, Inc. > Email: kray at sonsothunder.com > Web Site: http://www.sonsothunder.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 > > -- Pete Molly's Revenge From richmondmathewson at gmail.com Mon Jan 23 13:59:04 2012 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 23 Jan 2012 20:59:04 +0200 Subject: Opening a Supercard file in Livecode? In-Reply-To: References: Message-ID: <4F1DADF8.9070106@gmail.com> On 01/22/2012 11:20 PM, Bob Earp wrote: > Far be it for me to question your wisdom here Jacque, but are you sure this is true for Rev (not LC) ? > > I went from HC to SC to ToolBook and then Rev, and at the time of looking at Rev, I can remember one of the enticements for moving was the ability to import HC& SC into Rev. I knew a bunch of guys at Allegiant back then, and thought that the SC format was not that different from HC, and very similar to MetaCard. > > I also seem to remember somebody writing a translator from TB to Rev, which basically dumped a text file description of every object with their scripts, and then built a stack from that in Rev. The only problem was that Rev did things so much better in some areas, most of the time it was more beneficial to rebuild the TB project into a new Rev stack, and only use the valuable stuff like media. > > Then again, maybe I'm just getting old and my memory is playing tricks ;-) > > best, Bob... > > There is a Supercard stack that can do "something" with Supercard 3 stacks so that it can be leveraged for Livecode. The only problem is that this requires the end-user to own Supercard 3; and, as Supercard is at about 4.5 not much cop at all. From richmondmathewson at gmail.com Mon Jan 23 14:03:46 2012 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 23 Jan 2012 21:03:46 +0200 Subject: Opening a Supercard file in Livecode? In-Reply-To: <4F1D9D8A.3030008@fourthworld.com> References: <9611AF26-EED8-4022-BDD3-C153581D4E4D@jhj.com> <4F1D9D8A.3030008@fourthworld.com> Message-ID: <4F1DAF12.2040804@gmail.com> On 01/23/2012 07:48 PM, Richard Gaskin wrote: > Jerry Jensen wrote: > >> Always take advantage of a good excuse to rewrite your code. The >> first pancake is never the best one! > > Well said. > That's all well and good, unless, like me, you, being Scots, end up with Drop-scones instead of pancakes :) Mind you, I could never understand "pancakes" as they seem to be nothing more than vehicles for conveying other things; while a guid Scots drop-scone is a meal in and of itself . . . :) And, as some of you are aware after my 9000 line code debacle, my Livecode coding is filling to the point of satiety. Richmond. From pete at mollysrevenge.com Mon Jan 23 14:15:03 2012 From: pete at mollysrevenge.com (Pete) Date: Mon, 23 Jan 2012 11:15:03 -0800 Subject: Opening a Supercard file in Livecode? In-Reply-To: <4F1D9D8A.3030008@fourthworld.com> References: <9611AF26-EED8-4022-BDD3-C153581D4E4D@jhj.com> <4F1D9D8A.3030008@fourthworld.com> Message-ID: All good points. I guess I'm thinking of a different situation that multiple people working on the same project. When someone reports a bug that crept into a particular version of an application, it would be useful to see what changes were made to the stack that might have introduced the bug. But I agree that writing the code to reproduce a stack file as XML would be a lot of work and probably not worth the time and cost - unless someone believed it would be a product that LC developers would buy.... Pete On Mon, Jan 23, 2012 at 9:48 AM, Richard Gaskin wrote: > As for XML version control: > > It's possible to write an XML description of a stack and reproduce it with > complete fidelity. In fact, the ability to set the ID of any object was > added specifically to support such efforts, and I believe such a project is > in development now to help LC devs use standard version control systems for > larger projects. > > But it's a lot of work and a lot of time spent on the version control > process that could be spent on product features, so the cost/benefit > analysis should be done carefully for the project at hand. > > In my own projects I usually have teams of between 3 and 5 devs, and we > usually assign stacks to programmers according to their skills and interest > so there's rarely any overlap. In fact, the largest xTalk project I ever > managed had 20 devs building a CBT system for a Fortune 500 company and we > still used only a stack-based check-in/check-out. > > One of the attractions to more granular version control is the ability to > have multiple devs working on the same objects simultaneously. > > But is that something you really want to do? > -- Pete Molly's Revenge From Camm29 at tesco.net Mon Jan 23 15:06:32 2012 From: Camm29 at tesco.net (Camm) Date: Mon, 23 Jan 2012 20:06:32 -0000 Subject: Getting Text from another open application window In-Reply-To: References: <394892401.510117.1327339701827.JavaMail.root@md01.topaz.synacor.com> Message-ID: <000d01ccda0a$80f1f350$82d5d9f0$@tesco.net> It a Windows based app. The machine is standalone and has no external data connections. It could be possible via the SDK , but that would mean writing externals. Are we saying that livecode cannot get text from other displayed window ? Best Regards Camm -----Original Message----- From: use-livecode-bounces at lists.runrev.com [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of stephen barncard Sent: 23 January 2012 18:12 To: How to use LiveCode Subject: Re: Getting Text from another open application window Most professional test instruments have some kind of interface - does the test device have any serial or IEEE interface? Livecode really can't grok the data space of another application. The application must provide an API or some kind of hardware interface. If it's a Macintosh application, check and see if it has an Applescript dictionary. You can use the Applescript script editor to examine the app in question. If there is one, you will see the definitions and can do a "Do as Applescript". For instance, I built a mute button in Livecode to control Skype and iTunes at the same time. On 23 January 2012 09:28, Camm wrote: > > > Hi , > > > > I have a windows (non-livecode) application that displays text data > from a test instrument , is it possible for livecode to import the > displayed data realtime for decoding etc. > > > > > > > > Regards > > Camm > _______________________________________________ > use-livecode mailing list > use-livecode 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 ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2012.0.1901 / Virus Database: 2109/4761 - Release Date: 01/23/12 ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2012.0.1901 / Virus Database: 2109/4761 - Release Date: 01/23/12 ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2012.0.1901 / Virus Database: 2109/4761 - Release Date: 01/23/12 ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2012.0.1901 / Virus Database: 2109/4761 - Release Date: 01/23/12 From jhurley0305 at sbcglobal.net Mon Jan 23 15:16:48 2012 From: jhurley0305 at sbcglobal.net (Jim Hurley) Date: Mon, 23 Jan 2012 12:16:48 -0800 Subject: Revlets on the web In-Reply-To: References: Message-ID: I think I knew how to do this at one time. I have an app saved for the Web as a revlet After saving as a standalone (for the web) a page opens in Safari that says it is a test page--BUT NOT APP. Is the app supposed to open in Safari as a RevLet? The file created on my drive consists as a folder (MyAppFolder) containing two files (MyApp.revlet and test.html) I uploaded the folder to my web site. Now, how would someone run it on the web? Assuming they have downloaded the player. What is the url? Jim From rjearp at hotmail.com Mon Jan 23 15:51:20 2012 From: rjearp at hotmail.com (Bob Earp) Date: Mon, 23 Jan 2012 12:51:20 -0800 Subject: Opening a Supercard file in Livecode? Message-ID: Well, I think you are half correct Richard. These sort of decisions need to be made on a case by case basis, and although I'd love to be paid for rewriting code every time I'm asked to edit something, I can't find customers that would cough up the moolah. However, if you have some that you can pass along, please let me know ;-) Firstly, I submit that projects that worked very acceptably in SC on an old machine will certainly not run worse non-optimzed in LC on a new machine. Secondly, where the original SC project was very complex and consumed hundreds if not thousands of hours getting it to a release point, it would likely take far less time with a converter, even with bugs, than creating from scratch. For example, I have some old SC simulations of aircraft systems that would be very beneficial to a couple of customers in an LC and/or an iOS version. They don't need any updating, just moving to a new environment. I'm shamed to say that I can't find the original project documentation, so creating from scratch truly is starting from a blank sheet of paper, but a working SC project. Then again, going from ToolBook to Rev (now LC) with an eLearning authoring system and LMS, which is equally as complex, was a complete failure using the converter route. The syntax was just a tad too different/obtuse, plus Rev had built in functions that I had to script in TB. So the end result was rebuild from scratch with a much better product. I did have the original project documentation too !! BTW, your description of the SC -> Rev converter sounds a lot like my code. Good, but not completely bug free ;-) best, Bob... PS, for those readers whose English is not their first language, moolah is slang for money, but its origins are unknown. To quote one reference, "As a vernacular synonym for ?money? since the late 1930s, ?moolah? has the swing and swagger of great slang and instantly brands its user as way too cool to sweat the small change of life." I'm not that old, but in the hope I am branded in the latter category, I decided to use it ;-) Richard Gaskin wrote: > Jerry Jensen wrote: > >> Always take advantage of a good excuse to rewrite your code. The first pancake is never the best one! > > Well said. > > The SC->Rev converter RunRev used to offer was okay but not completely > bug-free, and Ken's was more complete but it was so long ago and SC has > added so many objects since then that I don't know how valuable either > converter would be today. > > But even with the best possible converter, Stephen pointed out the > weakness with such an approach: at best you're using only the features > that intersect between the two tools, so you'll never get an optimal > LiveCode solution with an automated converter. > > I've done enough SC->Rev conversions over the years that I'm fully > convinced that automation is not the most productive thing to do. > Seductive perhaps, but not productive. You just miss too many > opportunities to streamline objects and code for LiveCode-specific ways > of doing things that it's almost always a better investment of time to > use the SC version only as an inspiration for making a native LiveCode > version from scratch. Bob Earp White Rock, British Columbia. From jiml at netrin.com Mon Jan 23 16:10:01 2012 From: jiml at netrin.com (Jim Lambert) Date: Mon, 23 Jan 2012 13:10:01 -0800 Subject: Launcher strategies In-Reply-To: References: Message-ID: <8BBCEEBC-B333-483C-8B5E-57A9B28025B9@netrin.com> Ah, remember pre-OSX when you could replace the entire Finder with your own app? Jim Lambert From dunbarx at aol.com Mon Jan 23 16:17:52 2012 From: dunbarx at aol.com (dunbarx at aol.com) Date: Mon, 23 Jan 2012 16:17:52 -0500 (EST) Subject: mouseControl In-Reply-To: <8BBCEEBC-B333-483C-8B5E-57A9B28025B9@netrin.com> References: <8BBCEEBC-B333-483C-8B5E-57A9B28025B9@netrin.com> Message-ID: <8CEA82B99FBC946-24E8-34B1F@webmail-m153.sysops.aol.com> Sorry if this has been answered already. Possibly to me. What is wrong with this: on mouseUp repeat until the mouseclick put the mouseControl end repeat end mouseUp Why don't I get a continuous rundown of the objects underlying the cursor? Thanks Craig Newman From kray at sonsothunder.com Mon Jan 23 16:57:44 2012 From: kray at sonsothunder.com (Ken Ray) Date: Mon, 23 Jan 2012 15:57:44 -0600 Subject: mouseControl In-Reply-To: <8CEA82B99FBC946-24E8-34B1F@webmail-m153.sysops.aol.com> References: <8BBCEEBC-B333-483C-8B5E-57A9B28025B9@netrin.com> <8CEA82B99FBC946-24E8-34B1F@webmail-m153.sysops.aol.com> Message-ID: On Jan 23, 2012, at 3:17 PM, DunbarX at aol.com wrote: > > > Sorry if this has been answered already. Possibly to me. > > > What is wrong with this: > on mouseUp > repeat until the mouseclick > put the mouseControl > end repeat > end mouseUp Try "repeat until the mouse is down" ? if that doesn't work, add in "wait 0 milliseconds with messages" inside your repeat loop; you may need to give LC time to get the message to respond Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From pmbrig at gmail.com Mon Jan 23 17:05:56 2012 From: pmbrig at gmail.com (Peter M. Brigham, MD) Date: Mon, 23 Jan 2012 17:05:56 -0500 Subject: What about Apple's new ebook app and text book efforts? In-Reply-To: <4F1D0DBE.6010809@hyperactivesw.com> References: <4F1D0DBE.6010809@hyperactivesw.com> Message-ID: <84C61475-79B8-45FB-99D1-80EB391F928F@gmail.com> On Jan 23, 2012, at 2:35 AM, J. Landman Gay wrote: > On 1/22/12 11:47 PM, Pete wrote: >> I wouldn't be surprised if it was. I believe one of the accusations from >> Apple in their case against HTC was that tapping a phone number in a >> message and having the phone dial the number was copyright infringement. >> Intellectual property law astounds me some times. > > They've patented our genes now too. I don't own my DNA any more. I'm dreading the time when they can patent my neurotransmitter receptors -- then I won't own my brain any more.... -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From bobs at twft.com Mon Jan 23 17:30:26 2012 From: bobs at twft.com (Bob Sneidar) Date: Mon, 23 Jan 2012 14:30:26 -0800 Subject: Breakpoints on a Global Message-ID: I've mentioned it before, that if you set a breakpoint on a global, the IDE will crash to desktop. I have verified this is a problem even when all plugins are disabled. Does anyone know a workaround for this? I am in desperate need of finding where an array is getting set to empty. For whatever reason tracing it has been extremely elusive. Bob From dunbarx at aol.com Mon Jan 23 17:33:03 2012 From: dunbarx at aol.com (dunbarx at aol.com) Date: Mon, 23 Jan 2012 17:33:03 -0500 (EST) Subject: mouseControl In-Reply-To: References: <8BBCEEBC-B333-483C-8B5E-57A9B28025B9@netrin.com><8CEA82B99FBC946-24E8-34B1F@webmail-m153.sysops.aol.com> Message-ID: <8CEA8361766F5ED-24E8-35EB5@webmail-m153.sysops.aol.com> Ken. The wait thing worked. Don't know why it should. Thank you. Craig Newman -----Original Message----- From: Ken Ray To: How to use LiveCode Sent: Mon, Jan 23, 2012 11:59 am Subject: Re: mouseControl On Jan 23, 2012, at 3:17 PM, DunbarX at aol.com wrote: > > > Sorry if this has been answered already. Possibly to me. > > > What is wrong with this: > on mouseUp > repeat until the mouseclick > put the mouseControl > end repeat > end mouseUp Try "repeat until the mouse is down" ? if that doesn't work, add in "wait 0 milliseconds with messages" inside your repeat loop; you may need to give LC time to get the message to respond Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.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 jhj at jhj.com Mon Jan 23 17:37:57 2012 From: jhj at jhj.com (Jerry Jensen) Date: Mon, 23 Jan 2012 14:37:57 -0800 Subject: What about Apple's new ebook app and text book efforts? In-Reply-To: <84C61475-79B8-45FB-99D1-80EB391F928F@gmail.com> References: <4F1D0DBE.6010809@hyperactivesw.com> <84C61475-79B8-45FB-99D1-80EB391F928F@gmail.com> Message-ID: On Jan 23, 2012, at 2:05 PM, Peter M. Brigham, MD wrote: > On Jan 23, 2012, at 2:35 AM, J. Landman Gay wrote: > >> On 1/22/12 11:47 PM, Pete wrote: >>> I wouldn't be surprised if it was. I believe one of the accusations from >>> Apple in their case against HTC was that tapping a phone number in a >>> message and having the phone dial the number was copyright infringement. >>> Intellectual property law astounds me some times. >> >> They've patented our genes now too. I don't own my DNA any more. > > I'm dreading the time when they can patent my neurotransmitter receptors -- then I won't own my brain any more?. But if they could map them, think of all the fun you could have fixing "wrong" ones! From bobs at twft.com Mon Jan 23 17:40:58 2012 From: bobs at twft.com (Bob Sneidar) Date: Mon, 23 Jan 2012 14:40:58 -0800 Subject: Getting Text from another open application window In-Reply-To: <000d01ccda0a$80f1f350$82d5d9f0$@tesco.net> References: <394892401.510117.1327339701827.JavaMail.root@md01.topaz.synacor.com> <000d01ccda0a$80f1f350$82d5d9f0$@tesco.net> Message-ID: I don't believe any program can unless there is a way to do it built into the source app. QuicKeys for instance will intercept menus, buttons etc. because something is actually happening in the OS when the user interacts with those objects. Assuming that the developer followed the guidelines of the OS when creating and interacting with those objects, QuicKeys can intercept what the system is doing. But if the developer did something custom, say with the menus, and they are not built by the OS API the QuicKeys is as blind as any other app. The old Procedural Foxpro is a good example of that. But what interaction with the OS is there when a window is displaying data? If you find the answer to that, then you would be well on your way to finding a means to do this. Did you check to see if there is any logging going on? It may be possible to get data from the log if so. See if the app has any kind of verbose logging option. Bob On Jan 23, 2012, at 12:06 PM, Camm wrote: > It a Windows based app. > The machine is standalone and has no external data connections. > It could be possible via the SDK , but that would mean writing externals. > Are we saying that livecode cannot get text from other displayed window ? > > Best Regards > Camm > > > -----Original Message----- > From: use-livecode-bounces at lists.runrev.com > [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of stephen barncard > Sent: 23 January 2012 18:12 > To: How to use LiveCode > Subject: Re: Getting Text from another open application window > > Most professional test instruments have some kind of interface - does the > test device have any serial or IEEE interface? Livecode really can't > grok the data space of another application. The application must provide an > API or some kind of hardware interface. > > If it's a Macintosh application, check and see if it has an Applescript > dictionary. You can use the Applescript script editor to examine the app in > question. If there is one, you will see the definitions and can do a "Do as > Applescript". > > For instance, I built a mute button in Livecode to control Skype and iTunes > at the same time. > > On 23 January 2012 09:28, Camm wrote: > >> >> >> Hi , >> >> >> >> I have a windows (non-livecode) application that displays text data >> from a test instrument , is it possible for livecode to import the >> displayed data realtime for decoding etc. >> >> >> >> >> >> >> >> Regards >> >> Camm >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 > > > ----- > No virus found in this message. > Checked by AVG - www.avg.com > Version: 2012.0.1901 / Virus Database: 2109/4761 - Release Date: 01/23/12 > > ----- > No virus found in this message. > Checked by AVG - www.avg.com > Version: 2012.0.1901 / Virus Database: 2109/4761 - Release Date: 01/23/12 > ----- > No virus found in this message. > Checked by AVG - www.avg.com > Version: 2012.0.1901 / Virus Database: 2109/4761 - Release Date: 01/23/12 > ----- > No virus found in this message. > Checked by AVG - www.avg.com > Version: 2012.0.1901 / Virus Database: 2109/4761 - Release Date: 01/23/12 > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jan 23 17:41:21 2012 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Mon, 23 Jan 2012 14:41:21 -0800 Subject: Getting Text from another open application window In-Reply-To: <000d01ccda0a$80f1f350$82d5d9f0$@tesco.net> References: <394892401.510117.1327339701827.JavaMail.root@md01.topaz.synacor.com> <000d01ccda0a$80f1f350$82d5d9f0$@tesco.net> Message-ID: I don't think any application can do that without an API. On 23 January 2012 12:06, Camm wrote: > It a Windows based app. > The machine is standalone and has no external data connections. > It could be possible via the SDK , but that would mean writing externals. > Are we saying that livecode cannot get text from other displayed window ? > > Best Regards > Camm > > > Stephen Barncard San Francisco Ca. USA more about sqb From jhj at jhj.com Mon Jan 23 17:41:30 2012 From: jhj at jhj.com (Jerry Jensen) Date: Mon, 23 Jan 2012 14:41:30 -0800 Subject: mouseControl In-Reply-To: <8CEA8361766F5ED-24E8-35EB5@webmail-m153.sysops.aol.com> References: <8BBCEEBC-B333-483C-8B5E-57A9B28025B9@netrin.com><8CEA82B99FBC946-24E8-34B1F@webmail-m153.sysops.aol.com> <8CEA8361766F5ED-24E8-35EB5@webmail-m153.sysops.aol.com> Message-ID: <084E0DFB-3958-488E-A4B5-049654EFE7B7@jhj.com> Because no new messages get noticed during execution of a handler unless there is a wait . . . with messages. On Jan 23, 2012, at 2:33 PM, dunbarx at aol.com wrote: > Ken. > > > The wait thing worked. Don't know why it should. Thank you. > > > Craig Newman > > > > -----Original Message----- > From: Ken Ray > To: How to use LiveCode > Sent: Mon, Jan 23, 2012 11:59 am > Subject: Re: mouseControl > > > > On Jan 23, 2012, at 3:17 PM, DunbarX at aol.com wrote: > >> >> >> Sorry if this has been answered already. Possibly to me. >> >> >> What is wrong with this: >> on mouseUp >> repeat until the mouseclick >> put the mouseControl >> end repeat >> end mouseUp > > Try "repeat until the mouse is down" ? if that doesn't work, add in "wait 0 > milliseconds with messages" inside your repeat loop; you may need to give LC > time to get the message to respond > > Ken Ray > Sons of Thunder Software, Inc. > Email: kray at sonsothunder.com > Web Site: http://www.sonsothunder.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 ken at kencorey.com Mon Jan 23 18:02:32 2012 From: ken at kencorey.com (Ken Corey) Date: Mon, 23 Jan 2012 23:02:32 +0000 Subject: Pinch and Rotate In-Reply-To: References: Message-ID: <4F1DE708.4070607@kencorey.com> Hiya Thomas, I've been meaning to take a stab at this, and your post got me off my duff. I've seen a few apps that do multitouch pinch to zoom *really* well. by that I mean that the pinch can accomplish 3 things at the same time: scale something rotate something move something The last one makes it feel really slick. Of course, if you only wanted to do one of those, no problem. I wanted to build and API with 3 main calls: pinchStart pinchMove dDistance, dAngle, dX, dY pinchEnd Start and End are for setup/cleanup, and pinchMove is where the work is done. I've created a sample script to demonstrate the concept: http://its.ec/static/multitouchtest.livecode.zip (I packaged it up this way because there is a image involved.) This "works" on my iPad. Jerky, but it works. On my Nexus One, the app is less impressive. Things can move, but when you try to rotate, the rotation is not uniform. Sometimes it rotates, sometimes it doesn't, sometimes it goes backwards. *shrug* It is possible to build a test harness for a desktop in just a few lines of code, but in this case I pulled them out for brevity. That means that if you've got an iPad it will work fairly well. My PC nor my Mac have multi-touch built in, so I don't know how they'd do. As always, there're flies in this particular ointment: 1) Images can't scale and rotate at the same time. In my demo, the image will rotate and move, but only when the angle of the image is zero will it scale...this will appear as "pop" of a larger image. A horrible work-around could be to use your main image as a template. Clone it, scale that, take a snapshot of it at the zoomed size and /then/ rotate that. Ugh. Any better way to skin this one? 2) Graphics can't be rotated natively. I found that only some graphics even report their points (rectangles, rounded rects, ovals, etc don't...so you can't rotate them). The horrible hacky way around that might be to try to implement the regular polygons using a Polygon, or even a "Freehand Polygon". Maybe. Then, you could implement a rotation routine for such a Frankenstein poly. Blech. 3) It's jumpy, big time. Worse come to worse, you could try to build-in an averaging function, but I was quite surprised how jumpy it all is. 4) Not sure about the Android support. 5) Not even sure where'd you'd use this kind of thing because of uneven support. Can't use scaling with images. Can't use rotation with graphics. Both are painfully jerky. I'm quite a LiveCode newbie, so if anyone has constructive feedback on my code, or knows a more-runrev kinda way to do things I'd appreciate if you'd let me (or the list) know. Thanks, -Ken From bobs at twft.com Mon Jan 23 18:13:35 2012 From: bobs at twft.com (Bob Sneidar) Date: Mon, 23 Jan 2012 15:13:35 -0800 Subject: Opening a Supercard file in Livecode? In-Reply-To: References: Message-ID: <2E05D463-A39D-41E0-97DF-420840765F75@twft.com> I had a similar experience when trying to convert old procedural dBase to object oriented. There was a converter that came with Visual Foxpro that would attempt to convert a procedural app into an OOP one, but it was a miserable failure. There were too many differences, and what you ended up with was a very non-optimized OOP app if it worked right at all, which was seldom. The general consensus among those who were moving to Visual Foxpro was that it was far better to develop from scratch than to try and convert. Sound familiar? Bob On Jan 23, 2012, at 12:51 PM, Bob Earp wrote: > Then again, going from ToolBook to Rev (now LC) with an eLearning authoring system and LMS, which is equally as complex, was a complete failure using the converter route. The syntax was just a tad too different/obtuse, plus Rev had built in functions that I had to script in TB. So the end result was rebuild from scratch with a much better product. I did have the original project documentation too !! From bobs at twft.com Mon Jan 23 18:14:48 2012 From: bobs at twft.com (Bob Sneidar) Date: Mon, 23 Jan 2012 15:14:48 -0800 Subject: What about Apple's new ebook app and text book efforts? In-Reply-To: <84C61475-79B8-45FB-99D1-80EB391F928F@gmail.com> References: <4F1D0DBE.6010809@hyperactivesw.com> <84C61475-79B8-45FB-99D1-80EB391F928F@gmail.com> Message-ID: That won't work with me. To vague and simple to patent. Bob On Jan 23, 2012, at 2:05 PM, Peter M. Brigham, MD wrote: > On Jan 23, 2012, at 2:35 AM, J. Landman Gay wrote: > >> On 1/22/12 11:47 PM, Pete wrote: >>> I wouldn't be surprised if it was. I believe one of the accusations from >>> Apple in their case against HTC was that tapping a phone number in a >>> message and having the phone dial the number was copyright infringement. >>> Intellectual property law astounds me some times. >> >> They've patented our genes now too. I don't own my DNA any more. > > I'm dreading the time when they can patent my neurotransmitter receptors -- then I won't own my brain any more.... > > -- 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 Mon Jan 23 18:17:18 2012 From: dunbarx at aol.com (dunbarx at aol.com) Date: Mon, 23 Jan 2012 18:17:18 -0500 (EST) Subject: mouseControl In-Reply-To: <084E0DFB-3958-488E-A4B5-049654EFE7B7@jhj.com> References: <8BBCEEBC-B333-483C-8B5E-57A9B28025B9@netrin.com><8CEA82B99FBC946-24E8-34B1F@webmail-m153.sysops.aol.com><8CEA8361766F5ED-24E8-35EB5@webmail-m153.sysops.aol.com> <084E0DFB-3958-488E-A4B5-049654EFE7B7@jhj.com> Message-ID: <8CEA83C49089625-24E8-3692D@webmail-m153.sysops.aol.com> Jerry. Nothing to do with a message. I was testing the value of a function. Most other such things work: on mouseUp repeat until the mouseclick put the mouseH & "," & the mouseV end repeat end mouseUp This very nicely tracks the loc of the cursor. Always did. It is something about some functions. "wait with messages" has fixed things before, just not sure why. I guess it could be that some things take longer to process. Craig Newman -----Original Message----- From: Jerry Jensen To: How to use LiveCode Sent: Mon, Jan 23, 2012 12:43 pm Subject: Re: mouseControl Because no new messages get noticed during execution of a handler unless there is a wait . . . with messages. On Jan 23, 2012, at 2:33 PM, dunbarx at aol.com wrote: > Ken. > > > The wait thing worked. Don't know why it should. Thank you. > > > Craig Newman > > > > -----Original Message----- > From: Ken Ray > To: How to use LiveCode > Sent: Mon, Jan 23, 2012 11:59 am > Subject: Re: mouseControl > > > > On Jan 23, 2012, at 3:17 PM, DunbarX at aol.com wrote: > >> >> >> Sorry if this has been answered already. Possibly to me. >> >> >> What is wrong with this: >> on mouseUp >> repeat until the mouseclick >> put the mouseControl >> end repeat >> end mouseUp > > Try "repeat until the mouse is down" ? if that doesn't work, add in "wait 0 > milliseconds with messages" inside your repeat loop; you may need to give LC > time to get the message to respond > > Ken Ray > Sons of Thunder Software, Inc. > Email: kray at sonsothunder.com > Web Site: http://www.sonsothunder.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 cmsheffield at me.com Mon Jan 23 18:19:08 2012 From: cmsheffield at me.com (Chris Sheffield) Date: Mon, 23 Jan 2012 16:19:08 -0700 Subject: Pinch and Rotate In-Reply-To: <4F1DE708.4070607@kencorey.com> References: <4F1DE708.4070607@kencorey.com> Message-ID: <9A6812A7-BD50-41E8-AD6F-EB24FB164EF9@me.com> Ken, Did you try setting acceleratedRendering to true and then setting the layerMode property of the image to "dynamic"? Might make a difference. Kind of guessing, though. Chris On Jan 23, 2012, at 4:02 PM, Ken Corey wrote: > Hiya Thomas, > > I've been meaning to take a stab at this, and your post got me off my duff. > > I've seen a few apps that do multitouch pinch to zoom *really* well. by that I mean that the pinch can accomplish 3 things at the same time: > scale something > rotate something > move something > > The last one makes it feel really slick. Of course, if you only wanted to do one of those, no problem. > > I wanted to build and API with 3 main calls: > pinchStart > pinchMove dDistance, dAngle, dX, dY > pinchEnd > > Start and End are for setup/cleanup, and pinchMove is where the work is done. > > I've created a sample script to demonstrate the concept: > > http://its.ec/static/multitouchtest.livecode.zip > (I packaged it up this way because there is a image involved.) > > This "works" on my iPad. Jerky, but it works. > > On my Nexus One, the app is less impressive. Things can move, but when you try to rotate, the rotation is not uniform. Sometimes it rotates, sometimes it doesn't, sometimes it goes backwards. *shrug* > > It is possible to build a test harness for a desktop in just a few lines of code, but in this case I pulled them out for brevity. That means that if you've got an iPad it will work fairly well. My PC nor my Mac have multi-touch built in, so I don't know how they'd do. > > As always, there're flies in this particular ointment: > > 1) Images can't scale and rotate at the same time. In my demo, the image will rotate and move, but only when the angle of the image is zero will it scale...this will appear as "pop" of a larger image. > > A horrible work-around could be to use your main image as a template. Clone it, scale that, take a snapshot of it at the zoomed size and /then/ rotate that. Ugh. Any better way to skin this one? > > 2) Graphics can't be rotated natively. I found that only some graphics even report their points (rectangles, rounded rects, ovals, etc don't...so you can't rotate them). > > The horrible hacky way around that might be to try to implement the regular polygons using a Polygon, or even a "Freehand Polygon". Maybe. > > Then, you could implement a rotation routine for such a Frankenstein poly. Blech. > > 3) It's jumpy, big time. Worse come to worse, you could try to build-in an averaging function, but I was quite surprised how jumpy it all is. > > 4) Not sure about the Android support. > > 5) Not even sure where'd you'd use this kind of thing because of uneven support. Can't use scaling with images. Can't use rotation with graphics. Both are painfully jerky. > > I'm quite a LiveCode newbie, so if anyone has constructive feedback on my code, or knows a more-runrev kinda way to do things I'd appreciate if you'd let me (or the list) know. > > Thanks, > > -Ken > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jan 23 18:24:36 2012 From: jhj at jhj.com (Jerry Jensen) Date: Mon, 23 Jan 2012 15:24:36 -0800 Subject: mouseControl In-Reply-To: <8CEA83C49089625-24E8-3692D@webmail-m153.sysops.aol.com> References: <8BBCEEBC-B333-483C-8B5E-57A9B28025B9@netrin.com><8CEA82B99FBC946-24E8-34B1F@webmail-m153.sysops.aol.com><8CEA8361766F5ED-24E8-35EB5@webmail-m153.sysops.aol.com> <084E0DFB-3958-488E-A4B5-049654EFE7B7@jhj.com> <8CEA83C49089625-24E8-3692D@webmail-m153.sysops.aol.com> Message-ID: <4F730CA1-455E-4334-BC0A-F52AC221146F@jhj.com> Ah, I see. I would have guessed that would work too! On Jan 23, 2012, at 3:17 PM, DunbarX at aol.com wrote: > Jerry. > > > Nothing to do with a message. I was testing the value of a function. Most other such things work: > > > > on mouseUp > repeat until the mouseclick > put the mouseH & "," & the mouseV > end repeat > end mouseUp > This very nicely tracks the loc of the cursor. Always did. It is something about some functions. "wait with messages" > has fixed things before, just not sure why. I guess it could be that some things take longer to process. > Craig Newman > > > > -----Original Message----- > From: Jerry Jensen > To: How to use LiveCode > Sent: Mon, Jan 23, 2012 12:43 pm > Subject: Re: mouseControl > > > Because no new messages get noticed during execution of a handler unless there > is a wait . . . with messages. > > On Jan 23, 2012, at 2:33 PM, dunbarx at aol.com wrote: > >> Ken. >> >> >> The wait thing worked. Don't know why it should. Thank you. >> >> >> Craig Newman >> >> >> >> -----Original Message----- >> From: Ken Ray >> To: How to use LiveCode >> Sent: Mon, Jan 23, 2012 11:59 am >> Subject: Re: mouseControl >> >> >> >> On Jan 23, 2012, at 3:17 PM, DunbarX at aol.com wrote: >> >>> >>> >>> Sorry if this has been answered already. Possibly to me. >>> >>> >>> What is wrong with this: >>> on mouseUp >>> repeat until the mouseclick >>> put the mouseControl >>> end repeat >>> end mouseUp >> >> Try "repeat until the mouse is down" ? if that doesn't work, add in "wait 0 >> milliseconds with messages" inside your repeat loop; you may need to give LC >> time to get the message to respond >> >> Ken Ray >> Sons of Thunder Software, Inc. >> Email: kray at sonsothunder.com >> Web Site: http://www.sonsothunder.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 pete at mollysrevenge.com Mon Jan 23 19:19:35 2012 From: pete at mollysrevenge.com (Pete) Date: Mon, 23 Jan 2012 16:19:35 -0800 Subject: Developing on Mac, standalone on Windows In-Reply-To: References: Message-ID: Hi Ken, Thanks you for the scripts. I've basically adopted your approach of setting the font based on what OS I'm running on and that makes things look a LOT better! I think property profiles would do the job and I could just set the appropriate profile based on OS at start up but I need to figure out a bit more about setting up profiles before even trying that. Of course, there are still related issues! For example, I have a series of buttons with icons associated with them. Each one also has a label underneath it. I carefully centered the button and the label on my Mac development machine but on the WIndows machine, they're not quite centered, presumably because of the font change. Got the same type of issue in other areas too. Oh well, I guess supporting WIndows as well as Mac is not QUITE as straightforward as it seems. I'm also now trying to figure out the best way to deal with screen size/resolution issues on different computers, whether Mac or Windows. I think I've been round this loop once before many months ago and never did come to a satisfactory resolution (no pun intended!). I thought the geometry manager would be the way to go but I've seen several comments about the GM creating a big mess in complicated stacks. This may be a cop out but I'm included to put all my controls in a group, set the stack size on startup based on the screen size, and resize the group to fit the stack. Then if the controls in the group no longer fit within it, set the vscrollbar property of the group so the user can scroll up and down to see everything. Pete On Mon, Jan 23, 2012 at 8:10 AM, Ken Ray wrote: > > On Jan 22, 2012, at 11:55 PM, Pete wrote: > > > I just compiled and ran my fist standalone on Windows and I'm finally > > realising the benefits of developing cross platform applications with LC. > > I was pretty amazed when everything I developed on my Mac just ran as > > expected on Windows! > > > > The on;y problem I need to address concerns fonts. I have a very few > > controls that depend on font size to correctly position themselves around > > other, non-textobjects and it seems that LC's default font on WIndows is > > different than on a Mac, or at least the font size/spacing is. > > > > I left the font and size blank in almost all of my controls' text > > formatting options but perhaps I need to name a specific font to have > > things line up correctly on OS X and Windows? > > Are you setting font names anywhere in your app or are you defaulting to > the system fonts for everything? There are generally three schools of > thought on font/platform management: > > 1) Use LC's built in property profiles. It's been a long time since I used > them, and I came up with my own solution, so I don't really know the pros > and cons. (Maybe someone else could fill this in?) > > 2) Pick a font that will be on all your target systems, and set the font > of your stack(s) to that font, allowing it to be inherited by all cards and > card objects. > - Pros: Easy to set up and implement > - Cons: Significant limitations on font choices; your controls will > not end up being displayed in OS-compliant fonts; every control that has a > separate style (like bold) will break the inheritance and you'll have to > set those manually. > > 3) Set the font for your controls by hand, based on platform. > - Pros: More control over what's happening; can apply the same text > attributes to multiple objects by code without having to set individual > properties on the controls (unless you want to) > - Cons: Takes a little time to code and set up > > I have been using for a long time a frontscript that traps 'preOpenCard', > and then just runs through the controls on the card in a repeat loop, > setting the appropriate text attributes. For those controls that need > custom styling (like bold, etc.), I check a custom property set and apply > the styles/sizes/colors if it has them. Here's a scaled-down example of > what I mean: > > -- Frontscript > on preOpenCard > repeat with x = 1 to the number of controls of this card > put the customProperties["uTextAttribs"] of control x of this card into > tAttribsA > put "font,style,size,color" into tAttribs > repeat for each item tAttrib in tAttribs > if tAttribsA[tAttrib] <> "" then > do "set the text" & tAttrib && "of control x of this card to > tAttribsA[tAttrib]" > else > do "set the text" & tAttrib && "of control x of this card to > TextAttribs(tAttrib)" > end if > end repeat > end repeat > pass preOpenCard > end preOpenCard > > function TextAttribs pAttrib > put "font,style,size,color" into tAttribs > switch (the platform) > case "MacOS" > put "Lucida Grande,plain,12,black" into tSysAttribs > break > case "Win32" > if (word 2 of the systemVersion) > 5.1 then > put "Segoe UI,plain,12,black" into tSysAttribs > else > put "Tahoma,plain,11,black" into tSysAttribs > end if > break > end switch > return item (itemOffset(pAttrib,tAttribs)) of tSysAttribs > end TextAttribs > > Obviously this doesn't handle a bunch of situations, isn't optimized, and > is primarily meant to give you an idea how this can work. But LC is so fast > that even with dozens of controls, the time to set the properties is not > noticeable. > > Hope this helps, > > Ken Ray > Sons of Thunder Software, Inc. > Email: kray at sonsothunder.com > Web Site: http://www.sonsothunder.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 > > -- Pete Molly's Revenge From palcibiades-first at yahoo.co.uk Tue Jan 24 02:17:20 2012 From: palcibiades-first at yahoo.co.uk (Peter Alcibiades) Date: Mon, 23 Jan 2012 23:17:20 -0800 (PST) Subject: Launcher strategies In-Reply-To: <4F1D92E0.2050807@fourthworld.com> References: <4F1D92E0.2050807@fourthworld.com> Message-ID: <1327389440311-4323067.post@n4.nabble.com> Pessulus, a lockdown editor, works in Linux. I have used it. There is also a distribution called webconverger, whch could be used as a starting point. Two other points of takeoff if building a linux appliance would be tinycore or slitaz. They are really tiny distributions and very fast. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Launcher-strategies-tp4321310p4323067.html Sent from the Revolution - User mailing list archive at Nabble.com. From ken at kencorey.com Tue Jan 24 02:35:13 2012 From: ken at kencorey.com (Ken Corey) Date: Tue, 24 Jan 2012 07:35:13 +0000 Subject: Pinch and Rotate In-Reply-To: <9A6812A7-BD50-41E8-AD6F-EB24FB164EF9@me.com> References: <4F1DE708.4070607@kencorey.com> <9A6812A7-BD50-41E8-AD6F-EB24FB164EF9@me.com> Message-ID: <4F1E5F31.1060304@kencorey.com> I hadn't tried that before. I tried it just now, and if anything it made the behaviour worse. This were even more jittery than before. By "jittery" I mean the items flash back and forth 10-20 pixels. If you move your fingers quickly, it's easy to get the image drawing in a wildly incorrect place, only settling down once the fingers move more slowly. I feel script-based multi-touch is a bit of a damp squib. The performance isn't that great, and without items (images or graphics) being able to rotate and scale, there's little reason to do it all at once. On 23/01/2012 23:19, Chris Sheffield wrote: > Did you try setting acceleratedRendering to true and then setting the layerMode property of the image to "dynamic"? Might make a difference. Kind of guessing, though. From revdev at pdslabs.net Tue Jan 24 02:37:02 2012 From: revdev at pdslabs.net (Phil Davis) Date: Mon, 23 Jan 2012 23:37:02 -0800 Subject: Breakpoints on a Global In-Reply-To: References: Message-ID: <4F1E5F9E.1030506@pdslabs.net> Hi Bob, Does it crash when you set a breakpoint on a local? If not, can you change the global to a local variable? Just grasping at straws... I've never set a breakpoint on a variable declaration. Didn't know you could. Is your global declared in a handler or outside all handlers? (I assume in a handler, otherwise the breakpoint couldn't be triggered, right?) Phil Davis On 1/23/12 2:30 PM, Bob Sneidar wrote: > I've mentioned it before, that if you set a breakpoint on a global, the IDE will crash to desktop. I have verified this is a problem even when all plugins are disabled. Does anyone know a workaround for this? I am in desperate need of finding where an array is getting set to empty. For whatever reason tracing it has been extremely elusive. > > 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 toolbook at kestner.de Tue Jan 24 03:43:24 2012 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Tue, 24 Jan 2012 09:43:24 +0100 Subject: How can I copy from one stack to another with identical names? Message-ID: <000301ccda74$3caa5880$b5ff0980$@de> Hello, I have two versions of the same stack with a bunch of substacks. I would like to copy objects and scripts from one version to the other. I know, that I can't open two stacks with the same name for editing. I tried to open the two versions in two instances of LC, but it seems, that the copy/paste object doesn't work between instances. Renaming all stacks in one version would be an approach. Is there a better trick to do this job? Thanks for your experience Tiemo From toolbook at kestner.de Tue Jan 24 04:23:09 2012 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Tue, 24 Jan 2012 10:23:09 +0100 Subject: AW: How can I copy from one stack to another with identical names? In-Reply-To: <000301ccda74$3caa5880$b5ff0980$@de> References: <000301ccda74$3caa5880$b5ff0980$@de> Message-ID: <000801ccda79$c9ee08e0$5dca1aa0$@de> I tried it again with two instances and now the paste menu is active and I can copy/paste between two instances of LC. I don't know, why paste wasn't active before - does anybody knows what could led to this behavior? Thanks Tiemo > -----Urspr?ngliche Nachricht----- > Von: use-livecode-bounces at lists.runrev.com [mailto:use-livecode- > bounces at lists.runrev.com] Im Auftrag von Tiemo Hollmann TB > Gesendet: Dienstag, 24. Januar 2012 09:43 > An: 'How to use LiveCode' > Betreff: How can I copy from one stack to another with identical names? > > Hello, > > > > I have two versions of the same stack with a bunch of substacks. I > would > like to copy objects and scripts from one version to the other. > > I know, that I can't open two stacks with the same name for editing. I > tried > to open the two versions in two instances of LC, but it seems, that the > copy/paste object doesn't work between instances. > > Renaming all stacks in one version would be an approach. Is there a > better > trick to do this job? > > Thanks for your experience > > Tiemo > From camm29 at tesco.net Tue Jan 24 04:45:41 2012 From: camm29 at tesco.net (Camm) Date: Tue, 24 Jan 2012 09:45:41 +0000 (UTC) Subject: Getting Text from another open application window In-Reply-To: Message-ID: <377343123.515866.1327398341415.JavaMail.root@md01.topaz.synacor.com> Bob , Thanks,,,, No logging which would have worked. Regards Camm ----- Original Message ----- From: "Bob Sneidar" To: "How to use LiveCode" Sent: Monday, 23 January, 2012 10:40:58 PM Subject: Re: Getting Text from another open application window I don't believe any program can unless there is a way to do it built into the source app. QuicKeys for instance will intercept menus, buttons etc. because something is actually happening in the OS when the user interacts with those objects. Assuming that the developer followed the guidelines of the OS when creating and interacting with those objects, QuicKeys can intercept what the system is doing. But if the developer did something custom, say with the menus, and they are not built by the OS API the QuicKeys is as blind as any other app. The old Procedural Foxpro is a good example of that. But what interaction with the OS is there when a window is displaying data? If you find the answer to that, then you would be well on your way to finding a means to do this. Did you check to see if there is any logging going on? It may be possible to get data from the log if so. See if the app has any kind of verbose logging option. Bob On Jan 23, 2012, at 12:06 PM, Camm wrote: > It a Windows based app. > The machine is standalone and has no external data connections. > It could be possible via the SDK , but that would mean writing externals. > Are we saying that livecode cannot get text from other displayed window ? > > Best Regards > Camm > > > -----Original Message----- > From: use-livecode-bounces at lists.runrev.com > [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of stephen barncard > Sent: 23 January 2012 18:12 > To: How to use LiveCode > Subject: Re: Getting Text from another open application window > > Most professional test instruments have some kind of interface - does the > test device have any serial or IEEE interface? Livecode really can't > grok the data space of another application. The application must provide an > API or some kind of hardware interface. > > If it's a Macintosh application, check and see if it has an Applescript > dictionary. You can use the Applescript script editor to examine the app in > question. If there is one, you will see the definitions and can do a "Do as > Applescript". > > For instance, I built a mute button in Livecode to control Skype and iTunes > at the same time. > > On 23 January 2012 09:28, Camm wrote: > >> >> >> Hi , >> >> >> >> I have a windows (non-livecode) application that displays text data >> from a test instrument , is it possible for livecode to import the >> displayed data realtime for decoding etc. >> >> >> >> >> >> >> >> Regards >> >> Camm >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 > > > ----- > No virus found in this message. > Checked by AVG - www.avg.com > Version: 2012.0.1901 / Virus Database: 2109/4761 - Release Date: 01/23/12 > > ----- > No virus found in this message. > Checked by AVG - www.avg.com > Version: 2012.0.1901 / Virus Database: 2109/4761 - Release Date: 01/23/12 > ----- > No virus found in this message. > Checked by AVG - www.avg.com > Version: 2012.0.1901 / Virus Database: 2109/4761 - Release Date: 01/23/12 > ----- > No virus found in this message. > Checked by AVG - www.avg.com > Version: 2012.0.1901 / Virus Database: 2109/4761 - Release Date: 01/23/12 > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 camm29 at tesco.net Tue Jan 24 04:47:51 2012 From: camm29 at tesco.net (Camm) Date: Tue, 24 Jan 2012 09:47:51 +0000 (UTC) Subject: Getting Text from another open application window In-Reply-To: Message-ID: <1163072027.515891.1327398471182.JavaMail.root@md01.topaz.synacor.com> Thanks , yeah that looks like the only way.... Regards Camm ----- Original Message ----- From: "stephen barncard" To: "How to use LiveCode" Sent: Monday, 23 January, 2012 10:41:21 PM Subject: Re: Getting Text from another open application window I don't think any application can do that without an API. On 23 January 2012 12:06, Camm wrote: > It a Windows based app. > The machine is standalone and has no external data connections. > It could be possible via the SDK , but that would mean writing externals. > Are we saying that livecode cannot get text from other displayed window ? > > Best Regards > Camm > > > 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 dixonja at hotmail.co.uk Tue Jan 24 05:35:27 2012 From: dixonja at hotmail.co.uk (John Dixon) Date: Tue, 24 Jan 2012 10:35:27 +0000 Subject: Throttling Accelerated Rendering... Message-ID: Has anyone been playing with the accelerated rendering ?.... Can it be switched on and off on a per card basis ? in an iOS mobile stack, I have a card in a stack that really benefits from this when scrolling a group that contains groups and it makes the scrolling really smooth... BUT... I have another card which displays a browser... on rotating the iphone it seems that the browser is not placed correctly and there is a lot of flashing when repositioning controls when rotating... Any ideas ? Dixie From bdrunrev at gmail.com Tue Jan 24 07:13:38 2012 From: bdrunrev at gmail.com (Bernard Devlin) Date: Tue, 24 Jan 2012 12:13:38 +0000 Subject: Navigating XML in LiveCode In-Reply-To: References: Message-ID: You could also consider using JSON instead of XML. Particularly since we have 2 libraries around which convert LiveCode arrays to JSON and vice-versa. JSON is known as "the fat-free xml". I don't think either format is paritcularly easy to scan by the naked eye. One library is by Andre, the other by Mark Smith. Another option would be to use a sqlite database, and have your program export/backup the database to a series of SQL insert statements. I think I'd find that easier to scan with the naked eye than XML. I don't understand why a CSV (or tab-separated) text file would not suit your purposes, but I'll assume it because your data is more complex than would be suitable to that format. Bernard On Mon, Jan 23, 2012 at 4:34 PM, Graham Samuel wrote: > However the real reason that I'm trying to go down the XML route is that I need this data to persist and I don't want the overhead of storing it in a stack rather than just keeping a trivial amount of text which furthermore could be easily examined/edited by non-LC programs. [...] > I suppose more generally I'm trying to understand if XML is suitable for this kind of data structure, where there are several nodes identical or similar in structure but containing different data. It looks ideal to me, but the difficulty of finding the last item you added, and of adding attributes at creation time, is giving me doubts. But maybe I'm just confused. From livfoss at mac.com Tue Jan 24 09:17:45 2012 From: livfoss at mac.com (Graham Samuel) Date: Tue, 24 Jan 2012 15:17:45 +0100 Subject: Navigating XML in LiveCode In-Reply-To: References: Message-ID: Thanks for the replies: Bob - I know about the 'host of commands' and I've done a lot of worked examples with them. It's the fact that LiveCode is happy with XML that was a factor in making me think of using it - that and the fact that, for my purposes, all the data could be saved in a trivially small text file to give persistence. The trouble was that I couldn't understand exactly how to do certain things, and I was unsure if I'd picked the right medium for my message, so to speak. Ken - ever helpful! I'm sorry I grumbled about not getting replies. That's just stupid, given that everyone on this list is busy, and it's bad manners too. Anyway your reply (which I haven't quoted in full) shows me how to get round my specific issues, so I see that it can be done: what I have to do now is to decide between a perhaps more appropriate structure using arrays, with the disadvantage of having to put them in a stack and save it to get persistence, or to put up with the rather clunky XML functions (yours or LC's) in order to get a simpler storage solution. What I plan to do now is to write my own little API to the data storage part of my app, so that the main script doesn't know or care how the data is stored - then I can experiment with both methods without messing with the logic of my program. It's the right way to go anyway, IMHO. Thanks again Graham On Mon, 23 Jan 2012 10:08:44 -0800, Bob Sneidar wrote: > Doesn't Livecode have a complete XML Library? I just searched for XML in the dictionary and came up with a host of commands. I bet studying these would shed some light on what needs to be done. Also, perhaps looking at a simple XML file would benefit you. Many Apple prefs files are XML I think. > > Bob On Mon, 23 Jan 2012 12:15:13 -0600, Ken Ray wrote: > > On Jan 23, 2012, at 10:34 AM, Graham Samuel wrote: > >> Pete - thanks for your reply (the only one so far - are there no XML users on the list??). > > Sorry, Graham? was a bit busy before to respond. [followed by a ton of useful stuff?] From ambassador at fourthworld.com Tue Jan 24 09:53:54 2012 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 24 Jan 2012 06:53:54 -0800 Subject: Navigating XML in LiveCode In-Reply-To: References: Message-ID: <4F1EC602.90205@fourthworld.com> Graham Samuel wrote: > However the real reason that I'm trying to go down the XML route is > that I need this data to persist and I don't want the overhead of > storing it in a stack rather than just keeping a trivial amount of > text which furthermore could be easily examined/edited by non-LC > programs. XML is the way to go for inter-app data transfer, but FWIW if your app was the only one using it you can save arrays to disk using arrayEncode/arrayDecode: global gMyArray on LoadData pFile put url ("binfile:"& pFile) into tData put arrayDecode(tData) into gMyArray end LoadData on SaveData pFile put arrayEncode(gMyArray) into tData put tData into url ("binfile:" & pFile) end SaveData -- 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 Jan 24 10:11:48 2012 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 24 Jan 2012 07:11:48 -0800 Subject: Opening a Supercard file in Livecode? In-Reply-To: References: Message-ID: <4F1ECA34.8080205@fourthworld.com> Bob Earp wrote: > Well, I think you are half correct Richard. These sort of decisions > need to be made on a case by case basis.... On further consideration I think you're absolutely correct. I was talking about this with Ken Ray last night, and we hit on a distinction which may be useful for deciding when to use a converter and when to rewrite: If an app has more content than code use a converter, but if more code than content then rewrite. Even then there may be exceptions, but the idea is that multimedia projects usually have a lot of objects which need to be laid out in specific ways, and that's the sort of thing a converter can do well; redoing hundreds of card layouts by hand is a waste of time. But things like productivity apps often have relatively little content, i.e. fewer objects, but tons of code, and code written in another xTalk dialect will be of questionable value in terms of robustness, extensibility, and performance in LiveCode. While xTalks have many commonalities, they're all very different products -- if they weren't there would be only one. :) Those differences lie in object types and syntax options that result in ports which may have code that makes no sense in the target environment, or at best uses language conventions that aren't optimized for the target. Also, many productivity apps attempt to adhere to the UI conventions of the host platform as much as possible, but if a project is being ported from an older xTalk to LiveCode chances are it was designed for an earlier version of the OS and needs revision to look current anyway. Moreover, most other xTalks are single-platform tools, so they have no methods for handling UI differences between OSes and will require revision to account for that. So code-heavy projects with relatively few objects can be an opportunity for updating the app not only for the current version of its original target platform, but for multiple platforms that it never previously had to take into account. But for content-heavy apps, I fully agree: it's nothing but RSI to reproduce hundreds of card layouts by hand. -- 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 Jan 24 10:17:45 2012 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 24 Jan 2012 07:17:45 -0800 Subject: Opening a Supercard file in Livecode? In-Reply-To: References: Message-ID: <4F1ECB99.7000209@fourthworld.com> Pete wrote: > All good points. I guess I'm thinking of a different situation that > multiple people working on the same project. When someone reports a bug > that crept into a particular version of an application, it would be useful > to see what changes were made to the stack that might have introduced the > bug. That's a very good point. It shouldn't be too hard to write a tool that can examine two sets of stack files and produce a list of handlers which have been modified. It would be a little tricky to write because we can't currently have two stacks open with the same name, but I think it may be doable using something like this: The tool would create an array with object references as the primary key and handler names as the secondary key, where the value is the handler definition itself. Then after it completes a scan of a given stack, it then goes through the other version and compares the same handler definitions, noting changes, missing items, and new items, and produces a clickable list of changes that could take the developer to the script in question. I'll add this to my "To Do" list; seems like it would be useful..... -- 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 Jan 24 10:53:51 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 24 Jan 2012 09:53:51 -0600 Subject: Breakpoints on a Global In-Reply-To: References: Message-ID: <4F1ED40F.7050005@hyperactivesw.com> On 1/23/12 4:30 PM, Bob Sneidar wrote: > I've mentioned it before, that if you set a breakpoint on a global, > the IDE will crash to desktop. If you mean trying to break on a global declaration, I'm not sure how that could work at all. That's just a memory assignment. There's nothing to break on, and it never even occured to me to try it. Breakpoints only work inside handlers. The engine shouldn't crash regardless, but you won't get any useful info from examining a memory assignment. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Tue Jan 24 10:54:22 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 24 Jan 2012 09:54:22 -0600 Subject: Throttling Accelerated Rendering... In-Reply-To: References: Message-ID: <4F1ED42E.8060709@hyperactivesw.com> On 1/24/12 4:35 AM, John Dixon wrote: > > Has anyone been playing with the accelerated rendering ?.... Can it > be switched on and off on a per card basis ? Yes. I have a couple of stacks that do that. It works fine. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Tue Jan 24 10:56:25 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 24 Jan 2012 09:56:25 -0600 Subject: Revlets on the web In-Reply-To: References: Message-ID: <4F1ED4A9.8050207@hyperactivesw.com> On 1/23/12 2:16 PM, Jim Hurley wrote: > I think I knew how to do this at one time. > > I have an app saved for the Web as a revlet > > After saving as a standalone (for the web) a page opens in Safari > that says it is a test page--BUT NOT APP. Is the app supposed to open > in Safari as a RevLet? Yes, provided you have the plugin installed, but currently it only works in 32-bit mode. I think Safari defaults to 64-bit now. > > The file created on my drive consists as a folder (MyAppFolder) > containing two files (MyApp.revlet and test.html) > > I uploaded the folder to my web site. > > Now, how would someone run it on the web? Assuming they have > downloaded the player. > > What is the url? The URL is the one that opens the HTML page. When the page opens it will load the revlet. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at mollysrevenge.com Tue Jan 24 11:57:24 2012 From: pete at mollysrevenge.com (Pete) Date: Tue, 24 Jan 2012 08:57:24 -0800 Subject: Opening a Supercard file in Livecode? In-Reply-To: <4F1ECB99.7000209@fourthworld.com> References: <4F1ECB99.7000209@fourthworld.com> Message-ID: My thought is to not limit it to scripts necessarily, but all objects in a stack - stack, substacks, cards, controls, along with all their properties both standard and custom. I see it as a standalone program that would open a stack file, grab all the above info and write it into a database. There would then be an option to compare two versions of the same stack and present a list of everything that had changed between them. I guess you could even recreate a stack file in an emergency. I already have code that does a lot of the work to get all the info needed from a stack but currently it just presents it online and doesn't store it anywhere. I'm guessing there'll be some gotchas along the way, but I think this could be a useful tool as part of some sort of version control system. I can think of several occasions where it would have saved me a lot of time. Pete On Tue, Jan 24, 2012 at 7:17 AM, Richard Gaskin wrote: > Pete wrote: > > All good points. I guess I'm thinking of a different situation that >> multiple people working on the same project. When someone reports a bug >> that crept into a particular version of an application, it would be useful >> to see what changes were made to the stack that might have introduced the >> bug. >> > > That's a very good point. > > It shouldn't be too hard to write a tool that can examine two sets of > stack files and produce a list of handlers which have been modified. > > It would be a little tricky to write because we can't currently have two > stacks open with the same name, but I think it may be doable using > something like this: > > The tool would create an array with object references as the primary key > and handler names as the secondary key, where the value is the handler > definition itself. > > Then after it completes a scan of a given stack, it then goes through the > other version and compares the same handler definitions, noting changes, > missing items, and new items, and produces a clickable list of changes that > could take the developer to the script in question. > > I'll add this to my "To Do" list; seems like it would be useful..... > > > -- > 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 > > -- Pete Molly's Revenge From dixonja at hotmail.co.uk Tue Jan 24 12:13:16 2012 From: dixonja at hotmail.co.uk (John Dixon) Date: Tue, 24 Jan 2012 17:13:16 +0000 Subject: Throttling Accelerated Rendering... In-Reply-To: <4F1ED42E.8060709@hyperactivesw.com> References: , <4F1ED42E.8060709@hyperactivesw.com> Message-ID: Jacque... >From where are you handling the switching... from a preOpenCard handler ?... and how about when switching it off ?... (now I'm going to say something stupid) from the closeCard handler... the reason I ask, is I have tried this but am experiencing flashing when moving from a card using the acceleratedRendering to one where it gets 'switched off', as it were. be well Dixie > On 1/24/12 4:35 AM, John Dixon wrote: > > > > Has anyone been playing with the accelerated rendering ?.... Can it > > be switched on and off on a per card basis ? > > Yes. I have a couple of stacks that do that. It works fine. > Jacqueline Landman Gay | jacque at hyperactivesw.com From bobs at twft.com Tue Jan 24 12:14:31 2012 From: bobs at twft.com (Bob Sneidar) Date: Tue, 24 Jan 2012 09:14:31 -0800 Subject: Developing on Mac, standalone on Windows In-Reply-To: References: Message-ID: <9E497DC9-EA8C-47B7-8922-2B31F9B90B75@twft.com> Set the alignment of the label to Centered, set the width to autofit, align objects by their centers. One thing I do that seems to help is I set the width of the object (field, label, button, menu) to the formatted width of the object. On Jan 23, 2012, at 4:19 PM, Pete wrote: > Of course, there are still related issues! For example, I have a series of > buttons with icons associated with them. Each one also has a label > underneath it. I carefully centered the button and the label on my Mac > development machine but on the WIndows machine, they're not quite centered, > presumably because of the font change. From bobs at twft.com Tue Jan 24 12:22:34 2012 From: bobs at twft.com (Bob Sneidar) Date: Tue, 24 Jan 2012 09:22:34 -0800 Subject: AW: How can I copy from one stack to another with identical names? In-Reply-To: <000801ccda79$c9ee08e0$5dca1aa0$@de> References: <000301ccda74$3caa5880$b5ff0980$@de> <000801ccda79$c9ee08e0$5dca1aa0$@de> Message-ID: <59FDAE74-5C30-450B-933A-33DBB0904F10@twft.com> Sometimes if the app I am pasting into is not open when I copy, the app does not seem to be aware of the correct contents of the clipboard. This can especially be true if you have some kind of Office app installed, but I cannot state that for a certainty because I have never fully tested that theory. One way to do it might be to write an applescript that does a file copy. Then insert a frontScript that closes the first stack and removes it from memory, then opens the copy. I mention the frontScript because I am pretty sure you cannot continue to run a script in a stack that has been removed from memory. Bob On Jan 24, 2012, at 1:23 AM, Tiemo Hollmann TB wrote: > I tried it again with two instances and now the paste menu is active and I > can copy/paste between two instances of LC. > I don't know, why paste wasn't active before - does anybody knows what could > led to this behavior? > Thanks > Tiemo > >> -----Urspr?ngliche Nachricht----- >> Von: use-livecode-bounces at lists.runrev.com [mailto:use-livecode- >> bounces at lists.runrev.com] Im Auftrag von Tiemo Hollmann TB >> Gesendet: Dienstag, 24. Januar 2012 09:43 >> An: 'How to use LiveCode' >> Betreff: How can I copy from one stack to another with identical names? >> >> Hello, >> >> >> >> I have two versions of the same stack with a bunch of substacks. I >> would >> like to copy objects and scripts from one version to the other. >> >> I know, that I can't open two stacks with the same name for editing. I >> tried >> to open the two versions in two instances of LC, but it seems, that the >> copy/paste object doesn't work between instances. >> >> Renaming all stacks in one version would be an approach. Is there a >> better >> trick to do this job? >> >> Thanks for your experience >> >> 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 pmbrig at gmail.com Tue Jan 24 12:27:34 2012 From: pmbrig at gmail.com (Peter M. Brigham, MD) Date: Tue, 24 Jan 2012 12:27:34 -0500 Subject: Opening a Supercard file in Livecode? In-Reply-To: References: <4F1ECB99.7000209@fourthworld.com> Message-ID: I have some scripts in an updater stack that might be generalizable. I was forced to do this because my practice management stack was too big and complex to rewrite from scratch once I realized 10y ago or so that not separating data and UI was a big mistake (the project started as a Hypercard stack). I never learned enough about database management to tackle redoing the whole thing. In fact one of the benefits of storing the data on multiple cards, one for each patient (as opposed to a database, which is what I would have done if I knew what I was doing 15-20y ago), is that I have very sophisticated search functions that work seamlessly using LC's native find command. Which would mean to revise the whole structure of the thing and preserve my find commands would *really* mean having to learn SQL or whatnot, and I already have three half-time jobs... (:-) Anyway, as a result, I update my stacks (for the handful of other users) by keeping track of changes semi-automatically, logging them into an updater stack, then storing scripts and other properties in arrays (and also storing substacks as custom properties), and then adjusting everything on the user's machine by setting scripts and other properties and replacing substacks in a repeat loop, so the user data is preserved but the GUI is updated. I can work on extracting and generalizing my routines in between other things in the next few weeks, if anyone is interested. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Jan 24, 2012, at 11:57 AM, Pete wrote: > My thought is to not limit it to scripts necessarily, but all objects in a > stack - stack, substacks, cards, controls, along with all their properties > both standard and custom. > > I see it as a standalone program that would open a stack file, grab all the > above info and write it into a database. There would then be an option to > compare two versions of the same stack and present a list of everything > that had changed between them. I guess you could even recreate a stack > file in an emergency. > > I already have code that does a lot of the work to get all the info needed > from a stack but currently it just presents it online and doesn't store it > anywhere. > > I'm guessing there'll be some gotchas along the way, but I think this could > be a useful tool as part of some sort of version control system. I can > think of several occasions where it would have saved me a lot of time. > > Pete > > On Tue, Jan 24, 2012 at 7:17 AM, Richard Gaskin > wrote: > >> Pete wrote: >> >> All good points. I guess I'm thinking of a different situation that >>> multiple people working on the same project. When someone reports a bug >>> that crept into a particular version of an application, it would be useful >>> to see what changes were made to the stack that might have introduced the >>> bug. >>> >> >> That's a very good point. >> >> It shouldn't be too hard to write a tool that can examine two sets of >> stack files and produce a list of handlers which have been modified. >> >> It would be a little tricky to write because we can't currently have two >> stacks open with the same name, but I think it may be doable using >> something like this: >> >> The tool would create an array with object references as the primary key >> and handler names as the secondary key, where the value is the handler >> definition itself. >> >> Then after it completes a scan of a given stack, it then goes through the >> other version and compares the same handler definitions, noting changes, >> missing items, and new items, and produces a clickable list of changes that >> could take the developer to the script in question. >> >> I'll add this to my "To Do" list; seems like it would be useful..... >> >> >> -- >> 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 >> >> > > > -- > 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 bobs at twft.com Tue Jan 24 12:29:22 2012 From: bobs at twft.com (Bob Sneidar) Date: Tue, 24 Jan 2012 09:29:22 -0800 Subject: Breakpoints on a Global In-Reply-To: <4F1ED40F.7050005@hyperactivesw.com> References: <4F1ED40F.7050005@hyperactivesw.com> Message-ID: <43BC2CFC-F467-463C-AE6F-B2689CE06E38@twft.com> No, I mean I want to break when the value of the variable is something. In the default script editor there is a tab called Breakpoints. You can set something called a watch. You can set the scope to be global, and enter a variable, and set the break to happen when the variable matches a condition. It would be insanely useful, if it didn't crash to desktop just having the thing set to anything!! Bob On Jan 24, 2012, at 7:53 AM, J. Landman Gay wrote: > On 1/23/12 4:30 PM, Bob Sneidar wrote: >> I've mentioned it before, that if you set a breakpoint on a global, >> the IDE will crash to desktop. > > If you mean trying to break on a global declaration, I'm not sure how that could work at all. That's just a memory assignment. There's nothing to break on, and it never even occured to me to try it. Breakpoints only work inside handlers. The engine shouldn't crash regardless, but you won't get any useful info from examining a memory assignment. > > -- > 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 Tue Jan 24 12:30:05 2012 From: bobs at twft.com (Bob Sneidar) Date: Tue, 24 Jan 2012 09:30:05 -0800 Subject: Breakpoints on a Global In-Reply-To: <4F1E5F9E.1030506@pdslabs.net> References: <4F1E5F9E.1030506@pdslabs.net> Message-ID: Hi Phil. I cannot change the variable to a local because it is the array that contains the record data for the form I am using, so all objects have to be aware of it. You set a variable checkpoint either in the debugger, or by script. I'll be daggum if I remember the script command though. Bob On Jan 23, 2012, at 11:37 PM, Phil Davis wrote: > Hi Bob, > > Does it crash when you set a breakpoint on a local? If not, can you change the global to a local variable? > > Just grasping at straws... I've never set a breakpoint on a variable declaration. Didn't know you could. Is your global declared in a handler or outside all handlers? (I assume in a handler, otherwise the breakpoint couldn't be triggered, right?) > > Phil Davis > > > On 1/23/12 2:30 PM, Bob Sneidar wrote: >> I've mentioned it before, that if you set a breakpoint on a global, the IDE will crash to desktop. I have verified this is a problem even when all plugins are disabled. Does anyone know a workaround for this? I am in desperate need of finding where an array is getting set to empty. For whatever reason tracing it has been extremely elusive. >> >> 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 Tue Jan 24 12:43:51 2012 From: bobs at twft.com (Bob Sneidar) Date: Tue, 24 Jan 2012 09:43:51 -0800 Subject: Opening a Supercard file in Livecode? In-Reply-To: <4F1ECB99.7000209@fourthworld.com> References: <4F1ECB99.7000209@fourthworld.com> Message-ID: <6FF48609-D3AD-45E1-835F-2B7B29C2A230@twft.com> Actually, I think plain text would work here better, unless arrays were stored in properties. Even then, you could save the arrays as text using the printKeys() function. There are text comparison utilities out there which are quite good at highlighting the differences between two plain text files. I think grouped objects would have to be kept together too. Easier to put back together later. This actually seems like the beginnings of a version management plugin. The bugger in all of it is that you would have to avoid recording object ID's, opting for the long names of everything. Also, behaviors would be problematic. They would have to be listed without the ID's of the objects they were set to. Bob On Jan 24, 2012, at 7:17 AM, Richard Gaskin wrote: > Pete wrote: > >> All good points. I guess I'm thinking of a different situation that >> multiple people working on the same project. When someone reports a bug >> that crept into a particular version of an application, it would be useful >> to see what changes were made to the stack that might have introduced the >> bug. > > That's a very good point. > > It shouldn't be too hard to write a tool that can examine two sets of stack files and produce a list of handlers which have been modified. > > It would be a little tricky to write because we can't currently have two stacks open with the same name, but I think it may be doable using something like this: > > The tool would create an array with object references as the primary key and handler names as the secondary key, where the value is the handler definition itself. > > Then after it completes a scan of a given stack, it then goes through the other version and compares the same handler definitions, noting changes, missing items, and new items, and produces a clickable list of changes that could take the developer to the script in question. > > I'll add this to my "To Do" list; seems like it would be useful..... > > -- > 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 alex at tweedly.net Tue Jan 24 13:27:44 2012 From: alex at tweedly.net (Alex Tweedly) Date: Tue, 24 Jan 2012 18:27:44 +0000 Subject: Livecode handling of directories with non-ascii (?) characters. Message-ID: <4F1EF820.9040801@tweedly.net> I'm not sure if this is a LC question, or an OSX question, or a unicode question, or ... or what. I have a folder with funny characters (:-) in its name, and that seems to cause a problem in LC. When I do 'ls' in terminal, I get > Bj?rg ??rhallsd?ttir I cannot copy/paste this into a LC script using the script editor, but copy/pasting it into a text file, and then reading that (as a binfile) shows that the characters are B j ? r g ? ? r h a l l s d ? t t i r 66 106 246 114 103 32 222 243 114 104 97 108 108 115 100 243 116 116 105 114 10 However, in LC if I do put the folders into myVar what I get is 66 106 154 114 103 32 63 151 114 104 97 108 108 115 100 151 116 116 105 114 i.e. instead of 246 I get 154 243 I get 151 222 I get 63 and (naturally) I cannot then do "set the defaultfolder to line 2 of myVar" So - is there anything I can do to get around this ? Thanks -- Alex. From mark_powell at symantec.com Tue Jan 24 14:04:21 2012 From: mark_powell at symantec.com (Mark Powell) Date: Tue, 24 Jan 2012 11:04:21 -0800 Subject: Livecode handling of directories with non-ascii (?) characters. In-Reply-To: <4F1EF820.9040801@tweedly.net> References: <4F1EF820.9040801@tweedly.net> Message-ID: <3469AF22E7D82A46A12B6612437B8DF502A084F214@TUS1XCHEVSPIN38.SYMC.SYMANTEC.COM> Alex, I have had this problem since the Rev 2.0 days and as far as I can tell it is not fixed. In LC, I can literally "get the files" and immediately ask "is there a file (line whatever of it)" and I get a "doesn't exist" if line whatever of its contains a violater character in the file name. This happens with me for all Czech characters in the high ASCII range, and I have no workaround, either through terminal or through native LC. I am on Windows, not MacOS. It was a deal-breaker on an app I was developing a couple years back. ---------- I'm not sure if this is a LC question, or an OSX question, or a unicode question, or ... or what. I have a folder with funny characters (:-) in its name, and that seems to cause a problem in LC. From m.schonewille at economy-x-talk.com Tue Jan 24 14:10:26 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Tue, 24 Jan 2012 20:10:26 +0100 Subject: Livecode handling of directories with non-ascii (?) characters. In-Reply-To: <4F1EF820.9040801@tweedly.net> References: <4F1EF820.9040801@tweedly.net> Message-ID: Alex, No, LiveCode is hopelessly obsolete when it comes to unicode and interaction with other programmes or the operating system. You could try to create your own file management system for LiveCode using the shell, AppleScript and VBScript. LiveCode is the only current cross-platform tool I know of that is unable to do this. Even SuperCard, which isn't really unicode compliant, can deal with files that have non-ASCII characters in them. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 24 jan 2012, at 19:27, Alex Tweedly wrote: > > I'm not sure if this is a LC question, or an OSX question, or a unicode question, or ... or what. > > I have a folder with funny characters (:-) in its name, and that seems to cause a problem in LC. > > When I do 'ls' in terminal, I get >> Bj?rg ??rhallsd?ttir > I cannot copy/paste this into a LC script using the script editor, but copy/pasting it into a text file, and then reading that (as a binfile) shows that the characters are > > B j ? r g ? ? r h a l l s d ? t t i r > 66 106 246 114 103 32 222 243 114 104 97 108 108 115 100 243 116 116 105 114 10 > > However, in LC if I do > put the folders into myVar > > what I get is > > 66 106 154 114 103 32 63 151 114 104 97 108 108 115 100 151 116 116 105 114 > > i.e. instead of > 246 I get 154 > 243 I get 151 > 222 I get 63 > > and (naturally) I cannot then do "set the defaultfolder to line 2 of myVar" > > So - is there anything I can do to get around this ? > > Thanks > -- Alex. From m.schonewille at economy-x-talk.com Tue Jan 24 14:12:19 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Tue, 24 Jan 2012 20:12:19 +0100 Subject: Livecode handling of directories with non-ascii (?) characters. In-Reply-To: <3469AF22E7D82A46A12B6612437B8DF502A084F214@TUS1XCHEVSPIN38.SYMC.SYMANTEC.COM> References: <4F1EF820.9040801@tweedly.net> <3469AF22E7D82A46A12B6612437B8DF502A084F214@TUS1XCHEVSPIN38.SYMC.SYMANTEC.COM> Message-ID: <574D9518-18AF-467E-A8C7-E28D8DC461DE@economy-x-talk.com> Mark, It is a LC question. Definitely an LC question. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 24 jan 2012, at 20:04, Mark Powell wrote: > Alex, I have had this problem since the Rev 2.0 days and as far as I can tell it is not fixed. In LC, I can literally "get the files" and immediately ask "is there a file (line whatever of it)" and I get a "doesn't exist" if line whatever of its contains a violater character in the file name. This happens with me for all Czech characters in the high ASCII range, and I have no workaround, either through terminal or through native LC. I am on Windows, not MacOS. It was a deal-breaker on an app I was developing a couple years back. > > ---------- > I'm not sure if this is a LC question, or an OSX question, or a unicode > question, or ... or what. > > I have a folder with funny characters (:-) in its name, and that seems > to cause a problem in LC. From kray at sonsothunder.com Tue Jan 24 14:52:20 2012 From: kray at sonsothunder.com (Ken Ray) Date: Tue, 24 Jan 2012 13:52:20 -0600 Subject: Navigating XML in LiveCode In-Reply-To: References: Message-ID: > Ken - ever helpful! I'm sorry I grumbled about not getting replies. That's just stupid, given that everyone on this list is busy, and it's bad manners too. Anyway your reply (which I haven't quoted in full) shows me how to get round my specific issues, so I see that it can be done: what I have to do now is to decide between a perhaps more appropriate structure using arrays, with the disadvantage of having to put them in a stack and save it to get persistence, or to put up with the rather clunky XML functions (yours or LC's) in order to get a simpler storage solution. If it's *really* simple, you might want to consider a simple tab-delimited text file - by far the easiest approach, IMHO. :D Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From pete at mollysrevenge.com Tue Jan 24 14:59:48 2012 From: pete at mollysrevenge.com (Pete) Date: Tue, 24 Jan 2012 11:59:48 -0800 Subject: Opening a Supercard file in Livecode? In-Reply-To: <6FF48609-D3AD-45E1-835F-2B7B29C2A230@twft.com> References: <4F1ECB99.7000209@fourthworld.com> <6FF48609-D3AD-45E1-835F-2B7B29C2A230@twft.com> Message-ID: Bob, I think you'd have to find some way to preserve object IDs or a lot of stuff would break. Datagrids, for example, store the row template as a long id. And, as you pointed out, behaviors. On Tue, Jan 24, 2012 at 9:43 AM, Bob Sneidar wrote: > Actually, I think plain text would work here better, unless arrays were > stored in properties. Even then, you could save the arrays as text using > the printKeys() function. There are text comparison utilities out there > which are quite good at highlighting the differences between two plain text > files. > > I think grouped objects would have to be kept together too. Easier to put > back together later. > > This actually seems like the beginnings of a version management plugin. > The bugger in all of it is that you would have to avoid recording object > ID's, opting for the long names of everything. Also, behaviors would be > problematic. They would have to be listed without the ID's of the objects > they were set to. > > Bob > > > On Jan 24, 2012, at 7:17 AM, Richard Gaskin wrote: > > > Pete wrote: > > > >> All good points. I guess I'm thinking of a different situation that > >> multiple people working on the same project. When someone reports a bug > >> that crept into a particular version of an application, it would be > useful > >> to see what changes were made to the stack that might have introduced > the > >> bug. > > > > That's a very good point. > > > > It shouldn't be too hard to write a tool that can examine two sets of > stack files and produce a list of handlers which have been modified. > > > > It would be a little tricky to write because we can't currently have two > stacks open with the same name, but I think it may be doable using > something like this: > > > > The tool would create an array with object references as the primary key > and handler names as the secondary key, where the value is the handler > definition itself. > > > > Then after it completes a scan of a given stack, it then goes through > the other version and compares the same handler definitions, noting > changes, missing items, and new items, and produces a clickable list of > changes that could take the developer to the script in question. > > > > I'll add this to my "To Do" list; seems like it would be useful..... > > > > -- > > 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 pete at mollysrevenge.com Tue Jan 24 15:03:17 2012 From: pete at mollysrevenge.com (Pete) Date: Tue, 24 Jan 2012 12:03:17 -0800 Subject: Developing on Mac, standalone on Windows In-Reply-To: <9E497DC9-EA8C-47B7-8922-2B31F9B90B75@twft.com> References: <9E497DC9-EA8C-47B7-8922-2B31F9B90B75@twft.com> Message-ID: I do all that already, still looks different on Windows than on Mac, I think because of the different character widths of different fonts. The only way I can think to keep it looking the same is do all the centering, etc when a card is opened. On Tue, Jan 24, 2012 at 9:14 AM, Bob Sneidar wrote: > Set the alignment of the label to Centered, set the width to autofit, > align objects by their centers. One thing I do that seems to help is I set > the width of the object (field, label, button, menu) to the formatted width > of the object. > On Jan 23, 2012, at 4:19 PM, Pete wrote: > > > Of course, there are still related issues! For example, I have a series > of > > buttons with icons associated with them. Each one also has a label > > underneath it. I carefully centered the button and the label on my Mac > > development machine but on the WIndows machine, they're not quite > centered, > > presumably because of the font change. > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 stephenREVOLUTION2 at barncard.com Tue Jan 24 15:04:14 2012 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Tue, 24 Jan 2012 12:04:14 -0800 Subject: Navigating XML in LiveCode In-Reply-To: References: Message-ID: one can even store fields that contain returns - replace them with an 'invisible' character such as vertical tab and each record will be one line. Tab-delimited text is so much easier to deal with - the text chunking commands you already know work great - and are very fast. On 24 January 2012 11:52, Ken Ray wrote: > > Ken - ever helpful! I'm sorry I grumbled about not getting replies. > That's just stupid, given that everyone on this list is busy, and it's bad > manners too. Anyway your reply (which I haven't quoted in full) shows me > how to get round my specific issues, so I see that it can be done: what I > have to do now is to decide between a perhaps more appropriate structure > using arrays, with the disadvantage of having to put them in a stack and > save it to get persistence, or to put up with the rather clunky XML > functions (yours or LC's) in order to get a simpler storage solution. > > If it's *really* simple, you might want to consider a simple tab-delimited > text file - by far the easiest approach, IMHO. > > :D > > Ken Ray > Sons of Thunder Software, Inc. > Email: kray at sonsothunder.com > Web Site: http://www.sonsothunder.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 revdev at pdslabs.net Tue Jan 24 15:13:27 2012 From: revdev at pdslabs.net (Phil Davis) Date: Tue, 24 Jan 2012 12:13:27 -0800 Subject: Breakpoints on a Global In-Reply-To: References: <4F1E5F9E.1030506@pdslabs.net> Message-ID: <4F1F10E7.8000505@pdslabs.net> I see. After reading Jacque's contribution also, maybe you want something like this in your script? if the keys of gMyGlobal = empty then breakpoint Phil On 1/24/12 9:30 AM, Bob Sneidar wrote: > Hi Phil. I cannot change the variable to a local because it is the array that contains the record data for the form I am using, so all objects have to be aware of it. > > You set a variable checkpoint either in the debugger, or by script. I'll be daggum if I remember the script command though. > > Bob > > > On Jan 23, 2012, at 11:37 PM, Phil Davis wrote: > >> Hi Bob, >> >> Does it crash when you set a breakpoint on a local? If not, can you change the global to a local variable? >> >> Just grasping at straws... I've never set a breakpoint on a variable declaration. Didn't know you could. Is your global declared in a handler or outside all handlers? (I assume in a handler, otherwise the breakpoint couldn't be triggered, right?) >> >> Phil Davis >> >> >> On 1/23/12 2:30 PM, Bob Sneidar wrote: >>> I've mentioned it before, that if you set a breakpoint on a global, the IDE will crash to desktop. I have verified this is a problem even when all plugins are disabled. Does anyone know a workaround for this? I am in desperate need of finding where an array is getting set to empty. For whatever reason tracing it has been extremely elusive. >>> >>> 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 > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Tue Jan 24 16:04:44 2012 From: bobs at twft.com (Bob Sneidar) Date: Tue, 24 Jan 2012 13:04:44 -0800 Subject: Breakpoints on a Global In-Reply-To: <4F1F10E7.8000505@pdslabs.net> References: <4F1E5F9E.1030506@pdslabs.net> <4F1F10E7.8000505@pdslabs.net> Message-ID: <6783394A-8ECA-4B7D-88A3-3D0770A8FC3C@twft.com> Aye I can already do that as a scripted breakpoint. if myGlobal is not an array. But where to put it? By the time it comes back from something I call a single key has been created by another handler, and there is no line I have encountered so far that actually sets it to empty. What is actually happening somewhere is that I am getting the dgHilitedIndex of a datagrid, and then putting the dgDataOfIndex into this global array, when there is nothing selected in the datagrid. My problem is finding where this is happening. I will try to find it using the search feature (very handy btw). It would be easier if RR fixes this daggum problem though. This is a feature that used to work. I know because GLX2 used to do this successfully. Bob On Jan 24, 2012, at 12:13 PM, Phil Davis wrote: > I see. After reading Jacque's contribution also, maybe you want something like this in your script? > > if the keys of gMyGlobal = empty then breakpoint > > Phil > > > On 1/24/12 9:30 AM, Bob Sneidar wrote: >> Hi Phil. I cannot change the variable to a local because it is the array that contains the record data for the form I am using, so all objects have to be aware of it. >> >> You set a variable checkpoint either in the debugger, or by script. I'll be daggum if I remember the script command though. >> >> Bob >> >> >> On Jan 23, 2012, at 11:37 PM, Phil Davis wrote: >> >>> Hi Bob, >>> >>> Does it crash when you set a breakpoint on a local? If not, can you change the global to a local variable? >>> >>> Just grasping at straws... I've never set a breakpoint on a variable declaration. Didn't know you could. Is your global declared in a handler or outside all handlers? (I assume in a handler, otherwise the breakpoint couldn't be triggered, right?) >>> >>> Phil Davis >>> >>> >>> On 1/23/12 2:30 PM, Bob Sneidar wrote: >>>> I've mentioned it before, that if you set a breakpoint on a global, the IDE will crash to desktop. I have verified this is a problem even when all plugins are disabled. Does anyone know a workaround for this? I am in desperate need of finding where an array is getting set to empty. For whatever reason tracing it has been extremely elusive. >>>> >>>> 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 >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 kray at sonsothunder.com Tue Jan 24 16:05:00 2012 From: kray at sonsothunder.com (Ken Ray) Date: Tue, 24 Jan 2012 15:05:00 -0600 Subject: Developing on Mac, standalone on Windows In-Reply-To: References: <9E497DC9-EA8C-47B7-8922-2B31F9B90B75@twft.com> Message-ID: <9AD93D74-3D67-4CCE-92FF-E19B2752CE1D@sonsothunder.com> On Jan 24, 2012, at 2:03 PM, Pete wrote: > I do all that already, still looks different on Windows than on Mac, I > think because of the different character widths of different fonts. The > only way I can think to keep it looking the same is do all the centering, > etc when a card is opened. Oh also one thing that people forget about is that buttons have 'margins' just like fields do; I can't tell you how many times I've had to set the margins of a button to 'nudge' the label one way or the other? so you may be able to keep the width of the button, but just adjust the margins when the card is opened. Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From williamdesmet at gmail.com Tue Jan 24 16:11:23 2012 From: williamdesmet at gmail.com (William de Smet) Date: Tue, 24 Jan 2012 22:11:23 +0100 Subject: How do I make something like a html imagemap on a graphical object? Message-ID: Hi there, I made a graphical oval object "pacman" with a startAngle of 28 and a arcAngle of 304. It's background is yellow. Want I want to do is something like a html image map: define an area where something happens. I want the cursor to change 'on mouseenter' but only when the mouse is over 'packman' or over its's 'mouth' Ofcourse I can do this by using 'dummy' transparent graphical objects placed over the 'pacman' and over it's mouth but I am looking for a way to do this by script. Is this possible? greetings, William From bobs at twft.com Tue Jan 24 16:20:59 2012 From: bobs at twft.com (Bob Sneidar) Date: Tue, 24 Jan 2012 13:20:59 -0800 Subject: Opening a Supercard file in Livecode? In-Reply-To: References: <4F1ECB99.7000209@fourthworld.com> <6FF48609-D3AD-45E1-835F-2B7B29C2A230@twft.com> Message-ID: <470500A3-F8A1-42F4-BEFD-41C84DB55DD8@twft.com> Yes the more I think about it, the more tedious it becomes. It seems the only way to do multiuser dev is to have the source stack available to a kind of checkout engine. A dev would have to check out an object at which point it would be unavailable to any other user. And you would have to have a running copy that was the exact replica of the original including ID's. Not sure how to do that. Way back when some made the argument that it was a bad idea to use ID's as references to objects. Now it seems we understand much more how true that is. We are beyond the point of know return now. :-) Bob On Jan 24, 2012, at 11:59 AM, Pete wrote: > Bob, > I think you'd have to find some way to preserve object IDs or a lot of > stuff would break. Datagrids, for example, store the row template as a > long id. And, as you pointed out, behaviors. From revdev at pdslabs.net Tue Jan 24 16:22:21 2012 From: revdev at pdslabs.net (Phil Davis) Date: Tue, 24 Jan 2012 13:22:21 -0800 Subject: Breakpoints on a Global In-Reply-To: <6783394A-8ECA-4B7D-88A3-3D0770A8FC3C@twft.com> References: <4F1E5F9E.1030506@pdslabs.net> <4F1F10E7.8000505@pdslabs.net> <6783394A-8ECA-4B7D-88A3-3D0770A8FC3C@twft.com> Message-ID: <4F1F210D.6090806@pdslabs.net> Hmmm. You probably already tried this, but... can you check for a non-empty value in dgHilitedIndex before allowing the 'put... into...' to proceed? Of course that's still a problem if it happens in 14 dozen different places. Maybe put the actual setting of the array inside a setProp handler, so your setprop handler script can examine the 'set to' values before allowing it? Sounds frustrating indeed. Phil On 1/24/12 1:04 PM, Bob Sneidar wrote: > Aye I can already do that as a scripted breakpoint. if myGlobal is not an array. But where to put it? By the time it comes back from something I call a single key has been created by another handler, and there is no line I have encountered so far that actually sets it to empty. What is actually happening somewhere is that I am getting the dgHilitedIndex of a datagrid, and then putting the dgDataOfIndex into this global array, when there is nothing selected in the datagrid. My problem is finding where this is happening. I will try to find it using the search feature (very handy btw). It would be easier if RR fixes this daggum problem though. This is a feature that used to work. I know because GLX2 used to do this successfully. > > Bob > > > On Jan 24, 2012, at 12:13 PM, Phil Davis wrote: > >> I see. After reading Jacque's contribution also, maybe you want something like this in your script? >> >> if the keys of gMyGlobal = empty then breakpoint >> >> Phil >> >> >> On 1/24/12 9:30 AM, Bob Sneidar wrote: >>> Hi Phil. I cannot change the variable to a local because it is the array that contains the record data for the form I am using, so all objects have to be aware of it. >>> >>> You set a variable checkpoint either in the debugger, or by script. I'll be daggum if I remember the script command though. >>> >>> Bob >>> >>> >>> On Jan 23, 2012, at 11:37 PM, Phil Davis wrote: >>> >>>> Hi Bob, >>>> >>>> Does it crash when you set a breakpoint on a local? If not, can you change the global to a local variable? >>>> >>>> Just grasping at straws... I've never set a breakpoint on a variable declaration. Didn't know you could. Is your global declared in a handler or outside all handlers? (I assume in a handler, otherwise the breakpoint couldn't be triggered, right?) >>>> >>>> Phil Davis >>>> >>>> >>>> On 1/23/12 2:30 PM, Bob Sneidar wrote: >>>>> I've mentioned it before, that if you set a breakpoint on a global, the IDE will crash to desktop. I have verified this is a problem even when all plugins are disabled. Does anyone know a workaround for this? I am in desperate need of finding where an array is getting set to empty. For whatever reason tracing it has been extremely elusive. >>>>> >>>>> 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 >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 > > _______________________________________________ > use-livecode mailing list > use-livecode 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 jacque at hyperactivesw.com Tue Jan 24 16:22:25 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 24 Jan 2012 15:22:25 -0600 Subject: Throttling Accelerated Rendering... In-Reply-To: References: , <4F1ED42E.8060709@hyperactivesw.com> Message-ID: <4F1F2111.9060305@hyperactivesw.com> On 1/24/12 11:13 AM, John Dixon wrote: > > Jacque... > >> From where are you handling the switching... from a preOpenCard >> handler ?... and how about when switching it off ?... (now I'm >> going to say something stupid) from the closeCard handler... the >> reason I ask, is I have tried this but am experiencing flashing >> when moving from a card using the acceleratedRendering to one where >> it gets 'switched off', as it were. I only have one card that needs accelerated rendering, so I set it on preOpenCard and turn it off on closecard. But I do lock the screen and apply a visual effect when the card changes, so maybe that's why I don't see any flash. If you don't need a visual effect, you could still try locking and unlocking the screen. Are you using the latest release? There were some issues that were fixed that might apply. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From stephenREVOLUTION2 at barncard.com Tue Jan 24 16:28:02 2012 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Tue, 24 Jan 2012 13:28:02 -0800 Subject: Opening a Supercard file in Livecode? In-Reply-To: <470500A3-F8A1-42F4-BEFD-41C84DB55DD8@twft.com> References: <4F1ECB99.7000209@fourthworld.com> <6FF48609-D3AD-45E1-835F-2B7B29C2A230@twft.com> <470500A3-F8A1-42F4-BEFD-41C84DB55DD8@twft.com> Message-ID: uniquely naming all objects and using 'get the id of object ' instead of using any IDs at all would seem to solve this problem... of course would have to be a convention when starting a project. why wouldn't this work? On 24 January 2012 13:20, Bob Sneidar wrote: > Yes the more I think about it, the more tedious it becomes. It seems the > only way to do multiuser dev is to have the source stack available to a > kind of checkout engine. A dev would have to check out an object at which > point it would be unavailable to any other user. And you would have to have > a running copy that was the exact replica of the original including ID's. > Not sure how to do that. > > Way back when some made the argument that it was a bad idea to use ID's as > references to objects. Now it seems we understand much more how true that > is. We are beyond the point of know return now. :-) > > Bob > > > On Jan 24, 2012, at 11:59 AM, Pete wrote: > > > Bob, > > I think you'd have to find some way to preserve object IDs or a lot of > > stuff would break. Datagrids, for example, store the row template as a > > long id. And, as you pointed out, behaviors. > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Jan 24 16:30:34 2012 From: bobs at twft.com (Bob Sneidar) Date: Tue, 24 Jan 2012 13:30:34 -0800 Subject: Breakpoints on a Global In-Reply-To: <4F1F210D.6090806@pdslabs.net> References: <4F1E5F9E.1030506@pdslabs.net> <4F1F10E7.8000505@pdslabs.net> <6783394A-8ECA-4B7D-88A3-3D0770A8FC3C@twft.com> <4F1F210D.6090806@pdslabs.net> Message-ID: yup found one instance of that. Have to be careful though because I have a second datagrid that is populated with related table data and uses the values in the array in it's own query. I just have to pore through the code. Bob On Jan 24, 2012, at 1:22 PM, Phil Davis wrote: > Hmmm. You probably already tried this, but... can you check for a non-empty value in dgHilitedIndex before allowing the 'put... into...' to proceed? Of course that's still a problem if it happens in 14 dozen different places. > > Maybe put the actual setting of the array inside a setProp handler, so your setprop handler script can examine the 'set to' values before allowing it? > > Sounds frustrating indeed. > > Phil > > > On 1/24/12 1:04 PM, Bob Sneidar wrote: >> Aye I can already do that as a scripted breakpoint. if myGlobal is not an array. But where to put it? By the time it comes back from something I call a single key has been created by another handler, and there is no line I have encountered so far that actually sets it to empty. What is actually happening somewhere is that I am getting the dgHilitedIndex of a datagrid, and then putting the dgDataOfIndex into this global array, when there is nothing selected in the datagrid. My problem is finding where this is happening. I will try to find it using the search feature (very handy btw). It would be easier if RR fixes this daggum problem though. This is a feature that used to work. I know because GLX2 used to do this successfully. >> >> Bob >> >> >> On Jan 24, 2012, at 12:13 PM, Phil Davis wrote: >> >>> I see. After reading Jacque's contribution also, maybe you want something like this in your script? >>> >>> if the keys of gMyGlobal = empty then breakpoint >>> >>> Phil >>> >>> >>> On 1/24/12 9:30 AM, Bob Sneidar wrote: >>>> Hi Phil. I cannot change the variable to a local because it is the array that contains the record data for the form I am using, so all objects have to be aware of it. >>>> >>>> You set a variable checkpoint either in the debugger, or by script. I'll be daggum if I remember the script command though. >>>> >>>> Bob >>>> >>>> >>>> On Jan 23, 2012, at 11:37 PM, Phil Davis wrote: >>>> >>>>> Hi Bob, >>>>> >>>>> Does it crash when you set a breakpoint on a local? If not, can you change the global to a local variable? >>>>> >>>>> Just grasping at straws... I've never set a breakpoint on a variable declaration. Didn't know you could. Is your global declared in a handler or outside all handlers? (I assume in a handler, otherwise the breakpoint couldn't be triggered, right?) >>>>> >>>>> Phil Davis >>>>> >>>>> >>>>> On 1/23/12 2:30 PM, Bob Sneidar wrote: >>>>>> I've mentioned it before, that if you set a breakpoint on a global, the IDE will crash to desktop. I have verified this is a problem even when all plugins are disabled. Does anyone know a workaround for this? I am in desperate need of finding where an array is getting set to empty. For whatever reason tracing it has been extremely elusive. >>>>>> >>>>>> 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 >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode 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 >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 ken at kencorey.com Tue Jan 24 16:42:48 2012 From: ken at kencorey.com (Ken Corey) Date: Tue, 24 Jan 2012 21:42:48 +0000 Subject: How do I make something like a html imagemap on a graphical object? In-Reply-To: References: Message-ID: <4F1F25D8.20506@kencorey.com> Hi William, Take a look at the newletter issue 67: http://runrev.com/newsletter/march/issue67/newsletter2.php I happened to be checking things out in the old newsletters, and noticed that it does what you're talking about (along with a bit more, I gather). -Ken On 24/01/2012 21:11, William de Smet wrote: > Want I want to do is something like a html image map: define an area > where something happens. > I want the cursor to change 'on mouseenter' but only when the mouse is > over 'packman' or over its's 'mouth' From bvlahos at mac.com Tue Jan 24 16:49:26 2012 From: bvlahos at mac.com (Bill Vlahos) Date: Tue, 24 Jan 2012 13:49:26 -0800 Subject: Answer file with multiple types Message-ID: <56A144A6-A249-4943-A5DC-2BF9D19D9841@mac.com> This statement works for .txt files. answer file "Select the text file" with type "Text|txt" How would I allow both .txt and .csv files as multiple types? The documentation says it can be done but I'm not seeing the right syntax. Thanks, Bill Vlahos _________________ InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. From bobs at twft.com Tue Jan 24 16:56:48 2012 From: bobs at twft.com (Bob Sneidar) Date: Tue, 24 Jan 2012 13:56:48 -0800 Subject: Breakpoints on a Global In-Reply-To: <4F1F210D.6090806@pdslabs.net> References: <4F1E5F9E.1030506@pdslabs.net> <4F1F10E7.8000505@pdslabs.net> <6783394A-8ECA-4B7D-88A3-3D0770A8FC3C@twft.com> <4F1F210D.6090806@pdslabs.net> Message-ID: <684FA7CC-3AA2-450B-9C2F-B5541E9251F2@twft.com> Okay I found another obscure instance of the same thing and fixed it. I have learned a valuable lesson: Bail from handlers when there is no point proceeding. An empty value for the dhHilitedIndex in this particular handler produced the same visible results, but ended up setting my array (which the whole form is based upon) to empty. I really need to be more disciplined in my coding habits. I still would LOVE to see that variable watch feature fixed again though. That is insanely useful! Bob > yup found one instance of that. Have to be careful though because I have a second datagrid that is populated with related table data and uses the values in the array in it's own query. I just have to pore through the code. > > Bob > > > On Jan 24, 2012, at 1:22 PM, Phil Davis wrote: > >> Hmmm. You probably already tried this, but... can you check for a non-empty value in dgHilitedIndex before allowing the 'put... into...' to proceed? Of course that's still a problem if it happens in 14 dozen different places. >> >> Maybe put the actual setting of the array inside a setProp handler, so your setprop handler script can examine the 'set to' values before allowing it? >> >> Sounds frustrating indeed. >> >> Phil >> > From kray at sonsothunder.com Tue Jan 24 16:58:44 2012 From: kray at sonsothunder.com (Ken Ray) Date: Tue, 24 Jan 2012 15:58:44 -0600 Subject: Answer file with multiple types In-Reply-To: <56A144A6-A249-4943-A5DC-2BF9D19D9841@mac.com> References: <56A144A6-A249-4943-A5DC-2BF9D19D9841@mac.com> Message-ID: On Jan 24, 2012, at 3:49 PM, Bill Vlahos wrote: > This statement works for .txt files. > answer file "Select the text file" with type "Text|txt" > > How would I allow both .txt and .csv files as multiple types? The documentation says it can be done but I'm not seeing the right syntax. answer file "Select the text file" with type "Text|txt" or type "CSV|csv" Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From bobs at twft.com Tue Jan 24 17:06:29 2012 From: bobs at twft.com (Bob Sneidar) Date: Tue, 24 Jan 2012 14:06:29 -0800 Subject: Opening a Supercard file in Livecode? In-Reply-To: References: <4F1ECB99.7000209@fourthworld.com> <6FF48609-D3AD-45E1-835F-2B7B29C2A230@twft.com> <470500A3-F8A1-42F4-BEFD-41C84DB55DD8@twft.com> Message-ID: It would work for user created objects, except how do you get datagrids to do this? All kinds of things in the datagrid are linked by long ID's to their behaviors by the engine. I'd be nervous about going into any functioning datagrid and trying to update all the object behavior references, and then when the datagrid creates new objects, unless you modify the datagrid library, it is also going to assign long ID's to those. This does bring up an interesting point though. I think the datagrid library could be updated in such a way that the objects it creates could be persistent, that is, given the same size datagrid, same rows and columns, the objects would not be deleted or recreated simply because the data changed. It would also address the issue of how to deal with adding data below the last data in the datagrid. If the cells were already there you would just double click on one to edit it. It would be quite an undertaking, but it is my opinion that the datagrid should have been designed this way to begin with. It solves a lot of problems we run into now, and we have discussed previously what happens in an app after a number of years of heavy use if you run out of ID's. It's hardly likely I suppose, but it's a possibility. Just thinking out loud here. Bob On Jan 24, 2012, at 1:28 PM, stephen barncard wrote: > uniquely naming all objects and using 'get the id of object ' > instead of using any IDs at all would seem to solve this problem... > > of course would have to be a convention when starting a project. > > why wouldn't this work? > > On 24 January 2012 13:20, Bob Sneidar wrote: > >> Yes the more I think about it, the more tedious it becomes. It seems the >> only way to do multiuser dev is to have the source stack available to a >> kind of checkout engine. A dev would have to check out an object at which >> point it would be unavailable to any other user. And you would have to have >> a running copy that was the exact replica of the original including ID's. >> Not sure how to do that. >> >> Way back when some made the argument that it was a bad idea to use ID's as >> references to objects. Now it seems we understand much more how true that >> is. We are beyond the point of know return now. :-) >> >> Bob >> >> >> On Jan 24, 2012, at 11:59 AM, Pete wrote: >> >>> Bob, >>> I think you'd have to find some way to preserve object IDs or a lot of >>> stuff would break. Datagrids, for example, store the row template as a >>> long id. And, as you pointed out, behaviors. >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 stephenREVOLUTION2 at barncard.com Tue Jan 24 17:13:08 2012 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Tue, 24 Jan 2012 14:13:08 -0800 Subject: Opening a Supercard file in Livecode? In-Reply-To: References: <4F1ECB99.7000209@fourthworld.com> <6FF48609-D3AD-45E1-835F-2B7B29C2A230@twft.com> <470500A3-F8A1-42F4-BEFD-41C84DB55DD8@twft.com> Message-ID: I am sure the Slug and/or Trevor will chime in here.. good points.... the redirection might have an impact on the speed in this case... Maybe a special 'data grid fixer' handler.... On 24 January 2012 14:06, Bob Sneidar wrote: > It would work for user created objects, except how do you get datagrids to > do this? All kinds of things in the datagrid are linked by long ID's to > their behaviors by the engine. I'd be nervous about going into any > functioning datagrid and trying to update all the object behavior > references, and then when the datagrid creates new objects, unless you > modify the datagrid library, it is also going to assign long ID's to those. > > This does bring up an interesting point though. I think the datagrid > library could be updated in such a way that the objects it creates could be > persistent, that is, given the same size datagrid, same rows and columns, > the objects would not be deleted or recreated simply because the data > changed. It would also address the issue of how to deal with adding data > below the last data in the datagrid. If the cells were already there you > would just double click on one to edit it. > > It would be quite an undertaking, but it is my opinion that the datagrid > should have been designed this way to begin with. It solves a lot of > problems we run into now, and we have discussed previously what happens in > an app after a number of years of heavy use if you run out of ID's. It's > hardly likely I suppose, but it's a possibility. Just thinking out loud > here. > > Bob > > > On Jan 24, 2012, at 1:28 PM, stephen barncard wrote: > > > uniquely naming all objects and using 'get the id of object ' > > instead of using any IDs at all would seem to solve this problem... > > > > of course would have to be a convention when starting a project. > > > > why wouldn't this work? > > > > On 24 January 2012 13:20, Bob Sneidar wrote: > > > >> Yes the more I think about it, the more tedious it becomes. It seems the > >> only way to do multiuser dev is to have the source stack available to a > >> kind of checkout engine. A dev would have to check out an object at > which > >> point it would be unavailable to any other user. And you would have to > have > >> a running copy that was the exact replica of the original including > ID's. > >> Not sure how to do that. > >> > >> Way back when some made the argument that it was a bad idea to use ID's > as > >> references to objects. Now it seems we understand much more how true > that > >> is. We are beyond the point of know return now. :-) > >> > >> Bob > >> > >> > >> On Jan 24, 2012, at 11:59 AM, Pete wrote: > >> > >>> Bob, > >>> I think you'd have to find some way to preserve object IDs or a lot of > >>> stuff would break. Datagrids, for example, store the row template as a > >>> long id. And, as you pointed out, behaviors. > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 artdivito at sbcglobal.net Tue Jan 24 17:40:04 2012 From: artdivito at sbcglobal.net (Art DiVito) Date: Tue, 24 Jan 2012 14:40:04 -0800 (PST) Subject: standalone icon Message-ID: <1327444804.54697.YahooMailClassic@web81202.mail.mud.yahoo.com> Is it okay to use LC's default icons (they seem to be different for Macs and PCs) for a market product? How does one obtain a custom-made icon? Do you have to have separate ones for Macs and PCs? Can anyone here help me with this? Thanks. From pete at mollysrevenge.com Tue Jan 24 17:41:43 2012 From: pete at mollysrevenge.com (Pete) Date: Tue, 24 Jan 2012 14:41:43 -0800 Subject: Opening a Supercard file in Livecode? In-Reply-To: References: <4F1ECB99.7000209@fourthworld.com> <6FF48609-D3AD-45E1-835F-2B7B29C2A230@twft.com> <470500A3-F8A1-42F4-BEFD-41C84DB55DD8@twft.com> Message-ID: I think we're each looking at this from different perspectives. My objective is to compare two versions of the same stack file and list the differences between them, that's it. All the data collected about the stack would be have to be keyed by object ids (perhaps with the exception of stacks and images) in order to do that, I think, since names can and do change and a name change would be something you'd want to know about. Isn't there some sort of user-assigned id available? That could help. There's definitely challenges to anything beyond that. I have a feeling that trying to recreate a stack would be a nightmare and Version control is certainly a complex subject. On Tue, Jan 24, 2012 at 1:28 PM, stephen barncard < stephenREVOLUTION2 at barncard.com> wrote: > uniquely naming all objects and using 'get the id of object ' > instead of using any IDs at all would seem to solve this problem... > > of course would have to be a convention when starting a project. > > why wouldn't this work? > > On 24 January 2012 13:20, Bob Sneidar wrote: > > > Yes the more I think about it, the more tedious it becomes. It seems the > > only way to do multiuser dev is to have the source stack available to a > > kind of checkout engine. A dev would have to check out an object at which > > point it would be unavailable to any other user. And you would have to > have > > a running copy that was the exact replica of the original including ID's. > > Not sure how to do that. > > > > Way back when some made the argument that it was a bad idea to use ID's > as > > references to objects. Now it seems we understand much more how true that > > is. We are beyond the point of know return now. :-) > > > > Bob > > > > > > On Jan 24, 2012, at 11:59 AM, Pete wrote: > > > > > Bob, > > > I think you'd have to find some way to preserve object IDs or a lot of > > > stuff would break. Datagrids, for example, store the row template as a > > > long id. And, as you pointed out, behaviors. > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode 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 > > -- Pete Molly's Revenge From monte at sweattechnologies.com Tue Jan 24 17:56:19 2012 From: monte at sweattechnologies.com (Monte Goulding) Date: Wed, 25 Jan 2012 09:56:19 +1100 Subject: [ANN] mergZXing 1.0.3 Message-ID: <2287B686-12D3-4C07-9C3E-84A259AE6893@sweattechnologies.com> Hi All I have just updated mergZXing with a new bonus external mergMessage all still for the early bird price of US$49. With mergMessage you can send sms from livecode. There's one command: mergMessage [pNumbers],[pBody] and one function: mergMessageCanSendText() Cheers Monte From bobs at twft.com Tue Jan 24 17:58:12 2012 From: bobs at twft.com (Bob Sneidar) Date: Tue, 24 Jan 2012 14:58:12 -0800 Subject: Opening a Supercard file in Livecode? In-Reply-To: References: <4F1ECB99.7000209@fourthworld.com> <6FF48609-D3AD-45E1-835F-2B7B29C2A230@twft.com> <470500A3-F8A1-42F4-BEFD-41C84DB55DD8@twft.com> Message-ID: <8DFF42A9-E2C9-4731-9F68-0A9E34DFB8A3@twft.com> Aye but the problems you face are the same ones with version control and multiuser development. Almost the exact same set of problems actually. Bob On Jan 24, 2012, at 2:41 PM, Pete wrote: > I think we're each looking at this from different perspectives. > > My objective is to compare two versions of the same stack file and list the > differences between them, that's it. From userev at canelasoftware.com Tue Jan 24 18:05:27 2012 From: userev at canelasoftware.com (Mark Talluto) Date: Tue, 24 Jan 2012 15:05:27 -0800 Subject: standalone icon In-Reply-To: <1327444804.54697.YahooMailClassic@web81202.mail.mud.yahoo.com> References: <1327444804.54697.YahooMailClassic@web81202.mail.mud.yahoo.com> Message-ID: On Jan 24, 2012, at 2:40 PM, Art DiVito wrote: > Is it okay to use LC's default icons (they seem to be different for Macs and PCs) for a market product? How does one obtain a custom-made icon? Do you have to have separate ones for Macs and PCs? Can anyone here help me with this? Thanks. Dear Art, You will need to create your own Artwork for your icons. There are a number of programs that can help with the details. We use Axialis IconWorkshop. It is affordable and the license gets your free updates for life. It will output both Windows and Mac icon formats. You can expect a single file for each platform. You then point the standalone builder to each file for the appropriate platform. Best regards, Mark Talluto http://www.canelasoftware.com From pete at mollysrevenge.com Tue Jan 24 18:07:54 2012 From: pete at mollysrevenge.com (Pete) Date: Tue, 24 Jan 2012 15:07:54 -0800 Subject: Geometry Manager Message-ID: Are there any lessons/examples/hints anywhere re using up the Geometry settings for an object? No being a very graphically inclined person, I'm having a hell of a time trying to figure out how to make it work! -- Pete Molly's Revenge From userev at canelasoftware.com Tue Jan 24 18:14:23 2012 From: userev at canelasoftware.com (Mark Talluto) Date: Tue, 24 Jan 2012 15:14:23 -0800 Subject: [ANN] mergZXing 1.0.3 In-Reply-To: <2287B686-12D3-4C07-9C3E-84A259AE6893@sweattechnologies.com> References: <2287B686-12D3-4C07-9C3E-84A259AE6893@sweattechnologies.com> Message-ID: Hi Monte, This is excellent. This feature alone enticed me to buy your work. What are the rights on using your external in commercial work? Best regards, Mark Talluto http://www.canelasoftware.com On Jan 24, 2012, at 2:56 PM, Monte Goulding wrote: > Hi All > > I have just updated mergZXing with a new bonus external mergMessage all still for the early bird price of US$49. With mergMessage you can send sms from livecode. There's one command: > mergMessage [pNumbers],[pBody] > > and one function: > mergMessageCanSendText() > > 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 pete at mollysrevenge.com Tue Jan 24 18:15:45 2012 From: pete at mollysrevenge.com (Pete) Date: Tue, 24 Jan 2012 15:15:45 -0800 Subject: Developing on Mac, standalone on Windows In-Reply-To: <9AD93D74-3D67-4CCE-92FF-E19B2752CE1D@sonsothunder.com> References: <9E497DC9-EA8C-47B7-8922-2B31F9B90B75@twft.com> <9AD93D74-3D67-4CCE-92FF-E19B2752CE1D@sonsothunder.com> Message-ID: Hi Ken, The problem I'm having is centering two controls - one is a button with an icon assigned to it and set to not display the name, and the other is a label immediately below the icon that displays what would normally be the button name. I set the two obects to have their vertical centers aligned during design. All looks fine on the Mac but in the standalone Windows version, they're not quite centered any more. Also wanted to pass on a little change I made in your script for setting fonts on different platforms, and that's our good old friend the datagrid. In order to set the text font used in a datagrid, you have to set the dgprops["text font] of the datagrid, not the normal textfont property. Datagrids also have a "text size" and "text style" properties. But all is working just fine now so thanks for the pointers. Pete On Tue, Jan 24, 2012 at 1:05 PM, Ken Ray wrote: > Oh also one thing that people forget about is that buttons have 'margins' > just like fields do; I can't tell you how many times I've had to set the > margins of a button to 'nudge' the label one way or the other? so you may > be able to keep the width of the button, but just adjust the margins when > the card is opened. -- Pete Molly's Revenge From coiin at verizon.net Tue Jan 24 18:16:05 2012 From: coiin at verizon.net (Colin Holgate) Date: Tue, 24 Jan 2012 23:16:05 +0000 Subject: Geometry Manager In-Reply-To: References: Message-ID: <807ABEC5-82BA-4A54-A5A4-36A78A3605C8@verizon.net> It is somewhat abstract. Try this lesson: http://lessons.runrev.com/s/lessons/m/4067/l/19026-Geometry-Manager On Jan 24, 2012, at 11:07 PM, Pete wrote: > Are there any lessons/examples/hints anywhere re using up the Geometry > settings for an object? No being a very graphically inclined person, I'm > having a hell of a time trying to figure out how to make it work! From userev at canelasoftware.com Tue Jan 24 18:17:27 2012 From: userev at canelasoftware.com (Mark Talluto) Date: Tue, 24 Jan 2012 15:17:27 -0800 Subject: [ANN] mergZXing 1.0.3 In-Reply-To: <2287B686-12D3-4C07-9C3E-84A259AE6893@sweattechnologies.com> References: <2287B686-12D3-4C07-9C3E-84A259AE6893@sweattechnologies.com> Message-ID: <196E301D-89AB-4CE8-B5B1-7D5E792D5755@canelasoftware.com> Hi Monte, I just found the licensing details on your server. Should have looked before asking. Best regards, Mark Talluto http://www.canelasoftware.com On Jan 24, 2012, at 2:56 PM, Monte Goulding wrote: > Hi All > > I have just updated mergZXing with a new bonus external mergMessage all still for the early bird price of US$49. With mergMessage you can send sms from livecode. There's one command: > mergMessage [pNumbers],[pBody] > > and one function: > mergMessageCanSendText() > > 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 _______________________________________________ use-livecode mailing list use-livecode at 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 Jan 24 18:18:51 2012 From: andre at andregarzia.com (Andre Garzia) Date: Tue, 24 Jan 2012 21:18:51 -0200 Subject: [ANN] mergZXing 1.0.3 In-Reply-To: References: <2287B686-12D3-4C07-9C3E-84A259AE6893@sweattechnologies.com> Message-ID: Those externals are great!!! Guys, don't miss this one! On Tue, Jan 24, 2012 at 9:14 PM, Mark Talluto wrote: > Hi Monte, > > This is excellent. This feature alone enticed me to buy your work. What > are the rights on using your external in commercial work? > > > Best regards, > > Mark Talluto > http://www.canelasoftware.com > > > > > > On Jan 24, 2012, at 2:56 PM, Monte Goulding wrote: > > > Hi All > > > > I have just updated mergZXing with a new bonus external mergMessage all > still for the early bird price of US$49. With mergMessage you can send sms > from livecode. There's one command: > > mergMessage [pNumbers],[pBody] > > > > and one function: > > mergMessageCanSendText() > > > > 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode 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. http://fon.nu -- minimalist url shortening service. From stephenREVOLUTION2 at barncard.com Tue Jan 24 18:31:13 2012 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Tue, 24 Jan 2012 15:31:13 -0800 Subject: Opening a Supercard file in Livecode? In-Reply-To: References: <4F1ECB99.7000209@fourthworld.com> <6FF48609-D3AD-45E1-835F-2B7B29C2A230@twft.com> <470500A3-F8A1-42F4-BEFD-41C84DB55DD8@twft.com> Message-ID: there's the altID property, but it has a 16 bit range <65535 On 24 January 2012 14:41, Pete wrote: > I think we're each looking at this from different perspectives. > > Isn't there some sort of user-assigned id available? That could help. > > Stephen Barncard San Francisco Ca. USA more about sqb From monte at sweattechnologies.com Tue Jan 24 18:43:35 2012 From: monte at sweattechnologies.com (Monte Goulding) Date: Wed, 25 Jan 2012 10:43:35 +1100 Subject: [ANN] mergZXing 1.0.3 In-Reply-To: <196E301D-89AB-4CE8-B5B1-7D5E792D5755@canelasoftware.com> References: <2287B686-12D3-4C07-9C3E-84A259AE6893@sweattechnologies.com> <196E301D-89AB-4CE8-B5B1-7D5E792D5755@canelasoftware.com> Message-ID: <455AEE8E-D2C7-424C-84DE-DE2FEE55E4A2@sweattechnologies.com> There is a separate license for each external as some use open source libraries. Cheers Monte On 25/01/2012, at 10:17 AM, Mark Talluto wrote: > Hi Monte, > > I just found the licensing details on your server. Should have looked before asking. > > > Best regards, > > Mark Talluto > http://www.canelasoftware.com > > > > > > On Jan 24, 2012, at 2:56 PM, Monte Goulding wrote: > >> Hi All >> >> I have just updated mergZXing with a new bonus external mergMessage all still for the early bird price of US$49. With mergMessage you can send sms from livecode. There's one command: >> mergMessage [pNumbers],[pBody] >> >> and one function: >> mergMessageCanSendText() >> >> 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 ambassador at fourthworld.com Tue Jan 24 18:51:05 2012 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 24 Jan 2012 15:51:05 -0800 Subject: Opening a Supercard file in Livecode? In-Reply-To: References: Message-ID: <4F1F43E9.70402@fourthworld.com> stephen barncard wrote: > there's the altID property, but it has a 16 bit range <65535 You shouldn't need to use the altID for this, since the ability to set the ID property of any object was added to the engine a few versions back specifically to support efforts to make XML<->stack translators for version control. -- 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 Tue Jan 24 19:00:34 2012 From: pete at mollysrevenge.com (Pete) Date: Tue, 24 Jan 2012 16:00:34 -0800 Subject: Opening a Supercard file in Livecode? In-Reply-To: <4F1F43E9.70402@fourthworld.com> References: <4F1F43E9.70402@fourthworld.com> Message-ID: Thanks Richard, I remember now you posted that a couple days back. So you just "set the id of control xyz" to do that? On Tue, Jan 24, 2012 at 3:51 PM, Richard Gaskin wrote: > stephen barncard wrote: > > there's the altID property, but it has a 16 bit range <65535 >> > > You shouldn't need to use the altID for this, since the ability to set the > ID property of any object was added to the engine a few versions back > specifically to support efforts to make XML<->stack translators for version > control. > > > -- > 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 > > -- Pete Molly's Revenge From stephenREVOLUTION2 at barncard.com Tue Jan 24 19:07:53 2012 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Tue, 24 Jan 2012 16:07:53 -0800 Subject: Opening a Supercard file in Livecode? In-Reply-To: References: <4F1F43E9.70402@fourthworld.com> Message-ID: how are conflicts handled if one does that? Error thrown? On 24 January 2012 16:00, Pete wrote: > Thanks Richard, I remember now you posted that a couple days back. So you > just "set the id of control xyz" to do that? > Stephen Barncard San Francisco Ca. USA more about sqb From bobs at twft.com Tue Jan 24 20:15:46 2012 From: bobs at twft.com (Bob Sneidar) Date: Tue, 24 Jan 2012 17:15:46 -0800 Subject: standalone icon In-Reply-To: References: <1327444804.54697.YahooMailClassic@web81202.mail.mud.yahoo.com> Message-ID: <205D99AF-84B7-4A15-9236-75960FCBA73B@twft.com> Really?? I thought the EULA allowed for the use of the Livecode icons in a project made with Livecode?? Bob On Jan 24, 2012, at 3:05 PM, Mark Talluto wrote: > On Jan 24, 2012, at 2:40 PM, Art DiVito wrote: > >> Is it okay to use LC's default icons (they seem to be different for Macs and PCs) for a market product? How does one obtain a custom-made icon? Do you have to have separate ones for Macs and PCs? Can anyone here help me with this? Thanks. > > Dear Art, > > You will need to create your own Artwork for your icons. There are a number of programs that can help with the details. We use Axialis IconWorkshop. It is affordable and the license gets your free updates for life. It will output both Windows and Mac icon formats. You can expect a single file for each platform. You then point the standalone builder to each file for the appropriate platform. > > > Best regards, > > Mark Talluto > http://www.canelasoftware.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 Tue Jan 24 20:17:22 2012 From: bobs at twft.com (Bob Sneidar) Date: Tue, 24 Jan 2012 17:17:22 -0800 Subject: Geometry Manager In-Reply-To: References: Message-ID: Someone made a better geometry manager called NativeGeometry. Check it out. It's supposed to be much superior to the Livecode one. Bob On Jan 24, 2012, at 3:07 PM, Pete wrote: > Are there any lessons/examples/hints anywhere re using up the Geometry > settings for an object? No being a very graphically inclined person, I'm > having a hell of a time trying to figure out how to make it work! > > > -- > 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 pete at mollysrevenge.com Tue Jan 24 20:25:24 2012 From: pete at mollysrevenge.com (Pete) Date: Tue, 24 Jan 2012 17:25:24 -0800 Subject: Geometry Manager In-Reply-To: <807ABEC5-82BA-4A54-A5A4-36A78A3605C8@verizon.net> References: <807ABEC5-82BA-4A54-A5A4-36A78A3605C8@verizon.net> Message-ID: Thanks Colin. I read the lesson but still can't get the effect I want. Maybe I'm trying to use the geometry manager for something it's not designed to do? I have a group on a card that has a number of controls in it. If the user resizes the card, I want the group to resize in proportion to the amount the card is resized and for the vertical/horizontal scrollbars of the group to become active if any of its controls are outside the boundaries of the group. I thought this could make this work by choosing "Scale selected object" and specifying an absolute or relative link to the right edge of the card (and the bottom). But if I resize the card to be narrower, the group doesn't resize - instead, its left edge is pushed beyond the left edge of the card and of course the horizontal scrollbar doesn't activate since all the group's controls are still within its boundaries, even though they are off the screen. I've tried linking the group to different combinations of the edges of the card, other controls, absolute and relative links and no matter how I resize the card, the group never resizes. Pete On Tue, Jan 24, 2012 at 3:16 PM, Colin Holgate wrote: > It is somewhat abstract. Try this lesson: > > http://lessons.runrev.com/s/lessons/m/4067/l/19026-Geometry-Manager > > > On Jan 24, 2012, at 11:07 PM, Pete wrote: > > > Are there any lessons/examples/hints anywhere re using up the Geometry > > settings for an object? No being a very graphically inclined person, I'm > > having a hell of a time trying to figure out how to make it work! > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 jacque at hyperactivesw.com Tue Jan 24 23:32:58 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 24 Jan 2012 22:32:58 -0600 Subject: Geometry Manager In-Reply-To: References: <807ABEC5-82BA-4A54-A5A4-36A78A3605C8@verizon.net> Message-ID: <4F1F85FA.9050500@hyperactivesw.com> On 1/24/12 7:25 PM, Pete wrote: > I've tried linking the group to different combinations of the edges of the > card, other controls, absolute and relative links and no matter how I > resize the card, the group never resizes. Is the group's lockLoc set to true? After the geometry manager finishes, the group will spring back to encompass all its controls if it isn't locked. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From mwieder at ahsoftware.net Wed Jan 25 00:28:12 2012 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 25 Jan 2012 05:28:12 +0000 (UTC) Subject: Breakpoints on a Global References: <4F1E5F9E.1030506@pdslabs.net> <4F1F10E7.8000505@pdslabs.net> <6783394A-8ECA-4B7D-88A3-3D0770A8FC3C@twft.com> Message-ID: Bob Sneidar writes: > though. This is a feature that used to work. I know because GLX2 used to do this successfully. You're confusing breakpoints and watched variables. It used to be that you couldn't set a watch on a global variable, but that bug (6506) was fixed in version 4.5.2. If you're using PowerDebug for this, just click to the left of the global name in the global variables display at the top. If you're using the IDE, do whatever (sorry, I can't remember). If you want to do this by script, put the watchedvariables into tVars put "","",tVariableName,tValue & cr after tVars set the watchedvariables to tVars where tValue can be empty to match any value -- Mark Wieder From bvlahos at mac.com Wed Jan 25 00:34:31 2012 From: bvlahos at mac.com (Bill Vlahos) Date: Tue, 24 Jan 2012 21:34:31 -0800 Subject: Looking for beta testers import of passwords to InfoWallet In-Reply-To: <7046B6BC-687E-41AD-A31D-354769107D48@mac.com> References: <7046B6BC-687E-41AD-A31D-354769107D48@mac.com> Message-ID: <49856081-509B-407F-90C5-7A93BFD3D492@mac.com> Thanks to all the folks who tested the new version and gave me feedback. I'm happy to announce I was able to release the new version tonight that can import passwords from other programs. Bill Vlahos _________________ InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. On Jan 22, 2012, at 12:34 PM, Bill Vlahos wrote: > I'm looking for people to test the import of passwords into InfoWallet from tab-delimited or comma-delimited(csv) text files. These would be files exported from whatever existing password management program you might be using. > > If you are interested and don't already have a license for InfoWallet, simply download the trial version from the web site and send me an email so that I can send you the new update. The trial version doesn't have any limits on the number of records so it will work fine for this test. > > As an incentive to test this today (January 22, 2012), anyone who can test and send me the results today will get a free license for InfoWallet. > > Bill Vlahos > _________________ > InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jan 25 01:17:53 2012 From: pete at mollysrevenge.com (Pete) Date: Tue, 24 Jan 2012 22:17:53 -0800 Subject: Geometry Manager In-Reply-To: <4F1F85FA.9050500@hyperactivesw.com> References: <807ABEC5-82BA-4A54-A5A4-36A78A3605C8@verizon.net> <4F1F85FA.9050500@hyperactivesw.com> Message-ID: Hi Jacque, Setting lockloc to true fixed it, thanks! For some reason or other, I have a hangup about that property - always seems like it's the wrong way round, with "locked" meaning it will change dimensions and "not locked" meaning it won't. My one remaining piece of the puzzle is to only have the scrollbars visible when they are needed. I'm guessing that I should use the resizeStack message to check if the group needs the scrollbars or not.... Pete On Tue, Jan 24, 2012 at 8:32 PM, J. Landman Gay wrote: > On 1/24/12 7:25 PM, Pete wrote: > > I've tried linking the group to different combinations of the edges of the >> card, other controls, absolute and relative links and no matter how I >> resize the card, the group never resizes. >> > > Is the group's lockLoc set to true? After the geometry manager finishes, > the group will spring back to encompass all its controls if it isn't locked. > > -- > 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 > > -- Pete Molly's Revenge From revdev at pdslabs.net Wed Jan 25 02:31:56 2012 From: revdev at pdslabs.net (Phil Davis) Date: Tue, 24 Jan 2012 23:31:56 -0800 Subject: Breakpoints on a Global In-Reply-To: References: <4F1E5F9E.1030506@pdslabs.net> <4F1F10E7.8000505@pdslabs.net> <6783394A-8ECA-4B7D-88A3-3D0770A8FC3C@twft.com> Message-ID: <4F1FAFEC.2060500@pdslabs.net> Thanks Mark - I didn't know about the watchedvariables. Phil On 1/24/12 9:28 PM, Mark Wieder wrote: > Bob Sneidar writes: > >> though. This is a feature that used to work. I know because GLX2 used to do > this successfully. > > You're confusing breakpoints and watched variables. It used to be that you > couldn't set a watch on a global variable, but that bug (6506) was fixed in > version 4.5.2. If you're using PowerDebug for this, just click to the left of > the global name in the global variables display at the top. If you're using the > IDE, do whatever (sorry, I can't remember). If you want to do this by script, > > put the watchedvariables into tVars > put "","",tVariableName,tValue& cr after tVars > set the watchedvariables to tVars > > where tValue can be empty to match any value > -- Phil Davis PDS Labs Professional Software Development http://pdslabs.net From john at splash21.com Wed Jan 25 05:52:05 2012 From: john at splash21.com (John Craig) Date: Wed, 25 Jan 2012 10:52:05 +0000 Subject: [ANN] libQR Message-ID: <4F1FDED5.8060207@splash21.com> Hi, everyone. I had a project requirement to generate QR codes from within LC and have just completed the library. I'll release it after more testing, but if anyone wants a test stack then please drop me an email. As it's all coded in LC, it should work fine on Windows / Mac / Linux. Thanks, :) From ken at kencorey.com Wed Jan 25 06:26:43 2012 From: ken at kencorey.com (Ken Corey) Date: Wed, 25 Jan 2012 11:26:43 +0000 Subject: On top but permeable? Message-ID: <4F1FE6F3.3030509@kencorey.com> Hi All, For debugging when running on my iPad, I like to drop a multi-line label named "log", and have the following: on log txt if exists(field "log") then put txt&cr before log end if end log on errorDialog sE,sP log sE&"|"&sP end errorDialog This is great and all, at least it's easy to type and shows that there is an error. However, if the log is on top of stuff on my card, it blocks events getting to lower items. If the log is behind the stuff on the card, it's obscured. I have tried grouping the bulk of the things on the card and setting the blend of the group to 40 (and putting the log item behind everything else), and that serves the purpose, but the card doesn't look as it would in real life. I have also tried handling mouse events on the label like this: on mouseDown nNum pass mouseDown nNum end mouseDown ...but no joy. Ideally, I'd like a way to be able to say that this label is on top, but it doesn't get any mouse events. Thanks, -Ken From revolution at derbrill.de Wed Jan 25 07:20:01 2012 From: revolution at derbrill.de (Malte Brill) Date: Wed, 25 Jan 2012 13:20:01 +0100 Subject: On top but permeable? In-Reply-To: References: Message-ID: Hi Ken, if you disable your field, it will not trap any messages (set the disabled of fld "log" to true) Hope that helps, Malte From ken at kencorey.com Wed Jan 25 07:24:14 2012 From: ken at kencorey.com (Ken Corey) Date: Wed, 25 Jan 2012 12:24:14 +0000 Subject: On top but permeable? In-Reply-To: References: Message-ID: <4F1FF46E.7010308@kencorey.com> On 25/01/2012 12:20, Malte Brill wrote: > if you disable your field, it will not trap any messages > > (set the disabled of fld "log" to true) I /thought/ I'd tried that, but clearly I hadn't. That's perfect, Thanks, Malte. -Ken From roger.e.eller at sealedair.com Wed Jan 25 07:56:39 2012 From: roger.e.eller at sealedair.com (Roger Eller) Date: Wed, 25 Jan 2012 07:56:39 -0500 Subject: [ANN] libQR In-Reply-To: <4F1FDED5.8060207@splash21.com> References: <4F1FDED5.8060207@splash21.com> Message-ID: John, I would like to try it out. We use QR codes, but have to rely on other systems to generate them. Can it do various sizes and densities? Question: Will we see more Android UI elements in your awesome MobGUI product? Preferences elements would be cool to link to the new hardware menu button. Thanks. ?Roger -- Roger Eller Graphics Systems Analyst Sealed Air Corporation 864-967-1625 Office 864-908-0337 Cell On Wed, Jan 25, 2012 at 5:52 AM, John Craig wrote: > Hi, everyone. I had a project requirement to generate QR codes from > within LC and have just completed the library. I'll release it after more > testing, but if anyone wants a test stack then please drop me an email. As > it's all coded in LC, it should work fine on Windows / Mac / Linux. > > Thanks, > > :) > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at splash21.com Wed Jan 25 08:14:50 2012 From: john at splash21.com (John Craig) Date: Wed, 25 Jan 2012 13:14:50 +0000 Subject: [ANN] libQR In-Reply-To: References: <4F1FDED5.8060207@splash21.com> Message-ID: <4F20004A.9070007@splash21.com> Hi, Roger. All versions (1-40) and error correction levels (L,M,Q,H) are supported and you can specify the module size. As the library writes to a LiveCode image object, you can also rescale it after generation. I'm still busy with the MobGUI to-do list and more android elements are on the way! On 25/01/2012 12:56, Roger Eller wrote: > John, > > I would like to try it out. We use QR codes, but have to rely on other > systems to generate them. Can it do various sizes and densities? > > Question: Will we see more Android UI elements in your awesome MobGUI > product? Preferences elements would be cool to link to the new hardware > menu button. > > Thanks. > ?Roger > > -- > Roger Eller > Graphics Systems Analyst > Sealed Air Corporation > 864-967-1625 Office > 864-908-0337 Cell > > > > On Wed, Jan 25, 2012 at 5:52 AM, John Craig wrote: > >> Hi, everyone. I had a project requirement to generate QR codes from >> within LC and have just completed the library. I'll release it after more >> testing, but if anyone wants a test stack then please drop me an email. As >> it's all coded in LC, it should work fine on Windows / Mac / Linux. >> >> Thanks, >> >> :) >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Jan 25 09:22:37 2012 From: andre at andregarzia.com (Andre Garzia) Date: Wed, 25 Jan 2012 12:22:37 -0200 Subject: [ANN] libQR In-Reply-To: <4F20004A.9070007@splash21.com> References: <4F1FDED5.8060207@splash21.com> <4F20004A.9070007@splash21.com> Message-ID: John, Cool!!!! =) That, allied with Monte barcode reader external is a great combo. =) On Wed, Jan 25, 2012 at 11:14 AM, John Craig wrote: > Hi, Roger. All versions (1-40) and error correction levels (L,M,Q,H) are > supported and you can specify the module size. As the library writes to a > LiveCode image object, you can also rescale it after generation. I'm still > busy with the MobGUI to-do list and more android elements are on the way! > > > On 25/01/2012 12:56, Roger Eller wrote: > >> John, >> >> I would like to try it out. We use QR codes, but have to rely on other >> systems to generate them. Can it do various sizes and densities? >> >> Question: Will we see more Android UI elements in your awesome MobGUI >> product? Preferences elements would be cool to link to the new hardware >> menu button. >> >> Thanks. >> ?Roger >> >> -- >> Roger Eller >> Graphics Systems Analyst >> Sealed Air Corporation >> 864-967-1625 Office >> 864-908-0337 Cell >> >> >> >> On Wed, Jan 25, 2012 at 5:52 AM, John Craig wrote: >> >> Hi, everyone. I had a project requirement to generate QR codes from >>> within LC and have just completed the library. I'll release it after >>> more >>> testing, but if anyone wants a test stack then please drop me an email. >>> As >>> it's all coded in LC, it should work fine on Windows / Mac / Linux. >>> >>> Thanks, >>> >>> :) >>> >>> ______________________________**_________________ >>> use-livecode mailing list >>> use-livecode 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 > -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. From matthias_livecode_150811 at m-r-d.de Wed Jan 25 09:24:40 2012 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Wed, 25 Jan 2012 15:24:40 +0100 Subject: [ANN] libQR In-Reply-To: References: <4F1FDED5.8060207@splash21.com> <4F20004A.9070007@splash21.com> Message-ID: Hi, Am 25.01.2012 um 15:22 schrieb Andre Garzia: > John, > > Cool!!!! =) > > That, allied with Monte barcode reader external is a great combo. That is exact what i was thinking. Matthias > > =) > > On Wed, Jan 25, 2012 at 11:14 AM, John Craig wrote: > >> Hi, Roger. All versions (1-40) and error correction levels (L,M,Q,H) are >> supported and you can specify the module size. As the library writes to a >> LiveCode image object, you can also rescale it after generation. I'm still >> busy with the MobGUI to-do list and more android elements are on the way! >> >> >> On 25/01/2012 12:56, Roger Eller wrote: >> >>> John, >>> >>> I would like to try it out. We use QR codes, but have to rely on other >>> systems to generate them. Can it do various sizes and densities? >>> >>> Question: Will we see more Android UI elements in your awesome MobGUI >>> product? Preferences elements would be cool to link to the new hardware >>> menu button. >>> >>> Thanks. >>> ?Roger >>> >>> -- >>> Roger Eller >>> Graphics Systems Analyst >>> Sealed Air Corporation >>> 864-967-1625 Office >>> 864-908-0337 Cell >>> >>> >>> >>> On Wed, Jan 25, 2012 at 5:52 AM, John Craig wrote: >>> >>> Hi, everyone. I had a project requirement to generate QR codes from >>>> within LC and have just completed the library. I'll release it after >>>> more >>>> testing, but if anyone wants a test stack then please drop me an email. >>>> As >>>> it's all coded in LC, it should work fine on Windows / Mac / Linux. >>>> >>>> Thanks, >>>> >>>> :) >>>> >>>> ______________________________**_________________ >>>> use-livecode mailing list >>>> use-livecode 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 >> > > > > -- > http://www.andregarzia.com -- All We Do Is Code. > http://fon.nu -- minimalist url shortening service. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From yoshino at sys.wakayama-u.ac.jp Wed Jan 25 10:19:26 2012 From: yoshino at sys.wakayama-u.ac.jp (=?iso-2022-jp?B?GyRCNUhMbhsoQiAbJEI5JxsoQg==?=) Date: Thu, 26 Jan 2012 00:19:26 +0900 Subject: How to store some data in my stack Message-ID: <22564CFD-D53D-42CE-B306-387085A74390@sys.wakayama-u.ac.jp> Hi, I use LiveCode 5.0.2 for Android devices. I would like to store some data in my stack. But I don't know how to store some data in my stack on an android device. At first, I used a field. But the field data is gone at the next launches. Next, I tried to use file. The following are the test scripts. This is the 'write file' script. on mouseUp put specialFolderPath(?documents?) & ":" & ?testFile.txt? into fileName open file fileName write fld "Data" to file fileName put the result close file fileName end mouseUp This is the 'read file' script on mouseUp put specialFolderPath(?documents?) & ":" & ?testFile.txt? into fileName open file fileName read from file fileName until EOF put it into fld "Data" close file fileName end mouseUp The scripts work on my Mac. But they does not work on an Android device. I need your help. _.__ ._ _. ._ ._.__ .. ._._. _._ . ..__ ._.__ ._._. ___. .._ __.. __ .._ Takashi Yoshino http://www.wakayama-u.ac.jp/~yoshino/lab/ Tel: +81-73-457-8441 From klaus at major.on-rev.com Wed Jan 25 10:33:43 2012 From: klaus at major.on-rev.com (Klaus on-rev) Date: Wed, 25 Jan 2012 16:33:43 +0100 Subject: How to store some data in my stack In-Reply-To: <22564CFD-D53D-42CE-B306-387085A74390@sys.wakayama-u.ac.jp> References: <22564CFD-D53D-42CE-B306-387085A74390@sys.wakayama-u.ac.jp> Message-ID: <3DD15C16-1467-419B-86E7-22369BE53369@major.on-rev.com> Konichi-wa Takashi, Am 25.01.2012 um 16:19 schrieb ?? ?: > Hi, > > I use LiveCode 5.0.2 for Android devices. > > I would like to store some data in my stack. > But I don't know how to store some data in my stack on an android device. > > At first, I used a field. But the field data is gone at the next launches. > > Next, I tried to use file. > The following are the test scripts. > > This is the 'write file' script. > on mouseUp ## : is the Mac specific path delimiter, and will obviously work on a Mac but nowhere else ;-) ## So ALWAYS use the SLASH as pathdelimiter on ALL platforms: > ## put specialFolderPath(?documents?) & ":" & ?testFile.txt? into fileName put specialFolderPath(?documents?) & "/" & ?testFile.txt? into fileName > open file fileName > write fld "Data" to file fileName ## If you do not psecify a TARGET (like a filed) for the PUT, ## the output will go into the message box ## which is not available on ANDROID and iOS! > put the result > close file fileName > end mouseUp > > This is the 'read file' script > on mouseUp ## Same here, will work with a SLASH! > put specialFolderPath(?documents?) & "/" & ?testFile.txt? into fileName > open file fileName > read from file fileName until EOF > put it into fld "Data" > close file fileName > end mouseUp > > The scripts work on my Mac. > But they does not work on an Android device. See above for the explanation :-) Hint: you can save some typing by using the short URL syntax (a one-liner): ... put URL("file:" & specialFolderPath(?documents?) & "/" & ?testFile.txt?) into fld "Data" ... Check URL in the dictionary! > I need your help. Now you got it :-) > _.__ ._ _. ._ ._.__ .. ._._. _._ . ..__ ._.__ ._._. ___. .._ __.. __ .._ > Takashi Yoshino Best Klaus -- Klaus Major http://www.major-k.de klaus at major.on-rev.com From mcgrath3 at mac.com Wed Jan 25 10:54:34 2012 From: mcgrath3 at mac.com (Thomas McGrath III) Date: Wed, 25 Jan 2012 10:54:34 -0500 Subject: Pinch and Rotate In-Reply-To: <4F1E5F31.1060304@kencorey.com> References: <4F1DE708.4070607@kencorey.com> <9A6812A7-BD50-41E8-AD6F-EB24FB164EF9@me.com> <4F1E5F31.1060304@kencorey.com> Message-ID: <78C59E74-491C-4C0D-B068-ED972A759B09@mac.com> Ken, These are exactly the kinds of things I ran into as well. One thing that happens is that when rotating an image the image gets distorted and so we need the resizeQuality set to "good" or "best" but then it really slows down even further. Still looking -- Tom McGrath III http://lazyriver.on-rev.com 3mcgrath at comcast.net On Jan 24, 2012, at 2:35 AM, Ken Corey wrote: > I hadn't tried that before. I tried it just now, and if anything it made the behaviour worse. This were even more jittery than before. By "jittery" I mean the items flash back and forth 10-20 pixels. If you move your fingers quickly, it's easy to get the image drawing in a wildly incorrect place, only settling down once the fingers move more slowly. > > I feel script-based multi-touch is a bit of a damp squib. The performance isn't that great, and without items (images or graphics) being able to rotate and scale, there's little reason to do it all at once. > > On 23/01/2012 23:19, Chris Sheffield wrote: >> Did you try setting acceleratedRendering to true and then setting the layerMode property of the image to "dynamic"? Might make a difference. Kind of guessing, though. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From yoshino at sys.wakayama-u.ac.jp Wed Jan 25 10:56:43 2012 From: yoshino at sys.wakayama-u.ac.jp (=?iso-2022-jp?B?GyRCNUhMbiEhOScbKEI=?=) Date: Thu, 26 Jan 2012 00:56:43 +0900 Subject: How to store some data in my stack In-Reply-To: <3DD15C16-1467-419B-86E7-22369BE53369@major.on-rev.com> References: <22564CFD-D53D-42CE-B306-387085A74390@sys.wakayama-u.ac.jp> <3DD15C16-1467-419B-86E7-22369BE53369@major.on-rev.com> Message-ID: <80CF01D7-B073-45F4-A46E-0737DEF9C765@sys.wakayama-u.ac.jp> Hi, Klaus Thank you for your quick reply! I changed my script, but it does not work on an android. (It does work on my mac.) The following are the test script. (URL is very easy! thanks) - Write button on mouseUp put fld "Data" into URL("file:" & specialFolderPath(?documents?) & "/" & ?testFile.txt?) put the result into fld "msg" end mouseUp - Read button on mouseUp put URL("file:" & specialFolderPath(?documents?) & "/" & ?testFile.txt?) into fld "Data" put the result into fld "msg" end mouseUp # "/" -> ":"(mac) On my mac, those scripts work well. But, on my android, "can't open file" is shown in field "msg" On 2012/01/26, at 0:33, Klaus on-rev wrote: > Konichi-wa Takashi, > > Am 25.01.2012 um 16:19 schrieb ?? ?: > >> Hi, >> >> I use LiveCode 5.0.2 for Android devices. >> >> I would like to store some data in my stack. >> But I don't know how to store some data in my stack on an android device. >> >> At first, I used a field. But the field data is gone at the next launches. >> >> Next, I tried to use file. >> The following are the test scripts. >> >> This is the 'write file' script. >> on mouseUp > > ## : is the Mac specific path delimiter, and will obviously work on a Mac but nowhere else ;-) > > ## So ALWAYS use the SLASH as pathdelimiter on ALL platforms: >> ## put specialFolderPath(?documents?) & ":" & ?testFile.txt? into fileName > put specialFolderPath(?documents?) & "/" & ?testFile.txt? into fileName >> open file fileName >> write fld "Data" to file fileName > > ## If you do not psecify a TARGET (like a filed) for the PUT, > ## the output will go into the message box > ## which is not available on ANDROID and iOS! >> put the result >> close file fileName >> end mouseUp >> >> This is the 'read file' script >> on mouseUp > > ## Same here, will work with a SLASH! >> put specialFolderPath(?documents?) & "/" & ?testFile.txt? into fileName >> open file fileName >> read from file fileName until EOF >> put it into fld "Data" >> close file fileName >> end mouseUp >> >> The scripts work on my Mac. >> But they does not work on an Android device. > > See above for the explanation :-) > > Hint: you can save some typing by using the short URL syntax (a one-liner): > ... > put URL("file:" & specialFolderPath(?documents?) & "/" & ?testFile.txt?) into fld "Data" > ... > > Check URL in the dictionary! > >> I need your help. > > Now you got it :-) > >> _.__ ._ _. ._ ._.__ .. ._._. _._ . ..__ ._.__ ._._. ___. .._ __.. __ .._ >> Takashi Yoshino > > 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 _.__ ._ _. ._ ._.__ .. ._._. _._ . ..__ ._.__ ._._. ___. .._ __.. __ .._ Takashi Yoshino http://www.wakayama-u.ac.jp/~yoshino/lab/ Tel: +81-73-457-8441 From klaus at major.on-rev.com Wed Jan 25 11:04:39 2012 From: klaus at major.on-rev.com (Klaus on-rev) Date: Wed, 25 Jan 2012 17:04:39 +0100 Subject: How to store some data in my stack In-Reply-To: <80CF01D7-B073-45F4-A46E-0737DEF9C765@sys.wakayama-u.ac.jp> References: <22564CFD-D53D-42CE-B306-387085A74390@sys.wakayama-u.ac.jp> <3DD15C16-1467-419B-86E7-22369BE53369@major.on-rev.com> <80CF01D7-B073-45F4-A46E-0737DEF9C765@sys.wakayama-u.ac.jp> Message-ID: Hi Takashi, Am 25.01.2012 um 16:56 schrieb ????: > Hi, Klaus > > Thank you for your quick reply! > > I changed my script, but it does not work on an android. > (It does work on my mac.) > > The following are the test script. > (URL is very easy! thanks) > > - Write button > on mouseUp > put fld "Data" into URL("file:" & specialFolderPath(?documents?) & "/" & ?testFile.txt?) > put the result into fld "msg" > end mouseUp What is "the result" here? > - Read button > on mouseUp > put URL("file:" & specialFolderPath(?documents?) & "/" & ?testFile.txt?) into fld "Data" > put the result into fld "msg" > end mouseUp > # "/" -> ":"(mac) > On my mac, those scripts work well. > > But, on my android, "can't open file" is shown in field "msg" Sorry, have no android license, no idea what's going wrong here. Maybe you should check first, if the file exists? - Read button on mouseUp put specialFolderPath(?documents?) & "/" & ?testFile.txt? into tFile if there is a file tFile then put URL("file:" & tFile) into fld "Data" put the result into fld "msg" else answer "No file yet!" end if end mouseUp Best Klaus -- Klaus Major http://www.major-k.de klaus at major.on-rev.com From ken at kencorey.com Wed Jan 25 11:19:03 2012 From: ken at kencorey.com (Ken Corey) Date: Wed, 25 Jan 2012 16:19:03 +0000 Subject: Pinch and Rotate In-Reply-To: <78C59E74-491C-4C0D-B068-ED972A759B09@mac.com> References: <4F1DE708.4070607@kencorey.com> <9A6812A7-BD50-41E8-AD6F-EB24FB164EF9@me.com> <4F1E5F31.1060304@kencorey.com> <78C59E74-491C-4C0D-B068-ED972A759B09@mac.com> Message-ID: <4F202B77.4070409@kencorey.com> On 25/01/2012 15:54, Thomas McGrath III wrote: > These are exactly the kinds of things I ran into as well. One thing that happens is that when rotating an image the image gets distorted and so we need the resizeQuality set to "good" or "best" but then it really slows down even further. Well, turns out I was a bit of a muppet about a few things... I'm still rather hazy about the 'lock' button. Apparently that needed to be checked, locking the image, and then the rotation is free. So the code "works" as is for images, presuming that you uncheck the tick box. As for the quality issues, what I'd suggest is that on the pinchStart event the quality of the image is saved during the pinch, the quality of the image is set to 'reduced' while pinching, and then in the pinchEnd the quality is set back to its previous value. That should keep the speed acceptable. As regarding rotation of a poly, there's a fun little function called 'revRotatePoly' that gives one an idea of what to do...but of course the coordinates of the graphic are truncated after the calculation. Do this more than a time or two, and the accumulated errors gang up on you. I'm playing with some code that does this "properly", where the coordinates are stored into custom properties first, and *those* are used in the rotation calculation. It's not nearly ready to be shown yet, but I'll try to tie up the loose ends in the next day or two. None of this helps with the jitter, though. This could be caused by re-entry into the touchMove handler, though I thought I'd guarded against that. It's still creaky, but it's almost looking usable. -Ken From ken at kencorey.com Wed Jan 25 11:27:17 2012 From: ken at kencorey.com (Ken Corey) Date: Wed, 25 Jan 2012 16:27:17 +0000 Subject: Pinch and Rotate In-Reply-To: <4F202B77.4070409@kencorey.com> References: <4F1DE708.4070607@kencorey.com> <9A6812A7-BD50-41E8-AD6F-EB24FB164EF9@me.com> <4F1E5F31.1060304@kencorey.com> <78C59E74-491C-4C0D-B068-ED972A759B09@mac.com> <4F202B77.4070409@kencorey.com> Message-ID: <4F202D65.8090701@kencorey.com> On 25/01/2012 16:19, Ken Corey wrote: > As for the quality issues, what I'd suggest is that on the pinchStart > event the quality of the image is saved during the pinch, the quality of > the image is set to 'reduced' while pinching, and then in the pinchEnd > the quality is set back to its previous value. That should keep the > speed acceptable. Gads. I really should read this before posting. Of course the quality should be set to 'normal'. There is no 'reduced'. -Ken From kray at sonsothunder.com Wed Jan 25 11:47:57 2012 From: kray at sonsothunder.com (Ken Ray) Date: Wed, 25 Jan 2012 10:47:57 -0600 Subject: Developing on Mac, standalone on Windows In-Reply-To: References: <9E497DC9-EA8C-47B7-8922-2B31F9B90B75@twft.com> <9AD93D74-3D67-4CCE-92FF-E19B2752CE1D@sonsothunder.com> Message-ID: <24F8D536-026F-473E-94B3-DB11E6AF5958@sonsothunder.com> On Jan 24, 2012, at 5:15 PM, Pete wrote: > Hi Ken, > The problem I'm having is centering two controls - one is a button with an > icon assigned to it and set to not display the name, and the other is a > label immediately below the icon that displays what would normally be the > button name. I set the two obects to have their vertical centers aligned > during design. All looks fine on the Mac but in the standalone Windows > version, they're not quite centered any more. Hmm - it could be that the margins of the label field need to be adjusted. One way you could try is to examine the "formattedWidth" of the label field - that will give you the actual pixels that the text of the field requires, and then perhaps you could make an adjustment based on that value. > Also wanted to pass on a little change I made in your script for setting > fonts on different platforms, and that's our good old friend the datagrid. > In order to set the text font used in a datagrid, you have to set the > dgprops["text font] of the datagrid, not the normal textfont property. > Datagrids also have a "text size" and "text style" properties. But all is > working just fine now so thanks for the pointers. Thanks for that, Pete? I'll update my script... :D Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From bobs at twft.com Wed Jan 25 11:50:44 2012 From: bobs at twft.com (Bob Sneidar) Date: Wed, 25 Jan 2012 08:50:44 -0800 Subject: Breakpoints on a Global In-Reply-To: References: <4F1E5F9E.1030506@pdslabs.net> <4F1F10E7.8000505@pdslabs.net> <6783394A-8ECA-4B7D-88A3-3D0770A8FC3C@twft.com> Message-ID: <5FB580B8-4273-4613-8DAB-175526EB15A9@twft.com> Hi Mark. Actually, this was back when GLX2 encompassed the debugger too. Apparently you still cannot set a watched variable on a global. That is the problem I am having. The instant I set the watched variable I crash to desktop. It may be an issue with watching an array variable. I will check that. Bob On Jan 24, 2012, at 9:28 PM, Mark Wieder wrote: > Bob Sneidar writes: > >> though. This is a feature that used to work. I know because GLX2 used to do > this successfully. > > You're confusing breakpoints and watched variables. It used to be that you > couldn't set a watch on a global variable, but that bug (6506) was fixed in > version 4.5.2. If you're using PowerDebug for this, just click to the left of > the global name in the global variables display at the top. If you're using the > IDE, do whatever (sorry, I can't remember). If you want to do this by script, > > put the watchedvariables into tVars > put "","",tVariableName,tValue & cr after tVars > set the watchedvariables to tVars > > where tValue can be empty to match any value > > -- > Mark Wieder > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ken at kencorey.com Wed Jan 25 12:05:28 2012 From: ken at kencorey.com (Ken Corey) Date: Wed, 25 Jan 2012 17:05:28 +0000 Subject: Cross platform way to disable interface when "dialoguing" Message-ID: <4F203658.8040204@kencorey.com> Has anyone read up on what would be the "right" way to do a cross-platform indication that the main application window is not accessible just now? I'm thinking of putting an graphic with a gradient and alpha channel in front of my interface, so that the style is reminiscient of an iPod, at least on the PC and on MAC osX. Of course, there's no point on an Apple iDevice, because they all already do that. -Ken From bobs at twft.com Wed Jan 25 12:14:05 2012 From: bobs at twft.com (Bob Sneidar) Date: Wed, 25 Jan 2012 09:14:05 -0800 Subject: Breakpoints on a Global In-Reply-To: References: <4F1E5F9E.1030506@pdslabs.net> <4F1F10E7.8000505@pdslabs.net> <6783394A-8ECA-4B7D-88A3-3D0770A8FC3C@twft.com> Message-ID: <3B4C4148-A0CE-42F6-95B7-F14D8DE1E4C1@twft.com> Oddly, watchedVariables is not in the dictionary. I created a new stack, set a global in the stack script, created an Openstack handler, set a breakpoint in the first line of the handler, and changed the value of the global twice, once to empty and once to a string of text. I ran OpenStack and while powerDebugger was open I clicked next to the global variable setting a watch on it. As soon as the global value is changed Livecode crashes to desktop. This happens regardless of whether or not it is an array, so that has nothing to do with it. If the variable is NOT a global, LC does NOT crash to desktop. If this was fixed in 4.5, then it's broke again. Bob On Jan 24, 2012, at 9:28 PM, Mark Wieder wrote: > Bob Sneidar writes: > >> though. This is a feature that used to work. I know because GLX2 used to do > this successfully. > > You're confusing breakpoints and watched variables. It used to be that you > couldn't set a watch on a global variable, but that bug (6506) was fixed in > version 4.5.2. If you're using PowerDebug for this, just click to the left of > the global name in the global variables display at the top. If you're using the > IDE, do whatever (sorry, I can't remember). If you want to do this by script, > > put the watchedvariables into tVars > put "","",tVariableName,tValue & cr after tVars > set the watchedvariables to tVars > > where tValue can be empty to match any value > > -- > Mark Wieder > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jan 25 12:15:44 2012 From: bobs at twft.com (Bob Sneidar) Date: Wed, 25 Jan 2012 09:15:44 -0800 Subject: Breakpoints on a Global In-Reply-To: References: <4F1E5F9E.1030506@pdslabs.net> <4F1F10E7.8000505@pdslabs.net> <6783394A-8ECA-4B7D-88A3-3D0770A8FC3C@twft.com> Message-ID: <1203D6BC-937E-484C-8AE5-463739F89F97@twft.com> Well darned it I just went back and tried again, making the variable a global and it did NOT crash to desktop!! How odd! Bob On Jan 24, 2012, at 9:28 PM, Mark Wieder wrote: > Bob Sneidar writes: > >> though. This is a feature that used to work. I know because GLX2 used to do > this successfully. > > You're confusing breakpoints and watched variables. It used to be that you > couldn't set a watch on a global variable, but that bug (6506) was fixed in > version 4.5.2. If you're using PowerDebug for this, just click to the left of > the global name in the global variables display at the top. If you're using the > IDE, do whatever (sorry, I can't remember). If you want to do this by script, > > put the watchedvariables into tVars > put "","",tVariableName,tValue & cr after tVars > set the watchedvariables to tVars > > where tValue can be empty to match any value > > -- > Mark Wieder > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Wed Jan 25 12:20:54 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 25 Jan 2012 18:20:54 +0100 Subject: Cross platform way to disable interface when "dialoguing" In-Reply-To: <4F203658.8040204@kencorey.com> References: <4F203658.8040204@kencorey.com> Message-ID: <5F7F4D7F-8E5F-47F8-A305-8DC661F1C008@economy-x-talk.com> Hi, Group everything, disable the group. Better would be to never bring the user of your software in a situation where the main window becomes inaccessible. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 25 jan 2012, at 18:05, Ken Corey wrote: > Has anyone read up on what would be the "right" way to do a cross-platform indication that the main application window is not accessible just now? > > I'm thinking of putting an graphic with a gradient and alpha channel in front of my interface, so that the style is reminiscient of an iPod, at least on the PC and on MAC osX. > > Of course, there's no point on an Apple iDevice, because they all already do that. > > -Ken From bobs at twft.com Wed Jan 25 12:21:08 2012 From: bobs at twft.com (Bob Sneidar) Date: Wed, 25 Jan 2012 09:21:08 -0800 Subject: Breakpoints on a Global In-Reply-To: References: <4F1E5F9E.1030506@pdslabs.net> <4F1F10E7.8000505@pdslabs.net> <6783394A-8ECA-4B7D-88A3-3D0770A8FC3C@twft.com> Message-ID: <7A5AC955-EB32-4E13-9616-5D8631E463DF@twft.com> Ok I see. When I first clicked next to the variable it was not a global so that is why when I declared it to a global later it didn't CTD. I went back and checked the watch point and it's scope was the script of the stack. When I set it's scope to global, LC immediately crashes. Sorry for the confusion. Bob On Jan 24, 2012, at 9:28 PM, Mark Wieder wrote: > Bob Sneidar writes: > >> though. This is a feature that used to work. I know because GLX2 used to do > this successfully. > > You're confusing breakpoints and watched variables. It used to be that you > couldn't set a watch on a global variable, but that bug (6506) was fixed in > version 4.5.2. If you're using PowerDebug for this, just click to the left of > the global name in the global variables display at the top. If you're using the > IDE, do whatever (sorry, I can't remember). If you want to do this by script, > > put the watchedvariables into tVars > put "","",tVariableName,tValue & cr after tVars > set the watchedvariables to tVars > > where tValue can be empty to match any value > > -- > Mark Wieder > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Wed Jan 25 12:23:30 2012 From: klaus at major.on-rev.com (Klaus on-rev) Date: Wed, 25 Jan 2012 18:23:30 +0100 Subject: Icons in dialogs on Win 7 Message-ID: <3729ED88-52B6-43A8-B89C-47A8222DE8BE@major.on-rev.com> Hi freinds, I noticed that on Windows 7 there are no icons in the ASK and ANSWER dialogs! GLOBAL gRevAppIcon has been set and works on the Mac!) Is that correct behaviour? Thanks in advance! Best Klaus -- Klaus Major http://www.major-k.de klaus at major.on-rev.com From userev at canelasoftware.com Wed Jan 25 12:52:11 2012 From: userev at canelasoftware.com (Mark Talluto) Date: Wed, 25 Jan 2012 09:52:11 -0800 Subject: [ANN] mergZXing 1.0.3 In-Reply-To: <455AEE8E-D2C7-424C-84DE-DE2FEE55E4A2@sweattechnologies.com> References: <2287B686-12D3-4C07-9C3E-84A259AE6893@sweattechnologies.com> <196E301D-89AB-4CE8-B5B1-7D5E792D5755@canelasoftware.com> <455AEE8E-D2C7-424C-84DE-DE2FEE55E4A2@sweattechnologies.com> Message-ID: Right. I saw that as well. Thanks again. Excellent work. I can see this being very helpful in the near future. Best regards, Mark Talluto http://www.canelasoftware.com On Jan 24, 2012, at 3:43 PM, Monte Goulding wrote: > There is a separate license for each external as some use open source libraries. > > Cheers > > Monte > > On 25/01/2012, at 10:17 AM, Mark Talluto wrote: > >> Hi Monte, >> >> I just found the licensing details on your server. Should have looked before asking. >> >> >> Best regards, >> >> Mark Talluto >> http://www.canelasoftware.com >> >> >> >> >> >> On Jan 24, 2012, at 2:56 PM, Monte Goulding wrote: >> >>> Hi All >>> >>> I have just updated mergZXing with a new bonus external mergMessage all still for the early bird price of US$49. With mergMessage you can send sms from livecode. There's one command: >>> mergMessage [pNumbers],[pBody] >>> >>> and one function: >>> mergMessageCanSendText() >>> >>> 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 >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 userev at canelasoftware.com Wed Jan 25 12:54:02 2012 From: userev at canelasoftware.com (Mark Talluto) Date: Wed, 25 Jan 2012 09:54:02 -0800 Subject: standalone icon In-Reply-To: <205D99AF-84B7-4A15-9236-75960FCBA73B@twft.com> References: <1327444804.54697.YahooMailClassic@web81202.mail.mud.yahoo.com> <205D99AF-84B7-4A15-9236-75960FCBA73B@twft.com> Message-ID: <4BDAD3CE-FD05-4712-A48D-3C07CA7950AF@canelasoftware.com> It is not that you can't use them. It just makes your app look more pro by having personalized icons if you plan to sell it. If this is for internal work then I would not bother either. Best regards, Mark Talluto http://www.canelasoftware.com On Jan 24, 2012, at 5:15 PM, Bob Sneidar wrote: > Really?? I thought the EULA allowed for the use of the Livecode icons in a project made with Livecode?? > > Bob > > > On Jan 24, 2012, at 3:05 PM, Mark Talluto wrote: > >> On Jan 24, 2012, at 2:40 PM, Art DiVito wrote: >> >>> Is it okay to use LC's default icons (they seem to be different for Macs and PCs) for a market product? How does one obtain a custom-made icon? Do you have to have separate ones for Macs and PCs? Can anyone here help me with this? Thanks. >> >> Dear Art, >> >> You will need to create your own Artwork for your icons. There are a number of programs that can help with the details. We use Axialis IconWorkshop. It is affordable and the license gets your free updates for life. It will output both Windows and Mac icon formats. You can expect a single file for each platform. You then point the standalone builder to each file for the appropriate platform. >> >> >> Best regards, >> >> Mark Talluto >> http://www.canelasoftware.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 Wed Jan 25 13:02:31 2012 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 25 Jan 2012 20:02:31 +0200 Subject: Saving multiple fields from a standalone... Message-ID: <4F2043B7.4030408@gmail.com> Saving multiple fields from a standalone in a way that they will reload into their originating fields once the standalone is restarted? 1. Multiple RTF files in a folder/directory? [This seems messy, and leaves lots of room for stuff to go wrong]. 2. Delimited RTf file? 3. Something else? Richmond. From livfoss at mac.com Wed Jan 25 13:03:45 2012 From: livfoss at mac.com (Graham Samuel) Date: Wed, 25 Jan 2012 19:03:45 +0100 Subject: Navigating XML in LiveCode In-Reply-To: References: Message-ID: <65E45FFE-B0E4-419A-83A5-A011952ADDB8@mac.com> Thanks again for the replies Bernard and Richard. I have learned a lot in these conversations. In my LC coding life I have not had to use an SQL database or JSON, and as I have my work cut out just getting to understand iOS development and all that it implies (including non-technical stuff like "can I send a copy of my work in progress for the iPhone to my colleague who is literally on the other side of the world, or does Apple prevent this?") I don't at this time want to learn more stuff than I have to, tho it would doubtless improve my mind to learn it all eventually. Bernard you are right, CSV is not good for a data structure where some of the data may be either missing or duplicated. By the time one has put in enough labelling info to make that work in CSV, it's practically XML. Richard I like the arrayEncode/deCode idea - it doesn't look like much of a learning curve. I'll keep quiet now and go back to coding. Graham On Tue, 24 Jan 2012 12:13:38 +000, Bernard Devlin wrote: > You could also consider using JSON instead of XML. Particularly since > we have 2 libraries around which convert LiveCode arrays to JSON and > vice-versa. JSON is known as "the fat-free xml". I don't think > either format is paritcularly easy to scan by the naked eye. One > library is by Andre, the other by Mark Smith. > > Another option would be to use a sqlite database, and have your > program export/backup the database to a series of SQL insert > statements. I think I'd find that easier to scan with the naked eye > than XML. > > I don't understand why a CSV (or tab-separated) text file would not > suit your purposes, but I'll assume it because your data is more > complex than would be suitable to that format. > > Bernard > On Tue, 24 Jan 2012 06:53:54 -0800, Richard Gaskin wrote: > XML is the way to go for inter-app data transfer, but FWIW if your app > was the only one using it you can save arrays to disk using > arrayEncode/arrayDecode: > > global gMyArray > > on LoadData pFile > put url ("binfile:"& pFile) into tData > put arrayDecode(tData) into gMyArray > end LoadData > > on SaveData pFile > put arrayEncode(gMyArray) into tData > put tData into url ("binfile:" & pFile) > end SaveData > > On Mon, Jan 23, 2012 at 4:34 PM, Graham Samuel wrote: >> However the real reason that I'm trying to go down the XML route is that I need this data to persist and I don't want the overhead of storing it in a stack rather than just keeping a trivial amount of text which furthermore could be easily examined/edited by non-LC programs. > [...] >> I suppose more generally I'm trying to understand if XML is suitable for this kind of data structure, where there are several nodes identical or similar in structure but containing different data. It looks ideal to me, but the difficulty of finding the last item you added, and of adding attributes at creation time, is giving me doubts. But maybe I'm just confused. From sschvarstein at gmail.com Wed Jan 25 13:32:18 2012 From: sschvarstein at gmail.com (Sergio Schvarstein) Date: Wed, 25 Jan 2012 19:32:18 +0100 Subject: Pinch and Rotate In-Reply-To: References: Message-ID: Hi Ken & Thomas, I am fighting the same battle, so please let me participate in your discussion. Ken wrote: > As for the quality issues, what I'd suggest is that on the pinchStart > event the quality of the image is saved during the pinch, the quality of > the image is set to 'reduced' while pinching, and then in the pinchEnd > the quality is set back to its previous value. That should keep the > speed acceptable. I?ve tried this before reading your message, but it didn?t work. After ending the pinch and restoring the quality the image doesn?t improve it's quality on screen, even it appears as "best" quality. Did you try it ? Is there any way for updating the rendering quality after changing it by script ? I couldn?t find it. And also, I still cannot believe the RunRev people had not developed yet an integrated solution for pinching and zooming into livecode. It really seems a great lost of time trying to emulate an X-Code UI event this way ... ______________________________ Sergio Schvarstein sschvarstein at gmail.com ______________________________ From stephenREVOLUTION2 at barncard.com Wed Jan 25 13:36:02 2012 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Wed, 25 Jan 2012 10:36:02 -0800 Subject: Saving multiple fields from a standalone... In-Reply-To: <4F2043B7.4030408@gmail.com> References: <4F2043B7.4030408@gmail.com> Message-ID: use a prefs stack and custom properties. a script can install a default one if one doesn't exist On 25 January 2012 10:02, Richmond wrote: > Saving multiple fields from a standalone in a way that they will reload > into > their originating fields once the standalone is restarted? > > 1. Multiple RTF files in a folder/directory? [This seems messy, and leaves > lots of room for stuff to go wrong]. > > 2. Delimited RTf file? > > 3. Something else? > > 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 > -- Stephen Barncard San Francisco Ca. USA more about sqb From m.schonewille at economy-x-talk.com Wed Jan 25 13:41:13 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 25 Jan 2012 19:41:13 +0100 Subject: Saving multiple fields from a standalone... In-Reply-To: <4F2043B7.4030408@gmail.com> References: <4F2043B7.4030408@gmail.com> Message-ID: Richmond, Quite a while ago, I posted a suggestion on my blog: http://qery.us/1j9 I still have to post part II. I can't promise when I will do that though. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 25 jan 2012, at 19:02, Richmond wrote: > Saving multiple fields from a standalone in a way that they will reload into > their originating fields once the standalone is restarted? > > 1. Multiple RTF files in a folder/directory? [This seems messy, and leaves lots of room for stuff to go wrong]. > > 2. Delimited RTf file? > > 3. Something else? > > Richmond. From bobs at twft.com Wed Jan 25 13:46:04 2012 From: bobs at twft.com (Bob Sneidar) Date: Wed, 25 Jan 2012 10:46:04 -0800 Subject: Saving multiple fields from a standalone... In-Reply-To: <4F2043B7.4030408@gmail.com> References: <4F2043B7.4030408@gmail.com> Message-ID: You can arrayEncode an array with all the saved data and write that to a low level file. arrayDecode it when reading it back. That would keep the data from being visible by less than benign users. Bob On Jan 25, 2012, at 10:02 AM, Richmond wrote: > Saving multiple fields from a standalone in a way that they will reload into > their originating fields once the standalone is restarted? > > 1. Multiple RTF files in a folder/directory? [This seems messy, and leaves lots of room for stuff to go wrong]. > > 2. Delimited RTf file? > > 3. Something else? > > 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 rjb at robelko.com Wed Jan 25 13:39:05 2012 From: rjb at robelko.com (Robert Brenstein) Date: Wed, 25 Jan 2012 19:39:05 +0100 Subject: How to store some data in my stack In-Reply-To: References: <22564CFD-D53D-42CE-B306-387085A74390@sys.wakayama-u.ac.jp> <3DD15C16-1467-419B-86E7-22369BE53369@major.on-rev.com> <80CF01D7-B073-45F4-A46E-0737DEF9C765@sys.wakayama-u.ac.jp> Message-ID: Hi Takashi, > put fld "Data" into URL("file:" & specialFolderPath("documents") & >"/" & "testFile.txt") I notice that you have two different kinds of quotes in the above. If that is your actual code, those non-programmer's quote might be the problem. robert From marty at ucls.uchicago.edu Wed Jan 25 14:05:59 2012 From: marty at ucls.uchicago.edu (Marty Billingsley) Date: Wed, 25 Jan 2012 13:05:59 -0600 Subject: how to populate the menu items of a pulldown menu Message-ID: <10BF9C8A-B2C8-4119-BD16-28D8C6942004@ucls.uchicago.edu> Hi all -- How can you programmatically add items to a pulldown menu button? Is this a settable property? Been looking through the documentation, but haven't come across anything. Thanks, - marty -- Marty Billingsley Department of Computer Science The University of Chicago Laboratory Schools From klaus at major.on-rev.com Wed Jan 25 14:11:15 2012 From: klaus at major.on-rev.com (Klaus on-rev) Date: Wed, 25 Jan 2012 20:11:15 +0100 Subject: how to populate the menu items of a pulldown menu In-Reply-To: <10BF9C8A-B2C8-4119-BD16-28D8C6942004@ucls.uchicago.edu> References: <10BF9C8A-B2C8-4119-BD16-28D8C6942004@ucls.uchicago.edu> Message-ID: <7514B70C-EA82-4FE0-B2B7-D1C51B1C872F@major.on-rev.com> Hi Marty, Am 25.01.2012 um 20:05 schrieb Marty Billingsley: > Hi all -- > > How can you programmatically add items to a pulldown menu button? Is this a settable property? yes, you can get and set -> the text of btn XYZ which is a CR delimited list of the menu items. > Been looking through the documentation, but haven't come across anything. > > Thanks, > - marty > > -- > Marty Billingsley > Department of Computer Science > The University of Chicago Laboratory Schools Best Klaus -- Klaus Major http://www.major-k.de klaus at major.on-rev.com From jacque at hyperactivesw.com Wed Jan 25 14:14:54 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 25 Jan 2012 13:14:54 -0600 Subject: Breakpoints on a Global In-Reply-To: References: <4F1E5F9E.1030506@pdslabs.net> <4F1F10E7.8000505@pdslabs.net> <6783394A-8ECA-4B7D-88A3-3D0770A8FC3C@twft.com> Message-ID: <4F2054AE.1000601@hyperactivesw.com> On 1/24/12 11:28 PM, Mark Wieder wrote: > You're confusing breakpoints and watched variables. It used to be that you > couldn't set a watch on a global variable, but that bug (6506) was fixed in > version 4.5.2. If you're using PowerDebug for this, just click to the left of > the global name in the global variables display at the top. If you're using the > IDE, do whatever (sorry, I can't remember). In the IDE, you set a breakpoint and then edit it to set a watch, so they look the same there, basically. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Wed Jan 25 14:18:38 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 25 Jan 2012 13:18:38 -0600 Subject: Geometry Manager In-Reply-To: References: <807ABEC5-82BA-4A54-A5A4-36A78A3605C8@verizon.net> <4F1F85FA.9050500@hyperactivesw.com> Message-ID: <4F20558E.3020408@hyperactivesw.com> On 1/25/12 12:17 AM, Pete wrote: > Hi Jacque, > Setting lockloc to true fixed it, thanks! For some reason or other, I have > a hangup about that property - always seems like it's the wrong way round, > with "locked" meaning it will change dimensions and "not locked" meaning it > won't. Think of it as "locked down", maybe that will help. It's locking the location, i.e., the rectangle, so it won't move. > > My one remaining piece of the puzzle is to only have the scrollbars visible > when they are needed. I'm guessing that I should use the resizeStack > message to check if the group needs the scrollbars or not.... The scrollbars should automatically go blank if the group fully encloses its contents, and draw the thumb if it doesn't. If you mean you want to remove them entirely, check the formattedwidth and formattedheight of the group, compare those to the width and height (the locked rect) and hide/show the scrollbars as needed. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobs at twft.com Wed Jan 25 14:40:01 2012 From: bobs at twft.com (Bob Sneidar) Date: Wed, 25 Jan 2012 11:40:01 -0800 Subject: Breakpoints on a Global In-Reply-To: <4F2054AE.1000601@hyperactivesw.com> References: <4F1E5F9E.1030506@pdslabs.net> <4F1F10E7.8000505@pdslabs.net> <6783394A-8ECA-4B7D-88A3-3D0770A8FC3C@twft.com> <4F2054AE.1000601@hyperactivesw.com> Message-ID: <62C2E7F8-FE36-4EB8-9CE5-4678129BC477@twft.com> In the default debugger you can select the Breakpoints in the lower tab. Then right-click and select New Watch. Select Global Scope in the Handler popup. Select a global variable in the Variable popup. Set a condition (or no it doesn't matter). Click OK. Crash to desktop. DISCLAIMER: Save your changes to all open stacks first!!! :-) Note that it will only CTD if the variable exists. I still have a watch set for a global in my test stack and have had all morning and it hasn't crashed. That may help whoever at RR to troubleshoot it. If I knew where in the library this was handled I would troubleshoot it myself! Bob On Jan 25, 2012, at 11:14 AM, J. Landman Gay wrote: > On 1/24/12 11:28 PM, Mark Wieder wrote: > >> You're confusing breakpoints and watched variables. It used to be that you >> couldn't set a watch on a global variable, but that bug (6506) was fixed in >> version 4.5.2. If you're using PowerDebug for this, just click to the left of >> the global name in the global variables display at the top. If you're using the >> IDE, do whatever (sorry, I can't remember). > > In the IDE, you set a breakpoint and then edit it to set a watch, so they look the same there, basically. > > -- > 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 Wed Jan 25 14:42:48 2012 From: bobs at twft.com (Bob Sneidar) Date: Wed, 25 Jan 2012 11:42:48 -0800 Subject: how to populate the menu items of a pulldown menu In-Reply-To: <10BF9C8A-B2C8-4119-BD16-28D8C6942004@ucls.uchicago.edu> References: <10BF9C8A-B2C8-4119-BD16-28D8C6942004@ucls.uchicago.edu> Message-ID: get the text of button "myPullDownNemu" put "Choice 1" & cr & "Choice 2" & cr after it set the text of button "myPullDownNemu" to it Is that what you were looking to do? Bob On Jan 25, 2012, at 11:05 AM, Marty Billingsley wrote: > Hi all -- > > How can you programmatically add items to a pulldown menu button? Is this a settable property? > > Been looking through the documentation, but haven't come across anything. > > Thanks, > - marty > > -- > Marty Billingsley > Department of Computer Science > The University of Chicago Laboratory Schools > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jan 25 14:43:46 2012 From: bobs at twft.com (Bob Sneidar) Date: Wed, 25 Jan 2012 11:43:46 -0800 Subject: How to store some data in my stack In-Reply-To: References: <22564CFD-D53D-42CE-B306-387085A74390@sys.wakayama-u.ac.jp> <3DD15C16-1467-419B-86E7-22369BE53369@major.on-rev.com> <80CF01D7-B073-45F4-A46E-0737DEF9C765@sys.wakayama-u.ac.jp> Message-ID: <9131E214-DAB5-47BE-B9DA-5AA3AB903E70@twft.com> They all look good to me. Something must have converted them. Bob On Jan 25, 2012, at 10:39 AM, Robert Brenstein wrote: > Hi Takashi, > >> put fld "Data" into URL("file:" & specialFolderPath("documents") & "/" & "testFile.txt") > > I notice that you have two different kinds of quotes in the above. If that is your actual code, those non-programmer's quote might be the problem. > > 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 pete at mollysrevenge.com Wed Jan 25 14:47:08 2012 From: pete at mollysrevenge.com (Pete) Date: Wed, 25 Jan 2012 11:47:08 -0800 Subject: Geometry Manager In-Reply-To: <4F20558E.3020408@hyperactivesw.com> References: <807ABEC5-82BA-4A54-A5A4-36A78A3605C8@verizon.net> <4F1F85FA.9050500@hyperactivesw.com> <4F20558E.3020408@hyperactivesw.com> Message-ID: Yes, want to remove them/add them back entirely, and I have that working now. Thanks, Pete On Wed, Jan 25, 2012 at 11:18 AM, J. Landman Gay wrote: > The scrollbars should automatically go blank if the group fully encloses > its contents, and draw the thumb if it doesn't. If you mean you want to > remove them entirely, check the formattedwidth and formattedheight of the > group, compare those to the width and height (the locked rect) and > hide/show the scrollbars as needed. -- Pete Molly's Revenge From jacque at hyperactivesw.com Wed Jan 25 14:55:22 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 25 Jan 2012 13:55:22 -0600 Subject: Breakpoints on a Global In-Reply-To: <62C2E7F8-FE36-4EB8-9CE5-4678129BC477@twft.com> References: <4F1E5F9E.1030506@pdslabs.net> <4F1F10E7.8000505@pdslabs.net> <6783394A-8ECA-4B7D-88A3-3D0770A8FC3C@twft.com> <4F2054AE.1000601@hyperactivesw.com> <62C2E7F8-FE36-4EB8-9CE5-4678129BC477@twft.com> Message-ID: <4F205E2A.9010204@hyperactivesw.com> On 1/25/12 1:40 PM, Bob Sneidar wrote: > That may help whoever at RR to troubleshoot it. If > I knew where in the library this was handled I would troubleshoot it > myself! They won't see it here, it needs to go into the QCC. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From john at splash21.com Wed Jan 25 15:04:33 2012 From: john at splash21.com (John Craig) Date: Wed, 25 Jan 2012 20:04:33 +0000 Subject: [ANN] libQR In-Reply-To: References: <4F1FDED5.8060207@splash21.com> <4F20004A.9070007@splash21.com> Message-ID: <4F206051.6050403@splash21.com> True - there are many possibilities for symbol driven systems! B) On 25/01/2012 14:22, Andre Garzia wrote: > John, > > Cool!!!! =) > > That, allied with Monte barcode reader external is a great combo. > > =) > > On Wed, Jan 25, 2012 at 11:14 AM, John Craig wrote: > >> Hi, Roger. All versions (1-40) and error correction levels (L,M,Q,H) are >> supported and you can specify the module size. As the library writes to a >> LiveCode image object, you can also rescale it after generation. I'm still >> busy with the MobGUI to-do list and more android elements are on the way! >> >> >> On 25/01/2012 12:56, Roger Eller wrote: >> >>> John, >>> >>> I would like to try it out. We use QR codes, but have to rely on other >>> systems to generate them. Can it do various sizes and densities? >>> >>> Question: Will we see more Android UI elements in your awesome MobGUI >>> product? Preferences elements would be cool to link to the new hardware >>> menu button. >>> >>> Thanks. >>> ?Roger >>> >>> -- >>> Roger Eller >>> Graphics Systems Analyst >>> Sealed Air Corporation >>> 864-967-1625 Office >>> 864-908-0337 Cell >>> >>> >>> >>> On Wed, Jan 25, 2012 at 5:52 AM, John Craig wrote: >>> >>> Hi, everyone. I had a project requirement to generate QR codes from >>>> within LC and have just completed the library. I'll release it after >>>> more >>>> testing, but if anyone wants a test stack then please drop me an email. >>>> As >>>> it's all coded in LC, it should work fine on Windows / Mac / Linux. >>>> >>>> Thanks, >>>> >>>> :) >>>> >>>> ______________________________**_________________ >>>> use-livecode mailing list >>>> use-livecode 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 klaus at major.on-rev.com Wed Jan 25 15:12:52 2012 From: klaus at major.on-rev.com (Klaus on-rev) Date: Wed, 25 Jan 2012 21:12:52 +0100 Subject: Icons in dialogs on Win 7 In-Reply-To: <3729ED88-52B6-43A8-B89C-47A8222DE8BE@major.on-rev.com> References: <3729ED88-52B6-43A8-B89C-47A8222DE8BE@major.on-rev.com> Message-ID: Hi folks, Am 25.01.2012 um 18:23 schrieb Klaus on-rev: > Hi friends, > > I noticed that on Windows 7 there are no icons in the ASK and ANSWER dialogs! > GLOBAL gRevAppIcon has been set and works on the Mac!) > > Is that correct behaviour? > > Thanks in advance! no Windows 7 user who can at least confirm this? C'mon :-) Best Klaus -- Klaus Major http://www.major-k.de klaus at major.on-rev.com From ken at kencorey.com Wed Jan 25 15:24:40 2012 From: ken at kencorey.com (Ken Corey) Date: Wed, 25 Jan 2012 20:24:40 +0000 Subject: Icons in dialogs on Win 7 In-Reply-To: References: <3729ED88-52B6-43A8-B89C-47A8222DE8BE@major.on-rev.com> Message-ID: <4F206508.3010807@kencorey.com> On 25/01/2012 20:12, Klaus on-rev wrote: >> Hi friends, >> >> I noticed that on Windows 7 there are no icons in the ASK and ANSWER dialogs! >> GLOBAL gRevAppIcon has been set and works on the Mac!) >> >> Is that correct behaviour? >> >> Thanks in advance! > > no Windows 7 user who can at least confirm this? > C'mon :-) Windows 7 64 bit: on mouseUp ask information "Is this the one" ask question "Is this the one" ask error "Is this the one" ask warning "Is this the one" answer information "Is this the one" answer question "Is this the one" answer error "Is this the one" answer warning "Is this the one" end mouseUp That makes icons happen on all 4. -Ken From klaus at major.on-rev.com Wed Jan 25 15:32:56 2012 From: klaus at major.on-rev.com (Klaus on-rev) Date: Wed, 25 Jan 2012 21:32:56 +0100 Subject: Icons in dialogs on Win 7 In-Reply-To: <4F206508.3010807@kencorey.com> References: <3729ED88-52B6-43A8-B89C-47A8222DE8BE@major.on-rev.com> <4F206508.3010807@kencorey.com> Message-ID: <77DDC304-4848-4A0B-9057-0CEE2E35BB02@major.on-rev.com> Hi Ken, Am 25.01.2012 um 21:24 schrieb Ken Corey: > On 25/01/2012 20:12, Klaus on-rev wrote: >>> Hi friends, >>> >>> I noticed that on Windows 7 there are no icons in the ASK and ANSWER dialogs! >>> GLOBAL gRevAppIcon has been set and works on the Mac!) >>> >>> Is that correct behaviour? >>> >>> Thanks in advance! >> >> no Windows 7 user who can at least confirm this? >> C'mon :-) > > Windows 7 64 bit: > > on mouseUp > ask information "Is this the one" > ask question "Is this the one" > ask error "Is this the one" > ask warning "Is this the one" > answer information "Is this the one" > answer question "Is this the one" > answer error "Is this the one" > answer warning "Is this the one" > end mouseUp > > That makes icons happen on all 4. Yep, but I meant the (global) gRevAppIcon! On the other hand, the dictionary told me that this is a Mac only feature! Who would have thought of that? :-) But I really wonder why this does not work crosspaltform since the LC dialogs are just scripted stack AND the above mentioned built-in icons do work? > -Ken Best Klaus -- Klaus Major http://www.major-k.de klaus at major.on-rev.com From artdivito at sbcglobal.net Wed Jan 25 15:57:12 2012 From: artdivito at sbcglobal.net (Art DiVito) Date: Wed, 25 Jan 2012 12:57:12 -0800 (PST) Subject: icon for standalone Message-ID: <1327525032.2962.YahooMailClassic@web81203.mail.mud.yahoo.com> Thanks, Mark and Bob. So, it is okay to use the LC dafault icons, but less professional, right? Here's the thing: I have a very nice, well working, program and I would like to put it on the market both for altruistic purposes and to earn some revenue so that I can update it to a more polished product. Since I am not a professional programmer, where can I find someone who can turn in into a real market ready professional product, and what might I expect to have to pay for such work (roughly)? Thanks. <> From tbandi at swissonline.ch Wed Jan 25 16:24:05 2012 From: tbandi at swissonline.ch (Till Bandi) Date: Wed, 25 Jan 2012 22:24:05 +0100 Subject: Revlets on the web In-Reply-To: <4F1ED4A9.8050207@hyperactivesw.com> References: <4F1ED4A9.8050207@hyperactivesw.com> Message-ID: I did change to 32-bit mode, but in Safari it doesn't work. With firefox in 32-bit mode everything is ok. Is it not possible to use revlets with Safari (5.1.2)? or did I do something wrong? Till Am 24.01.2012 um 16:56 schrieb J. Landman Gay: > ...provided you have the plugin installed, but currently it only works in 32-bit mode. I think Safari defaults to 64-bit now. > > The URL is the one that opens the HTML page. When the page opens it will load the revlet. > > > -- > 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 simplsol at aol.com Wed Jan 25 17:21:50 2012 From: simplsol at aol.com (Paul Looney) Date: Wed, 25 Jan 2012 14:21:50 -0800 Subject: Forbidden data in a Data Grid? Message-ID: <2BD51DFF-544D-4998-83D8-7324F3C6743C@aol.com> Are there characters that prevent a Data Grid from displaying? We have Data Grid in the UI front end to a database. For years it has worked well with databases for many different customers. Recently the data from one customer would not display. Stepping through the code, all was well until the end - setting the dgtext of the data grid. The scroll bars resized properly. The number or records listed was right. Clicking on a line in the Data Grid opened the record viewer. But no data was displayed in the Data Grid fields. The same grid continued to work with data from other customers. That customer's data was visible in other grids. It is just that this one grid will not display data from this one account. We already strip out NULLs (from our experience with sorting problems) but are there other characters that would cause a Data Grid to not display data? Or should we look elsewhere? Thanks in advance, Paul Looney From janschenkel at yahoo.com Wed Jan 25 17:25:17 2012 From: janschenkel at yahoo.com (Jan Schenkel) Date: Wed, 25 Jan 2012 14:25:17 -0800 (PST) Subject: Icons in dialogs on Win 7 In-Reply-To: <77DDC304-4848-4A0B-9057-0CEE2E35BB02@major.on-rev.com> References: <3729ED88-52B6-43A8-B89C-47A8222DE8BE@major.on-rev.com> <4F206508.3010807@kencorey.com> <77DDC304-4848-4A0B-9057-0CEE2E35BB02@major.on-rev.com> Message-ID: <1327530317.89841.YahooMailNeo@web65402.mail.ac4.yahoo.com> Hi Klaus, As it is just a stack, you can take a look at the script of the first card of the Answer and Ask stacks. There you'll find the answer (no pun intended) - the gRevAppIcon will only appear on MacOS X. And it looks like the gRevSmallAppIcon functionality is still broken since 'OK' removed it in version 4.0. 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: Klaus on-rev To: How to use LiveCode Sent: Wednesday, January 25, 2012 9:32 PM Subject: Re: Icons in dialogs on Win 7 Hi Ken, Am 25.01.2012 um 21:24 schrieb Ken Corey: > On 25/01/2012 20:12, Klaus on-rev wrote: >>> Hi friends, >>> >>> I noticed that on Windows 7 there are no icons in the ASK and ANSWER dialogs! >>> GLOBAL gRevAppIcon has been set and works on the Mac!) >>> >>> Is that correct behaviour? >>> >>> Thanks in advance! >> >> no Windows 7 user who can at least confirm this? >> C'mon :-) > > Windows 7 64 bit: > > on mouseUp >? ask information "Is this the one" >? ask question "Is this the one" >? ask error "Is this the one" >? ask warning "Is this the one" >? answer information "Is this the one" >? answer question "Is this the one" >? answer error "Is this the one" >? answer warning "Is this the one" > end mouseUp > > That makes icons happen on all 4. Yep, but I meant the (global) gRevAppIcon! On the other hand, the dictionary told me that this is a Mac only feature! Who would have thought of that? :-) But I really wonder why this does not work crosspaltform since the LC dialogs are just scripted stack AND the above mentioned built-in icons do work? > -Ken 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 bobs at twft.com Wed Jan 25 17:25:52 2012 From: bobs at twft.com (Bob Sneidar) Date: Wed, 25 Jan 2012 14:25:52 -0800 Subject: Icons in dialogs on Win 7 In-Reply-To: <77DDC304-4848-4A0B-9057-0CEE2E35BB02@major.on-rev.com> References: <3729ED88-52B6-43A8-B89C-47A8222DE8BE@major.on-rev.com> <4F206508.3010807@kencorey.com> <77DDC304-4848-4A0B-9057-0CEE2E35BB02@major.on-rev.com> Message-ID: <9BDF5ABB-0EAF-4361-B916-609FE62C1691@twft.com> I'm willing to bet money that it is a Windows UI issue. There is probably no way to pass an icon to a Windows dialog. Bob On Jan 25, 2012, at 12:32 PM, Klaus on-rev wrote: >> That makes icons happen on all 4. > > Yep, but I meant the (global) gRevAppIcon! > > On the other hand, the dictionary told me that this is a Mac only feature! > Who would have thought of that? :-) > > But I really wonder why this does not work crosspaltform since the LC dialogs > are just scripted stack AND the above mentioned built-in icons do work? > >> -Ken > > Best > > Klaus From jhurley0305 at sbcglobal.net Wed Jan 25 17:33:36 2012 From: jhurley0305 at sbcglobal.net (Jim Hurley) Date: Wed, 25 Jan 2012 14:33:36 -0800 Subject: Revlets on the web In-Reply-To: References: Message-ID: <363D0090-930E-44A5-9A77-24366B3196A9@sbcglobal.net> > > Message: 20 > Date: Tue, 24 Jan 2012 09:56:25 -0600 > From: "J. Landman Gay" > To: How to use LiveCode > Subject: Re: Revlets on the web > Message-ID: <4F1ED4A9.8050207 at hyperactivesw.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > On 1/23/12 2:16 PM, Jim Hurley wrote: >> I think I knew how to do this at one time. >> >> I have an app saved for the Web as a revlet >> >> After saving as a standalone (for the web) a page opens in Safari >> that says it is a test page--BUT NOT APP. Is the app supposed to open >> in Safari as a RevLet? > > Yes, provided you have the plugin installed, but currently it only works > in 32-bit mode. I think Safari defaults to 64-bit now. Thanks Jacque. I went over to Fire Fox and it works there, so that must be the problem. Is there something I can do to get it working in Safari? I don't know bits from bats. Is there a way to change an image from 32 to 64, or a way to change the mode in Safari? Jim Hurley From m.schonewille at economy-x-talk.com Wed Jan 25 17:46:48 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 25 Jan 2012 23:46:48 +0100 Subject: Forbidden data in a Data Grid? In-Reply-To: <2BD51DFF-544D-4998-83D8-7324F3C6743C@aol.com> References: <2BD51DFF-544D-4998-83D8-7324F3C6743C@aol.com> Message-ID: <93515701-D63B-483E-A324-0B2A9EFF0C90@economy-x-talk.com> Hi Paul, Is it possible that the database contains unicode text? -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 25 jan 2012, at 23:21, Paul Looney wrote: > Are there characters that prevent a Data Grid from displaying? > > We have Data Grid in the UI front end to a database. > For years it has worked well with databases for many different customers. > Recently the data from one customer would not display. Stepping through the code, all was well until the end - setting the dgtext of the data grid. The scroll bars resized properly. The number or records listed was right. Clicking on a line in the Data Grid opened the record viewer. > But no data was displayed in the Data Grid fields. > > The same grid continued to work with data from other customers. That customer's data was visible in other grids. > > It is just that this one grid will not display data from this one account. > > We already strip out NULLs (from our experience with sorting problems) but are there other characters that would cause a Data Grid to not display data? > > Or should we look elsewhere? > > Thanks in advance, > Paul Looney From ken at kencorey.com Wed Jan 25 18:02:34 2012 From: ken at kencorey.com (Ken Corey) Date: Wed, 25 Jan 2012 23:02:34 +0000 Subject: Pinch and Rotate In-Reply-To: <78C59E74-491C-4C0D-B068-ED972A759B09@mac.com> References: <4F1DE708.4070607@kencorey.com> <9A6812A7-BD50-41E8-AD6F-EB24FB164EF9@me.com> <4F1E5F31.1060304@kencorey.com> <78C59E74-491C-4C0D-B068-ED972A759B09@mac.com> Message-ID: <4F208A0A.60303@kencorey.com> On 25/01/2012 15:54, Thomas McGrath III wrote: > These are exactly the kinds of things I ran into as well. One thing that happens is that when rotating an image the image gets distorted and so we need the resizeQuality set to "good" or "best" but then it really slows down even further. Okay, sorted things out...to a point. I'm deeply disturbed by the polys. There's got to be a better way. This version rotates the polys accurately (for some value of accurate), but now they cannot be resized (this is because I'm keeping a shadow set of point coordinates so as not to lose the fractions...and they don't get resized). If you reorder the code to resize and *then* rotate, it attempts to "work", but the resizing destroys the shape of the poly. On the plus side, images are dropped down to a 'normal' resizeQuality for rotation, and then restored to the former quality on the other end, which seems to work okay. The jitter is still there (I think it's because I'm treating each finger move individually?) which is quite annoying. It still wouldn't be acceptable in real life. Perhaps the move locations need to be averaged for each move? Perhaps I'm making an error in the math. I'll give 2 gold stars to the person who figures out why it's jittery. At any rate here it is: http://its.ec/static/multitouchtest.livecode0.0.2.zip Enjoy all. -Ken From pete at mollysrevenge.com Wed Jan 25 18:31:15 2012 From: pete at mollysrevenge.com (Pete) Date: Wed, 25 Jan 2012 15:31:15 -0800 Subject: Forbidden data in a Data Grid? In-Reply-To: <2BD51DFF-544D-4998-83D8-7324F3C6743C@aol.com> References: <2BD51DFF-544D-4998-83D8-7324F3C6743C@aol.com> Message-ID: Carriage returns in the middle of a column will also mess up the datagrid if you are using the dgText rather than the dgData property. It makes the datagrid think a new line of data has started in the middle of the column. Pete On Wed, Jan 25, 2012 at 2:21 PM, Paul Looney wrote: > Are there characters that prevent a Data Grid from displaying? > > We have Data Grid in the UI front end to a database. > For years it has worked well with databases for many different customers. > Recently the data from one customer would not display. Stepping through > the code, all was well until the end - setting the dgtext of the data grid. > The scroll bars resized properly. The number or records listed was right. > Clicking on a line in the Data Grid opened the record viewer. > But no data was displayed in the Data Grid fields. > > The same grid continued to work with data from other customers. That > customer's data was visible in other grids. > > It is just that this one grid will not display data from this one account. > > We already strip out NULLs (from our experience with sorting problems) but > are there other characters that would cause a Data Grid to not display data? > > Or should we look elsewhere? > > Thanks in advance, > Paul Looney > _______________________________________________ > use-livecode mailing list > use-livecode 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 john at splash21.com Wed Jan 25 18:37:42 2012 From: john at splash21.com (John Craig) Date: Wed, 25 Jan 2012 23:37:42 +0000 Subject: [ANN] libQR In-Reply-To: <4F1FDED5.8060207@splash21.com> References: <4F1FDED5.8060207@splash21.com> Message-ID: <4F209246.7030504@splash21.com> Thanks for all the feedback so far! A fair few of you reported that version 2-L codes did not scan - that bug has been fixed. I've also been testing all combinations up to version 10 and they have all been successful. My other tests haven't been as structured (yet), but I've been creating miscellaneous codes up to around version 30 with no problems. I'll get a web page up soon with the latest version. John. On 25/01/2012 10:52, John Craig wrote: > Hi, everyone. I had a project requirement to generate QR codes from > within LC and have just completed the library. I'll release it after > more testing, but if anyone wants a test stack then please drop me an > email. As it's all coded in LC, it should work fine on Windows / Mac > / Linux. > > Thanks, > > :) > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at gulfbreezeortholab.com Wed Jan 25 18:49:09 2012 From: keith at gulfbreezeortholab.com (Keith (Gulf Breeze Ortho Lab)) Date: Wed, 25 Jan 2012 17:49:09 -0600 Subject: [ANN] libQR In-Reply-To: <4F209246.7030504@splash21.com> References: <4F1FDED5.8060207@splash21.com> <4F209246.7030504@splash21.com> Message-ID: <5F84A8080D6C477FBBD91427D6FF1B6A@KeithPC> Hi John, Just tested it on my Windows 7 machine and it is working like a charm... Playing with it at the moment. NICE WORK! Sincerely, - Boo -----Original Message----- From: John Craig Sent: Wednesday, January 25, 2012 5:37 PM To: How to use LiveCode Subject: Re: [ANN] libQR Thanks for all the feedback so far! A fair few of you reported that version 2-L codes did not scan - that bug has been fixed. I've also been testing all combinations up to version 10 and they have all been successful. My other tests haven't been as structured (yet), but I've been creating miscellaneous codes up to around version 30 with no problems. I'll get a web page up soon with the latest version. John. On 25/01/2012 10:52, John Craig wrote: > Hi, everyone. I had a project requirement to generate QR codes from > within LC and have just completed the library. I'll release it after more > testing, but if anyone wants a test stack then please drop me an email. > As it's all coded in LC, it should work fine on Windows / Mac / Linux. > > Thanks, > > :) > > _______________________________________________ > use-livecode mailing list > use-livecode 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 roger.e.eller at sealedair.com Wed Jan 25 19:02:40 2012 From: roger.e.eller at sealedair.com (Roger Eller) Date: Wed, 25 Jan 2012 19:02:40 -0500 Subject: [ANN] libQR In-Reply-To: <4F209246.7030504@splash21.com> References: <4F1FDED5.8060207@splash21.com> <4F209246.7030504@splash21.com> Message-ID: On Wed, Jan 25, 2012 at 6:37 PM, John Craig wrote: > Thanks for all the feedback so far! A fair few of you reported that > version 2-L codes did not scan - that bug has been fixed. I've also been > testing all combinations up to version 10 and they have all been > successful. My other tests haven't been as structured (yet), but I've been > creating miscellaneous codes up to around version 30 with no problems. > I'll get a web page up soon with the latest version. > > John Everyone I've shown has responded with "Sweeeeet!". So, I'd say it is pretty good. We haven't thoroughly tested it, but so far everything we've created with it has scanned ok. Great work! ?Roger From yoshino at sys.wakayama-u.ac.jp Wed Jan 25 19:05:52 2012 From: yoshino at sys.wakayama-u.ac.jp (Takashi Yoshino) Date: Thu, 26 Jan 2012 09:05:52 +0900 Subject: How to store some data in my stack In-Reply-To: References: <22564CFD-D53D-42CE-B306-387085A74390@sys.wakayama-u.ac.jp> <3DD15C16-1467-419B-86E7-22369BE53369@major.on-rev.com> <80CF01D7-B073-45F4-A46E-0737DEF9C765@sys.wakayama-u.ac.jp> Message-ID: Hi, Klaus Thank you for your help! > - Read button > on mouseUp > put specialFolderPath(?documents?) & "/" & ?testFile.txt? into tFile > if there is a file tFile then > put URL("file:" & tFile) into fld "Data" > put the result into fld "msg" > else > answer "No file yet!" > end if > end mouseUp "no file yet!" is shown in an android. 'Write' function can't work, that is, put fld "Data" into URL("file:" & specialFolderPath(?documents?) & "/" & ?testFile.txt?) is not working on an android. Did someone succeed in writing a file on android? I tried rev online user sample. Android-> List Files and Folders 2. On an android, list files work well, but write files did not work? _.__ ._ _. ._ ._.__ .. ._._. _._ . ..__ ._.__ ._._. ___. .._ __.. __ .._ Takashi Yoshino http://www.wakayama-u.ac.jp/~yoshino/lab/ Tel: +81-73-457-8441 On 2012/01/26, at 1:04, Klaus on-rev wrote: > Hi Takashi, > > Am 25.01.2012 um 16:56 schrieb ????: > >> Hi, Klaus >> >> Thank you for your quick reply! >> >> I changed my script, but it does not work on an android. >> (It does work on my mac.) >> >> The following are the test script. >> (URL is very easy! thanks) >> >> - Write button >> on mouseUp >> put fld "Data" into URL("file:" & specialFolderPath(?documents?) & "/" & ?testFile.txt?) >> put the result into fld "msg" >> end mouseUp > > What is "the result" here? > >> - Read button >> on mouseUp >> put URL("file:" & specialFolderPath(?documents?) & "/" & ?testFile.txt?) into fld "Data" >> put the result into fld "msg" >> end mouseUp >> # "/" -> ":"(mac) >> On my mac, those scripts work well. >> >> But, on my android, "can't open file" is shown in field "msg" > > Sorry, have no android license, no idea what's going wrong here. > > Maybe you should check first, if the file exists? > > - Read button > on mouseUp > put specialFolderPath(?documents?) & "/" & ?testFile.txt? into tFile > if there is a file tFile then > put URL("file:" & tFile) into fld "Data" > put the result into fld "msg" > else > answer "No file yet!" > end if > end mouseUp > > > > > 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 bobs at twft.com Wed Jan 25 19:10:10 2012 From: bobs at twft.com (Bob Sneidar) Date: Wed, 25 Jan 2012 16:10:10 -0800 Subject: Revlets on the web In-Reply-To: <363D0090-930E-44A5-9A77-24366B3196A9@sbcglobal.net> References: <363D0090-930E-44A5-9A77-24366B3196A9@sbcglobal.net> Message-ID: I give you this from the Apple Support community: You can switch to 32 bit mode on Safari on a Mac running Snow Leopard 10.6.8 and Safari 5.1. Right or control click the Safari app in the Applications folder then click Get Info. Select: open in 32-bit mode Quit then relaunch Safari. I got this by Googling. Google is our friend. Bob On Jan 25, 2012, at 2:33 PM, Jim Hurley wrote: >> >> Message: 20 >> Date: Tue, 24 Jan 2012 09:56:25 -0600 >> From: "J. Landman Gay" >> To: How to use LiveCode >> Subject: Re: Revlets on the web >> Message-ID: <4F1ED4A9.8050207 at hyperactivesw.com> >> Content-Type: text/plain; charset=ISO-8859-1; format=flowed >> >> On 1/23/12 2:16 PM, Jim Hurley wrote: >>> I think I knew how to do this at one time. >>> >>> I have an app saved for the Web as a revlet >>> >>> After saving as a standalone (for the web) a page opens in Safari >>> that says it is a test page--BUT NOT APP. Is the app supposed to open >>> in Safari as a RevLet? >> >> Yes, provided you have the plugin installed, but currently it only works >> in 32-bit mode. I think Safari defaults to 64-bit now. > > Thanks Jacque. I went over to Fire Fox and it works there, so that must be the problem. > > Is there something I can do to get it working in Safari? > > I don't know bits from bats. Is there a way to change an image from 32 to 64, or a way to change the mode in Safari? > > 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 simplsol at aol.com Wed Jan 25 19:23:35 2012 From: simplsol at aol.com (Paul Looney) Date: Wed, 25 Jan 2012 16:23:35 -0800 Subject: Forbidden data in a Data Grid? In-Reply-To: <93515701-D63B-483E-A324-0B2A9EFF0C90@economy-x-talk.com> References: <2BD51DFF-544D-4998-83D8-7324F3C6743C@aol.com> <93515701-D63B-483E-A324-0B2A9EFF0C90@economy-x-talk.com> Message-ID: <0C094B41-2EC5-407D-9174-FD09FFCE962F@aol.com> Mark, There should be no unicode. Is there an easy way to test? Paul Looney On Jan 25, 2012, at 2:46 PM, Mark Schonewille wrote: > Is it possible that the database contains unicode text? From simplsol at aol.com Wed Jan 25 19:25:45 2012 From: simplsol at aol.com (Paul Looney) Date: Wed, 25 Jan 2012 16:25:45 -0800 Subject: Forbidden data in a Data Grid? In-Reply-To: References: <2BD51DFF-544D-4998-83D8-7324F3C6743C@aol.com> Message-ID: <85EBCE73-D84C-4D8E-8082-A18C8A011ADD@aol.com> Pete, That makes sense, but ALL of the data that should be displayed in the data grid is missing - although the scroll bars scroll like it is there. Paul Looney On Jan 25, 2012, at 3:31 PM, Pete wrote: > Carriage returns in the middle of a column will also mess up the datagrid > if you are using the dgText rather than the dgData property. It makes the > datagrid think a new line of data has started in the middle of the column. From pete at mollysrevenge.com Wed Jan 25 19:33:40 2012 From: pete at mollysrevenge.com (Pete) Date: Wed, 25 Jan 2012 16:33:40 -0800 Subject: Forbidden data in a Data Grid? In-Reply-To: <85EBCE73-D84C-4D8E-8082-A18C8A011ADD@aol.com> References: <2BD51DFF-544D-4998-83D8-7324F3C6743C@aol.com> <85EBCE73-D84C-4D8E-8082-A18C8A011ADD@aol.com> Message-ID: Hi Paul, That does sound weird. I have had similar problems when carriage returns are in the data but usually you see some rows that look OK, then a bunch of blank or partial data rows, then back to normal display. I guess if the first record you tried to display was full of carriage returns, it might look like you describe, but unlikely I suppose. What type of database are you using? Do you have some sort of db tool you could use to take a look at the raw data that is causing the problem? Pete On Wed, Jan 25, 2012 at 4:25 PM, Paul Looney wrote: > Pete, > That makes sense, but ALL of the data that should be displayed in the data > grid is missing - although the scroll bars scroll like it is there. > Paul Looney > On Jan 25, 2012, at 3:31 PM, Pete wrote: > > > Carriage returns in the middle of a column will also mess up the datagrid > > if you are using the dgText rather than the dgData property. It makes > the > > datagrid think a new line of data has started in the middle of the > column. > > _______________________________________________ > use-livecode mailing list > use-livecode 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 jhurley0305 at sbcglobal.net Wed Jan 25 19:34:44 2012 From: jhurley0305 at sbcglobal.net (Jim Hurley) Date: Wed, 25 Jan 2012 16:34:44 -0800 Subject: Revlets on the web In-Reply-To: References: Message-ID: <745551D0-C497-4EC3-8988-6FCF5459E692@sbcglobal.net> Addendum to previous post. I upgraded FireFox to the latest version and now I get a message that Fire Fox needs to restart in 32 bit mode to run my revlet. What can I do to the image in the revlet to avoid this problem? I am a BIT of a novice here. Jim > Message: 20 > Date: Tue, 24 Jan 2012 09:56:25 -0600 > From: "J. Landman Gay" > To: How to use LiveCode > Subject: Re: Revlets on the web > Message-ID: <4F1ED4A9.8050207 at hyperactivesw.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > On 1/23/12 2:16 PM, Jim Hurley wrote: >> I think I knew how to do this at one time. >> >> I have an app saved for the Web as a revlet >> >> After saving as a standalone (for the web) a page opens in Safari >> that says it is a test page--BUT NOT APP. Is the app supposed to open >> in Safari as a RevLet? > > Yes, provided you have the plugin installed, but currently it only works > in 32-bit mode. I think Safari defaults to 64-bit now. Thanks Jacque. I went over to Fire Fox and it works there, so that must be the problem. Is there something I can do to get it working in Safari? I don't know bits from bats. Is there a way to change an image from 32 to 64, or a way to change the mode in Safari? Jim Hurley From andre at andregarzia.com Wed Jan 25 19:35:27 2012 From: andre at andregarzia.com (Andre Garzia) Date: Wed, 25 Jan 2012 22:35:27 -0200 Subject: Revlets on the web In-Reply-To: References: <363D0090-930E-44A5-9A77-24366B3196A9@sbcglobal.net> Message-ID: Folks, If you guys think that the HTML code generated by the revLet deployment is ugly, then, you should take a look at my revletobject project at: http://andregarzia.com/page/revletobject It allows you to embed a revlet in a webpage with no pain. For example:
From andre at andregarzia.com Wed Jan 25 19:38:28 2012 From: andre at andregarzia.com (Andre Garzia) Date: Wed, 25 Jan 2012 22:38:28 -0200 Subject: Revlets on the web In-Reply-To: <745551D0-C497-4EC3-8988-6FCF5459E692@sbcglobal.net> References: <745551D0-C497-4EC3-8988-6FCF5459E692@sbcglobal.net> Message-ID: Jim, RevLets only work in 32bit mode. There is no way to solve that at this moment. =/ On Wed, Jan 25, 2012 at 10:34 PM, Jim Hurley wrote: > Addendum to previous post. > > I upgraded FireFox to the latest version and now I get a message that Fire Fox needs to restart in 32 bit mode to run my revlet. > > What can I do to the image in the revlet to avoid this problem? > > I am a BIT of a novice here. > > Jim > > >> Message: 20 >> Date: Tue, 24 Jan 2012 09:56:25 -0600 >> From: "J. Landman Gay" >> To: How to use LiveCode >> Subject: Re: Revlets on the web >> Message-ID: <4F1ED4A9.8050207 at hyperactivesw.com> >> Content-Type: text/plain; charset=ISO-8859-1; format=flowed >> >> On 1/23/12 2:16 PM, Jim Hurley wrote: >>> I think I knew how to do this at one time. >>> >>> I have an app saved for the Web as a revlet >>> >>> After saving as a standalone (for the web) a page opens in Safari >>> that says it is a test page--BUT NOT APP. Is the app supposed to open >>> in Safari as a RevLet? >> >> Yes, provided you have the plugin installed, but currently it only works >> in 32-bit mode. I think Safari defaults to 64-bit now. > > Thanks Jacque. I went over to Fire Fox and it works there, so that must be the problem. > > Is there something I can do to get it working in Safari? > > I don't know bits from bats. Is there a way to change an image from 32 to 64, or a way to change the mode in Safari? > > 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 -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. From bobs at twft.com Wed Jan 25 20:36:10 2012 From: bobs at twft.com (Bob Sneidar) Date: Wed, 25 Jan 2012 17:36:10 -0800 Subject: Forbidden data in a Data Grid? In-Reply-To: <2BD51DFF-544D-4998-83D8-7324F3C6743C@aol.com> References: <2BD51DFF-544D-4998-83D8-7324F3C6743C@aol.com> Message-ID: Okay, do this in a script: put the dgData of group "" into theDataA put printKeys(theDataA) The message box will now contain the text representation of the array from your data grid. Copy that and take it into some kind of text editor that can show you things like line feeds or special characters. I assume you are escaping your data when you post it to the sql database? Sanitizing your SQL? It sounds like someone inadvertently (or otherwise) entered some kind of data and it got into the database when it shouldn't have. Bob On Jan 25, 2012, at 2:21 PM, Paul Looney wrote: > Are there characters that prevent a Data Grid from displaying? > > We have Data Grid in the UI front end to a database. > For years it has worked well with databases for many different customers. > Recently the data from one customer would not display. Stepping through the code, all was well until the end - setting the dgtext of the data grid. The scroll bars resized properly. The number or records listed was right. Clicking on a line in the Data Grid opened the record viewer. > But no data was displayed in the Data Grid fields. > > The same grid continued to work with data from other customers. That customer's data was visible in other grids. > > It is just that this one grid will not display data from this one account. > > We already strip out NULLs (from our experience with sorting problems) but are there other characters that would cause a Data Grid to not display data? > > Or should we look elsewhere? > > Thanks in advance, > Paul Looney > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jan 25 20:38:19 2012 From: bobs at twft.com (Bob Sneidar) Date: Wed, 25 Jan 2012 17:38:19 -0800 Subject: Revlets on the web In-Reply-To: References: <745551D0-C497-4EC3-8988-6FCF5459E692@sbcglobal.net> Message-ID: <49AC340A-9A1B-4901-B3FF-65C2A50E1672@twft.com> I already posted but you must have missed it. Right-click Safari and get info. Tell it to open in 32 bit mode. Bob On Jan 25, 2012, at 4:38 PM, Andre Garzia wrote: > Jim, > > RevLets only work in 32bit mode. There is no way to solve that at this moment. > > =/ > > On Wed, Jan 25, 2012 at 10:34 PM, Jim Hurley wrote: >> Addendum to previous post. >> >> I upgraded FireFox to the latest version and now I get a message that Fire Fox needs to restart in 32 bit mode to run my revlet. >> >> What can I do to the image in the revlet to avoid this problem? >> >> I am a BIT of a novice here. >> >> Jim From pmbrig at gmail.com Wed Jan 25 21:43:31 2012 From: pmbrig at gmail.com (Peter M. Brigham, MD) Date: Wed, 25 Jan 2012 21:43:31 -0500 Subject: icon for standalone In-Reply-To: <1327525032.2962.YahooMailClassic@web81203.mail.mud.yahoo.com> References: <1327525032.2962.YahooMailClassic@web81203.mail.mud.yahoo.com> Message-ID: On Jan 25, 2012, at 3:57 PM, Art DiVito wrote: > Thanks, Mark and Bob. So, it is okay to use the LC dafault icons, but less professional, right? Here's the thing: I have a very nice, well working, program and I would like to put it on the market both for altruistic purposes and to earn some revenue so that I can update it to a more polished product. Since I am not a professional programmer, where can I find someone who can turn in into a real market ready professional product, and what might I expect to have to pay for such work (roughly)? Thanks. > > < by having personalized icons if you plan to sell it. If this is for > internal work then I would not bother either.>> You can set the global gRevAppIcon before calling the ask or answer dialogs. Unfortunately, the globals appear to be reset every time to the defaults, so you have to set them just before using "ask" or "answer" commands, each time. I agree that it's more professional-looking to use your own app's icon in these dialogs. Here's what I do: ... setupicons answer "Here is an answer dialog with a custom icon." ... on setUpIcons -- put this in your mainstack or library stack global gRevAppIcon put 2241 into gRevAppIcon -- the id of your custom icon end setUpIcons -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From marty at ucls.uchicago.edu Wed Jan 25 21:46:40 2012 From: marty at ucls.uchicago.edu (Marty Billingsley) Date: Wed, 25 Jan 2012 20:46:40 -0600 Subject: how to populate the menu items of a pulldown menu In-Reply-To: References: Message-ID: Perfect. Thanks much! - marty Bob Sneidar wrote: > > get the text of button "myPullDownNemu" > put "Choice 1" & cr & "Choice 2" & cr after it > set the text of button "myPullDownNemu" to it > > Is that what you were looking to do? > > Bob > > > On Jan 25, 2012, at 11:05 AM, Marty Billingsley wrote: > >> Hi all -- >> >> How can you programmatically add items to a pulldown menu button? Is this a settable property? >> >> Been looking through the documentation, but haven't come across anything. >> >> Thanks, >> - marty >> >> -- >> Marty Billingsley >> Department of Computer Science >> The University of Chicago Laboratory Schools >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > From simplsol at aol.com Wed Jan 25 23:46:12 2012 From: simplsol at aol.com (Paul Looney) Date: Wed, 25 Jan 2012 20:46:12 -0800 Subject: Forbidden data in a Data Grid? In-Reply-To: References: <2BD51DFF-544D-4998-83D8-7324F3C6743C@aol.com> Message-ID: <022DE6D1-4020-41F3-A633-7899FF20BF39@aol.com> Bob, Thank you. That was very helpful. The only key that had data was the record ID - explains why clicking on a line still opened the record viewer but nothing else was visible. Looking deeper. PL On Jan 25, 2012, at 5:36 PM, Bob Sneidar wrote: > put the dgData of group "" into theDataA > put printKeys(theDataA) From jacque at hyperactivesw.com Wed Jan 25 23:52:47 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 25 Jan 2012 22:52:47 -0600 Subject: Revlets on the web In-Reply-To: <745551D0-C497-4EC3-8988-6FCF5459E692@sbcglobal.net> References: <745551D0-C497-4EC3-8988-6FCF5459E692@sbcglobal.net> Message-ID: <4F20DC1F.6090801@hyperactivesw.com> On 1/25/12 6:34 PM, Jim Hurley wrote: > Addendum to previous post. > > I upgraded FireFox to the latest version and now I get a message that > Fire Fox needs to restart in 32 bit mode to run my revlet. > > What can I do to the image in the revlet to avoid this problem? Nothing, the problem isn't in the content of your revlet. New operating systems use 64-bit processors and the revlet needs to be recompiled by the LiveCode engine as a 64-bit application to be compatible. That can only be done by RR, it's an engine thing. As Bob mentioned, you can set Safari to run in 32-bit mode in Snow Leopard by ticking the checkbox in Safari's "Get Info" dialog in the Finder. I don't think that's available in Lion (I don't run Lion, but I think that's what I heard.) That said, apparently Till set Safari to run in 32-bit mode and it didn't help. Some other browsers are also incompatible with revlets right now, so for the time being there's not much we can do. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Wed Jan 25 23:55:51 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 25 Jan 2012 22:55:51 -0600 Subject: How to store some data in my stack In-Reply-To: References: <22564CFD-D53D-42CE-B306-387085A74390@sys.wakayama-u.ac.jp> <3DD15C16-1467-419B-86E7-22369BE53369@major.on-rev.com> <80CF01D7-B073-45F4-A46E-0737DEF9C765@sys.wakayama-u.ac.jp> Message-ID: <4F20DCD7.90006@hyperactivesw.com> On 1/25/12 6:05 PM, Takashi Yoshino wrote: >> - Read button >> on mouseUp >> put specialFolderPath(?documents?)& "/"& ?testFile.txt? into tFile >> if there is a file tFile then >> put URL("file:"& tFile) into fld "Data" >> put the result into fld "msg" >> else >> answer "No file yet!" >> end if >> end mouseUp > > "no file yet!" is shown in an android. > > 'Write' function can't work, that is, > put fld "Data" into URL("file:"& specialFolderPath(?documents?)& "/"& ?testFile.txt?) > is not working on an android. > > Did someone succeed in writing a file on android? I have done it. I'm not sure why your code doesn't work, it's very much like mine. Did you write a file first before you tried to read it? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From yoshino at sys.wakayama-u.ac.jp Thu Jan 26 00:40:46 2012 From: yoshino at sys.wakayama-u.ac.jp (Takashi Yoshino) Date: Thu, 26 Jan 2012 14:40:46 +0900 Subject: How to store some data in my stack In-Reply-To: <4F20DCD7.90006@hyperactivesw.com> References: <22564CFD-D53D-42CE-B306-387085A74390@sys.wakayama-u.ac.jp> <3DD15C16-1467-419B-86E7-22369BE53369@major.on-rev.com> <80CF01D7-B073-45F4-A46E-0737DEF9C765@sys.wakayama-u.ac.jp> <4F20DCD7.90006@hyperactivesw.com> Message-ID: <3D674028-7EBB-493A-82D4-16CFFF2D167A@sys.wakayama-u.ac.jp> >> >> Did someone succeed in writing a file on android? > > I have done it. I'm not sure why your code doesn't work, it's very much like mine. Did you write a file first before you tried to read it? Yes. I wrote a file first, then read it. I give up this problem... _.__ ._ _. ._ ._.__ .. ._._. _._ . ..__ ._.__ ._._. ___. .._ __.. __ .._ Takashi Yoshino http://www.wakayama-u.ac.jp/~yoshino/lab/ Tel: +81-73-457-8441 On 2012/01/26, at 13:55, J. Landman Gay wrote: > On 1/25/12 6:05 PM, Takashi Yoshino wrote: >>> - Read button >>> on mouseUp >>> put specialFolderPath(?documents?)& "/"& ?testFile.txt? into tFile >>> if there is a file tFile then >>> put URL("file:"& tFile) into fld "Data" >>> put the result into fld "msg" >>> else >>> answer "No file yet!" >>> end if >>> end mouseUp >> >> "no file yet!" is shown in an android. >> >> 'Write' function can't work, that is, >> put fld "Data" into URL("file:"& specialFolderPath(?documents?)& "/"& ?testFile.txt?) >> is not working on an android. >> >> Did someone succeed in writing a file on android? > > I have done it. I'm not sure why your code doesn't work, it's very much like mine. Did you write a file first before you tried to read 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 jhurley0305 at sbcglobal.net Thu Jan 26 01:09:12 2012 From: jhurley0305 at sbcglobal.net (Jim Hurley) Date: Wed, 25 Jan 2012 22:09:12 -0800 Subject: Revlets on the web In-Reply-To: References: Message-ID: <1E16B0F2-0D7A-4662-889E-0527C2559BB4@sbcglobal.net> Bob, Thank you. Yes, I did miss it. That works well in Firefox, but, alas, not in Safari. (Mac OS 10.6.8, Safari 5.1.2) Jim Bob Sneidar wrote: > I already posted but you must have missed it. Right-click Safari and get info. Tell it to open in 32 bit mode. Bob On Jan 25, 2012, at 4:38 PM, Andre > >> Garzia wrote: >> Jim, >> RevLets only work in 32bit mode. There is no way to solve that at this moment. >> =/ >> >> On Wed, Jan 25, 2012 at 10:34 PM, Jim Hurley wrote: >> Addendum to previous post. I upgraded FireFox to the latest version and now I get a message that Fire Fox needs to restart in 32 bit mode to run my revlet. What can I do to the image in the revlet to avoid this problem? I am a BIT of a novice here. Jim >> From mikedoub at gmail.com Thu Jan 26 08:56:51 2012 From: mikedoub at gmail.com (Michael Doub) Date: Thu, 26 Jan 2012 08:56:51 -0500 Subject: Android setup issues Message-ID: Well, my HTC inspire arrived yesterday so I decided to start the android learning process. I created an AVD with the following attributes: Target: Android 2.3.3 SD card: 120 MiB Skin: Built In WVGA800 Hardware: Abstracted LCD Density 240. (This was a default, no idea what it is) Number of emulated web cameras : 1 Max VM application heap: 24 (another default) Camera Support: yes Device Ram Size: 256 (another default) Touch Support: yes To me this looks like an HTC inspire, I would appreciate any comment or advice to the contrary. Now when I run the simulator, everything seems to operate except for the camera. I only see a white screen. This would lead me to believe that I have a simulator set up issue. Now for the really strange part. This app works as expected on my mac. When I load my app in the simulator I get really strange behavior. My app has a square of graphics that do not move but I only change the background color of them as you cycle thru a series of memory resident color pallets by forward and backward buttons. The squares are not taking on any color, and I notice the some the text making up the label of the color pallet is not being displayed. When I load the app on the device it is matching the behavior of on the simulator. So I must not be building the app property. My standalone settings: I have a library stack that contains some image resizing functions so in the stacks section It has been added, the main stack is present along with the MobGUI stack. I included the library stack in the copy files section. Android tab: Build for android, Minimum 2.3.3 Sign for development only Allow external storage Camera required Application permissions: Camera checked. Anyone have an idea what is not set up properly? Regards, Mike From ambassador at fourthworld.com Thu Jan 26 11:07:31 2012 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 26 Jan 2012 08:07:31 -0800 Subject: SoCal LUG meeting: Feb 2 Message-ID: <4F217A43.1080909@fourthworld.com> The next SoCal LUG meeting will be one week from today: Where: Burger Continental, back room 535 S. Lake Avenue Pasadena CA 91101 http://www.burgercontinentalpasadena.com/home.html When: Thursday, February 2 7:00PM Since the meeting falls on Groundhog Day I've proposed we use that as a theme for this one - details in the group's forum: -- 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 livfoss at mac.com Thu Jan 26 12:18:00 2012 From: livfoss at mac.com (Graham Samuel) Date: Thu, 26 Jan 2012 18:18:00 +0100 Subject: Does 'export image to file' give any warnings? Message-ID: I'm using 'export image' to put an image into a file without invoking a 'save' dialog - this is what my user wants. However, I can't see any obvious way of knowing that the new image has the same name has an existing one and would therefore overwrite it. I set up a button that does on mouseUp put the defaultFolder into temp export img "ThePic"to URL ("binfile:" & temp &"/meagain.jpg") as JPEG put "it= " &&"; result="&&(the result) end mouseUp However may times I do this, I always get the file "meagain.jpg" with no indication of any difference between the first and subsequent invocations. Obviously I can search the directory myself to look for the recurrence of the file name, and I guess that's what I'm going to do,but I wondered if anyone knows if this form of statement in LC produces any kind of error message and if so, how one can detect it. After all, any kind of 'write file' operation can fail. TIA Graham From kray at sonsothunder.com Thu Jan 26 12:34:10 2012 From: kray at sonsothunder.com (Ken Ray) Date: Thu, 26 Jan 2012 11:34:10 -0600 Subject: Does 'export image to file' give any warnings? In-Reply-To: References: Message-ID: <157C5AC6-5BC3-4D27-AF5C-4470BB6D35C4@sonsothunder.com> On Jan 26, 2012, at 11:18 AM, Graham Samuel wrote: > I'm using 'export image' to put an image into a file without invoking a 'save' dialog - this is what my user wants. However, I can't see any obvious way of knowing that the new image has the same name has an existing one and would therefore overwrite it. I set up a button that does > > on mouseUp > put the defaultFolder into temp > export img "ThePic"to URL ("binfile:" & temp &"/meagain.jpg") as JPEG > put "it= " &&"; result="&&(the result) > end mouseUp Graham, test the existence of the file first before ou export: put temp & "/meagain.jpg" into tFile if there is not a file tFile then export img "ThePic to URL theFile as JPEG else -- do something else end if Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From kray at sonsothunder.com Thu Jan 26 12:36:26 2012 From: kray at sonsothunder.com (Ken Ray) Date: Thu, 26 Jan 2012 11:36:26 -0600 Subject: How to store some data in my stack In-Reply-To: <4F20DCD7.90006@hyperactivesw.com> References: <22564CFD-D53D-42CE-B306-387085A74390@sys.wakayama-u.ac.jp> <3DD15C16-1467-419B-86E7-22369BE53369@major.on-rev.com> <80CF01D7-B073-45F4-A46E-0737DEF9C765@sys.wakayama-u.ac.jp> <4F20DCD7.90006@hyperactivesw.com> Message-ID: <6672A7D6-1571-4886-A387-0C64EAFDB1A5@sonsothunder.com> On Jan 25, 2012, at 10:55 PM, J. Landman Gay wrote: >>> put specialFolderPath(?documents?)& "/"& ?testFile.txt? into tFile >>> if there is a file tFile then >>> put URL("file:"& tFile) into fld "Data" >>> put the result into fld "msg" >>> else >>> answer "No file yet!" >>> end if >>> end mouseUp >> >> "no file yet!" is shown in an android. >> >> 'Write' function can't work, that is, >> put fld "Data" into URL("file:"& specialFolderPath(?documents?)& "/"& ?testFile.txt?) >> is not working on an android. Are you *really* using curly quotes around "documents" and "testFile.txt"? The only reason I ask is that you have straight quotes around "Data" and "no file yet!", so I figured I'd check. If so, that might be the problem (although I'd think you'd get an error dialog first, but)? Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From guglielmo at braguglia.ch Thu Jan 26 12:36:58 2012 From: guglielmo at braguglia.ch (gpb01) Date: Thu, 26 Jan 2012 09:36:58 -0800 (PST) Subject: Does 'export image to file' give any warnings? In-Reply-To: References: Message-ID: <1327599418082-4331120.post@n4.nabble.com> Graham Samuel-4 wrote > > I'm using 'export image' to put an image into a file without invoking a > 'save' dialog - this is what my user wants. However, I can't see any > obvious way of knowing that the new image has the same name has an > existing one and would therefore overwrite it. I set up a button that does > > on mouseUp > put the defaultFolder into temp > export img "ThePic"to URL ("binfile:" & temp &"/meagain.jpg") as JPEG > put "it= " &&"; result="&&(the result) > end mouseUp > > However may times I do this, I always get the file "meagain.jpg" with no > indication of any difference between the first and subsequent invocations. > > Obviously I can search the directory myself to look for the recurrence of > the file name, and I guess that's what I'm going to do,but I wondered if > anyone knows if this form of statement in LC produces any kind of error > message and if so, how one can detect it. After all, any kind of 'write > file' operation can fail. > > TIA > > Graham > _______________________________________________ > use-livecode mailing list > use-livecode at .runrev > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > Hi Graham, perhaps I did not understand well your question, but why you don't test for the existence of the file before the export ? You can just use : if there is a file temp &"/meagain.jpg" then ... ... and decide what to do ... :) Guglielmo -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Does-export-image-to-file-give-any-warnings-tp4331049p4331120.html Sent from the Revolution - User mailing list archive at Nabble.com. From m.schonewille at economy-x-talk.com Thu Jan 26 12:37:20 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Thu, 26 Jan 2012 18:37:20 +0100 Subject: Scrollbars of option menu buttons Message-ID: <568DE560-88EA-4E81-878D-91371FBD9F2C@economy-x-talk.com> Hi, I just got a complaint about non-functional scrollbars of option menus. If the menuLines < number of lines of the text then a scrollbar appears but it is impossible to scroll. Does anyone else see 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 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za From capellan2000 at gmail.com Thu Jan 26 12:42:48 2012 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Thu, 26 Jan 2012 09:42:48 -0800 (PST) Subject: Android Programming API level and device compliance Message-ID: <1327599768115-4331139.post@n4.nabble.com> Hi All, Recently, looking at Android API Levels: http://developer.android.com/guide/appendix/api-levels.html I noticed that the minimal level needed for my application is Level 4, corresponding to Android 1.6 How I could learn about device compliance to these characteristics without buying the device in first place? Does exists a website that rate Android devices from a developer standpoint (not from a consumer viewpoint)? Thanks in advance! Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Android-Programming-API-level-and-device-compliance-tp4331139p4331139.html Sent from the Revolution - User mailing list archive at Nabble.com. From guglielmo at braguglia.ch Thu Jan 26 12:48:50 2012 From: guglielmo at braguglia.ch (Guglielmo Braguglia) Date: Thu, 26 Jan 2012 18:48:50 +0100 Subject: Scrollbars of option menu buttons In-Reply-To: <568DE560-88EA-4E81-878D-91371FBD9F2C@economy-x-talk.com> References: <568DE560-88EA-4E81-878D-91371FBD9F2C@economy-x-talk.com> Message-ID: <4F219202.8030305@braguglia.ch> Because is my complaint ... ... I want just to add that this happen with the 'Installer Maker Plugin', on the language selection menu, on Win 7 64 bit and *NOT *on OS X, both running LiveCode 5.0.2 Regards, Guglielmo On 26.01.2012 18:37, Mark Schonewille wrote: > Hi, > > I just got a complaint about non-functional scrollbars of option menus. If the menuLines< number of lines of the text then a scrollbar appears but it is impossible to scroll. Does anyone else see 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 > > Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jan 26 12:52:23 2012 From: bobs at twft.com (Bob Sneidar) Date: Thu, 26 Jan 2012 09:52:23 -0800 Subject: Forbidden data in a Data Grid? In-Reply-To: <022DE6D1-4020-41F3-A633-7899FF20BF39@aol.com> References: <2BD51DFF-544D-4998-83D8-7324F3C6743C@aol.com> <022DE6D1-4020-41F3-A633-7899FF20BF39@aol.com> Message-ID: So might I suggest now is a great time to get away from using dgText? dgData (an array) is a much better way of accessing the data in a datagrid. If you can retrieve the data from your database as an array, then you only need to set the dgData of the datagrid to that array. The form will be a numbered key followed by the column name. Note this is not the column label, but the actual column name. I set up my datagrid content dynamically. What I do is I get a list of the columns from the table first. SHOW COLUMNS . The first column will be the column names. set the dgData to empty first (or you will get an error on the next step) Next delete the column names that you do not want displayed from your list of columns. Then set the dgProp["columns"] to your list of columns. (Also dgprop["column labels"] and dgProp["column widths"] if you like because those will get reset when you set the dgProp["columns"]). Then set the dgData to an array of the data from your query. Note that only the columns whose names match the ones in your datagrid will be displayed. You can use this to your advantage. Perhaps you only want to present a subset of the table columns. The datagrid can still contain all of them, effectively making the datagrid a kind of writeable pseudo-cursor complete with the unique key needed in an update where clause. So rather than lots of queries as the user interacts with the form, you can do one large query, and work with the data locally. Also (and forgive me if I keep pressing the point) but sqlYoga is a GREAT tool for doing this sort of thing. Once you set up a database object and connection, you can ask sqlYoga for all kinds of things, like a list of columns for a table, or query data as text, records, a cursor or as an array. Data is automagically escaped so you do not have to worry about that. All the gotchas of working with SQL are handled for you. It's worth every penny I think. And the arrays it returns from queries can go right into your datagrids! Bob On Jan 25, 2012, at 8:46 PM, Paul Looney wrote: > Bob, > Thank you. > That was very helpful. The only key that had data was the record ID - explains why clicking on a line still opened the record viewer but nothing else was visible. > Looking deeper. > PL > > On Jan 25, 2012, at 5:36 PM, Bob Sneidar wrote: > >> put the dgData of group "" into theDataA >> put printKeys(theDataA) > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jan 26 12:53:09 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Thu, 26 Jan 2012 18:53:09 +0100 Subject: Scrollbars of option menu buttons In-Reply-To: <4F219202.8030305@braguglia.ch> References: <568DE560-88EA-4E81-878D-91371FBD9F2C@economy-x-talk.com> <4F219202.8030305@braguglia.ch> Message-ID: Hi Guglielmo, I tested it with a new stack on XP and got the same results. Therefore, I'm now asking for confirmation on the list. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 26 jan 2012, at 18:48, Guglielmo Braguglia wrote: > Because is my complaint ... > ... I want just to add that this happen with the 'Installer Maker Plugin', on the language selection menu, on Win 7 64 bit and *NOT *on OS X, both running LiveCode 5.0.2 > > Regards, > > Guglielmo > From stephenREVOLUTION2 at barncard.com Thu Jan 26 12:57:08 2012 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Thu, 26 Jan 2012 09:57:08 -0800 Subject: HTML5 VIDEO/AUDIO REPORT FROM LONGTAIL (JWPLAYER) Message-ID: This new report from Longtail , the developers of the HTML5 video and audio player, summarized the state of HTML5 media today. THE STATE OF HTML5 VIDEO It's quite complete, with many example test cases. Really well done. I've experimented with almost every video/audio player out there, and keep coming back to the JWPlayer for web media. I love Vimeo's quality of streaming and their player, but still would rather host it myself for now. -- Stephen Barncard San Francisco Ca. USA more about sqb From pete at mollysrevenge.com Thu Jan 26 13:01:27 2012 From: pete at mollysrevenge.com (Pete) Date: Thu, 26 Jan 2012 10:01:27 -0800 Subject: A few strange behaviors accessing DBs Message-ID: Thought I would pass on a few weirdnesses I've come across recently while accessing databases from LC. Some of these are outside the day-to-day db access sphere but may be of interest to anyone developing db tools with LC. I came across all these while accessing SQLite databases. The revDatabaseTableNames function returns a list of all the table names in a database. Unfortunately, it also includes the names of any views defined in the database with no indication as to which are tables and which are views. IMHO, this is incorrect, especially since the documentation is silent on it. If I ask for table names, I want table names not view names. I've written my own handler to return a list of table names to get round this issue. Next issue concerns the use of the special column name "rowid". Calling revQueryDatabase with a SELECT statement that includes rowid as a column to be returned creates a db cursor, no problem. However, if I then call revDatabaseColumnNames to get a list of the columns in the cursor, rowid is not in the list. Instead, it is replaced by the name of the primary key field of the table being queried. This in turn causes an error to be returned if I call revDatabaseColumnNamed, requesting the value of the rowid column. "rowid" is sometimes a synonym for the primary key column of a table but not always. Even when it is a synonym, I don't believe LC should return a column name that wasn't in the SELECT statement that created the cursor. The final problem involves the use of revDatabaseColumnNamed, which returns the value of a named column from the current row in a cursor. The dictionary says you can include a variable or an array element parameter in the call to this function and the returned value will be placed into the specified variable/array element. What it doesn't mention is that the variable/array must already exist in order for this to work. If it doesn't, the variable/array is not created and no error is reported. Not a big deal as long as you know about it. Second problem concerns the use of multilevel array keys. Assuming myArray exists and I specify "myArray[1][id]" as the destination for the returned data, what ends up in myArray is a key of "1][id" with the returned value. Arrays with a single level of keys work fine. As mentioned, these are pretty esoteric situations but wanted to pass them on in the hope that it might save someone some debugging time. -- Pete Molly's Revenge From jacque at hyperactivesw.com Thu Jan 26 13:03:06 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 26 Jan 2012 12:03:06 -0600 Subject: Android Programming API level and device compliance In-Reply-To: <1327599768115-4331139.post@n4.nabble.com> References: <1327599768115-4331139.post@n4.nabble.com> Message-ID: <4F21955A.5010900@hyperactivesw.com> On 1/26/12 11:42 AM, Alejandro Tejada wrote: > Hi All, > > Recently, looking at Android API Levels: > http://developer.android.com/guide/appendix/api-levels.html > I noticed that the minimal level needed > for my application is Level 4, corresponding > to Android 1.6 > > How I could learn about device compliance > to these characteristics without buying the > device in first place? > > Does exists a website that rate Android devices > from a developer standpoint (not from a consumer > viewpoint)? It doesn't exactly say what Android levels are supported, but there is a good comparison chart on Wikipedia that tells the OS version and other info about lots of devices: You could probably figure out the levels using this chart. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at mollysrevenge.com Thu Jan 26 13:05:17 2012 From: pete at mollysrevenge.com (Pete) Date: Thu, 26 Jan 2012 10:05:17 -0800 Subject: Scrollbars of option menu buttons In-Reply-To: <568DE560-88EA-4E81-878D-91371FBD9F2C@economy-x-talk.com> References: <568DE560-88EA-4E81-878D-91371FBD9F2C@economy-x-talk.com> Message-ID: Hi Mark, Option menus don't have scrollbars do they? At least not on OS X) Do you mean comboboxes? If so, all works fine for me (on OS X). Pete On Thu, Jan 26, 2012 at 9:37 AM, Mark Schonewille < m.schonewille at economy-x-talk.com> wrote: > Hi, > > I just got a complaint about non-functional scrollbars of option menus. If > the menuLines < number of lines of the text then a scrollbar appears but it > is impossible to scroll. Does anyone else see 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 > > Download the Installer Maker Plugin 1.7 for LiveCode here > http://qery.us/za > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Jan 26 13:08:12 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Thu, 26 Jan 2012 19:08:12 +0100 Subject: Scrollbars of option menu buttons In-Reply-To: References: <568DE560-88EA-4E81-878D-91371FBD9F2C@economy-x-talk.com> Message-ID: He Pete, we're talking Windows here. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 26 jan 2012, at 19:05, Pete wrote: > Hi Mark, > Option menus don't have scrollbars do they? At least not on OS X) Do you > mean comboboxes? If so, all works fine for me (on OS X). > Pete > From pete at mollysrevenge.com Thu Jan 26 13:24:51 2012 From: pete at mollysrevenge.com (Pete) Date: Thu, 26 Jan 2012 10:24:51 -0800 Subject: Scrollbars of option menu buttons In-Reply-To: References: <568DE560-88EA-4E81-878D-91371FBD9F2C@economy-x-talk.com> Message-ID: OK, might still be able to try it, just got a Windows box for testing. Pete On Thu, Jan 26, 2012 at 10:08 AM, Mark Schonewille < m.schonewille at economy-x-talk.com> wrote: > He Pete, we're talking Windows here. > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > Download the Installer Maker Plugin 1.7 for LiveCode here > http://qery.us/za > > On 26 jan 2012, at 19:05, Pete wrote: > > > Hi Mark, > > Option menus don't have scrollbars do they? At least not on OS X) Do you > > mean comboboxes? If so, all works fine for me (on OS X). > > Pete > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 bobs at twft.com Thu Jan 26 14:08:53 2012 From: bobs at twft.com (Bob Sneidar) Date: Thu, 26 Jan 2012 11:08:53 -0800 Subject: dgText vs. dgData Message-ID: <56C492B0-77E0-454D-A2CD-7BE86FB71FF7@twft.com> Hi all. Here is an interesting twist on the issue of whether or not to use dgText or dgData when working with datagrids. dgText will only give you the DISPLAYED data in the datagrid as text. The dgData will give you ALL the data in the datagrid as an array, INCLUDING the columns that are NOT being displayed. Another good argument for using dgData wherever you can. Now what we need is an update to the filter command so that it works on arrays! Bob From bobs at twft.com Thu Jan 26 14:12:03 2012 From: bobs at twft.com (Bob Sneidar) Date: Thu, 26 Jan 2012 11:12:03 -0800 Subject: A few strange behaviors accessing DBs In-Reply-To: References: Message-ID: <04662D84-C2BA-47EE-8317-50018C16231B@twft.com> Shouldn't you quote the non-numeric keys? myArray[1]["id"] Bob On Jan 26, 2012, at 10:01 AM, Pete wrote: > Assuming myArray exists and I specify > "myArray[1][id]" as the destination for the returned data, what ends up in > myArray is a key of "1][id" with the returned value. Arrays with a single > level of keys work fine. From m.schonewille at economy-x-talk.com Thu Jan 26 14:12:33 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Thu, 26 Jan 2012 20:12:33 +0100 Subject: A few strange behaviors accessing DBs In-Reply-To: References: Message-ID: <80E0B87D-328A-44A3-9301-767C4EEFE3A0@economy-x-talk.com> Hi Pete, I believe all those separate database-related functions are just confusing and shouldn't exist in the first place. One simple command to execute all MySQL commands should me sufficient. There is no reason why there would be any distinction between revExecuteSQL and revDatabaseQuery for example. I do all my SQL in PHP and connect from LiveCode to PHP. Saves me quite a few headaches. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 26 jan 2012, at 19:01, Pete wrote: > Thought I would pass on a few weirdnesses I've come across recently while > accessing databases from LC. Some of these are outside the day-to-day db > access sphere but may be of interest to anyone developing db tools with LC. > I came across all these while accessing SQLite databases. > > The revDatabaseTableNames function returns a list of all the table names in > a database. Unfortunately, it also includes the names of any views defined > in the database with no indication as to which are tables and which are > views. IMHO, this is incorrect, especially since the documentation is > silent on it. If I ask for table names, I want table names not view names. > I've written my own handler to return a list of table names to get round > this issue. > > Next issue concerns the use of the special column name "rowid". Calling > revQueryDatabase with a SELECT statement that includes rowid as a column to > be returned creates a db cursor, no problem. However, if I then call > revDatabaseColumnNames to get a list of the columns in the cursor, rowid is > not in the list. Instead, it is replaced by the name of the primary key > field of the table being queried. This in turn causes an error to be > returned if I call revDatabaseColumnNamed, requesting the value of the > rowid column. "rowid" is sometimes a synonym for the primary key column of > a table but not always. Even when it is a synonym, I don't believe LC > should return a column name that wasn't in the SELECT statement that > created the cursor. > > The final problem involves the use of revDatabaseColumnNamed, which returns > the value of a named column from the current row in a cursor. The > dictionary says you can include a variable or an array element parameter > in the call to this function and the returned value will be placed into the > specified variable/array element. What it doesn't mention is that the > variable/array must already exist in order for this to work. If it > doesn't, the variable/array is not created and no error is reported. Not a > big deal as long as you know about it. Second problem concerns the use of > multilevel array keys. Assuming myArray exists and I specify > "myArray[1][id]" as the destination for the returned data, what ends up in > myArray is a key of "1][id" with the returned value. Arrays with a single > level of keys work fine. > > As mentioned, these are pretty esoteric situations but wanted to pass them > on in the hope that it might save someone some debugging time. > > > -- > Pete > Molly's Revenge From capellan2000 at gmail.com Thu Jan 26 14:37:31 2012 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Thu, 26 Jan 2012 11:37:31 -0800 (PST) Subject: Android Programming API level and device compliance In-Reply-To: <4F21955A.5010900@hyperactivesw.com> References: <1327599768115-4331139.post@n4.nabble.com> <4F21955A.5010900@hyperactivesw.com> Message-ID: <1327606651044-4331552.post@n4.nabble.com> Hi Jacke, J. Landman Gay wrote > > It doesn't exactly say what Android levels are supported, but there is a > good comparison chart on Wikipedia that tells the OS version and other > info about lots of devices: > > <https://en.wikipedia.org/wiki/Comparison_of_Android_devices> > > You could probably figure out the levels using this chart. > Really useful!!! Many Thanks. :-D Now, I only need a website that review these devices from a developer point of view. Have a nice day! Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Android-Programming-API-level-and-device-compliance-tp4331139p4331552.html Sent from the Revolution - User mailing list archive at Nabble.com. From stephenREVOLUTION2 at barncard.com Thu Jan 26 14:42:16 2012 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Thu, 26 Jan 2012 11:42:16 -0800 Subject: HTML5 REPORT Message-ID: (please forget the double post if it appears, but I didn't see this delivered to the list) This new report from Longtail , the developers of the HTML5 video and audio player, summarized the state of HTML5 media today. THE STATE OF HTML5 VIDEO It's quite complete, with many example test cases. Really well done. I've experimented with almost every video/audio player out there, and keep coming back to the JWPlayer for web media. I love Vimeo's quality of streaming and their player, but still would rather host it myself for now. -- Stephen Barncard San Francisco Ca. USA more about sqb From andre at andregarzia.com Thu Jan 26 14:56:47 2012 From: andre at andregarzia.com (Andre Garzia) Date: Thu, 26 Jan 2012 17:56:47 -0200 Subject: HTML5 REPORT In-Reply-To: References: Message-ID: Stephen, I am partial of mediaelementjs... check it out at: I used JW Player for a long time, I switched to MediaElementJS and never looked back. http://mediaelementjs.com/ =) On Thu, Jan 26, 2012 at 5:42 PM, stephen barncard wrote: > (please forget the double post if it appears, but I didn't see this > delivered to the list) > > This new report from Longtail , the developers of the HTML5 video and audio > player, summarized the state of HTML5 media today. > > THE STATE OF HTML5 VIDEO > > It's quite complete, with many example test cases. Really well done. > > I've experimented with almost every video/audio player out there, and keep > coming ?back to the JWPlayer for web media. > I love Vimeo's quality of streaming and their player, but still would > rather host it myself for now. > > > -- > > > > 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 -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. From bobs at twft.com Thu Jan 26 15:04:29 2012 From: bobs at twft.com (Bob Sneidar) Date: Thu, 26 Jan 2012 12:04:29 -0800 Subject: Persistent Variables during recursion Message-ID: <894A2CFC-C611-4ED9-8A26-6514C5945A47@twft.com> Hi all. This is my first foray into recursive functions. There are two variables I would like to be persistent for as long as the script is running, but I want them to be empty the first time I call the recursive function. I have tried declaring the variables as local, but each time the function calls itself, the variables are wiped as though a new set is made. If I declare them as global, then of course the value persists even after the last recursion terminates. The function has no idea if it is the first time through or one of the iterations. Any idea how to get around this? Bob From stephenREVOLUTION2 at barncard.com Thu Jan 26 15:15:15 2012 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Thu, 26 Jan 2012 12:15:15 -0800 Subject: HTML5 REPORT In-Reply-To: References: Message-ID: one might check the report anyway, valuable no matter what you use. cop their links and test your favorite. (if they've done their crossdomain.xml) On 26 January 2012 11:56, Andre Garzia wrote: > Stephen, > > I am partial of mediaelementjs... check it out at: > > I used JW Player for a long time, I switched to MediaElementJS and > never looked back. > > http://mediaelementjs.com/ > > =) > > On Thu, Jan 26, 2012 at 5:42 PM, stephen barncard > wrote: > > (please forget the double post if it appears, but I didn't see this > > delivered to the list) > > > > This new report from Longtail , the developers of the HTML5 video and > audio > > player, summarized the state of HTML5 media today. > > > > THE STATE OF HTML5 VIDEO > > > > It's quite complete, with many example test cases. Really well done. > > > > I've experimented with almost every video/audio player out there, and > keep > > coming back to the JWPlayer for web media. > > I love Vimeo's quality of streaming and their player, but still would > > rather host it myself for now. > > > > > > -- > > > > > > > > Stephen Barncard > > San Francisco Ca. USA > Stephen Barncard San Francisco Ca. USA more about sqb From john at splash21.com Thu Jan 26 15:34:31 2012 From: john at splash21.com (John Craig) Date: Thu, 26 Jan 2012 20:34:31 +0000 Subject: Persistent Variables during recursion In-Reply-To: <894A2CFC-C611-4ED9-8A26-6514C5945A47@twft.com> References: <894A2CFC-C611-4ED9-8A26-6514C5945A47@twft.com> Message-ID: <4F21B8D7.1000700@splash21.com> Hi, Bob. Here's one way of doing it. In the first call, pIndex is empty, so some initialization is performed. The parameters are all passed with each recursive call, but pSame is always the same value. HTH :) on mouseUp test "12345", 1, 99 end mouseUp command test pData, pChange, pSame, pIndex if pIndex is not an integer then put 1 into tpIndex put "first time" & LF into msg end if put char pIndex of pData after pData put pIndex ^ 2 into pChange add 1 to pIndex put pData & ", " & pChange & ", " & pSame & ", " & pIndex & LF after msg if length(pData) < 10 then test pData, pChange, pSame, pIndex end if end test On 26/01/2012 20:04, Bob Sneidar wrote: > Hi all. This is my first foray into recursive functions. There are two variables I would like to be persistent for as long as the script is running, but I want them to be empty the first time I call the recursive function. I have tried declaring the variables as local, but each time the function calls itself, the variables are wiped as though a new set is made. If I declare them as global, then of course the value persists even after the last recursion terminates. The function has no idea if it is the first time through or one of the iterations. Any idea how to get around this? > > 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 Thu Jan 26 15:43:02 2012 From: pete at mollysrevenge.com (Pete) Date: Thu, 26 Jan 2012 12:43:02 -0800 Subject: dgText vs. dgData In-Reply-To: <56C492B0-77E0-454D-A2CD-7BE86FB71FF7@twft.com> References: <56C492B0-77E0-454D-A2CD-7BE86FB71FF7@twft.com> Message-ID: Not sure what you mean by "displayed", but f you mean columns that are not hidden, that's not my experience - I see hidden columns and all rows in dgText. Pete On Thu, Jan 26, 2012 at 11:08 AM, Bob Sneidar wrote: > Hi all. Here is an interesting twist on the issue of whether or not to use > dgText or dgData when working with datagrids. dgText will only give you the > DISPLAYED data in the datagrid as text. The dgData will give you ALL the > data in the datagrid as an array, INCLUDING the columns that are NOT being > displayed. Another good argument for using dgData wherever you can. > > Now what we need is an update to the filter command so that it works on > arrays! > > 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 > > -- Pete Molly's Revenge From pete at mollysrevenge.com Thu Jan 26 15:44:21 2012 From: pete at mollysrevenge.com (Pete) Date: Thu, 26 Jan 2012 12:44:21 -0800 Subject: A few strange behaviors accessing DBs In-Reply-To: <04662D84-C2BA-47EE-8317-50018C16231B@twft.com> References: <04662D84-C2BA-47EE-8317-50018C16231B@twft.com> Message-ID: Normally yes, but the that function requires you to enclose the whole variable name in quotes. On Thu, Jan 26, 2012 at 11:12 AM, Bob Sneidar wrote: > Shouldn't you quote the non-numeric keys? myArray[1]["id"] > > Bob > > > On Jan 26, 2012, at 10:01 AM, Pete wrote: > > > Assuming myArray exists and I specify > > "myArray[1][id]" as the destination for the returned data, what ends up > in > > myArray is a key of "1][id" with the returned value. Arrays with a > single > > level of keys work fine. > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 pete at mollysrevenge.com Thu Jan 26 15:50:07 2012 From: pete at mollysrevenge.com (Pete) Date: Thu, 26 Jan 2012 12:50:07 -0800 Subject: Persistent Variables during recursion In-Reply-To: <894A2CFC-C611-4ED9-8A26-6514C5945A47@twft.com> References: <894A2CFC-C611-4ED9-8A26-6514C5945A47@twft.com> Message-ID: You need to pass the persistent variables as parameters to the recursive function. When you call the function for the first time, just make sure the variables are empty, then when you call it from within itself, they'll get passed with whatever the values are at the time of the call. Pete On Thu, Jan 26, 2012 at 12:04 PM, Bob Sneidar wrote: > Hi all. This is my first foray into recursive functions. There are two > variables I would like to be persistent for as long as the script is > running, but I want them to be empty the first time I call the recursive > function. I have tried declaring the variables as local, but each time the > function calls itself, the variables are wiped as though a new set is made. > If I declare them as global, then of course the value persists even after > the last recursion terminates. The function has no idea if it is the first > time through or one of the iterations. Any idea how to get around this? > > 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 > > -- Pete Molly's Revenge From alex at tweedly.net Thu Jan 26 15:51:23 2012 From: alex at tweedly.net (Alex Tweedly) Date: Thu, 26 Jan 2012 20:51:23 +0000 Subject: Persistent Variables during recursion In-Reply-To: <894A2CFC-C611-4ED9-8A26-6514C5945A47@twft.com> References: <894A2CFC-C611-4ED9-8A26-6514C5945A47@twft.com> Message-ID: <4F21BCCB.8060506@tweedly.net> Easiest way I know is to have - your variables be either global or script-local - add an additional parameter, used only for recursive calls. so for the public interface, used from anywhere else, you do something like put myFunction(a,b,c) into myVar but within the function itself, you do something like > function myFunction pA, pB, pC, pRecursive > if pRecursive is empty or pRecursive is false then > put empty into sVar1 > put empty into gVar2 > end if > > put myFunction(mya, myb, myc, TRUE) into myVar > > end myFunction > Of course, you can do more interesting things like > if pRecursive is empty then > put 0 into pRecursive > end if > put myFunction(a,b,c,pRecursive+1) into mVar and then you also know how deeply you are nested (perhaps to give a more graceful recovery than "recursion limit exceeded" if something is going wrong ...) -- Alex. On 26/01/2012 20:04, Bob Sneidar wrote: > Hi all. This is my first foray into recursive functions. There are two variables I would like to be persistent for as long as the script is running, but I want them to be empty the first time I call the recursive function. I have tried declaring the variables as local, but each time the function calls itself, the variables are wiped as though a new set is made. If I declare them as global, then of course the value persists even after the last recursion terminates. The function has no idea if it is the first time through or one of the iterations. Any idea how to get around this? > > 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 bobs at twft.com Thu Jan 26 17:03:29 2012 From: bobs at twft.com (Bob Sneidar) Date: Thu, 26 Jan 2012 14:03:29 -0800 Subject: dgText vs. dgData In-Reply-To: References: <56C492B0-77E0-454D-A2CD-7BE86FB71FF7@twft.com> Message-ID: <65D8A9D4-23E9-4E16-B021-93B626B65EA6@twft.com> Odd then that this command: on datavstext put the dgText["true"] of group "dgTableData" into theResult put cr & "-----" & cr after theResult put the dgData of group "dgTableData" into theDataA put printKeys(theDataA) after theResult put theResult end datavstext should return this result: reservationid building roomnumber startdate enddate amount clientid clientname 1 Harmony 403 2012-01-12 2012-01-15 0 0 2 Harmony 404 2012-01-14 2012-01-15 0 0 ----- 1 conferencename: amount: 0 enddate: 2012-01-15 conferenceid: 0 siteid: 2 baseunit: day uniqueid: 8 clientid: 0 starttime: 4:00 PM baseprice: 0 building: Harmony clientname: discount: 0 roomid: 49 rnotes: startdate: 2012-01-12 endtime: 10:00 AM roomnumber: 403 reservationid: 1 quantity: 1 2 conferencename: amount: 0 enddate: 2012-01-15 conferenceid: siteid: 2 baseunit: day uniqueid: 9 clientid: 0 starttime: 4:00 PM baseprice: 0 building: Harmony clientname: discount: 0 roomid: 50 rnotes: startdate: 2012-01-14 endtime: 10:00 AM roomnumber: 404 reservationid: 2 quantity: 1 Bob On Jan 26, 2012, at 12:43 PM, Pete wrote: > Not sure what you mean by "displayed", but f you mean columns that are not > hidden, that's not my experience - I see hidden columns and all rows in > dgText. > Pete > > On Thu, Jan 26, 2012 at 11:08 AM, Bob Sneidar wrote: > >> Hi all. Here is an interesting twist on the issue of whether or not to use >> dgText or dgData when working with datagrids. dgText will only give you the >> DISPLAYED data in the datagrid as text. The dgData will give you ALL the >> data in the datagrid as an array, INCLUDING the columns that are NOT being >> displayed. Another good argument for using dgData wherever you can. >> >> Now what we need is an update to the filter command so that it works on >> arrays! >> >> 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 >> >> > > > -- > 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 bobs at twft.com Thu Jan 26 17:06:00 2012 From: bobs at twft.com (Bob Sneidar) Date: Thu, 26 Jan 2012 14:06:00 -0800 Subject: Persistent Variables during recursion In-Reply-To: <4F21B8D7.1000700@splash21.com> References: <894A2CFC-C611-4ED9-8A26-6514C5945A47@twft.com> <4F21B8D7.1000700@splash21.com> Message-ID: Thanks John I just had figured out that the way to do it was to pass the values as arguments in the recursion. Bob On Jan 26, 2012, at 12:34 PM, John Craig wrote: > Hi, Bob. Here's one way of doing it. In the first call, pIndex is empty, so some initialization is performed. The parameters are all passed with each recursive call, but pSame is always the same value. > > HTH > > > :) > > > > on mouseUp > test "12345", 1, 99 > end mouseUp > > > command test pData, pChange, pSame, pIndex > if pIndex is not an integer then > put 1 into tpIndex > put "first time" & LF into msg > end if > > put char pIndex of pData after pData > put pIndex ^ 2 into pChange > add 1 to pIndex > > put pData & ", " & pChange & ", " & pSame & ", " & pIndex & LF after msg > > if length(pData) < 10 then > test pData, pChange, pSame, pIndex > end if > end test > > > On 26/01/2012 20:04, Bob Sneidar wrote: >> Hi all. This is my first foray into recursive functions. There are two variables I would like to be persistent for as long as the script is running, but I want them to be empty the first time I call the recursive function. I have tried declaring the variables as local, but each time the function calls itself, the variables are wiped as though a new set is made. If I declare them as global, then of course the value persists even after the last recursion terminates. The function has no idea if it is the first time through or one of the iterations. Any idea how to get around this? >> >> 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 livfoss at mac.com Thu Jan 26 17:13:26 2012 From: livfoss at mac.com (Graham Samuel) Date: Thu, 26 Jan 2012 23:13:26 +0100 Subject: Trouble with 'there is a' Message-ID: <3313C6DB-B416-409D-A29C-42BF3082A078@mac.com> I'm using LS 5.0.2. on Windows XP (OK, running under Parallels on a Mac). I'm getting unexpected results from the 'there is..' series of functions/commands - the dictionary says they're implemented as functions, which I can understand. As a very simple test, in the message box I put: put (if there is a folder (the defaultFolder)) expecting to get 'true'. Instead I get the totally unexpected result: 161,426,1,return (if there is a folder (the defaultFolder)) I suppose it's my fault, but what does this mean? Just to be clear, 'the default folder' does have a value - it's: C:/Program Files/RunRev/LiveCode 5.0.2 Puzzled Graham From devin_asay at byu.edu Thu Jan 26 17:15:59 2012 From: devin_asay at byu.edu (Devin Asay) Date: Thu, 26 Jan 2012 22:15:59 +0000 Subject: Trouble with 'there is a' In-Reply-To: <3313C6DB-B416-409D-A29C-42BF3082A078@mac.com> References: <3313C6DB-B416-409D-A29C-42BF3082A078@mac.com> Message-ID: Graham, The problem is you're embedding a partial 'if' structure in your statement. Leave out the 'if': put (there is a folder (the defaultFolder)) HTH Devin On Jan 26, 2012, at 3:13 PM, Graham Samuel wrote: > I'm using LS 5.0.2. on Windows XP (OK, running under Parallels on a Mac). I'm getting unexpected results from the 'there is..' series of functions/commands - the dictionary says they're implemented as functions, which I can understand. > > As a very simple test, in the message box I put: > > put (if there is a folder (the defaultFolder)) > > expecting to get 'true'. Instead I get the totally unexpected result: > > 161,426,1,return (if there is a folder (the defaultFolder)) > > I suppose it's my fault, but what does this mean? Just to be clear, 'the default folder' does have a value - it's: > > C:/Program Files/RunRev/LiveCode 5.0.2 > > Puzzled > > Graham > > _______________________________________________ > use-livecode mailing list > use-livecode 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 m.schonewille at economy-x-talk.com Thu Jan 26 17:19:36 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Thu, 26 Jan 2012 23:19:36 +0100 Subject: Trouble with 'there is a' In-Reply-To: <3313C6DB-B416-409D-A29C-42BF3082A078@mac.com> References: <3313C6DB-B416-409D-A29C-42BF3082A078@mac.com> Message-ID: Hi Graham, 161 means "error in source expression". Probably, it is saying that "if there is a folder (the defaultFolder)" can't be parsed into something that makes sense, which is correct because it is only the first part of an if-then-else control structure. If you remove the "if" then LiveCode can parse the string to true or false. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 26 jan 2012, at 23:13, Graham Samuel wrote: > I'm using LS 5.0.2. on Windows XP (OK, running under Parallels on a Mac). I'm getting unexpected results from the 'there is..' series of functions/commands - the dictionary says they're implemented as functions, which I can understand. > > As a very simple test, in the message box I put: > > put (if there is a folder (the defaultFolder)) > > expecting to get 'true'. Instead I get the totally unexpected result: > > 161,426,1,return (if there is a folder (the defaultFolder)) > > I suppose it's my fault, but what does this mean? Just to be clear, 'the default folder' does have a value - it's: > > C:/Program Files/RunRev/LiveCode 5.0.2 > > Puzzled > > Graham From bobs at twft.com Thu Jan 26 17:20:11 2012 From: bobs at twft.com (Bob Sneidar) Date: Thu, 26 Jan 2012 14:20:11 -0800 Subject: Alternate Form of printKeys() Message-ID: Hi all. I just wrote an alternate form of printKeys which some may find useful. Normally printKeys returns data in this form: 1 conferencename: amount: 0 enddate: 2012-01-15 conferenceid: 0 siteid: 2 baseunit: day uniqueid: 8 clientid: 0 starttime: 4:00 PM baseprice: 0 building: Harmony clientname: discount: 0 roomid: 49 rnotes: startdate: 2012-01-12 endtime: 10:00 AM roomnumber: 403 reservationid: 1 quantity: 1 This makes it fairly impossible to use the filter command for records based upon certain values being present. My function returns the values in this form: [1] ["conferencename"] ,[1] ["amount"] 0,[1] ["enddate"] 2012-01-15,[1] ["conferenceid"] 0,[1] ["siteid"] 2,[1] ["baseunit"] day,[1] ["uniqueid"] 8,[1] ["clientid"] 0,[1] ["starttime"] 4:00 PM,[1] ["baseprice"] 0,[1] ["building"] Harmony,[1] ["clientname"] ,[1] ["discount"] 0,[1] ["roomid"] 49,[1] ["rnotes"] ,[1] ["startdate"] 2012-01-12,[1] ["endtime"] 10:00 AM,[1] ["roomnumber"] 403,[1] ["reservationid"] 1,[1] ["quantity"] 1 The beauty of this is if I had a lot of lines and only wanted data that had "2012-" in the line I could: filter theText with "*" & tab & "2012-" & "*" -- the tab is the value delimiter I can then convert the text back into an array using another function, and voila! A subset of the original array! If anyone is interested in this let me know, otherwise I won't waste bandwidth on it. It is mainly useful for doing filtering on datagrid data. Sure I could do the same thing with the dgText, but as I have mentioned before, I have columns of data that do not display in the datagrid, and dgText only returns the visible columns of text. I need to preserve the array structure. Bob From pete at mollysrevenge.com Thu Jan 26 17:24:31 2012 From: pete at mollysrevenge.com (Pete) Date: Thu, 26 Jan 2012 14:24:31 -0800 Subject: dgText vs. dgData In-Reply-To: <65D8A9D4-23E9-4E16-B021-93B626B65EA6@twft.com> References: <56C492B0-77E0-454D-A2CD-7BE86FB71FF7@twft.com> <65D8A9D4-23E9-4E16-B021-93B626B65EA6@twft.com> Message-ID: Yes, very odd. I get the same number of columns and the same data listed for dgtext and dgdata including all the hidden columns. Are the columns that don't turn up for you in dgtext hidden or have some different characteristic from those that do? I'm on LC 5.0.2 on a Mac. Pete On Thu, Jan 26, 2012 at 2:03 PM, Bob Sneidar wrote: > Odd then that this command: > > on datavstext > put the dgText["true"] of group "dgTableData" into theResult > put cr & "-----" & cr after theResult > put the dgData of group "dgTableData" into theDataA > put printKeys(theDataA) after theResult > put theResult > end datavstext > > should return this result: > > reservationid building roomnumber startdate enddate > amount clientid clientname > 1 Harmony 403 2012-01-12 2012-01-15 0 0 > 2 Harmony 404 2012-01-14 2012-01-15 0 0 > ----- > 1 > conferencename: > amount: 0 > enddate: 2012-01-15 > conferenceid: 0 > siteid: 2 > baseunit: day > uniqueid: 8 > clientid: 0 > starttime: 4:00 PM > baseprice: 0 > building: Harmony > clientname: > discount: 0 > roomid: 49 > rnotes: > startdate: 2012-01-12 > endtime: 10:00 AM > roomnumber: 403 > reservationid: 1 > quantity: 1 > 2 > conferencename: > amount: 0 > enddate: 2012-01-15 > conferenceid: > siteid: 2 > baseunit: day > uniqueid: 9 > clientid: 0 > starttime: 4:00 PM > baseprice: 0 > building: Harmony > clientname: > discount: 0 > roomid: 50 > rnotes: > startdate: 2012-01-14 > endtime: 10:00 AM > roomnumber: 404 > reservationid: 2 > quantity: 1 > > > Bob > > > On Jan 26, 2012, at 12:43 PM, Pete wrote: > > > Not sure what you mean by "displayed", but f you mean columns that are > not > > hidden, that's not my experience - I see hidden columns and all rows in > > dgText. > > Pete > > > > On Thu, Jan 26, 2012 at 11:08 AM, Bob Sneidar wrote: > > > >> Hi all. Here is an interesting twist on the issue of whether or not to > use > >> dgText or dgData when working with datagrids. dgText will only give you > the > >> DISPLAYED data in the datagrid as text. The dgData will give you ALL the > >> data in the datagrid as an array, INCLUDING the columns that are NOT > being > >> displayed. Another good argument for using dgData wherever you can. > >> > >> Now what we need is an update to the filter command so that it works on > >> arrays! > >> > >> 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 > >> > >> > > > > > > -- > > 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 pete at mollysrevenge.com Thu Jan 26 17:37:02 2012 From: pete at mollysrevenge.com (Pete) Date: Thu, 26 Jan 2012 14:37:02 -0800 Subject: Alternate Form of printKeys() In-Reply-To: References: Message-ID: Not disputing the usefullness of your routine or what you are seeing re dgtext/dgdata but that's NOT what I see in any of my datagrids - I see all columns in dgText not just hidden ones. If I didn't, my apps would fail disastrously. So let's try to figure out what's different between your situation and mine - LC version, OS, dg config , what else? On Thu, Jan 26, 2012 at 2:20 PM, Bob Sneidar wrote: > but as I have mentioned before, I have columns of data that do not display > in the datagrid, and dgText only returns the visible columns of text. -- Pete Molly's Revenge From bobs at twft.com Thu Jan 26 17:55:06 2012 From: bobs at twft.com (Bob Sneidar) Date: Thu, 26 Jan 2012 14:55:06 -0800 Subject: dgText vs. dgData In-Reply-To: References: <56C492B0-77E0-454D-A2CD-7BE86FB71FF7@twft.com> <65D8A9D4-23E9-4E16-B021-93B626B65EA6@twft.com> Message-ID: I think it is the way I go about it. I set the dgProps["column names"] to a subset of the actual columns. I don't actually hide a column (is that a property you can set for a datagrid column?) This has the distinct advantage of allowing me to keep much more data in the datagrid than I want or need to display, and yet I have that data handy when I need it. As I have mentioned before, I am using the datagrid array as a kind of poor man's writable cursor. When I am ready to update I simply pass the dgDataOfIndex[theIndex]["uniqueid"] to my update query. The user never even knows it's there. I hide encrypted password data that way too. Seems cleaner. I thought this was the way the datagrid was intended to behave. Have I stumbled across an undocumented feature? If so then please, nobody make it go away! ;-) Bob On Jan 26, 2012, at 2:24 PM, Pete wrote: > Yes, very odd. I get the same number of columns and the same data listed > for dgtext and dgdata including all the hidden columns. Are the columns > that don't turn up for you in dgtext hidden or have some different > characteristic from those that do? > > I'm on LC 5.0.2 on a Mac. > > Pete > > On Thu, Jan 26, 2012 at 2:03 PM, Bob Sneidar wrote: > >> Odd then that this command: >> >> on datavstext >> put the dgText["true"] of group "dgTableData" into theResult >> put cr & "-----" & cr after theResult >> put the dgData of group "dgTableData" into theDataA >> put printKeys(theDataA) after theResult >> put theResult >> end datavstext >> >> should return this result: >> >> reservationid building roomnumber startdate enddate >> amount clientid clientname >> 1 Harmony 403 2012-01-12 2012-01-15 0 0 >> 2 Harmony 404 2012-01-14 2012-01-15 0 0 >> ----- >> 1 >> conferencename: >> amount: 0 >> enddate: 2012-01-15 >> conferenceid: 0 >> siteid: 2 >> baseunit: day >> uniqueid: 8 >> clientid: 0 >> starttime: 4:00 PM >> baseprice: 0 >> building: Harmony >> clientname: >> discount: 0 >> roomid: 49 >> rnotes: >> startdate: 2012-01-12 >> endtime: 10:00 AM >> roomnumber: 403 >> reservationid: 1 >> quantity: 1 >> 2 >> conferencename: >> amount: 0 >> enddate: 2012-01-15 >> conferenceid: >> siteid: 2 >> baseunit: day >> uniqueid: 9 >> clientid: 0 >> starttime: 4:00 PM >> baseprice: 0 >> building: Harmony >> clientname: >> discount: 0 >> roomid: 50 >> rnotes: >> startdate: 2012-01-14 >> endtime: 10:00 AM >> roomnumber: 404 >> reservationid: 2 >> quantity: 1 >> >> >> Bob >> >> >> On Jan 26, 2012, at 12:43 PM, Pete wrote: >> >>> Not sure what you mean by "displayed", but f you mean columns that are >> not >>> hidden, that's not my experience - I see hidden columns and all rows in >>> dgText. >>> Pete >>> >>> On Thu, Jan 26, 2012 at 11:08 AM, Bob Sneidar wrote: >>> >>>> Hi all. Here is an interesting twist on the issue of whether or not to >> use >>>> dgText or dgData when working with datagrids. dgText will only give you >> the >>>> DISPLAYED data in the datagrid as text. The dgData will give you ALL the >>>> data in the datagrid as an array, INCLUDING the columns that are NOT >> being >>>> displayed. Another good argument for using dgData wherever you can. >>>> >>>> Now what we need is an update to the filter command so that it works on >>>> arrays! >>>> >>>> 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 >>>> >>>> >>> >>> >>> -- >>> 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 >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 bobs at twft.com Thu Jan 26 18:07:09 2012 From: bobs at twft.com (Bob Sneidar) Date: Thu, 26 Jan 2012 15:07:09 -0800 Subject: Alternate Form of printKeys() In-Reply-To: References: Message-ID: <4C3560FB-B2BA-4F42-8CFF-034D3DDC06B6@twft.com> Try this in a fresh datagrid with no data: on populateDatagrid put "text1" into theDataA[1]["column1"] put "text2" into theDataA[1]["column2"] put "text3" into theDataA[2]["column1"] put "text4" into theDataA[2]["column2"] put "column1" into theColumns put "Column 1" into theLabels put 150 into theWidths set the dgProp["columns"] of group "Datagrid1" to theColumns -- I got this wrong in another email sorry set the dgProp["column labels"] of group "Datagrid1" to theLabels set the dgProp["column widths"] of group "Datagrid1" to theWidths set the dgData of group "Datagrid1" to theDataA put the dgText of group "Datagrid1" & cr & "-----" & cr & \ printkeys(the dgData of group "Datagrid1") end populateDatagrid You should only see column 1 but printkeys should be showing you the entire array. Bob On Jan 26, 2012, at 2:37 PM, Pete wrote: > Not disputing the usefullness of your routine or what you are seeing re > dgtext/dgdata but that's NOT what I see in any of my datagrids - I see all > columns in dgText not just hidden ones. If I didn't, my apps would fail > disastrously. So let's try to figure out what's different between your > situation and mine - LC version, OS, dg config , what else? > > On Thu, Jan 26, 2012 at 2:20 PM, Bob Sneidar wrote: > >> but as I have mentioned before, I have columns of data that do not display >> in the datagrid, and dgText only returns the visible columns of text. > > > > > -- > 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 bobs at twft.com Thu Jan 26 18:12:31 2012 From: bobs at twft.com (Bob Sneidar) Date: Thu, 26 Jan 2012 15:12:31 -0800 Subject: Alternate Form of printKeys() In-Reply-To: References: Message-ID: Here are the functions. I have tested them and they seem to be fine, but any bug reports would be appreciated. Note that there is another distinct advantage of these functions over the original printKeys(): These functions allow for returns and tabs in the values. I convert them to ascii(30) and ascii(11) respectively when I return text and back again when I return an array. Also bear in mind I do no error checking. Who knows what would happen if you pass something other than what is expected. Hang on to your socks! :-) function altPrintKeys @pArray, theKeyList, pFullData put numtochar(11) into vertTab put numtochar(30) into altCr put the keys of pArray into theKeys sort theKeys numeric repeat for each line theKey in theKeys put "[" & theKey & "] " after theKeyList if theKey is not a number then replace theKey with quote & theKey & quote in theKeyList end if if pArray[theKey] is an array then put pArray[theKey] into theTempArray put altPrintKeys(theTempArray, theKeyList, pFullData) after theText put empty into the last word of theKeyList delete the last char of theKeyList put cr into the last char of theText else put "pArray " & the last word of theKeyList into theKeyName -- put "put " & theKeyName & " into theValue" into theCommand -- do theCommand put the value of theKeyName into theValue replace tab with vertTab in theValue replace return with altCr in theValue put theKeyList & tab & theValue & comma after theText put empty into the last word of theKeyList delete the last char of theKeyList end if end repeat return theText end altPrintKeys function altKeysToArray theText put numtochar(11) into vertTab put numtochar(30) into altCr repeat for each line theRecord in theText repeat for each item theKeyData in theRecord put the itemdelimiter into theOldDelim set the itemdelimiter to tab put item 1 of theKeyData into theKeyList put item 2 of theKeyData into theValue replace vertTab with tab in theValue replace altCr with return in theValue set the itemdelimiter to theOldDelim put "put " & quote & theValue & quote & " into theArrayA " & theKeylist into theCommand do theCommand end repeat end repeat return theArrayA end altKeysToArray From niconiko at gmail.com Thu Jan 26 18:52:35 2012 From: niconiko at gmail.com (Nicolas Cueto) Date: Fri, 27 Jan 2012 08:52:35 +0900 Subject: too many images on one card? Message-ID: Hello, My 1-card stack has hundreds of small jpgs (about 4kb each), with hundreds more jpgs to be added in the near future. All these jpgs are on one card, and they are in hidden groups. The thing I'm wondering now is, will having so many images all on one card cause runtime problems, despite their being hidden? My stacks run on old PC boxes -- Win2K, Pentium/Celeron cpus, minimum memory -- and I'm worried that this new stack might not run as zippily as the others. So, do I need to worry? Thanks. -- Nicolas Cueto From m.schonewille at economy-x-talk.com Thu Jan 26 19:03:47 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Fri, 27 Jan 2012 01:03:47 +0100 Subject: too many images on one card? In-Reply-To: References: Message-ID: <2EDCFC8A-231C-4C78-9B95-A0A999A7AAD2@economy-x-talk.com> Hi, I remember two cases. First case was someone creating a stack with tens of thousands of 4x4 px images. On a 350Ghz machine, showing and hiding one image took several seconds. On a current 2+ ghz machine it will be faster, but I expect it to still be noticeably slow. I didn't try to create a standalone, but this could have been problematic. The other case is a stack with thousands of cards with several pictures, movies and sounds on each card. The stack as a whole was more than 1 gb big. We had all kinds of inexplicable problems with the stack, including crashes and the impossibility to create a standalone, even after moving to a faster computer with more memory. What exactly are you trying to do? -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 27 jan 2012, at 00:52, Nicolas Cueto wrote: > Hello, > > My 1-card stack has hundreds of small jpgs (about 4kb each), with > hundreds more jpgs to be added in the near future. All these jpgs are > on one card, and they are in hidden groups. > > The thing I'm wondering now is, will having so many images all on one > card cause runtime problems, despite their being hidden? My stacks run > on old PC boxes -- Win2K, Pentium/Celeron cpus, minimum memory -- and > I'm worried that this new stack might not run as zippily as the > others. > > So, do I need to worry? > > Thanks. > > -- > Nicolas Cueto > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From niconiko at gmail.com Thu Jan 26 19:32:10 2012 From: niconiko at gmail.com (Nicolas Cueto) Date: Fri, 27 Jan 2012 09:32:10 +0900 Subject: too many images on one card? In-Reply-To: <2EDCFC8A-231C-4C78-9B95-A0A999A7AAD2@economy-x-talk.com> References: <2EDCFC8A-231C-4C78-9B95-A0A999A7AAD2@economy-x-talk.com> Message-ID: > What exactly are you trying to do? A group gets cloned, and the icons of its two buttons get set to the id of one of those 100's of jpgs. There's a grid of these cloned groups, up to 6x6. So that's up to 36x2 referenced images, with 36 always visible. What I'm also trying to do is to avoid recoding. My code now sets the icon of a button to the id of image ABC. It can do that because the button and the referred-to image are on the same card. Problem is that, given the mess that is my code, if I move those 100's of jpgs to, say, another card, then I must comb thru all of my code to modify those "set icon" references to "the id of image ABC of card DEF". So, besides my concern about things slowing down, I'm also trying to avoid having to go thru my code. Thanks, Mark. -- Nicolas Cueto From m.schonewille at economy-x-talk.com Thu Jan 26 19:45:58 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Fri, 27 Jan 2012 01:45:58 +0100 Subject: too many images on one card? In-Reply-To: References: <2EDCFC8A-231C-4C78-9B95-A0A999A7AAD2@economy-x-talk.com> Message-ID: <973A91DB-0816-4757-8F69-5577BF336AD9@economy-x-talk.com> Hi Nicolas, 72 Objects aren't that much and I think this isn't much of a problem for LiveCode. If you try to build a standalone, it might take a little longer because of the many objects, but I don't expect any problems besides that. Whether the stack performs well really depends on the computer it runs on. How old and slow are the computers you want to run the stack on? If your Pentium is a 300Mhz CPU and the "minimum memory" is 256MB then you might have a problem. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 27 jan 2012, at 01:32, Nicolas Cueto wrote: >> What exactly are you trying to do? > > A group gets cloned, and the icons of its two buttons get set to the > id of one of those 100's of jpgs. There's a grid of these cloned > groups, up to 6x6. So that's up to 36x2 referenced images, with 36 > always visible. > > What I'm also trying to do is to avoid recoding. My code now sets the > icon of a button to the id of image ABC. It can do that because the > button and the referred-to image are on the same card. Problem is > that, given the mess that is my code, if I move those 100's of jpgs > to, say, another card, then I must comb thru all of my code to modify > those "set icon" references to "the id of image ABC of card DEF". > > So, besides my concern about things slowing down, I'm also trying to > avoid having to go thru my code. > > Thanks, Mark. > > -- > Nicolas Cueto > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From niconiko at gmail.com Thu Jan 26 22:14:46 2012 From: niconiko at gmail.com (Nicolas Cueto) Date: Fri, 27 Jan 2012 12:14:46 +0900 Subject: too many images on one card? In-Reply-To: <973A91DB-0816-4757-8F69-5577BF336AD9@economy-x-talk.com> References: <2EDCFC8A-231C-4C78-9B95-A0A999A7AAD2@economy-x-talk.com> <973A91DB-0816-4757-8F69-5577BF336AD9@economy-x-talk.com> Message-ID: Hi Mark, > Whether the stack performs well really depends on the computer it runs on. > How old and slow are the computers you want to run the stack on? I'm away from those machines right now but, CPU is in the 800MHz area, and memory is 500MB or so. And, to clarify. I'm concerned not about the 36 images that are visible, but about the 100's (1000's?) that are not, all on the one card. Thanks again. -- Nicolas Cueto From martyknapp at comcast.net Thu Jan 26 23:35:20 2012 From: martyknapp at comcast.net (Marty Knapp) Date: Thu, 26 Jan 2012 20:35:20 -0800 Subject: Cloning stack reset object IDs? Message-ID: <4F222988.3070004@comcast.net> There has been talk about datagrids possibly running out of object IDs after a while. I'm wondering what happens when you clone a stack with a datagrid - does that buy you back anything? If not, I assume that using the "Cloning Chamber" in the Data Grid Helper plugin would give you a fresh start? The reason I ask is that I've been doing a lot of testing with large data sets in the IDE and thought that maybe when I'm ready to deploy the app I should give it a fresh data grid stack. Any thoughts? Thanks, Marty Knapp From stephenREVOLUTION2 at barncard.com Thu Jan 26 23:40:30 2012 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Thu, 26 Jan 2012 20:40:30 -0800 Subject: too many images on one card? In-Reply-To: References: <2EDCFC8A-231C-4C78-9B95-A0A999A7AAD2@economy-x-talk.com> <973A91DB-0816-4757-8F69-5577BF336AD9@economy-x-talk.com> Message-ID: Is there some reason why you can't reference the hundreds or thousands of images in a folder rather than imbedded in the stack? You'd have only the display template stack to load and ony the images needed to be seen on that 'page'. If security is an issue, you could use encrypted files.... On a mac, those images could live inside the .app package. On 26 January 2012 19:14, Nicolas Cueto wrote: > Hi Mark, > > > Whether the stack performs well really depends on the computer it runs > on. > > How old and slow are the computers you want to run the stack on? > > I'm away from those machines right now but, CPU is in the 800MHz area, > and memory is 500MB or so. > > And, to clarify. I'm concerned not about the 36 images that are > visible, but about the 100's (1000's?) that are not, all on the one > card. > > Thanks again. > > -- > Nicolas Cueto > > _______________________________________________ > use-livecode mailing list > use-livecode 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 bogdanoff at me.com Fri Jan 27 00:47:37 2012 From: bogdanoff at me.com (Peter Bogdanoff) Date: Thu, 26 Jan 2012 21:47:37 -0800 Subject: Card Buttons in Windows Message-ID: Hi, I have a bizarre issue that I can't figure out. I have a stack created in OS X that I brought over to Windows. In Windows, card buttons are 12% wider and moved to the right 7 pixels. For example, 4 card buttons, touching side by side. After opening the stack in Windows I see the first button moved 7 pixels to the right and stretched 16 pixels wider. The three remaining buttons continue to be touching their sides but each 12% wider. 1. Card button heights are the same 2. Background buttons are normal size 3. The stack size is unchanged and was locked 4. No live resizing enabled 5. The same stack brought back to OS X had the new sizes of the card buttons 6. I did a test with a new stack with similar size and buttons--Created in OS X but showing unchanged in Windows, problem not replicated 7. Working with LC 5.0.0, but a runtime created in 4.6.3 showed the same anomaly. 8. Testing in Windows XP & 7 using Virtual Box for 7 and VMWare Fusion for XP on my Mac OS X Snow Lion 9. Nothing in my scripts that resize anything 10. The stack was originally created in HyperCard, converted to LC in 4.6.3 11. New buttons created in the Mac OS X stack also show the same resizing when the stack is brought to Windows. Anybody have anything on this??? Peter Peter Bogdanoff .--. . - . .-. -... --- --. -.. .- -. --- ..-. ..-. (310) 825-8494 UCLA School of the Arts and Architecture 240 Charles Young Drive N Broad Art Center 2275 Los Angeles, CA 90095 From niconiko at gmail.com Fri Jan 27 00:50:24 2012 From: niconiko at gmail.com (Nicolas Cueto) Date: Fri, 27 Jan 2012 14:50:24 +0900 Subject: too many images on one card? In-Reply-To: References: <2EDCFC8A-231C-4C78-9B95-A0A999A7AAD2@economy-x-talk.com> <973A91DB-0816-4757-8F69-5577BF336AD9@economy-x-talk.com> Message-ID: > Is there some reason why you can't reference the hundreds or thousands of > images in a folder rather than imbedded in the stack? No reason. In fact, referencing is what I've done for years with my stacks. Only this time, the stack in question was originally designed a year ago for a very limited study-set (the alphabet), so, at the time, I figured might as well save the images as objects. But now, a year later, I've returned to that stack, to modify it for a larger (but still limited) study-set (phonemes and phoneme combinations). So, wishing to avoid diving back into my convoluted code, I thought I'd first bug the list with a question. Namely, is having hundreds (1000s?) of hidden images on one card a problem for older pc's (800Mhz cpu, 500Mb ram, Win2k)? > On a mac, those images could live inside the .app package. This made me think about iPhone. Do referenced images work on standalones for iPhones the same as they do on desktop standalones? Just curious. -- Nicolas Cueto From pete at mollysrevenge.com Fri Jan 27 02:06:25 2012 From: pete at mollysrevenge.com (Pete) Date: Thu, 26 Jan 2012 23:06:25 -0800 Subject: Cloning stack reset object IDs? In-Reply-To: <4F222988.3070004@comcast.net> References: <4F222988.3070004@comcast.net> Message-ID: Hi Marty, I just cloned a datagrid to see what would happen. I'm afraid all the control ids just carried on from the last one used in the original datagrid so using clone doesn't help. I also tried copying a datagrid from its original card to a card in a different substack. The control ids in the copied datagrid were way lower than in the original datagrid (back down in the 1300 range) so that may be a good way round this, although there are probably other complications I haven't thought of. I guess that's all expected behavior since IDs are numbered consecutively within a stack (I think). Don't have DGH so don't know what the cloning chamber does - sounds vaguely Frankensteinian to me! Pete On Thu, Jan 26, 2012 at 8:35 PM, Marty Knapp wrote: > There has been talk about datagrids possibly running out of object IDs > after a while. I'm wondering what happens when you clone a stack with a > datagrid - does that buy you back anything? If not, I assume that using the > "Cloning Chamber" in the Data Grid Helper plugin would give you a fresh > start? The reason I ask is that I've been doing a lot of testing with large > data sets in the IDE and thought that maybe when I'm ready to deploy the > app I should give it a fresh data grid stack. Any thoughts? > > Thanks, > Marty Knapp > > ______________________________**_________________ > use-livecode mailing list > use-livecode 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 yoshino at sys.wakayama-u.ac.jp Fri Jan 27 02:57:59 2012 From: yoshino at sys.wakayama-u.ac.jp (Takashi Yoshino) Date: Fri, 27 Jan 2012 16:57:59 +0900 Subject: How to store some data in my stack In-Reply-To: <6672A7D6-1571-4886-A387-0C64EAFDB1A5@sonsothunder.com> References: <22564CFD-D53D-42CE-B306-387085A74390@sys.wakayama-u.ac.jp> <3DD15C16-1467-419B-86E7-22369BE53369@major.on-rev.com> <80CF01D7-B073-45F4-A46E-0737DEF9C765@sys.wakayama-u.ac.jp> <4F20DCD7.90006@hyperactivesw.com> <6672A7D6-1571-4886-A387-0C64EAFDB1A5@sonsothunder.com> Message-ID: <91B9C72C-5BF6-492A-890D-32D2D62944BF@sys.wakayama-u.ac.jp> Hi, Ken > Are you *really* using curly quotes around "documents" and "testFile.txt"? The only reason I ask is that you have straight quotes around "Data" and "no file yet!", so I figured I'd check. If so, that might be the problem (although I'd think you'd get an error dialog first, but)? Thank you for you help. The problem was resolved for your comment. Quote is bad effect, but no error messages?. Thanks so much. -- Write button on mouseUp put fld "Data" into URL("file:" & specialFolderPath(documents) & SLASH & testFile.txt) end mouseUp -- Read button on mouseUp put URL("file:" & specialFolderPath(documents) & SLASH & testFile.txt) into fld "Data" end mouseUp But Japanese Text does not write correctly both Mac and Android... _.__ ._ _. ._ ._.__ .. ._._. _._ . ..__ ._.__ ._._. ___. .._ __.. __ .._ Takashi Yoshino http://www.wakayama-u.ac.jp/~yoshino/lab/ Tel: +81-73-457-8441 On 2012/01/27, at 2:36, Ken Ray wrote: > > On Jan 25, 2012, at 10:55 PM, J. Landman Gay wrote: > >>>> put specialFolderPath(?documents?)& "/"& ?testFile.txt? into tFile >>>> if there is a file tFile then >>>> put URL("file:"& tFile) into fld "Data" >>>> put the result into fld "msg" >>>> else >>>> answer "No file yet!" >>>> end if >>>> end mouseUp >>> >>> "no file yet!" is shown in an android. >>> >>> 'Write' function can't work, that is, >>> put fld "Data" into URL("file:"& specialFolderPath(?documents?)& "/"& ?testFile.txt?) >>> is not working on an android. > > Are you *really* using curly quotes around "documents" and "testFile.txt"? The only reason I ask is that you have straight quotes around "Data" and "no file yet!", so I figured I'd check. If so, that might be the problem (although I'd think you'd get an error dialog first, but)? > > Ken Ray > Sons of Thunder Software, Inc. > Email: kray at sonsothunder.com > Web Site: http://www.sonsothunder.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 livfoss at mac.com Fri Jan 27 06:37:34 2012 From: livfoss at mac.com (Graham Samuel) Date: Fri, 27 Jan 2012 12:37:34 +0100 Subject: Trouble with 'there is a' Message-ID: <7117334E-9EFA-474B-8131-9BC78EDFDE8D@mac.com> Thanks to those who replied to point out a gross stupidity on my part - the example I gave wasn't a legal LiveCode statement. I was too tired to notice. Sorry for the waste of bandwidth. I found the response of the message box mysterious but at least I'll recognise it next time. My real script did have two problem but they were quite different, and might be of interest. 1. I had constructed a Windows-style path with "\" characters to fit in with a small VB script I wanted to run. This does work in some contexts, but not in this one: in normal circumstances (but not AFAICS in VB scripts) LC looks after the change from "/" to "\". I forgot that it was this path in the variable I was testing. It gave a strange result, but the obvious answer is "don't do it". 2. The form of my 'if' condition was if there is not a file myPath &"/" & myfilename it turns out that the 'there is no' statement doesn't construct the string before the evaluation: you have to ensure the evaluation of the string by putting it in brackets as in if there is not a file (myPath &"/" & myfilename) There is an obscure warning about this in the dictionary: "The there is no operator is implemented internally as a function, and therefore has lower precedence than other operators". So it's a precedence issue. Graham I wrote > I'm using LS 5.0.2. on Windows XP (OK, running under Parallels on a Mac). I'm getting unexpected results from the 'there is..' series of functions/commands - the dictionary says they're implemented as functions, which I can understand. > > As a very simple test, in the message box I put: > > put (if there is a folder (the defaultFolder)) > > expecting to get 'true'. Instead I get the totally unexpected result: > > 161,426,1,return (if there is a folder (the defaultFolder)) > > I suppose it's my fault, but what does this mean? Just to be clear, 'the default folder' does have a value - it's: > > C:/Program Files/RunRev/LiveCode 5.0.2 > > Puzzled > > Graham From ken at kencorey.com Fri Jan 27 07:53:47 2012 From: ken at kencorey.com (Ken Corey) Date: Fri, 27 Jan 2012 12:53:47 +0000 Subject: errors trapped inside data grids? Message-ID: <4F229E5B.9040804@kencorey.com> Hi All, I noticed something *very* strange, and I was hoping someone could either confirm or set me straight. I'm implementing dataGrids for the first time, so I'm reading a lot of the lessons and tutorials (since that's the only documentation, seemingly). I wanted to do something with the data once the user had finished editting it, so I put this handler in: ----------------------8<--------------------- ## CloseFieldEditor placed in data grid script on CloseFieldEditor pFieldEditor put the dgColumn of the target into theColumnBeingEdited ## Store UTF8 text put unidecode(the unicodetext of pFieldEditor, "UTF8") into theNewText ## Save data to database using command I defined put "Person" into theTable ## Get the unique id of the row in the database we want to edit put GetDataOfIndex(the dgIndex of me, "id") into theRowID SaveDataToDatabase theTable, theRowID, theColumnBeingEdited, theNewText ## Update dgData. ## Setting dgDataOfIndex will refresh the data grid display as well as update dgData put the dgDataOfIndex[ the dgIndex of the target] of me into theDataA put theNewText into theDataA[theColumnBeingEdited] set the dgDataOfIndex[the dgIndex of the target] of me to theDataA end CloseFieldEditor ----------------------8<--------------------- Okay, so far so good. After the unidecode I added a line "answer theNewText", which happily shows me an alert dialog with the text I editted. This is almost feeling easy. Then, I was wondering why my data is reverting after editting, and noticed the 'SaveDataToDatabase' call. It's not anywhere. I performed a 'Find' that should have winkled it out. If it's not anywhere, then shouldn't it bark when it can't be found? Just for grins, I put 'qqqxqqq' in the handler just after the 'answer' I'd put before. No error message at all. Surely an error message of some stripe should be reported, yes? -Ken From kray at sonsothunder.com Fri Jan 27 10:12:56 2012 From: kray at sonsothunder.com (Ken Ray) Date: Fri, 27 Jan 2012 09:12:56 -0600 Subject: Card Buttons in Windows In-Reply-To: References: Message-ID: <18E45164-9A29-4238-A0B5-1B138CB226A1@sonsothunder.com> On Jan 26, 2012, at 11:47 PM, Peter Bogdanoff wrote: > Hi, > > I have a bizarre issue that I can't figure out. > > I have a stack created in OS X that I brought over to Windows. In Windows, card buttons are 12% wider and moved to the right 7 pixels. > > For example, 4 card buttons, touching side by side. After opening the stack in Windows I see the first button moved 7 pixels to the right and stretched 16 pixels wider. The three remaining buttons continue to be touching their sides but each 12% wider. > > 1. Card button heights are the same > 2. Background buttons are normal size > 3. The stack size is unchanged and was locked > 4. No live resizing enabled > 5. The same stack brought back to OS X had the new sizes of the card buttons > 6. I did a test with a new stack with similar size and buttons--Created in OS X but showing unchanged in Windows, problem not replicated > 7. Working with LC 5.0.0, but a runtime created in 4.6.3 showed the same anomaly. > 8. Testing in Windows XP & 7 using Virtual Box for 7 and VMWare Fusion for XP on my Mac OS X Snow Lion > 9. Nothing in my scripts that resize anything > 10. The stack was originally created in HyperCard, converted to LC in 4.6.3 > 11. New buttons created in the Mac OS X stack also show the same resizing when the stack is brought to Windows. > > Anybody have anything on this??? Just a few questions: 1) Are you using LiveCode property profiles to manage font changes between platforms, or are you changing the textFont/textSize/textStyle/textHeight of your buttons manually? 2) What is the style of the buttons? 3) Does it change anything if you set the lockLocation of the buttons to true? 4) Make sure that no code runs in the affected stack when it opens (like temporarily commenting out any code that would run) and then try to open it on Windows. Do you still see the same issue? Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From kray at sonsothunder.com Fri Jan 27 10:20:07 2012 From: kray at sonsothunder.com (Ken Ray) Date: Fri, 27 Jan 2012 09:20:07 -0600 Subject: How to store some data in my stack In-Reply-To: <91B9C72C-5BF6-492A-890D-32D2D62944BF@sys.wakayama-u.ac.jp> References: <22564CFD-D53D-42CE-B306-387085A74390@sys.wakayama-u.ac.jp> <3DD15C16-1467-419B-86E7-22369BE53369@major.on-rev.com> <80CF01D7-B073-45F4-A46E-0737DEF9C765@sys.wakayama-u.ac.jp> <4F20DCD7.90006@hyperactivesw.com> <6672A7D6-1571-4886-A387-0C64EAFDB1A5@sonsothunder.com> <91B9C72C-5BF6-492A-890D-32D2D62944BF@sys.wakayama-u.ac.jp> Message-ID: <8DEC1C8A-4F70-4704-B4EC-2D0DB59D9B88@sonsothunder.com> On Jan 27, 2012, at 1:57 AM, Takashi Yoshino wrote: > Hi, Ken > >> Are you *really* using curly quotes around "documents" and "testFile.txt"? The only reason I ask is that you have straight quotes around "Data" and "no file yet!", so I figured I'd check. If so, that might be the problem (although I'd think you'd get an error dialog first, but)? > > Thank you for you help. > The problem was resolved for your comment. > > Quote is bad effect, but no error messages?. Wow? that's one for the books! Odd that it didn't give any error messages, but I'm glad it worked! Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From kray at sonsothunder.com Fri Jan 27 10:42:18 2012 From: kray at sonsothunder.com (Ken Ray) Date: Fri, 27 Jan 2012 09:42:18 -0600 Subject: Trouble with 'there is a' In-Reply-To: <7117334E-9EFA-474B-8131-9BC78EDFDE8D@mac.com> References: <7117334E-9EFA-474B-8131-9BC78EDFDE8D@mac.com> Message-ID: > My real script did have two problem but they were quite different, and might be of interest. I'm glad you brought these up - for others reading this there are some "best practices" to learn about these things: > 1. I had constructed a Windows-style path with "\" characters to fit in with a small VB script I wanted to run. This does work in some contexts, but not in this one: in normal circumstances (but not AFAICS in VB scripts) LC looks after the change from "/" to "\". I forgot that it was this path in the variable I was testing. It gave a strange result, but the obvious answer is "don't do it". Right. If you *do* need to construct a "\"-delimited path for external use (for example, if you're creating a VBScript in LiveCode that you want to execute with "do ? as VBScript"), then do your "/"-to-"\" conversions *just before* you use it, and do the conversion on a variable that's not going to be used again in that handler (like a temporary copy of a variable or one that is solely for the purpose of passing off to VBScript). For example: put specialFolderPath("desktop") & "MyFile.txt" into tFile -- maybe some other code goes here put replaceText(tFile,"/","\") into tTempFile -- construct VBScript using the tTempFile variable -- keeps tFile safe if you need to work with it later > 2. The form of my 'if' condition was > > if there is not a file myPath &"/" & myfilename > > it turns out that the 'there is no' statement doesn't construct the string before the evaluation: you have to ensure the evaluation of the string by putting it in brackets as in > > if there is not a file (myPath &"/" & myfilename) > > There is an obscure warning about this in the dictionary: "The there is no operator is implemented internally as a function, and therefore has lower precedence than other operators". So it's a precedence issue. One thing I've gotten into the habit of doing is to always surround concatenation and logic operations (especially those with symbols) in parentheses - apart from being more readable, it also saves headaches if the interpreter sees things differently than you intended. Examples: put ("This is" && "a test") into tVar if (tVar <> "") then ? For multiple logic operations it is even more important. Compare: if tVar > 100 and tFileName contains " " or tVar = 0 then vs. if ((tVar > 100) and (tFileName contains " ")) or (tVar = 0) then Just my 2 cents, Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From ambassador at fourthworld.com Fri Jan 27 10:54:00 2012 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 27 Jan 2012 07:54:00 -0800 Subject: Cloning stack reset object IDs? In-Reply-To: References: Message-ID: <4F22C898.4080403@fourthworld.com> Pete wrote: > I just cloned a datagrid to see what would happen. I'm afraid all the > control ids just carried on from the last one used in the original datagrid > so using clone doesn't help. Was that just the dataGrid group or the whole stack? Since the stack governs the IDs of objects within it, I would imagine that cloning the stack as a whole would preserve existing IDs, but here whenever I copy any object from one stack to another the ID is automatically reset to use the next available ID for the target stack. -- 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 cmsheffield at me.com Fri Jan 27 11:28:17 2012 From: cmsheffield at me.com (Chris Sheffield) Date: Fri, 27 Jan 2012 09:28:17 -0700 Subject: iOS: multiline (UITextView) control weirdness Message-ID: Okay, time for another one. Hopefully someone has experienced this and has a solution. I've got an iPad app, portrait only. At one point I'm creating a multiline text control (UITextView) for input. The control is created near the bottom of the screen. So when the keyboard pops up, the input area is getting partially obscured. In other (non-LiveCode) apps, it seems like I remember seeing the entire view simply slide up so that this doesn't happen, and the input area rests nicely just above the keyboard. Do we have a way to do this in LiveCode? I've checked all the properties and methods for UITextView and can't figure this out. Or is this custom behavior that just needs to be coded? If the latter, does anyone have an example and/or hints or tips to make it work smoothly? Thanks, Chris -- Chris Sheffield Read Naturally, Inc. www.readnaturally.com From jhurley0305 at sbcglobal.net Fri Jan 27 11:44:04 2012 From: jhurley0305 at sbcglobal.net (Jim Hurley) Date: Fri, 27 Jan 2012 08:44:04 -0800 Subject: Revlets on the web In-Reply-To: References: Message-ID: I guess the question must be asked: Given the lack of attention to the problem of running Revlets on the web, is RunRev abandoning Revlets, or just very busy with things that have a higher priority? I can see that they have a lot on their plate. The neglect of the User Samples application is further evidence. From williamdesmet at gmail.com Fri Jan 27 11:49:46 2012 From: williamdesmet at gmail.com (William de Smet) Date: Fri, 27 Jan 2012 17:49:46 +0100 Subject: Revlets on the web In-Reply-To: References: Message-ID: Hi Jim, There was a question lately in one of their surveys about HTML5. I guess they are thinking about going this way with revlets. For now I think they shouldn't sell it because it doesn't work well (or not at all). Greetings, William 2012/1/27 Jim Hurley : > I guess the question must be asked: Given the lack of attention to the problem of running Revlets on the web, is RunRev abandoning Revlets, or just very busy with things that have a higher priority? > > I can see that they have a lot on their plate. The neglect of the User Samples application is further evidence. > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jan 27 12:04:34 2012 From: pete at mollysrevenge.com (Pete) Date: Fri, 27 Jan 2012 09:04:34 -0800 Subject: Cloning stack reset object IDs? In-Reply-To: <4F22C898.4080403@fourthworld.com> References: <4F22C898.4080403@fourthworld.com> Message-ID: Hi Richard, Just the datagrid group, not the stack itself. Here's what I see when cloning. If I clone a card, the controls on it are given a new set of IDs. If I clone a stack, the controls within the new stack retain the IDs from the original stack. I guess that's what I would have expected. One other thing I noticed when I was doing this test. The IDs of the controls I put on the first card I set up for the test weren't numbered consecutively, they were 1004, 1006, 1008, etc. When I cloned that card, the IDs were consecutive, 1011, 1012, 1013, etc. Is there a reason why the first card's control IDs went up in 2's? Pete On Fri, Jan 27, 2012 at 7:54 AM, Richard Gaskin wrote: > Pete wrote: > >> I just cloned a datagrid to see what would happen. I'm afraid all the >> control ids just carried on from the last one used in the original >> datagrid >> so using clone doesn't help. >> > > Was that just the dataGrid group or the whole stack? > > Since the stack governs the IDs of objects within it, I would imagine that > cloning the stack as a whole would preserve existing IDs, but here whenever > I copy any object from one stack to another the ID is automatically reset > to use the next available ID for the target stack. > > -- > 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 > > -- Pete Molly's Revenge From bobs at twft.com Fri Jan 27 12:05:23 2012 From: bobs at twft.com (Bob Sneidar) Date: Fri, 27 Jan 2012 09:05:23 -0800 Subject: errors trapped inside data grids? In-Reply-To: <4F229E5B.9040804@kencorey.com> References: <4F229E5B.9040804@kencorey.com> Message-ID: <48AEED0B-7AB7-4AE5-A39F-13124E7BBAA9@twft.com> I think some errors are trapped so that they do not cause a code break. Check the result to see if it contains anything. Bob On Jan 27, 2012, at 4:53 AM, Ken Corey wrote: > Hi All, > > I noticed something *very* strange, and I was hoping someone could either confirm or set me straight. > > I'm implementing dataGrids for the first time, so I'm reading a lot of the lessons and tutorials (since that's the only documentation, seemingly). > > I wanted to do something with the data once the user had finished editting it, so I put this handler in: > > ----------------------8<--------------------- > ## CloseFieldEditor placed in data grid script > on CloseFieldEditor pFieldEditor > put the dgColumn of the target into theColumnBeingEdited > ## Store UTF8 text > put unidecode(the unicodetext of pFieldEditor, "UTF8") into theNewText > > ## Save data to database using command I defined > put "Person" into theTable > ## Get the unique id of the row in the database we want to edit > put GetDataOfIndex(the dgIndex of me, "id") into theRowID > > SaveDataToDatabase theTable, theRowID, theColumnBeingEdited, theNewText > > ## Update dgData. > ## Setting dgDataOfIndex will refresh the data grid display as well as update dgData > put the dgDataOfIndex[ the dgIndex of the target] of me into theDataA > put theNewText into theDataA[theColumnBeingEdited] > set the dgDataOfIndex[the dgIndex of the target] of me to theDataA > end CloseFieldEditor > ----------------------8<--------------------- > > Okay, so far so good. After the unidecode I added a line "answer theNewText", which happily shows me an alert dialog with the text I editted. This is almost feeling easy. > > Then, I was wondering why my data is reverting after editting, and noticed the 'SaveDataToDatabase' call. > > It's not anywhere. I performed a 'Find' that should have winkled it out. > > If it's not anywhere, then shouldn't it bark when it can't be found? > > Just for grins, I put 'qqqxqqq' in the handler just after the 'answer' I'd put before. > > No error message at all. > > Surely an error message of some stripe should be reported, yes? > > -Ken > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jan 27 12:13:11 2012 From: bobs at twft.com (Bob Sneidar) Date: Fri, 27 Jan 2012 09:13:11 -0800 Subject: Trouble with 'there is a' In-Reply-To: <7117334E-9EFA-474B-8131-9BC78EDFDE8D@mac.com> References: <7117334E-9EFA-474B-8131-9BC78EDFDE8D@mac.com> Message-ID: <79B18555-287F-4C5F-9898-83AD3D08A81C@twft.com> I remember a long time ago in a Revolution conference far, far away, someone gave a class on good coding habits. One of the habits he mentioned was to enclose in parenthesis where you can, partly for this reason, and partly because it makes the code easier to read. I go halfway. If I have any doubt about the precedence of a statement, I use parenthesis. In fact, an even better habit is to put paths into variables, or just put anything into variables, then work with those. It makes debugging a whole lot easier, and code easier to read. Bob On Jan 27, 2012, at 3:37 AM, Graham Samuel wrote: > 2. The form of my 'if' condition was > > if there is not a file myPath &"/" & myfilename > > it turns out that the 'there is no' statement doesn't construct the string before the evaluation: you have to ensure the evaluation of the string by putting it in brackets as in > > if there is not a file (myPath &"/" & myfilename) > > There is an obscure warning about this in the dictionary: "The there is no operator is implemented internally as a function, and therefore has lower precedence than other operators". So it's a precedence issue. > > Graham From bobs at twft.com Fri Jan 27 12:14:07 2012 From: bobs at twft.com (Bob Sneidar) Date: Fri, 27 Jan 2012 09:14:07 -0800 Subject: Trouble with 'there is a' In-Reply-To: References: <7117334E-9EFA-474B-8131-9BC78EDFDE8D@mac.com> Message-ID: What he said. ;-) On Jan 27, 2012, at 7:42 AM, Ken Ray wrote: >> My real script did have two problem but they were quite different, and might be of interest. > > I'm glad you brought these up - for others reading this there are some "best practices" to learn about these things: > >> 1. I had constructed a Windows-style path with "\" characters to fit in with a small VB script I wanted to run. This does work in some contexts, but not in this one: in normal circumstances (but not AFAICS in VB scripts) LC looks after the change from "/" to "\". I forgot that it was this path in the variable I was testing. It gave a strange result, but the obvious answer is "don't do it". > > Right. If you *do* need to construct a "\"-delimited path for external use (for example, if you're creating a VBScript in LiveCode that you want to execute with "do ? as VBScript"), then do your "/"-to-"\" conversions *just before* you use it, and do the conversion on a variable that's not going to be used again in that handler (like a temporary copy of a variable or one that is solely for the purpose of passing off to VBScript). For example: > > put specialFolderPath("desktop") & "MyFile.txt" into tFile > -- maybe some other code goes here > put replaceText(tFile,"/","\") into tTempFile > -- construct VBScript using the tTempFile variable -- keeps tFile safe if you need to work with it later > > >> 2. The form of my 'if' condition was >> >> if there is not a file myPath &"/" & myfilename >> >> it turns out that the 'there is no' statement doesn't construct the string before the evaluation: you have to ensure the evaluation of the string by putting it in brackets as in >> >> if there is not a file (myPath &"/" & myfilename) >> >> There is an obscure warning about this in the dictionary: "The there is no operator is implemented internally as a function, and therefore has lower precedence than other operators". So it's a precedence issue. > > One thing I've gotten into the habit of doing is to always surround concatenation and logic operations (especially those with symbols) in parentheses - apart from being more readable, it also saves headaches if the interpreter sees things differently than you intended. Examples: > > put ("This is" && "a test") into tVar > if (tVar <> "") then ? > > For multiple logic operations it is even more important. Compare: > > if tVar > 100 and tFileName contains " " or tVar = 0 then > > vs. > > if ((tVar > 100) and (tFileName contains " ")) or (tVar = 0) then > > > Just my 2 cents, > > Ken Ray > Sons of Thunder Software, Inc. > Email: kray at sonsothunder.com > Web Site: http://www.sonsothunder.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 Jan 27 12:20:53 2012 From: bobs at twft.com (Bob Sneidar) Date: Fri, 27 Jan 2012 09:20:53 -0800 Subject: Cloning stack reset object IDs? In-Reply-To: References: <4F22C898.4080403@fourthworld.com> Message-ID: It is because of this sort of thing that I think the engine needs to be updated to reuse unused ID's. It would be a simple matter to have the engine reset the stack ID to the lowest unused ID if it ever ran out, and then check for the next available ID when it sets the stack ID after an object gets created. If they did that, then a developer could simply set the stack ID to 0 if he wanted to do it himself, and have the engine find the next unused ID. I suppose there would have to be an index of some sort, of objects and their ID's. There may already be such a thing in the stack structure. Bob On Jan 27, 2012, at 9:04 AM, Pete wrote: > Hi Richard, > Just the datagrid group, not the stack itself. > > Here's what I see when cloning. If I clone a card, the controls on it are > given a new set of IDs. If I clone a stack, the controls within the new > stack retain the IDs from the original stack. I guess that's what I would > have expected. > > One other thing I noticed when I was doing this test. The IDs of the > controls I put on the first card I set up for the test weren't numbered > consecutively, they were 1004, 1006, 1008, etc. When I cloned that card, > the IDs were consecutive, 1011, 1012, 1013, etc. Is there a reason why the > first card's control IDs went up in 2's? > > Pete > > On Fri, Jan 27, 2012 at 7:54 AM, Richard Gaskin > wrote: > >> Pete wrote: >> >>> I just cloned a datagrid to see what would happen. I'm afraid all the >>> control ids just carried on from the last one used in the original >>> datagrid >>> so using clone doesn't help. >>> >> >> Was that just the dataGrid group or the whole stack? >> >> Since the stack governs the IDs of objects within it, I would imagine that >> cloning the stack as a whole would preserve existing IDs, but here whenever >> I copy any object from one stack to another the ID is automatically reset >> to use the next available ID for the target stack. >> >> -- >> 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 >> >> > > > -- > 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 ken at kencorey.com Fri Jan 27 12:27:27 2012 From: ken at kencorey.com (Ken Corey) Date: Fri, 27 Jan 2012 17:27:27 +0000 Subject: What's the best way to show a set of pictures? Message-ID: <4F22DE7F.6050806@kencorey.com> Hi All, My app will be deployed onto, at a minimum, iOS universal, and Windows PCs. If I can get the code working there then Android as well. I want to represent the children of a teacher's class with a smallish picture of each child...and allow the teacher to take a new picture, or refresh one that's there already. I've seen the code to take a picture, and (though not having touched it) it seems fairly straightforward. The question is what's the best way to create a clickable set of images? Do I simply create images, provide a mouseUp handler for them, and implement my own geometry, or is there a clever thing to do with tables/dataGrids? -Ken From dan at clearvisiontech.com Fri Jan 27 12:34:25 2012 From: dan at clearvisiontech.com (Dan Friedman) Date: Fri, 27 Jan 2012 09:34:25 -0800 Subject: iOS Home Button In-Reply-To: References: Message-ID: Greetings! Is there a way to trap when the user hits the Home button on his iPad? I want to do a little cleanup (including writing some data to a server) when my app is closed. I tried shutdownRequest, but this doesn't seem to work. Any thoughts? Thanks in advance, -Dan From pete at mollysrevenge.com Fri Jan 27 12:35:19 2012 From: pete at mollysrevenge.com (Pete) Date: Fri, 27 Jan 2012 09:35:19 -0800 Subject: Trouble with 'there is a' In-Reply-To: References: <7117334E-9EFA-474B-8131-9BC78EDFDE8D@mac.com> Message-ID: Hi Ken, You're saving my life on these Mac/Windows issues, thank you! One question on this. What do the ask/answer file/folder dialogs return on Windows? Does LC convert the "\" chars to "/" before putting it into the it variable, or just pass whatever the os returns? Thanks, Pete > > Right. If you *do* need to construct a "\"-delimited path for external use > (for example, if you're creating a VBScript in LiveCode that you want to > execute with "do ? as VBScript"), then do your "/"-to-"\" conversions *just > before* you use it, and do the conversion on a variable that's not going to > be used again in that handler (like a temporary copy of a variable or one > that is solely for the purpose of passing off to VBScript). For example: > > put specialFolderPath("desktop") & "MyFile.txt" into tFile > -- maybe some other code goes here > put replaceText(tFile,"/","\") into tTempFile > -- construct VBScript using the tTempFile variable -- keeps tFile safe > if you need to work with it later > > > From martyknapp at comcast.net Fri Jan 27 12:53:02 2012 From: martyknapp at comcast.net (Marty Knapp) Date: Fri, 27 Jan 2012 09:53:02 -0800 Subject: Cloning stack reset object IDs? In-Reply-To: References: <4F22C898.4080403@fourthworld.com> Message-ID: <4F22E47E.70406@comcast.net> Pete, So if I'm understanding you correctly, I could clone a card with a datagrid and then delete the original card and I would, in effect, start with a fresh set of IDs? Marty > Hi Richard, > Just the datagrid group, not the stack itself. > > Here's what I see when cloning. If I clone a card, the controls on it are > given a new set of IDs. If I clone a stack, the controls within the new > stack retain the IDs from the original stack. I guess that's what I would > have expected. > > One other thing I noticed when I was doing this test. The IDs of the > controls I put on the first card I set up for the test weren't numbered > consecutively, they were 1004, 1006, 1008, etc. When I cloned that card, > the IDs were consecutive, 1011, 1012, 1013, etc. Is there a reason why the > first card's control IDs went up in 2's? > > Pete > From klaus at major.on-rev.com Fri Jan 27 12:56:27 2012 From: klaus at major.on-rev.com (Klaus on-rev) Date: Fri, 27 Jan 2012 18:56:27 +0100 Subject: Trouble with 'there is a' In-Reply-To: References: <7117334E-9EFA-474B-8131-9BC78EDFDE8D@mac.com> Message-ID: <76AD13E4-4A54-4EDB-8009-2375391198D8@major.on-rev.com> Hi Pete, Am 27.01.2012 um 18:35 schrieb Pete: > Hi Ken, > You're saving my life on these Mac/Windows issues, thank you! One question > on this. What do the ask/answer file/folder dialogs return on Windows? > Does LC convert the "\" chars to "/" before putting it into the it variable, Yes! > or just pass whatever the os returns? No! :-) Internally LiveCode always uses the UNIX slash / as the pathdelimiter. > Thanks, > Pete Best Klaus -- Klaus Major http://www.major-k.de klaus at major.on-rev.com From cmsheffield at me.com Fri Jan 27 13:03:40 2012 From: cmsheffield at me.com (Chris Sheffield) Date: Fri, 27 Jan 2012 11:03:40 -0700 Subject: iOS Home Button In-Reply-To: References: Message-ID: <288349C4-5AA4-4D1D-9EC6-915E907AC09B@me.com> Dan, Try shutdown instead of shutdownRequest. The shutdownRequest message is used in a desktop standalone when you want to possibly prevent the application from shutting down. Under iOS, that's impossible when hitting the home button. The shutdown message is working great for me. Chris -- Chris Sheffield Read Naturally, Inc. www.readnaturally.com On Jan 27, 2012, at 10:34 AM, Dan Friedman wrote: > Greetings! > > Is there a way to trap when the user hits the Home button on his iPad? I want to do a little cleanup (including writing some data to a server) when my app is closed. I tried shutdownRequest, but this doesn't seem to work. Any thoughts? > > Thanks in advance, > -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 From kray at sonsothunder.com Fri Jan 27 13:31:12 2012 From: kray at sonsothunder.com (Ken Ray) Date: Fri, 27 Jan 2012 12:31:12 -0600 Subject: Trouble with 'there is a' In-Reply-To: <76AD13E4-4A54-4EDB-8009-2375391198D8@major.on-rev.com> References: <7117334E-9EFA-474B-8131-9BC78EDFDE8D@mac.com> <76AD13E4-4A54-4EDB-8009-2375391198D8@major.on-rev.com> Message-ID: On Jan 27, 2012, at 11:56 AM, Klaus on-rev wrote: > Hi Pete, > > Am 27.01.2012 um 18:35 schrieb Pete: > >> Hi Ken, >> You're saving my life on these Mac/Windows issues, thank you! One question >> on this. What do the ask/answer file/folder dialogs return on Windows? >> Does LC convert the "\" chars to "/" before putting it into the it variable, > > Yes! > >> or just pass whatever the os returns? > > No! > > :-) > > Internally LiveCode always uses the UNIX slash / as the pathdelimiter. Right - LC tries its hardest to keep things internally compatible and automatically translates "foreign" things like line breaks and path delimiters to its own internal format, and then retranslates it back when LC reaches out to the host operating system. So if you do an "answer file" on Windows and then get the path to the selected file, it's "/"-delimited, not "\"-delimited. If you then have to write data out to a file on Windows, and you do something like: put "Hello" into url ("file:C:/Users/kray/Desktop/Hello.txt") it will work because LC recognizes it's on Windows and translates that to "C:\Users\kray\Desktop\Hello.txt" to communicate with the OS. So the only times we need to deal with path delimiters is when (a) working with the WIndows registry (see queryRegistry/setRegistry/etc.), and (b) when handing off paths to external applications (like VBScript or AppleScript), IIRC. > Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From pete at mollysrevenge.com Fri Jan 27 14:04:44 2012 From: pete at mollysrevenge.com (Pete) Date: Fri, 27 Jan 2012 11:04:44 -0800 Subject: Cloning stack reset object IDs? In-Reply-To: <4F22E47E.70406@comcast.net> References: <4F22C898.4080403@fourthworld.com> <4F22E47E.70406@comcast.net> Message-ID: Hi Marty, I've just been playing around with this a bit more and need to clarify a couple of things. When you clone a card, it is placed into the currently-open stack, not the same stack as the original card was in. So if the stack the original card is in is open when you clone it, the new card's ID is calculated from the highest ID on the on the old card. So yes, you get a new set of IDs, but they're all higher than what was on the original card, not much use for what you want to do. However, you can get help. Create a new substack of your main stack. The card in it will be ID 1002. Open the new substack, then issue a clone command from the message box for the card you want to clone. The new card will be placed in the new substack and the controls on it will start with ID 1003. I haven't taken the last step but you would have delete the stack the card originated in, then rename the new substack to have the same name as the original stack. I think there may well be some gotchas in doing this. For example, if you have any behaviors set to the ID of a control on the card, you'd have to change them to the ID of the same control on the new card. There are also some properties of a datagrid that could be set to a control ID on the card and those would have to be manually changed also. Just scan through the dgProps custom property set and see if you see anything that references a control on the same card as the datagrid. I hope that helps. There's another aspect to this. Datagrids do use up a lot of control IDs for sure but I wonder just how much it matters in practical terms. It would be interesting to figure out how many times a datagrid would have to be refreshed to overflow the control ids, by dividing the max possible id value by an estimate of how many IDs any particular datagrid uses. Unfortunately, I don't know what the max id number is - anyone? Pete On Fri, Jan 27, 2012 at 9:53 AM, Marty Knapp wrote: > Pete, > So if I'm understanding you correctly, I could clone a card with a > datagrid and then delete the original card and I would, in effect, start > with a fresh set of IDs? > > Marty > >> Hi Richard, >> Just the datagrid group, not the stack itself. >> >> Here's what I see when cloning. If I clone a card, the controls on it are >> given a new set of IDs. If I clone a stack, the controls within the new >> stack retain the IDs from the original stack. I guess that's what I would >> have expected. >> >> One other thing I noticed when I was doing this test. The IDs of the >> controls I put on the first card I set up for the test weren't numbered >> consecutively, they were 1004, 1006, 1008, etc. When I cloned that card, >> the IDs were consecutive, 1011, 1012, 1013, etc. Is there a reason why >> the >> first card's control IDs went up in 2's? >> >> Pete >> >> > ______________________________**_________________ > use-livecode mailing list > use-livecode 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 pete at mollysrevenge.com Fri Jan 27 14:08:24 2012 From: pete at mollysrevenge.com (Pete) Date: Fri, 27 Jan 2012 11:08:24 -0800 Subject: Trouble with 'there is a' In-Reply-To: References: <7117334E-9EFA-474B-8131-9BC78EDFDE8D@mac.com> <76AD13E4-4A54-4EDB-8009-2375391198D8@major.on-rev.com> Message-ID: Thanks Ken. I am handing off the paths to an external application so I'll need to convert the slashes. Pete On Fri, Jan 27, 2012 at 10:31 AM, Ken Ray wrote: > So the only times we need to deal with path delimiters is when (a) working > with the WIndows registry (see queryRegistry/setRegistry/etc.), and (b) > when handing off paths to external applications (like VBScript or > AppleScript), IIRC. > -- Pete Molly's Revenge From bobs at twft.com Fri Jan 27 15:54:32 2012 From: bobs at twft.com (Bob Sneidar) Date: Fri, 27 Jan 2012 12:54:32 -0800 Subject: Send and Dispatch without parameters Message-ID: <07166EEC-0BFC-4505-AEDE-533C675BD2A9@twft.com> Hi all. I just noticed that if you send or dispatch to an object and you have specified parameters in the objects handler, but you don't provide the parameters when you send or dispatch, the call will silently fail. This seems only to occur for built in handlers, like mouseUp for example. If I have a button called "myButton" with a mouseUp handler: on mouseUp pButtonNum put "This is a test" end mouseUp if I: send "mouseUp" to button "myButton" or: dispatch "mouseUp" to button "myButton" The button will never get the message, and no error is generated. This caught me quiet off guard, as you can for a custom handler just call it, and even if you don't provide all the parameters, the handler gets called anyway. However, if I have a custom handler: on testMe theMessage put "This is a successful test." end testMe And then I send or dispatch without the parameter, the handler gets called fine! Is this normal or expected behavior? I cannot think that this kind of ambiguity is what the devs intended. If someone can give me a reason for why it has to be this way, I can just watch for it in the future. If not I suppose I should submit a bug report. In the meantime, I suppose the best practice is to never put the business end of your code in the built in handlers, but rather call a command or function that does all the work. That way you can send or dispatch to that handler and not to the built in one. Bob From dunbarx at aol.com Fri Jan 27 16:39:33 2012 From: dunbarx at aol.com (dunbarx at aol.com) Date: Fri, 27 Jan 2012 16:39:33 -0500 (EST) Subject: Send and Dispatch without parameters In-Reply-To: <07166EEC-0BFC-4505-AEDE-533C675BD2A9@twft.com> References: <07166EEC-0BFC-4505-AEDE-533C675BD2A9@twft.com> Message-ID: <8CEAB534A3B84ED-2AD8-69A1@webmail-m153.sysops.aol.com> This is not normal. The method works for me, and has, basically, since 1987. But I tried it in both a new stack and in a stack filled with other stuff, a test stack of mine with all sorts of things in it. The simple command worked as advertised in the new stack, but failed in the test stack as you described. Not sure yet what is happening. This is the most basic of all message hierarchy machinations; it has to work in all the variations you mentioned. Craig Newman -----Original Message----- From: Bob Sneidar To: How to use LiveCode Sent: Fri, Jan 27, 2012 3:57 pm Subject: Send and Dispatch without parameters Hi all. I just noticed that if you send or dispatch to an object and you have specified parameters in the objects handler, but you don't provide the parameters when you send or dispatch, the call will silently fail. This seems only to occur for built in handlers, like mouseUp for example. If I have a button called "myButton" with a mouseUp handler: on mouseUp pButtonNum put "This is a test" end mouseUp if I: send "mouseUp" to button "myButton" or: dispatch "mouseUp" to button "myButton" The button will never get the message, and no error is generated. This caught me quiet off guard, as you can for a custom handler just call it, and even if you don't provide all the parameters, the handler gets called anyway. However, if I have a custom handler: on testMe theMessage put "This is a successful test." end testMe And then I send or dispatch without the parameter, the handler gets called fine! Is this normal or expected behavior? I cannot think that this kind of ambiguity is what the devs intended. If someone can give me a reason for why it has to be this way, I can just watch for it in the future. If not I suppose I should submit a bug report. In the meantime, I suppose the best practice is to never put the business end of your code in the built in handlers, but rather call a command or function that does all the work. That way you can send or dispatch to that handler and not to the built in one. 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 Fri Jan 27 16:39:43 2012 From: bonnmike at gmail.com (Mike Bonner) Date: Fri, 27 Jan 2012 14:39:43 -0700 Subject: Send and Dispatch without parameters In-Reply-To: <07166EEC-0BFC-4505-AEDE-533C675BD2A9@twft.com> References: <07166EEC-0BFC-4505-AEDE-533C675BD2A9@twft.com> Message-ID: I don't see this behavior when I try it. Updated win7, lc 5.0.2. Not sure why your results differ unless maybe theres a frontscript doing strange things? On Fri, Jan 27, 2012 at 1:54 PM, Bob Sneidar wrote: > Hi all. > > I just noticed that if you send or dispatch to an object and you have > specified parameters in the objects handler, but you don't provide the > parameters when you send or dispatch, the call will silently fail. This > seems only to occur for built in handlers, like mouseUp for example. > > If I have a button called "myButton" with a mouseUp handler: > > on mouseUp pButtonNum > put "This is a test" > end mouseUp > > if I: > send "mouseUp" to button "myButton" > > or: > dispatch "mouseUp" to button "myButton" > > The button will never get the message, and no error is generated. This > caught me quiet off guard, as you can for a custom handler just call it, > and even if you don't provide all the parameters, the handler gets called > anyway. > > However, if I have a custom handler: > > on testMe theMessage > put "This is a successful test." > end testMe > > And then I send or dispatch without the parameter, the handler gets called > fine! Is this normal or expected behavior? I cannot think that this kind of > ambiguity is what the devs intended. If someone can give me a reason for > why it has to be this way, I can just watch for it in the future. If not I > suppose I should submit a bug report. > > In the meantime, I suppose the best practice is to never put the business > end of your code in the built in handlers, but rather call a command or > function that does all the work. That way you can send or dispatch to that > handler and not to the built in one. > > 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 todd at geistinteractive.com Fri Jan 27 16:41:39 2012 From: todd at geistinteractive.com (Todd Geist) Date: Fri, 27 Jan 2012 13:41:39 -0800 Subject: iPad App development needed Message-ID: Hello, I need a very simple camera app built for the iPad. I would do it myself, but I am just too busy. So I am hopeful I can find somebody who can get this thing built for me. This is to serve a small niche market. It will serve as a companion app to another product I am already selling. Features: 1. take a photo 2. downsize the photo 3. Base64 encode the image 4. Send the resulting string to another application through a specific URL protocol 5. Needs to be launched from another App, probably using a URL protocol that will need to be defined. I am pretty sure that everything except #5 is pretty straightforward. I will need the Livecode project back. I will handle getting built and submitted to the app store. If this sounds interesting to you, please get in touch with me at todd at geistinteractive.com. Thank you Todd -- Todd Geist (805) 419-9382 From todd at geistinteractive.com Fri Jan 27 16:43:43 2012 From: todd at geistinteractive.com (Todd Geist) Date: Fri, 27 Jan 2012 13:43:43 -0800 Subject: No subject Message-ID: Hello, I need a very simple camera app built for the iPad. I would do it myself, but I am just too busy. So I am hopeful I can find somebody who can get this thing built for me. This is to serve a small niche market. It will serve as a companion app to another product I am already selling. Features: 1. take a photo 2. downsize the photo 3. Base64 encode the image 4. Send the resulting string to another application through a specific URL protocol 5. Needs to be launched from another App, probably using a URL protocol that will need to be defined. I am pretty sure that everything except #5 is pretty straightforward. I will need the Livecode project back. I will handle getting built and submitted to the app store. If this sounds interesting to you, please get in touch with me at todd at geistinteractive.com. Thank you Todd -- Todd Geist (805) 419-9382 From todd at geistinteractive.com Fri Jan 27 16:45:06 2012 From: todd at geistinteractive.com (Todd Geist) Date: Fri, 27 Jan 2012 13:45:06 -0800 Subject: iPad Camera App Development needed Message-ID: Hello, (sorry for the double post. I forgot the subject ) I need a very simple camera app built for the iPad. I would do it myself, but I am just too busy. So I am hopeful I can find somebody who can get this thing built for me. This is to serve a small niche market. It will serve as a companion app to another product I am already selling. Features: 1. take a photo 2. downsize the photo 3. Base64 encode the image 4. Send the resulting string to another application through a specific URL protocol 5. Needs to be launched from another App, probably using a URL protocol that will need to be defined. I am pretty sure that everything except #5 is pretty straightforward. I will need the Livecode project back. I will handle getting built and submitted to the app store. If this sounds interesting to you, please get in touch with me at todd at geistinteractive.com. Thank you -- Todd Geist (805) 419-9382 From dunbarx at aol.com Fri Jan 27 16:46:09 2012 From: dunbarx at aol.com (dunbarx at aol.com) Date: Fri, 27 Jan 2012 16:46:09 -0500 (EST) Subject: Send and Dispatch without parameters In-Reply-To: <07166EEC-0BFC-4505-AEDE-533C675BD2A9@twft.com> References: <07166EEC-0BFC-4505-AEDE-533C675BD2A9@twft.com> Message-ID: <8CEAB5436C002C3-2AD8-6B16@webmail-m153.sysops.aol.com> Bob. Nope, it was me. Name conflict; you don't want to know. The method works fine. LC messages like "mouseUp" or custom ones like "yourMessage" all pass correctly. Parameters are not pertinent. Check your stack. I had another object with the same name as the intended target. My message was passed all right, but to the wrong destination. Craig Newman -----Original Message----- From: Bob Sneidar To: How to use LiveCode Sent: Fri, Jan 27, 2012 3:57 pm Subject: Send and Dispatch without parameters Hi all. I just noticed that if you send or dispatch to an object and you have specified parameters in the objects handler, but you don't provide the parameters when you send or dispatch, the call will silently fail. This seems only to occur for built in handlers, like mouseUp for example. If I have a button called "myButton" with a mouseUp handler: on mouseUp pButtonNum put "This is a test" end mouseUp if I: send "mouseUp" to button "myButton" or: dispatch "mouseUp" to button "myButton" The button will never get the message, and no error is generated. This caught me quiet off guard, as you can for a custom handler just call it, and even if you don't provide all the parameters, the handler gets called anyway. However, if I have a custom handler: on testMe theMessage put "This is a successful test." end testMe And then I send or dispatch without the parameter, the handler gets called fine! Is this normal or expected behavior? I cannot think that this kind of ambiguity is what the devs intended. If someone can give me a reason for why it has to be this way, I can just watch for it in the future. If not I suppose I should submit a bug report. In the meantime, I suppose the best practice is to never put the business end of your code in the built in handlers, but rather call a command or function that does all the work. That way you can send or dispatch to that handler and not to the built in one. 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 Fri Jan 27 17:08:36 2012 From: pete at mollysrevenge.com (Pete) Date: Fri, 27 Jan 2012 14:08:36 -0800 Subject: Send and Dispatch without parameters In-Reply-To: <07166EEC-0BFC-4505-AEDE-533C675BD2A9@twft.com> References: <07166EEC-0BFC-4505-AEDE-533C675BD2A9@twft.com> Message-ID: send/dispatch with no parms works fine for me. Where are you sending the message from - same card as the target, same stack, different stack? Shouldn't make any difference but if there is a problem, gonna need to know the details. Pete On Fri, Jan 27, 2012 at 12:54 PM, Bob Sneidar wrote: > Hi all. > > I just noticed that if you send or dispatch to an object and you have > specified parameters in the objects handler, but you don't provide the > parameters when you send or dispatch, the call will silently fail. This > seems only to occur for built in handlers, like mouseUp for example. > > If I have a button called "myButton" with a mouseUp handler: > > on mouseUp pButtonNum > put "This is a test" > end mouseUp > > if I: > send "mouseUp" to button "myButton" > > or: > dispatch "mouseUp" to button "myButton" > > The button will never get the message, and no error is generated. This > caught me quiet off guard, as you can for a custom handler just call it, > and even if you don't provide all the parameters, the handler gets called > anyway. > > However, if I have a custom handler: > > on testMe theMessage > put "This is a successful test." > end testMe > > And then I send or dispatch without the parameter, the handler gets called > fine! Is this normal or expected behavior? I cannot think that this kind of > ambiguity is what the devs intended. If someone can give me a reason for > why it has to be this way, I can just watch for it in the future. If not I > suppose I should submit a bug report. > > In the meantime, I suppose the best practice is to never put the business > end of your code in the built in handlers, but rather call a command or > function that does all the work. That way you can send or dispatch to that > handler and not to the built in one. > > 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 > > -- Pete Molly's Revenge From bobs at twft.com Fri Jan 27 17:18:46 2012 From: bobs at twft.com (Bob Sneidar) Date: Fri, 27 Jan 2012 14:18:46 -0800 Subject: Send and Dispatch without parameters In-Reply-To: <8CEAB5436C002C3-2AD8-6B16@webmail-m153.sysops.aol.com> References: <07166EEC-0BFC-4505-AEDE-533C675BD2A9@twft.com> <8CEAB5436C002C3-2AD8-6B16@webmail-m153.sysops.aol.com> Message-ID: <6AC0361D-D996-4E4D-A168-61767F74D499@twft.com> Wait I just thought of why it seemed to not work. In the mouseUp code I had the conditional "if pMouseBtnNum is 1 then...". DUH! If I don't pass 1 as a parameter, nothing inside the conditional will execute! Criminy that was stupid. Bob On Jan 27, 2012, at 1:46 PM, DunbarX at aol.com wrote: > Bob. > > > Nope, it was me. Name conflict; you don't want to know. > > > The method works fine. LC messages like "mouseUp" or custom ones like "yourMessage" all pass correctly. Parameters are not pertinent. Check your stack. I had another object with the same name as the intended target. My message was passed all right, but to the wrong destination. > > > Craig Newman > > > -----Original Message----- > From: Bob Sneidar > To: How to use LiveCode > Sent: Fri, Jan 27, 2012 3:57 pm > Subject: Send and Dispatch without parameters > > > Hi all. > > I just noticed that if you send or dispatch to an object and you have specified > parameters in the objects handler, but you don't provide the parameters when you > send or dispatch, the call will silently fail. This seems only to occur for > built in handlers, like mouseUp for example. > > If I have a button called "myButton" with a mouseUp handler: > > on mouseUp pButtonNum > put "This is a test" > end mouseUp > > if I: > send "mouseUp" to button "myButton" > > or: > dispatch "mouseUp" to button "myButton" > > The button will never get the message, and no error is generated. This caught me > quiet off guard, as you can for a custom handler just call it, and even if you > don't provide all the parameters, the handler gets called anyway. > > However, if I have a custom handler: > > on testMe theMessage > put "This is a successful test." > end testMe > > And then I send or dispatch without the parameter, the handler gets called fine! > Is this normal or expected behavior? I cannot think that this kind of ambiguity > is what the devs intended. If someone can give me a reason for why it has to be > this way, I can just watch for it in the future. If not I suppose I should > submit a bug report. > > In the meantime, I suppose the best practice is to never put the business end of > your code in the built in handlers, but rather call a command or function that > does all the work. That way you can send or dispatch to that handler and not to > the built in one. > > 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 martyknapp at comcast.net Fri Jan 27 22:20:21 2012 From: martyknapp at comcast.net (Marty Knapp) Date: Fri, 27 Jan 2012 19:20:21 -0800 Subject: Scrolling in even increments Message-ID: <4F236975.9010103@comcast.net> If I wanted a datagrid to scroll by an amount evenly divisible by 20 pixels, is there a way to do that? I've tinkered with the lineIncrement and scrollbarLineDec/scrollbarLineInc but I'm not getting anywhere. What about dragging the scrollbar thumb or clicking above and below? Any ideas? Thanks, Marty From bobs at twft.com Fri Jan 27 23:08:37 2012 From: bobs at twft.com (Bob Sneidar) Date: Fri, 27 Jan 2012 20:08:37 -0800 Subject: Scrolling in even increments In-Reply-To: <4F236975.9010103@comcast.net> References: <4F236975.9010103@comcast.net> Message-ID: One thing I did when I wanted to see what messages were being sent to the data grid during an operation is I put a dgprops handler in the data grid script and then put the property that was being passed as an argument. Perhaps that would help? Bob Sneidar IT Manager Calvary Chapel CM Sent from iPhone On Jan 27, 2012, at 19:20, Marty Knapp wrote: > If I wanted a datagrid to scroll by an amount evenly divisible by 20 pixels, is there a way to do that? I've tinkered with the lineIncrement and scrollbarLineDec/scrollbarLineInc but I'm not getting anywhere. What about dragging the scrollbar thumb or clicking above and below? Any ideas? > > Thanks, > Marty > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sat Jan 28 00:30:19 2012 From: gerry.orkin at gmail.com (Gerry Orkin) Date: Sat, 28 Jan 2012 16:30:19 +1100 Subject: iOS: multiline (UITextView) control weirdness In-Reply-To: References: Message-ID: <13DD8947-B3D7-45D7-813F-D0856E145673@gmail.com> It's roll your own unfortunately. Shouldn't be too hat to code - just do a repeat loop through all your controls subtracting the right amount from the second item in their loc. so the opposite wen finished editing. Gerry -- Sent from my iPhone. On 28/01/2012, at 3:28 AM, Chris Sheffield wrote: > Okay, time for another one. Hopefully someone has experienced this and has a solution. > > I've got an iPad app, portrait only. At one point I'm creating a multiline text control (UITextView) for input. The control is created near the bottom of the screen. So when the keyboard pops up, the input area is getting partially obscured. In other (non-LiveCode) apps, it seems like I remember seeing the entire view simply slide up so that this doesn't happen, and the input area rests nicely just above the keyboard. Do we have a way to do this in LiveCode? I've checked all the properties and methods for UITextView and can't figure this out. Or is this custom behavior that just needs to be coded? If the latter, does anyone have an example and/or hints or tips to make it work smoothly? > > Thanks, > Chris > > > -- > Chris Sheffield > Read Naturally, Inc. > www.readnaturally.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 brami.serge at gmail.com Sat Jan 28 02:17:05 2012 From: brami.serge at gmail.com (Serge Brami) Date: Sat, 28 Jan 2012 08:17:05 +0100 Subject: select after text Message-ID: <5A1E40B4-6CA8-47AD-8E31-0FA7B05FA328@gmail.com> This script in a focusable and not locked field : on openfield put the long date after me select after text of me end openfield simple but doesn't work : the insertion point is never placed at the end of the text ... any idea ? From revdev at pdslabs.net Sat Jan 28 03:07:34 2012 From: revdev at pdslabs.net (Phil Davis) Date: Sat, 28 Jan 2012 00:07:34 -0800 Subject: select after text In-Reply-To: <5A1E40B4-6CA8-47AD-8E31-0FA7B05FA328@gmail.com> References: <5A1E40B4-6CA8-47AD-8E31-0FA7B05FA328@gmail.com> Message-ID: <4F23ACC6.5020009@pdslabs.net> Is the autoHilite of the field is turned on? That might make a difference. Phil Davis On 1/27/12 11:17 PM, Serge Brami wrote: > This script in a focusable and not locked field : > > on openfield > put the long date after me > select after text of me > end openfield > > > simple but doesn't work : the insertion point is never placed at the end of the text ... > any idea ? > _______________________________________________ > use-livecode mailing list > use-livecode 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 ken at kencorey.com Sat Jan 28 03:53:40 2012 From: ken at kencorey.com (Ken Corey) Date: Sat, 28 Jan 2012 08:53:40 +0000 Subject: Looking for a "wait until x or timeout" design pattern.. Message-ID: <4F23B794.3030601@kencorey.com> I've been working on a pinch library for a week or so, and I have complained about the jerkiness. I am thinking that the problem is that it's /too/ repsonsive. The instant one touch moves, it's causing the pinchMove event to be generated. This is fine if nothing else truly has moved, but if the two move events are sent back to back, they should both be handled before sending a pinchMove message...not two different pinchMove events. The pinchMove event should only be sent once the status of all the touches have been updated...but of course, we have no guarantee that there's a touchMove coming for each point, nor the order in which they will come... So, in pseudo code, what I'd like to do is: on touchMove i,x,y store x,y into positionArray[i] -- update the postition for a touch wait until (got touch events from all touches) or \ (30 milliseconds have passed) pinchMove blah,blah,blah end touchMove But the wait command seems to either wait 100 milliseconds or wait until , but not both. Then I thought to provide a timeout with a 'send "timeout" in xx milliseconds', but cancel it if we got events on all touches first. Couldn't see how to cancel a pending send. I guess I could break my timeout period down and do a series of shorter waits (sort of slow polling), with a fall-through at the end of the timeout. Also, all other events still need to be handled in the normal way...can't lock the application for those 30 seconds. Thoughts? -Ken From m.schonewille at economy-x-talk.com Sat Jan 28 05:03:57 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sat, 28 Jan 2012 11:03:57 +0100 Subject: select after text In-Reply-To: <5A1E40B4-6CA8-47AD-8E31-0FA7B05FA328@gmail.com> References: <5A1E40B4-6CA8-47AD-8E31-0FA7B05FA328@gmail.com> Message-ID: <1A1894A4-8406-4766-8A05-83B8B5F9EABF@economy-x-talk.com> Serge, on openField send "selectAfterMe" to me in 0 millisecs end openField on selectAfterMe put the long date after me select after text of me end selectAfterMe -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 28 jan 2012, at 08:17, Serge Brami wrote: > This script in a focusable and not locked field : > > on openfield > put the long date after me > select after text of me > end openfield > > > simple but doesn't work : the insertion point is never placed at the end of the text ... > any idea ? From scott at tactilemedia.com Sat Jan 28 05:04:04 2012 From: scott at tactilemedia.com (Scott Rossi) Date: Sat, 28 Jan 2012 02:04:04 -0800 Subject: Looking for a "wait until x or timeout" design pattern.. In-Reply-To: <4F23B794.3030601@kencorey.com> Message-ID: You might try: wait 30 millisecs with messages Regards, Scott Rossi Creative Director Tactile Media, UX Design Recently, Ken Corey wrote: > I've been working on a pinch library for a week or so, and I have > complained about the jerkiness. I am thinking that the problem is that > it's /too/ repsonsive. > > The instant one touch moves, it's causing the pinchMove event to be > generated. This is fine if nothing else truly has moved, but if the two > move events are sent back to back, they should both be handled before > sending a pinchMove message...not two different pinchMove events. > > The pinchMove event should only be sent once the status of all the > touches have been updated...but of course, we have no guarantee that > there's a touchMove coming for each point, nor the order in which they > will come... > > So, in pseudo code, what I'd like to do is: > > on touchMove i,x,y > store x,y into positionArray[i] -- update the postition for a touch > > wait until (got touch events from all touches) or \ > (30 milliseconds have passed) > > pinchMove blah,blah,blah > end touchMove > > But the wait command seems to either wait 100 milliseconds or wait until > , but not both. > > Then I thought to provide a timeout with a 'send "timeout" in xx > milliseconds', but cancel it if we got events on all touches first. > Couldn't see how to cancel a pending send. > > I guess I could break my timeout period down and do a series of shorter > waits (sort of slow polling), with a fall-through at the end of the timeout. > > Also, all other events still need to be handled in the normal > way...can't lock the application for those 30 seconds. > > Thoughts? > > -Ken > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sat Jan 28 08:35:19 2012 From: pmbrig at gmail.com (Peter M. Brigham, MD) Date: Sat, 28 Jan 2012 08:35:19 -0500 Subject: Alternate Form of printKeys() In-Reply-To: References: Message-ID: One little tweak: instead of > if theKey is not a number then > replace theKey with quote & theKey & quote in theKeyList > end if use if theKey is not a number then replace "[" & theKey & "]" with "[" & quote & theKey & quote & "]" in theKeyList end if I tried it with keys like [second][c][2] and your original replacement line gave me ["se"c"ond"] as one of the entries. What I liked about the original handlers was that the previous altPrintKeys would output a textual representation of the array in an intuitive outline form, so you could see at a glance the structure and contents of the array. Your new function converts an array to a text string but it's really hard to tell by looking at the string how the array is structured, so it has limited value to me. For what purpose would you be using the new version of these functions? -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Jan 26, 2012, at 6:12 PM, Bob Sneidar wrote: > Here are the functions. I have tested them and they seem to be fine, but any bug reports would be appreciated. Note that there is another distinct advantage of these functions over the original printKeys(): These functions allow for returns and tabs in the values. I convert them to ascii(30) and ascii(11) respectively when I return text and back again when I return an array. > > Also bear in mind I do no error checking. Who knows what would happen if you pass something other than what is expected. Hang on to your socks! :-) > > function altPrintKeys @pArray, theKeyList, pFullData > put numtochar(11) into vertTab > put numtochar(30) into altCr > put the keys of pArray into theKeys > sort theKeys numeric > > repeat for each line theKey in theKeys > put "[" & theKey & "] " after theKeyList > if theKey is not a number then > replace theKey with quote & theKey & quote in theKeyList > end if > if pArray[theKey] is an array then > put pArray[theKey] into theTempArray > put altPrintKeys(theTempArray, theKeyList, pFullData) after theText > put empty into the last word of theKeyList > delete the last char of theKeyList > put cr into the last char of theText > else > put "pArray " & the last word of theKeyList into theKeyName > -- put "put " & theKeyName & " into theValue" into theCommand > -- do theCommand > put the value of theKeyName into theValue > replace tab with vertTab in theValue > replace return with altCr in theValue > put theKeyList & tab & theValue & comma after theText > put empty into the last word of theKeyList > delete the last char of theKeyList > end if > end repeat > > return theText > end altPrintKeys > > function altKeysToArray theText > put numtochar(11) into vertTab > put numtochar(30) into altCr > repeat for each line theRecord in theText > repeat for each item theKeyData in theRecord > put the itemdelimiter into theOldDelim > set the itemdelimiter to tab > put item 1 of theKeyData into theKeyList > put item 2 of theKeyData into theValue > replace vertTab with tab in theValue > replace altCr with return in theValue > set the itemdelimiter to theOldDelim > put "put " & quote & theValue & quote & " into theArrayA " & theKeylist into theCommand > do theCommand > end repeat > end repeat > > return theArrayA > end altKeysToArray > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From artdivito at sbcglobal.net Sat Jan 28 13:40:32 2012 From: artdivito at sbcglobal.net (Art DiVito) Date: Sat, 28 Jan 2012 10:40:32 -0800 (PST) Subject: pointer tool on Macs Message-ID: <1327776032.20835.YahooMailClassic@web81208.mail.mud.yahoo.com> My program uses many tools. The first time I use the Pointer tool, its icon is fine: tail-less arrow with a little plus sign. But then it reverts to the same icon as the Browse tool (arrow with tail). It still functions perfectly as the Pointer tool, but a user would be very confused. Ironically, this problem does not occur on a PC; only on Macs. Any ideas? Thanks. (Also, I could still use help making this thing a polished app. I am not a programmer.) From revdev at pdslabs.net Sat Jan 28 13:56:17 2012 From: revdev at pdslabs.net (Phil Davis) Date: Sat, 28 Jan 2012 10:56:17 -0800 Subject: select after text In-Reply-To: <4F23ACC6.5020009@pdslabs.net> References: <5A1E40B4-6CA8-47AD-8E31-0FA7B05FA328@gmail.com> <4F23ACC6.5020009@pdslabs.net> Message-ID: <4F2444D1.603@pdslabs.net> Wrong - autoHilite doesn't make a difference. Serge, your script works fine in a simple test stack, so I'm guessing some other script is getting in the way. Is that possible? Phil On 1/28/12 12:07 AM, Phil Davis wrote: > Is the autoHilite of the field is turned on? That might make a difference. > > Phil Davis > > > On 1/27/12 11:17 PM, Serge Brami wrote: >> This script in a focusable and not locked field : >> >> on openfield >> put the long date after me >> select after text of me >> end openfield >> >> >> simple but doesn't work : the insertion point is never placed at the end of >> the text ... >> any idea ? >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Sat Jan 28 14:12:10 2012 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Sat, 28 Jan 2012 11:12:10 -0800 Subject: select after text In-Reply-To: <4F2444D1.603@pdslabs.net> References: <5A1E40B4-6CA8-47AD-8E31-0FA7B05FA328@gmail.com> <4F23ACC6.5020009@pdslabs.net> <4F2444D1.603@pdslabs.net> Message-ID: Mark's script works perfectly, except I changed 'put the long date after me' to into "put the long date into me" otherwise one gets two entries next time. on openField send "selectAfterMe" to me in 0 millisecs end openField on selectAfterMe put the long date into me select after text of me end selectAfterMe Livecode is so fast on some machines that one needs some delay that send can provide. On 28 January 2012 10:56, Phil Davis wrote: > Wrong - autoHilite doesn't make a difference. > > Serge, your script works fine in a simple test stack, so I'm guessing some > other script is getting in the way. Is that possible? > > Phil > > > > On 1/28/12 12:07 AM, Phil Davis wrote: > >> Is the autoHilite of the field is turned on? That might make a difference. >> >> Phil Davis >> >> >> On 1/27/12 11:17 PM, Serge Brami wrote: >> >>> This script in a focusable and not locked field : >>> >>> on openfield >>> put the long date after me >>> select after text of me >>> end openfield >>> >>> >>> simple but doesn't work : the insertion point is never placed at the end >>> of the text ... >>> any idea ? >>> ______________________________**_________________ >>> use-livecode mailing list >>> use-livecode 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 > -- Stephen Barncard San Francisco Ca. USA more about sqb From charles at buchwald.ca Sat Jan 28 14:28:04 2012 From: charles at buchwald.ca (Charles E Buchwald) Date: Sat, 28 Jan 2012 13:28:04 -0600 Subject: iPad App development needed In-Reply-To: References: Message-ID: <4DFD1B73-5950-4778-9EA3-34F0B14B3225@buchwald.ca> Hi Todd, I'm interested. I'm a long time user of LC and its antecedents, with a small consulting/development business. Lots more here: http://buchwald.ca ... and here: http://ca.linkedin.com/in/charlesbuchwald I can work by the hour or by project quote. By the hour is usually less expensive. Just curious: why not incorporate the "camera stack" directly into the app, instead of making it a separate app? Cheers, - Charles On 2012-01-27, at 3:41 PM, Todd Geist wrote: > Hello, > > I need a very simple camera app built for the iPad. I would do it myself, > but I am just too busy. So I am hopeful I can find somebody who can get > this thing built for me. This is to serve a small niche market. It will > serve as a companion app to another product I am already selling. > > Features: > > 1. take a photo > 2. downsize the photo > 3. Base64 encode the image > 4. Send the resulting string to another application through a specific > URL protocol > 5. Needs to be launched from another App, probably using a URL protocol > that will need to be defined. > > I am pretty sure that everything except #5 is pretty straightforward. I > will need the Livecode project back. I will handle getting built and > submitted to the app store. > > If this sounds interesting to you, please get in touch with me at > todd at geistinteractive.com. > > Thank you > > Todd > > -- > Todd Geist > > > (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 -- Charles E. Buchwald Charles Buchwald & Friends "Simply better smartphone apps." http://buchwald.ca Toll Free US & Canada: 1-866-376-3842 email: Charles at Buchwald.ca Skype: charles_buchwald Vancouver ? New York City ? Mexico DF Member of the 02 Global Network for Sustainable Design ? Connect on LinkedIn ? Follow me on Twitter ? Read my blog ? Connect on Facebook Please consider the environment before printing this email. From pete at mollysrevenge.com Sat Jan 28 16:15:09 2012 From: pete at mollysrevenge.com (Pete) Date: Sat, 28 Jan 2012 13:15:09 -0800 Subject: Questions about screen and stack rectangle Message-ID: I'm in the midst of dealing with adjusting stack sizes to fit within the user's screen resolution. I guess I'm looking for confirmation of a few things since I've made assumptions in the past that turned out to be wrong! Starting with the screenRect. Dictionary says the working screenRect takes account of screen decorations. On a Mac, looks like that means the system menu bar at the top of the screen (22 pixels). It also mentions the dock, but unless the dock is specified to be permanently visible it only allows 4 pixels for it. If the dock is always visible, then it does seem to take that into account. Next I'm looking at the rectangle of a stack. Once again taking the dictionary definition, it says a stack's rectangle is relative to the top and left of the screen. However, if I create a stack that is the full height of the screen, with it's top aligned with the bottom of the Mac system menu bar, the top of the stack is reported to be 44, whereas the working screenRect top is 22. I'm concluding that the stack rectangle is measured from the bottom of the stack decorations bar. Finally, I'm wondering how running on a Windows machine affects any of this. For example, Windows includes a menu bar at the top of each window right underneath the decorations bar. Is the width of that menu bar taken into account in the stack's rectangle, in addition to the decorations bar? Thanks for any confirmation/enlightenment! -- Pete Molly's Revenge From revdev at pdslabs.net Sat Jan 28 16:58:22 2012 From: revdev at pdslabs.net (Phil Davis) Date: Sat, 28 Jan 2012 13:58:22 -0800 Subject: Questions about screen and stack rectangle In-Reply-To: References: Message-ID: <4F246F7E.4060001@pdslabs.net> Pete, Check out the windowBoundingRect - that might help. Phil On 1/28/12 1:15 PM, Pete wrote: > I'm in the midst of dealing with adjusting stack sizes to fit within the > user's screen resolution. I guess I'm looking for confirmation of a few > things since I've made assumptions in the past that turned out to be wrong! > > Starting with the screenRect. Dictionary says the working screenRect takes > account of screen decorations. On a Mac, looks like that means the system > menu bar at the top of the screen (22 pixels). It also mentions the dock, > but unless the dock is specified to be permanently visible it only allows 4 > pixels for it. If the dock is always visible, then it does seem to take > that into account. > > Next I'm looking at the rectangle of a stack. Once again taking the > dictionary definition, it says a stack's rectangle is relative to the top > and left of the screen. However, if I create a stack that is the full > height of the screen, with it's top aligned with the bottom of the Mac > system menu bar, the top of the stack is reported to be 44, whereas the > working screenRect top is 22. I'm concluding that the stack rectangle is > measured from the bottom of the stack decorations bar. > > Finally, I'm wondering how running on a Windows machine affects any of > this. For example, Windows includes a menu bar at the top of each window > right underneath the decorations bar. Is the width of that menu bar taken > into account in the stack's rectangle, in addition to the decorations bar? > > Thanks for any confirmation/enlightenment! > > -- Phil Davis PDS Labs Professional Software Development http://pdslabs.net From todd at geistinteractive.com Sat Jan 28 20:56:53 2012 From: todd at geistinteractive.com (Todd Geist) Date: Sat, 28 Jan 2012 17:56:53 -0800 Subject: iPad App development needed In-Reply-To: <4DFD1B73-5950-4778-9EA3-34F0B14B3225@buchwald.ca> References: <4DFD1B73-5950-4778-9EA3-34F0B14B3225@buchwald.ca> Message-ID: Hi Charles, The "other" app is not a Live Code app. Its FileMaker Go. FileMaker Go is a version of FileMaker Pro that runs on iOS. I will contact you back channel about your offer. Thanks very much for responding Todd On Sat, Jan 28, 2012 at 11:28 AM, Charles E Buchwald wrote: > Just curious: why not incorporate the "camera stack" directly into the > app, instead of making it a separate app? -- Todd Geist (805) 419-9382 From lfredricks at proactive-intl.com Sun Jan 29 02:05:05 2012 From: lfredricks at proactive-intl.com (Lynn Fredricks) Date: Sat, 28 Jan 2012 23:05:05 -0800 Subject: OT: Shade 3D for only $29 on MacZOT Message-ID: <6D3B860B440D4714AB6CA09604706E6D@GATEWAY> Hi all, If you are looking for a 3D modeller for making content for Franklin 3D for LiveCode, you may want to check out the weekend offer on MacZOT of Shade Basic for only $29, regularly $99. This offer ends Sunday night. Best regards, Lynn Fredricks Mirye Software Publishing http://www.mirye.com From brami.serge at gmail.com Sun Jan 29 03:49:06 2012 From: brami.serge at gmail.com (Serge Brami) Date: Sun, 29 Jan 2012 09:49:06 +0100 Subject: select after text In-Reply-To: <4F2444D1.603@pdslabs.net> References: <5A1E40B4-6CA8-47AD-8E31-0FA7B05FA328@gmail.com> <4F23ACC6.5020009@pdslabs.net> <4F2444D1.603@pdslabs.net> Message-ID: <8B527099-5275-41D9-82D7-5FDA86BA5582@gmail.com> Thanks I have tried the same thing in a simple test stack, it is the same thing , it works in fact only if i open the field clicking inside after the text , but if i click before or into the text the insertion point is put at the loc of the click . I think Mark is right its a problem of delay I am going to try Thanks Le 28 janv. 2012 ? 19:56, Phil Davis a ?crit : > Wrong - autoHilite doesn't make a difference. > > Serge, your script works fine in a simple test stack, so I'm guessing some other script is getting in the way. Is that possible? > > Phil > > > On 1/28/12 12:07 AM, Phil Davis wrote: >> Is the autoHilite of the field is turned on? That might make a difference. >> >> Phil Davis >> >> >> On 1/27/12 11:17 PM, Serge Brami wrote: >>> This script in a focusable and not locked field : >>> >>> on openfield >>> put the long date after me >>> select after text of me >>> end openfield >>> >>> >>> simple but doesn't work : the insertion point is never placed at the end of the text ... >>> any idea ? >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 m.schonewille at economy-x-talk.com Sun Jan 29 05:51:08 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sun, 29 Jan 2012 11:51:08 +0100 Subject: select after text In-Reply-To: <8B527099-5275-41D9-82D7-5FDA86BA5582@gmail.com> References: <5A1E40B4-6CA8-47AD-8E31-0FA7B05FA328@gmail.com> <4F23ACC6.5020009@pdslabs.net> <4F2444D1.603@pdslabs.net> <8B527099-5275-41D9-82D7-5FDA86BA5582@gmail.com> Message-ID: <2CA6D005-AF04-424D-861B-4CC5F85DF3FB@economy-x-talk.com> Hi, It isn't a problem of delay but a problem of order. You want to make sure that selecting the text is the last thing that happens, e.g. after instead of before the engine focuses on the first field. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 29 jan 2012, at 09:49, Serge Brami wrote: > Thanks > I have tried the same thing in a simple test stack, it is the same thing , it works in fact only if i open the field clicking inside after the text , but if i click before or into the text the insertion point is put > at the loc of the click . > > I think Mark is right its a problem of delay > I am going to try > > Thanks From dixonja at hotmail.co.uk Sun Jan 29 13:07:23 2012 From: dixonja at hotmail.co.uk (John Dixon) Date: Sun, 29 Jan 2012 18:07:23 +0000 Subject: Falling at the last fence... Message-ID: I have an app ready to upload to Apple for review through iTunes connect... but when I try and use the Application Loader to upload, I get a message ' Application failed codesign verification. The signature was invalid, or it was not signed with an iPhone distribution Certificate'... I can see the 'iphone developer' & 'iphone distribution' certificate in the keyChain app and am told that they are both valid, so assume that something is not 'connected' correctly'.... anyone been through this grim experience that might have some insight into this problem ? Dixie From m.schonewille at economy-x-talk.com Sun Jan 29 13:36:54 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sun, 29 Jan 2012 19:36:54 +0100 Subject: Falling at the last fence... In-Reply-To: References: Message-ID: Hi Dixie, Can you put up a screenshot of the error somewhere? Which version of LC are you using? Have you selected the correct application distribution profile in the standalone settings? -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 29 jan 2012, at 19:07, John Dixon wrote: > > I have an app ready to upload to Apple for review through iTunes connect... but when I try and use the Application Loader to upload, I get a message ' Application failed codesign verification. The signature was invalid, or it was not signed with an iPhone distribution Certificate'... > > I can see the 'iphone developer' & 'iphone distribution' certificate in the keyChain app and am told that they are both valid, so assume that something is not 'connected' correctly'.... anyone been through this grim experience that might have some insight into this problem ? > > Dixie From iowahengst at mac.com Sun Jan 29 13:38:38 2012 From: iowahengst at mac.com (Randy Hengst) Date: Sun, 29 Jan 2012 12:38:38 -0600 Subject: Falling at the last fence... In-Reply-To: References: Message-ID: Hello Dixie, Well, make sure you've selected the correct profile on the applications settings page. I've selected the wrong one before. be well, randy ----- On Jan 29, 2012, at 12:07 PM, John Dixon wrote: > > I have an app ready to upload to Apple for review through iTunes connect... but when I try and use the Application Loader to upload, I get a message ' Application failed codesign verification. The signature was invalid, or it was not signed with an iPhone distribution Certificate'... > > I can see the 'iphone developer' & 'iphone distribution' certificate in the keyChain app and am told that they are both valid, so assume that something is not 'connected' correctly'.... anyone been through this grim experience that might have some insight into this problem ? > > Dixie > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sun Jan 29 13:47:11 2012 From: dixonja at hotmail.co.uk (John Dixon) Date: Sun, 29 Jan 2012 18:47:11 +0000 Subject: Falling at the last fence... In-Reply-To: References: , Message-ID: Mark, A screenshot is with a posting of the same title as this topic in the forum... I am using lc 5.0.2... I only have the one distribution profile... Dixie..:-) > Hi Dixie, > Can you put up a screenshot of the error somewhere? > Which version of LC are you using? > Have you selected the correct application distribution profile in the standalone settings? > > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za > > On 29 jan 2012, at 19:07, John Dixon wrote: > > > > > I have an app ready to upload to Apple for review through iTunes connect... but when I try and use the Application Loader to upload, I get a message ' Application failed codesign verification. The signature was invalid, or it was not signed with an iPhone distribution Certificate'... > > > > I can see the 'iphone developer' & 'iphone distribution' certificate in the keyChain app and am told that they are both valid, so assume that something is not 'connected' correctly'.... anyone been through this grim experience that might have some insight into this problem ? > > > > Dixie > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jan 29 14:07:13 2012 From: pete at mollysrevenge.com (Pete) Date: Sun, 29 Jan 2012 11:07:13 -0800 Subject: Questions about screen and stack rectangle In-Reply-To: <4F246F7E.4060001@pdslabs.net> References: <4F246F7E.4060001@pdslabs.net> Message-ID: Thanks Phil, I'll check it out. On Sat, Jan 28, 2012 at 1:58 PM, Phil Davis wrote: > Pete, > > Check out the windowBoundingRect - that might help. > > Phil > > > > On 1/28/12 1:15 PM, Pete wrote: > >> I'm in the midst of dealing with adjusting stack sizes to fit within the >> user's screen resolution. I guess I'm looking for confirmation of a few >> things since I've made assumptions in the past that turned out to be >> wrong! >> >> Starting with the screenRect. Dictionary says the working screenRect >> takes >> account of screen decorations. On a Mac, looks like that means the system >> menu bar at the top of the screen (22 pixels). It also mentions the dock, >> but unless the dock is specified to be permanently visible it only allows >> 4 >> pixels for it. If the dock is always visible, then it does seem to take >> that into account. >> >> Next I'm looking at the rectangle of a stack. Once again taking the >> dictionary definition, it says a stack's rectangle is relative to the top >> and left of the screen. However, if I create a stack that is the full >> height of the screen, with it's top aligned with the bottom of the Mac >> system menu bar, the top of the stack is reported to be 44, whereas the >> working screenRect top is 22. I'm concluding that the stack rectangle is >> measured from the bottom of the stack decorations bar. >> >> Finally, I'm wondering how running on a Windows machine affects any of >> this. For example, Windows includes a menu bar at the top of each window >> right underneath the decorations bar. Is the width of that menu bar taken >> into account in the stack's rectangle, in addition to the decorations bar? >> >> Thanks for any confirmation/enlightenment! >> >> >> > -- > 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 > > -- Pete Molly's Revenge From iowahengst at mac.com Sun Jan 29 14:19:00 2012 From: iowahengst at mac.com (Randy Hengst) Date: Sun, 29 Jan 2012 13:19:00 -0600 Subject: Falling at the last fence... In-Reply-To: References: Message-ID: <2C319924-78C9-4E6E-B270-89EC79D5CA26@mac.com> As far as I know, you need at least two profiles? a provisioning profile that allows you to load your app on your iPad/iPod. And a second one that allows you to send to Apple. be well, randy ---- On Jan 29, 2012, at 12:47 PM, John Dixon wrote: > > > Mark, > > A screenshot is with a posting of the same title as this topic in the forum... I am using lc 5.0.2... I only have the one distribution profile... > > Dixie..:-) > > >> Hi Dixie, >> Can you put up a screenshot of the error somewhere? >> Which version of LC are you using? >> Have you selected the correct application distribution profile in the standalone settings? >> >> Best regards, >> >> Mark Schonewille >> >> Economy-x-Talk Consulting and Software Engineering >> Homepage: http://economy-x-talk.com >> Twitter: http://twitter.com/xtalkprogrammer >> KvK: 50277553 >> >> Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za >> >> On 29 jan 2012, at 19:07, John Dixon wrote: >> >>> >>> I have an app ready to upload to Apple for review through iTunes connect... but when I try and use the Application Loader to upload, I get a message ' Application failed codesign verification. The signature was invalid, or it was not signed with an iPhone distribution Certificate'... >>> >>> I can see the 'iphone developer' & 'iphone distribution' certificate in the keyChain app and am told that they are both valid, so assume that something is not 'connected' correctly'.... anyone been through this grim experience that might have some insight into this problem ? >>> >>> Dixie >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 m.schonewille at economy-x-talk.com Sun Jan 29 14:21:38 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sun, 29 Jan 2012 20:21:38 +0100 Subject: Falling at the last fence... In-Reply-To: References: , Message-ID: <8B01CD9E-292E-419A-9E46-C04F24AE8008@economy-x-talk.com> Hi Dixie, I am pretty sure that something is wrong with your profile(s). You should have at least two provision profiles: a developer provisioning profile and a distribution provisioning profile. There are two different distribution provisioning profiles: one for ad-hoc distribution and one for the iTunes store. Additionally, you need an application disribution profile for your app that is not connected to the developers provisioning profile but to the other, iTunes store distribution provisioning profile. Yeah, I can imagine that reading Apple's documentation once isn't enough ;-) -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 29 jan 2012, at 19:47, John Dixon wrote: > > > Mark, > > A screenshot is with a posting of the same title as this topic in the forum... I am using lc 5.0.2... I only have the one distribution profile... > > Dixie..:-) > From ken at kencorey.com Sun Jan 29 14:38:06 2012 From: ken at kencorey.com (Ken Corey) Date: Sun, 29 Jan 2012 19:38:06 +0000 Subject: Looking for a "wait until x or timeout" design pattern.. In-Reply-To: <4F23B794.3030601@kencorey.com> References: <4F23B794.3030601@kencorey.com> Message-ID: <4F25A01E.80301@kencorey.com> Here's the basic idea of the code I needed. the touchMove event arrives in no particular order, and in no particular time. If you absolutely have to have a timeout, you can't just test for a timestamp on the next run of touchMove, because there might not be another touchMove. I'm not quite clear on what the "wait 50 milliseconds with messages" command does. Is that a more succinct way of putting it? -Ken -------------------8<------------------------------- -- Semaphore handling for touch movements -- -- This code is meant to be used to group random events that -- happen in a timeframe, group them together, and take action -- on those events as a whole. -- -- User input is pseudo-random, and we therefore cannot count on -- events coming in a particular order, or even coming at all. -- -- I use code similar to this to group several distinct user inputs and -- deal with several at a time. If no more events come within the -- delay period, we fire the handler. -- -- This isn't perfect, as there doesn't seem to be a way to cancel a -- pending send...so we guard against the send happening in -- performAction. -- -- What this means is that the delay (50 milliseconds below) must -- be chosen carefully so that there's only one group of data waiting -- to be processed. -- -- If the touchMove event happens but is delayed, and another -- touchMove event with immediate execution happens within the -- timeout period, the second touchMove event clears the sSemaphore, -- so then the delayed performAction from the first touchMove event -- is ignored. -- local sDetails,sSemaphore on touchMove pID,pX,pY -- check to see if we've dealt with pID before if pID is in the keys of sSemaphore then -- have seen it before so take action immediately put (pX&comma&pY) into sSemaphore[pID] send "performAction "&pID&","&pX&","&pY else -- haven't seen it, only do it after a delay put (pX&comma&pY) into sSemaphore[pID] send "performAction "&pID&","&pX&","&pY to me in 50 milliseconds end if end touchMove on performAction -- check to see if it's already been handled. if the number of lines in the keys of sSemaphore > 0 then -- nope, let's get busy -- code to deal with the data delete variable sSemaphore end if end performAction From stephenREVOLUTION2 at barncard.com Sun Jan 29 14:51:18 2012 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Sun, 29 Jan 2012 11:51:18 -0800 Subject: Looking for a "wait until x or timeout" design pattern.. In-Reply-To: <4F25A01E.80301@kencorey.com> References: <4F23B794.3030601@kencorey.com> <4F25A01E.80301@kencorey.com> Message-ID: you should check out Dar Scott's primers on Message Mechanics. Visually and technically informative. http://pages.swcp.com/dsc/revstacks.html On 29 January 2012 11:38, Ken Corey wrote: > Here's the basic idea of the code I needed. > > the touchMove event arrives in no particular order, and in no particular > time. > > If you absolutely have to have a timeout, you can't just test for a > timestamp on the next run of touchMove, because there might not be another > touchMove. > > I'm not quite clear on what the "wait 50 milliseconds with messages" > command does. Is that a more succinct way of putting it? > > -Ken > > > -------------------8<---------**---------------------- > -- Semaphore handling for touch movements > -- > -- This code is meant to be used to group random events that > -- happen in a timeframe, group them together, and take action > -- on those events as a whole. > -- > -- User input is pseudo-random, and we therefore cannot count on > -- events coming in a particular order, or even coming at all. > -- > -- I use code similar to this to group several distinct user inputs and > -- deal with several at a time. If no more events come within the > -- delay period, we fire the handler. > -- > -- This isn't perfect, as there doesn't seem to be a way to cancel a > -- pending send...so we guard against the send happening in > -- performAction. > -- > -- What this means is that the delay (50 milliseconds below) must > -- be chosen carefully so that there's only one group of data waiting > -- to be processed. > -- > -- If the touchMove event happens but is delayed, and another > -- touchMove event with immediate execution happens within the > -- timeout period, the second touchMove event clears the sSemaphore, > -- so then the delayed performAction from the first touchMove event > -- is ignored. > -- > > local sDetails,sSemaphore > > on touchMove pID,pX,pY > -- check to see if we've dealt with pID before > if pID is in the keys of sSemaphore then > -- have seen it before so take action immediately > put (pX&comma&pY) into sSemaphore[pID] > send "performAction "&pID&","&pX&","&pY > else > -- haven't seen it, only do it after a delay > put (pX&comma&pY) into sSemaphore[pID] > send "performAction "&pID&","&pX&","&pY to me in 50 milliseconds > end if > end touchMove > > on performAction > -- check to see if it's already been handled. > if the number of lines in the keys of sSemaphore > 0 then > -- nope, let's get busy > > -- code to deal with the data > > delete variable sSemaphore > end if > end performAction > > > > ______________________________**_________________ > use-livecode mailing list > use-livecode 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 janschenkel at yahoo.com Sun Jan 29 16:45:16 2012 From: janschenkel at yahoo.com (Jan Schenkel) Date: Sun, 29 Jan 2012 13:45:16 -0800 (PST) Subject: [ANN] Quartam PDF Library 1.1.3 Available Message-ID: <1327873516.62516.YahooMailNeo@web65414.mail.ac4.yahoo.com> This maintenance update to Quartam PDF Library fixes a bug with multiple images in a single PDF document. The cross-platform .zip archive can be downloaded at: http://downloads.quartam.com/qrtpdflib_113_xplatform.zip A web page with LiveCode Server / On-Rev demos is available at: http://quartam.on-rev.com/qrtpdfdemos.irev Quartam PDF Library for LiveCode - version 1.1 introduced support for transformations, transparency and blendmodes, gradients, clipping, text box fitting, inserting pages, compression, experimental support for including EPS files, as well as support for LiveCode Server and On-Rev. It is released as open source under a dual license (GNU Affero General Public License / Commercial License). 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 kray at sonsothunder.com Sun Jan 29 17:28:46 2012 From: kray at sonsothunder.com (Ken Ray) Date: Sun, 29 Jan 2012 16:28:46 -0600 Subject: Falling at the last fence... In-Reply-To: References: Message-ID: On Jan 29, 2012, at 12:07 PM, John Dixon wrote: > > I have an app ready to upload to Apple for review through iTunes connect... but when I try and use the Application Loader to upload, I get a message ' Application failed codesign verification. The signature was invalid, or it was not signed with an iPhone distribution Certificate'... > > I can see the 'iphone developer' & 'iphone distribution' certificate in the keyChain app and am told that they are both valid, so assume that something is not 'connected' correctly'.... anyone been through this grim experience that might have some insight into this problem ? Try AppResigner? it has helped me in the past for "no code signature found" errors - maybe it will work for you: http://www.gorbster.net/blog/archives/273 Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From ken at kencorey.com Sun Jan 29 17:55:04 2012 From: ken at kencorey.com (Ken Corey) Date: Sun, 29 Jan 2012 22:55:04 +0000 Subject: Looking for a "wait until x or timeout" design pattern.. In-Reply-To: References: <4F23B794.3030601@kencorey.com> <4F25A01E.80301@kencorey.com> Message-ID: <4F25CE48.5070601@kencorey.com> Now *that* is exactly what I needed. Should be required reading. Why didn't runrev hire this guy to write more of their manuals in this style? Thanks muchly! -Ken On 29/01/2012 19:51, stephen barncard wrote: > you should check out Dar Scott's primers on Message Mechanics. > > Visually and technically informative. > > http://pages.swcp.com/dsc/revstacks.html > From henshaw at me.com Sun Jan 29 18:06:49 2012 From: henshaw at me.com (Andrew Henshaw) Date: Sun, 29 Jan 2012 23:06:49 +0000 Subject: Falling at the last fence... In-Reply-To: References: Message-ID: <37976FC6-35D8-4216-9AB8-13754391D622@me.com> It might be a long shot, but I had an issue with a machine upgraded from OS X Snow Leopard to Lion, where xCode 3.x was installed on Snow Leopard, then upgraded to 4.x on Lion. It threw an error whenever I used the loader to send the app to Apple, just as you describe. Im just about to run out of battery (and away from my charger!), but if this might be the issue let me know and Ill see if I can dig out the fix details, I had to dig into the Lion installer package and run something, then everything worked as it should. Andy On 29 Jan 2012, at 18:07, John Dixon wrote: > > I have an app ready to upload to Apple for review through iTunes connect... but when I try and use the Application Loader to upload, I get a message ' Application failed codesign verification. The signature was invalid, or it was not signed with an iPhone distribution Certificate'... > > I can see the 'iphone developer' & 'iphone distribution' certificate in the keyChain app and am told that they are both valid, so assume that something is not 'connected' correctly'.... anyone been through this grim experience that might have some insight into this problem ? > > Dixie > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From henshaw at me.com Sun Jan 29 18:16:17 2012 From: henshaw at me.com (Andrew Henshaw) Date: Sun, 29 Jan 2012 23:16:17 +0000 Subject: Falling at the last fence... In-Reply-To: References: Message-ID: <080116B9-C85A-4957-8DCB-20F25971CBB4@me.com> Sorry about that, back to a computer with a power supply now! Assuming this isnt a simpler certificate issue, and you have installed xCode 3.2.x on Lion then this might help. Apparently 3.2.6 overwrites the productutil app, which is part of the submission process. To fix it (is this is the case), locate your Lion installer package (mine is in Applications), right click and select show package contents. Now, select contents, the shared support, and double click on InstallESD.dmg to mount that. Once you have that, open the virtual drive, select packages, then double click on BSD.pkg. This fixed the problem caused by the installation of 3.2.x on my system, you can then reboot, go back into Livecode, sign the app and send it off, fingers crossed! I hope this helps! Andy On 29 Jan 2012, at 18:07, John Dixon wrote: > > I have an app ready to upload to Apple for review through iTunes connect... but when I try and use the Application Loader to upload, I get a message ' Application failed codesign verification. The signature was invalid, or it was not signed with an iPhone distribution Certificate'... > > I can see the 'iphone developer' & 'iphone distribution' certificate in the keyChain app and am told that they are both valid, so assume that something is not 'connected' correctly'.... anyone been through this grim experience that might have some insight into this problem ? > > Dixie > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sun Jan 29 19:49:35 2012 From: dixonja at hotmail.co.uk (John Dixon) Date: Mon, 30 Jan 2012 00:49:35 +0000 Subject: Falling at the last fence... In-Reply-To: References: , Message-ID: Andy, Ken, Mark ... (and Bernd for taking pity on me...) Thanks for the replies.. Andy, I am not running Lion, I am still on 10.6.8... Ken, I had a look at AppResigner and tried it, but the errors that it threw at me confused me even more...:-) I cannot now say what went wrong or what happened, all that I can tell you is that I spent more than 6 hours trying to sort it all out... the chaos descended into problems with the keychain and with xCode... it got to the point where the binary would not even load onto the iphone... the eventual solution was to clear 'everything' out of the keychain that was iOS related, dumped 'everything' out from xCode and started the whole business from scratch through the Apple Developer website... But a big 'shout' for John Craig who kept me calm and managed to talk me out of throwing my Mac out into the rain, paitently helping me through the problem... (My God!.. 'Skype' is marvelous, I can't imagine how I ever survived in the past without it)... but on a serious note, I would just like to say that 'Apple' have made a complete 'bollocks' of uploading apps onto a device never mind trying to get it to their 'review team'... take care... Dixie. >> On Jan 29, 2012, at 12:07 PM, John Dixon wrote: >>I have an app ready to upload to Apple for review through iTunes connect... but when I try and use the Application Loader to >>upload, I get a message ' Application failed codesign verification. The signature was invalid, or it was not signed with an iPhone >>distribution Certificate'... >>I can see the 'iphone developer' & 'iphone distribution' certificate in the keyChain app and am told that they are both valid, so >>assume that something is not 'connected' correctly'.... anyone been through this grim experience that might have some insight >>into this problem ? > Try AppResigner? it has helped me in the past for "no code signature found" errors - maybe it will work for you: > http://www.gorbster.net/blog/archives/273 > Ken Ray From jacque at hyperactivesw.com Mon Jan 30 00:23:13 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 29 Jan 2012 23:23:13 -0600 Subject: "Redraws will be flushed" translation Message-ID: <4F262941.1030208@hyperactivesw.com> Geek-speak in the 5.0.2 release notes say that "redraws will be flushed" at various times. I assume this means "redraws will occur"? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From harrison at all-auctions.com Mon Jan 30 00:47:01 2012 From: harrison at all-auctions.com (Rick Harrison) Date: Mon, 30 Jan 2012 00:47:01 -0500 Subject: "Redraws will be flushed" translation In-Reply-To: <4F262941.1030208@hyperactivesw.com> References: <4F262941.1030208@hyperactivesw.com> Message-ID: <18AE597D-0CDA-427A-8387-D83062F67B5C@all-auctions.com> Hi Jacqueline, I think perhaps this could be referring to garbage collection. That's a geeky guess. ;-) Cheers, Rick On Jan 30, 2012, at 12:23 AM, J. Landman Gay wrote: > Geek-speak in the 5.0.2 release notes say that "redraws will be flushed" at various times. I assume this means "redraws will occur"? > > -- > 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 dick.kriesel at mail.com Mon Jan 30 01:30:43 2012 From: dick.kriesel at mail.com (Dick Kriesel) Date: Sun, 29 Jan 2012 22:30:43 -0800 Subject: "Redraws will be flushed" translation In-Reply-To: <4F262941.1030208@hyperactivesw.com> References: <4F262941.1030208@hyperactivesw.com> Message-ID: On Jan 29, 2012, at 9:23 PM, J. Landman Gay wrote: > Geek-speak in the 5.0.2 release notes say that "redraws will be flushed" at various times. I assume this means "redraws will occur"? > Or, maybe, "Redraw has occurred, so any redraws in the pending messages can and will be flushed." -- Dick From jacque at hyperactivesw.com Mon Jan 30 01:46:35 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 30 Jan 2012 00:46:35 -0600 Subject: "Redraws will be flushed" translation In-Reply-To: <18AE597D-0CDA-427A-8387-D83062F67B5C@all-auctions.com> References: <4F262941.1030208@hyperactivesw.com> <18AE597D-0CDA-427A-8387-D83062F67B5C@all-auctions.com> Message-ID: <4F263CCB.5000701@hyperactivesw.com> On 1/29/12 11:47 PM, Rick Harrison wrote: > I think perhaps this could be referring to garbage collection. On 1/30/12 12:30 AM, Dick Kriesel wrote: > Or, maybe, "Redraw has occurred, so any redraws in the pending > messages can and will be flushed." I see, these make sense. How does that change the behavior from before? When the screen is locked, redraws have never occured until either the screen is unlocked or all pending handlers have finished. The notes seem to say the same thing, so I'm not sure how this new method changes things. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From kdjanz at gmail.com Mon Jan 30 02:45:04 2012 From: kdjanz at gmail.com (kdjanz) Date: Sun, 29 Jan 2012 23:45:04 -0800 (PST) Subject: Prototyping In-Reply-To: <5B66170C-78BB-4DA4-A1C9-D88D7382CFBE@twft.com> References: <4F1878BB.4010906@gmail.com> <93622705328.20120119133800@ahsoftware.net> <124642724328.20120119191135@ahsoftware.net> <5B66170C-78BB-4DA4-A1C9-D88D7382CFBE@twft.com> Message-ID: <1327909504339-4340276.post@n4.nabble.com> Bump Mike - what is your work flow from Keynotopia to LiveCode? Just a cut and paste of the graphics? What about the complex items like the Calendar etc? Thanks for the insight, Kelly -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Prototyping-tp4311307p4340276.html Sent from the Revolution - User mailing list archive at Nabble.com. From toolbook at kestner.de Mon Jan 30 03:08:55 2012 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Mon, 30 Jan 2012 09:08:55 +0100 Subject: Weired code page issue Message-ID: <000901ccdf26$69f1fe40$3dd5fac0$@de> Hello, I have a LC 4.6 program with a valentina 4.8 db for a couple of years running and for the first time now a single customer on a iMac with Lion tells me, that all german Umlaute are broken in displaying the db content. The valentina db is coded UTF-16, german and it is completely prefilled by me and is unchanged since years. There are no write or update actions by the customer, only read. I have asked the customer for his language settings, but he says, everything is on german or standard. I am not good in system questions on Mac and I have no idea where to start searching. Is it a Mac issue (most presumably because it is only one single customer), or a Valentina issue or a LC issue? Can anybody point me into any direction what to check or search for? Thanks Tiemo From mazzapaoloitaly at gmail.com Mon Jan 30 03:43:39 2012 From: mazzapaoloitaly at gmail.com (paolo mazza) Date: Mon, 30 Jan 2012 09:43:39 +0100 Subject: An iPhone app as a remote control for an iPad app. Is it possible? Message-ID: Hi all, how to use an iPhone App as a remote control for an iPad app ? I am wondering if I can set any communication between two iOS apps (besides internet connection) ? Bluetooth ? Set a wifi intranet ? Socket communications? Is there any external to do this? All the best Paolo Mazza From ruslan_zasukhin at valentina-db.com Mon Jan 30 04:04:20 2012 From: ruslan_zasukhin at valentina-db.com (Ruslan Zasukhin) Date: Mon, 30 Jan 2012 11:04:20 +0200 Subject: Weired code page issue In-Reply-To: <000901ccdf26$69f1fe40$3dd5fac0$@de> Message-ID: On 1/30/12 10:08 AM, "Tiemo Hollmann TB" wrote: > Hello, > > I have a LC 4.6 program with a valentina 4.8 db for a couple of years > running and for the first time now a single customer on a iMac with Lion > tells me, that all german Umlaute are broken in displaying the db content. > > The valentina db is coded UTF-16, german and it is completely prefilled by > me and is unchanged since years. There are no write or update actions by the > customer, only read. I have asked the customer for his language settings, > but he says, everything is on german or standard. > > I am not good in system questions on Mac and I have no idea where to start > searching. Is it a Mac issue (most presumably because it is only one single > customer), or a Valentina issue or a LC issue? Can anybody point me into > any direction what to check or search for? Hi Tiemo, To try isolate issue better you can add into app code Which read value from db then save it to disk text file ? May be enable DebugLevel for V4REV and then you should see that values right in V4REV LOG. -- Best regards, Ruslan Zasukhin VP Engineering and New Technology Paradigma Software, Inc Valentina - Joining Worlds of Information http://www.paradigmasoft.com [I feel the need: the need for speed] From guglielmo at braguglia.ch Mon Jan 30 06:04:43 2012 From: guglielmo at braguglia.ch (gpb01) Date: Mon, 30 Jan 2012 03:04:43 -0800 (PST) Subject: An iPhone app as a remote control for an iPad app. Is it possible? In-Reply-To: References: Message-ID: <1327921483166-4340652.post@n4.nabble.com> paolomazza wrote > > Hi all, > how to use an iPhone App as a remote control for an iPad app ? > I am wondering if I can set any communication between two iOS apps > (besides internet connection) ? > Bluetooth ? Set a wifi intranet ? Socket communications? > Is there any external to do this? > All the best > Paolo Mazza > > _______________________________________________ > use-livecode mailing list > use-livecode at .runrev > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > Hi Paolo, yes, you can connect different devices using the socket and yes, there is an external to use socket in iOS because ... socket syntax and functionality is still NOT directly available on iOS (/planned for a future release/). On externals look for "*rrsocket*" Ciao, Guglielmo -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/An-iPhone-app-as-a-remote-control-for-an-iPad-app-Is-it-possible-tp4340382p4340652.html Sent from the Revolution - User mailing list archive at Nabble.com. From m.schonewille at economy-x-talk.com Mon Jan 30 06:44:21 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Mon, 30 Jan 2012 12:44:21 +0100 Subject: Installer Maker Plugin 1.7.3b01 Message-ID: <91008A18-F6C9-4D74-A215-A53673069874@economy-x-talk.com> Hi, For those curious of character, I have uploaded Installer Maker Plugin 1.7.3b01. This new version contains an Italian language option and a small number of bug fixes. I would appreciate any test reports. If you are a current license holder, you probably will want to test this version to get the most value for your money. Go to http://qery.us/za to download Installer Maker Plugin 1.7.3b01. Scroll down to halfway the page. If you download this, please make sure to keep a backup copy of the previous version of the plugin. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za From mikedoub at gmail.com Mon Jan 30 07:02:42 2012 From: mikedoub at gmail.com (Michael Doub) Date: Mon, 30 Jan 2012 07:02:42 -0500 Subject: An iPhone app as a remote control for an iPad app. Is it possible? In-Reply-To: <1327921483166-4340652.post@n4.nabble.com> References: <1327921483166-4340652.post@n4.nabble.com> Message-ID: Where can I find the rrsocket external? Regards, Mike On 01/30/2012, at 6:04 AM, gpb01 wrote: > rrsocket From m.schonewille at economy-x-talk.com Mon Jan 30 07:14:44 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Mon, 30 Jan 2012 13:14:44 +0100 Subject: "Redraws will be flushed" translation In-Reply-To: <4F263CCB.5000701@hyperactivesw.com> References: <4F262941.1030208@hyperactivesw.com> <18AE597D-0CDA-427A-8387-D83062F67B5C@all-auctions.com> <4F263CCB.5000701@hyperactivesw.com> Message-ID: <6E9A4A24-52B2-4017-A2C2-3C8FEA35B38D@economy-x-talk.com> Hi Jacque, Previously, redraws were postponed, now they are flushed. Each time when you show or hide an object, LiveCode wants to redraw the screen. Previously, these redraws were remembered and executed when the screen was unlocked. As I understand it, the screen is now simply redrawn once, when the screen unlocks. That's a big difference. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 30 jan 2012, at 07:46, J. Landman Gay wrote: > On 1/29/12 11:47 PM, Rick Harrison wrote: >> I think perhaps this could be referring to garbage collection. > > On 1/30/12 12:30 AM, Dick Kriesel wrote: >> Or, maybe, "Redraw has occurred, so any redraws in the pending >> messages can and will be flushed." > > I see, these make sense. How does that change the behavior from before? When the screen is locked, redraws have never occured until either the screen is unlocked or all pending handlers have finished. The notes seem to say the same thing, so I'm not sure how this new method changes things. From guglielmo at braguglia.ch Mon Jan 30 07:29:46 2012 From: guglielmo at braguglia.ch (Guglielmo Braguglia) Date: Mon, 30 Jan 2012 13:29:46 +0100 Subject: An iPhone app as a remote control for an iPad app. Is it possible? In-Reply-To: References: <1327921483166-4340652.post@n4.nabble.com> Message-ID: <4F268D3A.4030303@braguglia.ch> Hi, you have to download and install the iOS SDK ... that you can find on this page : http://www.runrev.com/developers/documentation/externals-sdk/ Regards, Guglielmo On 30.01.2012 13:02, Michael Doub wrote: > Where can I find the rrsocket external? > > Regards, > Mike > > > > On 01/30/2012, at 6:04 AM, gpb01 wrote: > >> rrsocket > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mon Jan 30 08:45:51 2012 From: mazzapaoloitaly at gmail.com (paolo mazza) Date: Mon, 30 Jan 2012 14:45:51 +0100 Subject: An iPhone app as a remote control for an iPad app. Is it possible? In-Reply-To: <4F268D3A.4030303@braguglia.ch> References: <1327921483166-4340652.post@n4.nabble.com> <4F268D3A.4030303@braguglia.ch> Message-ID: Guglielmo, thank you for your message. Have you already tried this external? Does it work properly? Can LC people use it or we are supposed to know a lower level language to use it in our applications? Thanks a lot Ciao, Paolo From ken at kencorey.com Mon Jan 30 08:58:09 2012 From: ken at kencorey.com (Ken Corey) Date: Mon, 30 Jan 2012 13:58:09 +0000 Subject: An iPhone app as a remote control for an iPad app. Is it possible? In-Reply-To: References: <1327921483166-4340652.post@n4.nabble.com> <4F268D3A.4030303@braguglia.ch> Message-ID: <4F26A1F1.2010905@kencorey.com> Hi Paolo, First off, I'd like to say that with the external support, anything is possible...the question is how hard you're willing to work to get there. I can say that the socket code "rreSocket" works just fine for me here, both on the simulator and on the device. Now, as to "does it work properly?" It allows you to open a socket to an external host, and to send data back and forth to that host, and those functions seem to work fine. However, there's no protocol support with it. I wanted to send and receive http, so I had to write a small http library to do the work I needed. No big deal. It all depends on your level of expertise. If you're working against an already-defined protocol (like I was with http), it's a doddle. If the spec is unclear, or you're uncomfortable with low level communications, I'd think twice. With a socket-based infrastructure, you need to think of: 1) a way for the devices to find each other (can rreSocket do a TCP/IP broadcast? I don't know.) 2) dealing with proxies Perhaps you'd be better off writing an external that let you talk to the bluetooth functionality from within LiveCode. Without more information from you as to what your goal is we can't help more. -Ken On 30/01/2012 13:45, paolo mazza wrote: > thank you for your message. Have you already tried this external? > Does it work properly? > Can LC people use it or we are supposed to know a lower level language > to use it in our applications? From claudi.c at fiberworld.nl Mon Jan 30 09:08:57 2012 From: claudi.c at fiberworld.nl (Claudi Cornaz) Date: Mon, 30 Jan 2012 15:08:57 +0100 Subject: How to get all message names In-Reply-To: References: Message-ID: Hi all, Does anyone know how to quickly get all livecode message names? I know you can get the propertyNames, the functionNames, the commandNames but I get a error when doing get the messageNames or a couple of similars. Thanks in advance, Claudi From dunbarx at aol.com Mon Jan 30 09:16:21 2012 From: dunbarx at aol.com (dunbarx at aol.com) Date: Mon, 30 Jan 2012 09:16:21 -0500 (EST) Subject: How to get all message names In-Reply-To: References: Message-ID: <8CEAD70E0382AC3-2AD8-1D08B@webmail-m153.sysops.aol.com> I don't see a function like that, though most other keyword lists exist. -----Original Message----- From: Claudi Cornaz To: How to use LiveCode Sent: Mon, Jan 30, 2012 9:11 am Subject: How to get all message names Hi all, Does anyone know how to quickly get all livecode message names? I know you can get the propertyNames, the functionNames, the commandNames but I get a error when doing get the messageNames or a couple of similars. Thanks in advance, Claudi _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From guglielmo at braguglia.ch Mon Jan 30 09:33:03 2012 From: guglielmo at braguglia.ch (Guglielmo Braguglia) Date: Mon, 30 Jan 2012 15:33:03 +0100 Subject: An iPhone app as a remote control for an iPad app. Is it possible? In-Reply-To: References: <1327921483166-4340652.post@n4.nabble.com> <4F268D3A.4030303@braguglia.ch> Message-ID: <4F26AA1F.6070305@braguglia.ch> I Paolo, I think that Ken has explained very well the situation, so ... ... you must really know how to implement your own '/protocol/' for the dialogue between the different devices. In these conditions I do not see usefulness of writing a new external to use bluetooth ... ;-) Saluti, Guglielmo On 30.01.2012 14:45, paolo mazza wrote: > Guglielmo, > thank you for your message. Have you already tried this external? > Does it work properly? > Can LC people use it or we are supposed to know a lower level language > to use it in our applications? > Thanks a lot > > Ciao, Paolo > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mon Jan 30 09:35:15 2012 From: mazzapaoloitaly at gmail.com (paolo mazza) Date: Mon, 30 Jan 2012 15:35:15 +0100 Subject: An iPhone app as a remote control for an iPad app. Is it possible? In-Reply-To: <4F26A1F1.2010905@kencorey.com> References: <1327921483166-4340652.post@n4.nabble.com> <4F268D3A.4030303@braguglia.ch> <4F26A1F1.2010905@kencorey.com> Message-ID: Thank you Ken. My idea is as simple as this: - from a LC app in the iPhone I want to send "back"/"forward" commands to change the images in a LC app in the iPad. The idea is simple. The implementation probably is not so simple. I am uncomfortable with low level communications and I am looking for an "easy" solution. Thank you very much, Paolo From todd at geistinteractive.com Mon Jan 30 09:35:46 2012 From: todd at geistinteractive.com (Todd Geist) Date: Mon, 30 Jan 2012 06:35:46 -0800 Subject: An iPhone app as a remote control for an iPad app. Is it possible? In-Reply-To: <4F26A1F1.2010905@kencorey.com> References: <1327921483166-4340652.post@n4.nabble.com> <4F268D3A.4030303@braguglia.ch> <4F26A1F1.2010905@kencorey.com> Message-ID: Ken, Quick question. Were you able to create an HTML server that work on iOS? Todd On Mon, Jan 30, 2012 at 5:58 AM, Ken Corey wrote: > Hi Paolo, > > First off, I'd like to say that with the external support, anything is > possible...the question is how hard you're willing to work to get there. > > I can say that the socket code "rreSocket" works just fine for me here, > both on the simulator and on the device. > > Now, as to "does it work properly?" It allows you to open a socket to an > external host, and to send data back and forth to that host, and those > functions seem to work fine. > > However, there's no protocol support with it. I wanted to send and > receive http, so I had to write a small http library to do the work I > needed. No big deal. > > It all depends on your level of expertise. If you're working against an > already-defined protocol (like I was with http), it's a doddle. If the spec > is unclear, or you're uncomfortable with low level communications, I'd > think twice. > > With a socket-based infrastructure, you need to think of: > 1) a way for the devices to find each other (can rreSocket do a TCP/IP > broadcast? I don't know.) > 2) dealing with proxies > > Perhaps you'd be better off writing an external that let you talk to the > bluetooth functionality from within LiveCode. > > Without more information from you as to what your goal is we can't help > more. > > -Ken > > > On 30/01/2012 13:45, paolo mazza wrote: > >> thank you for your message. Have you already tried this external? >> Does it work properly? >> Can LC people use it or we are supposed to know a lower level language >> to use it in our applications? >> > > > > ______________________________**_________________ > use-livecode mailing list > use-livecode 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 (805) 419-9382 From klaus at major.on-rev.com Mon Jan 30 09:37:06 2012 From: klaus at major.on-rev.com (Klaus on-rev) Date: Mon, 30 Jan 2012 15:37:06 +0100 Subject: How to get all message names In-Reply-To: <8CEAD70E0382AC3-2AD8-1D08B@webmail-m153.sysops.aol.com> References: <8CEAD70E0382AC3-2AD8-1D08B@webmail-m153.sysops.aol.com> Message-ID: <9AA08C3E-A25C-48AB-9FA8-B72B49274558@major.on-rev.com> Hi Claudi, Am 30.01.2012 um 15:16 schrieb dunbarx at aol.com: > I don't see a function like that, though most other keyword lists exist. > > -----Original Message----- > From: Claudi Cornaz > To: How to use LiveCode > Sent: Mon, Jan 30, 2012 9:11 am > Subject: How to get all message names > > > Hi all, > > Does anyone know how to quickly get all livecode message names? > > I know you can get the propertyNames, the functionNames, the commandNames > but I get a error when doing get the messageNames or a couple of similars. Open the dictionary. In the left index click: Language -> Commands Now you only need to extract this list from the first column of the datagrid :-) > Thanks in advance, > Claudi Best Klaus -- Klaus Major http://www.major-k.de klaus at major.on-rev.com From klaus at major.on-rev.com Mon Jan 30 09:47:59 2012 From: klaus at major.on-rev.com (Klaus on-rev) Date: Mon, 30 Jan 2012 15:47:59 +0100 Subject: How to get all message names In-Reply-To: <9AA08C3E-A25C-48AB-9FA8-B72B49274558@major.on-rev.com> References: <8CEAD70E0382AC3-2AD8-1D08B@webmail-m153.sysops.aol.com> <9AA08C3E-A25C-48AB-9FA8-B72B49274558@major.on-rev.com> Message-ID: <48607532-9A8E-4F06-AF23-53B8502554A6@major.on-rev.com> Hi Claudi, Am 30.01.2012 um 15:37 schrieb Klaus on-rev: > Hi Claudi, > Am 30.01.2012 um 15:16 schrieb dunbarx at aol.com: >> I don't see a function like that, though most other keyword lists exist. >> >> -----Original Message----- >> From: Claudi Cornaz >> To: How to use LiveCode >> Sent: Mon, Jan 30, 2012 9:11 am >> Subject: How to get all message names >> >> Hi all, >> Does anyone know how to quickly get all livecode message names? >> I know you can get the propertyNames, the functionNames, the commandNames >> but I get a error when doing get the messageNames or a couple of similars. > > Open the dictionary. > In the left index click: Language -> Commands I mean of course: Language -> Message! > Now you only need to extract this list from the first column of the datagrid :-) >> Thanks in advance, >> Claudi Best Klaus -- Klaus Major http://www.major-k.de klaus at major.on-rev.com From ken at kencorey.com Mon Jan 30 10:07:58 2012 From: ken at kencorey.com (Ken Corey) Date: Mon, 30 Jan 2012 15:07:58 +0000 Subject: An iPhone app as a remote control for an iPad app. Is it possible? In-Reply-To: References: <1327921483166-4340652.post@n4.nabble.com> <4F268D3A.4030303@braguglia.ch> <4F26A1F1.2010905@kencorey.com> Message-ID: <4F26B24E.7080700@kencorey.com> Well sending a command and getting a response is a simple enough protocol once you're connected...but how do your devices find each other? I'd be shocked if you could do network broadcasting using rreSocket on an iOS device (you might actually get away with it on a desktop, but I've not tried it). Note that with the several extremely low-cost (as low as <$50) linux devices out or coming out soon perhaps an iPhone is a little over-priced as a remote control? Anyway, one way might be to let your users do the work: You would use the function "hostNameToAddress(the address)" to find out the address of the machine upon which the program is running, and then show that to the user, asking them to enter it into the other device as the target. (note that this happens on both devices). Bonus points for saving the address so the user doesn't have to type it again. At that point you can call the functions in rreSocket to open/write/read to and from the socket. Define your protocol before you start coding though, or you'll be wading into a marsh. FWIW, -Ken On 30/01/2012 14:35, paolo mazza wrote: > My idea is as simple as this: > > - from a LC app in the iPhone I want to send "back"/"forward" > commands to change the images in a LC app in the iPad. > > The idea is simple. The implementation probably is not so simple. > > I am uncomfortable with low level communications and I am looking for > an "easy" solution. From dunbarx at aol.com Mon Jan 30 10:08:41 2012 From: dunbarx at aol.com (dunbarx at aol.com) Date: Mon, 30 Jan 2012 10:08:41 -0500 (EST) Subject: How to get all message names In-Reply-To: <9AA08C3E-A25C-48AB-9FA8-B72B49274558@major.on-rev.com> References: <8CEAD70E0382AC3-2AD8-1D08B@webmail-m153.sysops.aol.com> <9AA08C3E-A25C-48AB-9FA8-B72B49274558@major.on-rev.com> Message-ID: <8CEAD782FAB6384-2AD8-1D9E6@webmail-m153.sysops.aol.com> Clever, Klaus. But there are lots of groups in the stack "revDictionary". I selected "message" to load the DG, and then went through each group and tried to extract the dgText which contained, say, "mouseUp". Nothing. Do you know what the name of the dataGrid is? And why would my method not work? Craig Newman -----Original Message----- From: Klaus on-rev To: How to use LiveCode Sent: Mon, Jan 30, 2012 9:40 am Subject: Re: How to get all message names Hi Claudi, Am 30.01.2012 um 15:16 schrieb dunbarx at aol.com: > I don't see a function like that, though most other keyword lists exist. > > -----Original Message----- > From: Claudi Cornaz > To: How to use LiveCode > Sent: Mon, Jan 30, 2012 9:11 am > Subject: How to get all message names > > > Hi all, > > Does anyone know how to quickly get all livecode message names? > > I know you can get the propertyNames, the functionNames, the commandNames > but I get a error when doing get the messageNames or a couple of similars. Open the dictionary. In the left index click: Language -> Commands Now you only need to extract this list from the first column of the datagrid :-) > Thanks in advance, > Claudi 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 ken at kencorey.com Mon Jan 30 10:26:07 2012 From: ken at kencorey.com (Ken Corey) Date: Mon, 30 Jan 2012 15:26:07 +0000 Subject: An iPhone app as a remote control for an iPad app. Is it possible? In-Reply-To: References: <1327921483166-4340652.post@n4.nabble.com> <4F268D3A.4030303@braguglia.ch> <4F26A1F1.2010905@kencorey.com> Message-ID: <4F26B68F.6070401@kencorey.com> On 30/01/2012 14:35, Todd Geist wrote: > Quick question. Were you able to create an HTML server that work on iOS? My purpose was only to read and write to a web server, and for that it works fine. Taking a look under the covers, down at the Objective-C level I don't see a way to grab a port and do an 'accept'/'bind' on it for incoming connections, so it would seem to me that you couldn't create a web server with rreSocket as written. Of course, that's not saying much. Coming from a unixy background, the Networking API is completely foreign to me. I mean completely bonkers. Gotta love Apple, who in their infinite wisdom has to bloody re-invent the wheel (that was working just fine, thank you very much), then re-invent it in an OOP way, then "simplify" that, and then complicate the hell out of that version. They're every bit as bad as Microsoft ever was. Not that I'm bitter and twisted about the over-blown complexity of programming for iOS, or anything. Bloody OOP w***ing... Oops, my angst is showing. -Ken From ambassador at fourthworld.com Mon Jan 30 10:30:22 2012 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 30 Jan 2012 07:30:22 -0800 Subject: "Redraws will be flushed" translation In-Reply-To: <6E9A4A24-52B2-4017-A2C2-3C8FEA35B38D@economy-x-talk.com> References: <6E9A4A24-52B2-4017-A2C2-3C8FEA35B38D@economy-x-talk.com> Message-ID: <4F26B78E.9080004@fourthworld.com> Mark Schonewille wrote: > Previously, these redraws were remembered and executed when the > screen was unlocked. As I understand it, the screen is now simply > redrawn once, when the screen unlocks. That's a big difference. I'm probably just pre-coffee, but I'm having a hard time understanding the difference. -- 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 klaus at major.on-rev.com Mon Jan 30 10:34:08 2012 From: klaus at major.on-rev.com (Klaus on-rev) Date: Mon, 30 Jan 2012 16:34:08 +0100 Subject: How to get all message names In-Reply-To: <8CEAD782FAB6384-2AD8-1D9E6@webmail-m153.sysops.aol.com> References: <8CEAD70E0382AC3-2AD8-1D08B@webmail-m153.sysops.aol.com> <9AA08C3E-A25C-48AB-9FA8-B72B49274558@major.on-rev.com> <8CEAD782FAB6384-2AD8-1D9E6@webmail-m153.sysops.aol.com> Message-ID: Hi Craig, Am 30.01.2012 um 16:08 schrieb dunbarx at aol.com: > Clever, Klaus. :-) But this is only step 1... > But there are lots of groups in the stack "revDictionary". I selected "message" to load the DG, and then went through each group and tried to extract the dgText which contained, say, "mouseUp". Nothing. Do you know what the name of the dataGrid is? No, sorry, I just looked by myself and that is very well hidden somehow. > And why would my method not work? Sorry, no idea. > Craig Newman >> ... >> Hi all, >> >> Does anyone know how to quickly get all livecode message names? >> >> I know you can get the propertyNames, the functionNames, the commandNames >> but I get a error when doing get the messageNames or a couple of similars. > > Open the dictionary. > In the left index click: Language -> Commands > > Now you only need to extract this list from the first column of the datagrid :-) > >> Thanks in advance, >> Claudi Best Klaus -- Klaus Major http://www.major-k.de klaus at major.on-rev.com From bonnmike at gmail.com Mon Jan 30 11:55:56 2012 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 30 Jan 2012 09:55:56 -0700 Subject: How to get all message names In-Reply-To: References: <8CEAD70E0382AC3-2AD8-1D08B@webmail-m153.sysops.aol.com> <9AA08C3E-A25C-48AB-9FA8-B72B49274558@major.on-rev.com> <8CEAD782FAB6384-2AD8-1D9E6@webmail-m153.sysops.aol.com> Message-ID: This may be a roundabout method but.. If you go here http://bjoernke.com/index.irev?target=bvgdocu and download bvgdocu 2.0 it generates an sqlite database of the dictionary where the "type" column contains the type of entry. Message, etc. It might be possible to use the sqlite db directly, and if not dig around and see exactly how the info was generated. After poking around in the code it appears that the .index files located in (C:\Program Files (x86)\RunRev\LiveCode 5.0.2\Documentation) are encoded arrays. So some method similar to what bvg did should work to extract the info you are looking for directly from the files. Maybe? Haven't done it so my level of clue on this stuff is still pretty low. On Mon, Jan 30, 2012 at 8:34 AM, Klaus on-rev wrote: > Hi Craig, > > Am 30.01.2012 um 16:08 schrieb dunbarx at aol.com: > > > Clever, Klaus. > > :-) > > But this is only step 1... > > > But there are lots of groups in the stack "revDictionary". I selected > "message" to load the DG, and then went through each group and tried to > extract the dgText which contained, say, "mouseUp". Nothing. Do you know > what the name of the dataGrid is? > > No, sorry, I just looked by myself and that is very well hidden somehow. > > > And why would my method not work? > > Sorry, no idea. > > > Craig Newman > > >> ... > >> Hi all, > >> > >> Does anyone know how to quickly get all livecode message names? > >> > >> I know you can get the propertyNames, the functionNames, the > commandNames > >> but I get a error when doing get the messageNames or a couple of > similars. > > > > Open the dictionary. > > In the left index click: Language -> Commands > > > > Now you only need to extract this list from the first column of the > datagrid :-) > > > >> Thanks in advance, > >> Claudi > > 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 jacque at hyperactivesw.com Mon Jan 30 11:58:55 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 30 Jan 2012 10:58:55 -0600 Subject: "Redraws will be flushed" translation In-Reply-To: <4F26B78E.9080004@fourthworld.com> References: <6E9A4A24-52B2-4017-A2C2-3C8FEA35B38D@economy-x-talk.com> <4F26B78E.9080004@fourthworld.com> Message-ID: <4F26CC4F.2010904@hyperactivesw.com> On 1/30/12 9:30 AM, Richard Gaskin wrote: > Mark Schonewille wrote: > > > Previously, these redraws were remembered and executed when the > > screen was unlocked. As I understand it, the screen is now simply > > redrawn once, when the screen unlocks. That's a big difference. > > I'm probably just pre-coffee, but I'm having a hard time understanding > the difference. Me too. In the past, the screen was redrawn once when it was unlocked. I can't recall any instances of queued redraws, at least, none that were visible to the user, though maybe someone else has seen it. There's the lockmoves thing, but I don't think that's exactly the same. So far, it sounds like this change concerns garbage collection but not behavior changes. And yet, there's a whole section in the notes about it so I'd like to understand for sure. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bonnmike at gmail.com Mon Jan 30 12:01:08 2012 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 30 Jan 2012 10:01:08 -0700 Subject: How to get all message names In-Reply-To: References: <8CEAD70E0382AC3-2AD8-1D08B@webmail-m153.sysops.aol.com> <9AA08C3E-A25C-48AB-9FA8-B72B49274558@major.on-rev.com> <8CEAD782FAB6384-2AD8-1D9E6@webmail-m153.sysops.aol.com> Message-ID: Ok so maybe its an encoded array of xml data. I'm thinking use the sqlite db generated by the bvgdocu to do this. On Mon, Jan 30, 2012 at 9:55 AM, Mike Bonner wrote: > This may be a roundabout method but.. If you go here > http://bjoernke.com/index.irev?target=bvgdocu and download bvgdocu 2.0 > it generates an sqlite database of the dictionary where the "type" column > contains the type of entry. Message, etc. It might be possible to use the > sqlite db directly, and if not dig around and see exactly how the info was > generated. > > After poking around in the code it appears that the .index files located > in (C:\Program Files (x86)\RunRev\LiveCode 5.0.2\Documentation) are > encoded arrays. So some method similar to what bvg did should work to > extract the info you are looking for directly from the files. Maybe? > Haven't done it so my level of clue on this stuff is still pretty low. > > > On Mon, Jan 30, 2012 at 8:34 AM, Klaus on-rev wrote: > >> Hi Craig, >> >> Am 30.01.2012 um 16:08 schrieb dunbarx at aol.com: >> >> > Clever, Klaus. >> >> :-) >> >> But this is only step 1... >> >> > But there are lots of groups in the stack "revDictionary". I selected >> "message" to load the DG, and then went through each group and tried to >> extract the dgText which contained, say, "mouseUp". Nothing. Do you know >> what the name of the dataGrid is? >> >> No, sorry, I just looked by myself and that is very well hidden somehow. >> >> > And why would my method not work? >> >> Sorry, no idea. >> >> > Craig Newman >> >> >> ... >> >> Hi all, >> >> >> >> Does anyone know how to quickly get all livecode message names? >> >> >> >> I know you can get the propertyNames, the functionNames, the >> commandNames >> >> but I get a error when doing get the messageNames or a couple of >> similars. >> > >> > Open the dictionary. >> > In the left index click: Language -> Commands >> > >> > Now you only need to extract this list from the first column of the >> datagrid :-) >> > >> >> Thanks in advance, >> >> Claudi >> >> 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 m.schonewille at economy-x-talk.com Mon Jan 30 12:20:28 2012 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Mon, 30 Jan 2012 18:20:28 +0100 Subject: "Redraws will be flushed" translation In-Reply-To: <4F26CC4F.2010904@hyperactivesw.com> References: <6E9A4A24-52B2-4017-A2C2-3C8FEA35B38D@economy-x-talk.com> <4F26B78E.9080004@fourthworld.com> <4F26CC4F.2010904@hyperactivesw.com> Message-ID: <9A115A56-0788-445C-8546-0438B3500774@economy-x-talk.com> Hi, I think that's the point: "none that were visible to the user". Redrawing was quick enough to give you the impression that all was redrawn at once, but it wasn't. You may have noticed that sometimes a script was faster without locking and unlocking the screen, because Revolution refreshed the entire screen for each control that was added or removed. By doing this quickly after another, it looked like the screen was redrawn only once but in reality it was redrawn several times. This should no longer be the case and your scripts should run faster now. If you want to know for sure, ask the RunRev team. I'd like to know if I'm wrong. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 30 jan 2012, at 17:58, J. Landman Gay wrote: > > Me too. In the past, the screen was redrawn once when it was unlocked. I can't recall any instances of queued redraws, at least, none that were visible to the user, though maybe someone else has seen it. There's the lockmoves thing, but I don't think that's exactly the same. > > So far, it sounds like this change concerns garbage collection but not behavior changes. And yet, there's a whole section in the notes about it so I'd like to understand for sure. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com From dan at clearvisiontech.com Mon Jan 30 12:24:48 2012 From: dan at clearvisiontech.com (Dan Friedman) Date: Mon, 30 Jan 2012 09:24:48 -0800 Subject: Sounds on iOS In-Reply-To: References: Message-ID: Greetings! My iPad app plays a sound using the iphonePlaySoundOnChannel command: iphonePlaySoundOnChannel fSound,"myAppSound","now" The sound does play, but it stops any music that the user is playing in iTunes. How do I play a sound on iOS without disrupting the sounds of another app in the background? Or, can I tell iTunes to start playing their music again? Thanks in advance! -Dan From martyknapp at comcast.net Mon Jan 30 12:35:12 2012 From: martyknapp at comcast.net (Marty Knapp) Date: Mon, 30 Jan 2012 09:35:12 -0800 Subject: Search question Message-ID: <4F26D4D0.4020205@comcast.net> Let's say I have a tab delimited list with 4 items and I want to find a match to my search string, except I don't care what item 2 is - it could be a number, a word or be empty, but I want to find the occurrences where items 1, 3 & 4 match. What's the fastest way to do that? Thanks, Marty Knapp From dan at clearvisiontech.com Mon Jan 30 12:43:25 2012 From: dan at clearvisiontech.com (Dan Friedman) Date: Mon, 30 Jan 2012 09:43:25 -0800 Subject: Search question In-Reply-To: References: Message-ID: Marty, I don't know if it's the fastest way, but here's one way to do it. Pass with function your tab-delimited list and what you are looking to find in fields 1,3 and 4 and it will return a list of the lines numbers that match. Hope it helps... function getTheMatches tList,findThis set the itemDel to tab put "" into foundList put 0 into i repeat for each line tLine in tList add 1 to i if item 1 of tLine = findThis then if item 3 of tLine = findThis then if item 4 of tLine = findThis then put i & cr after foundList end if end if end if end repeat delete last line of foundList return foundList end getTheMatches > Let's say I have a tab delimited list with 4 items and I want to find a > match to my search string, except I don't care what item 2 is - it could > be a number, a word or be empty, but I want to find the occurrences > where items 1, 3 & 4 match. What's the fastest way to do that? From ken at kencorey.com Mon Jan 30 12:45:28 2012 From: ken at kencorey.com (Ken Corey) Date: Mon, 30 Jan 2012 17:45:28 +0000 Subject: Search question In-Reply-To: <4F26D4D0.4020205@comcast.net> References: <4F26D4D0.4020205@comcast.net> Message-ID: <4F26D738.7010703@kencorey.com> How about this: --------------8<----------------- repeat for each line myLine in myList if matchText(myLine, \ "([^\t]*)\t([^\t]*)\t([^\t]*)\t([^\t]*)$", \ myVar1, myVar2, myVar3, myVar4) then if myVar1="foo" and myVar3="bar" and myVar4="baz" then -- take some action here end if end if end repeat --------------8<----------------- I'm typing this from memory, and I'm not sure about that repeat statement. I always seem to need to look it up. This assumes, of course, that the fields cannot have tab characters in them. -Ken On 30/01/2012 17:35, Marty Knapp wrote: > Let's say I have a tab delimited list with 4 items and I want to find a > match to my search string, except I don't care what item 2 is - it could > be a number, a word or be empty, but I want to find the occurrences > where items 1, 3 & 4 match. What's the fastest way to do that? From bobs at twft.com Mon Jan 30 12:54:17 2012 From: bobs at twft.com (Bob Sneidar) Date: Mon, 30 Jan 2012 09:54:17 -0800 Subject: Alternate Form of printKeys() In-Reply-To: References: Message-ID: Thanks for the bug report I will look into it. The usefulness of this is not so that it will be readable. It is so that you can use the filter command on the result, then recreate the array with the other function. Let's say I have a datagrid that came from a query that returned 10,000 records from a remote SQL database. I also have a search field where after typing some text and then pausing, I want to filter all the columns of data based upon that text. If building a query, I would have to loop through the columns and build a query using IN() for every column. Then I would have to requery the database. As the user types and pauses, I would have to do this every time. What I have done instead is the first time the user pauses, I convert the datagrid array to the text form and store it as a global variable. Now when the user pauses, I get a copy of the data and filter the text based upon what the user typed. I then recreate the array from the filtered text and set the dgdata of the datagrid to the resulting array. This makes it very quick, especially with SQL servers that do not respond all that quickly. There are other applications though. Ever want to subtract one array from another? Delete a single key of multidimensional array? Rename a key? Also, in the original PrintKeys() function, if the value contained multiple lines, it would only return the first line. My function returns all the lines. It also replaces tabs and returns with placeholder ascii characters. I am sure you could do all these things by looping through array elements, but it seems like it would be quicker (and less programming) to convert the entire array to text and then run single filter commands on the result. Bob On Jan 28, 2012, at 5:35 AM, Peter M. Brigham, MD wrote: > One little tweak: > > instead of > >> if theKey is not a number then >> replace theKey with quote & theKey & quote in theKeyList >> end if > > use > > if theKey is not a number then > replace "[" & theKey & "]" with "[" & quote & theKey & quote & "]" in theKeyList > end if > > I tried it with keys like [second][c][2] and your original replacement line gave me ["se"c"ond"] as one of the entries. > > What I liked about the original handlers was that the previous altPrintKeys would output a textual representation of the array in an intuitive outline form, so you could see at a glance the structure and contents of the array. Your new function converts an array to a text string but it's really hard to tell by looking at the string how the array is structured, so it has limited value to me. For what purpose would you be using the new version of these functions? > > -- Peter > > Peter M. Brigham > pmbrig at gmail.com > http://home.comcast.net/~pmbrig > > > On Jan 26, 2012, at 6:12 PM, Bob Sneidar wrote: > >> Here are the functions. I have tested them and they seem to be fine, but any bug reports would be appreciated. Note that there is another distinct advantage of these functions over the original printKeys(): These functions allow for returns and tabs in the values. I convert them to ascii(30) and ascii(11) respectively when I return text and back again when I return an array. >> >> Also bear in mind I do no error checking. Who knows what would happen if you pass something other than what is expected. Hang on to your socks! :-) >> >> function altPrintKeys @pArray, theKeyList, pFullData >> put numtochar(11) into vertTab >> put numtochar(30) into altCr >> put the keys of pArray into theKeys >> sort theKeys numeric >> >> repeat for each line theKey in theKeys >> put "[" & theKey & "] " after theKeyList >> if theKey is not a number then >> replace theKey with quote & theKey & quote in theKeyList >> end if >> if pArray[theKey] is an array then >> put pArray[theKey] into theTempArray >> put altPrintKeys(theTempArray, theKeyList, pFullData) after theText >> put empty into the last word of theKeyList >> delete the last char of theKeyList >> put cr into the last char of theText >> else >> put "pArray " & the last word of theKeyList into theKeyName >> -- put "put " & theKeyName & " into theValue" into theCommand >> -- do theCommand >> put the value of theKeyName into theValue >> replace tab with vertTab in theValue >> replace return with altCr in theValue >> put theKeyList & tab & theValue & comma after theText >> put empty into the last word of theKeyList >> delete the last char of theKeyList >> end if >> end repeat >> >> return theText >> end altPrintKeys >> >> function altKeysToArray theText >> put numtochar(11) into vertTab >> put numtochar(30) into altCr >> repeat for each line theRecord in theText >> repeat for each item theKeyData in theRecord >> put the itemdelimiter into theOldDelim >> set the itemdelimiter to tab >> put item 1 of theKeyData into theKeyList >> put item 2 of theKeyData into theValue >> replace vertTab with tab in theValue >> replace altCr with return in theValue >> set the itemdelimiter to theOldDelim >> put "put " & quote & theValue & quote & " into theArrayA " & theKeylist into theCommand >> do theCommand >> end repeat >> end repeat >> >> return theArrayA >> end altKeysToArray >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Mon Jan 30 12:57:00 2012 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 30 Jan 2012 10:57:00 -0700 Subject: Search question In-Reply-To: <4F26D738.7010703@kencorey.com> References: <4F26D4D0.4020205@comcast.net> <4F26D738.7010703@kencorey.com> Message-ID: Or with filter I setup a stack with a list field and 4 search fields, 1 search field for each column, and added a search button. --Search button code on mouseUp put field "mylist" into tMyList repeat with i = 1 to 4 if field ("field" & i) is empty then put "*" into line i of tMerge else put field ("field" & i) into line i of tMerge end if end repeat filter tmyList with (merge("[[line 1 of tMerge]][[tab]][[line 2 of tMerge]][[tab]][[line 3 of tMerge]][[tab]][[line 4 of tMerge]]")) put tMyList end mouseUp Puts an asterisk for empty search fields puts the value for the fields that should be matched against. From bobs at twft.com Mon Jan 30 12:57:58 2012 From: bobs at twft.com (Bob Sneidar) Date: Mon, 30 Jan 2012 09:57:58 -0800 Subject: Alternate Form of printKeys() In-Reply-To: References: Message-ID: <7F73BF6F-3CDA-4A63-B379-1A03CB8F8C4E@twft.com> On Jan 28, 2012, at 5:35 AM, Peter M. Brigham, MD wrote: > if theKey is not a number then > replace "[" & theKey & "]" with "[" & quote & theKey & quote & "]" in theKeyList > end if Okay new version. Thanks to Peter M. Brigham, MD for pointing this out: function altPrintKeys @pArray, theKeyList, pFullData put numtochar(11) into vertTab put numtochar(30) into altCr put the keys of pArray into theKeys sort theKeys numeric repeat for each line theKey in theKeys put "[" & theKey & "] " after theKeyList if theKey is not a number then replace "[" & theKey & "]" with "[" & quote & theKey & quote & "]" in theKeyList end if if pArray[theKey] is an array then put pArray[theKey] into theTempArray put altPrintKeys(theTempArray, theKeyList, pFullData) after theText put empty into the last word of theKeyList delete the last char of theKeyList put cr into the last char of theText else put "pArray " & the last word of theKeyList into theKeyName -- put "put " & theKeyName & " into theValue" into theCommand -- do theCommand put the value of theKeyName into theValue replace tab with vertTab in theValue replace return with altCr in theValue put theKeyList & tab & theValue & comma after theText put empty into the last word of theKeyList delete the last char of theKeyList end if end repeat return theText end altPrintKeys From bobs at twft.com Mon Jan 30 12:59:52 2012 From: bobs at twft.com (Bob Sneidar) Date: Mon, 30 Jan 2012 09:59:52 -0800 Subject: pointer tool on Macs In-Reply-To: <1327776032.20835.YahooMailClassic@web81208.mail.mud.yahoo.com> References: <1327776032.20835.YahooMailClassic@web81208.mail.mud.yahoo.com> Message-ID: I vaguely recall in the past a command called Lock Cursor to deal with this situation, as whenever the engine idles it automatically sets the cursor. Bob On Jan 28, 2012, at 10:40 AM, Art DiVito wrote: > My program uses many tools. The first time I use the Pointer tool, its icon is fine: tail-less arrow with a little plus sign. But then it reverts to the same icon as the Browse tool (arrow with tail). It still functions perfectly as the Pointer tool, but a user would be very confused. Ironically, this problem does not occur on a PC; only on Macs. Any ideas? Thanks. (Also, I could still use help making this thing a polished app. I am not a programmer.) > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jan 30 13:12:57 2012 From: bobs at twft.com (Bob Sneidar) Date: Mon, 30 Jan 2012 10:12:57 -0800 Subject: "Redraws will be flushed" translation In-Reply-To: <4F26B78E.9080004@fourthworld.com> References: <6E9A4A24-52B2-4017-A2C2-3C8FEA35B38D@economy-x-talk.com> <4F26B78E.9080004@fourthworld.com> Message-ID: <1B1844B9-0DEA-473A-8C31-84C9E918BABF@twft.com> I think I understand a bit. When debugging I had noticed that when tracing through code after issuing a lock screen, if I went to a card what was displayed was VERY odd. Things that were supposed to be hidden were displayed, and things that I never hide were not drawn. Once I got out of the debugger though it all cleared up. This no longer seems to happen. I think the difference may be between redrawing the objects in the cache, as opposed to redrawing everything. Just a guess tho'. Bob On Jan 30, 2012, at 7:30 AM, Richard Gaskin wrote: > Mark Schonewille wrote: > > > Previously, these redraws were remembered and executed when the > > screen was unlocked. As I understand it, the screen is now simply > > redrawn once, when the screen unlocks. That's a big difference. > > I'm probably just pre-coffee, but I'm having a hard time understanding the difference. > > -- > 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 bobs at twft.com Mon Jan 30 13:53:53 2012 From: bobs at twft.com (Bob Sneidar) Date: Mon, 30 Jan 2012 10:53:53 -0800 Subject: Alternate Form of printKeys() In-Reply-To: References: Message-ID: > Also, in the original PrintKeys() function, if the value contained multiple lines, it would only return the first line. My function returns all the lines. WHOOPS! I am mistaken here. The original version of printKeys WILL return the full value if you pass true as the third argument. My apologies Trevor. Bob From bonnmike at gmail.com Mon Jan 30 14:48:21 2012 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 30 Jan 2012 12:48:21 -0700 Subject: Search question In-Reply-To: References: <4F26D4D0.4020205@comcast.net> <4F26D738.7010703@kencorey.com> Message-ID: oops. Change the merge line to this for partial matches filter tmyList with (merge("*[[line 1 of tMerge]]*[[tab]]*[[line 2 of tMerge]]*[[tab]]*[[line 3 of tMerge]]*[[tab]]*[[line 4 of tMerge]]*")) On Mon, Jan 30, 2012 at 10:57 AM, Mike Bonner wrote: > Or with filter > > I setup a stack with a list field and 4 search fields, 1 search field for > each column, and added a search button. > > --Search button code > on mouseUp > put field "mylist" into tMyList > repeat with i = 1 to 4 > if field ("field" & i) is empty then > put "*" into line i of tMerge > else > put field ("field" & i) into line i of tMerge > end if > end repeat > filter tmyList with (merge("[[line 1 of tMerge]][[tab]][[line 2 of > tMerge]][[tab]][[line 3 of tMerge]][[tab]][[line 4 of tMerge]]")) > put tMyList > end mouseUp > > Puts an asterisk for empty search fields puts the value for the fields > that should be matched against. > From bobs at twft.com Mon Jan 30 17:02:10 2012 From: bobs at twft.com (Bob Sneidar) Date: Mon, 30 Jan 2012 14:02:10 -0800 Subject: Alternate Form of printKeys() In-Reply-To: References: Message-ID: <189B0BC7-8A6A-4BCB-8EEC-7A208014E7D4@twft.com> As an aside, here is how I implemented the kind of thing I was talking about: -- convert the datagrid array to key text put altPrintKeys(theDataA) into theText -- filter the data filter theText with tab & "*" & theValue & "*" -- convert the text back to an array put altKeysToArray(theText) into theDataA The idea here is that the tab is the delimiter between the keys and the value. Any tabs that were in the original data will have been converted to ascii(11) by the altPrintKeys() function, so they will not come into play. The carriage returns were converted to ascii(30) so that the filter command will not choke on the multi-line values that might be returned. Bob From bvg at mac.com Mon Jan 30 17:04:41 2012 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Mon, 30 Jan 2012 23:04:41 +0100 Subject: How to get all message names In-Reply-To: References: <8CEAD70E0382AC3-2AD8-1D08B@webmail-m153.sysops.aol.com> <9AA08C3E-A25C-48AB-9FA8-B72B49274558@major.on-rev.com> <8CEAD782FAB6384-2AD8-1D9E6@webmail-m153.sysops.aol.com> Message-ID: <630ED3DD-FB57-449F-B823-599D30D54E3D@mac.com> If you need help, just ask me directly :) On 30.01.2012, at 18:01, Mike Bonner wrote: > Ok so maybe its an encoded array of xml data. I'm thinking use the sqlite > db generated by the bvgdocu to do this. > > On Mon, Jan 30, 2012 at 9:55 AM, Mike Bonner wrote: > >> This may be a roundabout method but.. If you go here >> http://bjoernke.com/index.irev?target=bvgdocu and download bvgdocu 2.0 >> it generates an sqlite database of the dictionary where the "type" column >> contains the type of entry. Message, etc. It might be possible to use the >> sqlite db directly, and if not dig around and see exactly how the info was >> generated. >> >> After poking around in the code it appears that the .index files located >> in (C:\Program Files (x86)\RunRev\LiveCode 5.0.2\Documentation) are >> encoded arrays. So some method similar to what bvg did should work to >> extract the info you are looking for directly from the files. Maybe? >> Haven't done it so my level of clue on this stuff is still pretty low. >> >> >> On Mon, Jan 30, 2012 at 8:34 AM, Klaus on-rev wrote: >> >>> Hi Craig, >>> >>> Am 30.01.2012 um 16:08 schrieb dunbarx at aol.com: >>> >>>> Clever, Klaus. >>> >>> :-) >>> >>> But this is only step 1... >>> >>>> But there are lots of groups in the stack "revDictionary". I selected >>> "message" to load the DG, and then went through each group and tried to >>> extract the dgText which contained, say, "mouseUp". Nothing. Do you know >>> what the name of the dataGrid is? >>> >>> No, sorry, I just looked by myself and that is very well hidden somehow. >>> >>>> And why would my method not work? >>> >>> Sorry, no idea. >>> >>>> Craig Newman >>> >>>>> ... >>>>> Hi all, >>>>> >>>>> Does anyone know how to quickly get all livecode message names? >>>>> >>>>> I know you can get the propertyNames, the functionNames, the >>> commandNames >>>>> but I get a error when doing get the messageNames or a couple of >>> similars. >>>> >>>> Open the dictionary. >>>> In the left index click: Language -> Commands >>>> >>>> Now you only need to extract this list from the first column of the >>> datagrid :-) >>>> >>>>> Thanks in advance, >>>>> Claudi >>> >>> 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 >>> >> >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jan 30 17:07:01 2012 From: pete at mollysrevenge.com (Pete) Date: Mon, 30 Jan 2012 14:07:01 -0800 Subject: Orin's check Message-ID: Finally got the OK to cash Orin's check so I'll be paying it in today and sending checks off to everyone. David, I'll pay yours into your credit union account -- Pete Molly's Revenge From andre at andregarzia.com Mon Jan 30 17:12:10 2012 From: andre at andregarzia.com (Andre Garzia) Date: Mon, 30 Jan 2012 20:12:10 -0200 Subject: Orin's check In-Reply-To: References: Message-ID: On Mon, Jan 30, 2012 at 8:07 PM, Pete wrote: > Finally got the OK to cash Orin's check so I'll be paying it in today and > sending checks off to everyone. ?David, I'll pay yours into your credit > union account Pete, I think you sent this to the wrong place... or you are a very generous man and will send checks to all the improve-list... =) > > > -- > 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 -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. From pete at mollysrevenge.com Mon Jan 30 17:23:27 2012 From: pete at mollysrevenge.com (Pete) Date: Mon, 30 Jan 2012 14:23:27 -0800 Subject: Orin's check In-Reply-To: References: Message-ID: Whoops, how did that happen! I am a very generous man but only with other people's money! Pete On Mon, Jan 30, 2012 at 2:12 PM, Andre Garzia wrote: > On Mon, Jan 30, 2012 at 8:07 PM, Pete wrote: > > Finally got the OK to cash Orin's check so I'll be paying it in today and > > sending checks off to everyone. David, I'll pay yours into your credit > > union account > > Pete, > > I think you sent this to the wrong place... or you are a very generous > man and will send checks to all the improve-list... > > =) > > > > > > > > -- > > 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 > > > > -- > http://www.andregarzia.com -- All We Do Is Code. > http://fon.nu -- minimalist url shortening service. > > _______________________________________________ > use-livecode mailing list > use-livecode 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 bobs at twft.com Mon Jan 30 17:26:13 2012 From: bobs at twft.com (Bob Sneidar) Date: Mon, 30 Jan 2012 14:26:13 -0800 Subject: Orin's check In-Reply-To: References: Message-ID: <39C099A3-DA7C-4D64-A73F-B556161F35E0@twft.com> Do I get to write my own check? ;-) Bob On Jan 30, 2012, at 2:12 PM, Andre Garzia wrote: > On Mon, Jan 30, 2012 at 8:07 PM, Pete wrote: >> Finally got the OK to cash Orin's check so I'll be paying it in today and >> sending checks off to everyone. David, I'll pay yours into your credit >> union account > > Pete, > > I think you sent this to the wrong place... or you are a very generous > man and will send checks to all the improve-list... > > =) > > >> >> >> -- >> 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 > > > > -- > http://www.andregarzia.com -- All We Do Is Code. > http://fon.nu -- minimalist url shortening service. > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mon Jan 30 17:35:38 2012 From: monte at sweattechnologies.com (Monte Goulding) Date: Tue, 31 Jan 2012 09:35:38 +1100 Subject: An iPhone app as a remote control for an iPad app. Is it possible? In-Reply-To: References: <1327921483166-4340652.post@n4.nabble.com> <4F268D3A.4030303@braguglia.ch> <4F26A1F1.2010905@kencorey.com> Message-ID: Hi Paolo What you need is the bluetooth peer to peer stuff in GameKit. I've started messing with an external for that as I thought it might be handy. What's your timeframe? Cheers Monte On 31/01/2012, at 1:35 AM, paolo mazza wrote: > Thank you Ken. > > My idea is as simple as this: > > - from a LC app in the iPhone I want to send "back"/"forward" > commands to change the images in a LC app in the iPad. > > The idea is simple. The implementation probably is not so simple. > > I am uncomfortable with low level communications and I am looking for > an "easy" solution. > > Thank you very much, > > Paolo > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jan 30 17:56:23 2012 From: jhj at jhj.com (Jerry Jensen) Date: Mon, 30 Jan 2012 14:56:23 -0800 Subject: Orin's check In-Reply-To: References: Message-ID: Once I accidentally sent an invoice to a usenet group. Nobody paid. 8-\ On Jan 30, 2012, at 2:23 PM, Pete wrote: > Whoops, how did that happen! I am a very generous man but only with other > people's money! > Pete > > On Mon, Jan 30, 2012 at 2:12 PM, Andre Garzia wrote: > >> On Mon, Jan 30, 2012 at 8:07 PM, Pete wrote: >>> Finally got the OK to cash Orin's check so I'll be paying it in today and >>> sending checks off to everyone. David, I'll pay yours into your credit >>> union account From bobs at twft.com Mon Jan 30 18:09:11 2012 From: bobs at twft.com (Bob Sneidar) Date: Mon, 30 Jan 2012 15:09:11 -0800 Subject: Orin's check In-Reply-To: References: Message-ID: You need to do that on a spam list. You'd be surprised how much you can make like that. The trick is knowing when to leave for Bermuda. ;-) Bob On Jan 30, 2012, at 2:56 PM, Jerry Jensen wrote: > Once I accidentally sent an invoice to a usenet group. Nobody paid. 8-\ > > On Jan 30, 2012, at 2:23 PM, Pete wrote: > >> Whoops, how did that happen! I am a very generous man but only with other >> people's money! >> Pete >> >> On Mon, Jan 30, 2012 at 2:12 PM, Andre Garzia wrote: >> >>> On Mon, Jan 30, 2012 at 8:07 PM, Pete wrote: >>>> Finally got the OK to cash Orin's check so I'll be paying it in today and >>>> sending checks off to everyone. David, I'll pay yours into your credit >>>> union account > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at splash21.com Mon Jan 30 18:52:37 2012 From: john at splash21.com (John Craig) Date: Mon, 30 Jan 2012 23:52:37 +0000 Subject: [ANN] libQR In-Reply-To: <4F1FDED5.8060207@splash21.com> References: <4F1FDED5.8060207@splash21.com> Message-ID: <4F272D45.6010107@splash21.com> Again - thanks for feedback. No-one has had any real problems and I'm pleased to announce that version 40-M codes are being generated on my machine in 2 - 3 seconds! 'Normal' sized codes are squirted out in next to no time, but now generating even the largest of QR codes if required should be no problem. The test version sent out was taking around 50 seconds to generate the large (version 35+) QR codes! I've also been successfully scanning the large codes with the iPhone - it just takes a steady hand ;P On 25/01/2012 10:52, John Craig wrote: > Hi, everyone. I had a project requirement to generate QR codes from > within LC and have just completed the library. I'll release it after > more testing, but if anyone wants a test stack then please drop me an > email. As it's all coded in LC, it should work fine on Windows / Mac > / Linux. > > Thanks, > > :) > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mon Jan 30 18:58:31 2012 From: andre at andregarzia.com (Andre Garzia) Date: Mon, 30 Jan 2012 21:58:31 -0200 Subject: Orin's check In-Reply-To: References: Message-ID: On Mon, Jan 30, 2012 at 9:09 PM, Bob Sneidar wrote: > You need to do that on a spam list. You'd be surprised how much you can make like that. The trick is knowing when to leave for Bermuda. ;-) > I once worked on an email market company, on my first day, I wanted to test the system and send an email to my boss only. I hit the wrong button and sent it to half a million recipients.... The email had the following body: "This Is A Test" Imagine the kind of answer I received back.... > Bob > > > On Jan 30, 2012, at 2:56 PM, Jerry Jensen wrote: > >> Once I accidentally sent an invoice to a usenet group. Nobody paid. 8-\ >> >> On Jan 30, 2012, at 2:23 PM, Pete wrote: >> >>> Whoops, how did that happen! ?I am a very generous man but only with other >>> people's money! >>> Pete >>> >>> On Mon, Jan 30, 2012 at 2:12 PM, Andre Garzia wrote: >>> >>>> On Mon, Jan 30, 2012 at 8:07 PM, Pete wrote: >>>>> Finally got the OK to cash Orin's check so I'll be paying it in today and >>>>> sending checks off to everyone. ?David, I'll pay yours into your credit >>>>> union account >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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. http://fon.nu -- minimalist url shortening service. From roger.e.eller at sealedair.com Mon Jan 30 19:09:31 2012 From: roger.e.eller at sealedair.com (Roger Eller) Date: Mon, 30 Jan 2012 19:09:31 -0500 Subject: [ANN] libQR In-Reply-To: <4F272D45.6010107@splash21.com> References: <4F1FDED5.8060207@splash21.com> <4F272D45.6010107@splash21.com> Message-ID: On Mon, Jan 30, 2012 at 6:52 PM, John Craig wrote: > Again - thanks for feedback. No-one has had any real problems and I'm > pleased to announce that version 40-M codes are being generated on my > machine in 2 - 3 seconds! 'Normal' sized codes are squirted out in next to > no time, but now generating even the largest of QR codes if required should > be no problem. The test version sent out was taking around 50 seconds to > generate the large (version 35+) QR codes! > > I've also been successfully scanning the large codes with the iPhone - it > just takes a steady hand ;P John - Until now, I have never EVER visualized a code being "squirted out". Sounds like a neat idea to make a creative logo. ?Roger From john at splash21.com Mon Jan 30 19:10:01 2012 From: john at splash21.com (John Craig) Date: Tue, 31 Jan 2012 00:10:01 +0000 Subject: [ANN] libQR In-Reply-To: <4F1FDED5.8060207@splash21.com> References: <4F1FDED5.8060207@splash21.com> Message-ID: <4F273159.7030903@splash21.com> Some may be interested, so at the risk of boring you with mind-numbing figures... I've just generated the largest QR code (Version 40-H) in under 2.5 seconds including applying the lowest scoring mask as per the ISO document. If you cheat, and manually select a mask, you can churn it out in well under 1 second (~750 ms). All codes have been scanning fine with an iPhone :) On 25/01/2012 10:52, John Craig wrote: > Hi, everyone. I had a project requirement to generate QR codes from > within LC and have just completed the library. I'll release it after > more testing, but if anyone wants a test stack then please drop me an > email. As it's all coded in LC, it should work fine on Windows / Mac > / Linux. > > Thanks, > > :) > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at splash21.com Mon Jan 30 19:13:35 2012 From: john at splash21.com (John Craig) Date: Tue, 31 Jan 2012 00:13:35 +0000 Subject: [ANN] libQR In-Reply-To: References: <4F1FDED5.8060207@splash21.com> <4F272D45.6010107@splash21.com> Message-ID: <4F27322F.3020209@splash21.com> LOL - sQuiRt coincidentally contains Q and R :D On 31/01/2012 00:09, Roger Eller wrote: > On Mon, Jan 30, 2012 at 6:52 PM, John Craig wrote: > >> Again - thanks for feedback. No-one has had any real problems and I'm >> pleased to announce that version 40-M codes are being generated on my >> machine in 2 - 3 seconds! 'Normal' sized codes are squirted out in next to >> no time, but now generating even the largest of QR codes if required should >> be no problem. The test version sent out was taking around 50 seconds to >> generate the large (version 35+) QR codes! >> >> I've also been successfully scanning the large codes with the iPhone - it >> just takes a steady hand ;P > > John - Until now, I have never EVER visualized a code being "squirted > out". Sounds like a neat idea to make a creative logo. > > ?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 bonnmike at gmail.com Mon Jan 30 19:39:00 2012 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 30 Jan 2012 17:39:00 -0700 Subject: How to get all message names In-Reply-To: <630ED3DD-FB57-449F-B823-599D30D54E3D@mac.com> References: <8CEAD70E0382AC3-2AD8-1D08B@webmail-m153.sysops.aol.com> <9AA08C3E-A25C-48AB-9FA8-B72B49274558@major.on-rev.com> <8CEAD782FAB6384-2AD8-1D9E6@webmail-m153.sysops.aol.com> <630ED3DD-FB57-449F-B823-599D30D54E3D@mac.com> Message-ID: Yeah, what bvg said! By the way, I love some of your variable names. Made me smile! From johnpatten at mac.com Mon Jan 30 19:45:34 2012 From: johnpatten at mac.com (John Patten) Date: Mon, 30 Jan 2012 16:45:34 -0800 Subject: Combining some lines of text in a list? Message-ID: Hi All... I have a list of items. The items in the list are in similar groups but each group is delimited by a tab. For example: name:Group1 description:Animals with four legs. creature1:cats creature2:dogs notes1:Animals that are pets. notes2:Animals that have fur. name:Group 2 description:Animals that swim. creature1:sharks creature2:tuna creature3:whales notes1:Animals that live in the sea. notes2:Animals that don't have fur. etc. etc.... The items in the list are formatted identical. It is just the content after the colon that changes. How would I go about combining the "creature" line (line 3) with the other creature lines for each item in list? Ultimately I would like my items in my list to look like: name:Group1 description:Animals with four legs. creature1:cats dogs notes1:Animals that are pets. notes2:Animals that have fur. name:Group 2 description:Animals that swim. creature1:sharks tuna whales notes1:Animals that live in the sea. notes2:Animals that don't have fur. I have been experimenting with: on mouseUp set the itemdel to tab put 2 into x put 1 into y repeat for number of items in cd fld "data" - 1 put item x of cd fld "data" into tTempData put lineOffSet("creature1:", tTempData) into tTextStart --4 put lineOffSet("notes1:", tTempData) into tTextEnd repeat for number of lines in tTempData put char 1 to 10 of line (tTextStart + y) of tTempData into tFirst put char 1 to 7 of line tTextEnd of tTempdata into tEnd if tFirst <> tEnd then put line (tTextStart + y) of tTempData after tAdditionalText put empty into line (tTextStart + y) of tTempData add 1 to y put tTempData & tab & return after tFormattedData else put item x of tTempData & tab & return after tFormattedData --put item x of tTempData after tFormattedData add 1 to x add 1 to y end if end repeat add 1 to x end repeat put tFormattedData end mouseUp But I'm thinking there must be an easier way? Any suggestions? Thank you! John Patten SUSD From andre at andregarzia.com Mon Jan 30 19:55:27 2012 From: andre at andregarzia.com (Andre Garzia) Date: Mon, 30 Jan 2012 22:55:27 -0200 Subject: [ANN] libQR In-Reply-To: <4F27322F.3020209@splash21.com> References: <4F1FDED5.8060207@splash21.com> <4F272D45.6010107@splash21.com> <4F27322F.3020209@splash21.com> Message-ID: On Mon, Jan 30, 2012 at 10:13 PM, John Craig wrote: > LOL - sQuiRt coincidentally contains Q and R ? :D > I would use a library called sQuiRt =) > > On 31/01/2012 00:09, Roger Eller wrote: >> >> On Mon, Jan 30, 2012 at 6:52 PM, John Craig wrote: >> >>> Again - thanks for feedback. ?No-one has had any real problems and I'm >>> pleased to announce that version 40-M codes are being generated on my >>> machine in 2 - 3 seconds! ?'Normal' sized codes are squirted out in next >>> to >>> no time, but now generating even the largest of QR codes if required >>> should >>> be no problem. The test version sent out was taking around 50 seconds to >>> generate the large (version 35+) QR codes! >>> >>> ?I've also been successfully scanning the large codes with the iPhone - >>> it >>> just takes a steady hand ?;P >> >> >> ?John - Until now, I have never EVER visualized a code being "squirted >> out". ?Sounds like a neat idea to make a creative logo. >> >> ?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 -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. From martyknapp at comcast.net Mon Jan 30 20:02:32 2012 From: martyknapp at comcast.net (Marty Knapp) Date: Mon, 30 Jan 2012 17:02:32 -0800 Subject: Search question In-Reply-To: References: <4F26D4D0.4020205@comcast.net> <4F26D738.7010703@kencorey.com> Message-ID: <4F273DA8.2030701@comcast.net> Thanks to those who responded to this. I was doing something similar to Dan's idea, but wondered if there was a way to use lineOffset or something else. I'll take a look at all the suggestions and continue on. I wish I could wrap my brain around regex - it all looks like a cat walked across my keyboard to my poor mind! Marty K > oops. Change the merge line to this for partial matches > > filter tmyList with (merge("*[[line 1 of tMerge]]*[[tab]]*[[line 2 of > tMerge]]*[[tab]]*[[line 3 of tMerge]]*[[tab]]*[[line 4 of tMerge]]*")) > > > On Mon, Jan 30, 2012 at 10:57 AM, Mike Bonner wrote: > >> Or with filter >> >> I setup a stack with a list field and 4 search fields, 1 search field for >> each column, and added a search button. >> >> --Search button code >> on mouseUp >> put field "mylist" into tMyList >> repeat with i = 1 to 4 >> if field ("field"& i) is empty then >> put "*" into line i of tMerge >> else >> put field ("field"& i) into line i of tMerge >> end if >> end repeat >> filter tmyList with (merge("[[line 1 of tMerge]][[tab]][[line 2 of >> tMerge]][[tab]][[line 3 of tMerge]][[tab]][[line 4 of tMerge]]")) >> put tMyList >> end mouseUp >> >> Puts an asterisk for empty search fields puts the value for the fields >> that should be matched against. From bonnmike at gmail.com Mon Jan 30 20:09:36 2012 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 30 Jan 2012 18:09:36 -0700 Subject: Combining some lines of text in a list? In-Reply-To: References: Message-ID: Just tried it and ended up with the following. (made a stack with 2 fields, 1 with your sample text, other for output) on mouseUp put field 1 into tVar set the itemdel to colon repeat for each line tLine in tVar switch item 1 of tLine case "name" put return & return & tLine after tNewVar -- put the name line into a holding var break case "description" put return & tLine after tNewVar -- same as name. Puts description on a new line in the holding var break case "creature1" -- if its creature 1, new line and put the whole line put return & tLine after tNewVar break case "notes1" -- if its notes1, new line and put the whole line put return & tLine after tNewVar break default -- everything that doesn't match the preceeding rules just take it on to the end of the holding var -- This assumes that the list is always correctly organized. (ie, name, description, group of creatures, group of notes put space & item 2 of tLine after tNewVar end switch end repeat put tNewVar into field 2 delete char 1 to 2 of field 2 end mouseUp On Mon, Jan 30, 2012 at 5:45 PM, John Patten wrote: > Hi All... > > I have a list of items. The items in the list are in similar groups but > each group is delimited by a tab. > > For example: > > name:Group1 > description:Animals with four legs. > creature1:cats > creature2:dogs > notes1:Animals that are pets. > notes2:Animals that have fur. > > > name:Group 2 > description:Animals that swim. > creature1:sharks > creature2:tuna > creature3:whales > notes1:Animals that live in the sea. > notes2:Animals that don't have fur. > > etc. etc.... > > The items in the list are formatted identical. It is just the content > after the colon that changes. > > How would I go about combining the "creature" line (line 3) with the other > creature lines for each item in list? > > Ultimately I would like my items in my list to look like: > > name:Group1 > description:Animals with four legs. > creature1:cats dogs > notes1:Animals that are pets. > notes2:Animals that have fur. > > name:Group 2 > description:Animals that swim. > creature1:sharks tuna whales > notes1:Animals that live in the sea. > notes2:Animals that don't have fur. > > I have been experimenting with: > > on mouseUp > set the itemdel to tab > put 2 into x > put 1 into y > repeat for number of items in cd fld "data" - 1 > put item x of cd fld "data" into tTempData > put lineOffSet("creature1:", tTempData) into tTextStart --4 > put lineOffSet("notes1:", tTempData) into tTextEnd > repeat for number of lines in tTempData > put char 1 to 10 of line (tTextStart + y) of tTempData into tFirst > put char 1 to 7 of line tTextEnd of tTempdata into tEnd > if tFirst <> tEnd then > put line (tTextStart + y) of tTempData after tAdditionalText > put empty into line (tTextStart + y) of tTempData > add 1 to y > put tTempData & tab & return after tFormattedData > else > put item x of tTempData & tab & return after tFormattedData > --put item x of tTempData after tFormattedData > add 1 to x > add 1 to y > end if > end repeat > add 1 to x > > end repeat > put tFormattedData > end mouseUp > > But I'm thinking there must be an easier way? Any suggestions? > > 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 Mon Jan 30 20:20:18 2012 From: bobs at twft.com (Bob Sneidar) Date: Mon, 30 Jan 2012 17:20:18 -0800 Subject: Search question In-Reply-To: <4F273DA8.2030701@comcast.net> References: <4F26D4D0.4020205@comcast.net> <4F26D738.7010703@kencorey.com> <4F273DA8.2030701@comcast.net> Message-ID: The last time I got into regex, I forgot how to pee. Took two days to get it back. Bob On Jan 30, 2012, at 5:02 PM, Marty Knapp wrote: > Thanks to those who responded to this. I was doing something similar to Dan's idea, but wondered if there was a way to use lineOffset or something else. I'll take a look at all the suggestions and continue on. I wish I could wrap my brain around regex - it all looks like a cat walked across my keyboard to my poor mind! > > Marty K >> oops. Change the merge line to this for partial matches >> >> filter tmyList with (merge("*[[line 1 of tMerge]]*[[tab]]*[[line 2 of >> tMerge]]*[[tab]]*[[line 3 of tMerge]]*[[tab]]*[[line 4 of tMerge]]*")) From bobs at twft.com Mon Jan 30 20:22:41 2012 From: bobs at twft.com (Bob Sneidar) Date: Mon, 30 Jan 2012 17:22:41 -0800 Subject: [ANN] libQR In-Reply-To: References: <4F1FDED5.8060207@splash21.com> <4F272D45.6010107@splash21.com> Message-ID: <3783F0C9-EE06-4808-870C-EFE6C0BB9D08@twft.com> That is a great idea for the web page you will be sure to be making! Bob On Jan 30, 2012, at 4:09 PM, Roger Eller wrote: > On Mon, Jan 30, 2012 at 6:52 PM, John Craig wrote: > >> Again - thanks for feedback. No-one has had any real problems and I'm >> pleased to announce that version 40-M codes are being generated on my >> machine in 2 - 3 seconds! 'Normal' sized codes are squirted out in next to >> no time, but now generating even the largest of QR codes if required should >> be no problem. The test version sent out was taking around 50 seconds to >> generate the large (version 35+) QR codes! >> >> I've also been successfully scanning the large codes with the iPhone - it >> just takes a steady hand ;P > > > John - Until now, I have never EVER visualized a code being "squirted > out". Sounds like a neat idea to make a creative logo. > > ?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 bvg at mac.com Mon Jan 30 20:47:37 2012 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Tue, 31 Jan 2012 02:47:37 +0100 Subject: How to get all message names In-Reply-To: <630ED3DD-FB57-449F-B823-599D30D54E3D@mac.com> References: <8CEAD70E0382AC3-2AD8-1D08B@webmail-m153.sysops.aol.com> <9AA08C3E-A25C-48AB-9FA8-B72B49274558@major.on-rev.com> <8CEAD782FAB6384-2AD8-1D9E6@webmail-m153.sysops.aol.com> <630ED3DD-FB57-449F-B823-599D30D54E3D@mac.com> Message-ID: <289613E0-E790-4560-A2DD-5284E458C369@mac.com> oh, i also forgot to mention, in the bvgdocu 2 gui, go to "topics" and select "termonology type" from the drop down. It will then list the entries by type, as well as giving you an amount of each type. You can then select a type, and it will list only those of that type, in the second field (just make sure not to have anything typed in the search field, so you get all of em). I think that's what you wanted to begin with, no? On 30.01.2012, at 23:04, Bj?rnke von Gierke wrote: > If you need help, just ask me directly :) > > On 30.01.2012, at 18:01, Mike Bonner wrote: > >> Ok so maybe its an encoded array of xml data. I'm thinking use the sqlite >> db generated by the bvgdocu to do this. >> >> On Mon, Jan 30, 2012 at 9:55 AM, Mike Bonner wrote: >> >>> This may be a roundabout method but.. If you go here >>> http://bjoernke.com/index.irev?target=bvgdocu and download bvgdocu 2.0 >>> it generates an sqlite database of the dictionary where the "type" column >>> contains the type of entry. Message, etc. It might be possible to use the >>> sqlite db directly, and if not dig around and see exactly how the info was >>> generated. >>> >>> After poking around in the code it appears that the .index files located >>> in (C:\Program Files (x86)\RunRev\LiveCode 5.0.2\Documentation) are >>> encoded arrays. So some method similar to what bvg did should work to >>> extract the info you are looking for directly from the files. Maybe? >>> Haven't done it so my level of clue on this stuff is still pretty low. >>> >>> >>> On Mon, Jan 30, 2012 at 8:34 AM, Klaus on-rev wrote: >>> >>>> Hi Craig, >>>> >>>> Am 30.01.2012 um 16:08 schrieb dunbarx at aol.com: >>>> >>>>> Clever, Klaus. >>>> >>>> :-) >>>> >>>> But this is only step 1... >>>> >>>>> But there are lots of groups in the stack "revDictionary". I selected >>>> "message" to load the DG, and then went through each group and tried to >>>> extract the dgText which contained, say, "mouseUp". Nothing. Do you know >>>> what the name of the dataGrid is? >>>> >>>> No, sorry, I just looked by myself and that is very well hidden somehow. >>>> >>>>> And why would my method not work? >>>> >>>> Sorry, no idea. >>>> >>>>> Craig Newman >>>> >>>>>> ... >>>>>> Hi all, >>>>>> >>>>>> Does anyone know how to quickly get all livecode message names? >>>>>> >>>>>> I know you can get the propertyNames, the functionNames, the >>>> commandNames >>>>>> but I get a error when doing get the messageNames or a couple of >>>> similars. >>>>> >>>>> Open the dictionary. >>>>> In the left index click: Language -> Commands >>>>> >>>>> Now you only need to extract this list from the first column of the >>>> datagrid :-) >>>>> >>>>>> Thanks in advance, >>>>>> Claudi >>>> >>>> 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 >>>> >>> >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Mon Jan 30 21:47:20 2012 From: andre at andregarzia.com (Andre Garzia) Date: Tue, 31 Jan 2012 00:47:20 -0200 Subject: "Redraws will be flushed" translation In-Reply-To: <1B1844B9-0DEA-473A-8C31-84C9E918BABF@twft.com> References: <6E9A4A24-52B2-4017-A2C2-3C8FEA35B38D@economy-x-talk.com> <4F26B78E.9080004@fourthworld.com> <1B1844B9-0DEA-473A-8C31-84C9E918BABF@twft.com> Message-ID: Guys, If I understand it correctly, it is the opposite. Now, the screen is redrawn after every command unless the screen is locked, if the screen is locked, then it will be redrawn when it is unlocked. =) From bonnmike at gmail.com Mon Jan 30 21:53:59 2012 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 30 Jan 2012 19:53:59 -0700 Subject: OT: Walking Message-ID: Ok. I know this is not the most appropriate place for this but.. Today for the first time in about 12 years I walked 5 unassisted steps in physical therapy. (no walker, cane, walking sticks or anything) And no face plant! So on the count of 3. 1, 2, 3 WOO HOO!!!!!!!!!!!! Back to the normally scheduled program. From mikekann at yahoo.com Mon Jan 30 22:01:33 2012 From: mikekann at yahoo.com (Michael Kann) Date: Mon, 30 Jan 2012 19:01:33 -0800 (PST) Subject: Combining some lines of text in a list? In-Reply-To: Message-ID: <1327978893.71195.YahooMailClassic@web161604.mail.bf1.yahoo.com> put input_file into x replace return & "creature3" with space in x replace return & "creature2" with space in x put x into output_file --- On Mon, 1/30/12, John Patten wrote: From: John Patten Subject: Combining some lines of text in a list? To: use-livecode at lists.runrev.com Date: Monday, January 30, 2012, 6:45 PM Hi All... I have a list of items. The items in the list are in similar groups but each group is delimited by a tab. For example: name:Group1 description:Animals with four legs. creature1:cats creature2:dogs notes1:Animals that are pets. notes2:Animals that have fur. name:Group 2 description:Animals that swim. creature1:sharks creature2:tuna creature3:whales notes1:Animals that live in the sea. notes2:Animals that don't have fur. etc. etc.... The items in the list are formatted identical. It is just the content after the colon that changes. How would I go about combining the "creature" line (line 3) with the other creature lines for each item in list? Ultimately I would like my items in my list to look like: name:Group1 description:Animals with four legs. creature1:cats dogs notes1:Animals that are pets. notes2:Animals that have fur. name:Group 2 description:Animals that swim. creature1:sharks tuna whales notes1:Animals that live in the sea. notes2:Animals that don't have fur. I have been experimenting with: on mouseUp ???set the itemdel to tab ???put 2 into x ???put 1 into y ???repeat for number of items in cd fld "data" - 1 ? ? ? put item x of cd fld "data" into tTempData ? ? ? put lineOffSet("creature1:", tTempData) into tTextStart --4 ? ? ? put lineOffSet("notes1:", tTempData) into tTextEnd ? ? ? repeat for number of lines in tTempData ? ? ? put char 1 to 10 of line (tTextStart + y) of tTempData into tFirst ? ? ? put char 1 to 7 of line tTextEnd of tTempdata into tEnd ? ? ? if tFirst <> tEnd then ? ? ? ???put line (tTextStart + y) of tTempData after tAdditionalText ? ? ? ???put empty into line (tTextStart + y) of tTempData ? ? ? ???add 1 to y ? ? ? ???put tTempData & tab & return after tFormattedData ? ? ? else ? ? ? ? put item x of tTempData & tab & return after tFormattedData ? ? ? ???--put item x of tTempData after tFormattedData ? ? ? ? add 1 to x ? ? ? ? add 1 to y ? ? ? ???end if ? ? ? end repeat ? ? ? add 1 to x ? ? ? ? ? ? end repeat ? ? ? put tFormattedData end mouseUp But I'm thinking there must be an easier way? Any suggestions? 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 martyknapp at comcast.net Mon Jan 30 22:10:21 2012 From: martyknapp at comcast.net (Marty Knapp) Date: Mon, 30 Jan 2012 19:10:21 -0800 Subject: OT: Walking In-Reply-To: References: Message-ID: <4F275B9D.9020308@comcast.net> Way to go Mike! There must be a huge story behind that . . . Marty K > Ok. I know this is not the most appropriate place for this but.. Today for > the first time in about 12 years I walked 5 unassisted steps in physical > therapy. (no walker, cane, walking sticks or anything) And no face plant! > So on the count of 3. 1, 2, 3 WOO HOO!!!!!!!!!!!! > > Back to the normally scheduled program. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From mikekann at yahoo.com Mon Jan 30 22:10:33 2012 From: mikekann at yahoo.com (Michael Kann) Date: Mon, 30 Jan 2012 19:10:33 -0800 (PST) Subject: Combining some lines of text in a list? In-Reply-To: <1327978893.71195.YahooMailClassic@web161604.mail.bf1.yahoo.com> Message-ID: <1327979433.69442.YahooMailClassic@web161604.mail.bf1.yahoo.com> Sorry, I forgot the colons. put input_file into x replace return & "creature3:" with space in x replace return & "creature2:" with space in x put x into output_file --- On Mon, 1/30/12, Michael Kann wrote: From: Michael Kann Subject: Re: Combining some lines of text in a list? To: "How to use LiveCode" Date: Monday, January 30, 2012, 9:01 PM put input_file into x replace return & "creature3" with space in x replace return & "creature2" with space in x put x into output_file --- On Mon, 1/30/12, John Patten wrote: From: John Patten Subject: Combining some lines of text in a list? To: use-livecode at lists.runrev.com Date: Monday, January 30, 2012, 6:45 PM Hi All... I have a list of items. The items in the list are in similar groups but each group is delimited by a tab. For example: name:Group1 description:Animals with four legs. creature1:cats creature2:dogs notes1:Animals that are pets. notes2:Animals that have fur. name:Group 2 description:Animals that swim. creature1:sharks creature2:tuna creature3:whales notes1:Animals that live in the sea. notes2:Animals that don't have fur. etc. etc.... The items in the list are formatted identical. It is just the content after the colon that changes. How would I go about combining the "creature" line (line 3) with the other creature lines for each item in list? Ultimately I would like my items in my list to look like: name:Group1 description:Animals with four legs. creature1:cats dogs notes1:Animals that are pets. notes2:Animals that have fur. name:Group 2 description:Animals that swim. creature1:sharks tuna whales notes1:Animals that live in the sea. notes2:Animals that don't have fur. I have been experimenting with: on mouseUp ???set the itemdel to tab ???put 2 into x ???put 1 into y ???repeat for number of items in cd fld "data" - 1 ? ? ? put item x of cd fld "data" into tTempData ? ? ? put lineOffSet("creature1:", tTempData) into tTextStart --4 ? ? ? put lineOffSet("notes1:", tTempData) into tTextEnd ? ? ? repeat for number of lines in tTempData ? ? ? put char 1 to 10 of line (tTextStart + y) of tTempData into tFirst ? ? ? put char 1 to 7 of line tTextEnd of tTempdata into tEnd ? ? ? if tFirst <> tEnd then ? ? ? ???put line (tTextStart + y) of tTempData after tAdditionalText ? ? ? ???put empty into line (tTextStart + y) of tTempData ? ? ? ???add 1 to y ? ? ? ???put tTempData & tab & return after tFormattedData ? ? ? else ? ? ? ? put item x of tTempData & tab & return after tFormattedData ? ? ? ???--put item x of tTempData after tFormattedData ? ? ? ? add 1 to x ? ? ? ? add 1 to y ? ? ? ???end if ? ? ? end repeat ? ? ? add 1 to x ? ? ? ? ? ? end repeat ? ? ? put tFormattedData end mouseUp But I'm thinking there must be an easier way? Any suggestions? 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 _______________________________________________ use-livecode mailing list use-livecode at 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 Jan 30 22:23:05 2012 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 30 Jan 2012 20:23:05 -0700 Subject: Combining some lines of text in a list? In-Reply-To: <1327979433.69442.YahooMailClassic@web161604.mail.bf1.yahoo.com> References: <1327978893.71195.YahooMailClassic@web161604.mail.bf1.yahoo.com> <1327979433.69442.YahooMailClassic@web161604.mail.bf1.yahoo.com> Message-ID: I really like this method. Now that you kick started my noggin I realized you can do the same with the regex. (maybe someone already did it this way with regex not sure) put field 1 into tVar put replacetext(tVar,"\ncreature[2-9]\d?\d?:",space) into tVar --will match creature up to creature999 put replacetext(tVar,"\nnotes[2-9]\d?\d?:",space) into tVar -- same for notes up to 999 put tVar into field 2 On Mon, Jan 30, 2012 at 8:10 PM, Michael Kann wrote: > Sorry, I forgot the colons. > > put input_file into x > replace return & "creature3:" with space in x > replace return & "creature2:" with space in x > put x into output_file > > --- On Mon, 1/30/12, Michael Kann wrote: > > From: Michael Kann > Subject: Re: Combining some lines of text in a list? > To: "How to use LiveCode" > Date: Monday, January 30, 2012, 9:01 PM > > put input_file into x > replace return & "creature3" with space in x > replace return & "creature2" with space in x > put x into output_file > > > > > --- On Mon, 1/30/12, John Patten wrote: > > From: John Patten > Subject: Combining some lines of text in a list? > To: use-livecode at lists.runrev.com > Date: Monday, January 30, 2012, 6:45 PM > > Hi All... > > I have a list of items. The items in the list are in similar groups but > each group is delimited by a tab. > > For example: > > name:Group1 > description:Animals with four legs. > creature1:cats > creature2:dogs > notes1:Animals that are pets. > notes2:Animals that have fur. > > > name:Group 2 > description:Animals that swim. > creature1:sharks > creature2:tuna > creature3:whales > notes1:Animals that live in the sea. > notes2:Animals that don't have fur. > > etc. etc.... > > The items in the list are formatted identical. It is just the content > after the colon that changes. > > How would I go about combining the "creature" line (line 3) with the other > creature lines for each item in list? > > Ultimately I would like my items in my list to look like: > > name:Group1 > description:Animals with four legs. > creature1:cats dogs > notes1:Animals that are pets. > notes2:Animals that have fur. > > name:Group 2 > description:Animals that swim. > creature1:sharks tuna whales > notes1:Animals that live in the sea. > notes2:Animals that don't have fur. > > I have been experimenting with: > > on mouseUp > set the itemdel to tab > put 2 into x > put 1 into y > repeat for number of items in cd fld "data" - 1 > put item x of cd fld "data" into tTempData > put lineOffSet("creature1:", tTempData) into tTextStart --4 > put lineOffSet("notes1:", tTempData) into tTextEnd > repeat for number of lines in tTempData > put char 1 to 10 of line (tTextStart + y) of tTempData into tFirst > put char 1 to 7 of line tTextEnd of tTempdata into tEnd > if tFirst <> tEnd then > put line (tTextStart + y) of tTempData after tAdditionalText > put empty into line (tTextStart + y) of tTempData > add 1 to y > put tTempData & tab & return after tFormattedData > else > put item x of tTempData & tab & return after tFormattedData > --put item x of tTempData after tFormattedData > add 1 to x > add 1 to y > end if > end repeat > add 1 to x > > end repeat > put tFormattedData > end mouseUp > > But I'm thinking there must be an easier way? Any suggestions? > > 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 > _______________________________________________ > use-livecode mailing list > use-livecode 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 Mon Jan 30 22:24:01 2012 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 30 Jan 2012 20:24:01 -0700 Subject: OT: Walking In-Reply-To: <4F275B9D.9020308@comcast.net> References: <4F275B9D.9020308@comcast.net> Message-ID: 3 huge stories, and a mini-series. /nod Lets just hope theres no big plot twist right at the end. On Mon, Jan 30, 2012 at 8:10 PM, Marty Knapp wrote: > Way to go Mike! There must be a huge story behind that . . . > > Marty K > >> Ok. I know this is not the most appropriate place for this but.. Today for >> the first time in about 12 years I walked 5 unassisted steps in physical >> therapy. (no walker, cane, walking sticks or anything) And no face plant! >> So on the count of 3. 1, 2, 3 WOO HOO!!!!!!!!!!!! >> >> Back to the normally scheduled program. >> ______________________________**_________________ >> use-livecode mailing list >> use-livecode 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 rdimola at evergreeninfo.net Mon Jan 30 23:17:58 2012 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Mon, 30 Jan 2012 23:17:58 -0500 Subject: OT: Walking In-Reply-To: References: Message-ID: <87600e0f-4f09-4aa5-943f-0645ee8a23fc@blur> Mike, 3,2,1......hee-hah!!! Great for you! Keep it up! Ralph DiMola MIS Director Evergreen Information Services rdimola at evergreeninfo.net -----Original message----- From: Mike Bonner To: How to use LiveCode Sent: Tue, Jan 31, 2012 02:53:59 GMT+00:00 Subject: OT: Walking Ok. I know this is not the most appropriate place for this but.. Today for the first time in about 12 years I walked 5 unassisted steps in physical therapy. (no walker, cane, walking sticks or anything) And no face plant! So on the count of 3. 1, 2, 3 WOO HOO!!!!!!!!!!!! Back to the normally scheduled program. _______________________________________________ use-livecode mailing list use-livecode at 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 Jan 30 23:32:11 2012 From: jhj at jhj.com (Jerry Jensen) Date: Mon, 30 Jan 2012 20:32:11 -0800 Subject: OT: Walking In-Reply-To: References: Message-ID: <7C2C66EE-8385-411F-8AE8-2CD188920C0E@jhj.com> Go man, GO! Pretty soon it should be "many", no longer any point in counting! On Jan 30, 2012, at 6:53 PM, Mike Bonner wrote: > Ok. I know this is not the most appropriate place for this but.. Today for > the first time in about 12 years I walked 5 unassisted steps in physical > therapy. (no walker, cane, walking sticks or anything) And no face plant! > So on the count of 3. 1, 2, 3 WOO HOO!!!!!!!!!!!! > > Back to the normally scheduled program. From jacque at hyperactivesw.com Mon Jan 30 23:46:12 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 30 Jan 2012 22:46:12 -0600 Subject: OT: Walking In-Reply-To: References: Message-ID: <4F277214.4040600@hyperactivesw.com> On 1/30/12 8:53 PM, Mike Bonner wrote: > Ok. I know this is not the most appropriate place for this but.. Today for > the first time in about 12 years I walked 5 unassisted steps in physical > therapy. (no walker, cane, walking sticks or anything) And no face plant! > So on the count of 3. 1, 2, 3 WOO HOO!!!!!!!!!!!! WILD APPLAUSE!!! You are your own "standing" ovation. :) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From revdev at pdslabs.net Mon Jan 30 23:47:07 2012 From: revdev at pdslabs.net (Phil Davis) Date: Mon, 30 Jan 2012 20:47:07 -0800 Subject: OT: Walking In-Reply-To: References: Message-ID: <4F27724B.4040002@pdslabs.net> Thanks for sharing your great news, Mike! Experiences like that give birth to hope - and rightly so! Phil On 1/30/12 6:53 PM, Mike Bonner wrote: > Ok. I know this is not the most appropriate place for this but.. Today for > the first time in about 12 years I walked 5 unassisted steps in physical > therapy. (no walker, cane, walking sticks or anything) And no face plant! > So on the count of 3. 1, 2, 3 WOO HOO!!!!!!!!!!!! > > Back to the normally scheduled program. > _______________________________________________ > use-livecode mailing list > use-livecode 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 jacque at hyperactivesw.com Mon Jan 30 23:49:31 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 30 Jan 2012 22:49:31 -0600 Subject: "Redraws will be flushed" translation In-Reply-To: References: <6E9A4A24-52B2-4017-A2C2-3C8FEA35B38D@economy-x-talk.com> <4F26B78E.9080004@fourthworld.com> <1B1844B9-0DEA-473A-8C31-84C9E918BABF@twft.com> Message-ID: <4F2772DB.7040403@hyperactivesw.com> On 1/30/12 8:47 PM, Andre Garzia wrote: > Guys, > > If I understand it correctly, it is the opposite. Now, the screen is > redrawn after every command unless the screen is locked, if the screen > is locked, then it will be redrawn when it is unlocked. > > =) Just like it was before... I'm so confused. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bonnmike at gmail.com Tue Jan 31 00:15:35 2012 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 30 Jan 2012 22:15:35 -0700 Subject: OT: Walking In-Reply-To: <4F277214.4040600@hyperactivesw.com> References: <4F277214.4040600@hyperactivesw.com> Message-ID: >> WILD APPLAUSE!!! You are your own "standing" ovation. :) GROAN On Mon, Jan 30, 2012 at 9:46 PM, J. Landman Gay wrote: > On 1/30/12 8:53 PM, Mike Bonner wrote: > >> Ok. I know this is not the most appropriate place for this but.. Today for >> the first time in about 12 years I walked 5 unassisted steps in physical >> therapy. (no walker, cane, walking sticks or anything) And no face plant! >> So on the count of 3. 1, 2, 3 WOO HOO!!!!!!!!!!!! >> > > WILD APPLAUSE!!! You are your own "standing" ovation. :) > > -- > 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 ken at kencorey.com Tue Jan 31 01:46:06 2012 From: ken at kencorey.com (Ken Corey) Date: Tue, 31 Jan 2012 06:46:06 +0000 Subject: Search question In-Reply-To: <4F273DA8.2030701@comcast.net> References: <4F26D4D0.4020205@comcast.net> <4F26D738.7010703@kencorey.com> <4F273DA8.2030701@comcast.net> Message-ID: <4F278E2E.7020807@kencorey.com> On 31/01/2012 01:02, Marty Knapp wrote: > Thanks to those who responded to this. I was doing something similar to > Dan's idea, but wondered if there was a way to use lineOffset or > something else. I'll take a look at all the suggestions and continue on. > I wish I could wrap my brain around regex - it all looks like a cat > walked across my keyboard to my poor mind! [...] >> filter tmyList with (merge("*[[line 1 of tMerge]]*[[tab]]*[[line 2 of >> tMerge]]*[[tab]]*[[line 3 of tMerge]]*[[tab]]*[[line 4 of tMerge]]*")) That's funny...I was thinking the same thing when I saw the filter stuff above. *grin* -Ken From ken at kencorey.com Tue Jan 31 01:47:14 2012 From: ken at kencorey.com (Ken Corey) Date: Tue, 31 Jan 2012 06:47:14 +0000 Subject: Search question In-Reply-To: References: <4F26D4D0.4020205@comcast.net> <4F26D738.7010703@kencorey.com> <4F273DA8.2030701@comcast.net> Message-ID: <4F278E72.1040305@kencorey.com> On 31/01/2012 01:20, Bob Sneidar wrote: > The last time I got into regex, I forgot how to pee. Took two days to get it back. Remind me not to be in the same room when you tackle Objective-C...:^) -Ken From ken at kencorey.com Tue Jan 31 01:52:48 2012 From: ken at kencorey.com (Ken Corey) Date: Tue, 31 Jan 2012 06:52:48 +0000 Subject: OT: Walking In-Reply-To: References: Message-ID: <4F278FC0.1000607@kencorey.com> On 31/01/2012 02:53, Mike Bonner wrote: > Ok. I know this is not the most appropriate place for this but.. Today for > the first time in about 12 years I walked 5 unassisted steps in physical > therapy. (no walker, cane, walking sticks or anything) And no face plant! > So on the count of 3. 1, 2, 3 WOO HOO!!!!!!!!!!!! Uh-oh, careful with that. Too much success and the wife will have you out mowing the grass and going shopping with her! Seriously though, way to go, congrats! -Ken From bonnmike at gmail.com Tue Jan 31 01:55:15 2012 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 30 Jan 2012 23:55:15 -0700 Subject: OT: Walking In-Reply-To: <4F278FC0.1000607@kencorey.com> References: <4F278FC0.1000607@kencorey.com> Message-ID: I would be so tickled to be able to mow the grass! At least 2 or 3 times. After that i'd rather drink a beer. :) On Mon, Jan 30, 2012 at 11:52 PM, Ken Corey wrote: > On 31/01/2012 02:53, Mike Bonner wrote: > >> Ok. I know this is not the most appropriate place for this but.. Today for >> the first time in about 12 years I walked 5 unassisted steps in physical >> therapy. (no walker, cane, walking sticks or anything) And no face plant! >> So on the count of 3. 1, 2, 3 WOO HOO!!!!!!!!!!!! >> > > Uh-oh, careful with that. Too much success and the wife will have you out > mowing the grass and going shopping with her! > > Seriously though, way to go, congrats! > > -Ken > > > ______________________________**_________________ > use-livecode mailing list > use-livecode at 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 Jan 31 02:00:09 2012 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 31 Jan 2012 00:00:09 -0700 Subject: Search question In-Reply-To: <4F278E2E.7020807@kencorey.com> References: <4F26D4D0.4020205@comcast.net> <4F26D738.7010703@kencorey.com> <4F273DA8.2030701@comcast.net> <4F278E2E.7020807@kencorey.com> Message-ID: Huh. I knew I liked merge but didn't know why until now. put merge("[[kitty1]][[kitty2]]") into tCatfight On Mon, Jan 30, 2012 at 11:46 PM, Ken Corey wrote: > On 31/01/2012 01:02, Marty Knapp wrote: > >> Thanks to those who responded to this. I was doing something similar to >> Dan's idea, but wondered if there was a way to use lineOffset or >> something else. I'll take a look at all the suggestions and continue on. >> I wish I could wrap my brain around regex - it all looks like a cat >> walked across my keyboard to my poor mind! >> > [...] > >> filter tmyList with (merge("*[[line 1 of tMerge]]*[[tab]]*[[line 2 of >>> tMerge]]*[[tab]]*[[line 3 of tMerge]]*[[tab]]*[[line 4 of tMerge]]*")) >>> >> > That's funny...I was thinking the same thing when I saw the filter stuff > above. *grin* > > -Ken > > ______________________________**_________________ > use-livecode mailing list > use-livecode at 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 Jan 31 02:13:09 2012 From: jperryl at ecs.fullerton.edu (Judy Perry) Date: Mon, 30 Jan 2012 23:13:09 -0800 (PST) Subject: OT: Walking In-Reply-To: References: Message-ID: Awesome! Way to go :-D Judy On Mon, 30 Jan 2012, Mike Bonner wrote: > Ok. I know this is not the most appropriate place for this but.. Today for > the first time in about 12 years I walked 5 unassisted steps in physical > therapy. (no walker, cane, walking sticks or anything) And no face plant! > So on the count of 3. 1, 2, 3 WOO HOO!!!!!!!!!!!! > > Back to the normally scheduled program. From Mark_Smith at cpe.umanitoba.ca Tue Jan 31 02:50:11 2012 From: Mark_Smith at cpe.umanitoba.ca (Mark Smith) Date: Mon, 30 Jan 2012 23:50:11 -0800 (PST) Subject: database write error Message-ID: <1327996211408-4343759.post@n4.nabble.com> Hi, I have some code that works fine until I put an apostrophe into a field and then it errors out on storing the data. Any suggestions on dealing with this problem? The code I am using looks like this: put "INSERT INTO master (delivery_date, mothers_name, mothers_phin, mothers_mhsc, mothers_dob, care_provider, note)" & \ merge("VALUES ('[[globaldate]]', '[[tmaternalname]]', '[[tmaternalphin]]', '[[tmaternalmhsc]]', " & \ "'[[tmaternaldob]]', [[tcareprovider]]', '[[tnote]]')") into tCmd revExecuteSQL gConnectID, tCmd Thanks -- Mark -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/database-write-error-tp4343759p4343759.html Sent from the Revolution - User mailing list archive at Nabble.com. From mazzapaoloitaly at gmail.com Tue Jan 31 02:53:44 2012 From: mazzapaoloitaly at gmail.com (paolo mazza) Date: Tue, 31 Jan 2012 08:53:44 +0100 Subject: An iPhone app as a remote control for an iPad app. Is it possible? In-Reply-To: References: <1327921483166-4340652.post@n4.nabble.com> <4F268D3A.4030303@braguglia.ch> <4F26A1F1.2010905@kencorey.com> Message-ID: Hi Monte, an external to manage the bluetooth stuff in GameKit would be great. I can wait for a couple of months to start this project.,, and anyway I am sure you will develop a solution faster than I can do ... so I am gonna wait for your external !!! Thanks a lot Paolo On Mon, Jan 30, 2012 at 11:35 PM, Monte Goulding wrote: > Hi Paolo > > What you need is the bluetooth peer to peer stuff in GameKit. I've started messing with an external for that as I thought it might be handy. What's your timeframe? > > Cheers > > Monte > On 31/01/2012, at 1:35 AM, paolo mazza wrote: > >> Thank you Ken. >> >> My idea is as simple as this: >> >> - from a LC app in the iPhone I want to send ? "back"/"forward" >> commands to change the images in a LC app in the iPad. >> >> The idea is simple. The implementation probably is not so simple. >> >> I am ?uncomfortable with low level communications and I am looking for >> an "easy" solution. >> >> Thank you very much, >> >> Paolo >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Jan 31 02:55:05 2012 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 31 Jan 2012 00:55:05 -0700 Subject: database write error In-Reply-To: <1327996211408-4343759.post@n4.nabble.com> References: <1327996211408-4343759.post@n4.nabble.com> Message-ID: urlencode the data before putting it into the db, decode it when you pull it back out. At least I think thats the easiest answer. t On Tue, Jan 31, 2012 at 12:50 AM, Mark Smith wrote: > Hi, I have some code that works fine until I put an apostrophe into a field > and then it errors out on storing the data. Any suggestions on dealing with > this problem? > > The code I am using looks like this: > > put "INSERT INTO master (delivery_date, mothers_name, mothers_phin, > mothers_mhsc, mothers_dob, care_provider, note)" & \ > merge("VALUES ('[[globaldate]]', '[[tmaternalname]]', '[[tmaternalphin]]', > '[[tmaternalmhsc]]', " & \ > "'[[tmaternaldob]]', [[tcareprovider]]', '[[tnote]]')") into tCmd > revExecuteSQL gConnectID, tCmd > > Thanks > -- Mark > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/database-write-error-tp4343759p4343759.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 Jan 31 03:00:38 2012 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 31 Jan 2012 01:00:38 -0700 Subject: database write error In-Reply-To: References: <1327996211408-4343759.post@n4.nabble.com> Message-ID: Hmm can't try it now but if you use the substitution form for the insert (revExecuteSQL myID, "insert into mytable values(:1,:2,:1)", "valueX","valueY") does it work that way? On Tue, Jan 31, 2012 at 12:55 AM, Mike Bonner wrote: > urlencode the data before putting it into the db, decode it when you pull > it back out. At least I think thats the easiest answer. t > > > On Tue, Jan 31, 2012 at 12:50 AM, Mark Smith wrote: > >> Hi, I have some code that works fine until I put an apostrophe into a >> field >> and then it errors out on storing the data. Any suggestions on dealing >> with >> this problem? >> >> The code I am using looks like this: >> >> put "INSERT INTO master (delivery_date, mothers_name, mothers_phin, >> mothers_mhsc, mothers_dob, care_provider, note)" & \ >> merge("VALUES ('[[globaldate]]', '[[tmaternalname]]', '[[tmaternalphin]]', >> '[[tmaternalmhsc]]', " & \ >> "'[[tmaternaldob]]', [[tcareprovider]]', '[[tnote]]')") into >> tCmd >> revExecuteSQL gConnectID, tCmd >> >> Thanks >> -- Mark >> >> >> -- >> View this message in context: >> http://runtime-revolution.278305.n4.nabble.com/database-write-error-tp4343759p4343759.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 monte at sweattechnologies.com Tue Jan 31 03:50:43 2012 From: monte at sweattechnologies.com (Monte Goulding) Date: Tue, 31 Jan 2012 19:50:43 +1100 Subject: An iPhone app as a remote control for an iPad app. Is it possible? In-Reply-To: References: <1327921483166-4340652.post@n4.nabble.com> <4F268D3A.4030303@braguglia.ch> <4F26A1F1.2010905@kencorey.com> Message-ID: <91C164C1-1F3A-4609-AA2F-BCB2E5DD7804@sweattechnologies.com> Hehe, had another little look at it this afternoon and now I'm sending little messages to my wife :-) Also added a few things to the video recording external: edit video, save video to photo album and save image to photo album. > Hi Monte, > an external to manage the bluetooth stuff in GameKit would be great. > I can wait for a couple of months to start this project.,, and anyway > I am sure you will develop a solution faster than I can do ... so I > am gonna wait for your external !!! > Thanks a lot > Paolo > > On Mon, Jan 30, 2012 at 11:35 PM, Monte Goulding > wrote: >> Hi Paolo >> >> What you need is the bluetooth peer to peer stuff in GameKit. I've started messing with an external for that as I thought it might be handy. What's your timeframe? >> >> Cheers >> >> Monte >> On 31/01/2012, at 1:35 AM, paolo mazza wrote: >> >>> Thank you Ken. >>> >>> My idea is as simple as this: >>> >>> - from a LC app in the iPhone I want to send "back"/"forward" >>> commands to change the images in a LC app in the iPad. >>> >>> The idea is simple. The implementation probably is not so simple. >>> >>> I am uncomfortable with low level communications and I am looking for >>> an "easy" solution. >>> >>> Thank you very much, >>> >>> Paolo >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 ken at kencorey.com Tue Jan 31 03:57:51 2012 From: ken at kencorey.com (Ken Corey) Date: Tue, 31 Jan 2012 08:57:51 +0000 Subject: An iPhone app as a remote control for an iPad app. Is it possible? In-Reply-To: <91C164C1-1F3A-4609-AA2F-BCB2E5DD7804@sweattechnologies.com> References: <1327921483166-4340652.post@n4.nabble.com> <4F268D3A.4030303@braguglia.ch> <4F26A1F1.2010905@kencorey.com> <91C164C1-1F3A-4609-AA2F-BCB2E5DD7804@sweattechnologies.com> Message-ID: <4F27AD0F.7070109@kencorey.com> On 31/01/2012 08:50, Monte Goulding wrote: > Hehe, had another little look at it this afternoon and now I'm sending little messages to my wife :-) > > Also added a few things to the video recording external: edit video, save video to photo album and save image to photo album. Hi Monte, I could think of ways to use both of those in an app I'm working on. If you would like testers, please shout! -Ken From len-morgan at crcom.net Tue Jan 31 07:32:21 2012 From: len-morgan at crcom.net (Len Morgan) Date: Tue, 31 Jan 2012 06:32:21 -0600 Subject: database write error In-Reply-To: <1327996211408-4343759.post@n4.nabble.com> References: <1327996211408-4343759.post@n4.nabble.com> Message-ID: <4F27DF55.7030007@crcom.net> Apostrophe is a reserved character in SQL so you'll have to escape it. If you take the part of your INSERT statement that has the field with the apostrophe in it and "expand" the variable (i.e., write it in with the *contents *of the variable instead (e.g., INSERT .....,'[[globaldata] ]' becomes INSERT ..., 'your's') you can see that the parser has no way to tell which apostrophe is real and which is part of the field data. What I usually do is is replace all the apostrophes in my DATA with backticks (`) when I write the data and then do the reverse when I read it back. This fools SQL into doing what you want but still looks right when you manually look at the data in the database. HTH len morgan On 1/31/2012 1:50 AM, Mark Smith wrote: > Hi, I have some code that works fine until I put an apostrophe into a field > and then it errors out on storing the data. Any suggestions on dealing with > this problem? > From ken at kencorey.com Tue Jan 31 07:52:44 2012 From: ken at kencorey.com (Ken Corey) Date: Tue, 31 Jan 2012 12:52:44 +0000 Subject: database write error In-Reply-To: <4F27DF55.7030007@crcom.net> References: <1327996211408-4343759.post@n4.nabble.com> <4F27DF55.7030007@crcom.net> Message-ID: <4F27E41C.9080303@kencorey.com> On 31/01/2012 12:32, Len Morgan wrote: > Apostrophe is a reserved character in SQL so you'll have to escape it. > If you take the part of your INSERT statement that has the field with > the apostrophe in it and "expand" the variable (i.e., write it in with > the *contents *of the variable instead (e.g., INSERT > .....,'[[globaldata] ]' becomes INSERT ..., 'your's') you can see that > the parser has no way to tell which apostrophe is real and which is part > of the field data. > > What I usually do is is replace all the apostrophes in my DATA with > backticks (`) when I write the data and then do the reverse when I read > it back. This fools SQL into doing what you want but still looks right > when you manually look at the data in the database. Ack! You don't want munged data in your database, you want the data you intended to put in. Why? Your selects will be wonky and your sorting questionable. Worse, are you sure that apostrophes are the worst character you'll be facing? What if someone gave their name as "bill');drop table "master";" Your apostrophe's might be protected, but that semicolon could bite you in the butt. (http://xkcd.com/327/) Mike got it right when he said to use the substitution form of revExecuteSQL. This is by far the cleanest solution and less of a security risk. If someone is trying to goof you up, you just see goofy entries in your database. However, if you *must* build your own string and execute that, then escape the apostrophes (in the way appropriate to your database). For SQLite3, MySQL and PostgreSQL it'd be something like: replaceText(fieldText,"'","''") So, your sql becomes something like: INSERT INTO master (delivery_date, mothers_name, mothers_phin, mothers_mhsc, mothers_dob, care_provider, note) VALUES ('1/1/1970', 'J''ames', 'M''cintosh','','1/1/1970', 2345, '') This example suffers because I couldn't think of appropriate names, but you get the idea. -Ken From mcgrath3 at mac.com Tue Jan 31 09:11:50 2012 From: mcgrath3 at mac.com (Thomas McGrath III) Date: Tue, 31 Jan 2012 09:11:50 -0500 Subject: OT: Walking In-Reply-To: <87600e0f-4f09-4aa5-943f-0645ee8a23fc@blur> References: <87600e0f-4f09-4aa5-943f-0645ee8a23fc@blur> Message-ID: <07654AC7-A5B9-455A-8713-19596ED2E054@mac.com> Mike, Thank you so much for sharing this here. Hope doesn't always get a front page story yet it is so very very powerful. I'm really very grateful for you sharing this. -- Tom McGrath III http://lazyriver.on-rev.com 3mcgrath at comcast.net On Jan 30, 2012, at 11:17 PM, Ralph DiMola wrote: > Mike, > > 3,2,1......hee-hah!!! > > Great for you! Keep it up! > > Ralph DiMola > MIS DirectorEvergreen Information Services > rdimola at evergreeninfo.net > > -----Original message----- > From: Mike Bonner > To: How to use LiveCode > Sent: Tue, Jan 31, 2012 02:53:59 GMT+00:00 > Subject: OT: Walking > > Ok. I know this is not the most appropriate place for this but.. Today for > the first time in about 12 years I walked 5 unassisted steps in physical > therapy. (no walker, cane, walking sticks or anything) And no face plant! > So on the count of 3. 1, 2, 3 WOO HOO!!!!!!!!!!!! > > Back to the normally scheduled program. > _______________________________________________ > use-livecode mailing list > use-livecode 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 Tue Jan 31 09:16:33 2012 From: mcgrath3 at mac.com (Thomas McGrath III) Date: Tue, 31 Jan 2012 09:16:33 -0500 Subject: An iPhone app as a remote control for an iPad app. Is it possible? In-Reply-To: <4F27AD0F.7070109@kencorey.com> References: <1327921483166-4340652.post@n4.nabble.com> <4F268D3A.4030303@braguglia.ch> <4F26A1F1.2010905@kencorey.com> <91C164C1-1F3A-4609-AA2F-BCB2E5DD7804@sweattechnologies.com> <4F27AD0F.7070109@kencorey.com> Message-ID: Wow, this is great, Monte, I really need the Push Notification in all of my apps. Even just local would be great. Video recording and Game Kit are a bonus as well. What is your experience so far working with the SDK and with xCode? Gotcha's, advice, etc? -- Tom McGrath III http://lazyriver.on-rev.com 3mcgrath at comcast.net On Jan 31, 2012, at 3:57 AM, Ken Corey wrote: > On 31/01/2012 08:50, Monte Goulding wrote: >> Hehe, had another little look at it this afternoon and now I'm sending little messages to my wife :-) >> >> Also added a few things to the video recording external: edit video, save video to photo album and save image to photo album. > > Hi Monte, > > I could think of ways to use both of those in an app I'm working on. If you would like testers, please shout! > > -Ken > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jan 31 09:50:10 2012 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 31 Jan 2012 07:50:10 -0700 Subject: OT: Walking In-Reply-To: <07654AC7-A5B9-455A-8713-19596ED2E054@mac.com> References: <87600e0f-4f09-4aa5-943f-0645ee8a23fc@blur> <07654AC7-A5B9-455A-8713-19596ED2E054@mac.com> Message-ID: Thx everyone for all the well wishes, and thanks for letting me post my glee! The amount of stubborn refusal to quit that has kept me trying is finally paying off. It is so strange. As a kid I used to dream of flying. In recent years that has shifted to dreams of walking around (you know the feeling, in flying dreams theres nothing unusual about being able to fly which is part of what makes it so awesome. You just do it) The same applies to walking dreams. Sometimes wake up surprised that I wasn't surprised that I was walking in the dream. If that makes sense. My goal now is to reach the point where walking is so everyday that I start to dream of flying again. (if anyone is curious I don't mind sharing but hate to put TOO much personal information directly on the list where it will be saved for the next 30 years!) Next year? Traithlon! *cough* Ok. maybe not. From devin_asay at byu.edu Tue Jan 31 10:37:34 2012 From: devin_asay at byu.edu (Devin Asay) Date: Tue, 31 Jan 2012 15:37:34 +0000 Subject: OT: Walking In-Reply-To: References: Message-ID: Mike, Thanks for sharing your good news. You've brought a bright spot to everyone's day here. I've always believed there is more real inspiration and hope in the lives of real people than in any Hollywood epic. Best wishes for many more good days, Devin On Jan 30, 2012, at 7:53 PM, Mike Bonner wrote: > Ok. I know this is not the most appropriate place for this but.. Today for > the first time in about 12 years I walked 5 unassisted steps in physical > therapy. (no walker, cane, walking sticks or anything) And no face plant! > So on the count of 3. 1, 2, 3 WOO HOO!!!!!!!!!!!! > > Back to the normally scheduled program. > _______________________________________________ > use-livecode mailing list > use-livecode 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 bonnmike at gmail.com Tue Jan 31 11:04:46 2012 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 31 Jan 2012 09:04:46 -0700 Subject: OT: Walking In-Reply-To: References: Message-ID: Thx again all. I'm not usually much of a gusher but sometimes the milestones are big enough you just have to share. The link for the curious is here. http://guidezone.info/walking.html I don't write very well and make up for it by trying way too hard but hopefully its readable. From bobs at twft.com Tue Jan 31 12:00:10 2012 From: bobs at twft.com (Bob Sneidar) Date: Tue, 31 Jan 2012 09:00:10 -0800 Subject: database write error In-Reply-To: <1327996211408-4343759.post@n4.nabble.com> References: <1327996211408-4343759.post@n4.nabble.com> Message-ID: <40666BD7-103C-4043-82DD-AB8DD05A50A0@twft.com> Escape your data first. I am sure someone has written an SQL escape library. Another way might be to encode your data before inserting/updating and decode it in your select statements. sqlYoga automagically escapes your data for you if you use the commands and functions provided. (I should get some kind of retainer from Trevor. ;-) Bob On Jan 30, 2012, at 11:50 PM, Mark Smith wrote: > Hi, I have some code that works fine until I put an apostrophe into a field > and then it errors out on storing the data. Any suggestions on dealing with > this problem? > > The code I am using looks like this: > > put "INSERT INTO master (delivery_date, mothers_name, mothers_phin, > mothers_mhsc, mothers_dob, care_provider, note)" & \ > merge("VALUES ('[[globaldate]]', '[[tmaternalname]]', '[[tmaternalphin]]', > '[[tmaternalmhsc]]', " & \ > "'[[tmaternaldob]]', [[tcareprovider]]', '[[tnote]]')") into tCmd > revExecuteSQL gConnectID, tCmd > > Thanks > -- Mark > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/database-write-error-tp4343759p4343759.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 Tue Jan 31 12:18:40 2012 From: bobs at twft.com (Bob Sneidar) Date: Tue, 31 Jan 2012 09:18:40 -0800 Subject: Search question In-Reply-To: References: <4F26D4D0.4020205@comcast.net> <4F26D738.7010703@kencorey.com> <4F273DA8.2030701@comcast.net> <4F278E2E.7020807@kencorey.com> Message-ID: merge("[[artist]][[policeman]]") = "A brush with the law" Sorry I had to. From bobs at twft.com Tue Jan 31 12:22:40 2012 From: bobs at twft.com (Bob Sneidar) Date: Tue, 31 Jan 2012 09:22:40 -0800 Subject: OT: Walking In-Reply-To: References: Message-ID: WOOT! On Jan 30, 2012, at 6:53 PM, Mike Bonner wrote: > Ok. I know this is not the most appropriate place for this but.. Today for > the first time in about 12 years I walked 5 unassisted steps in physical > therapy. (no walker, cane, walking sticks or anything) And no face plant! > So on the count of 3. 1, 2, 3 WOO HOO!!!!!!!!!!!! > > Back to the normally scheduled program. > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jan 31 12:26:47 2012 From: pete at mollysrevenge.com (Pete) Date: Tue, 31 Jan 2012 09:26:47 -0800 Subject: database write error In-Reply-To: <4F27E41C.9080303@kencorey.com> References: <1327996211408-4343759.post@n4.nabble.com> <4F27DF55.7030007@crcom.net> <4F27E41C.9080303@kencorey.com> Message-ID: Two different topics here, I think, - escaping single (and double) quotes and sql injection. Both appear to be solved with the revExecuteSQL substitution. If you don't use revExecuteSQL solution then there's two choices for escaping. SQL accepts either single or double quotes to enclose literals. If you use single quotes, double quotes don't need to be escaped in the literal, and vice versa. So, if you're sure that your data won't contain double quotes, then you can use double quotes to enclose the literals and single quotes won't cause a problem. On the other hand, who can be sure of anything when it comes to user data! The other issue is protecting against SQL injection, which I think is why the reference to DROP TABLE and semicolon came in. There was a thread about this a few weeks back which resulted in enhancement request 9932. A RunRev comment on it was "The function mysql_real_escape_string (and its equivalents for the other database types) is called internally by revDB when passing data using variable lists (for an example, see the dictionary entry for revQueryDatabase). This is the preferred method for escaping data." Pete On Tue, Jan 31, 2012 at 4:52 AM, Ken Corey wrote: > On 31/01/2012 12:32, Len Morgan wrote: > >> Apostrophe is a reserved character in SQL so you'll have to escape it. >> If you take the part of your INSERT statement that has the field with >> the apostrophe in it and "expand" the variable (i.e., write it in with >> the *contents *of the variable instead (e.g., INSERT >> .....,'[[globaldata] ]' becomes INSERT ..., 'your's') you can see that >> the parser has no way to tell which apostrophe is real and which is part >> of the field data. >> >> What I usually do is is replace all the apostrophes in my DATA with >> backticks (`) when I write the data and then do the reverse when I read >> it back. This fools SQL into doing what you want but still looks right >> when you manually look at the data in the database. >> > > Ack! You don't want munged data in your database, you want the data you > intended to put in. Why? Your selects will be wonky and your sorting > questionable. > > Worse, are you sure that apostrophes are the worst character you'll be > facing? What if someone gave their name as > "bill');drop table "master";" > > Your apostrophe's might be protected, but that semicolon could bite you in > the butt. (http://xkcd.com/327/) > > Mike got it right when he said to use the substitution form of > revExecuteSQL. This is by far the cleanest solution and less of a security > risk. If someone is trying to goof you up, you just see goofy entries in > your database. > > However, if you *must* build your own string and execute that, then escape > the apostrophes (in the way appropriate to your database). For SQLite3, > MySQL and PostgreSQL it'd be something like: > > replaceText(fieldText,"'","''"**) > > So, your sql becomes something like: > > INSERT INTO master (delivery_date, mothers_name, mothers_phin, > mothers_mhsc, mothers_dob, care_provider, note) VALUES ('1/1/1970', > 'J''ames', 'M''cintosh','','1/1/1970', 2345, '') > > This example suffers because I couldn't think of appropriate names, but > you get the idea. > > -Ken > > > ______________________________**_________________ > use-livecode mailing list > use-livecode 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 andre at andregarzia.com Tue Jan 31 12:32:12 2012 From: andre at andregarzia.com (Andre Garzia) Date: Tue, 31 Jan 2012 15:32:12 -0200 Subject: OT: Walking In-Reply-To: References: Message-ID: YAY!!!!!! Congrats Mike!!!! On Tue, Jan 31, 2012 at 3:22 PM, Bob Sneidar wrote: > WOOT! > > On Jan 30, 2012, at 6:53 PM, Mike Bonner wrote: > >> Ok. I know this is not the most appropriate place for this but.. Today for >> the first time in about 12 years I walked 5 unassisted steps in physical >> therapy. ?(no walker, cane, walking sticks or anything) And no face plant! >> So on the count of 3. 1, 2, 3 WOO HOO!!!!!!!!!!!! >> >> Back to the normally scheduled program. >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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. http://fon.nu -- minimalist url shortening service. From pete at mollysrevenge.com Tue Jan 31 12:37:44 2012 From: pete at mollysrevenge.com (Pete) Date: Tue, 31 Jan 2012 09:37:44 -0800 Subject: Automated Testing Tool Message-ID: For those interested in automating GUI tasks without writing tedious Applescript, VBSCript, etc, take a look at http://sikuli.org/ -- Pete Molly's Revenge From p.hibbert at saywardvalley.net Tue Jan 31 12:51:01 2012 From: p.hibbert at saywardvalley.net (Paul Hibbert) Date: Tue, 31 Jan 2012 17:51:01 +0000 Subject: Intelligent Save Dialogue? Message-ID: <26314542-7C5B-4710-9ADC-A49DDFE81AD3@saywardvalley.net> Hi All, I recently built a small application for capturing screen grabs with a few simple image editing/cropping options. I sent the app out to a small group of beta testers to get some feedback and check things over on different systems, most things have worked out reasonably well with just a couple of small bugs and a few requests, one request has me stumped, but also intrigued. The app allows the user to save the final image as Gif, PNG or Jpeg using the 'with type' options in the ask file routine, but when the user chooses a different file type other than the default Gif, they have to manually change the file extension in the file name field. The request has come back to automatically change the file extension in the file name field, something like the way the save dialogue in PhotoShop works. I included a trap to warn the user of filename/extension mismatches and correct the extension, but the only way I could figure out how to do that was, when the user clicks the 'Save' button, the dialogue box closes, the script can then check the result and the it variable then, if it detects a problem it would display a warning and present the user with a refreshed dialogue box with the correct details before actually writing the file to disk. The problem here is that, as far as I know LiveCode can only react to the Save or Cancel button being pressed within the dialogue box, so my question for the list is: Does anybody know of a way to achieve an 'intelligent' save dialogue without building a new one from scratch? or has anybody built one that they are willing to share? Thanks for any advice, Paul From richmondmathewson at gmail.com Tue Jan 31 13:05:33 2012 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 31 Jan 2012 20:05:33 +0200 Subject: OT: Walking In-Reply-To: References: Message-ID: <4F282D6D.3020902@gmail.com> On 01/31/2012 04:53 AM, Mike Bonner wrote: > Ok. I know this is not the most appropriate place for this but.. Today for > the first time in about 12 years I walked 5 unassisted steps in physical > therapy. (no walker, cane, walking sticks or anything) And no face plant! > So on the count of 3. 1, 2, 3 WOO HOO!!!!!!!!!!!! Congratulations. > Back to the normally scheduled program. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From p.hibbert at saywardvalley.net Tue Jan 31 13:10:22 2012 From: p.hibbert at saywardvalley.net (Paul Hibbert) Date: Tue, 31 Jan 2012 18:10:22 +0000 Subject: OT: Walking In-Reply-To: References: Message-ID: <962104B8-E451-4B7F-A1DA-E7DB12D355FA@saywardvalley.net> Well done Mike. That's quite an inspirational story, you obviously don't give up too easily. Best wishes for the future, but for now I'd say you certainly deserve a beer. Paul On 31 Jan 2012, at 16:04, Mike Bonner wrote: > Thx again all. I'm not usually much of a gusher but sometimes the > milestones are big enough you just have to share. > > The link for the curious is here. http://guidezone.info/walking.html I > don't write very well and make up for it by trying way too hard but > hopefully its readable. > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jan 31 14:12:30 2012 From: bobs at twft.com (Bob Sneidar) Date: Tue, 31 Jan 2012 11:12:30 -0800 Subject: dgDataOfLine Verification Message-ID: <6AE8F2EC-7B9C-4B2D-861D-515C64BC1D3B@twft.com> Hi all. I was given to understand that the dgDataOfLine referenced the visible lines of a datagrid, so that if I scrolled to the bottom of a datagrid that had 8 visible lines, the dgDataOfLine[8] would give me the mast line of data. It seems this is not so, unless something has gone wrong in my datagrid. Instead I am getting the data from the 8th record not the last of 8 visible records. What am I doing wrong? I will dig into this myself, but I am hoping for a quick "that's not the way to do it" from someone. Bob From tsj at unimelb.edu.au Tue Jan 31 14:35:31 2012 From: tsj at unimelb.edu.au (Terry Judd) Date: Tue, 31 Jan 2012 19:35:31 +0000 Subject: dgDataOfLine Verification In-Reply-To: <6AE8F2EC-7B9C-4B2D-861D-515C64BC1D3B@twft.com> References: <6AE8F2EC-7B9C-4B2D-861D-515C64BC1D3B@twft.com> Message-ID: <2A17C7A6-842A-47EA-AA4F-AFC365F32C58@unimelb.edu.au> On 01/02/2012, at 06:12 AM, Bob Sneidar wrote: Hi all. I was given to understand that the dgDataOfLine referenced the visible lines of a datagrid, so that if I scrolled to the bottom of a datagrid that had 8 visible lines, the dgDataOfLine[8] would give me the mast line of data. It seems this is not so, unless something has gone wrong in my datagrid. Instead I am getting the data from the 8th record not the last of 8 visible records. What am I doing wrong? I will dig into this myself, but I am hoping for a quick "that's not the way to do it" from someone. Bob Bob - use getDataOfLine(8) to get the data for the 8th selected line irrespective of how the column data is sorted. 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 Eduction Unit Faculty of Medicine, Dentistry & Health Sciences The University of Melbourne From jacque at hyperactivesw.com Tue Jan 31 14:39:21 2012 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 31 Jan 2012 13:39:21 -0600 Subject: OT: Walking In-Reply-To: References: Message-ID: <4F284369.7020100@hyperactivesw.com> On 1/31/12 10:04 AM, Mike Bonner wrote: > The link for the curious is here. http://guidezone.info/walking.html Thanks very much for posting that. It made me think about why I love LiveCode. I had a major life setback 25 years ago that propelled me into the abyss -- and the only thing that saved me was learning HyperCard. There's something about losing yourself in scripts that heals. It was the accessibility of the language that saved me. I never would have become a developer if I'd had to learn C. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From Mark_Smith at cpe.umanitoba.ca Tue Jan 31 14:43:54 2012 From: Mark_Smith at cpe.umanitoba.ca (Mark Smith) Date: Tue, 31 Jan 2012 11:43:54 -0800 (PST) Subject: OT: Walking In-Reply-To: References: Message-ID: <1328039034638-4345637.post@n4.nabble.com> Mike, thanks for sharing... a very inspiring journey that makes many of our day-to-day irritations and struggles in living pale in comparison. I wish you MUCH SUCCESS!! -- Mark -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/OT-Walking-tp4343357p4345637.html Sent from the Revolution - User mailing list archive at Nabble.com. From monte at sweattechnologies.com Tue Jan 31 14:44:02 2012 From: monte at sweattechnologies.com (Monte Goulding) Date: Wed, 1 Feb 2012 06:44:02 +1100 Subject: An iPhone app as a remote control for an iPad app. Is it possible? In-Reply-To: References: <1327921483166-4340652.post@n4.nabble.com> <4F268D3A.4030303@braguglia.ch> <4F26A1F1.2010905@kencorey.com> <91C164C1-1F3A-4609-AA2F-BCB2E5DD7804@sweattechnologies.com> <4F27AD0F.7070109@kencorey.com> Message-ID: Hi Thomas I'm quite enjoying the iOS sdk. It's certainly a breeze compared to the sdk for the other platforms. I hope they all get updated to match. The main gotcha I've found the test app won't copy in any resources so in most cases it's errrr to test via livecode. As for push notifications I think we need to wait for rev on those as the application delegate needs to respond to delegate messages. It would be possible to schedule a local one but when the user clicks on it your app will open and it won't know it was launched from a notification. Would that be helpful at all? Cheers -- Monte Goulding On 01/02/2012, at 1:16 AM, Thomas McGrath III wrote: > Wow, this is great, Monte, I really need the Push Notification in all of my apps. Even just local would be great. Video recording and Game Kit are a bonus as well. > > What is your experience so far working with the SDK and with xCode? Gotcha's, advice, etc? > > > -- Tom McGrath III > http://lazyriver.on-rev.com > 3mcgrath at comcast.net > > On Jan 31, 2012, at 3:57 AM, Ken Corey wrote: > >> On 31/01/2012 08:50, Monte Goulding wrote: >>> Hehe, had another little look at it this afternoon and now I'm sending little messages to my wife :-) >>> >>> Also added a few things to the video recording external: edit video, save video to photo album and save image to photo album. >> >> Hi Monte, >> >> I could think of ways to use both of those in an app I'm working on. If you would like testers, please shout! >> >> -Ken >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 runrevron at gmail.com Tue Jan 31 15:05:01 2012 From: runrevron at gmail.com (ron barber) Date: Tue, 31 Jan 2012 15:05:01 -0500 Subject: data grid obj and palettes Message-ID: Greetings, I added a data grid obj to a project recently but encountered a problem once I built a standalone. The data grid worked fine in the ide but did not load the data in the standalone. I tested just my implementation of the data grid in a single stack and the standalone worked fine. The only difference I could see was that the data grid in the main project was on a substack and that substack was a palette. The datagrid template was being included in the build. When I switched the mode of the wd with the data grid from a platte to a regular window and built the standalone, all was well. So, does the data grid work on paletted windows? or was there something else affecting my project? It works fine now but on a regular wd substack. I would like to keep it a palette if possible. Thanks Ron From Mark_Smith at cpe.umanitoba.ca Tue Jan 31 15:05:36 2012 From: Mark_Smith at cpe.umanitoba.ca (Mark Smith) Date: Tue, 31 Jan 2012 12:05:36 -0800 (PST) Subject: database write error In-Reply-To: References: <1327996211408-4343759.post@n4.nabble.com> Message-ID: <1328040336209-4345697.post@n4.nabble.com> Thank you all... you have left me with a number of great suggestions to look into. It does seem like using "variable lists" as in the substitution approach would be the more/most generic solution to this problem... since I'm on a deadline I'll probably do a quick and dirty escape on apostrophe (thanks Ken for the code example) and revisit the substitution form when I have more time. I'll also take a quick look at the CRUD example (Create, Read, Update, Delete I think) example one of the forum users posted to see if he tried to address this problem as well. SQL does have its challenges. Thanks again for the great suggestions. -- Mark -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/database-write-error-tp4343759p4345697.html Sent from the Revolution - User mailing list archive at Nabble.com. From bobs at twft.com Tue Jan 31 15:05:58 2012 From: bobs at twft.com (Bob Sneidar) Date: Tue, 31 Jan 2012 12:05:58 -0800 Subject: dgDataOfLine Verification In-Reply-To: <2A17C7A6-842A-47EA-AA4F-AFC365F32C58@unimelb.edu.au> References: <6AE8F2EC-7B9C-4B2D-861D-515C64BC1D3B@twft.com> <2A17C7A6-842A-47EA-AA4F-AFC365F32C58@unimelb.edu.au> Message-ID: On Jan 31, 2012, at 11:35 AM, Terry Judd wrote: > > On 01/02/2012, at 06:12 AM, Bob Sneidar wrote: > >> Hi all. >> >> I was given to understand that the dgDataOfLine referenced the visible lines of a datagrid, so that if I scrolled to the bottom of a datagrid that had 8 visible lines, the dgDataOfLine[8] would give me the mast line of data. It seems this is not so, unless something has gone wrong in my datagrid. Instead I am getting the data from the 8th record not the last of 8 visible records. >> >> What am I doing wrong? I will dig into this myself, but I am hoping for a quick "that's not the way to do it" from someone. >> >> Bob > > Bob - use getDataOfLine(8) to get the data for the 8th selected line irrespective of how the column data is sorted. > > Terry... > > Thanks Terry. Looks GetDataOfLine gets a key of a line, but the line is still a reference to the line in the data grid data, not the visible line. So if I have 15 lines with 8 visible, and I am scrolled to the bottom of the data grid and I want the last of the 8 visible lines, using getDataOfLine(8, "uniqueid") will give me uniqueid of the the 8th record, not the 15th, you see? The 8th visible line is the 15th *actual* line. I came up with a way to do it though, but it assumes that the row height is fixed. You simple div the dgVScroll with the dgprops["row height"] and you have the number of previous (non-visible) rows. Now you can add that to the visible row number and you have the row to pass to dgDataOfLine. Kludgy but it works. Might be a nice to include in the datagrid library a dgDataOfVisibleLine property that takes into account variable row heights. I think I will add that to the QCC. Bob From Mark_Smith at cpe.umanitoba.ca Tue Jan 31 15:22:27 2012 From: Mark_Smith at cpe.umanitoba.ca (Mark Smith) Date: Tue, 31 Jan 2012 12:22:27 -0800 (PST) Subject: database write error In-Reply-To: References: <1327996211408-4343759.post@n4.nabble.com> <4F27DF55.7030007@crcom.net> <4F27E41C.9080303@kencorey.com> Message-ID: <1328041347724-4345754.post@n4.nabble.com> Peter Haworth-2 wrote > > If you use single quotes, double quotes don't need to be escaped in the > literal, and vice versa. So, if you're sure that your data won't contain > double quotes, then you can use double quotes to enclose the literals and > single quotes won't cause a problem. > > Pete > Thanks for the suggestion Pete. I was going to try that but the relevant code section reads as follows merge("VALUES ('[[globaldate]]', '[[tmaternalname]]', '[[tmaternalphin]]', '[[tmaternalmhsc]]', '[[tmaternaldob]]', '[[tmaternalage]]', '[[tmaternalpc]]', '[[tmaternaled]]'," & \ "'[[tmaternalocc]]', '[[tmaternalage]]', '[[tsite]]', '[[tmaternalchart]]', '[[tcareprovider1]]', '[[tcareprovider2]]', '[[tcareprovider3]]', '[[tnote]]')") into tCmd Wouldn't replacing the single quotes with double quotes mess up the merge command (ie. it would not know where the string beings/ends??) Or can you replace the "outer" quotes with single quotes as well? -- Mark -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/database-write-error-tp4343759p4345754.html Sent from the Revolution - User mailing list archive at Nabble.com. From pete at mollysrevenge.com Tue Jan 31 16:02:22 2012 From: pete at mollysrevenge.com (Pete) Date: Tue, 31 Jan 2012 13:02:22 -0800 Subject: database write error In-Reply-To: <1328041347724-4345754.post@n4.nabble.com> References: <1327996211408-4343759.post@n4.nabble.com> <4F27DF55.7030007@crcom.net> <4F27E41C.9080303@kencorey.com> <1328041347724-4345754.post@n4.nabble.com> Message-ID: You're right, it would mess things up - sorry, didn't look closely enough at your code. The only way you could do it would be to use LC's quote constant but that would make setting up the merge command a horrendous mess! To be honest though, I usually just build the VALUES part of the SQL command manually rather than using merge, just because of these complications. I've got a standard handler that takes a variable number of parameters (the raw values you want in the VALUES clause), puts single quotes around non-numeric values and escapes any single quotes that might be in there, then returns the VALUES clause, so I just have to: put buildValuesClause(globaldate,tmaternalname,tmaternalphin,) after tSQL I put that together before I knew revexecuteSQL substitution deals with all that and more but it kinda works for me. Pete On Tue, Jan 31, 2012 at 12:22 PM, Mark Smith wrote: > > Peter Haworth-2 wrote > > > > If you use single quotes, double quotes don't need to be escaped in the > > literal, and vice versa. So, if you're sure that your data won't contain > > double quotes, then you can use double quotes to enclose the literals and > > single quotes won't cause a problem. > > > > Pete > > > > Thanks for the suggestion Pete. I was going to try that but the relevant > code section reads as follows > merge("VALUES ('[[globaldate]]', '[[tmaternalname]]', '[[tmaternalphin]]', > '[[tmaternalmhsc]]', '[[tmaternaldob]]', '[[tmaternalage]]', > '[[tmaternalpc]]', '[[tmaternaled]]'," & \ > "'[[tmaternalocc]]', '[[tmaternalage]]', '[[tsite]]', > '[[tmaternalchart]]', '[[tcareprovider1]]', '[[tcareprovider2]]', > '[[tcareprovider3]]', '[[tnote]]')") into tCmd > > Wouldn't replacing the single quotes with double quotes mess up the merge > command (ie. it would not know where the string beings/ends??) Or can you > replace the "outer" quotes with single quotes as well? > > -- Mark > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/database-write-error-tp4343759p4345754.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 > > -- Pete Molly's Revenge From pete at mollysrevenge.com Tue Jan 31 16:02:22 2012 From: pete at mollysrevenge.com (Pete) Date: Tue, 31 Jan 2012 13:02:22 -0800 Subject: database write error In-Reply-To: <1328041347724-4345754.post@n4.nabble.com> References: <1327996211408-4343759.post@n4.nabble.com> <4F27DF55.7030007@crcom.net> <4F27E41C.9080303@kencorey.com> <1328041347724-4345754.post@n4.nabble.com> Message-ID: You're right, it would mess things up - sorry, didn't look closely enough at your code. The only way you could do it would be to use LC's quote constant but that would make setting up the merge command a horrendous mess! To be honest though, I usually just build the VALUES part of the SQL command manually rather than using merge, just because of these complications. I've got a standard handler that takes a variable number of parameters (the raw values you want in the VALUES clause), puts single quotes around non-numeric values and escapes any single quotes that might be in there, then returns the VALUES clause, so I just have to: put buildValuesClause(globaldate,tmaternalname,tmaternalphin,) after tSQL I put that together before I knew revexecuteSQL substitution deals with all that and more but it kinda works for me. Pete On Tue, Jan 31, 2012 at 12:22 PM, Mark Smith wrote: > > Peter Haworth-2 wrote > > > > If you use single quotes, double quotes don't need to be escaped in the > > literal, and vice versa. So, if you're sure that your data won't contain > > double quotes, then you can use double quotes to enclose the literals and > > single quotes won't cause a problem. > > > > Pete > > > > Thanks for the suggestion Pete. I was going to try that but the relevant > code section reads as follows > merge("VALUES ('[[globaldate]]', '[[tmaternalname]]', '[[tmaternalphin]]', > '[[tmaternalmhsc]]', '[[tmaternaldob]]', '[[tmaternalage]]', > '[[tmaternalpc]]', '[[tmaternaled]]'," & \ > "'[[tmaternalocc]]', '[[tmaternalage]]', '[[tsite]]', > '[[tmaternalchart]]', '[[tcareprovider1]]', '[[tcareprovider2]]', > '[[tcareprovider3]]', '[[tnote]]')") into tCmd > > Wouldn't replacing the single quotes with double quotes mess up the merge > command (ie. it would not know where the string beings/ends??) Or can you > replace the "outer" quotes with single quotes as well? > > -- Mark > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/database-write-error-tp4343759p4345754.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 > > -- Pete Molly's Revenge From mcgrath3 at mac.com Tue Jan 31 16:03:42 2012 From: mcgrath3 at mac.com (Thomas McGrath III) Date: Tue, 31 Jan 2012 16:03:42 -0500 Subject: An iPhone app as a remote control for an iPad app. Is it possible? In-Reply-To: References: <1327921483166-4340652.post@n4.nabble.com> <4F268D3A.4030303@braguglia.ch> <4F26A1F1.2010905@kencorey.com> <91C164C1-1F3A-4609-AA2F-BCB2E5DD7804@sweattechnologies.com> <4F27AD0F.7070109@kencorey.com> Message-ID: <8B9D8775-BA3A-451D-AB3F-3552A55CC379@mac.com> Monte, Actually that might still be useful because I can poll for the reason for the scheduled notif and react accordingly. I just don't know how useful?.. -- Tom McGrath III http://lazyriver.on-rev.com 3mcgrath at comcast.net On Jan 31, 2012, at 2:44 PM, Monte Goulding wrote: > Hi Thomas > > I'm quite enjoying the iOS sdk. It's certainly a breeze compared to the sdk for the other platforms. I hope they all get updated to match. The main gotcha I've found the test app won't copy in any resources so in most cases it's errrr to test via livecode. > > As for push notifications I think we need to wait for rev on those as the application delegate needs to respond to delegate messages. > > It would be possible to schedule a local one but when the user clicks on it your app will open and it won't know it was launched from a notification. Would that be helpful at all? > > Cheers > -- > Monte Goulding > > On 01/02/2012, at 1:16 AM, Thomas McGrath III wrote: > >> Wow, this is great, Monte, I really need the Push Notification in all of my apps. Even just local would be great. Video recording and Game Kit are a bonus as well. >> >> What is your experience so far working with the SDK and with xCode? Gotcha's, advice, etc? >> >> >> -- Tom McGrath III >> http://lazyriver.on-rev.com >> 3mcgrath at comcast.net >> >> On Jan 31, 2012, at 3:57 AM, Ken Corey wrote: >> >>> On 31/01/2012 08:50, Monte Goulding wrote: >>>> Hehe, had another little look at it this afternoon and now I'm sending little messages to my wife :-) >>>> >>>> Also added a few things to the video recording external: edit video, save video to photo album and save image to photo album. >>> >>> Hi Monte, >>> >>> I could think of ways to use both of those in an app I'm working on. If you would like testers, please shout! >>> >>> -Ken >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 Jan 31 16:18:43 2012 From: pete at mollysrevenge.com (Pete) Date: Tue, 31 Jan 2012 13:18:43 -0800 Subject: [ANN] - Seeking Beta Testers Message-ID: I am looking for beta testers for my first publicly available Livecode application, SQLiteAdmin. SQLiteAdmin is an database administration tool for configuring and editing the data in SQLite databases. It provides a GUI interface to all the available SQLite Data Definition Statements. It also provides some Data Definition functions that are not available as standard SQLite commands, such as DROP COLUMN, and RENAME COLUMN. It includes a table browser with search, INSERT, UPDATE, DELETE, and Duplicate functions. Data can be exported and imported in various formats. Database tune-up commands will help speed up your queries, and a database audit function will report on various potential data integrity problems and suggest possible configuration changes that could lead to speedier database access. SQLite is available as a standalone application for OS X and Windows. If you are interested in beta testing this product, please email me off list and let me know what version of OS X/Windows you are using. All accepted beta testers will receive the product free of charge when it's released. SQLiteAdmin is the first in a series of tools I'm writing to to assist in the development of Livecode databases that use SQL databases. I will shortly be announcing LiquidSQL, a developers' tool that eliminates a large percentage of the Livecode scripting and SQL Data Manipulation statements normally required to implement an SQL-based application with Livecode. -- Pete Molly's Revenge From monte at sweattechnologies.com Tue Jan 31 16:24:35 2012 From: monte at sweattechnologies.com (Monte Goulding) Date: Wed, 1 Feb 2012 08:24:35 +1100 Subject: An iPhone app as a remote control for an iPad app. Is it possible? In-Reply-To: <8B9D8775-BA3A-451D-AB3F-3552A55CC379@mac.com> References: <1327921483166-4340652.post@n4.nabble.com> <4F268D3A.4030303@braguglia.ch> <4F26A1F1.2010905@kencorey.com> <91C164C1-1F3A-4609-AA2F-BCB2E5DD7804@sweattechnologies.com> <4F27AD0F.7070109@kencorey.com> <8B9D8775-BA3A-451D-AB3F-3552A55CC379@mac.com> Message-ID: <57E06B58-1959-4669-A527-0F03034C4EA0@sweattechnologies.com> Hold the phone... it looks like there's a workaround using NSNotificationCenter. I'll look into it. On 01/02/2012, at 8:03 AM, Thomas McGrath III wrote: > Monte, > > Actually that might still be useful because I can poll for the reason for the scheduled notif and react accordingly. I just don't know how useful?.. From jpottsx1 at gmail.com Tue Jan 31 16:45:02 2012 From: jpottsx1 at gmail.com (Potts Jeff) Date: Tue, 31 Jan 2012 16:45:02 -0500 Subject: [ANN] - Seeking Beta Testers In-Reply-To: References: Message-ID: Hi Pete, I'd love to test for you. I'm currently building SQL that is running 100 to 150 lines in some cases just to update a simple view. I'm running sqlite and Mysql (mysql runs on windows server 2008 and another Linux version running on a Synology 212 NASS) on LC 5.02 on Mac Lion, Windows 7 x64, and I keep a pc running XP x64 on AMD. Jeff On Tue, Jan 31, 2012 at 4:18 PM, Pete wrote: > I am looking for beta testers for my first publicly available Livecode > application, SQLiteAdmin. > > SQLiteAdmin is an database administration tool for configuring and editing > the data in SQLite databases. ?It provides a GUI interface to all the > available SQLite Data Definition Statements. ?It also provides some Data > Definition functions that are not available as standard SQLite commands, > such as DROP COLUMN, and RENAME COLUMN. > > It includes a table browser with search, INSERT, UPDATE, DELETE, and > Duplicate functions. ?Data can be exported and imported in various formats. > ?Database tune-up commands will help speed up your queries, and a database > audit function will report on various potential data integrity problems and > suggest possible configuration changes that could lead to speedier database > access. > > SQLite is available as a standalone application for OS X and Windows. > > If you are interested in beta testing this product, please email me off > list and let me know what version of OS X/Windows you are using. ?All > accepted beta testers will receive the product free of charge when it's > released. > > SQLiteAdmin is the first in a series of tools I'm writing to to assist in > the development of Livecode databases that use SQL databases. ?I will > shortly be announcing LiquidSQL, a developers' tool that eliminates a large > percentage of the Livecode scripting and SQL Data Manipulation statements > normally required to implement an SQL-based application with 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 pete at mollysrevenge.com Tue Jan 31 16:59:02 2012 From: pete at mollysrevenge.com (Pete) Date: Tue, 31 Jan 2012 13:59:02 -0800 Subject: [ANN] - Seeking Beta Testers In-Reply-To: References: Message-ID: Hi Jeff, Thanks for volunteering. Just to clarify, this is a database administration tool (create tables, indexes, triggers, etc) with some basic data editing capabilities, not a end user/developer's tool. Just mentioning that since you brought up the amount of code you're having to write to do simple SQL stuff. I've been there myself and the result is the LiquidSQL product I mentioned in the email. That won't be out for a few more weeks but it will eliminate a large amount of the code normally necessary to deal with SQL stuff in LiveCode. If you want to go ahead and check out SQLAdmin, I'd be happy to have you as a beta tester but just making sure there's no misunderstandings about what the product does. I'm putting the finishing touches to the packaging and installation right now and expect to point people to a download within the next couple of days Thanks, Pete On Tue, Jan 31, 2012 at 1:45 PM, Potts Jeff wrote: > Hi Pete, > > I'd love to test for you. I'm currently building SQL that is running > 100 to 150 lines in some cases just to update a simple view. > > I'm running sqlite and Mysql (mysql runs on windows server 2008 and > another Linux version running on a Synology 212 NASS) on LC 5.02 on > Mac Lion, Windows 7 x64, and I keep a pc running XP x64 on AMD. > > Jeff > > On Tue, Jan 31, 2012 at 4:18 PM, Pete wrote: > > I am looking for beta testers for my first publicly available Livecode > > application, SQLiteAdmin. > > > > SQLiteAdmin is an database administration tool for configuring and > editing > > the data in SQLite databases. It provides a GUI interface to all the > > available SQLite Data Definition Statements. It also provides some Data > > Definition functions that are not available as standard SQLite commands, > > such as DROP COLUMN, and RENAME COLUMN. > > > > It includes a table browser with search, INSERT, UPDATE, DELETE, and > > Duplicate functions. Data can be exported and imported in various > formats. > > Database tune-up commands will help speed up your queries, and a > database > > audit function will report on various potential data integrity problems > and > > suggest possible configuration changes that could lead to speedier > database > > access. > > > > SQLite is available as a standalone application for OS X and Windows. > > > > If you are interested in beta testing this product, please email me off > > list and let me know what version of OS X/Windows you are using. All > > accepted beta testers will receive the product free of charge when it's > > released. > > > > SQLiteAdmin is the first in a series of tools I'm writing to to assist in > > the development of Livecode databases that use SQL databases. I will > > shortly be announcing LiquidSQL, a developers' tool that eliminates a > large > > percentage of the Livecode scripting and SQL Data Manipulation statements > > normally required to implement an SQL-based application with 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 > > _______________________________________________ > use-livecode mailing list > use-livecode 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 jpottsx1 at gmail.com Tue Jan 31 17:06:57 2012 From: jpottsx1 at gmail.com (Potts Jeff) Date: Tue, 31 Jan 2012 17:06:57 -0500 Subject: [ANN] - Seeking Beta Testers In-Reply-To: References: Message-ID: I'd love to test SQLAdmin for you! Jeff On Tue, Jan 31, 2012 at 4:59 PM, Pete wrote: > Hi Jeff, > Thanks for volunteering. ?Just to clarify, this is a database > administration tool (create tables, indexes, triggers, etc) with some basic > data editing capabilities, not a end user/developer's tool. > > Just mentioning that since you brought up the amount of code you're having > to write to do simple SQL stuff. ?I've been there myself and the result is > the LiquidSQL product I mentioned in the email. ?That won't be out for a > few more weeks but it will eliminate a large amount of the code normally > necessary to deal with SQL stuff in LiveCode. > > If you want to go ahead and check out SQLAdmin, I'd be happy to have you as > a beta tester but just making sure there's no misunderstandings about what > the product does. ?I'm putting the finishing touches to the packaging and > installation right now and expect to point people to a download within the > next couple of days > > Thanks, > Pete > > On Tue, Jan 31, 2012 at 1:45 PM, Potts Jeff wrote: > >> Hi Pete, >> >> I'd love to test for you. I'm currently building SQL that is running >> 100 to 150 lines in some cases just to update a simple view. >> >> I'm running sqlite ?and Mysql (mysql runs on windows server 2008 and >> another Linux version running on a Synology 212 NASS) on LC ?5.02 on >> Mac Lion, Windows 7 x64, and I keep a pc running XP x64 on AMD. >> >> Jeff >> >> On Tue, Jan 31, 2012 at 4:18 PM, Pete wrote: >> > I am looking for beta testers for my first publicly available Livecode >> > application, SQLiteAdmin. >> > >> > SQLiteAdmin is an database administration tool for configuring and >> editing >> > the data in SQLite databases. ?It provides a GUI interface to all the >> > available SQLite Data Definition Statements. ?It also provides some Data >> > Definition functions that are not available as standard SQLite commands, >> > such as DROP COLUMN, and RENAME COLUMN. >> > >> > It includes a table browser with search, INSERT, UPDATE, DELETE, and >> > Duplicate functions. ?Data can be exported and imported in various >> formats. >> > ?Database tune-up commands will help speed up your queries, and a >> database >> > audit function will report on various potential data integrity problems >> and >> > suggest possible configuration changes that could lead to speedier >> database >> > access. >> > >> > SQLite is available as a standalone application for OS X and Windows. >> > >> > If you are interested in beta testing this product, please email me off >> > list and let me know what version of OS X/Windows you are using. ?All >> > accepted beta testers will receive the product free of charge when it's >> > released. >> > >> > SQLiteAdmin is the first in a series of tools I'm writing to to assist in >> > the development of Livecode databases that use SQL databases. ?I will >> > shortly be announcing LiquidSQL, a developers' tool that eliminates a >> large >> > percentage of the Livecode scripting and SQL Data Manipulation statements >> > normally required to implement an SQL-based application with 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 >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 rdimola at evergreeninfo.net Tue Jan 31 17:14:11 2012 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 31 Jan 2012 17:14:11 -0500 Subject: [ANN] - Seeking Beta Testers In-Reply-To: References: Message-ID: <007201cce065$a9588050$fc0980f0$@net> I am getting ready to release a LC app for B2B use. Also an app for public use. Both use SQLite DBs. I would love to test it for you. Ralph DiMola IT Director Evergreen Information Services -----Original Message----- From: use-livecode-bounces at lists.runrev.com [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Pete Sent: Tuesday, January 31, 2012 4:19 PM To: How to use LiveCode Subject: [ANN] - Seeking Beta Testers I am looking for beta testers for my first publicly available Livecode application, SQLiteAdmin. SQLiteAdmin is an database administration tool for configuring and editing the data in SQLite databases. It provides a GUI interface to all the available SQLite Data Definition Statements. It also provides some Data Definition functions that are not available as standard SQLite commands, such as DROP COLUMN, and RENAME COLUMN. It includes a table browser with search, INSERT, UPDATE, DELETE, and Duplicate functions. Data can be exported and imported in various formats. Database tune-up commands will help speed up your queries, and a database audit function will report on various potential data integrity problems and suggest possible configuration changes that could lead to speedier database access. SQLite is available as a standalone application for OS X and Windows. If you are interested in beta testing this product, please email me off list and let me know what version of OS X/Windows you are using. All accepted beta testers will receive the product free of charge when it's released. SQLiteAdmin is the first in a series of tools I'm writing to to assist in the development of Livecode databases that use SQL databases. I will shortly be announcing LiquidSQL, a developers' tool that eliminates a large percentage of the Livecode scripting and SQL Data Manipulation statements normally required to implement an SQL-based application with 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 pete at mollysrevenge.com Tue Jan 31 17:20:28 2012 From: pete at mollysrevenge.com (Pete) Date: Tue, 31 Jan 2012 14:20:28 -0800 Subject: [ANN] - Seeking Beta Testers In-Reply-To: <007201cce065$a9588050$fc0980f0$@net> References: <007201cce065$a9588050$fc0980f0$@net> Message-ID: Hi Ralh, Thanks for volunteering. I'm putting the finishing touches to packaging and installation right now but I should be able to point you to a download in the next couple of days. What flavour of OS X/Windows are you on? Thanks, Pete On Tue, Jan 31, 2012 at 2:14 PM, Ralph DiMola wrote: > I am getting ready to release a LC app for B2B use. Also an app for public > use. Both use SQLite DBs. I would love to test it for you. > > Ralph DiMola > IT Director > Evergreen Information Services > > -----Original Message----- > From: use-livecode-bounces at lists.runrev.com > [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Pete > Sent: Tuesday, January 31, 2012 4:19 PM > To: How to use LiveCode > Subject: [ANN] - Seeking Beta Testers > > I am looking for beta testers for my first publicly available Livecode > application, SQLiteAdmin. > > SQLiteAdmin is an database administration tool for configuring and editing > the data in SQLite databases. It provides a GUI interface to all the > available SQLite Data Definition Statements. It also provides some Data > Definition functions that are not available as standard SQLite commands, > such as DROP COLUMN, and RENAME COLUMN. > > It includes a table browser with search, INSERT, UPDATE, DELETE, and > Duplicate functions. Data can be exported and imported in various formats. > Database tune-up commands will help speed up your queries, and a database > audit function will report on various potential data integrity problems and > suggest possible configuration changes that could lead to speedier database > access. > > SQLite is available as a standalone application for OS X and Windows. > > If you are interested in beta testing this product, please email me off > list and let me know what version of OS X/Windows you are using. All > accepted beta testers will receive the product free of charge when it's > released. > > SQLiteAdmin is the first in a series of tools I'm writing to to assist in > the development of Livecode databases that use SQL databases. I will > shortly be announcing LiquidSQL, a developers' tool that eliminates a large > percentage of the Livecode scripting and SQL Data Manipulation statements > normally required to implement an SQL-based application with 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 bobs at twft.com Tue Jan 31 18:00:19 2012 From: bobs at twft.com (Bob Sneidar) Date: Tue, 31 Jan 2012 15:00:19 -0800 Subject: Detect data scroll in a datagrid Message-ID: Hi all. I know I can detect dgScrollBarDragV, but that gets sent whether or not the actual data scrolls. It is possible to move the elevator box a slight bit and not have it effect the data in the datagrid. I only want to know what the visible data has changed. Any ideas? I already looked through the DG library and anything I might have used there seems to be private commands and functions. Bob From bobs at twft.com Tue Jan 31 18:12:01 2012 From: bobs at twft.com (Bob Sneidar) Date: Tue, 31 Jan 2012 15:12:01 -0800 Subject: dgDataOfLine Verification In-Reply-To: <2A17C7A6-842A-47EA-AA4F-AFC365F32C58@unimelb.edu.au> References: <6AE8F2EC-7B9C-4B2D-861D-515C64BC1D3B@twft.com> <2A17C7A6-842A-47EA-AA4F-AFC365F32C58@unimelb.edu.au> Message-ID: <20BA986D-C452-43C1-AD73-D7CC86E82617@twft.com> > > On Jan 31, 2012, at 11:35 AM, Terry Judd wrote: > >> >> On 01/02/2012, at 06:12 AM, Bob Sneidar wrote: >> >>> Hi all. >>> >>> I was given to understand that the dgDataOfLine referenced the visible lines of a datagrid, so that if I scrolled to the bottom of a datagrid that had 8 visible lines, the dgDataOfLine[8] would give me the mast line of data. It seems this is not so, unless something has gone wrong in my datagrid. Instead I am getting the data from the 8th record not the last of 8 visible records. >>> >>> What am I doing wrong? I will dig into this myself, but I am hoping for a quick "that's not the way to do it" from someone. >>> >>> Bob >> >> Bob - use getDataOfLine(8) to get the data for the 8th selected line irrespective of how the column data is sorted. >> >> Terry... >> >> > Thanks Terry. Looks GetDataOfLine gets a key of a line, but the line is still a reference to the line in the data grid data, not the visible line. So if I have 15 lines with 8 visible, and I am scrolled to the bottom of the data grid and I want the last of the 8 visible lines, using getDataOfLine(8, "uniqueid") will give me uniqueid of the the 8th record, not the 15th, you see? The 8th visible line is the 15th *actual* line. > > I came up with a way to do it though, but it assumes that the row height is fixed. You simple div the dgVScroll with the dgprops["row height"] and you have the number of previous (non-visible) rows. Now you can add that to the visible row number and you have the row to pass to dgDataOfLine. Kludgy but it works. > > Might be a nice to include in the datagrid library a dgDataOfVisibleLine property that takes into account variable row heights. I think I will add that to the QCC. > > Bob Never mind. I just discovered dgVisibleLines(). DOH! From rdimola at evergreeninfo.net Tue Jan 31 18:41:31 2012 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 31 Jan 2012 18:41:31 -0500 Subject: [ANN] - Seeking Beta Testers In-Reply-To: References: <007201cce065$a9588050$fc0980f0$@net> Message-ID: <000301cce071$dc2c2a70$94847f50$@net> Pete, Went to a Irish festival in Saratoga Springs NY this summer and saw some great bands. One that stood out was 4 or 5 betties with the front man being the drummer. She had pipes that just projected from NY to CA. There was one driving beat tune that stuck in my head for weeks. They gave me the provable goose bumps all over. I play Keys, Accordion and Trumpet and also cowboy chords(a little bit more maybe) on the Axe. Can't sing though, couldn't carry a tune in a Gucci bag. Listening to the video on the web site as I write this. GREAT!!!!!!!. Alas... Back to work. I am running XP SP3 on Windows Desktop and 10.6.8 on the MACBookPro. One left hand the other on the right hand. Just like the piano. Getting a 64 bit Win 7 soon. Ralph DiMola IT Director Evergreen Information Services -----Original Message----- From: use-livecode-bounces at lists.runrev.com [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Pete Sent: Tuesday, January 31, 2012 5:20 PM To: How to use LiveCode Subject: Re: [ANN] - Seeking Beta Testers Hi Ralh, Thanks for volunteering. I'm putting the finishing touches to packaging and installation right now but I should be able to point you to a download in the next couple of days. What flavour of OS X/Windows are you on? Thanks, Pete On Tue, Jan 31, 2012 at 2:14 PM, Ralph DiMola wrote: > I am getting ready to release a LC app for B2B use. Also an app for public > use. Both use SQLite DBs. I would love to test it for you. > > Ralph DiMola > IT Director > Evergreen Information Services > > -----Original Message----- > From: use-livecode-bounces at lists.runrev.com > [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Pete > Sent: Tuesday, January 31, 2012 4:19 PM > To: How to use LiveCode > Subject: [ANN] - Seeking Beta Testers > > I am looking for beta testers for my first publicly available Livecode > application, SQLiteAdmin. > > SQLiteAdmin is an database administration tool for configuring and editing > the data in SQLite databases. It provides a GUI interface to all the > available SQLite Data Definition Statements. It also provides some Data > Definition functions that are not available as standard SQLite commands, > such as DROP COLUMN, and RENAME COLUMN. > > It includes a table browser with search, INSERT, UPDATE, DELETE, and > Duplicate functions. Data can be exported and imported in various formats. > Database tune-up commands will help speed up your queries, and a database > audit function will report on various potential data integrity problems and > suggest possible configuration changes that could lead to speedier database > access. > > SQLite is available as a standalone application for OS X and Windows. > > If you are interested in beta testing this product, please email me off > list and let me know what version of OS X/Windows you are using. All > accepted beta testers will receive the product free of charge when it's > released. > > SQLiteAdmin is the first in a series of tools I'm writing to to assist in > the development of Livecode databases that use SQL databases. I will > shortly be announcing LiquidSQL, a developers' tool that eliminates a large > percentage of the Livecode scripting and SQL Data Manipulation statements > normally required to implement an SQL-based application with 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 bobs at twft.com Tue Jan 31 19:26:47 2012 From: bobs at twft.com (Bob Sneidar) Date: Tue, 31 Jan 2012 16:26:47 -0800 Subject: Detect data scroll in a datagrid Message-ID: <56D2F534-4BD1-4F29-88A6-7880790FCB2E@twft.com> > Hi all. > > I know I can detect dgScrollBarDragV, but that gets sent whether or not the actual data scrolls. It is possible to move the elevator box a slight bit and not have it effect the data in the datagrid. I only want to know what the visible data has changed. Any ideas? I already looked through the DG library and anything I might have used there seems to be private commands and functions. > > Bob Ok so far I have a fairly workable solution, but it is behaving oddly. The script I put into the datagrid is this: on dgScrollbarDragV theScrollValue put the lastVisLines of me into theLasVisLines -- custom prop put the dgVisibleLines of me into theVisibleLines if theLasVisLines is not theVisibleLines then -- do whatever end if set the lastVisLines of me to theVisibleLines pass dgScrollbarDragV end dgScrollbarDragV If I drag the elevator box fairly fast it works, but if I drag it slowly it will not. It's workable, but ti would be better if I knew there was a message that got sent when the datagrid repopulated. Oh well. Bob From monte at sweattechnologies.com Tue Jan 31 21:26:10 2012 From: monte at sweattechnologies.com (Monte Goulding) Date: Wed, 1 Feb 2012 13:26:10 +1100 Subject: An iPhone app as a remote control for an iPad app. Is it possible? In-Reply-To: <8B9D8775-BA3A-451D-AB3F-3552A55CC379@mac.com> References: <1327921483166-4340652.post@n4.nabble.com> <4F268D3A.4030303@braguglia.ch> <4F26A1F1.2010905@kencorey.com> <91C164C1-1F3A-4609-AA2F-BCB2E5DD7804@sweattechnologies.com> <4F27AD0F.7070109@kencorey.com> <8B9D8775-BA3A-451D-AB3F-3552A55CC379@mac.com> Message-ID: <16AEBE7D-6753-4ABD-AE48-87B2BE3E8239@sweattechnologies.com> Hmm... I can't seem to convince NSNotificationCenter to send the UIApplicationDidFinishLaunchingNotification notification. I suspect somehow externals are loaded after that's sent. I'm not sure. So we are back to apps launching without knowing they are launching in response to a notification. Anyway, I can (have) created local notifications. It appears the notification badge number is implemented in an odd way. You would assume it would increment but you have to set a specific number. So let's say you setup 10 notifications and assign badge numbers 1-10. If you launch your app after 5 you want to reset the badge number number back to 0 and you want the rest of your notifications to have badge numbers 1-5. So what I'm thinking might be simplest is to maintain a notification list in the app. when you launch your app you clear all the notifications and set the badge number to 0. You show the user any unread notifications in your app and present any new ones from your list if the app is still running when they are due. Then when your app closes you loop over what remains of you list and setup the notifications again. Cheers Monte On 01/02/2012, at 8:03 AM, Thomas McGrath III wrote: > Monte, > > Actually that might still be useful because I can poll for the reason for the scheduled notif and react accordingly. I just don't know how useful?.. From Mark_Smith at cpe.umanitoba.ca Tue Jan 31 22:34:28 2012 From: Mark_Smith at cpe.umanitoba.ca (Mark Smith) Date: Tue, 31 Jan 2012 19:34:28 -0800 (PST) Subject: database write error In-Reply-To: References: <1327996211408-4343759.post@n4.nabble.com> <4F27DF55.7030007@crcom.net> <4F27E41C.9080303@kencorey.com> <1328041347724-4345754.post@n4.nabble.com> Message-ID: <1328067268773-4346808.post@n4.nabble.com> Peter Haworth-2 wrote > > so I just have to: > > put buildValuesClause(globaldate,tmaternalname,tmaternalphin,) after > tSQL > > I put that together before I knew revexecuteSQL substitution deals with > all that and more but it kinda works for me. > Smart. Sounds like the direction I will be heading in once I have a better handle on this. I hate dealing with all of that syntax. Yuck. At present I control the content of most of the fields pretty rigorously through a custom parameter cAllowedCharacters (and a bunch more, I put the code in a behavior and will post it on the forums at some point as a validation/entry routine for db fields) but there were a few fields where things could creep in. One is the "note" field... I just urlencoded that one (thanks Mike!). The other was an options field that had as an option HSC Women's (the name of a facility) where the apostrophe occurred. I could have just removed it but it was not the first time I had encountered that problem so I thought... hmmm, time to figure out what is going on here. The escape trick worked great for that situation. But at some time in the future a custom handler to deal with all of this is definitely the way to go. -- Mark -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/database-write-error-tp4343759p4346808.html Sent from the Revolution - User mailing list archive at Nabble.com. From andrew at rjdfarm.com Tue Jan 31 23:31:51 2012 From: andrew at rjdfarm.com (Andrew Kluthe) Date: Tue, 31 Jan 2012 20:31:51 -0800 (PST) Subject: Automated Testing Tool In-Reply-To: References: Message-ID: <1328070711274-4346888.post@n4.nabble.com> This is very neat. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Automated-Testing-Tool-tp4345249p4346888.html Sent from the Revolution - User mailing list archive at Nabble.com.